Version 1.15.8.
[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-29 21:47+0000\n"
12 "PO-Revision-Date: 2011-10-27 09:15+0000\n"
13 "Last-Translator: rjones <rjones@redhat.com>\n"
14 "Language-Team: Ukrainian <trans-uk@lists.fedoraproject.org>\n"
15 "Language: uk\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
20 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
21
22 #. type: =head1
23 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3
24 #: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
25 #: ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
26 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
27 #: ../examples/guestfs-recipes.pod:14 ../examples/guestfs-testing.pod:3
28 #: ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3
29 #: ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3
30 #: ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3
31 #: ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3
32 #: ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3
33 #: ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3
34 #: ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3
35 #: ../sparsify/virt-sparsify.pod:3 ../src/guestfs.pod:3
36 #: ../test-tool/libguestfs-test-tool.pod:3
37 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
38 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
39 #: ../tools/virt-win-reg.pl:35
40 msgid "NAME"
41 msgstr "НАЗВА"
42
43 #. type: textblock
44 #: ../align/virt-alignment-scan.pod:5
45 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
46 msgstr ""
47
48 #. type: =head1
49 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
50 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
51 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
52 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
53 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
54 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
55 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
56 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
57 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
58 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
59 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
60 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
61 #: ../test-tool/libguestfs-test-tool.pod:7
62 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
63 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
64 #: ../tools/virt-win-reg.pl:39
65 msgid "SYNOPSIS"
66 msgstr "КОРОТКИЙ ОПИС"
67
68 #. type: verbatim
69 #: ../align/virt-alignment-scan.pod:9
70 #, no-wrap
71 msgid ""
72 " virt-alignment-scan [--options] -d domname\n"
73 "\n"
74 msgstr ""
75
76 #. type: verbatim
77 #: ../align/virt-alignment-scan.pod:11
78 #, no-wrap
79 msgid ""
80 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
81 "\n"
82 msgstr ""
83
84 #. type: =head1
85 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
86 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
87 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
88 #: ../erlang/examples/guestfs-erlang.pod:16
89 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
90 #: ../examples/guestfs-testing.pod:7 ../fish/guestfish.pod:30
91 #: ../fish/virt-copy-in.pod:19 ../fish/virt-copy-out.pod:13
92 #: ../fish/virt-tar-in.pod:21 ../fish/virt-tar-out.pod:15
93 #: ../fuse/guestmount.pod:20 ../inspector/virt-inspector.pod:19
94 #: ../java/examples/guestfs-java.pod:15 ../ocaml/examples/guestfs-ocaml.pod:25
95 #: ../perl/examples/guestfs-perl.pod:18
96 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:31
97 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
98 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
99 #: ../test-tool/libguestfs-test-tool.pod:11
100 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
101 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
102 #: ../tools/virt-win-reg.pl:63
103 msgid "DESCRIPTION"
104 msgstr "ОПИС"
105
106 #. type: textblock
107 #: ../align/virt-alignment-scan.pod:15
108 msgid ""
109 "When older operating systems install themselves, the partitioning tools "
110 "place partitions at a sector misaligned with the underlying storage "
111 "(commonly the first partition starts on sector C<63>).  Misaligned "
112 "partitions can result in an operating system issuing more I/O than should be "
113 "necessary."
114 msgstr ""
115
116 #. type: textblock
117 #: ../align/virt-alignment-scan.pod:21
118 msgid ""
119 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
120 "machines and disk images and warns you if there are alignment problems."
121 msgstr ""
122
123 #. type: textblock
124 #: ../align/virt-alignment-scan.pod:25
125 msgid ""
126 "Currently there is no virt tool for fixing alignment problems.  You can only "
127 "reinstall the guest operating system.  The following NetApp document "
128 "summarises the problem and possible solutions: L<http://media.netapp.com/"
129 "documents/tr-3747.pdf>"
130 msgstr ""
131
132 #. type: =head1
133 #: ../align/virt-alignment-scan.pod:30
134 msgid "OUTPUT"
135 msgstr ""
136
137 #. type: textblock
138 #: ../align/virt-alignment-scan.pod:32
139 msgid "To run this tool on a disk image directly, use the I<-a> option:"
140 msgstr ""
141
142 #. type: verbatim
143 #: ../align/virt-alignment-scan.pod:34
144 #, no-wrap
145 msgid ""
146 " $ virt-alignment-scan -a winxp.img\n"
147 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
148 "\n"
149 msgstr ""
150
151 #. type: verbatim
152 #: ../align/virt-alignment-scan.pod:37
153 #, no-wrap
154 msgid ""
155 " $ virt-alignment-scan -a fedora16.img\n"
156 " /dev/sda1      1048576         1024K   ok\n"
157 " /dev/sda2      2097152         2048K   ok\n"
158 " /dev/sda3    526385152         2048K   ok\n"
159 "\n"
160 msgstr ""
161
162 #. type: textblock
163 #: ../align/virt-alignment-scan.pod:42
164 msgid ""
165 "To run the tool on a guest known to libvirt, use the I<-d> option and "
166 "possibly the I<-c> option:"
167 msgstr ""
168
169 #. type: verbatim
170 #: ../align/virt-alignment-scan.pod:45
171 #, no-wrap
172 msgid ""
173 " # virt-alignment-scan -d RHEL5\n"
174 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
175 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
176 "\n"
177 msgstr ""
178
179 #. type: verbatim
180 #: ../align/virt-alignment-scan.pod:49
181 #, no-wrap
182 msgid ""
183 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
184 " /dev/sda1      1048576         1024K   ok\n"
185 " /dev/sda2    105906176         1024K   ok\n"
186 " /dev/sdb1        65536           64K   ok\n"
187 "\n"
188 msgstr ""
189
190 #. type: textblock
191 #: ../align/virt-alignment-scan.pod:54
192 msgid ""
193 "The output consists of 4 or more whitespace-separated columns.  Only the "
194 "first 4 columns are signficant if you want to parse this from a program.  "
195 "The columns are:"
196 msgstr ""
197
198 #. type: =item
199 #: ../align/virt-alignment-scan.pod:60
200 msgid "col 1"
201 msgstr ""
202
203 #. type: textblock
204 #: ../align/virt-alignment-scan.pod:62
205 msgid ""
206 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
207 "on the first block device)"
208 msgstr ""
209
210 #. type: =item
211 #: ../align/virt-alignment-scan.pod:65
212 msgid "col 2"
213 msgstr ""
214
215 #. type: textblock
216 #: ../align/virt-alignment-scan.pod:67
217 msgid "the start of the partition in bytes"
218 msgstr ""
219
220 #. type: =item
221 #: ../align/virt-alignment-scan.pod:69
222 msgid "col 3"
223 msgstr ""
224
225 #. type: textblock
226 #: ../align/virt-alignment-scan.pod:71
227 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
228 msgstr ""
229
230 #. type: =item
231 #: ../align/virt-alignment-scan.pod:73
232 msgid "col 4"
233 msgstr ""
234
235 #. type: textblock
236 #: ../align/virt-alignment-scan.pod:75
237 msgid ""
238 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
239 "can cause performance problems"
240 msgstr ""
241
242 #. type: =item
243 #: ../align/virt-alignment-scan.pod:78
244 msgid "cols 5+"
245 msgstr ""
246
247 #. type: textblock
248 #: ../align/virt-alignment-scan.pod:80
249 msgid "optional free-text explanation."
250 msgstr ""
251
252 #. type: textblock
253 #: ../align/virt-alignment-scan.pod:84
254 msgid ""
255 "The exit code from the program changes depending on whether poorly aligned "
256 "partitions were found.  See L</EXIT STATUS> below."
257 msgstr ""
258
259 #. type: textblock
260 #: ../align/virt-alignment-scan.pod:87
261 msgid "If you just want the exit code with no output, use the I<-q> option."
262 msgstr ""
263
264 #. type: =head1
265 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
266 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
267 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
268 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
269 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
270 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
271 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:112
272 #: ../resize/virt-resize.pod:262 ../sparsify/virt-sparsify.pod:99
273 #: ../test-tool/libguestfs-test-tool.pod:36
274 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
275 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
276 #: ../tools/virt-win-reg.pl:96
277 msgid "OPTIONS"
278 msgstr "ПАРАМЕТРИ"
279
280 #. type: =item
281 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
282 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
283 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
284 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
285 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:116
286 #: ../resize/virt-resize.pod:266 ../sparsify/virt-sparsify.pod:103
287 #: ../test-tool/libguestfs-test-tool.pod:40
288 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
289 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
290 #: ../tools/virt-win-reg.pl:104
291 msgid "B<--help>"
292 msgstr "B<--help>"
293
294 #. type: textblock
295 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
296 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
297 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
298 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:118
299 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
300 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
301 #: ../tools/virt-win-reg.pl:106
302 msgid "Display brief help."
303 msgstr "Показати коротку довідку."
304
305 #. type: =item
306 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
307 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
308 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
309 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:120
310 msgid "B<-a> file"
311 msgstr "B<-a> файл"
312
313 #. type: =item
314 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
315 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
316 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
317 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:122
318 msgid "B<--add> file"
319 msgstr "B<--add> файл"
320
321 #. type: textblock
322 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
323 msgid "Add I<file> which should be a disk image from a virtual machine."
324 msgstr ""
325
326 #. type: textblock
327 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
328 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
329 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
330 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
331 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:128
332 msgid ""
333 "The format of the disk image is auto-detected.  To override this and force a "
334 "particular format use the I<--format=..> option."
335 msgstr ""
336
337 #. type: =item
338 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
339 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
340 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
341 #: ../rescue/virt-rescue.pod:135
342 msgid "B<-c> URI"
343 msgstr "B<-c> адреса"
344
345 #. type: =item
346 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
347 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
348 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
349 #: ../rescue/virt-rescue.pod:137
350 msgid "B<--connect> URI"
351 msgstr "B<--connect> адреса"
352
353 #. type: textblock
354 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
355 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
356 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
357 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:139
358 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
359 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
360 msgid ""
361 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
362 "to the default libvirt hypervisor."
363 msgstr ""
364
365 #. type: textblock
366 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
367 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
368 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
369 #: ../rescue/virt-rescue.pod:142
370 msgid ""
371 "If you specify guest block devices directly (I<-a>), then libvirt is not "
372 "used at all."
373 msgstr ""
374
375 #. type: =item
376 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
377 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
378 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
379 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:145
380 msgid "B<-d> guest"
381 msgstr "B<-d> гість"
382
383 #. type: =item
384 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
385 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
386 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
387 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:147
388 msgid "B<--domain> guest"
389 msgstr "B<--domain> гість"
390
391 #. type: textblock
392 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
393 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
394 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
395 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:149
396 msgid ""
397 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
398 "instead of names."
399 msgstr ""
400
401 #. type: =item
402 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
403 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
404 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
405 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
406 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:152
407 msgid "B<--format=raw|qcow2|..>"
408 msgstr "B<--format=raw|qcow2|..>"
409
410 #. type: =item
411 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
412 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
413 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
414 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
415 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
416 #: ../rescue/virt-rescue.pod:154
417 msgid "B<--format>"
418 msgstr "B<--format>"
419
420 #. type: textblock
421 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
422 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
423 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
424 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
425 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:156
426 msgid ""
427 "The default for the I<-a> option is to auto-detect the format of the disk "
428 "image.  Using this forces the disk format for I<-a> options which follow on "
429 "the command line.  Using I<--format> with no argument switches back to auto-"
430 "detection for subsequent I<-a> options."
431 msgstr ""
432
433 #. type: textblock
434 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
435 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
436 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
437 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
438 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:351
439 #: ../rescue/virt-rescue.pod:161 ../src/guestfs.pod:2877
440 msgid "For example:"
441 msgstr "Приклад:"
442
443 #. type: verbatim
444 #: ../align/virt-alignment-scan.pod:134
445 #, no-wrap
446 msgid ""
447 " virt-alignment-scan --format=raw -a disk.img\n"
448 "\n"
449 msgstr ""
450
451 #. type: textblock
452 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
453 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
454 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
455 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
456 #: ../rescue/virt-rescue.pod:165
457 msgid "forces raw format (no auto-detection) for C<disk.img>."
458 msgstr ""
459
460 #. type: verbatim
461 #: ../align/virt-alignment-scan.pod:138
462 #, no-wrap
463 msgid ""
464 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
465 "\n"
466 msgstr ""
467
468 #. type: textblock
469 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
470 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
471 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
472 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
473 #: ../rescue/virt-rescue.pod:169
474 msgid ""
475 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
476 "detection for C<another.img>."
477 msgstr ""
478
479 #. type: textblock
480 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
481 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
482 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
483 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:172
484 msgid ""
485 "If you have untrusted raw-format guest disk images, you should use this "
486 "option to specify the disk format.  This avoids a possible security problem "
487 "with malicious guests (CVE-2010-3851)."
488 msgstr ""
489
490 #. type: =item
491 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:497
492 #: ../sparsify/virt-sparsify.pod:177
493 msgid "B<-q>"
494 msgstr "B<-q>"
495
496 #. type: =item
497 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:499
498 #: ../sparsify/virt-sparsify.pod:179
499 msgid "B<--quiet>"
500 msgstr "B<--quiet>"
501
502 #. type: textblock
503 #: ../align/virt-alignment-scan.pod:151
504 msgid ""
505 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
506 "below)."
507 msgstr ""
508
509 #. type: =item
510 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
511 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
512 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
513 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
514 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
515 #: ../rescue/virt-rescue.pod:219 ../sparsify/virt-sparsify.pod:183
516 msgid "B<-v>"
517 msgstr "B<-v>"
518
519 #. type: =item
520 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
521 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
522 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
523 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
524 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
525 #: ../rescue/virt-rescue.pod:221 ../sparsify/virt-sparsify.pod:185
526 msgid "B<--verbose>"
527 msgstr "B<--verbose>"
528
529 #. type: textblock
530 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
531 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
532 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
533 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
534 #: ../rescue/virt-rescue.pod:223 ../sparsify/virt-sparsify.pod:187
535 msgid "Enable verbose messages for debugging."
536 msgstr ""
537
538 #. type: =item
539 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
540 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
541 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
542 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
543 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
544 #: ../rescue/virt-rescue.pod:225 ../resize/virt-resize.pod:567
545 #: ../sparsify/virt-sparsify.pod:189
546 msgid "B<-V>"
547 msgstr "B<-V>"
548
549 #. type: =item
550 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
551 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
552 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
553 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
554 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
555 #: ../rescue/virt-rescue.pod:227 ../resize/virt-resize.pod:569
556 #: ../sparsify/virt-sparsify.pod:191 ../tools/virt-list-filesystems.pl:69
557 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
558 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
559 msgid "B<--version>"
560 msgstr "B<--version>"
561
562 #. type: textblock
563 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
564 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
565 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
566 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
567 #: ../rescue/virt-rescue.pod:229 ../resize/virt-resize.pod:571
568 #: ../sparsify/virt-sparsify.pod:193 ../tools/virt-list-filesystems.pl:71
569 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
570 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
571 msgid "Display version number and exit."
572 msgstr "Показати дані щодо версії і завершити роботу."
573
574 #. type: =item
575 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
576 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
577 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
578 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
579 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
580 #: ../rescue/virt-rescue.pod:240 ../sparsify/virt-sparsify.pod:195
581 #: ../tools/virt-tar.pl:158
582 msgid "B<-x>"
583 msgstr "B<-x>"
584
585 #. type: textblock
586 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
587 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
588 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
589 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
590 #: ../rescue/virt-rescue.pod:242 ../sparsify/virt-sparsify.pod:197
591 msgid "Enable tracing of libguestfs API calls."
592 msgstr ""
593
594 #. type: =head1
595 #: ../align/virt-alignment-scan.pod:172
596 msgid "RECOMMENDED ALIGNMENT"
597 msgstr ""
598
599 #. type: textblock
600 #: ../align/virt-alignment-scan.pod:174
601 msgid ""
602 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
603 "first sector of the first partition at sector 63, with a 512 byte sector "
604 "size.  This happens because of a historical accident.  Drives have to report "
605 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
606 "completely meaningless on modern drives, but it happens that the geometry "
607 "reported always has 63 sectors per track.  The operating system therefore "
608 "places the first partition at the start of the second \"track\", at sector "
609 "63."
610 msgstr ""
611
612 #. type: textblock
613 #: ../align/virt-alignment-scan.pod:183
614 msgid ""
615 "When the guest OS is virtualized, the host operating system and hypervisor "
616 "may prefer accesses aligned to one of:"
617 msgstr ""
618
619 #. type: =item
620 #: ../align/virt-alignment-scan.pod:188
621 msgid "* 512 bytes"
622 msgstr ""
623
624 #. type: textblock
625 #: ../align/virt-alignment-scan.pod:190
626 msgid ""
627 "if the host OS uses local storage directly on hard drive partitions, and the "
628 "hard drive has 512 byte physical sectors."
629 msgstr ""
630
631 #. type: =item
632 #: ../align/virt-alignment-scan.pod:193
633 msgid "* 4 Kbytes"
634 msgstr ""
635
636 #. type: textblock
637 #: ../align/virt-alignment-scan.pod:195
638 msgid ""
639 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
640 "backed storage on filesystems with 4Kbyte block size; or for some types of "
641 "network-attached storage."
642 msgstr ""
643
644 #. type: =item
645 #: ../align/virt-alignment-scan.pod:199
646 msgid "* 64 Kbytes"
647 msgstr ""
648
649 #. type: textblock
650 #: ../align/virt-alignment-scan.pod:201
651 msgid ""
652 "for high-end network-attached storage.  This is the optimal block size for "
653 "some NetApp hardware."
654 msgstr ""
655
656 #. type: =item
657 #: ../align/virt-alignment-scan.pod:204
658 msgid "* 1 Mbyte"
659 msgstr ""
660
661 #. type: textblock
662 #: ../align/virt-alignment-scan.pod:206
663 msgid "see L</1 MB PARTITION ALIGNMENT> below."
664 msgstr ""
665
666 #. type: textblock
667 #: ../align/virt-alignment-scan.pod:210
668 msgid ""
669 "Partitions which are not aligned correctly to the underlying storage cause "
670 "extra I/O.  For example:"
671 msgstr ""
672
673 #. type: verbatim
674 #: ../align/virt-alignment-scan.pod:213
675 #, no-wrap
676 msgid ""
677 "                       sect#63\n"
678 "                       +--------------------------+------\n"
679 "                       |         guest            |\n"
680 "                       |    filesystem block      |\n"
681 " ---+------------------+------+-------------------+-----+---\n"
682 "    |  host block             |  host block             |\n"
683 "    |                         |                         |\n"
684 " ---+-------------------------+-------------------------+---\n"
685 "\n"
686 msgstr ""
687
688 #. type: textblock
689 #: ../align/virt-alignment-scan.pod:222
690 msgid ""
691 "In this example, each time a 4K guest block is read, two blocks on the host "
692 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
693 "written, two host blocks must first be read, the old and new data combined, "
694 "and the two blocks written back (4x I/O)."
695 msgstr ""
696
697 #. type: =head2
698 #: ../align/virt-alignment-scan.pod:227
699 msgid "LINUX HOST BLOCK AND I/O SIZE"
700 msgstr ""
701
702 #. type: textblock
703 #: ../align/virt-alignment-scan.pod:229
704 msgid ""
705 "New versions of the Linux kernel expose the physical and logical block size, "
706 "and minimum and recommended I/O size."
707 msgstr ""
708
709 #. type: textblock
710 #: ../align/virt-alignment-scan.pod:232
711 msgid "For a typical consumer hard drive with 512 byte sectors:"
712 msgstr ""
713
714 #. type: verbatim
715 #: ../align/virt-alignment-scan.pod:234
716 #, no-wrap
717 msgid ""
718 " $ cat /sys/block/sda/queue/hw_sector_size\n"
719 " 512\n"
720 " $ cat /sys/block/sda/queue/physical_block_size\n"
721 " 512\n"
722 " $ cat /sys/block/sda/queue/logical_block_size\n"
723 " 512\n"
724 " $ cat /sys/block/sda/queue/minimum_io_size\n"
725 " 512\n"
726 " $ cat /sys/block/sda/queue/optimal_io_size\n"
727 " 0\n"
728 "\n"
729 msgstr ""
730
731 #. type: textblock
732 #: ../align/virt-alignment-scan.pod:245
733 msgid "For a new consumer hard drive with 4Kbyte sectors:"
734 msgstr ""
735
736 #. type: verbatim
737 #: ../align/virt-alignment-scan.pod:247
738 #, no-wrap
739 msgid ""
740 " $ cat /sys/block/sda/queue/hw_sector_size\n"
741 " 4096\n"
742 " $ cat /sys/block/sda/queue/physical_block_size\n"
743 " 4096\n"
744 " $ cat /sys/block/sda/queue/logical_block_size\n"
745 " 4096\n"
746 " $ cat /sys/block/sda/queue/minimum_io_size\n"
747 " 4096\n"
748 " $ cat /sys/block/sda/queue/optimal_io_size\n"
749 " 0\n"
750 "\n"
751 msgstr ""
752
753 #. type: textblock
754 #: ../align/virt-alignment-scan.pod:258
755 msgid "For a NetApp LUN:"
756 msgstr ""
757
758 #. type: verbatim
759 #: ../align/virt-alignment-scan.pod:260
760 #, no-wrap
761 msgid ""
762 " $ cat /sys/block/sdc/queue/logical_block_size\n"
763 " 512\n"
764 " $ cat /sys/block/sdc/queue/physical_block_size\n"
765 " 512\n"
766 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
767 " 4096\n"
768 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
769 " 65536\n"
770 "\n"
771 msgstr ""
772
773 #. type: textblock
774 #: ../align/virt-alignment-scan.pod:269
775 msgid ""
776 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
777 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
778 msgstr ""
779
780 #. type: textblock
781 #: ../align/virt-alignment-scan.pod:273
782 msgid ""
783 "For detailed information about what these numbers mean, see L<http://docs."
784 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
785 "Storage_Administration_Guide/newstorage-iolimits.html>"
786 msgstr ""
787
788 #. type: textblock
789 #: ../align/virt-alignment-scan.pod:276
790 msgid ""
791 "[Thanks to Matt Booth for providing 4K drive data.  Thanks to Mike Snitzer "
792 "for providing NetApp data and additional information.]"
793 msgstr ""
794
795 #. type: =head2
796 #: ../align/virt-alignment-scan.pod:279
797 msgid "1 MB PARTITION ALIGNMENT"
798 msgstr ""
799
800 #. type: textblock
801 #: ../align/virt-alignment-scan.pod:281
802 msgid ""
803 "Microsoft picked 1 MB as the default alignment for all partitions starting "
804 "with Windows 2008 Server, and Linux has followed this."
805 msgstr ""
806
807 #. type: textblock
808 #: ../align/virt-alignment-scan.pod:284
809 msgid ""
810 "Assuming 512 byte sectors in the guest, you will now see the first partition "
811 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
812 "multiple of 2048 sectors."
813 msgstr ""
814
815 #. type: textblock
816 #: ../align/virt-alignment-scan.pod:288
817 msgid ""
818 "1 MB alignment is compatible with all current alignment requirements (4K, "
819 "64K) and provides room for future growth in physical block sizes."
820 msgstr ""
821
822 #. type: =head2
823 #: ../align/virt-alignment-scan.pod:291
824 msgid "SETTING ALIGNMENT"
825 msgstr ""
826
827 #. type: textblock
828 #: ../align/virt-alignment-scan.pod:293
829 msgid ""
830 "L<virt-resize(1)> can change the alignment of the partitions of some "
831 "guests.  Currently it can fully align all the partitions of all Windows "
832 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
833 "it can align the second and subsequent partitions, so the majority of OS "
834 "accesses except at boot will be aligned."
835 msgstr ""
836
837 #. type: textblock
838 #: ../align/virt-alignment-scan.pod:299
839 msgid ""
840 "Another way to correct partition alignment problems is to reinstall your "
841 "guest operating systems.  If you install operating systems from templates, "
842 "ensure these have correct partition alignment too."
843 msgstr ""
844
845 #. type: textblock
846 #: ../align/virt-alignment-scan.pod:303
847 msgid ""
848 "For older versions of Windows, the following NetApp document contains useful "
849 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
850 msgstr ""
851
852 #. type: textblock
853 #: ../align/virt-alignment-scan.pod:306
854 msgid ""
855 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
856 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
857 ">.  Do not use the Kickstart C<part> command.  The NetApp document above "
858 "contains an example."
859 msgstr ""
860
861 #. type: =head1
862 #: ../align/virt-alignment-scan.pod:311 ../cat/virt-cat.pod:231
863 #: ../cat/virt-filesystems.pod:373 ../cat/virt-ls.pod:483
864 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:241
865 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:367
866 #: ../rescue/virt-rescue.pod:303 ../resize/virt-resize.pod:682
867 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
868 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
869 #: ../tools/virt-win-reg.pl:744
870 msgid "SHELL QUOTING"
871 msgstr ""
872
873 #. type: textblock
874 #: ../align/virt-alignment-scan.pod:313 ../cat/virt-cat.pod:233
875 #: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485
876 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:243
877 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:369
878 #: ../rescue/virt-rescue.pod:305 ../resize/virt-resize.pod:684
879 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
880 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
881 #: ../tools/virt-win-reg.pl:752
882 msgid ""
883 "Libvirt guest names can contain arbitrary characters, some of which have "
884 "meaning to the shell such as C<#> and space.  You may need to quote or "
885 "escape these characters on the command line.  See the shell manual page L<sh"
886 "(1)> for details."
887 msgstr ""
888
889 #. type: =head1
890 #: ../align/virt-alignment-scan.pod:318 ../cat/virt-cat.pod:238
891 #: ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490
892 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:248
893 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
894 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:390
895 #: ../resize/virt-resize.pod:689 ../sparsify/virt-sparsify.pod:251
896 #: ../test-tool/libguestfs-test-tool.pod:90
897 msgid "EXIT STATUS"
898 msgstr ""
899
900 #. type: textblock
901 #: ../align/virt-alignment-scan.pod:320
902 msgid "This program returns:"
903 msgstr ""
904
905 #. type: =item
906 #: ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330
907 #: ../align/virt-alignment-scan.pod:336 ../align/virt-alignment-scan.pod:343
908 #: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187
909 #: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202
910 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
911 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
912 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
913 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
914 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
915 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
916 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
917 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
918 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
919 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
920 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
921 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
922 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
923 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
924 #: ../examples/guestfs-testing.pod:110 ../examples/guestfs-testing.pod:114
925 #: ../examples/guestfs-testing.pod:118 ../fish/guestfish-actions.pod:13
926 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:441
927 #: ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:456
928 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:1262
929 #: ../fish/guestfish-actions.pod:1266 ../fish/guestfish-actions.pod:1270
930 #: ../fish/guestfish-actions.pod:1274 ../fish/guestfish-actions.pod:1282
931 #: ../fish/guestfish-actions.pod:1286 ../fish/guestfish-actions.pod:1290
932 #: ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:1304
933 #: ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1398
934 #: ../fish/guestfish-actions.pod:1402 ../fish/guestfish-actions.pod:1407
935 #: ../fish/guestfish-actions.pod:1412 ../fish/guestfish-actions.pod:1454
936 #: ../fish/guestfish-actions.pod:1458 ../fish/guestfish-actions.pod:1463
937 #: ../fish/guestfish-actions.pod:1719 ../fish/guestfish-actions.pod:1726
938 #: ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:2136
939 #: ../fish/guestfish-actions.pod:2142 ../fish/guestfish-actions.pod:2150
940 #: ../fish/guestfish-actions.pod:2157 ../fish/guestfish-actions.pod:2164
941 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
942 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
943 #: ../inspector/virt-inspector.pod:408 ../inspector/virt-inspector.pod:412
944 #: ../resize/virt-resize.pod:365 ../resize/virt-resize.pod:369
945 #: ../resize/virt-resize.pod:378 ../resize/virt-resize.pod:384
946 #: ../sparsify/virt-sparsify.pod:32 ../sparsify/virt-sparsify.pod:39
947 #: ../sparsify/virt-sparsify.pod:43 ../sparsify/virt-sparsify.pod:49
948 #: ../sparsify/virt-sparsify.pod:54 ../sparsify/virt-sparsify.pod:58
949 #: ../sparsify/virt-sparsify.pod:64 ../src/guestfs-actions.pod:22
950 #: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:641
951 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:656
952 #: ../src/guestfs-actions.pod:663 ../src/guestfs-actions.pod:2079
953 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2087
954 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:2099
955 #: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:2107
956 #: ../src/guestfs-actions.pod:2117 ../src/guestfs-actions.pod:2121
957 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:2263
958 #: ../src/guestfs-actions.pod:2267 ../src/guestfs-actions.pod:2272
959 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:2338
960 #: ../src/guestfs-actions.pod:2342 ../src/guestfs-actions.pod:2347
961 #: ../src/guestfs-actions.pod:2762 ../src/guestfs-actions.pod:2769
962 #: ../src/guestfs-actions.pod:2776 ../src/guestfs-actions.pod:3321
963 #: ../src/guestfs-actions.pod:3327 ../src/guestfs-actions.pod:3335
964 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3349
965 #: ../src/guestfs.pod:403 ../src/guestfs.pod:408 ../src/guestfs.pod:413
966 #: ../src/guestfs.pod:417 ../src/guestfs.pod:422 ../src/guestfs.pod:426
967 #: ../src/guestfs.pod:431 ../src/guestfs.pod:436 ../src/guestfs.pod:1109
968 #: ../src/guestfs.pod:1113 ../src/guestfs.pod:1117 ../src/guestfs.pod:1122
969 #: ../src/guestfs.pod:1130 ../src/guestfs.pod:1149 ../src/guestfs.pod:1157
970 #: ../src/guestfs.pod:1179 ../src/guestfs.pod:1183 ../src/guestfs.pod:1187
971 #: ../src/guestfs.pod:1191 ../src/guestfs.pod:1195 ../src/guestfs.pod:1199
972 #: ../src/guestfs.pod:1689 ../src/guestfs.pod:1694 ../src/guestfs.pod:1698
973 #: ../src/guestfs.pod:1800 ../src/guestfs.pod:1805 ../src/guestfs.pod:1809
974 #: ../src/guestfs.pod:1819 ../src/guestfs.pod:2108 ../src/guestfs.pod:2113
975 #: ../src/guestfs.pod:2119 ../src/guestfs.pod:2127 ../src/guestfs.pod:2645
976 #: ../src/guestfs.pod:2651 ../src/guestfs.pod:2656 ../src/guestfs.pod:2662
977 #: ../src/guestfs.pod:3067 ../src/guestfs.pod:3072 ../src/guestfs.pod:3076
978 #: ../src/guestfs.pod:3080 ../src/guestfs.pod:3084 ../src/guestfs.pod:3098
979 #: ../src/guestfs.pod:3103 ../src/guestfs.pod:3335 ../src/guestfs.pod:3339
980 #: ../src/guestfs.pod:3343 ../src/guestfs.pod:3347
981 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
982 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:721
983 #: ../tools/virt-win-reg.pl:727 ../tools/virt-win-reg.pl:733
984 msgid "*"
985 msgstr "*"
986
987 #. type: textblock
988 #: ../align/virt-alignment-scan.pod:326
989 msgid "0"
990 msgstr ""
991
992 #. type: textblock
993 #: ../align/virt-alignment-scan.pod:328
994 msgid ""
995 "successful exit, all partitions are aligned E<ge> 64K for best performance"
996 msgstr ""
997
998 #. type: textblock
999 #: ../align/virt-alignment-scan.pod:332
1000 msgid "1"
1001 msgstr ""
1002
1003 #. type: textblock
1004 #: ../align/virt-alignment-scan.pod:334
1005 msgid "an error scanning the disk image or guest"
1006 msgstr ""
1007
1008 #. type: textblock
1009 #: ../align/virt-alignment-scan.pod:338
1010 msgid "2"
1011 msgstr ""
1012
1013 #. type: textblock
1014 #: ../align/virt-alignment-scan.pod:340
1015 msgid ""
1016 "successful exit, some partitions have alignment E<lt> 64K which can result "
1017 "in poor performance on high end network storage"
1018 msgstr ""
1019
1020 #. type: textblock
1021 #: ../align/virt-alignment-scan.pod:345
1022 msgid "3"
1023 msgstr ""
1024
1025 #. type: textblock
1026 #: ../align/virt-alignment-scan.pod:347
1027 msgid ""
1028 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1029 "poor performance on most hypervisors"
1030 msgstr ""
1031
1032 #. type: =head1
1033 #: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243
1034 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1035 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:253
1036 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1037 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1038 #: ../examples/guestfs-testing.pod:291 ../fish/guestfish.pod:1268
1039 #: ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39
1040 #: ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41
1041 #: ../fuse/guestmount.pod:317 ../inspector/virt-inspector.pod:395
1042 #: ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78
1043 #: ../perl/examples/guestfs-perl.pod:39
1044 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:325
1045 #: ../resize/virt-resize.pod:694 ../ruby/examples/guestfs-ruby.pod:36
1046 #: ../sparsify/virt-sparsify.pod:275 ../src/guestfs.pod:3275
1047 #: ../test-tool/libguestfs-test-tool.pod:100
1048 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1049 #: ../tools/virt-make-fs.pl:557 ../tools/virt-tar.pl:296
1050 #: ../tools/virt-win-reg.pl:757
1051 msgid "SEE ALSO"
1052 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
1053
1054 #. type: textblock
1055 #: ../align/virt-alignment-scan.pod:354
1056 msgid ""
1057 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1058 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1059 msgstr ""
1060
1061 #. type: =head1
1062 #: ../align/virt-alignment-scan.pod:361 ../cat/virt-cat.pod:252
1063 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:507
1064 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:261
1065 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:334
1066 #: ../resize/virt-resize.pod:717 ../sparsify/virt-sparsify.pod:288
1067 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1068 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:311
1069 #: ../tools/virt-win-reg.pl:783
1070 msgid "AUTHOR"
1071 msgstr "АВТОР"
1072
1073 #. type: textblock
1074 #: ../align/virt-alignment-scan.pod:363 ../cat/virt-cat.pod:254
1075 #: ../cat/virt-filesystems.pod:398 ../cat/virt-ls.pod:509
1076 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:263
1077 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:410
1078 #: ../rescue/virt-rescue.pod:336 ../resize/virt-resize.pod:719
1079 #: ../sparsify/virt-sparsify.pod:290 ../tools/virt-list-filesystems.pl:210
1080 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:584
1081 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:785
1082 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1083 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1084
1085 #. type: =head1
1086 #: ../align/virt-alignment-scan.pod:365 ../cat/virt-cat.pod:256
1087 #: ../cat/virt-filesystems.pod:400 ../cat/virt-ls.pod:511
1088 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:265
1089 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1090 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1091 #: ../examples/guestfs-testing.pod:302 ../fish/guestfish.pod:1300
1092 #: ../fish/virt-copy-in.pod:64 ../fish/virt-copy-out.pod:53
1093 #: ../fish/virt-tar-in.pod:62 ../fish/virt-tar-out.pod:55
1094 #: ../fuse/guestmount.pod:332 ../inspector/virt-inspector.pod:418
1095 #: ../java/examples/guestfs-java.pod:62 ../ocaml/examples/guestfs-ocaml.pod:95
1096 #: ../perl/examples/guestfs-perl.pod:56
1097 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:338
1098 #: ../resize/virt-resize.pod:721 ../ruby/examples/guestfs-ruby.pod:52
1099 #: ../sparsify/virt-sparsify.pod:292 ../src/guestfs.pod:3358
1100 #: ../test-tool/libguestfs-test-tool.pod:110
1101 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1102 #: ../tools/virt-make-fs.pl:586 ../tools/virt-tar.pl:315
1103 #: ../tools/virt-win-reg.pl:787
1104 msgid "COPYRIGHT"
1105 msgstr "АВТОРСЬКІ ПРАВА"
1106
1107 #. type: textblock
1108 #: ../align/virt-alignment-scan.pod:367 ../clone/virt-sysprep.pod:507
1109 #: ../sparsify/virt-sparsify.pod:294
1110 msgid "Copyright (C) 2011 Red Hat Inc."
1111 msgstr ""
1112
1113 #. type: textblock
1114 #: ../align/virt-alignment-scan.pod:369 ../cat/virt-cat.pod:260
1115 #: ../cat/virt-filesystems.pod:404 ../cat/virt-ls.pod:515
1116 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:269
1117 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1118 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1119 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1120 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:422
1121 #: ../rescue/virt-rescue.pod:342 ../resize/virt-resize.pod:725
1122 #: ../sparsify/virt-sparsify.pod:296 ../test-tool/libguestfs-test-tool.pod:115
1123 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1124 #: ../tools/virt-make-fs.pl:590 ../tools/virt-tar.pl:319
1125 #: ../tools/virt-win-reg.pl:791
1126 msgid ""
1127 "This program is free software; you can redistribute it and/or modify it "
1128 "under the terms of the GNU General Public License as published by the Free "
1129 "Software Foundation; either version 2 of the License, or (at your option) "
1130 "any later version."
1131 msgstr ""
1132
1133 #. type: textblock
1134 #: ../align/virt-alignment-scan.pod:374 ../cat/virt-cat.pod:265
1135 #: ../cat/virt-filesystems.pod:409 ../cat/virt-ls.pod:520
1136 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:274
1137 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1138 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1139 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1140 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:427
1141 #: ../rescue/virt-rescue.pod:347 ../resize/virt-resize.pod:730
1142 #: ../sparsify/virt-sparsify.pod:301 ../test-tool/libguestfs-test-tool.pod:120
1143 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1144 #: ../tools/virt-make-fs.pl:595 ../tools/virt-tar.pl:324
1145 #: ../tools/virt-win-reg.pl:796
1146 msgid ""
1147 "This program is distributed in the hope that it will be useful, but WITHOUT "
1148 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1149 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1150 "more details."
1151 msgstr ""
1152 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
1153 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
1154 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
1155 "дізнатися з GNU General Public License."
1156
1157 #. type: textblock
1158 #: ../align/virt-alignment-scan.pod:379 ../cat/virt-cat.pod:270
1159 #: ../cat/virt-filesystems.pod:414 ../cat/virt-ls.pod:525
1160 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:279
1161 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1162 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1163 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1164 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:432
1165 #: ../rescue/virt-rescue.pod:352 ../resize/virt-resize.pod:735
1166 #: ../sparsify/virt-sparsify.pod:306 ../test-tool/libguestfs-test-tool.pod:125
1167 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1168 #: ../tools/virt-make-fs.pl:600 ../tools/virt-tar.pl:329
1169 #: ../tools/virt-win-reg.pl:801
1170 msgid ""
1171 "You should have received a copy of the GNU General Public License along with "
1172 "this program; if not, write to the Free Software Foundation, Inc., 51 "
1173 "Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1174 msgstr ""
1175 "Ви маєте отримати копію GNU General Public License разом з цією програмою; "
1176 "якщо це не так, повідомте про факт за адресою Free Software Foundation, "
1177 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA."
1178
1179 #. type: textblock
1180 #: ../cat/virt-cat.pod:5
1181 msgid "virt-cat - Display files in a virtual machine"
1182 msgstr "virt-cat — показ файлів у віртуальній машині"
1183
1184 #. type: verbatim
1185 #: ../cat/virt-cat.pod:9
1186 #, no-wrap
1187 msgid ""
1188 " virt-cat [--options] -d domname file [file ...]\n"
1189 "\n"
1190 msgstr ""
1191 " virt-cat [--параметри] -d назва_домену файл [файл...]\n"
1192 "\n"
1193
1194 #. type: verbatim
1195 #: ../cat/virt-cat.pod:11
1196 #, no-wrap
1197 msgid ""
1198 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1199 "\n"
1200 msgstr ""
1201 " virt-cat [--параметри] -a диск.img [-a диск.img ...] файл [файл...]\n"
1202 "\n"
1203
1204 #. type: textblock
1205 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1206 #: ../inspector/virt-inspector.pod:13
1207 msgid "Old-style:"
1208 msgstr "Застарілий стиль:"
1209
1210 #. type: verbatim
1211 #: ../cat/virt-cat.pod:15
1212 #, no-wrap
1213 msgid ""
1214 " virt-cat domname file\n"
1215 "\n"
1216 msgstr ""
1217 " virt-cat назва_домену файл\n"
1218 "\n"
1219
1220 #. type: verbatim
1221 #: ../cat/virt-cat.pod:17
1222 #, no-wrap
1223 msgid ""
1224 " virt-cat disk.img file\n"
1225 "\n"
1226 msgstr ""
1227 " virt-cat диск.img файл\n"
1228 "\n"
1229
1230 #. type: textblock
1231 #: ../cat/virt-cat.pod:21
1232 msgid ""
1233 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1234 "C<file> exists in the named virtual machine (or disk image)."
1235 msgstr ""
1236 "C<virt-cat> — інструмент командного рядка для показу вмісту C<файла>, який "
1237 "зберігається у вказаній віртуальній машині (або образі диска)."
1238
1239 #. type: textblock
1240 #: ../cat/virt-cat.pod:24
1241 msgid ""
1242 "Multiple filenames can be given, in which case they are concatenated "
1243 "together.  Each filename must be a full path, starting at the root directory "
1244 "(starting with '/')."
1245 msgstr ""
1246 "Ви можете вказати декілька назв файлів. Вміст таких файлів буде об’єднано. "
1247 "Назви файлів слід вказувати повністю (разом зі шляхом), починаючи з "
1248 "кореневого каталогу (тобто назва має починатися з «/»)."
1249
1250 #. type: textblock
1251 #: ../cat/virt-cat.pod:28
1252 msgid ""
1253 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1254 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1255 "(see L</USING GUESTFISH> below)."
1256 msgstr ""
1257 "C<virt-cat> можна скористатися для пришвидшення перегляду файла. Для "
1258 "редагування даних слід користуватися C<virt-edit>. Для виконання складніших "
1259 "дій можна скористатися програмою L<guestfish(1)> (див. L</USING GUESTFISH> "
1260 "нижче)."
1261
1262 #. type: =head1
1263 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1264 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1265 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1266 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1267 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1268 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1269 #: ../tools/virt-tar.pl:50
1270 msgid "EXAMPLES"
1271 msgstr "ПРИКЛАДИ"
1272
1273 #. type: textblock
1274 #: ../cat/virt-cat.pod:34
1275 msgid ""
1276 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1277 msgstr ""
1278 "Показ файла C</etc/fstab> з віртуальної машини libvirt з назвою C<mydomain>:"
1279
1280 #. type: verbatim
1281 #: ../cat/virt-cat.pod:37
1282 #, no-wrap
1283 msgid ""
1284 " virt-cat -d mydomain /etc/fstab\n"
1285 "\n"
1286 msgstr ""
1287 " virt-cat -d mydomain /etc/fstab\n"
1288 "\n"
1289
1290 #. type: textblock
1291 #: ../cat/virt-cat.pod:39
1292 msgid "List syslog messages from a VM disk image file:"
1293 msgstr ""
1294 "Показ списку повідомлень syslog з файла образу диска віртуальної машини:"
1295
1296 #. type: verbatim
1297 #: ../cat/virt-cat.pod:41
1298 #, no-wrap
1299 msgid ""
1300 " virt-cat -a disk.img /var/log/messages | tail\n"
1301 "\n"
1302 msgstr ""
1303 " virt-cat -a disk.img /var/log/messages | tail\n"
1304 "\n"
1305
1306 #. type: textblock
1307 #: ../cat/virt-cat.pod:43
1308 msgid "Find out what DHCP IP address a VM acquired:"
1309 msgstr "Визначення IP-адреси DHCP, використаної віртуальною машиною:"
1310
1311 #. type: verbatim
1312 #: ../cat/virt-cat.pod:45
1313 #, no-wrap
1314 msgid ""
1315 " virt-cat -d mydomain /var/log/messages | \\\n"
1316 "   grep 'dhclient: bound to' | tail\n"
1317 "\n"
1318 msgstr ""
1319 " virt-cat -d mydomain /var/log/messages | \\\n"
1320 "   grep 'dhclient: bound to' | tail\n"
1321 "\n"
1322
1323 #. type: textblock
1324 #: ../cat/virt-cat.pod:48
1325 msgid "Find out what packages were recently installed:"
1326 msgstr "Пошук нещодавно встановлених пакунків:"
1327
1328 #. type: verbatim
1329 #: ../cat/virt-cat.pod:50
1330 #, no-wrap
1331 msgid ""
1332 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1333 "\n"
1334 msgstr ""
1335 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1336 "\n"
1337
1338 #. type: textblock
1339 #: ../cat/virt-cat.pod:52
1340 msgid "Find out who is logged on inside a virtual machine:"
1341 msgstr "Визначення користувачів, які працюють у віртуальній машині:"
1342
1343 #. type: verbatim
1344 #: ../cat/virt-cat.pod:54
1345 #, no-wrap
1346 msgid ""
1347 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1348 " who /tmp/utmp\n"
1349 "\n"
1350 msgstr ""
1351 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1352 " who /tmp/utmp\n"
1353 "\n"
1354
1355 #. type: textblock
1356 #: ../cat/virt-cat.pod:57
1357 msgid "or who was logged on:"
1358 msgstr "або тих, які у ній працювали:"
1359
1360 #. type: verbatim
1361 #: ../cat/virt-cat.pod:59
1362 #, no-wrap
1363 msgid ""
1364 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1365 " last -f /tmp/wtmp\n"
1366 "\n"
1367 msgstr ""
1368 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1369 " last -f /tmp/wtmp\n"
1370 "\n"
1371
1372 #. type: textblock
1373 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1374 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1375 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:124
1376 msgid ""
1377 "Add I<file> which should be a disk image from a virtual machine.  If the "
1378 "virtual machine has multiple block devices, you must supply all of them with "
1379 "separate I<-a> options."
1380 msgstr ""
1381
1382 #. type: =item
1383 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1384 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1385 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1386 msgid "B<--echo-keys>"
1387 msgstr "B<--echo-keys>"
1388
1389 #. type: textblock
1390 #: ../cat/virt-cat.pod:100
1391 msgid ""
1392 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1393 "so you cannot see what you are typing.  If you are not worried about Tempest "
1394 "attacks and there is no one else in the room you can specify this flag to "
1395 "see what you are typing."
1396 msgstr ""
1397
1398 #. type: verbatim
1399 #: ../cat/virt-cat.pod:116
1400 #, no-wrap
1401 msgid ""
1402 " virt-cat --format=raw -a disk.img file\n"
1403 "\n"
1404 msgstr ""
1405 " virt-cat --format=raw -a disk.img file\n"
1406 "\n"
1407
1408 #. type: verbatim
1409 #: ../cat/virt-cat.pod:120
1410 #, no-wrap
1411 msgid ""
1412 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1413 "\n"
1414 msgstr ""
1415 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1416 "\n"
1417
1418 #. type: =item
1419 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1420 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1421 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1422 msgid "B<--keys-from-stdin>"
1423 msgstr "B<--keys-from-stdin>"
1424
1425 #. type: textblock
1426 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1427 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1428 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1429 msgid ""
1430 "Read key or passphrase parameters from stdin.  The default is to try to read "
1431 "passphrases from the user by opening C</dev/tty>."
1432 msgstr ""
1433
1434 #. type: =head1
1435 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1436 #: ../inspector/virt-inspector.pod:144 ../rescue/virt-rescue.pod:246
1437 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1438 msgstr ""
1439
1440 #. type: textblock
1441 #: ../cat/virt-cat.pod:154
1442 msgid "Previous versions of virt-cat allowed you to write either:"
1443 msgstr ""
1444
1445 #. type: verbatim
1446 #: ../cat/virt-cat.pod:156
1447 #, no-wrap
1448 msgid ""
1449 " virt-cat disk.img [disk.img ...] file\n"
1450 "\n"
1451 msgstr ""
1452
1453 #. type: textblock
1454 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1455 #: ../inspector/virt-inspector.pod:150 ../rescue/virt-rescue.pod:252
1456 msgid "or"
1457 msgstr "або"
1458
1459 #. type: verbatim
1460 #: ../cat/virt-cat.pod:160
1461 #, no-wrap
1462 msgid ""
1463 " virt-cat guestname file\n"
1464 "\n"
1465 msgstr ""
1466
1467 #. type: textblock
1468 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1469 #: ../inspector/virt-inspector.pod:154 ../rescue/virt-rescue.pod:256
1470 msgid ""
1471 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1472 "the confusing case where a disk image might have the same name as a guest."
1473 msgstr ""
1474
1475 #. type: textblock
1476 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1477 #: ../inspector/virt-inspector.pod:158 ../rescue/virt-rescue.pod:260
1478 msgid "For compatibility the old style is still supported."
1479 msgstr ""
1480
1481 #. type: =head1
1482 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
1483 msgid "WINDOWS PATHS"
1484 msgstr "ШЛЯХИ У WINDOWS"
1485
1486 #. type: textblock
1487 #: ../cat/virt-cat.pod:170
1488 msgid ""
1489 "C<virt-cat> has a limited ability to understand Windows drive letters and "
1490 "paths (eg. C<E:\\foo\\bar.txt>)."
1491 msgstr ""
1492
1493 #. type: textblock
1494 #: ../cat/virt-cat.pod:173 ../edit/virt-edit.pod:262
1495 msgid "If and only if the guest is running Windows then:"
1496 msgstr ""
1497
1498 #. type: textblock
1499 #: ../cat/virt-cat.pod:179 ../edit/virt-edit.pod:268
1500 msgid ""
1501 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
1502 "to the correct filesystem."
1503 msgstr ""
1504
1505 #. type: textblock
1506 #: ../cat/virt-cat.pod:184 ../edit/virt-edit.pod:273
1507 msgid ""
1508 "Any backslash (C<\\>) characters in the path are replaced with forward "
1509 "slashes so that libguestfs can process it."
1510 msgstr ""
1511
1512 #. type: textblock
1513 #: ../cat/virt-cat.pod:189
1514 msgid ""
1515 "The path is resolved case insensitively to locate the file that should be "
1516 "displayed."
1517 msgstr ""
1518
1519 #. type: textblock
1520 #: ../cat/virt-cat.pod:194 ../edit/virt-edit.pod:283
1521 msgid "There are some known shortcomings:"
1522 msgstr ""
1523
1524 #. type: textblock
1525 #: ../cat/virt-cat.pod:200 ../edit/virt-edit.pod:289
1526 msgid "Some NTFS symbolic links may not be followed correctly."
1527 msgstr ""
1528
1529 #. type: textblock
1530 #: ../cat/virt-cat.pod:204 ../edit/virt-edit.pod:293
1531 msgid "NTFS junction points that cross filesystems are not followed."
1532 msgstr ""
1533
1534 #. type: =head1
1535 #: ../cat/virt-cat.pod:208 ../edit/virt-edit.pod:297
1536 msgid "USING GUESTFISH"
1537 msgstr "ВИКОРИСТАННЯ GUESTFISH"
1538
1539 #. type: textblock
1540 #: ../cat/virt-cat.pod:210
1541 msgid ""
1542 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1543 "C<virt-cat> doesn't work."
1544 msgstr ""
1545
1546 #. type: textblock
1547 #: ../cat/virt-cat.pod:213
1548 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1549 msgstr ""
1550
1551 #. type: verbatim
1552 #: ../cat/virt-cat.pod:215
1553 #, no-wrap
1554 msgid ""
1555 " guestfish --ro -i -d domname download file -\n"
1556 "\n"
1557 msgstr ""
1558
1559 #. type: textblock
1560 #: ../cat/virt-cat.pod:217
1561 msgid ""
1562 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1563 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1564 msgstr ""
1565
1566 #. type: textblock
1567 #: ../cat/virt-cat.pod:221
1568 msgid ""
1569 "The command above uses libguestfs's guest inspection feature and so does not "
1570 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1571 "disk images that don't contain guests.  To display a file from a disk image "
1572 "directly, use:"
1573 msgstr ""
1574
1575 #. type: verbatim
1576 #: ../cat/virt-cat.pod:226
1577 #, no-wrap
1578 msgid ""
1579 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1580 "\n"
1581 msgstr ""
1582
1583 #. type: textblock
1584 #: ../cat/virt-cat.pod:228
1585 msgid ""
1586 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1587 "the disk image, and C<file> is the full path to the file."
1588 msgstr ""
1589
1590 #. type: textblock
1591 #: ../cat/virt-cat.pod:240 ../cat/virt-filesystems.pod:382
1592 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:250 ../edit/virt-edit.pod:351
1593 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:392
1594 #: ../resize/virt-resize.pod:691 ../sparsify/virt-sparsify.pod:253
1595 msgid ""
1596 "This program returns 0 if successful, or non-zero if there was an error."
1597 msgstr ""
1598
1599 #. type: textblock
1600 #: ../cat/virt-cat.pod:245
1601 msgid ""
1602 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1603 "tar-out(1)>, L<http://libguestfs.org/>."
1604 msgstr ""
1605 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1606 "tar-out(1)>, L<http://libguestfs.org/>."
1607
1608 #. type: textblock
1609 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:420
1610 #: ../resize/virt-resize.pod:723 ../tools/virt-make-fs.pl:588
1611 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1612 msgstr "©Red Hat Inc., 2010–2011"
1613
1614 #. type: textblock
1615 #: ../cat/virt-filesystems.pod:5
1616 msgid ""
1617 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1618 "virtual machine or disk image"
1619 msgstr ""
1620
1621 #. type: verbatim
1622 #: ../cat/virt-filesystems.pod:9
1623 #, no-wrap
1624 msgid ""
1625 " virt-filesystems [--options] -d domname\n"
1626 "\n"
1627 msgstr ""
1628 " virt-filesystems [--параметри] -d назва_домену\n"
1629 "\n"
1630
1631 #. type: verbatim
1632 #: ../cat/virt-filesystems.pod:11
1633 #, no-wrap
1634 msgid ""
1635 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1636 "\n"
1637 msgstr ""
1638
1639 #. type: textblock
1640 #: ../cat/virt-filesystems.pod:15
1641 msgid ""
1642 "This tool allows you to discover filesystems, partitions, logical volumes, "
1643 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1644 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1645 msgstr ""
1646
1647 #. type: textblock
1648 #: ../cat/virt-filesystems.pod:20
1649 msgid ""
1650 "One use for this tool is from shell scripts to iterate over all filesystems "
1651 "from a disk image:"
1652 msgstr ""
1653
1654 #. type: verbatim
1655 #: ../cat/virt-filesystems.pod:23
1656 #, no-wrap
1657 msgid ""
1658 " for fs in $(virt-filesystems -a disk.img); do\n"
1659 "   # ...\n"
1660 " done\n"
1661 "\n"
1662 msgstr ""
1663 " for fs in $(virt-filesystems -a disk.img); do\n"
1664 "   # ...\n"
1665 " done\n"
1666 "\n"
1667
1668 #. type: textblock
1669 #: ../cat/virt-filesystems.pod:27
1670 msgid ""
1671 "Another use is to list partitions before using another tool to modify those "
1672 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1673 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1674 msgstr ""
1675
1676 #. type: textblock
1677 #: ../cat/virt-filesystems.pod:32
1678 msgid ""
1679 "Various command line options control what this program displays.  You need "
1680 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1681 "guest respectively.  If you just specify that then the program shows "
1682 "filesystems found, one per line, like this:"
1683 msgstr ""
1684
1685 #. type: verbatim
1686 #: ../cat/virt-filesystems.pod:37
1687 #, no-wrap
1688 msgid ""
1689 " $ virt-filesystems -a disk.img\n"
1690 " /dev/sda1\n"
1691 " /dev/vg_guest/lv_root\n"
1692 "\n"
1693 msgstr ""
1694 " $ virt-filesystems -a disk.img\n"
1695 " /dev/sda1\n"
1696 " /dev/vg_guest/lv_root\n"
1697 "\n"
1698
1699 #. type: textblock
1700 #: ../cat/virt-filesystems.pod:41
1701 msgid ""
1702 "If you add I<-l> or I<--long> then the output includes extra information:"
1703 msgstr ""
1704
1705 #. type: verbatim
1706 #: ../cat/virt-filesystems.pod:44
1707 #, no-wrap
1708 msgid ""
1709 " $ virt-filesystems -a disk.img -l\n"
1710 " Name                   Type         VFS   Label  Size\n"
1711 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1712 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1713 "\n"
1714 msgstr ""
1715
1716 #. type: textblock
1717 #: ../cat/virt-filesystems.pod:49
1718 msgid ""
1719 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1720 "shown as well:"
1721 msgstr ""
1722
1723 #. type: verbatim
1724 #: ../cat/virt-filesystems.pod:52
1725 #, no-wrap
1726 msgid ""
1727 " $ virt-filesystems -a disk.img --extra\n"
1728 " /dev/sda1\n"
1729 " /dev/vg_guest/lv_root\n"
1730 " /dev/vg_guest/lv_swap\n"
1731 " /dev/vg_guest/lv_data\n"
1732 "\n"
1733 msgstr ""
1734 " $ virt-filesystems -a disk.img --extra\n"
1735 " /dev/sda1\n"
1736 " /dev/vg_guest/lv_root\n"
1737 " /dev/vg_guest/lv_swap\n"
1738 " /dev/vg_guest/lv_data\n"
1739 "\n"
1740
1741 #. type: textblock
1742 #: ../cat/virt-filesystems.pod:58
1743 msgid ""
1744 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1745 msgstr ""
1746
1747 #. type: verbatim
1748 #: ../cat/virt-filesystems.pod:60
1749 #, no-wrap
1750 msgid ""
1751 " $ virt-filesystems -a disk.img --partitions\n"
1752 " /dev/sda1\n"
1753 " /dev/sda2\n"
1754 "\n"
1755 msgstr ""
1756 " $ virt-filesystems -a disk.img --partitions\n"
1757 " /dev/sda1\n"
1758 " /dev/sda2\n"
1759 "\n"
1760
1761 #. type: textblock
1762 #: ../cat/virt-filesystems.pod:64
1763 msgid ""
1764 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1765 "volumes>, I<--block-devices> to list those items."
1766 msgstr ""
1767
1768 #. type: textblock
1769 #: ../cat/virt-filesystems.pod:67
1770 msgid ""
1771 "You can use these options in combination as well (if you want a combination "
1772 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1773 "items fall into several categories (eg. C</dev/sda1> might be both a "
1774 "partition and a filesystem).  These items are listed several times.  To get "
1775 "a list which includes absolutely everything that virt-filesystems knows "
1776 "about, use the I<--all> option."
1777 msgstr ""
1778
1779 #. type: textblock
1780 #: ../cat/virt-filesystems.pod:74
1781 msgid ""
1782 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1783 "uuid> option to display device and filesystem UUIDs in the long output."
1784 msgstr ""
1785
1786 #. type: textblock
1787 #: ../cat/virt-filesystems.pod:78
1788 msgid ""
1789 "I<--all --long --uuid> is a useful combination to display all possible "
1790 "information about everything."
1791 msgstr ""
1792
1793 #. type: verbatim
1794 #: ../cat/virt-filesystems.pod:81
1795 #, no-wrap
1796 msgid ""
1797 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1798 " Name      Type       VFS  Label           Size Parent   UUID\n"
1799 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1800 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1801 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1802 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1803 " /dev/sda  device     -    -               20G  -        -\n"
1804 "\n"
1805 msgstr ""
1806
1807 #. type: textblock
1808 #: ../cat/virt-filesystems.pod:89
1809 msgid ""
1810 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1811 msgstr ""
1812
1813 #. type: =item
1814 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1815 msgid "B<--all>"
1816 msgstr "B<--all>"
1817
1818 #. type: textblock
1819 #: ../cat/virt-filesystems.pod:112
1820 msgid ""
1821 "Display everything.  This is currently the same as specifying these options: "
1822 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1823 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1824 "added to this list in future)."
1825 msgstr ""
1826
1827 #. type: textblock
1828 #: ../cat/virt-filesystems.pod:117
1829 msgid "See also I<--long>."
1830 msgstr "Див. також I<--long>."
1831
1832 #. type: =item
1833 #: ../cat/virt-filesystems.pod:119
1834 msgid "B<--blkdevs>"
1835 msgstr "B<--blkdevs>"
1836
1837 #. type: =item
1838 #: ../cat/virt-filesystems.pod:121
1839 msgid "B<--block-devices>"
1840 msgstr "B<--block-devices>"
1841
1842 #. type: textblock
1843 #: ../cat/virt-filesystems.pod:123
1844 msgid "Display block devices."
1845 msgstr "Показати список блокових пристроїв."
1846
1847 #. type: =item
1848 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1849 msgid "B<--csv>"
1850 msgstr "B<--csv>"
1851
1852 #. type: textblock
1853 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1854 msgid ""
1855 "Write out the results in CSV format (comma-separated values).  This format "
1856 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1857 "ABOUT CSV FORMAT> below."
1858 msgstr ""
1859
1860 #. type: textblock
1861 #: ../cat/virt-filesystems.pod:150
1862 msgid ""
1863 "When prompting for keys and passphrases, virt-filesystems normally turns "
1864 "echoing off so you cannot see what you are typing.  If you are not worried "
1865 "about Tempest attacks and there is no one else in the room you can specify "
1866 "this flag to see what you are typing."
1867 msgstr ""
1868
1869 #. type: =item
1870 #: ../cat/virt-filesystems.pod:155
1871 msgid "B<--extra>"
1872 msgstr "B<--extra>"
1873
1874 #. type: textblock
1875 #: ../cat/virt-filesystems.pod:157
1876 msgid ""
1877 "This causes filesystems that are not ordinary, mountable filesystems to be "
1878 "displayed.  This category includes swapspace, and filesystems that are empty "
1879 "or contain unknown data."
1880 msgstr ""
1881
1882 #. type: textblock
1883 #: ../cat/virt-filesystems.pod:161
1884 msgid "This option implies I<--filesystems>."
1885 msgstr ""
1886
1887 #. type: =item
1888 #: ../cat/virt-filesystems.pod:163
1889 msgid "B<--filesystems>"
1890 msgstr "B<--filesystems>"
1891
1892 #. type: textblock
1893 #: ../cat/virt-filesystems.pod:165
1894 msgid ""
1895 "Display mountable filesystems.  If no display option was selected then this "
1896 "option is implied."
1897 msgstr ""
1898
1899 #. type: textblock
1900 #: ../cat/virt-filesystems.pod:168
1901 msgid "With I<--extra>, non-mountable filesystems are shown too."
1902 msgstr ""
1903
1904 #. type: verbatim
1905 #: ../cat/virt-filesystems.pod:181
1906 #, no-wrap
1907 msgid ""
1908 " virt-filesystems --format=raw -a disk.img\n"
1909 "\n"
1910 msgstr ""
1911 " virt-filesystems --format=raw -a диск.img\n"
1912 "\n"
1913
1914 #. type: verbatim
1915 #: ../cat/virt-filesystems.pod:185
1916 #, no-wrap
1917 msgid ""
1918 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1919 "\n"
1920 msgstr ""
1921
1922 #. type: =item
1923 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1924 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1925 #: ../tools/virt-list-partitions.pl:109
1926 msgid "B<-h>"
1927 msgstr "B<-h>"
1928
1929 #. type: =item
1930 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1931 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1932 msgid "B<--human-readable>"
1933 msgstr "B<--human-readable>"
1934
1935 #. type: textblock
1936 #: ../cat/virt-filesystems.pod:198
1937 msgid "In I<--long> mode, display sizes in human-readable format."
1938 msgstr ""
1939
1940 #. type: =item
1941 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1942 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1943 msgid "B<-l>"
1944 msgstr "B<-l>"
1945
1946 #. type: =item
1947 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1948 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1949 msgid "B<--long>"
1950 msgstr "B<--long>"
1951
1952 #. type: textblock
1953 #: ../cat/virt-filesystems.pod:209
1954 msgid "Display extra columns of data (\"long format\")."
1955 msgstr ""
1956
1957 #. type: textblock
1958 #: ../cat/virt-filesystems.pod:211
1959 msgid "A title row is added unless you also specify I<--no-title>."
1960 msgstr ""
1961
1962 #. type: textblock
1963 #: ../cat/virt-filesystems.pod:213
1964 msgid ""
1965 "The extra columns displayed depend on what output you select, and the "
1966 "ordering of columns may change in future versions.  Use the title row, I<--"
1967 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1968 "programs."
1969 msgstr ""
1970
1971 #. type: textblock
1972 #: ../cat/virt-filesystems.pod:218
1973 msgid ""
1974 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1975 "default is to show raw numbers of I<bytes>."
1976 msgstr ""
1977
1978 #. type: textblock
1979 #: ../cat/virt-filesystems.pod:221
1980 msgid "Use I<--uuid> to display UUIDs too."
1981 msgstr ""
1982
1983 #. type: =item
1984 #: ../cat/virt-filesystems.pod:223
1985 msgid "B<--lvs>"
1986 msgstr "B<--lvs>"
1987
1988 #. type: =item
1989 #: ../cat/virt-filesystems.pod:225
1990 msgid "B<--logvols>"
1991 msgstr "B<--logvols>"
1992
1993 #. type: =item
1994 #: ../cat/virt-filesystems.pod:227
1995 msgid "B<--logical-volumes>"
1996 msgstr "B<--logical-volumes>"
1997
1998 #. type: textblock
1999 #: ../cat/virt-filesystems.pod:229
2000 msgid ""
2001 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
2002 "of whether the LVs contain filesystems."
2003 msgstr ""
2004
2005 #. type: =item
2006 #: ../cat/virt-filesystems.pod:232
2007 msgid "B<--no-title>"
2008 msgstr "B<--no-title>"
2009
2010 #. type: textblock
2011 #: ../cat/virt-filesystems.pod:234
2012 msgid "In I<--long> mode, don't add a title row."
2013 msgstr ""
2014
2015 #. type: textblock
2016 #: ../cat/virt-filesystems.pod:236
2017 msgid ""
2018 "Note that the order of the columns is not fixed, and may change in future "
2019 "versions of virt-filesystems, so using this option may give you unexpected "
2020 "surprises."
2021 msgstr ""
2022
2023 #. type: =item
2024 #: ../cat/virt-filesystems.pod:240
2025 msgid "B<--parts>"
2026 msgstr "B<--parts>"
2027
2028 #. type: =item
2029 #: ../cat/virt-filesystems.pod:242
2030 msgid "B<--partitions>"
2031 msgstr "B<--partitions>"
2032
2033 #. type: textblock
2034 #: ../cat/virt-filesystems.pod:244
2035 msgid ""
2036 "Display partitions.  In this mode, these are displayed irrespective of "
2037 "whether the partitions contain filesystems."
2038 msgstr ""
2039
2040 #. type: =item
2041 #: ../cat/virt-filesystems.pod:247
2042 msgid "B<--pvs>"
2043 msgstr "B<--pvs>"
2044
2045 #. type: =item
2046 #: ../cat/virt-filesystems.pod:249
2047 msgid "B<--physvols>"
2048 msgstr "B<--physvols>"
2049
2050 #. type: =item
2051 #: ../cat/virt-filesystems.pod:251
2052 msgid "B<--physical-volumes>"
2053 msgstr "B<--physical-volumes>"
2054
2055 #. type: textblock
2056 #: ../cat/virt-filesystems.pod:253
2057 msgid "Display LVM physical volumes."
2058 msgstr ""
2059
2060 #. type: =item
2061 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
2062 msgid "B<--uuid>"
2063 msgstr "B<--uuid>"
2064
2065 #. type: =item
2066 #: ../cat/virt-filesystems.pod:257
2067 msgid "B<--uuids>"
2068 msgstr "B<--uuids>"
2069
2070 #. type: textblock
2071 #: ../cat/virt-filesystems.pod:259
2072 msgid "In I<--long> mode, display UUIDs as well."
2073 msgstr ""
2074
2075 #. type: =item
2076 #: ../cat/virt-filesystems.pod:273
2077 msgid "B<--vgs>"
2078 msgstr "B<--vgs>"
2079
2080 #. type: =item
2081 #: ../cat/virt-filesystems.pod:275
2082 msgid "B<--volgroups>"
2083 msgstr "B<--volgroups>"
2084
2085 #. type: =item
2086 #: ../cat/virt-filesystems.pod:277
2087 msgid "B<--volume-groups>"
2088 msgstr "B<--volume-groups>"
2089
2090 #. type: textblock
2091 #: ../cat/virt-filesystems.pod:279
2092 msgid "Display LVM volume groups."
2093 msgstr ""
2094
2095 #. type: =head1
2096 #: ../cat/virt-filesystems.pod:287
2097 msgid "COLUMNS"
2098 msgstr "СТОВПЧИКИ"
2099
2100 #. type: textblock
2101 #: ../cat/virt-filesystems.pod:289
2102 msgid ""
2103 "Note that columns in the output are subject to reordering and change in "
2104 "future versions of this tool."
2105 msgstr ""
2106
2107 #. type: =item
2108 #: ../cat/virt-filesystems.pod:294
2109 msgid "B<Name>"
2110 msgstr ""
2111
2112 #. type: textblock
2113 #: ../cat/virt-filesystems.pod:296
2114 msgid "The filesystem, partition, block device or LVM name."
2115 msgstr ""
2116
2117 #. type: textblock
2118 #: ../cat/virt-filesystems.pod:298
2119 msgid ""
2120 "For device and partition names these are displayed as canonical libguestfs "
2121 "names, so that for example C</dev/sda2> is the second partition on the first "
2122 "device."
2123 msgstr ""
2124
2125 #. type: textblock
2126 #: ../cat/virt-filesystems.pod:302
2127 msgid ""
2128 "If the I<--long> option is B<not> specified, then only the name column is "
2129 "shown in the output."
2130 msgstr ""
2131
2132 #. type: =item
2133 #: ../cat/virt-filesystems.pod:305
2134 msgid "B<Type>"
2135 msgstr ""
2136
2137 #. type: textblock
2138 #: ../cat/virt-filesystems.pod:307
2139 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2140 msgstr ""
2141
2142 #. type: =item
2143 #: ../cat/virt-filesystems.pod:309
2144 msgid "B<VFS>"
2145 msgstr "B<VFS>"
2146
2147 #. type: textblock
2148 #: ../cat/virt-filesystems.pod:311
2149 msgid ""
2150 "If there is a filesystem, then this column displays the filesystem type if "
2151 "one could be detected, eg. C<ext4>."
2152 msgstr ""
2153
2154 #. type: =item
2155 #: ../cat/virt-filesystems.pod:314
2156 msgid "B<Label>"
2157 msgstr ""
2158
2159 #. type: textblock
2160 #: ../cat/virt-filesystems.pod:316
2161 msgid ""
2162 "If the object has a label (used for identifying and mounting filesystems) "
2163 "then this column contains the label."
2164 msgstr ""
2165
2166 #. type: =item
2167 #: ../cat/virt-filesystems.pod:319
2168 msgid "B<MBR>"
2169 msgstr ""
2170
2171 #. type: textblock
2172 #: ../cat/virt-filesystems.pod:321
2173 msgid ""
2174 "The partition type byte, displayed as a two digit hexadecimal number.  A "
2175 "comprehensive list of partition types can be found here: L<http://www.win."
2176 "tue.nl/~aeb/partitions/partition_types-1.html>"
2177 msgstr ""
2178
2179 #. type: textblock
2180 #: ../cat/virt-filesystems.pod:325
2181 msgid "This is only applicable for DOS (MBR) partitions."
2182 msgstr ""
2183
2184 #. type: =item
2185 #: ../cat/virt-filesystems.pod:327
2186 msgid "B<Size>"
2187 msgstr ""
2188
2189 #. type: textblock
2190 #: ../cat/virt-filesystems.pod:329
2191 msgid ""
2192 "The size of the object in bytes.  If the I<--human> option is used then the "
2193 "size is displayed in a human-readable form."
2194 msgstr ""
2195
2196 #. type: =item
2197 #: ../cat/virt-filesystems.pod:332
2198 msgid "B<Parent>"
2199 msgstr ""
2200
2201 #. type: textblock
2202 #: ../cat/virt-filesystems.pod:334
2203 msgid ""
2204 "The parent column records the parent relationship between objects.  For "
2205 "example, if the object is a partition, then this column contains the name of "
2206 "the containing device.  If the object is a logical volume, then this column "
2207 "is the name of the volume group."
2208 msgstr ""
2209
2210 #. type: =item
2211 #: ../cat/virt-filesystems.pod:339
2212 msgid "B<UUID>"
2213 msgstr "B<UUID>"
2214
2215 #. type: textblock
2216 #: ../cat/virt-filesystems.pod:341
2217 msgid ""
2218 "If the object has a UUID (used for identifying and mounting filesystems and "
2219 "block devices) then this column contains the UUID as a string."
2220 msgstr ""
2221
2222 #. type: textblock
2223 #: ../cat/virt-filesystems.pod:345
2224 msgid "The UUID is only displayed if the I<--uuid> option is given."
2225 msgstr ""
2226
2227 #. type: =head1
2228 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2229 #: ../df/virt-df.pod:217
2230 msgid "NOTE ABOUT CSV FORMAT"
2231 msgstr ""
2232
2233 #. type: textblock
2234 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2235 #: ../df/virt-df.pod:219
2236 msgid ""
2237 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2238 "should be easy to parse, but it is definitely not easy to parse."
2239 msgstr ""
2240
2241 #. type: textblock
2242 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2243 #: ../df/virt-df.pod:222
2244 msgid ""
2245 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2246 "reliably.  This example has two columns:"
2247 msgstr ""
2248
2249 #. type: verbatim
2250 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2251 #: ../df/virt-df.pod:225
2252 #, no-wrap
2253 msgid ""
2254 " \"foo,bar\",baz\n"
2255 "\n"
2256 msgstr ""
2257
2258 #. type: textblock
2259 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2260 #: ../df/virt-df.pod:227
2261 msgid ""
2262 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2263 "reliably.  This example has one row:"
2264 msgstr ""
2265
2266 #. type: verbatim
2267 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2268 #: ../df/virt-df.pod:230
2269 #, no-wrap
2270 msgid ""
2271 " \"foo\n"
2272 " bar\",baz\n"
2273 "\n"
2274 msgstr ""
2275
2276 #. type: textblock
2277 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2278 #: ../df/virt-df.pod:233
2279 msgid ""
2280 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2281 "packaged in major Linux distributions)."
2282 msgstr ""
2283
2284 #. type: textblock
2285 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2286 #: ../df/virt-df.pod:236
2287 msgid ""
2288 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2289 "or Python's built-in csv library)."
2290 msgstr ""
2291
2292 #. type: textblock
2293 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2294 #: ../df/virt-df.pod:239
2295 msgid "Most spreadsheets and databases can import CSV directly."
2296 msgstr ""
2297
2298 #. type: textblock
2299 #: ../cat/virt-filesystems.pod:387
2300 msgid ""
2301 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2302 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2303 "libguestfs.org/>."
2304 msgstr ""
2305 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2306 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2307 "libguestfs.org/>."
2308
2309 #. type: textblock
2310 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2311 msgid "Copyright (C) 2010 Red Hat Inc."
2312 msgstr "©Red Hat Inc., 2010"
2313
2314 #. type: textblock
2315 #: ../cat/virt-ls.pod:5
2316 msgid "virt-ls - List files in a virtual machine"
2317 msgstr ""
2318
2319 #. type: verbatim
2320 #: ../cat/virt-ls.pod:9
2321 #, no-wrap
2322 msgid ""
2323 " virt-ls [--options] -d domname directory [directory ...]\n"
2324 "\n"
2325 msgstr ""
2326
2327 #. type: verbatim
2328 #: ../cat/virt-ls.pod:11
2329 #, no-wrap
2330 msgid ""
2331 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2332 "\n"
2333 msgstr ""
2334
2335 #. type: textblock
2336 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:15
2337 msgid "Old style:"
2338 msgstr "Старий стиль:"
2339
2340 #. type: verbatim
2341 #: ../cat/virt-ls.pod:15
2342 #, no-wrap
2343 msgid ""
2344 " virt-ls [--options] domname directory\n"
2345 "\n"
2346 msgstr ""
2347
2348 #. type: verbatim
2349 #: ../cat/virt-ls.pod:17
2350 #, no-wrap
2351 msgid ""
2352 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2353 "\n"
2354 msgstr ""
2355
2356 #. type: textblock
2357 #: ../cat/virt-ls.pod:21
2358 msgid ""
2359 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2360 "more from a virtual machine or disk image."
2361 msgstr ""
2362
2363 #. type: textblock
2364 #: ../cat/virt-ls.pod:24
2365 msgid ""
2366 "Multiple directory names can be given, in which case the output from each is "
2367 "concatenated."
2368 msgstr ""
2369
2370 #. type: textblock
2371 #: ../cat/virt-ls.pod:27
2372 msgid ""
2373 "To list directories from a libvirt guest use the I<-d> option to specify the "
2374 "name of the guest.  For a disk image, use the I<-a> option."
2375 msgstr ""
2376
2377 #. type: textblock
2378 #: ../cat/virt-ls.pod:31
2379 msgid ""
2380 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2381 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2382 "(3)> API."
2383 msgstr ""
2384
2385 #. type: textblock
2386 #: ../cat/virt-ls.pod:37
2387 msgid "Get a list of all files and directories in a virtual machine:"
2388 msgstr ""
2389
2390 #. type: verbatim
2391 #: ../cat/virt-ls.pod:39
2392 #, no-wrap
2393 msgid ""
2394 " virt-ls -R -d guest /\n"
2395 "\n"
2396 msgstr ""
2397
2398 #. type: textblock
2399 #: ../cat/virt-ls.pod:41 ../examples/guestfs-testing.pod:182
2400 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2401 msgstr ""
2402
2403 #. type: verbatim
2404 #: ../cat/virt-ls.pod:43
2405 #, no-wrap
2406 msgid ""
2407 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2408 "\n"
2409 msgstr ""
2410
2411 #. type: textblock
2412 #: ../cat/virt-ls.pod:45 ../examples/guestfs-testing.pod:186
2413 msgid "List all public-writable directories in a Linux virtual machine:"
2414 msgstr ""
2415
2416 #. type: verbatim
2417 #: ../cat/virt-ls.pod:47
2418 #, no-wrap
2419 msgid ""
2420 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2421 "\n"
2422 msgstr ""
2423
2424 #. type: textblock
2425 #: ../cat/virt-ls.pod:49 ../examples/guestfs-testing.pod:190
2426 msgid "List all Unix domain sockets in a Linux virtual machine:"
2427 msgstr ""
2428
2429 #. type: verbatim
2430 #: ../cat/virt-ls.pod:51
2431 #, no-wrap
2432 msgid ""
2433 " virt-ls -lR -d guest / | grep '^s'\n"
2434 "\n"
2435 msgstr ""
2436
2437 #. type: textblock
2438 #: ../cat/virt-ls.pod:53 ../examples/guestfs-testing.pod:194
2439 msgid "List all regular files with filenames ending in '.png':"
2440 msgstr ""
2441
2442 #. type: verbatim
2443 #: ../cat/virt-ls.pod:55
2444 #, no-wrap
2445 msgid ""
2446 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2447 "\n"
2448 msgstr ""
2449
2450 #. type: textblock
2451 #: ../cat/virt-ls.pod:57
2452 msgid "To display files larger than 10MB in home directories:"
2453 msgstr ""
2454
2455 #. type: verbatim
2456 #: ../cat/virt-ls.pod:59
2457 #, no-wrap
2458 msgid ""
2459 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2460 "\n"
2461 msgstr ""
2462
2463 #. type: textblock
2464 #: ../cat/virt-ls.pod:61 ../examples/guestfs-testing.pod:202
2465 msgid "Find everything modified in the last 7 days:"
2466 msgstr ""
2467
2468 #. type: verbatim
2469 #: ../cat/virt-ls.pod:63
2470 #, no-wrap
2471 msgid ""
2472 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2473 "\n"
2474 msgstr ""
2475
2476 #. type: textblock
2477 #: ../cat/virt-ls.pod:65 ../examples/guestfs-testing.pod:206
2478 msgid "Find regular files modified in the last 24 hours:"
2479 msgstr ""
2480
2481 #. type: verbatim
2482 #: ../cat/virt-ls.pod:67
2483 #, no-wrap
2484 msgid ""
2485 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2486 "\n"
2487 msgstr ""
2488
2489 #. type: =head2
2490 #: ../cat/virt-ls.pod:69
2491 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2492 msgstr ""
2493
2494 #. type: textblock
2495 #: ../cat/virt-ls.pod:71
2496 msgid ""
2497 "Find the differences between files in a guest and an earlier snapshot of the "
2498 "same guest."
2499 msgstr ""
2500
2501 #. type: verbatim
2502 #: ../cat/virt-ls.pod:74
2503 #, no-wrap
2504 msgid ""
2505 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2506 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2507 " diff -u old new | less\n"
2508 "\n"
2509 msgstr ""
2510
2511 #. type: textblock
2512 #: ../cat/virt-ls.pod:78
2513 msgid ""
2514 "The commands above won't find files where the content has changed but the "
2515 "metadata (eg. file size and modification date) is the same.  To do that, you "
2516 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2517 "checksum> can be quite slow since it has to read and compute a checksum of "
2518 "every regular file in the virtual machine."
2519 msgstr ""
2520
2521 #. type: =head1
2522 #: ../cat/virt-ls.pod:84
2523 msgid "OUTPUT MODES"
2524 msgstr "РЕЖИМИ ВИВЕДЕННЯ ДАНИХ"
2525
2526 #. type: textblock
2527 #: ../cat/virt-ls.pod:86
2528 msgid ""
2529 "C<virt-ls> has four output modes, controlled by different combinations of "
2530 "the I<-l> and I<-R> options."
2531 msgstr ""
2532
2533 #. type: =head2
2534 #: ../cat/virt-ls.pod:89
2535 msgid "SIMPLE LISTING"
2536 msgstr "ПРОСТИЙ СПИСОК"
2537
2538 #. type: textblock
2539 #: ../cat/virt-ls.pod:91
2540 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2541 msgstr ""
2542
2543 #. type: verbatim
2544 #: ../cat/virt-ls.pod:93
2545 #, no-wrap
2546 msgid ""
2547 " $ virt-ls -d guest /\n"
2548 " bin\n"
2549 " boot\n"
2550 " [etc.]\n"
2551 "\n"
2552 msgstr ""
2553 " $ virt-ls -d guest /\n"
2554 " bin\n"
2555 " boot\n"
2556 " [тощо]\n"
2557 "\n"
2558
2559 #. type: =head2
2560 #: ../cat/virt-ls.pod:98
2561 msgid "LONG LISTING"
2562 msgstr "ДОВГИЙ СПИСОК"
2563
2564 #. type: textblock
2565 #: ../cat/virt-ls.pod:100
2566 msgid ""
2567 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2568 "(more specifically, like the C<guestfs_ll> function)."
2569 msgstr ""
2570
2571 #. type: verbatim
2572 #: ../cat/virt-ls.pod:103
2573 #, no-wrap
2574 msgid ""
2575 " $ virt-ls -l -d guest /\n"
2576 " total 204\n"
2577 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2578 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2579 " [etc.]\n"
2580 "\n"
2581 msgstr ""
2582 " $ virt-ls -l -d guest /\n"
2583 " total 204\n"
2584 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2585 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2586 " [тощо]\n"
2587 "\n"
2588
2589 #. type: textblock
2590 #: ../cat/virt-ls.pod:109
2591 msgid ""
2592 "Note that while this is useful for displaying a directory, do not try "
2593 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2594 "instead."
2595 msgstr ""
2596
2597 #. type: =head2
2598 #: ../cat/virt-ls.pod:113
2599 msgid "RECURSIVE LISTING"
2600 msgstr "РЕКУРСИВНИЙ СПИСОК"
2601
2602 #. type: textblock
2603 #: ../cat/virt-ls.pod:115
2604 msgid ""
2605 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2606 "and directories recursively:"
2607 msgstr ""
2608
2609 #. type: verbatim
2610 #: ../cat/virt-ls.pod:118
2611 #, no-wrap
2612 msgid ""
2613 " $ virt-ls -R -d guest /tmp\n"
2614 " foo\n"
2615 " foo/bar\n"
2616 " [etc.]\n"
2617 "\n"
2618 msgstr ""
2619 " $ virt-ls -R -d guest /tmp\n"
2620 " foo\n"
2621 " foo/bar\n"
2622 " [тощо]\n"
2623 "\n"
2624
2625 #. type: textblock
2626 #: ../cat/virt-ls.pod:123
2627 msgid ""
2628 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2629 "converts C<\\0> characters to C<\\n>."
2630 msgstr ""
2631
2632 #. type: =head2
2633 #: ../cat/virt-ls.pod:126
2634 msgid "RECURSIVE LONG LISTING"
2635 msgstr "РЕКУРСИВНИЙ ДОВГИЙ СПИСОК"
2636
2637 #. type: textblock
2638 #: ../cat/virt-ls.pod:128
2639 msgid ""
2640 "Using I<-lR> options together changes the output to display directories "
2641 "recursively, with file stats, and optionally other features such as "
2642 "checksums and extended attributes."
2643 msgstr ""
2644
2645 #. type: textblock
2646 #: ../cat/virt-ls.pod:132
2647 msgid ""
2648 "Most of the interesting features of C<virt-ls> are only available when using "
2649 "I<-lR> mode."
2650 msgstr ""
2651
2652 #. type: textblock
2653 #: ../cat/virt-ls.pod:135
2654 msgid ""
2655 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2656 "you cannot use the output in another program (because filenames can contain "
2657 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2658 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2659 "on you by creating filenames with embedded newline characters.  To B<safely> "
2660 "parse the output in another program, use the I<--csv> (Comma-Separated "
2661 "Values) option."
2662 msgstr ""
2663
2664 #. type: textblock
2665 #: ../cat/virt-ls.pod:143
2666 msgid ""
2667 "Note that this output format is completely unrelated to the C<ls -lR> "
2668 "command."
2669 msgstr ""
2670
2671 #. type: verbatim
2672 #: ../cat/virt-ls.pod:146
2673 #, no-wrap
2674 msgid ""
2675 " $ virt-ls -lR -d guest /bin\n"
2676 " d 0555       4096 /bin\n"
2677 " - 0755        123 /bin/alsaunmute\n"
2678 " - 0755      28328 /bin/arch\n"
2679 " l 0777          4 /bin/awk -> gawk\n"
2680 " - 0755      27216 /bin/basename\n"
2681 " - 0755     943360 /bin/bash\n"
2682 " [etc.]\n"
2683 "\n"
2684 msgstr ""
2685 " $ virt-ls -lR -d guest /bin\n"
2686 " d 0555       4096 /bin\n"
2687 " - 0755        123 /bin/alsaunmute\n"
2688 " - 0755      28328 /bin/arch\n"
2689 " l 0777          4 /bin/awk -> gawk\n"
2690 " - 0755      27216 /bin/basename\n"
2691 " - 0755     943360 /bin/bash\n"
2692 " [тощо]\n"
2693 "\n"
2694
2695 #. type: textblock
2696 #: ../cat/virt-ls.pod:155
2697 msgid "These basic fields are always shown:"
2698 msgstr ""
2699
2700 #. type: =item
2701 #: ../cat/virt-ls.pod:159
2702 msgid "type"
2703 msgstr "тип"
2704
2705 #. type: textblock
2706 #: ../cat/virt-ls.pod:161
2707 msgid ""
2708 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2709 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2710 "link), C<s> (socket) or C<u> (unknown)."
2711 msgstr ""
2712
2713 #. type: =item
2714 #: ../cat/virt-ls.pod:171
2715 msgid "permissions"
2716 msgstr "права доступу"
2717
2718 #. type: textblock
2719 #: ../cat/virt-ls.pod:173
2720 msgid "The Unix permissions, displayed as a 4 digit octal number."
2721 msgstr ""
2722
2723 #. type: =item
2724 #: ../cat/virt-ls.pod:175
2725 msgid "size"
2726 msgstr "розмір"
2727
2728 #. type: textblock
2729 #: ../cat/virt-ls.pod:177
2730 msgid ""
2731 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2732 "readable> option is given, in which case this is shown as a human-readable "
2733 "number."
2734 msgstr ""
2735
2736 #. type: =head2
2737 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4488
2738 msgid "path"
2739 msgstr "шлях"
2740
2741 #. type: textblock
2742 #: ../cat/virt-ls.pod:183
2743 msgid "The full path of the file or directory."
2744 msgstr ""
2745
2746 #. type: =item
2747 #: ../cat/virt-ls.pod:185
2748 msgid "link"
2749 msgstr "посилання"
2750
2751 #. type: textblock
2752 #: ../cat/virt-ls.pod:187
2753 msgid "For symbolic links only, the link target."
2754 msgstr ""
2755
2756 #. type: textblock
2757 #: ../cat/virt-ls.pod:191
2758 msgid ""
2759 "In I<-lR> mode, additional command line options enable the display of more "
2760 "fields."
2761 msgstr ""
2762
2763 #. type: textblock
2764 #: ../cat/virt-ls.pod:194
2765 msgid ""
2766 "With the I<--uids> flag, these additional fields are displayed before the "
2767 "path:"
2768 msgstr ""
2769
2770 #. type: =item
2771 #: ../cat/virt-ls.pod:199
2772 msgid "uid"
2773 msgstr "uid"
2774
2775 #. type: =item
2776 #: ../cat/virt-ls.pod:201
2777 msgid "gid"
2778 msgstr "gid"
2779
2780 #. type: textblock
2781 #: ../cat/virt-ls.pod:203
2782 msgid ""
2783 "The UID and GID of the owner of the file (displayed numerically).  Note "
2784 "these only make sense in the context of a Unix-like guest."
2785 msgstr ""
2786
2787 #. type: textblock
2788 #: ../cat/virt-ls.pod:208
2789 msgid "With the I<--times> flag, these additional fields are displayed:"
2790 msgstr ""
2791
2792 #. type: =item
2793 #: ../cat/virt-ls.pod:212
2794 msgid "atime"
2795 msgstr "atime"
2796
2797 #. type: textblock
2798 #: ../cat/virt-ls.pod:214
2799 msgid "The time of last access."
2800 msgstr "Час останнього доступу."
2801
2802 #. type: =item
2803 #: ../cat/virt-ls.pod:216
2804 msgid "mtime"
2805 msgstr "mtime"
2806
2807 #. type: textblock
2808 #: ../cat/virt-ls.pod:218
2809 msgid "The time of last modification."
2810 msgstr "Час останнього внесення змін."
2811
2812 #. type: =item
2813 #: ../cat/virt-ls.pod:220
2814 msgid "ctime"
2815 msgstr "ctime"
2816
2817 #. type: textblock
2818 #: ../cat/virt-ls.pod:222
2819 msgid "The time of last status change."
2820 msgstr "Час останньої зміни стану."
2821
2822 #. type: textblock
2823 #: ../cat/virt-ls.pod:226
2824 msgid ""
2825 "The time fields are displayed as string dates and times, unless one of the "
2826 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2827 msgstr ""
2828
2829 #. type: textblock
2830 #: ../cat/virt-ls.pod:229
2831 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2832 msgstr ""
2833
2834 #. type: =item
2835 #: ../cat/virt-ls.pod:233
2836 msgid "device"
2837 msgstr "пристрій"
2838
2839 #. type: textblock
2840 #: ../cat/virt-ls.pod:235
2841 msgid ""
2842 "The device containing the file (displayed as major:minor).  This may not "
2843 "match devices as known to the guest."
2844 msgstr ""
2845
2846 #. type: =item
2847 #: ../cat/virt-ls.pod:238
2848 msgid "inode"
2849 msgstr "inode"
2850
2851 #. type: textblock
2852 #: ../cat/virt-ls.pod:240
2853 msgid "The inode number."
2854 msgstr ""
2855
2856 #. type: =item
2857 #: ../cat/virt-ls.pod:242
2858 msgid "nlink"
2859 msgstr "nlink"
2860
2861 #. type: textblock
2862 #: ../cat/virt-ls.pod:244
2863 msgid "The number of hard links."
2864 msgstr "Кількість жорстких посилань."
2865
2866 #. type: =item
2867 #: ../cat/virt-ls.pod:246
2868 msgid "rdev"
2869 msgstr "rdev"
2870
2871 #. type: textblock
2872 #: ../cat/virt-ls.pod:248
2873 msgid ""
2874 "For block and char special files, the device (displayed as major:minor)."
2875 msgstr ""
2876
2877 #. type: =item
2878 #: ../cat/virt-ls.pod:251
2879 msgid "blocks"
2880 msgstr "блоки"
2881
2882 #. type: textblock
2883 #: ../cat/virt-ls.pod:253
2884 msgid "The number of 512 byte blocks allocated to the file."
2885 msgstr ""
2886
2887 #. type: textblock
2888 #: ../cat/virt-ls.pod:257
2889 msgid ""
2890 "With the I<--checksum> flag, the checksum of the file contents is shown "
2891 "(only for regular files).  Computing file checksums can take a considerable "
2892 "amount of time."
2893 msgstr ""
2894
2895 #. type: =item
2896 #: ../cat/virt-ls.pod:280
2897 msgid "B<--checksum>"
2898 msgstr "B<--checksum>"
2899
2900 #. type: =item
2901 #: ../cat/virt-ls.pod:282
2902 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2903 msgstr "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2904
2905 #. type: textblock
2906 #: ../cat/virt-ls.pod:284
2907 msgid ""
2908 "Display checksum over file contents for regular files.  With no argument, "
2909 "this defaults to using I<md5>.  Using an argument, you can select the "
2910 "checksum type to use."
2911 msgstr ""
2912
2913 #. type: textblock
2914 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2915 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2916 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2917 msgid ""
2918 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2919 "LISTING> above."
2920 msgstr ""
2921
2922 #. type: textblock
2923 #: ../cat/virt-ls.pod:316
2924 msgid ""
2925 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2926 "so you cannot see what you are typing.  If you are not worried about Tempest "
2927 "attacks and there is no one else in the room you can specify this flag to "
2928 "see what you are typing."
2929 msgstr ""
2930
2931 #. type: =item
2932 #: ../cat/virt-ls.pod:321
2933 msgid "B<--extra-stats>"
2934 msgstr "B<--extra-stats>"
2935
2936 #. type: textblock
2937 #: ../cat/virt-ls.pod:323
2938 msgid "Display extra stats."
2939 msgstr "Показати додаткові дані."
2940
2941 #. type: verbatim
2942 #: ../cat/virt-ls.pod:339
2943 #, no-wrap
2944 msgid ""
2945 " virt-ls --format=raw -a disk.img /dir\n"
2946 "\n"
2947 msgstr ""
2948
2949 #. type: verbatim
2950 #: ../cat/virt-ls.pod:343
2951 #, no-wrap
2952 msgid ""
2953 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2954 "\n"
2955 msgstr ""
2956
2957 #. type: textblock
2958 #: ../cat/virt-ls.pod:356
2959 msgid "Display file sizes in human-readable format."
2960 msgstr ""
2961
2962 #. type: =item
2963 #: ../cat/virt-ls.pod:370
2964 msgid "B<-R>"
2965 msgstr "B<-R>"
2966
2967 #. type: =item
2968 #: ../cat/virt-ls.pod:372
2969 msgid "B<--recursive>"
2970 msgstr "B<--recursive>"
2971
2972 #. type: textblock
2973 #: ../cat/virt-ls.pod:374
2974 msgid ""
2975 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2976 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2977 "LISTING>."
2978 msgstr ""
2979
2980 #. type: textblock
2981 #: ../cat/virt-ls.pod:378
2982 msgid ""
2983 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2984 "LONG LISTING>."
2985 msgstr ""
2986
2987 #. type: textblock
2988 #: ../cat/virt-ls.pod:381
2989 msgid ""
2990 "C<virt-ls -R> produces a recursive list of files starting at the named "
2991 "directory.  See L</RECURSIVE LISTING>."
2992 msgstr ""
2993
2994 #. type: textblock
2995 #: ../cat/virt-ls.pod:384
2996 msgid ""
2997 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2998 "parsed.  See L</RECURSIVE LONG LISTING>."
2999 msgstr ""
3000
3001 #. type: =item
3002 #: ../cat/virt-ls.pod:387
3003 msgid "B<--times>"
3004 msgstr "B<--times>"
3005
3006 #. type: textblock
3007 #: ../cat/virt-ls.pod:389
3008 msgid "Display time fields."
3009 msgstr ""
3010
3011 #. type: =item
3012 #: ../cat/virt-ls.pod:394
3013 msgid "B<--time-days>"
3014 msgstr "B<--time-days>"
3015
3016 #. type: textblock
3017 #: ../cat/virt-ls.pod:396
3018 msgid "Display time fields as days before now (negative if in the future)."
3019 msgstr ""
3020
3021 #. type: textblock
3022 #: ../cat/virt-ls.pod:398
3023 msgid ""
3024 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
3025 "of the file is between 0 and 86399 seconds."
3026 msgstr ""
3027
3028 #. type: =item
3029 #: ../cat/virt-ls.pod:404
3030 msgid "B<--time-relative>"
3031 msgstr "B<--time-relative>"
3032
3033 #. type: textblock
3034 #: ../cat/virt-ls.pod:406
3035 msgid "Display time fields as seconds before now (negative if in the future)."
3036 msgstr ""
3037
3038 #. type: =item
3039 #: ../cat/virt-ls.pod:411
3040 msgid "B<--time-t>"
3041 msgstr "B<--time-t>"
3042
3043 #. type: textblock
3044 #: ../cat/virt-ls.pod:413
3045 msgid "Display time fields as seconds since the Unix epoch."
3046 msgstr ""
3047
3048 #. type: =item
3049 #: ../cat/virt-ls.pod:418
3050 msgid "B<--uids>"
3051 msgstr "B<--uids>"
3052
3053 #. type: textblock
3054 #: ../cat/virt-ls.pod:420
3055 msgid "Display UID and GID fields."
3056 msgstr ""
3057
3058 #. type: textblock
3059 #: ../cat/virt-ls.pod:445
3060 msgid "Previous versions of virt-ls allowed you to write either:"
3061 msgstr ""
3062
3063 #. type: verbatim
3064 #: ../cat/virt-ls.pod:447
3065 #, no-wrap
3066 msgid ""
3067 " virt-ls disk.img [disk.img ...] /dir\n"
3068 "\n"
3069 msgstr ""
3070
3071 #. type: verbatim
3072 #: ../cat/virt-ls.pod:451
3073 #, no-wrap
3074 msgid ""
3075 " virt-ls guestname /dir\n"
3076 "\n"
3077 msgstr ""
3078
3079 #. type: textblock
3080 #: ../cat/virt-ls.pod:497
3081 msgid ""
3082 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3083 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3084 "L<http://libguestfs.org/>."
3085 msgstr ""
3086 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
3087 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3088 "L<http://libguestfs.org/>."
3089
3090 #. type: textblock
3091 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:267 ../edit/virt-edit.pod:374
3092 #: ../rescue/virt-rescue.pod:340
3093 msgid "Copyright (C) 2009-2011 Red Hat Inc."
3094 msgstr "©Red Hat Inc., 2009–2011"
3095
3096 #. type: textblock
3097 #: ../clone/virt-sysprep.pod:5
3098 msgid ""
3099 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
3100 msgstr ""
3101
3102 #. type: verbatim
3103 #: ../clone/virt-sysprep.pod:9
3104 #, no-wrap
3105 msgid ""
3106 " virt-sysprep [--options] -d domname\n"
3107 "\n"
3108 msgstr ""
3109
3110 #. type: verbatim
3111 #: ../clone/virt-sysprep.pod:11
3112 #, no-wrap
3113 msgid ""
3114 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3115 "\n"
3116 msgstr ""
3117
3118 #. type: textblock
3119 #: ../clone/virt-sysprep.pod:15
3120 msgid ""
3121 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3122 "can be made from it.  Steps in this process include removing SSH host keys, "
3123 "removing persistent network MAC configuration, and removing user accounts.  "
3124 "Each step can be enabled or disabled as required."
3125 msgstr ""
3126
3127 #. type: textblock
3128 #: ../clone/virt-sysprep.pod:21
3129 msgid ""
3130 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3131 "customization by the system administrator."
3132 msgstr ""
3133
3134 #. type: textblock
3135 #: ../clone/virt-sysprep.pod:24
3136 msgid ""
3137 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
3138 "be shut down.  If you want to preserve the existing contents of the guest, "
3139 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
3140 msgstr ""
3141
3142 #. type: textblock
3143 #: ../clone/virt-sysprep.pod:29
3144 msgid ""
3145 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
3146 "recommend that you don't.  The time you might want to run it as root is when "
3147 "you need root in order to access the disk image, but even in this case it "
3148 "would be better to change the permissions on the disk image to be writable "
3149 "as the non-root user running virt-sysprep."
3150 msgstr ""
3151
3152 #. type: textblock
3153 #: ../clone/virt-sysprep.pod:35
3154 msgid ""
3155 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
3156 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3157 "machines in preparation for cloning them.  Having said that, virt-sysprep "
3158 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
3159 "Windows sysprepping in a future version, and we already have code to do it."
3160 msgstr ""
3161
3162 #. type: =item
3163 #: ../clone/virt-sysprep.pod:76
3164 msgid "B<--enable=...>"
3165 msgstr ""
3166
3167 #. type: textblock
3168 #: ../clone/virt-sysprep.pod:78
3169 msgid ""
3170 "Choose which sysprep operations to perform.  Give a comma-separated list of "
3171 "operations, for example:"
3172 msgstr ""
3173
3174 #. type: verbatim
3175 #: ../clone/virt-sysprep.pod:81
3176 #, no-wrap
3177 msgid ""
3178 " --enable=ssh-hostkeys,udev-persistent-net\n"
3179 "\n"
3180 msgstr ""
3181
3182 #. type: textblock
3183 #: ../clone/virt-sysprep.pod:83
3184 msgid ""
3185 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3186 msgstr ""
3187
3188 #. type: textblock
3189 #: ../clone/virt-sysprep.pod:85
3190 msgid ""
3191 "If the I<--enable> option is not given, then we default to trying all "
3192 "possible sysprep operations.  But some sysprep operations are skipped for "
3193 "some guest types."
3194 msgstr ""
3195
3196 #. type: textblock
3197 #: ../clone/virt-sysprep.pod:89
3198 msgid ""
3199 "Use I<--list-operations> to list operations supported by a particular "
3200 "version of virt-sysprep."
3201 msgstr ""
3202
3203 #. type: textblock
3204 #: ../clone/virt-sysprep.pod:92
3205 msgid ""
3206 "See L</OPERATIONS> below for a list and an explanation of each operation."
3207 msgstr ""
3208
3209 #. type: verbatim
3210 #: ../clone/virt-sysprep.pod:106
3211 #, no-wrap
3212 msgid ""
3213 " virt-sysprep --format=raw -a disk.img\n"
3214 "\n"
3215 msgstr ""
3216
3217 #. type: verbatim
3218 #: ../clone/virt-sysprep.pod:110
3219 #, no-wrap
3220 msgid ""
3221 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3222 "\n"
3223 msgstr ""
3224
3225 #. type: =item
3226 #: ../clone/virt-sysprep.pod:119
3227 msgid "B<--hostname> newhostname"
3228 msgstr ""
3229
3230 #. type: textblock
3231 #: ../clone/virt-sysprep.pod:121
3232 msgid ""
3233 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3234 "defaults to C<localhost.localdomain>."
3235 msgstr ""
3236
3237 #. type: =item
3238 #: ../clone/virt-sysprep.pod:124
3239 msgid "B<--list-operations>"
3240 msgstr ""
3241
3242 #. type: textblock
3243 #: ../clone/virt-sysprep.pod:126
3244 msgid "List the operations supported by the virt-sysprep program."
3245 msgstr ""
3246
3247 #. type: =item
3248 #: ../clone/virt-sysprep.pod:128
3249 msgid "B<--selinux-relabel>"
3250 msgstr ""
3251
3252 #. type: =item
3253 #: ../clone/virt-sysprep.pod:130
3254 msgid "B<--no-selinux-relabel>"
3255 msgstr ""
3256
3257 #. type: textblock
3258 #: ../clone/virt-sysprep.pod:132
3259 msgid ""
3260 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3261 "I<--no-selinux-relabel> disables relabelling."
3262 msgstr ""
3263
3264 #. type: textblock
3265 #: ../clone/virt-sysprep.pod:135
3266 msgid ""
3267 "The default is to try to detect if SELinux relabelling is required.  See L</"
3268 "SELINUX RELABELLING> below for more details."
3269 msgstr ""
3270
3271 #. type: =head1
3272 #: ../clone/virt-sysprep.pod:156
3273 msgid "OPERATIONS"
3274 msgstr ""
3275
3276 #. type: textblock
3277 #: ../clone/virt-sysprep.pod:158
3278 msgid ""
3279 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3280 "enabled>, although some are skipped depending on the type of guest."
3281 msgstr ""
3282
3283 #. type: textblock
3284 #: ../clone/virt-sysprep.pod:162
3285 msgid ""
3286 "Operations can be individually enabled using the I<--enable> option.  Use a "
3287 "comma-separated list, for example:"
3288 msgstr ""
3289
3290 #. type: verbatim
3291 #: ../clone/virt-sysprep.pod:165
3292 #, no-wrap
3293 msgid ""
3294 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3295 "\n"
3296 msgstr ""
3297
3298 #. type: textblock
3299 #: ../clone/virt-sysprep.pod:167
3300 msgid ""
3301 "To list the operations supported by the current version of virt-sysprep, use "
3302 "I<--list-operations>."
3303 msgstr ""
3304
3305 #. type: textblock
3306 #: ../clone/virt-sysprep.pod:170
3307 msgid ""
3308 "Future versions of virt-sysprep may add more operations.  If you are using "
3309 "virt-sysprep and want predictable behaviour, specify only the operations "
3310 "that you want to have enabled."
3311 msgstr ""
3312
3313 #. type: =head2
3314 #: ../clone/virt-sysprep.pod:174
3315 msgid "cron-spool"
3316 msgstr ""
3317
3318 #. type: textblock
3319 #: ../clone/virt-sysprep.pod:176
3320 msgid "Remove user at-jobs and cron-jobs."
3321 msgstr ""
3322
3323 #. type: =head2
3324 #: ../clone/virt-sysprep.pod:178
3325 msgid "dhcp-client-state"
3326 msgstr ""
3327
3328 #. type: textblock
3329 #: ../clone/virt-sysprep.pod:180
3330 msgid "Remove DHCP client leases."
3331 msgstr ""
3332
3333 #. type: =head2
3334 #: ../clone/virt-sysprep.pod:182
3335 msgid "dhcp-server-state"
3336 msgstr ""
3337
3338 #. type: textblock
3339 #: ../clone/virt-sysprep.pod:184
3340 msgid "Remove DHCP server leases."
3341 msgstr ""
3342
3343 #. type: =head2
3344 #: ../clone/virt-sysprep.pod:186
3345 msgid "hostname"
3346 msgstr ""
3347
3348 #. type: textblock
3349 #: ../clone/virt-sysprep.pod:188
3350 msgid ""
3351 "Changes the hostname of the guest to the value given in the I<--hostname> "
3352 "parameter."
3353 msgstr ""
3354
3355 #. type: textblock
3356 #: ../clone/virt-sysprep.pod:191
3357 msgid ""
3358 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3359 "C<localhost.localdomain>."
3360 msgstr ""
3361
3362 #. type: =head2
3363 #: ../clone/virt-sysprep.pod:194
3364 msgid "logfiles"
3365 msgstr ""
3366
3367 #. type: textblock
3368 #: ../clone/virt-sysprep.pod:196
3369 msgid "Remove many log files."
3370 msgstr ""
3371
3372 #. type: =head2
3373 #: ../clone/virt-sysprep.pod:198
3374 msgid "mail-spool"
3375 msgstr ""
3376
3377 #. type: textblock
3378 #: ../clone/virt-sysprep.pod:200
3379 msgid "Remove email from the local mail spool directory."
3380 msgstr ""
3381
3382 #. type: =head2
3383 #: ../clone/virt-sysprep.pod:202
3384 msgid "net-hwaddr"
3385 msgstr ""
3386
3387 #. type: textblock
3388 #: ../clone/virt-sysprep.pod:204
3389 msgid ""
3390 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3391 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3392 msgstr ""
3393
3394 #. type: =head2
3395 #: ../clone/virt-sysprep.pod:207
3396 msgid "random-seed"
3397 msgstr ""
3398
3399 #. type: textblock
3400 #: ../clone/virt-sysprep.pod:209
3401 msgid ""
3402 "Write some random bytes from the host into the random seed file of the guest."
3403 msgstr ""
3404
3405 #. type: textblock
3406 #: ../clone/virt-sysprep.pod:212
3407 msgid "See L</RANDOM SEED> below."
3408 msgstr ""
3409
3410 #. type: =head2
3411 #: ../clone/virt-sysprep.pod:214
3412 msgid "rhn-systemid"
3413 msgstr ""
3414
3415 #. type: textblock
3416 #: ../clone/virt-sysprep.pod:216
3417 msgid "Remove the RHN system ID."
3418 msgstr ""
3419
3420 #. type: =head2
3421 #: ../clone/virt-sysprep.pod:218
3422 msgid "smolt-uuid"
3423 msgstr ""
3424
3425 #. type: textblock
3426 #: ../clone/virt-sysprep.pod:220
3427 msgid "Remove the Smolt hardware UUID."
3428 msgstr ""
3429
3430 #. type: =head2
3431 #: ../clone/virt-sysprep.pod:222
3432 msgid "ssh-hostkeys"
3433 msgstr ""
3434
3435 #. type: textblock
3436 #: ../clone/virt-sysprep.pod:224
3437 msgid "Remove the SSH host keys in the guest."
3438 msgstr ""
3439
3440 #. type: textblock
3441 #: ../clone/virt-sysprep.pod:226
3442 msgid ""
3443 "The SSH host keys are regenerated (differently) next time the guest is "
3444 "booted."
3445 msgstr ""
3446
3447 #. type: textblock
3448 #: ../clone/virt-sysprep.pod:229
3449 msgid ""
3450 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3451 "stark warning about the host key changing:"
3452 msgstr ""
3453
3454 #. type: verbatim
3455 #: ../clone/virt-sysprep.pod:232
3456 #, no-wrap
3457 msgid ""
3458 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3459 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3460 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3461 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3462 "\n"
3463 msgstr ""
3464
3465 #. type: =head2
3466 #: ../clone/virt-sysprep.pod:237
3467 msgid "udev-persistent-net"
3468 msgstr ""
3469
3470 #. type: textblock
3471 #: ../clone/virt-sysprep.pod:239
3472 msgid ""
3473 "Remove udev persistent net rules which map the guest's existing MAC address "
3474 "to a fixed ethernet device (eg. eth0)."
3475 msgstr ""
3476
3477 #. type: textblock
3478 #: ../clone/virt-sysprep.pod:242
3479 msgid ""
3480 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3481 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3482 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3483 "Erasing the udev persistent net rules avoids this."
3484 msgstr ""
3485
3486 #. type: =head2
3487 #: ../clone/virt-sysprep.pod:247
3488 msgid "utmp"
3489 msgstr ""
3490
3491 #. type: textblock
3492 #: ../clone/virt-sysprep.pod:249
3493 msgid "Remove the utmp file."
3494 msgstr ""
3495
3496 #. type: textblock
3497 #: ../clone/virt-sysprep.pod:251
3498 msgid ""
3499 "This records who is currently logged in on a machine.  In modern Linux "
3500 "distros it is stored in a ramdisk and hence not part of the virtual "
3501 "machine's disk, but it was stored on disk in older distros."
3502 msgstr ""
3503
3504 #. type: =head2
3505 #: ../clone/virt-sysprep.pod:255
3506 msgid "yum-uuid"
3507 msgstr ""
3508
3509 #. type: textblock
3510 #: ../clone/virt-sysprep.pod:257
3511 msgid "Remove the yum UUID."
3512 msgstr ""
3513
3514 #. type: textblock
3515 #: ../clone/virt-sysprep.pod:259
3516 msgid ""
3517 "Yum creates a fresh UUID the next time it runs when it notices that the "
3518 "original UUID has been erased."
3519 msgstr ""
3520
3521 #. type: =head1
3522 #: ../clone/virt-sysprep.pod:262
3523 msgid "COPYING AND CLONING"
3524 msgstr ""
3525
3526 #. type: textblock
3527 #: ../clone/virt-sysprep.pod:264
3528 msgid ""
3529 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3530 "prepare a template from which guests can be cloned.  There are many "
3531 "different ways to achieve this using the virt tools, and this section is "
3532 "just an introduction."
3533 msgstr ""
3534
3535 #. type: textblock
3536 #: ../clone/virt-sysprep.pod:269
3537 msgid "A virtual machine (when switched off) consists of two parts:"
3538 msgstr ""
3539
3540 #. type: =item
3541 #: ../clone/virt-sysprep.pod:273
3542 msgid "I<configuration>"
3543 msgstr ""
3544
3545 #. type: textblock
3546 #: ../clone/virt-sysprep.pod:275
3547 msgid ""
3548 "The configuration or description of the guest.  eg. The libvirt XML (see "
3549 "C<virsh dumpxml>), the running configuration of the guest, or another "
3550 "external format like OVF."
3551 msgstr ""
3552
3553 #. type: textblock
3554 #: ../clone/virt-sysprep.pod:279
3555 msgid "Some configuration items that might need to be changed:"
3556 msgstr ""
3557
3558 #. type: textblock
3559 #: ../clone/virt-sysprep.pod:285
3560 msgid "name"
3561 msgstr ""
3562
3563 #. type: textblock
3564 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3565 msgid "UUID"
3566 msgstr ""
3567
3568 #. type: textblock
3569 #: ../clone/virt-sysprep.pod:293
3570 msgid "path to block device(s)"
3571 msgstr ""
3572
3573 #. type: textblock
3574 #: ../clone/virt-sysprep.pod:297
3575 msgid "network card MAC address"
3576 msgstr ""
3577
3578 #. type: =item
3579 #: ../clone/virt-sysprep.pod:301
3580 msgid "I<block device(s)>"
3581 msgstr ""
3582
3583 #. type: textblock
3584 #: ../clone/virt-sysprep.pod:303
3585 msgid ""
3586 "One or more hard disk images, themselves containing files, directories, "
3587 "applications, kernels, configuration, etc."
3588 msgstr ""
3589
3590 #. type: textblock
3591 #: ../clone/virt-sysprep.pod:306
3592 msgid "Some things inside the block devices that might need to be changed:"
3593 msgstr ""
3594
3595 #. type: textblock
3596 #: ../clone/virt-sysprep.pod:312
3597 msgid "hostname and other net configuration"
3598 msgstr ""
3599
3600 #. type: textblock
3601 #: ../clone/virt-sysprep.pod:320
3602 msgid "SSH host keys"
3603 msgstr ""
3604
3605 #. type: textblock
3606 #: ../clone/virt-sysprep.pod:324
3607 msgid "Windows unique security ID (SID)"
3608 msgstr ""
3609
3610 #. type: textblock
3611 #: ../clone/virt-sysprep.pod:328
3612 msgid "Puppet registration"
3613 msgstr ""
3614
3615 #. type: =head2
3616 #: ../clone/virt-sysprep.pod:334
3617 msgid "COPYING THE BLOCK DEVICE"
3618 msgstr ""
3619
3620 #. type: textblock
3621 #: ../clone/virt-sysprep.pod:336
3622 msgid ""
3623 "Starting with an original guest, you probably wish to copy the guest block "
3624 "device and its configuration to make a template.  Then once you are happy "
3625 "with the template, you will want to make many clones from it."
3626 msgstr ""
3627
3628 #. type: verbatim
3629 #: ../clone/virt-sysprep.pod:341
3630 #, no-wrap
3631 msgid ""
3632 "                        virt-sysprep\n"
3633 "                             |\n"
3634 "                             v\n"
3635 " original guest --------> template ---------->\n"
3636 "                                      \\------> cloned\n"
3637 "                                       \\-----> guests\n"
3638 "                                        \\---->\n"
3639 "\n"
3640 msgstr ""
3641
3642 #. type: textblock
3643 #: ../clone/virt-sysprep.pod:349
3644 msgid ""
3645 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3646 "L<dd(1)>."
3647 msgstr ""
3648
3649 #. type: verbatim
3650 #: ../clone/virt-sysprep.pod:352
3651 #, no-wrap
3652 msgid ""
3653 "                   dd                 dd\n"
3654 " original guest --------> template ---------->\n"
3655 "                                      \\------> cloned\n"
3656 "                                       \\-----> guests\n"
3657 "                                        \\---->\n"
3658 "\n"
3659 msgstr ""
3660
3661 #. type: textblock
3662 #: ../clone/virt-sysprep.pod:358
3663 msgid "There are some smarter (and faster) ways too:"
3664 msgstr ""
3665
3666 #. type: verbatim
3667 #: ../clone/virt-sysprep.pod:364
3668 #, no-wrap
3669 msgid ""
3670 "                          snapshot\n"
3671 "                template ---------->\n"
3672 "                            \\------> cloned\n"
3673 "                             \\-----> guests\n"
3674 "                              \\---->\n"
3675 "\n"
3676 msgstr ""
3677
3678 #. type: textblock
3679 #: ../clone/virt-sysprep.pod:370
3680 msgid ""
3681 "Use the block device as a backing file and create a snapshot on top for each "
3682 "guest.  The advantage is that you don't need to copy the block device (very "
3683 "fast) and only changes are stored (less storage required)."
3684 msgstr ""
3685
3686 #. type: textblock
3687 #: ../clone/virt-sysprep.pod:375
3688 msgid ""
3689 "Note that writing to the backing file once you have created guests on top of "
3690 "it is not possible: you will corrupt the guests."
3691 msgstr ""
3692
3693 #. type: textblock
3694 #: ../clone/virt-sysprep.pod:378
3695 msgid ""
3696 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3697 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3698 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3699 "also create cheap snapshots from files or LUNs."
3700 msgstr ""
3701
3702 #. type: textblock
3703 #: ../clone/virt-sysprep.pod:386
3704 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3705 msgstr ""
3706
3707 #. type: textblock
3708 #: ../clone/virt-sysprep.pod:390
3709 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3710 msgstr ""
3711
3712 #. type: =head2
3713 #: ../clone/virt-sysprep.pod:394
3714 msgid "VIRT-CLONE"
3715 msgstr ""
3716
3717 #. type: textblock
3718 #: ../clone/virt-sysprep.pod:396
3719 msgid ""
3720 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3721 "and/or modify the external libvirt configuration of a guest.  It will reset "
3722 "the name, UUID and MAC address of the guest in the libvirt XML."
3723 msgstr ""
3724
3725 #. type: textblock
3726 #: ../clone/virt-sysprep.pod:401
3727 msgid ""
3728 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3729 "image.  This was the original motivation to write virt-sysprep."
3730 msgstr ""
3731
3732 #. type: =head2
3733 #: ../clone/virt-sysprep.pod:404
3734 msgid "SPARSIFY"
3735 msgstr ""
3736
3737 #. type: verbatim
3738 #: ../clone/virt-sysprep.pod:406
3739 #, no-wrap
3740 msgid ""
3741 "              virt-sparsify\n"
3742 " original guest --------> template\n"
3743 "\n"
3744 msgstr ""
3745
3746 #. type: textblock
3747 #: ../clone/virt-sysprep.pod:409
3748 msgid ""
3749 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3750 "it easier to compress and/or faster to copy."
3751 msgstr ""
3752
3753 #. type: textblock
3754 #: ../clone/virt-sysprep.pod:412
3755 msgid ""
3756 "Notice that since virt-sparsify also copies the image, you can use it to "
3757 "make the initial copy (instead of C<dd>)."
3758 msgstr ""
3759
3760 #. type: =head2
3761 #: ../clone/virt-sysprep.pod:415
3762 msgid "RESIZE"
3763 msgstr ""
3764
3765 #. type: verbatim
3766 #: ../clone/virt-sysprep.pod:417
3767 #, no-wrap
3768 msgid ""
3769 "                         virt-resize\n"
3770 "                template ---------->\n"
3771 "                            \\------> cloned\n"
3772 "                             \\-----> guests\n"
3773 "                              \\---->\n"
3774 "\n"
3775 msgstr ""
3776
3777 #. type: textblock
3778 #: ../clone/virt-sysprep.pod:423
3779 msgid ""
3780 "If you want to give people cloned guests, but let them pick the size of the "
3781 "guest themselves (eg. depending on how much they are prepared to pay for "
3782 "disk space), then instead of copying the template, you can run L<virt-resize"
3783 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3784 "guests from a template."
3785 msgstr ""
3786
3787 #. type: =head1
3788 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1164
3789 msgid "SECURITY"
3790 msgstr "БЕЗПЕКА"
3791
3792 #. type: textblock
3793 #: ../clone/virt-sysprep.pod:431
3794 msgid ""
3795 "Although virt-sysprep removes some sensitive information from the guest, it "
3796 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3797 "above, and the implementation of the operations in the shell script.  You "
3798 "should also examine the guest afterwards."
3799 msgstr ""
3800
3801 #. type: textblock
3802 #: ../clone/virt-sysprep.pod:436
3803 msgid ""
3804 "Sensitive files are simply removed.  The data they contained may still exist "
3805 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3806 "L<virt-sparsify(1)> as one way to remove this content.  See also the L<scrub"
3807 "(1)> command to get rid of deleted content in directory entries and inodes."
3808 msgstr ""
3809
3810 #. type: =head2
3811 #: ../clone/virt-sysprep.pod:442
3812 msgid "RANDOM SEED"
3813 msgstr ""
3814
3815 #. type: textblock
3816 #: ../clone/virt-sysprep.pod:444
3817 msgid "I<(This section applies to Linux guests only)>"
3818 msgstr ""
3819
3820 #. type: textblock
3821 #: ../clone/virt-sysprep.pod:446
3822 msgid ""
3823 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3824 "from the host into the guest's random seed file."
3825 msgstr ""
3826
3827 #. type: textblock
3828 #: ../clone/virt-sysprep.pod:449
3829 msgid ""
3830 "If this is just done once and the guest is cloned from the same template, "
3831 "then each guest will start with the same entropy, and things like SSH host "
3832 "keys and TCP sequence numbers may be predictable."
3833 msgstr ""
3834
3835 #. type: textblock
3836 #: ../clone/virt-sysprep.pod:453
3837 msgid ""
3838 "Therefore you should arrange to add more randomness I<after> cloning from a "
3839 "template too, which can be done by just enabling the C<random-seed> "
3840 "operation:"
3841 msgstr ""
3842
3843 #. type: verbatim
3844 #: ../clone/virt-sysprep.pod:457
3845 #, no-wrap
3846 msgid ""
3847 " cp template.img newguest.img\n"
3848 " virt-sysprep --enable=random-seed -a newguest.img\n"
3849 "\n"
3850 msgstr ""
3851
3852 #. type: =head2
3853 #: ../clone/virt-sysprep.pod:460
3854 msgid "SELINUX RELABELLING"
3855 msgstr ""
3856
3857 #. type: textblock
3858 #: ../clone/virt-sysprep.pod:462
3859 msgid "I<(This section applies to Linux guests using SELinux only)>"
3860 msgstr ""
3861
3862 #. type: textblock
3863 #: ../clone/virt-sysprep.pod:464
3864 msgid ""
3865 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3866 "autorelabel> so that these will be correctly labelled by SELinux the next "
3867 "time the guest is booted.  This process interrupts boot and can take some "
3868 "time."
3869 msgstr ""
3870
3871 #. type: textblock
3872 #: ../clone/virt-sysprep.pod:469
3873 msgid ""
3874 "You can force relabelling for all guests by supplying the I<--selinux-"
3875 "relabel> option."
3876 msgstr ""
3877
3878 #. type: textblock
3879 #: ../clone/virt-sysprep.pod:472
3880 msgid ""
3881 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3882 "relabel> option."
3883 msgstr ""
3884
3885 #. type: textblock
3886 #: ../clone/virt-sysprep.pod:484
3887 msgid "This program returns 0 on success, or 1 if there was an error."
3888 msgstr ""
3889
3890 #. type: textblock
3891 #: ../clone/virt-sysprep.pod:488
3892 msgid ""
3893 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3894 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3895 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3896 msgstr ""
3897
3898 #. type: textblock
3899 #: ../df/virt-df.pod:5
3900 msgid "virt-df - Display free space on virtual filesystems"
3901 msgstr ""
3902
3903 #. type: verbatim
3904 #: ../df/virt-df.pod:9
3905 #, no-wrap
3906 msgid ""
3907 " virt-df [--options]\n"
3908 "\n"
3909 msgstr ""
3910 " virt-df [--параметри]\n"
3911 "\n"
3912
3913 #. type: verbatim
3914 #: ../df/virt-df.pod:11
3915 #, no-wrap
3916 msgid ""
3917 " virt-df [--options] -d domname\n"
3918 "\n"
3919 msgstr ""
3920
3921 #. type: verbatim
3922 #: ../df/virt-df.pod:13
3923 #, no-wrap
3924 msgid ""
3925 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3926 "\n"
3927 msgstr ""
3928
3929 #. type: verbatim
3930 #: ../df/virt-df.pod:17
3931 #, no-wrap
3932 msgid ""
3933 " virt-df [--options] domname\n"
3934 "\n"
3935 msgstr ""
3936
3937 #. type: verbatim
3938 #: ../df/virt-df.pod:19
3939 #, no-wrap
3940 msgid ""
3941 " virt-df [--options] disk.img [disk.img ...]\n"
3942 "\n"
3943 msgstr ""
3944
3945 #. type: textblock
3946 #: ../df/virt-df.pod:23
3947 msgid ""
3948 "C<virt-df> is a command line tool to display free space on virtual machine "
3949 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3950 "allocated to a virtual machine, but can look inside disk images to see how "
3951 "much space is really being used."
3952 msgstr ""
3953
3954 #. type: textblock
3955 #: ../df/virt-df.pod:28
3956 msgid ""
3957 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3958 "to get a list of all active and inactive guests, and performs a C<df>-type "
3959 "operation on each one in turn, printing out the results."
3960 msgstr ""
3961
3962 #. type: textblock
3963 #: ../df/virt-df.pod:32
3964 msgid ""
3965 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3966 "type operation on either the single named libvirt domain, or on the disk "
3967 "image(s) listed on the command line (which must all belong to a single VM).  "
3968 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3969 "guest>.  If you want to run on multiple guests, then you have to invoke "
3970 "C<virt-df> multiple times."
3971 msgstr ""
3972
3973 #. type: textblock
3974 #: ../df/virt-df.pod:39
3975 msgid ""
3976 "Use the I<--csv> option to get a format which can be easily parsed by other "
3977 "programs.  Other options are similar to the standard L<df(1)> command."
3978 msgstr ""
3979
3980 #. type: textblock
3981 #: ../df/virt-df.pod:45
3982 msgid ""
3983 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3984 "output human-readable:"
3985 msgstr ""
3986
3987 #. type: verbatim
3988 #: ../df/virt-df.pod:48
3989 #, no-wrap
3990 msgid ""
3991 " # virt-df -d F14x64 -h\n"
3992 " Filesystem                       Size     Used  Available  Use%\n"
3993 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3994 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3995 "\n"
3996 msgstr ""
3997
3998 #. type: textblock
3999 #: ../df/virt-df.pod:53
4000 msgid "Show disk usage for a disk image file called C<test.img>:"
4001 msgstr ""
4002
4003 #. type: verbatim
4004 #: ../df/virt-df.pod:55
4005 #, no-wrap
4006 msgid ""
4007 " $ virt-df -a test1.img\n"
4008 " Filesystem                  1K-blocks     Used  Available  Use%\n"
4009 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
4010 "\n"
4011 msgstr ""
4012
4013 #. type: verbatim
4014 #: ../df/virt-df.pod:112
4015 #, no-wrap
4016 msgid ""
4017 " virt-df --format=raw -a disk.img\n"
4018 "\n"
4019 msgstr ""
4020
4021 #. type: verbatim
4022 #: ../df/virt-df.pod:116
4023 #, no-wrap
4024 msgid ""
4025 " virt-df --format=raw -a disk.img --format -a another.img\n"
4026 "\n"
4027 msgstr ""
4028
4029 #. type: textblock
4030 #: ../df/virt-df.pod:129
4031 msgid "Print sizes in human-readable format."
4032 msgstr ""
4033
4034 #. type: textblock
4035 #: ../df/virt-df.pod:131
4036 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
4037 msgstr ""
4038
4039 #. type: =item
4040 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
4041 msgid "B<-i>"
4042 msgstr "B<-i>"
4043
4044 #. type: =item
4045 #: ../df/virt-df.pod:135
4046 msgid "B<--inodes>"
4047 msgstr "B<--inodes>"
4048
4049 #. type: textblock
4050 #: ../df/virt-df.pod:137
4051 msgid "Print inodes instead of blocks."
4052 msgstr ""
4053
4054 #. type: =item
4055 #: ../df/virt-df.pod:139
4056 msgid "B<--one-per-guest>"
4057 msgstr "B<--one-per-guest>"
4058
4059 #. type: textblock
4060 #: ../df/virt-df.pod:141
4061 msgid ""
4062 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
4063 "disks from several guests to a single libguestfs appliance."
4064 msgstr ""
4065
4066 #. type: textblock
4067 #: ../df/virt-df.pod:144
4068 msgid "You might use this option in the following circumstances:"
4069 msgstr ""
4070
4071 #. type: textblock
4072 #: ../df/virt-df.pod:150
4073 msgid ""
4074 "If you think an untrusted guest might actively try to exploit the libguestfs "
4075 "appliance kernel, then this prevents one guest from interfering with the "
4076 "stats printed for another guest."
4077 msgstr ""
4078
4079 #. type: textblock
4080 #: ../df/virt-df.pod:156
4081 msgid ""
4082 "If the kernel has a bug which stops it from accessing a filesystem in one "
4083 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
4084 "and report stats for further guests."
4085 msgstr ""
4086
4087 #. type: textblock
4088 #: ../df/virt-df.pod:165
4089 msgid ""
4090 "Print UUIDs instead of names.  This is useful for following a guest even "
4091 "when the guest is migrated or renamed, or when two guests happen to have the "
4092 "same name."
4093 msgstr ""
4094
4095 #. type: textblock
4096 #: ../df/virt-df.pod:169
4097 msgid ""
4098 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
4099 "images, we still print the disk image name even when this option is "
4100 "specified."
4101 msgstr ""
4102
4103 #. type: =head1
4104 #: ../df/virt-df.pod:191
4105 #, fuzzy
4106 #| msgid "NUMBERS"
4107 msgid "STATVFS NUMBERS"
4108 msgstr "ЧИСЛА"
4109
4110 #. type: textblock
4111 #: ../df/virt-df.pod:193
4112 msgid ""
4113 "C<virt-df> (and L<df(1)>) get information by issuing a L<statvfs(3)> system "
4114 "call.  You can get the same information directly, either from the host "
4115 "(using libguestfs) or inside the guest:"
4116 msgstr ""
4117
4118 #. type: =item
4119 #: ../df/virt-df.pod:199
4120 msgid "From the host"
4121 msgstr ""
4122
4123 #. type: textblock
4124 #: ../df/virt-df.pod:201 ../df/virt-df.pod:209
4125 #, fuzzy
4126 #| msgid ""
4127 #| " sh-lines command\n"
4128 #| "\n"
4129 msgid "Run this command:"
4130 msgstr ""
4131 " sh-lines команда\n"
4132 "\n"
4133
4134 #. type: verbatim
4135 #: ../df/virt-df.pod:203
4136 #, fuzzy, no-wrap
4137 #| msgid ""
4138 #| " guestfish --ro -d myguest -i\n"
4139 #| "\n"
4140 msgid ""
4141 " guestfish --ro -d GuestName -i statvfs /\n"
4142 "\n"
4143 msgstr ""
4144 " guestfish --ro -d myguest -i\n"
4145 "\n"
4146
4147 #. type: textblock
4148 #: ../df/virt-df.pod:205 ../df/virt-df.pod:213
4149 msgid "(change C</> to see stats for other filesystems)."
4150 msgstr ""
4151
4152 #. type: =item
4153 #: ../df/virt-df.pod:207
4154 msgid "From inside the guest"
4155 msgstr ""
4156
4157 #. type: verbatim
4158 #: ../df/virt-df.pod:211
4159 #, no-wrap
4160 msgid ""
4161 " python -c 'import os; s = os.statvfs (\"/\"); print s'\n"
4162 "\n"
4163 msgstr ""
4164
4165 #. type: textblock
4166 #: ../df/virt-df.pod:255
4167 msgid ""
4168 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4169 "libguestfs.org/>."
4170 msgstr ""
4171
4172 #. type: textblock
4173 #: ../edit/virt-edit.pod:5
4174 msgid "virt-edit - Edit a file in a virtual machine"
4175 msgstr ""
4176
4177 #. type: verbatim
4178 #: ../edit/virt-edit.pod:9
4179 #, no-wrap
4180 msgid ""
4181 " virt-edit [--options] -d domname file [file ...]\n"
4182 "\n"
4183 msgstr ""
4184
4185 #. type: verbatim
4186 #: ../edit/virt-edit.pod:11
4187 #, no-wrap
4188 msgid ""
4189 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4190 "\n"
4191 msgstr ""
4192
4193 #. type: verbatim
4194 #: ../edit/virt-edit.pod:13
4195 #, no-wrap
4196 msgid ""
4197 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4198 "\n"
4199 msgstr ""
4200
4201 #. type: verbatim
4202 #: ../edit/virt-edit.pod:17
4203 #, no-wrap
4204 msgid ""
4205 " virt-edit domname file\n"
4206 "\n"
4207 msgstr ""
4208
4209 #. type: verbatim
4210 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4211 #, no-wrap
4212 msgid ""
4213 " virt-edit disk.img [disk.img ...] file\n"
4214 "\n"
4215 msgstr ""
4216
4217 #. type: =head1
4218 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4219 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4220 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:21
4221 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4222 msgid "WARNING"
4223 msgstr "ПОПЕРЕДЖЕННЯ"
4224
4225 #. type: textblock
4226 #: ../edit/virt-edit.pod:23
4227 msgid ""
4228 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
4229 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
4230 "doing this, but doesn't catch all cases."
4231 msgstr ""
4232
4233 #. type: textblock
4234 #: ../edit/virt-edit.pod:29
4235 msgid ""
4236 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4237 "exists in the named virtual machine (or disk image)."
4238 msgstr ""
4239
4240 #. type: textblock
4241 #: ../edit/virt-edit.pod:32
4242 msgid ""
4243 "Multiple filenames can be given, in which case they are each edited in "
4244 "turn.  Each filename must be a full path, starting at the root directory "
4245 "(starting with '/')."
4246 msgstr ""
4247
4248 #. type: textblock
4249 #: ../edit/virt-edit.pod:36
4250 msgid "If you want to just view a file, use L<virt-cat(1)>."
4251 msgstr ""
4252
4253 #. type: textblock
4254 #: ../edit/virt-edit.pod:38
4255 msgid ""
4256 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4257 "USING GUESTFISH> below)."
4258 msgstr ""
4259
4260 #. type: textblock
4261 #: ../edit/virt-edit.pod:41
4262 msgid ""
4263 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
4264 "that and much more."
4265 msgstr ""
4266
4267 #. type: textblock
4268 #: ../edit/virt-edit.pod:46
4269 msgid "Edit the named files interactively:"
4270 msgstr ""
4271
4272 #. type: verbatim
4273 #: ../edit/virt-edit.pod:48
4274 #, no-wrap
4275 msgid ""
4276 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4277 "\n"
4278 msgstr ""
4279
4280 #. type: verbatim
4281 #: ../edit/virt-edit.pod:50
4282 #, no-wrap
4283 msgid ""
4284 " virt-edit -d mydomain /etc/passwd\n"
4285 "\n"
4286 msgstr ""
4287
4288 #. type: textblock
4289 #: ../edit/virt-edit.pod:52
4290 msgid "For Windows guests, some Windows paths are understood:"
4291 msgstr ""
4292
4293 #. type: verbatim
4294 #: ../edit/virt-edit.pod:54
4295 #, no-wrap
4296 msgid ""
4297 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4298 "\n"
4299 msgstr ""
4300
4301 #. type: textblock
4302 #: ../edit/virt-edit.pod:56
4303 msgid ""
4304 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4305 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4306 msgstr ""
4307
4308 #. type: verbatim
4309 #: ../edit/virt-edit.pod:60
4310 #, no-wrap
4311 msgid ""
4312 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4313 "\n"
4314 msgstr ""
4315
4316 #. type: =item
4317 #: ../edit/virt-edit.pod:81
4318 msgid "B<-b> extension"
4319 msgstr ""
4320
4321 #. type: =item
4322 #: ../edit/virt-edit.pod:83
4323 msgid "B<--backup> extension"
4324 msgstr ""
4325
4326 #. type: textblock
4327 #: ../edit/virt-edit.pod:85
4328 msgid ""
4329 "Create a backup of the original file I<in the guest disk image>.  The backup "
4330 "has the original filename with C<extension> added."
4331 msgstr ""
4332
4333 #. type: textblock
4334 #: ../edit/virt-edit.pod:88
4335 msgid ""
4336 "Usually the first character of C<extension> would be a dot C<.> so you would "
4337 "write:"
4338 msgstr ""
4339
4340 #. type: verbatim
4341 #: ../edit/virt-edit.pod:91
4342 #, no-wrap
4343 msgid ""
4344 " virt-edit -b .orig [etc]\n"
4345 "\n"
4346 msgstr ""
4347
4348 #. type: textblock
4349 #: ../edit/virt-edit.pod:93
4350 msgid "By default, no backup file is made."
4351 msgstr ""
4352
4353 #. type: =item
4354 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4355 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4356 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4357 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4358 msgid "B<-c URI>"
4359 msgstr "B<-c адреса>"
4360
4361 #. type: =item
4362 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4363 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4364 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4365 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4366 msgid "B<--connect URI>"
4367 msgstr "B<--connect адреса>"
4368
4369 #. type: textblock
4370 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4371 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4372 #: ../tools/virt-win-reg.pl:135
4373 msgid ""
4374 "If you specify guest block devices directly, then libvirt is not used at all."
4375 msgstr ""
4376
4377 #. type: textblock
4378 #: ../edit/virt-edit.pod:114
4379 msgid ""
4380 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4381 "off so you cannot see what you are typing.  If you are not worried about "
4382 "Tempest attacks and there is no one else in the room you can specify this "
4383 "flag to see what you are typing."
4384 msgstr ""
4385
4386 #. type: =item
4387 #: ../edit/virt-edit.pod:119
4388 msgid "B<-e> EXPR"
4389 msgstr "B<-e> вираз"
4390
4391 #. type: =item
4392 #: ../edit/virt-edit.pod:121
4393 msgid "B<--expr> EXPR"
4394 msgstr "B<--expr> вираз"
4395
4396 #. type: textblock
4397 #: ../edit/virt-edit.pod:123
4398 msgid ""
4399 "Instead of launching the external editor, non-interactively apply the Perl "
4400 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4401 "EDITING> below."
4402 msgstr ""
4403
4404 #. type: textblock
4405 #: ../edit/virt-edit.pod:127
4406 msgid ""
4407 "Be careful to properly quote the expression to prevent it from being altered "
4408 "by the shell."
4409 msgstr ""
4410
4411 #. type: textblock
4412 #: ../edit/virt-edit.pod:130
4413 msgid "Note that this option is only available when Perl 5 is installed."
4414 msgstr ""
4415
4416 #. type: =item
4417 #: ../edit/virt-edit.pod:132
4418 msgid "B<--format> raw|qcow2|..."
4419 msgstr "B<--format> raw|qcow2|..."
4420
4421 #. type: verbatim
4422 #: ../edit/virt-edit.pod:143
4423 #, no-wrap
4424 msgid ""
4425 " virt-edit --format=raw -a disk.img file\n"
4426 "\n"
4427 msgstr ""
4428
4429 #. type: verbatim
4430 #: ../edit/virt-edit.pod:147
4431 #, no-wrap
4432 msgid ""
4433 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4434 "\n"
4435 msgstr ""
4436
4437 #. type: textblock
4438 #: ../edit/virt-edit.pod:181
4439 msgid "Previous versions of virt-edit allowed you to write either:"
4440 msgstr ""
4441
4442 #. type: verbatim
4443 #: ../edit/virt-edit.pod:187
4444 #, no-wrap
4445 msgid ""
4446 " virt-edit guestname file\n"
4447 "\n"
4448 msgstr ""
4449
4450 #. type: =head1
4451 #: ../edit/virt-edit.pod:195
4452 msgid "NON-INTERACTIVE EDITING"
4453 msgstr "НЕІНТЕРАКТИВНЕ РЕДАГУВАННЯ"
4454
4455 #. type: textblock
4456 #: ../edit/virt-edit.pod:197
4457 msgid ""
4458 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4459 "administrator can interactively edit the file."
4460 msgstr ""
4461
4462 #. type: textblock
4463 #: ../edit/virt-edit.pod:200
4464 msgid ""
4465 "There are two ways also to use C<virt-edit> from scripts in order to make "
4466 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4467 "like this, it's less error-prone to write scripts directly using the "
4468 "libguestfs API and Augeas for configuration file editing.)"
4469 msgstr ""
4470
4471 #. type: textblock
4472 #: ../edit/virt-edit.pod:206
4473 msgid ""
4474 "The first method is to temporarily set C<$EDITOR> to any script or program "
4475 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4476 "update C<tmpfile> in place however it likes."
4477 msgstr ""
4478
4479 #. type: textblock
4480 #: ../edit/virt-edit.pod:210
4481 msgid ""
4482 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4483 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4484 "instances of C<foo> with C<bar> in a file:"
4485 msgstr ""
4486
4487 #. type: verbatim
4488 #: ../edit/virt-edit.pod:214
4489 #, no-wrap
4490 msgid ""
4491 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4492 "\n"
4493 msgstr ""
4494
4495 #. type: textblock
4496 #: ../edit/virt-edit.pod:216
4497 msgid ""
4498 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4499 "For example to delete root's password you could do:"
4500 msgstr ""
4501
4502 #. type: verbatim
4503 #: ../edit/virt-edit.pod:219
4504 #, no-wrap
4505 msgid ""
4506 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4507 "\n"
4508 msgstr ""
4509 " virt-edit -d назва_домену /etc/passwd -e 's/^root:.*?:/root::/'\n"
4510 "\n"
4511
4512 #. type: textblock
4513 #: ../edit/virt-edit.pod:221
4514 msgid ""
4515 "What really happens is that the snippet is evaluated as a Perl expression "
4516 "for each line of the file.  The line, including the final C<\\n>, is passed "
4517 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4518 msgstr ""
4519
4520 #. type: textblock
4521 #: ../edit/virt-edit.pod:226
4522 msgid ""
4523 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4524 "C<apache> user account from the password file you can do:"
4525 msgstr ""
4526
4527 #. type: verbatim
4528 #: ../edit/virt-edit.pod:229
4529 #, no-wrap
4530 msgid ""
4531 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4532 "\n"
4533 msgstr ""
4534 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4535 "\n"
4536
4537 #. type: textblock
4538 #: ../edit/virt-edit.pod:231
4539 msgid ""
4540 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4541 "the end of the file is rather difficult this way since there is no concept "
4542 "of \"last line of the file\" - your expression just doesn't get called "
4543 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4544 "want to do this."
4545 msgstr ""
4546
4547 #. type: textblock
4548 #: ../edit/virt-edit.pod:237
4549 msgid ""
4550 "The variable C<$lineno> contains the current line number.  As is "
4551 "traditional, the first line in the file is number C<1>."
4552 msgstr ""
4553
4554 #. type: textblock
4555 #: ../edit/virt-edit.pod:240
4556 msgid ""
4557 "The return value from the expression is ignored, but the expression may call "
4558 "C<die> in order to abort the whole program, leaving the original file "
4559 "untouched."
4560 msgstr ""
4561
4562 #. type: textblock
4563 #: ../edit/virt-edit.pod:244
4564 msgid ""
4565 "Remember when matching the end of a line that C<$_> may contain the final C<"
4566 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4567 "newline then neither of these.  Thus to match or substitute some text at the "
4568 "end of a line, use this regular expression:"
4569 msgstr ""
4570
4571 #. type: verbatim
4572 #: ../edit/virt-edit.pod:249
4573 #, no-wrap
4574 msgid ""
4575 " /some text(\\r?\\n)?$/\n"
4576 "\n"
4577 msgstr ""
4578 " /якийсь текст(\\r?\\n)?$/\n"
4579 "\n"
4580
4581 #. type: textblock
4582 #: ../edit/virt-edit.pod:251
4583 msgid ""
4584 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4585 "$_> itself (since that would remove all newlines from the file):"
4586 msgstr ""
4587
4588 #. type: verbatim
4589 #: ../edit/virt-edit.pod:255
4590 #, no-wrap
4591 msgid ""
4592 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4593 "\n"
4594 msgstr ""
4595 " my $m = $_; chomp $m; $m =~ /якийсь текст$/\n"
4596 "\n"
4597
4598 #. type: textblock
4599 #: ../edit/virt-edit.pod:259
4600 msgid ""
4601 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4602 "paths (eg. C<E:\\foo\\bar.txt>)."
4603 msgstr ""
4604
4605 #. type: textblock
4606 #: ../edit/virt-edit.pod:278
4607 msgid ""
4608 "The path is resolved case insensitively to locate the file that should be "
4609 "edited."
4610 msgstr ""
4611
4612 #. type: textblock
4613 #: ../edit/virt-edit.pod:299
4614 msgid ""
4615 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4616 "C<virt-edit> doesn't work."
4617 msgstr ""
4618
4619 #. type: textblock
4620 #: ../edit/virt-edit.pod:302
4621 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4622 msgstr ""
4623
4624 #. type: verbatim
4625 #: ../edit/virt-edit.pod:304
4626 #, no-wrap
4627 msgid ""
4628 " guestfish --rw -i -d domname edit /file\n"
4629 "\n"
4630 msgstr ""
4631
4632 #. type: textblock
4633 #: ../edit/virt-edit.pod:306
4634 msgid ""
4635 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4636 "path to the file."
4637 msgstr ""
4638
4639 #. type: textblock
4640 #: ../edit/virt-edit.pod:309
4641 msgid ""
4642 "The command above uses libguestfs's guest inspection feature and so does not "
4643 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4644 "disk images that don't contain guests.  To edit a file on a disk image "
4645 "directly, use:"
4646 msgstr ""
4647
4648 #. type: verbatim
4649 #: ../edit/virt-edit.pod:314
4650 #, no-wrap
4651 msgid ""
4652 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4653 "\n"
4654 msgstr ""
4655
4656 #. type: textblock
4657 #: ../edit/virt-edit.pod:316
4658 msgid ""
4659 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4660 "the disk image to edit, and C</file> is the full path to the file."
4661 msgstr ""
4662
4663 #. type: textblock
4664 #: ../edit/virt-edit.pod:320
4665 msgid ""
4666 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4667 "C<write> or C<upload> instead:"
4668 msgstr ""
4669
4670 #. type: verbatim
4671 #: ../edit/virt-edit.pod:323
4672 #, no-wrap
4673 msgid ""
4674 " guestfish --rw -i -d domname touch /newfile\n"
4675 "\n"
4676 msgstr ""
4677
4678 #. type: verbatim
4679 #: ../edit/virt-edit.pod:325
4680 #, no-wrap
4681 msgid ""
4682 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4683 "\n"
4684 msgstr ""
4685
4686 #. type: verbatim
4687 #: ../edit/virt-edit.pod:327
4688 #, no-wrap
4689 msgid ""
4690 " guestfish --rw -i -d domname upload localfile /newfile\n"
4691 "\n"
4692 msgstr ""
4693
4694 #. type: =head1
4695 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4696 #: ../rescue/virt-rescue.pod:298 ../sparsify/virt-sparsify.pod:256
4697 #: ../src/guestfs.pod:3214 ../test-tool/libguestfs-test-tool.pod:95
4698 msgid "ENVIRONMENT VARIABLES"
4699 msgstr "ЗМІННІ СЕРЕДОВИЩА"
4700
4701 #. type: =item
4702 #: ../edit/virt-edit.pod:333
4703 msgid "C<EDITOR>"
4704 msgstr "C<EDITOR>"
4705
4706 #. type: textblock
4707 #: ../edit/virt-edit.pod:335
4708 msgid ""
4709 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4710 "\"emacs -nw\">"
4711 msgstr ""
4712
4713 #. type: textblock
4714 #: ../edit/virt-edit.pod:338
4715 msgid "If not set, C<vi> is used."
4716 msgstr ""
4717
4718 #. type: textblock
4719 #: ../edit/virt-edit.pod:356
4720 msgid ""
4721 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4722 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4723 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4724 msgstr ""
4725 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4726 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4727 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4728
4729 #. type: textblock
4730 #: ../erlang/examples/guestfs-erlang.pod:5
4731 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4732 msgstr ""
4733
4734 #. type: verbatim
4735 #: ../erlang/examples/guestfs-erlang.pod:9
4736 #, no-wrap
4737 msgid ""
4738 " {ok, G} = guestfs:create(),\n"
4739 " ok = guestfs:add_drive_opts(G, Disk,\n"
4740 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4741 " ok = guestfs:launch(G),\n"
4742 " [Device] = guestfs:list_devices(G),\n"
4743 " ok = guestfs:close(G).\n"
4744 "\n"
4745 msgstr ""
4746
4747 #. type: textblock
4748 #: ../erlang/examples/guestfs-erlang.pod:18
4749 msgid ""
4750 "This manual page documents how to call libguestfs from the Erlang "
4751 "programming language.  This page just documents the differences from the C "
4752 "API and gives some examples.  If you are not familiar with using libguestfs, "
4753 "you also need to read L<guestfs(3)>."
4754 msgstr ""
4755
4756 #. type: =head2
4757 #: ../erlang/examples/guestfs-erlang.pod:23
4758 msgid "OPENING AND CLOSING THE HANDLE"
4759 msgstr ""
4760
4761 #. type: textblock
4762 #: ../erlang/examples/guestfs-erlang.pod:25
4763 msgid ""
4764 "The Erlang bindings are implemented using an external program called C<erl-"
4765 "guestfs>.  This program must be on the current PATH, or else you should "
4766 "specify the full path to the program:"
4767 msgstr ""
4768
4769 #. type: verbatim
4770 #: ../erlang/examples/guestfs-erlang.pod:29
4771 #, no-wrap
4772 msgid ""
4773 " {ok, G} = guestfs:create().\n"
4774 "\n"
4775 msgstr ""
4776
4777 #. type: verbatim
4778 #: ../erlang/examples/guestfs-erlang.pod:31
4779 #, no-wrap
4780 msgid ""
4781 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4782 "\n"
4783 msgstr ""
4784
4785 #. type: textblock
4786 #: ../erlang/examples/guestfs-erlang.pod:33
4787 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4788 msgstr ""
4789
4790 #. type: textblock
4791 #: ../erlang/examples/guestfs-erlang.pod:36
4792 msgid "To close the handle:"
4793 msgstr ""
4794
4795 #. type: verbatim
4796 #: ../erlang/examples/guestfs-erlang.pod:38
4797 #, no-wrap
4798 msgid ""
4799 " ok = guestfs:close(G).\n"
4800 "\n"
4801 msgstr ""
4802
4803 #. type: =head2
4804 #: ../erlang/examples/guestfs-erlang.pod:40
4805 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4806 msgstr ""
4807
4808 #. type: textblock
4809 #: ../erlang/examples/guestfs-erlang.pod:42
4810 msgid ""
4811 "For functions that take optional arguments, the first arguments are the non-"
4812 "optional ones.  The last argument is a list of tuples supplying the "
4813 "remaining optional arguments."
4814 msgstr ""
4815
4816 #. type: verbatim
4817 #: ../erlang/examples/guestfs-erlang.pod:46
4818 #, no-wrap
4819 msgid ""
4820 " ok = guestfs:add_drive_opts(G, Disk,\n"
4821 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4822 "\n"
4823 msgstr ""
4824
4825 #. type: textblock
4826 #: ../erlang/examples/guestfs-erlang.pod:49
4827 msgid "If the last argument would be an empty list, you can also omit it:"
4828 msgstr ""
4829
4830 #. type: verbatim
4831 #: ../erlang/examples/guestfs-erlang.pod:51
4832 #, no-wrap
4833 msgid ""
4834 " ok = guestfs:add_drive_opts(G, Disk).\n"
4835 "\n"
4836 msgstr ""
4837
4838 #. type: =head2
4839 #: ../erlang/examples/guestfs-erlang.pod:53
4840 msgid "RETURN VALUES AND ERRORS"
4841 msgstr ""
4842
4843 #. type: textblock
4844 #: ../erlang/examples/guestfs-erlang.pod:55
4845 msgid ""
4846 "On success, most functions return a C<Result> term (which could be a list, "
4847 "string, tuple etc.).  If there is nothing for the function to return, then "
4848 "the atom C<ok> is returned."
4849 msgstr ""
4850
4851 #. type: textblock
4852 #: ../erlang/examples/guestfs-erlang.pod:59
4853 msgid "On error, you would see one of the following tuples:"
4854 msgstr ""
4855
4856 #. type: =item
4857 #: ../erlang/examples/guestfs-erlang.pod:63
4858 msgid "C<{error, Msg, Errno}>"
4859 msgstr ""
4860
4861 #. type: textblock
4862 #: ../erlang/examples/guestfs-erlang.pod:65
4863 msgid "This indicates an ordinary error from the function."
4864 msgstr ""
4865
4866 #. type: textblock
4867 #: ../erlang/examples/guestfs-erlang.pod:67
4868 msgid ""
4869 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4870 "(integer)."
4871 msgstr ""
4872
4873 #. type: textblock
4874 #: ../erlang/examples/guestfs-erlang.pod:70
4875 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4876 msgstr ""
4877
4878 #. type: =item
4879 #: ../erlang/examples/guestfs-erlang.pod:72
4880 msgid "C<{unknown, Function}>"
4881 msgstr ""
4882
4883 #. type: textblock
4884 #: ../erlang/examples/guestfs-erlang.pod:74
4885 msgid ""
4886 "This indicates that the function you called is not known.  Generally this "
4887 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4888 "which you should not do."
4889 msgstr ""
4890
4891 #. type: textblock
4892 #: ../erlang/examples/guestfs-erlang.pod:78
4893 msgid "C<Function> is the name of the unknown function."
4894 msgstr ""
4895
4896 #. type: =item
4897 #: ../erlang/examples/guestfs-erlang.pod:80
4898 msgid "C<{unknownarg, Arg}>"
4899 msgstr ""
4900
4901 #. type: textblock
4902 #: ../erlang/examples/guestfs-erlang.pod:82
4903 msgid ""
4904 "This indicates that you called a function with optional arguments, with an "
4905 "unknown argument name."
4906 msgstr ""
4907
4908 #. type: textblock
4909 #: ../erlang/examples/guestfs-erlang.pod:85
4910 msgid "C<Arg> is the name of the unknown argument."
4911 msgstr ""
4912
4913 #. type: =head1
4914 #: ../erlang/examples/guestfs-erlang.pod:89
4915 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4916 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4917 #: ../python/examples/guestfs-python.pod:34
4918 #: ../ruby/examples/guestfs-ruby.pod:28
4919 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4920 msgstr "ПРИКЛАД 1. СТВОРЕННЯ ОБРАЗУ ДИСКА"
4921
4922 #. type: textblock
4923 #: ../erlang/examples/guestfs-erlang.pod:91
4924 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4925 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4926 #: ../python/examples/guestfs-python.pod:36
4927 #: ../ruby/examples/guestfs-ruby.pod:30
4928 msgid "@EXAMPLE1@"
4929 msgstr "@EXAMPLE1@"
4930
4931 #. type: =head1
4932 #: ../erlang/examples/guestfs-erlang.pod:93
4933 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4934 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4935 #: ../python/examples/guestfs-python.pod:38
4936 #: ../ruby/examples/guestfs-ruby.pod:32
4937 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4938 msgstr "ПРИКЛАД 2. ПЕРЕВІРКА ОБРАЗУ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
4939
4940 #. type: textblock
4941 #: ../erlang/examples/guestfs-erlang.pod:95
4942 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4943 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4944 #: ../python/examples/guestfs-python.pod:40
4945 #: ../ruby/examples/guestfs-ruby.pod:34
4946 msgid "@EXAMPLE2@"
4947 msgstr "@EXAMPLE2@"
4948
4949 #. type: textblock
4950 #: ../erlang/examples/guestfs-erlang.pod:99
4951 msgid ""
4952 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4953 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4954 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4955 msgstr ""
4956
4957 #. type: =head1
4958 #: ../erlang/examples/guestfs-erlang.pod:110
4959 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4960 #: ../examples/guestfs-testing.pod:298 ../fish/guestfish.pod:1296
4961 #: ../fish/virt-copy-in.pod:60 ../fish/virt-copy-out.pod:49
4962 #: ../fish/virt-tar-in.pod:58 ../fish/virt-tar-out.pod:51
4963 #: ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:404
4964 #: ../java/examples/guestfs-java.pod:58 ../ocaml/examples/guestfs-ocaml.pod:91
4965 #: ../perl/examples/guestfs-perl.pod:52
4966 #: ../python/examples/guestfs-python.pod:54
4967 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3354
4968 #: ../test-tool/libguestfs-test-tool.pod:106
4969 msgid "AUTHORS"
4970 msgstr "АВТОРИ"
4971
4972 #. type: textblock
4973 #: ../erlang/examples/guestfs-erlang.pod:112
4974 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4975 #: ../examples/guestfs-testing.pod:300 ../fish/guestfish.pod:1298
4976 #: ../fish/virt-copy-in.pod:62 ../fish/virt-copy-out.pod:51
4977 #: ../fish/virt-tar-in.pod:60 ../fish/virt-tar-out.pod:53
4978 #: ../fuse/guestmount.pod:330 ../java/examples/guestfs-java.pod:60
4979 #: ../ocaml/examples/guestfs-ocaml.pod:93 ../perl/examples/guestfs-perl.pod:54
4980 #: ../python/examples/guestfs-python.pod:56
4981 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3356
4982 #: ../test-tool/libguestfs-test-tool.pod:108
4983 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4984 msgstr "Richard W.M. Jones (C<rjones at redhat dot com>)"
4985
4986 #. type: textblock
4987 #: ../erlang/examples/guestfs-erlang.pod:116
4988 #: ../examples/guestfs-testing.pod:304 ../java/examples/guestfs-java.pod:64
4989 #: ../perl/examples/guestfs-perl.pod:58
4990 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4991 msgstr ""
4992
4993 #. type: textblock
4994 #: ../erlang/examples/guestfs-erlang.pod:118
4995 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4996 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4997 #: ../perl/examples/guestfs-perl.pod:60
4998 #: ../python/examples/guestfs-python.pod:62
4999 #: ../ruby/examples/guestfs-ruby.pod:56
5000 msgid ""
5001 "The examples in this manual page may be freely copied, modified and "
5002 "distributed without any restrictions."
5003 msgstr ""
5004
5005 #. type: textblock
5006 #: ../erlang/examples/guestfs-erlang.pod:121
5007 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
5008 #: ../examples/guestfs-testing.pod:306 ../java/examples/guestfs-java.pod:69
5009 #: ../ocaml/examples/guestfs-ocaml.pod:102
5010 #: ../perl/examples/guestfs-perl.pod:63
5011 #: ../python/examples/guestfs-python.pod:65
5012 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3363
5013 msgid ""
5014 "This library is free software; you can redistribute it and/or modify it "
5015 "under the terms of the GNU Lesser General Public License as published by the "
5016 "Free Software Foundation; either version 2 of the License, or (at your "
5017 "option) any later version."
5018 msgstr ""
5019
5020 #. type: textblock
5021 #: ../erlang/examples/guestfs-erlang.pod:126
5022 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
5023 #: ../examples/guestfs-testing.pod:311 ../java/examples/guestfs-java.pod:74
5024 #: ../ocaml/examples/guestfs-ocaml.pod:107
5025 #: ../perl/examples/guestfs-perl.pod:68
5026 #: ../python/examples/guestfs-python.pod:70
5027 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3368
5028 msgid ""
5029 "This library is distributed in the hope that it will be useful, but WITHOUT "
5030 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
5031 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
5032 "for more details."
5033 msgstr ""
5034
5035 #. type: textblock
5036 #: ../erlang/examples/guestfs-erlang.pod:131
5037 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
5038 #: ../examples/guestfs-testing.pod:316 ../java/examples/guestfs-java.pod:79
5039 #: ../ocaml/examples/guestfs-ocaml.pod:112
5040 #: ../perl/examples/guestfs-perl.pod:73
5041 #: ../python/examples/guestfs-python.pod:75
5042 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3373
5043 msgid ""
5044 "You should have received a copy of the GNU Lesser General Public License "
5045 "along with this library; if not, write to the Free Software Foundation, "
5046 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
5047 msgstr ""
5048
5049 #. type: textblock
5050 #: ../examples/guestfs-examples.pod:5
5051 msgid "guestfs-examples - Examples of using libguestfs from C"
5052 msgstr ""
5053
5054 #. type: verbatim
5055 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
5056 #, no-wrap
5057 msgid ""
5058 " #include <guestfs.h>\n"
5059 " \n"
5060 msgstr ""
5061 " #include <guestfs.h>\n"
5062 " \n"
5063
5064 #. type: verbatim
5065 #: ../examples/guestfs-examples.pod:11
5066 #, no-wrap
5067 msgid ""
5068 " guestfs_h *g = guestfs_create ();\n"
5069 " guestfs_add_drive_ro (g, \"disk.img\");\n"
5070 " guestfs_launch (g);\n"
5071 "\n"
5072 msgstr ""
5073 " guestfs_h *g = guestfs_create ();\n"
5074 " guestfs_add_drive_ro (g, \"disk.img\");\n"
5075 " guestfs_launch (g);\n"
5076 "\n"
5077
5078 #. type: verbatim
5079 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
5080 #, no-wrap
5081 msgid ""
5082 " cc prog.c -o prog -lguestfs\n"
5083 "or:\n"
5084 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5085 "\n"
5086 msgstr ""
5087 " cc prog.c -o prog -lguestfs\n"
5088 "або:\n"
5089 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
5090 "\n"
5091
5092 #. type: textblock
5093 #: ../examples/guestfs-examples.pod:21
5094 msgid ""
5095 "This manual page contains examples of calling libguestfs from the C "
5096 "programming language.  If you are not familiar with using libguestfs, you "
5097 "also need to read L<guestfs(3)>."
5098 msgstr ""
5099
5100 #. type: textblock
5101 #: ../examples/guestfs-examples.pod:35
5102 msgid ""
5103 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
5104 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
5105 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5106 msgstr ""
5107
5108 #. type: textblock
5109 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
5110 #: ../python/examples/guestfs-python.pod:60
5111 #: ../ruby/examples/guestfs-ruby.pod:54
5112 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
5113 msgstr ""
5114
5115 #. type: =end
5116 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
5117 msgid "comment"
5118 msgstr "коментар"
5119
5120 #. type: textblock
5121 #: ../examples/guestfs-recipes.pod:5
5122 msgid ""
5123 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
5124 "here.  The only way which works for both sorts of output is to just write "
5125 "the URL directly.  Do NOT use L<...> for URLs."
5126 msgstr ""
5127
5128 #. type: textblock
5129 #: ../examples/guestfs-recipes.pod:9
5130 msgid ""
5131 "We break with tradition here and don't use ALL CAPS for the section "
5132 "headings, as this makes them much easier to read."
5133 msgstr ""
5134
5135 #. type: textblock
5136 #: ../examples/guestfs-recipes.pod:16
5137 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5138 msgstr ""
5139
5140 #. type: textblock
5141 #: ../examples/guestfs-recipes.pod:20
5142 msgid ""
5143 "This page contains recipes for and links to things you can do using "
5144 "libguestfs, L<guestfish(1)> and the virt tools."
5145 msgstr ""
5146
5147 #. type: =head1
5148 #: ../examples/guestfs-recipes.pod:23
5149 msgid "Audit a virtual machine for setuid files"
5150 msgstr ""
5151
5152 #. type: textblock
5153 #: ../examples/guestfs-recipes.pod:25
5154 msgid ""
5155 "The link below contains a small program which can be used to audit a Linux "
5156 "virtual machine to see what setuid and setgid files it contains."
5157 msgstr ""
5158
5159 #. type: textblock
5160 #: ../examples/guestfs-recipes.pod:28
5161 msgid ""
5162 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5163 "files/#content"
5164 msgstr ""
5165
5166 #. type: =head1
5167 #: ../examples/guestfs-recipes.pod:30
5168 msgid "Change the background image in a Windows XP VM"
5169 msgstr ""
5170
5171 #. type: textblock
5172 #: ../examples/guestfs-recipes.pod:32
5173 msgid ""
5174 "The links below explain how to use L<guestfish(1)> to change the background "
5175 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
5176 "be substantially different for each version of Windows."
5177 msgstr ""
5178
5179 #. type: textblock
5180 #: ../examples/guestfs-recipes.pod:37
5181 msgid ""
5182 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5183 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5184 msgstr ""
5185
5186 #. type: =head1
5187 #: ../examples/guestfs-recipes.pod:40
5188 msgid "Cloning a virtual machine (Linux)"
5189 msgstr ""
5190
5191 #. type: textblock
5192 #: ../examples/guestfs-recipes.pod:42
5193 msgid ""
5194 "The guestfish technique described in the link below works well for most "
5195 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
5196 "slightly."
5197 msgstr ""
5198
5199 #. type: textblock
5200 #: ../examples/guestfs-recipes.pod:46
5201 msgid ""
5202 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5203 "vm/#content"
5204 msgstr ""
5205
5206 #. type: textblock
5207 #: ../examples/guestfs-recipes.pod:48
5208 msgid ""
5209 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
5210 "discussion."
5211 msgstr ""
5212
5213 #. type: textblock
5214 #: ../examples/guestfs-recipes.pod:51
5215 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5216 msgstr ""
5217
5218 #. type: =head1
5219 #: ../examples/guestfs-recipes.pod:53
5220 msgid "Cloning a virtual machine (Windows)"
5221 msgstr ""
5222
5223 #. type: textblock
5224 #: ../examples/guestfs-recipes.pod:55
5225 msgid ""
5226 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5227 "straightforward.  Currently there is code in the Aeolus Oz project which "
5228 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
5229 "we may add sysprepping ability."
5230 msgstr ""
5231
5232 #. type: textblock
5233 #: ../examples/guestfs-recipes.pod:60
5234 msgid ""
5235 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5236 "list/2011-May/msg00019.html"
5237 msgstr ""
5238
5239 #. type: =head1
5240 #: ../examples/guestfs-recipes.pod:63
5241 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5242 msgstr ""
5243
5244 #. type: textblock
5245 #: ../examples/guestfs-recipes.pod:65
5246 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5247 msgstr ""
5248
5249 #. type: verbatim
5250 #: ../examples/guestfs-recipes.pod:67
5251 #, no-wrap
5252 msgid ""
5253 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5254 "\n"
5255 msgstr ""
5256
5257 #. type: textblock
5258 #: ../examples/guestfs-recipes.pod:69
5259 msgid "To export just a subdirectory, eg. C</files>, do:"
5260 msgstr ""
5261
5262 #. type: verbatim
5263 #: ../examples/guestfs-recipes.pod:71
5264 #, no-wrap
5265 msgid ""
5266 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5267 "\n"
5268 msgstr ""
5269
5270 #. type: =head1
5271 #: ../examples/guestfs-recipes.pod:73
5272 msgid "Create empty disk images"
5273 msgstr ""
5274
5275 #. type: textblock
5276 #: ../examples/guestfs-recipes.pod:75
5277 msgid ""
5278 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5279 "The useful guide below explains the options available."
5280 msgstr ""
5281
5282 #. type: textblock
5283 #: ../examples/guestfs-recipes.pod:78
5284 msgid ""
5285 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5286 "#content"
5287 msgstr ""
5288
5289 #. type: =head1
5290 #: ../examples/guestfs-recipes.pod:80
5291 msgid "Dump raw filesystem content from inside a disk image or VM"
5292 msgstr ""
5293
5294 #. type: textblock
5295 #: ../examples/guestfs-recipes.pod:82
5296 msgid ""
5297 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5298 "filesystem content from any filesystem in a disk image or a VM (even one "
5299 "which is encrypted or buried inside an LV):"
5300 msgstr ""
5301
5302 #. type: verbatim
5303 #: ../examples/guestfs-recipes.pod:86
5304 #, no-wrap
5305 msgid ""
5306 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5307 "\n"
5308 msgstr ""
5309
5310 #. type: verbatim
5311 #: ../examples/guestfs-recipes.pod:88
5312 #, no-wrap
5313 msgid ""
5314 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5315 "\n"
5316 msgstr ""
5317
5318 #. type: textblock
5319 #: ../examples/guestfs-recipes.pod:90
5320 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5321 msgstr ""
5322
5323 #. type: =head1
5324 #: ../examples/guestfs-recipes.pod:92
5325 msgid "Edit grub configuration in a VM"
5326 msgstr ""
5327
5328 #. type: textblock
5329 #: ../examples/guestfs-recipes.pod:94
5330 msgid "You can use this to:"
5331 msgstr ""
5332
5333 #. type: textblock
5334 #: ../examples/guestfs-recipes.pod:100
5335 msgid "Fix a virtual machine that does not boot."
5336 msgstr ""
5337
5338 #. type: textblock
5339 #: ../examples/guestfs-recipes.pod:104
5340 msgid "Change which kernel is used to boot the VM."
5341 msgstr ""
5342
5343 #. type: textblock
5344 #: ../examples/guestfs-recipes.pod:108
5345 msgid "Change kernel command line options."
5346 msgstr ""
5347
5348 #. type: textblock
5349 #: ../examples/guestfs-recipes.pod:112
5350 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5351 msgstr ""
5352
5353 #. type: verbatim
5354 #: ../examples/guestfs-recipes.pod:114
5355 #, no-wrap
5356 msgid ""
5357 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5358 "\n"
5359 msgstr ""
5360
5361 #. type: textblock
5362 #: ../examples/guestfs-recipes.pod:116
5363 msgid ""
5364 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5365 "this:"
5366 msgstr ""
5367
5368 #. type: verbatim
5369 #: ../examples/guestfs-recipes.pod:119
5370 #, no-wrap
5371 msgid ""
5372 " virt-rescue -d BrokenGuest\n"
5373 "\n"
5374 msgstr ""
5375
5376 #. type: =head1
5377 #: ../examples/guestfs-recipes.pod:121
5378 msgid "Export any directory from a VM"
5379 msgstr ""
5380
5381 #. type: textblock
5382 #: ../examples/guestfs-recipes.pod:123
5383 msgid ""
5384 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5385 msgstr ""
5386
5387 #. type: verbatim
5388 #: ../examples/guestfs-recipes.pod:126 ../examples/guestfs-testing.pod:93
5389 #, no-wrap
5390 msgid ""
5391 " virt-copy-out -d Guest /home .\n"
5392 "\n"
5393 msgstr ""
5394
5395 #. type: textblock
5396 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5397 #: ../fish/guestfish-actions.pod:1450 ../fish/guestfish-actions.pod:1715
5398 #: ../fish/guestfish-actions.pod:2132 ../src/guestfs-actions.pod:18
5399 #: ../src/guestfs-actions.pod:2334 ../src/guestfs-actions.pod:2758
5400 #: ../src/guestfs-actions.pod:3317 ../src/guestfs.pod:1685
5401 #: ../tools/virt-win-reg.pl:717
5402 msgid "Notes:"
5403 msgstr "Нотатки:"
5404
5405 #. type: textblock
5406 #: ../examples/guestfs-recipes.pod:134
5407 msgid ""
5408 "The final dot of the command is not a printing error.  It means we want to "
5409 "copy out to the current directory."
5410 msgstr ""
5411
5412 #. type: textblock
5413 #: ../examples/guestfs-recipes.pod:139
5414 msgid "This creates a directory called C<home> under the current directory."
5415 msgstr ""
5416
5417 #. type: textblock
5418 #: ../examples/guestfs-recipes.pod:143
5419 msgid ""
5420 "If the guest is a Windows guest then you can use drive letters and "
5421 "backslashes, but you must prefix the path with C<win:> and quote it to "
5422 "protect it from the shell, like this:"
5423 msgstr ""
5424
5425 #. type: verbatim
5426 #: ../examples/guestfs-recipes.pod:147
5427 #, no-wrap
5428 msgid ""
5429 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5430 "\n"
5431 msgstr ""
5432
5433 #. type: textblock
5434 #: ../examples/guestfs-recipes.pod:149
5435 msgid "To get the output as a compressed tarball, do:"
5436 msgstr ""
5437
5438 #. type: verbatim
5439 #: ../examples/guestfs-recipes.pod:151
5440 #, no-wrap
5441 msgid ""
5442 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5443 "\n"
5444 msgstr ""
5445
5446 #. type: textblock
5447 #: ../examples/guestfs-recipes.pod:153
5448 msgid ""
5449 "Although it sounds tempting, this is usually not a reliable way to get a "
5450 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5451 "org/FAQ.html#backup"
5452 msgstr ""
5453
5454 #. type: =head1
5455 #: ../examples/guestfs-recipes.pod:157
5456 msgid "Find out which user is using the most space"
5457 msgstr ""
5458
5459 #. type: textblock
5460 #: ../examples/guestfs-recipes.pod:159
5461 msgid ""
5462 "This simple script examines a Linux guest to find out which user is using "
5463 "the most space in their home directory:"
5464 msgstr ""
5465
5466 #. type: verbatim
5467 #: ../examples/guestfs-recipes.pod:162
5468 #, no-wrap
5469 msgid ""
5470 " #!/bin/sh -\n"
5471 " \n"
5472 msgstr ""
5473
5474 #. type: verbatim
5475 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5476 #, no-wrap
5477 msgid ""
5478 " set -e\n"
5479 " \n"
5480 msgstr ""
5481
5482 #. type: verbatim
5483 #: ../examples/guestfs-recipes.pod:166
5484 #, no-wrap
5485 msgid ""
5486 " vm=\"$1\"\n"
5487 " dir=/home\n"
5488 " \n"
5489 msgstr ""
5490
5491 #. type: verbatim
5492 #: ../examples/guestfs-recipes.pod:169
5493 #, no-wrap
5494 msgid ""
5495 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5496 " \n"
5497 msgstr ""
5498
5499 #. type: verbatim
5500 #: ../examples/guestfs-recipes.pod:171
5501 #, no-wrap
5502 msgid ""
5503 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5504 "     echo -n \"$dir/$d\"\n"
5505 "     echo -ne '\\t'\n"
5506 "     guestfish --remote du \"$dir/$d\";\n"
5507 " done | sort -nr -k 2\n"
5508 " \n"
5509 msgstr ""
5510
5511 #. type: verbatim
5512 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5513 #, no-wrap
5514 msgid ""
5515 " guestfish --remote exit\n"
5516 "\n"
5517 msgstr ""
5518
5519 #. type: =head1
5520 #: ../examples/guestfs-recipes.pod:179
5521 msgid "Get DHCP address from a VM"
5522 msgstr ""
5523
5524 #. type: textblock
5525 #: ../examples/guestfs-recipes.pod:181
5526 msgid ""
5527 "The link below explains the many different possible techniques for getting "
5528 "the last assigned DHCP address of a virtual machine."
5529 msgstr ""
5530
5531 #. type: textblock
5532 #: ../examples/guestfs-recipes.pod:184
5533 msgid ""
5534 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5535 "a-virtual-machine-disk-image/#content"
5536 msgstr ""
5537
5538 #. type: textblock
5539 #: ../examples/guestfs-recipes.pod:186
5540 msgid ""
5541 "In the libguestfs source examples directory you will find the latest version "
5542 "of the C<virt-dhcp-address.c> program."
5543 msgstr ""
5544
5545 #. type: =head1
5546 #: ../examples/guestfs-recipes.pod:189
5547 msgid "Get the operating system product name string"
5548 msgstr ""
5549
5550 #. type: textblock
5551 #: ../examples/guestfs-recipes.pod:191
5552 msgid "Save the following script into a file called C<product-name.sh>:"
5553 msgstr ""
5554
5555 #. type: verbatim
5556 #: ../examples/guestfs-recipes.pod:193
5557 #, no-wrap
5558 msgid ""
5559 " #!/bin/sh -\n"
5560 " set -e\n"
5561 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5562 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5563 " guestfish --remote inspect-get-product-name \"$root\"\n"
5564 " guestfish --remote exit\n"
5565 "\n"
5566 msgstr ""
5567
5568 #. type: textblock
5569 #: ../examples/guestfs-recipes.pod:200
5570 msgid "Make the script executable and run it on a named guest:"
5571 msgstr ""
5572
5573 #. type: verbatim
5574 #: ../examples/guestfs-recipes.pod:202
5575 #, no-wrap
5576 msgid ""
5577 " # product-name.sh RHEL60x64\n"
5578 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5579 "\n"
5580 msgstr ""
5581
5582 #. type: textblock
5583 #: ../examples/guestfs-recipes.pod:205
5584 msgid ""
5585 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5586 "C<xpath> command line tool or from your favourite programming language:"
5587 msgstr ""
5588
5589 #. type: verbatim
5590 #: ../examples/guestfs-recipes.pod:209
5591 #, no-wrap
5592 msgid ""
5593 " # virt-inspector RHEL60x64 > xml\n"
5594 " # xpath '//product_name' < xml\n"
5595 " Found 1 nodes:\n"
5596 " -- NODE --\n"
5597 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5598 "\n"
5599 msgstr ""
5600
5601 #. type: =head1
5602 #: ../examples/guestfs-recipes.pod:215
5603 msgid "Get the default boot kernel for a Linux VM"
5604 msgstr ""
5605
5606 #. type: textblock
5607 #: ../examples/guestfs-recipes.pod:217
5608 msgid ""
5609 "The link below contains a program to print the default boot kernel for a "
5610 "Linux VM."
5611 msgstr ""
5612
5613 #. type: textblock
5614 #: ../examples/guestfs-recipes.pod:220
5615 msgid ""
5616 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5617 "kernel-for-a-vm/#content"
5618 msgstr ""
5619
5620 #. type: textblock
5621 #: ../examples/guestfs-recipes.pod:222
5622 msgid ""
5623 "It uses Augeas, and the technique is generally applicable for many different "
5624 "tasks, such as:"
5625 msgstr ""
5626
5627 #. type: textblock
5628 #: ../examples/guestfs-recipes.pod:229
5629 msgid "listing the user accounts in the guest"
5630 msgstr ""
5631
5632 #. type: textblock
5633 #: ../examples/guestfs-recipes.pod:233
5634 msgid "what repositories is it configured to use"
5635 msgstr ""
5636
5637 #. type: textblock
5638 #: ../examples/guestfs-recipes.pod:237
5639 msgid "what NTP servers does it connect to"
5640 msgstr ""
5641
5642 #. type: textblock
5643 #: ../examples/guestfs-recipes.pod:241
5644 msgid "what were the boot messages last time it booted"
5645 msgstr ""
5646
5647 #. type: textblock
5648 #: ../examples/guestfs-recipes.pod:245
5649 msgid "listing who was logged in recently"
5650 msgstr ""
5651
5652 #. type: textblock
5653 #: ../examples/guestfs-recipes.pod:249
5654 msgid "http://augeas.net/"
5655 msgstr ""
5656
5657 #. type: =head1
5658 #: ../examples/guestfs-recipes.pod:251
5659 msgid "Install RPMs in a guest"
5660 msgstr ""
5661
5662 #. type: textblock
5663 #: ../examples/guestfs-recipes.pod:253
5664 msgid ""
5665 "The link below contains a method to install RPMs in a guest.  In fact the "
5666 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5667 "installs them next time the guest is booted.  You could use this technique "
5668 "to install vital security updates in an offline guest."
5669 msgstr ""
5670
5671 #. type: textblock
5672 #: ../examples/guestfs-recipes.pod:259
5673 msgid ""
5674 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5675 msgstr ""
5676
5677 #. type: =head1
5678 #: ../examples/guestfs-recipes.pod:261
5679 msgid "List applications installed in a VM"
5680 msgstr ""
5681
5682 #. type: textblock
5683 #: ../examples/guestfs-recipes.pod:263
5684 msgid "Save the following to a file C<list-apps.sh>:"
5685 msgstr ""
5686
5687 #. type: verbatim
5688 #: ../examples/guestfs-recipes.pod:265
5689 #, no-wrap
5690 msgid ""
5691 " #!/bin/sh -\n"
5692 " set -e\n"
5693 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5694 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5695 " guestfish --remote inspect-list-applications \"$root\"\n"
5696 " guestfish --remote exit\n"
5697 "\n"
5698 msgstr ""
5699
5700 #. type: textblock
5701 #: ../examples/guestfs-recipes.pod:272
5702 msgid ""
5703 "Make the file executable and then you can run it on any named virtual "
5704 "machine:"
5705 msgstr ""
5706
5707 #. type: verbatim
5708 #: ../examples/guestfs-recipes.pod:275
5709 #, no-wrap
5710 msgid ""
5711 " # list-apps.sh WinGuest\n"
5712 " [0] = {\n"
5713 "   app_name: Mozilla Firefox (3.6.12)\n"
5714 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5715 "   app_epoch: 0\n"
5716 "   app_version: 3.6.12 (en-GB)\n"
5717 "   app_release:\n"
5718 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5719 "   app_trans_path:\n"
5720 "   app_publisher: Mozilla\n"
5721 "   app_url: http://www.mozilla.com/en-GB/\n"
5722 "   app_source_package:\n"
5723 "   app_summary:\n"
5724 "   app_description: Mozilla Firefox\n"
5725 " }\n"
5726 " [1] = {\n"
5727 "   app_name: VLC media player\n"
5728 "   app_display_name: VLC media player 1.1.5\n"
5729 "   app_epoch: 0\n"
5730 "   app_version: 1.1.5\n"
5731 "   app_release:\n"
5732 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5733 "   app_trans_path:\n"
5734 "   app_publisher: VideoLAN\n"
5735 "   app_url: http://www.videolan.org/\n"
5736 "   app_source_package:\n"
5737 "   app_summary:\n"
5738 "   app_description:\n"
5739 " }\n"
5740 "\n"
5741 msgstr ""
5742
5743 #. type: textblock
5744 #: ../examples/guestfs-recipes.pod:305
5745 msgid ""
5746 "If you want to run the script on disk images (instead of libvirt virtual "
5747 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5748 ">."
5749 msgstr ""
5750
5751 #. type: =head1
5752 #: ../examples/guestfs-recipes.pod:309
5753 msgid "List files and directories in a VM"
5754 msgstr ""
5755
5756 #. type: textblock
5757 #: ../examples/guestfs-recipes.pod:311
5758 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5759 msgstr ""
5760
5761 #. type: verbatim
5762 #: ../examples/guestfs-recipes.pod:313
5763 #, no-wrap
5764 msgid ""
5765 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5766 "\n"
5767 msgstr ""
5768
5769 #. type: =head1
5770 #: ../examples/guestfs-recipes.pod:315
5771 msgid "List services in a Windows VM"
5772 msgstr ""
5773
5774 #. type: textblock
5775 #: ../examples/guestfs-recipes.pod:317
5776 msgid ""
5777 "The link below contains a script that can be used to list out the services "
5778 "from a Windows VM, and whether those services run at boot time or are loaded "
5779 "on demand."
5780 msgstr ""
5781
5782 #. type: textblock
5783 #: ../examples/guestfs-recipes.pod:321
5784 msgid ""
5785 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5786 "#content"
5787 msgstr ""
5788
5789 #. type: =head1
5790 #: ../examples/guestfs-recipes.pod:323
5791 msgid "Make a disk image sparse"
5792 msgstr ""
5793
5794 #. type: textblock
5795 #: ../examples/guestfs-recipes.pod:325
5796 msgid ""
5797 "The link below contains some guides for making a disk image sparse (or "
5798 "reintroducing sparseness)."
5799 msgstr ""
5800
5801 #. type: textblock
5802 #: ../examples/guestfs-recipes.pod:328
5803 msgid ""
5804 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5805 msgstr ""
5806
5807 #. type: =head1
5808 #: ../examples/guestfs-recipes.pod:330
5809 msgid "Monitor disk usage over time"
5810 msgstr ""
5811
5812 #. type: textblock
5813 #: ../examples/guestfs-recipes.pod:332
5814 msgid ""
5815 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5816 "The link below contains a guide."
5817 msgstr ""
5818
5819 #. type: textblock
5820 #: ../examples/guestfs-recipes.pod:335
5821 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5822 msgstr ""
5823
5824 #. type: =head1
5825 #: ../examples/guestfs-recipes.pod:337
5826 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5827 msgstr ""
5828
5829 #. type: textblock
5830 #: ../examples/guestfs-recipes.pod:339
5831 msgid ""
5832 "L<guestfish(1)> plus the tools described in the link below can be used to "
5833 "read out the Windows Event Log from any virtual machine running Windows "
5834 "Vista or a later version."
5835 msgstr ""
5836
5837 #. type: textblock
5838 #: ../examples/guestfs-recipes.pod:343
5839 msgid ""
5840 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5841 "guestfish/#content"
5842 msgstr ""
5843
5844 #. type: =head1
5845 #: ../examples/guestfs-recipes.pod:345
5846 msgid "Remove root password (Linux)"
5847 msgstr ""
5848
5849 #. type: textblock
5850 #: ../examples/guestfs-recipes.pod:347
5851 msgid ""
5852 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5853 "files.  One use is to remove the root password from a Linux guest:"
5854 msgstr ""
5855
5856 #. type: verbatim
5857 #: ../examples/guestfs-recipes.pod:350
5858 #, no-wrap
5859 msgid ""
5860 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5861 "\n"
5862 msgstr ""
5863
5864 #. type: =head1
5865 #: ../examples/guestfs-recipes.pod:352
5866 msgid "Remove Administrator password (Windows)"
5867 msgstr ""
5868
5869 #. type: textblock
5870 #: ../examples/guestfs-recipes.pod:354
5871 msgid ""
5872 "The link below contains one technique for removing the Administrator "
5873 "password from a Windows VM, or to be more precise, it gives you a command "
5874 "prompt the next time you log in which you can use to bypass any security:"
5875 msgstr ""
5876
5877 #. type: textblock
5878 #: ../examples/guestfs-recipes.pod:359
5879 msgid ""
5880 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5881 "administrator-password-with-guestfish/"
5882 msgstr ""
5883
5884 #. type: =head1
5885 #: ../examples/guestfs-recipes.pod:361
5886 msgid "Unpack a live CD"
5887 msgstr ""
5888
5889 #. type: textblock
5890 #: ../examples/guestfs-recipes.pod:363
5891 msgid ""
5892 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5893 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5894 "layers, as outlined in the guide below."
5895 msgstr ""
5896
5897 #. type: textblock
5898 #: ../examples/guestfs-recipes.pod:367
5899 msgid ""
5900 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5901 "cd/#content"
5902 msgstr ""
5903
5904 #. type: =head1
5905 #: ../examples/guestfs-recipes.pod:369
5906 msgid "Uploading and downloading files"
5907 msgstr ""
5908
5909 #. type: textblock
5910 #: ../examples/guestfs-recipes.pod:371
5911 msgid ""
5912 "The link below contains general tips on uploading (copying in)  and "
5913 "downloading (copying out) files from VMs."
5914 msgstr ""
5915
5916 #. type: textblock
5917 #: ../examples/guestfs-recipes.pod:374
5918 msgid ""
5919 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5920 msgstr ""
5921
5922 #. type: =head1
5923 #: ../examples/guestfs-recipes.pod:376
5924 msgid "Use libguestfs tools on VMware ESX guests"
5925 msgstr ""
5926
5927 #. type: textblock
5928 #: ../examples/guestfs-recipes.pod:378
5929 msgid ""
5930 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5931 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5932 msgstr ""
5933
5934 #. type: textblock
5935 #: ../examples/guestfs-recipes.pod:382
5936 msgid ""
5937 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5938 "guests/#content"
5939 msgstr ""
5940
5941 #. type: textblock
5942 #: ../examples/guestfs-recipes.pod:386
5943 msgid ""
5944 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5945 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5946 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5947 msgstr ""
5948
5949 #. type: textblock
5950 #: ../examples/guestfs-recipes.pod:403
5951 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5952 msgstr ""
5953
5954 #. type: textblock
5955 #: ../examples/guestfs-testing.pod:5
5956 msgid "guestfs-testing - manual testing of libguestfs, you can help!"
5957 msgstr ""
5958
5959 #. type: textblock
5960 #: ../examples/guestfs-testing.pod:9
5961 msgid ""
5962 "This page has manual tests you can try on libguestfs.  Everyone has a "
5963 "slightly different combination of platform, hardware and guests, so this "
5964 "testing is very valuable.  Thanks for helping out!"
5965 msgstr ""
5966
5967 #. type: textblock
5968 #: ../examples/guestfs-testing.pod:13
5969 msgid "These tests require libguestfs E<ge> 1.14."
5970 msgstr ""
5971
5972 #. type: textblock
5973 #: ../examples/guestfs-testing.pod:15
5974 msgid ""
5975 "Tests marked with a B<*> (asterisk) can B<destroy data> if you're not "
5976 "careful.  The others are safe and won't modify anything."
5977 msgstr ""
5978
5979 #. type: textblock
5980 #: ../examples/guestfs-testing.pod:18
5981 msgid "You can report bugs you find through this link:"
5982 msgstr ""
5983
5984 #. type: textblock
5985 #: ../examples/guestfs-testing.pod:20
5986 #, fuzzy
5987 #| msgid ""
5988 #| "L<https://bugzilla.redhat.com/enter_bug.cgi?"
5989 #| "component=libguestfs&product=Virtualization+Tools>"
5990 msgid ""
5991 "https://bugzilla.redhat.com/enter_bug.cgi?"
5992 "component=libguestfs&product=Virtualization+Tools"
5993 msgstr ""
5994 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
5995 "component=libguestfs&product=Virtualization+Tools>"
5996
5997 #. type: textblock
5998 #: ../examples/guestfs-testing.pod:22
5999 msgid ""
6000 "or post on the mailing list (registration is B<not> required, but if you're "
6001 "not registered then you'll have to wait for a moderator to manually approve "
6002 "your message):"
6003 msgstr ""
6004
6005 #. type: textblock
6006 #: ../examples/guestfs-testing.pod:26
6007 msgid "https://www.redhat.com/mailman/listinfo/libguestfs"
6008 msgstr ""
6009
6010 #. type: =head1
6011 #: ../examples/guestfs-testing.pod:28
6012 msgid "TESTS"
6013 msgstr ""
6014
6015 #. type: =head2
6016 #: ../examples/guestfs-testing.pod:30
6017 msgid "Check KVM acceleration is being used."
6018 msgstr ""
6019
6020 #. type: textblock
6021 #: ../examples/guestfs-testing.pod:32
6022 msgid ""
6023 "If your host has hardware virt acceleration, then with a hot cache "
6024 "libguestfs should be able to start up in a few seconds.  Run the following "
6025 "command a few times:"
6026 msgstr ""
6027
6028 #. type: verbatim
6029 #: ../examples/guestfs-testing.pod:36
6030 #, no-wrap
6031 msgid ""
6032 " time guestfish -a /dev/null run\n"
6033 "\n"
6034 msgstr ""
6035
6036 #. type: textblock
6037 #: ../examples/guestfs-testing.pod:38
6038 msgid ""
6039 "After a few runs, the time should settle down to a few seconds (under 5 "
6040 "seconds on fast 64 bit hardware)."
6041 msgstr ""
6042
6043 #. type: textblock
6044 #: ../examples/guestfs-testing.pod:41
6045 msgid "How to check for hardware virt:"
6046 msgstr ""
6047
6048 #. type: textblock
6049 #: ../examples/guestfs-testing.pod:43
6050 msgid "http://virt-tools.org/learning/check-hardware-virt/"
6051 msgstr ""
6052
6053 #. type: textblock
6054 #: ../examples/guestfs-testing.pod:45
6055 msgid ""
6056 "If the command above does not work at all, use L<libguestfs-test-tool(1)>."
6057 msgstr ""
6058
6059 #. type: =head2
6060 #: ../examples/guestfs-testing.pod:48
6061 msgid "Run virt-alignment-scan on all your guests."
6062 msgstr ""
6063
6064 #. type: textblock
6065 #: ../examples/guestfs-testing.pod:50
6066 msgid "Run L<virt-alignment-scan(1)> on guests or disk images:"
6067 msgstr ""
6068
6069 #. type: verbatim
6070 #: ../examples/guestfs-testing.pod:52
6071 #, no-wrap
6072 msgid ""
6073 " virt-alignment-scan -a /path/to/disk.img\n"
6074 "\n"
6075 msgstr ""
6076
6077 #. type: textblock
6078 #: ../examples/guestfs-testing.pod:54 ../examples/guestfs-testing.pod:161
6079 #: ../examples/guestfs-testing.pod:174 ../examples/guestfs-testing.pod:234
6080 #: ../src/guestfs.pod:2792
6081 msgid "or:"
6082 msgstr "або:"
6083
6084 #. type: verbatim
6085 #: ../examples/guestfs-testing.pod:56
6086 #, no-wrap
6087 msgid ""
6088 " virt-alignment-scan -d Guest\n"
6089 "\n"
6090 msgstr ""
6091
6092 #. type: textblock
6093 #: ../examples/guestfs-testing.pod:58
6094 msgid "Does the alignment report match how the guest partitions are aligned?"
6095 msgstr ""
6096
6097 #. type: =head2
6098 #: ../examples/guestfs-testing.pod:60
6099 #, fuzzy
6100 #| msgid ""
6101 #| " virt-cat domname file\n"
6102 #| "\n"
6103 msgid "Run virt-cat on some files in guests."
6104 msgstr ""
6105 " virt-cat назва_домену файл\n"
6106 "\n"
6107
6108 #. type: textblock
6109 #: ../examples/guestfs-testing.pod:62
6110 msgid "L<virt-cat(1)> can display files from guests.  For a Linux guest, try:"
6111 msgstr ""
6112
6113 #. type: verbatim
6114 #: ../examples/guestfs-testing.pod:64
6115 #, fuzzy, no-wrap
6116 #| msgid ""
6117 #| " virt-cat -d mydomain /etc/fstab\n"
6118 #| "\n"
6119 msgid ""
6120 " virt-cat LinuxGuest /etc/passwd\n"
6121 "\n"
6122 msgstr ""
6123 " virt-cat -d mydomain /etc/fstab\n"
6124 "\n"
6125
6126 #. type: textblock
6127 #: ../examples/guestfs-testing.pod:66
6128 msgid "A recent feature is support for Windows paths, for example:"
6129 msgstr ""
6130
6131 #. type: verbatim
6132 #: ../examples/guestfs-testing.pod:68
6133 #, no-wrap
6134 msgid ""
6135 " virt-cat WindowsGuest 'c:\\windows\\win.ini'\n"
6136 "\n"
6137 msgstr ""
6138
6139 #. type: textblock
6140 #: ../examples/guestfs-testing.pod:70
6141 msgid ""
6142 "An even better test is if you have a Windows guest with multiple drives.  Do "
6143 "C<D:>, C<E:> etc paths work correctly?"
6144 msgstr ""
6145
6146 #. type: =head2
6147 #: ../examples/guestfs-testing.pod:73
6148 msgid "B<*> Copy some files into a B<shut off> guest."
6149 msgstr ""
6150
6151 #. type: textblock
6152 #: ../examples/guestfs-testing.pod:75
6153 msgid ""
6154 "L<virt-copy-in(1)> can recursively copy files and directories into a guest "
6155 "or disk image."
6156 msgstr ""
6157
6158 #. type: verbatim
6159 #: ../examples/guestfs-testing.pod:78
6160 #, no-wrap
6161 msgid ""
6162 " virt-copy-in -d Guest /etc /tmp\n"
6163 "\n"
6164 msgstr ""
6165
6166 #. type: textblock
6167 #: ../examples/guestfs-testing.pod:80
6168 msgid ""
6169 "This should copy local directory C</etc> to C</tmp/etc> in the guest "
6170 "(recursively).  If you boot the guest, can you see all of the copied files "
6171 "and directories?"
6172 msgstr ""
6173
6174 #. type: textblock
6175 #: ../examples/guestfs-testing.pod:84
6176 msgid "Shut the guest down and try copying multiple files and directories:"
6177 msgstr ""
6178
6179 #. type: verbatim
6180 #: ../examples/guestfs-testing.pod:86
6181 #, no-wrap
6182 msgid ""
6183 " virt-copy-in -d Guest /home /etc/issue /tmp\n"
6184 "\n"
6185 msgstr ""
6186
6187 #. type: =head2
6188 #: ../examples/guestfs-testing.pod:88
6189 msgid "Copy some files out of a guest."
6190 msgstr ""
6191
6192 #. type: textblock
6193 #: ../examples/guestfs-testing.pod:90
6194 msgid ""
6195 "L<virt-copy-out(1)> can recursively copy files and directories out of a "
6196 "guest or disk image."
6197 msgstr ""
6198
6199 #. type: textblock
6200 #: ../examples/guestfs-testing.pod:95
6201 msgid "Note the final space and period in the command is not a typo."
6202 msgstr ""
6203
6204 #. type: textblock
6205 #: ../examples/guestfs-testing.pod:97
6206 msgid "This should copy C</home> from the guest into the current directory."
6207 msgstr ""
6208
6209 #. type: =head2
6210 #: ../examples/guestfs-testing.pod:99
6211 msgid "Run virt-df."
6212 msgstr ""
6213
6214 #. type: textblock
6215 #: ../examples/guestfs-testing.pod:101
6216 msgid "L<virt-df(1)> lists disk space.  Run:"
6217 msgstr ""
6218
6219 #. type: verbatim
6220 #: ../examples/guestfs-testing.pod:103
6221 #, fuzzy, no-wrap
6222 #| msgid ""
6223 #| " df\n"
6224 #| "\n"
6225 msgid ""
6226 " virt-df\n"
6227 "\n"
6228 msgstr ""
6229 " df\n"
6230 "\n"
6231
6232 #. type: textblock
6233 #: ../examples/guestfs-testing.pod:105
6234 msgid ""
6235 "You can try comparing this to the results from L<df(1)> inside the guest, "
6236 "but there are some provisos:"
6237 msgstr ""
6238
6239 #. type: textblock
6240 #: ../examples/guestfs-testing.pod:112
6241 msgid "The guest must be idle."
6242 msgstr ""
6243
6244 #. type: textblock
6245 #: ../examples/guestfs-testing.pod:116
6246 msgid "The guest disks must be synched using L<sync(1)>."
6247 msgstr ""
6248
6249 #. type: textblock
6250 #: ../examples/guestfs-testing.pod:120
6251 msgid ""
6252 "Any action such as booting the guest will write log files causing the "
6253 "numbers to change."
6254 msgstr ""
6255
6256 #. type: textblock
6257 #: ../examples/guestfs-testing.pod:125
6258 msgid ""
6259 "We don't guarantee that the numbers will be identical even under these "
6260 "circumstances.  They should be similar.  It would indicate a bug if you saw "
6261 "greatly differing numbers."
6262 msgstr ""
6263
6264 #. type: =head2
6265 #: ../examples/guestfs-testing.pod:129
6266 msgid "Try importing virt-df CSV output into a spreadsheet or database."
6267 msgstr ""
6268
6269 #. type: textblock
6270 #: ../examples/guestfs-testing.pod:131 ../src/guestfs.pod:3088
6271 msgid "Run:"
6272 msgstr ""
6273
6274 #. type: verbatim
6275 #: ../examples/guestfs-testing.pod:133
6276 #, no-wrap
6277 msgid ""
6278 " virt-df --csv > /tmp/report.csv\n"
6279 "\n"
6280 msgstr ""
6281
6282 #. type: textblock
6283 #: ../examples/guestfs-testing.pod:135
6284 msgid ""
6285 "Now try to load this into your favorite spreadsheet or database.  Are the "
6286 "results reproduced faithfully in the spreadsheet/database?"
6287 msgstr ""
6288
6289 #. type: textblock
6290 #: ../examples/guestfs-testing.pod:138
6291 msgid ""
6292 "http://www.postgresql.org/docs/8.1/static/sql-copy.html http://dev.mysql.com/"
6293 "doc/refman/5.1/en/load-data.html"
6294 msgstr ""
6295
6296 #. type: =head2
6297 #: ../examples/guestfs-testing.pod:141
6298 msgid "B<*> Edit a file in a B<shut off> guest."
6299 msgstr ""
6300
6301 #. type: textblock
6302 #: ../examples/guestfs-testing.pod:143
6303 msgid ""
6304 "L<virt-edit(1)> can edit files in guests.  Try this command on a RHEL or "
6305 "Fedora guest:"
6306 msgstr ""
6307
6308 #. type: verbatim
6309 #: ../examples/guestfs-testing.pod:146
6310 #, no-wrap
6311 msgid ""
6312 " virt-edit LinuxGuest /etc/sysconfig/network\n"
6313 "\n"
6314 msgstr ""
6315
6316 #. type: textblock
6317 #: ../examples/guestfs-testing.pod:148
6318 msgid "On other Linux guests try editing other files such as:"
6319 msgstr ""
6320
6321 #. type: verbatim
6322 #: ../examples/guestfs-testing.pod:150
6323 #, no-wrap
6324 msgid ""
6325 " virt-edit LinuxGuest /etc/motd\n"
6326 "\n"
6327 msgstr ""
6328
6329 #. type: textblock
6330 #: ../examples/guestfs-testing.pod:152
6331 msgid "Are the changes seen inside the guest when it is booted?"
6332 msgstr ""
6333
6334 #. type: =head2
6335 #: ../examples/guestfs-testing.pod:154
6336 msgid "Display the filesystems / partitions / LVs in a guest."
6337 msgstr ""
6338
6339 #. type: textblock
6340 #: ../examples/guestfs-testing.pod:156
6341 msgid ""
6342 "L<virt-filesystems(1)> can be used to display filesystems in a guest.  Try "
6343 "this command on any disk image or guest:"
6344 msgstr ""
6345
6346 #. type: verbatim
6347 #: ../examples/guestfs-testing.pod:159
6348 #, fuzzy, no-wrap
6349 #| msgid ""
6350 #| " virt-filesystems --format=raw -a disk.img\n"
6351 #| "\n"
6352 msgid ""
6353 " virt-filesystems -a /path/to/disk.img --all --long -h\n"
6354 "\n"
6355 msgstr ""
6356 " virt-filesystems --format=raw -a диск.img\n"
6357 "\n"
6358
6359 #. type: verbatim
6360 #: ../examples/guestfs-testing.pod:163
6361 #, fuzzy, no-wrap
6362 #| msgid ""
6363 #| " virt-filesystems [--options] -d domname\n"
6364 #| "\n"
6365 msgid ""
6366 " virt-filesystems -d Guest --all --long -h\n"
6367 "\n"
6368 msgstr ""
6369 " virt-filesystems [--параметри] -d назва_домену\n"
6370 "\n"
6371
6372 #. type: textblock
6373 #: ../examples/guestfs-testing.pod:165
6374 msgid "Do the results match what is seen in the guest?"
6375 msgstr ""
6376
6377 #. type: =head2
6378 #: ../examples/guestfs-testing.pod:167
6379 msgid "Run virt-inspector on all your guests."
6380 msgstr ""
6381
6382 #. type: textblock
6383 #: ../examples/guestfs-testing.pod:169
6384 msgid ""
6385 "Use L<virt-inspector(1)> to get a report on all of your guests or disk "
6386 "images:"
6387 msgstr ""
6388
6389 #. type: verbatim
6390 #: ../examples/guestfs-testing.pod:172
6391 #, fuzzy, no-wrap
6392 #| msgid ""
6393 #| " virt-cat disk.img file\n"
6394 #| "\n"
6395 msgid ""
6396 " virt-inspector -a /path/to/disk.img | less\n"
6397 "\n"
6398 msgstr ""
6399 " virt-cat диск.img файл\n"
6400 "\n"
6401
6402 #. type: verbatim
6403 #: ../examples/guestfs-testing.pod:176
6404 #, no-wrap
6405 msgid ""
6406 " virt-inspector -d Guest | less\n"
6407 "\n"
6408 msgstr ""
6409
6410 #. type: textblock
6411 #: ../examples/guestfs-testing.pod:178
6412 msgid "Do the results match what is actually in the guest?"
6413 msgstr ""
6414
6415 #. type: =head2
6416 #: ../examples/guestfs-testing.pod:180
6417 msgid "Try the auditing features of virt-ls on all your guests."
6418 msgstr ""
6419
6420 #. type: verbatim
6421 #: ../examples/guestfs-testing.pod:184
6422 #, fuzzy, no-wrap
6423 #| msgid ""
6424 #| " $ virt-ls -R -d guest /tmp\n"
6425 #| " foo\n"
6426 #| " foo/bar\n"
6427 #| " [etc.]\n"
6428 #| "\n"
6429 msgid ""
6430 " virt-ls -lR -d Guest / | grep '^- [42]'\n"
6431 "\n"
6432 msgstr ""
6433 " $ virt-ls -R -d guest /tmp\n"
6434 " foo\n"
6435 " foo/bar\n"
6436 " [тощо]\n"
6437 "\n"
6438
6439 #. type: verbatim
6440 #: ../examples/guestfs-testing.pod:188
6441 #, fuzzy, no-wrap
6442 #| msgid ""
6443 #| " $ virt-ls -R -d guest /tmp\n"
6444 #| " foo\n"
6445 #| " foo/bar\n"
6446 #| " [etc.]\n"
6447 #| "\n"
6448 msgid ""
6449 " virt-ls -lR -d Guest / | grep '^d ...7'\n"
6450 "\n"
6451 msgstr ""
6452 " $ virt-ls -R -d guest /tmp\n"
6453 " foo\n"
6454 " foo/bar\n"
6455 " [тощо]\n"
6456 "\n"
6457
6458 #. type: verbatim
6459 #: ../examples/guestfs-testing.pod:192
6460 #, fuzzy, no-wrap
6461 #| msgid ""
6462 #| " $ virt-ls -R -d guest /tmp\n"
6463 #| " foo\n"
6464 #| " foo/bar\n"
6465 #| " [etc.]\n"
6466 #| "\n"
6467 msgid ""
6468 " virt-ls -lR -d Guest / | grep '^s'\n"
6469 "\n"
6470 msgstr ""
6471 " $ virt-ls -R -d guest /tmp\n"
6472 " foo\n"
6473 " foo/bar\n"
6474 " [тощо]\n"
6475 "\n"
6476
6477 #. type: verbatim
6478 #: ../examples/guestfs-testing.pod:196
6479 #, no-wrap
6480 msgid ""
6481 " virt-ls -lR -d Guest / | grep -i '^-.*\\.png$'\n"
6482 "\n"
6483 msgstr ""
6484
6485 #. type: textblock
6486 #: ../examples/guestfs-testing.pod:198
6487 msgid "Display files larger than 10MB in home directories:"
6488 msgstr ""
6489
6490 #. type: verbatim
6491 #: ../examples/guestfs-testing.pod:200
6492 #, no-wrap
6493 msgid ""
6494 " virt-ls -lR -d Guest /home | awk '$3 > 10*1024*1024'\n"
6495 "\n"
6496 msgstr ""
6497
6498 #. type: verbatim
6499 #: ../examples/guestfs-testing.pod:204
6500 #, no-wrap
6501 msgid ""
6502 " virt-ls -lR -d Guest --time-days / | awk '$6 <= 7'\n"
6503 "\n"
6504 msgstr ""
6505
6506 #. type: verbatim
6507 #: ../examples/guestfs-testing.pod:208
6508 #, no-wrap
6509 msgid ""
6510 " virt-ls -lR -d Guest --time-days / | grep '^-' | awk '$6 < 1'\n"
6511 "\n"
6512 msgstr ""
6513
6514 #. type: textblock
6515 #: ../examples/guestfs-testing.pod:210
6516 msgid "Do the results match what is in the guest?"
6517 msgstr ""
6518
6519 #. type: =head2
6520 #: ../examples/guestfs-testing.pod:212
6521 msgid "Create a disk image from a tarball."
6522 msgstr ""
6523
6524 #. type: textblock
6525 #: ../examples/guestfs-testing.pod:214
6526 msgid ""
6527 "Use L<virt-make-fs(1)> to create a disk image from any tarball that you "
6528 "happen to have:"
6529 msgstr ""
6530
6531 #. type: verbatim
6532 #: ../examples/guestfs-testing.pod:217
6533 #, no-wrap
6534 msgid ""
6535 " virt-make-fs --partition=mbr --type=vfat /any/tarball.tar.gz output.img\n"
6536 "\n"
6537 msgstr ""
6538
6539 #. type: textblock
6540 #: ../examples/guestfs-testing.pod:219
6541 msgid ""
6542 "Add 'output.img' as a raw disk to an existing guest.  Check the guest can "
6543 "see the files.  This test is particularly useful if you try it with a "
6544 "Windows guest."
6545 msgstr ""
6546
6547 #. type: textblock
6548 #: ../examples/guestfs-testing.pod:223
6549 msgid "Try other partitioning schemes, eg. I<--partition=gpt>."
6550 msgstr ""
6551
6552 #. type: textblock
6553 #: ../examples/guestfs-testing.pod:225
6554 msgid "Try other filesystem formats, eg. I<--type=ntfs>, I<--type=ext2>."
6555 msgstr ""
6556
6557 #. type: =head2
6558 #: ../examples/guestfs-testing.pod:227
6559 msgid "B<*> Run virt-rescue on a B<shut off> disk image or guest."
6560 msgstr ""
6561
6562 #. type: textblock
6563 #: ../examples/guestfs-testing.pod:229
6564 msgid ""
6565 "Use L<virt-rescue(1)> to examine, rescue or repair a B<shut off> guest or "
6566 "disk image:"
6567 msgstr ""
6568
6569 #. type: verbatim
6570 #: ../examples/guestfs-testing.pod:232
6571 #, fuzzy, no-wrap
6572 #| msgid ""
6573 #| " virt-cat disk.img file\n"
6574 #| "\n"
6575 msgid ""
6576 " virt-rescue -a /path/to/disk.img\n"
6577 "\n"
6578 msgstr ""
6579 " virt-cat диск.img файл\n"
6580 "\n"
6581
6582 #. type: verbatim
6583 #: ../examples/guestfs-testing.pod:236
6584 #, no-wrap
6585 msgid ""
6586 " virt-rescue -d Guest\n"
6587 "\n"
6588 msgstr ""
6589
6590 #. type: textblock
6591 #: ../examples/guestfs-testing.pod:238
6592 msgid "Can you use ordinary shell commands to examine the guest?"
6593 msgstr ""
6594
6595 #. type: =head2
6596 #: ../examples/guestfs-testing.pod:240
6597 msgid "B<*> Resize your guests."
6598 msgstr ""
6599
6600 #. type: textblock
6601 #: ../examples/guestfs-testing.pod:242
6602 msgid ""
6603 "Use L<virt-resize(1)> to give a guest some more disk space.  For example, if "
6604 "you have a disk image that is smaller than 30G, increase it to 30G by doing:"
6605 msgstr ""
6606
6607 #. type: verbatim
6608 #: ../examples/guestfs-testing.pod:246
6609 #, no-wrap
6610 msgid ""
6611 " truncate -s 30G newdisk.img\n"
6612 " virt-filesystems -a /path/to/olddisk.img --all --long -h\n"
6613 " virt-resize /path/to/olddisk.img newdisk.img --expand /dev/sda1\n"
6614 " qemu-kvm -m 1024 -hda newdisk.img\n"
6615 "\n"
6616 msgstr ""
6617
6618 #. type: textblock
6619 #: ../examples/guestfs-testing.pod:251
6620 msgid "Does the guest still boot? Try expanding other partitions."
6621 msgstr ""
6622
6623 #. type: =head2
6624 #: ../examples/guestfs-testing.pod:253
6625 msgid "B<*> Sparsify a guest disk."
6626 msgstr ""
6627
6628 #. type: textblock
6629 #: ../examples/guestfs-testing.pod:255
6630 msgid "Using L<virt-sparsify(1)>, make a disk image more sparse:"
6631 msgstr ""
6632
6633 #. type: verbatim
6634 #: ../examples/guestfs-testing.pod:257
6635 #, fuzzy, no-wrap
6636 #| msgid ""
6637 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
6638 #| "\n"
6639 msgid ""
6640 " virt-sparsify /path/to/olddisk.img newdisk.img\n"
6641 "\n"
6642 msgstr ""
6643 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
6644 "\n"
6645
6646 #. type: textblock
6647 #: ../examples/guestfs-testing.pod:259
6648 msgid ""
6649 "Is C<newdisk.img> still bootable after sparsifying? Is the resulting disk "
6650 "image smaller (use C<du> to check)?"
6651 msgstr ""
6652
6653 #. type: =head2
6654 #: ../examples/guestfs-testing.pod:262
6655 msgid "B<*> \"sysprep\" a B<shut off> Linux guest."
6656 msgstr ""
6657
6658 #. type: textblock
6659 #: ../examples/guestfs-testing.pod:264
6660 msgid ""
6661 "Note that this really will mess up an existing guest, so it's better to "
6662 "clone the guest before trying this."
6663 msgstr ""
6664
6665 #. type: verbatim
6666 #: ../examples/guestfs-testing.pod:267
6667 #, no-wrap
6668 msgid ""
6669 " virt-sysprep --hostname newhost.example.com -a /path/to/disk.img\n"
6670 "\n"
6671 msgstr ""
6672
6673 #. type: textblock
6674 #: ../examples/guestfs-testing.pod:269
6675 msgid ""
6676 "Was the sysprep successful? After booting, what changes were made and were "
6677 "they successful?"
6678 msgstr ""
6679
6680 #. type: =head2
6681 #: ../examples/guestfs-testing.pod:272
6682 msgid "Dump the Windows Registry from your Windows guests."
6683 msgstr ""
6684
6685 #. type: textblock
6686 #: ../examples/guestfs-testing.pod:274
6687 msgid ""
6688 "Use L<virt-win-reg(1)> to dump out the Windows Registry from any Windows "
6689 "guests that you have."
6690 msgstr ""
6691
6692 #. type: verbatim
6693 #: ../examples/guestfs-testing.pod:277
6694 #, no-wrap
6695 msgid ""
6696 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\Software' |\n"
6697 "   less\n"
6698 "\n"
6699 msgstr ""
6700
6701 #. type: verbatim
6702 #: ../examples/guestfs-testing.pod:280
6703 #, no-wrap
6704 msgid ""
6705 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKLM\\System' |\n"
6706 "   less\n"
6707 "\n"
6708 msgstr ""
6709
6710 #. type: textblock
6711 #: ../examples/guestfs-testing.pod:283
6712 msgid "Does the output match running C<regedit> inside the guest?"
6713 msgstr ""
6714
6715 #. type: textblock
6716 #: ../examples/guestfs-testing.pod:285
6717 msgid ""
6718 "A recent feature is the ability to dump user registries, so try this, "
6719 "replacing I<username> with the name of a local user in the guest:"
6720 msgstr ""
6721
6722 #. type: verbatim
6723 #: ../examples/guestfs-testing.pod:288
6724 #, no-wrap
6725 msgid ""
6726 " virt-win-reg --unsafe-printable-strings WindowsGuest 'HKEY_USERS\\username' |\n"
6727 "   less\n"
6728 "\n"
6729 msgstr ""
6730
6731 #. type: textblock
6732 #: ../examples/guestfs-testing.pod:293
6733 #, fuzzy
6734 #| msgid ""
6735 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
6736 #| "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
6737 msgid ""
6738 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<http://libguestfs."
6739 "org/>."
6740 msgstr ""
6741 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
6742 "tar-out(1)>, L<http://libguestfs.org/>."
6743
6744 #. type: =head2
6745 #: ../fish/guestfish-actions.pod:1
6746 msgid "add-cdrom"
6747 msgstr ""
6748
6749 #. type: verbatim
6750 #: ../fish/guestfish-actions.pod:3
6751 #, no-wrap
6752 msgid ""
6753 " add-cdrom filename\n"
6754 "\n"
6755 msgstr ""
6756
6757 #. type: textblock
6758 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
6759 msgid "This function adds a virtual CD-ROM disk image to the guest."
6760 msgstr ""
6761
6762 #. type: textblock
6763 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
6764 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
6765 msgstr ""
6766
6767 #. type: textblock
6768 #: ../fish/guestfish-actions.pod:15
6769 msgid ""
6770 "This call checks for the existence of C<filename>.  This stops you from "
6771 "specifying other types of drive which are supported by qemu such as C<nbd:> "
6772 "and C<http:> URLs.  To specify those, use the general L</config> call "
6773 "instead."
6774 msgstr ""
6775
6776 #. type: textblock
6777 #: ../fish/guestfish-actions.pod:22
6778 msgid ""
6779 "If you just want to add an ISO file (often you use this as an efficient way "
6780 "to transfer large files into the guest), then you should probably use L</add-"
6781 "drive-ro> instead."
6782 msgstr ""
6783
6784 #. type: textblock
6785 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:214
6786 #: ../fish/guestfish-actions.pod:228
6787 msgid ""
6788 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
6789 "instead."
6790 msgstr ""
6791
6792 #. type: textblock
6793 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:217
6794 #: ../fish/guestfish-actions.pod:231 ../fish/guestfish-actions.pod:941
6795 #: ../fish/guestfish-actions.pod:976 ../fish/guestfish-actions.pod:1149
6796 #: ../fish/guestfish-actions.pod:1509 ../fish/guestfish-actions.pod:1523
6797 #: ../fish/guestfish-actions.pod:3392 ../fish/guestfish-actions.pod:3703
6798 #: ../fish/guestfish-actions.pod:3751 ../fish/guestfish-actions.pod:4669
6799 #: ../fish/guestfish-actions.pod:4689 ../fish/guestfish-actions.pod:4708
6800 #: ../fish/guestfish-actions.pod:4746 ../fish/guestfish-actions.pod:5474
6801 #: ../fish/guestfish-actions.pod:5577 ../src/guestfs-actions.pod:10
6802 #: ../src/guestfs-actions.pod:305 ../src/guestfs-actions.pod:326
6803 #: ../src/guestfs-actions.pod:1580 ../src/guestfs-actions.pod:1637
6804 #: ../src/guestfs-actions.pod:1920 ../src/guestfs-actions.pod:2419
6805 #: ../src/guestfs-actions.pod:2440 ../src/guestfs-actions.pod:5242
6806 #: ../src/guestfs-actions.pod:5764 ../src/guestfs-actions.pod:5864
6807 #: ../src/guestfs-actions.pod:7160 ../src/guestfs-actions.pod:7201
6808 #: ../src/guestfs-actions.pod:7232 ../src/guestfs-actions.pod:7292
6809 #: ../src/guestfs-actions.pod:8346 ../src/guestfs-actions.pod:8455
6810 #: ../src/guestfs-actions.pod:8635
6811 msgid ""
6812 "Deprecated functions will not be removed from the API, but the fact that "
6813 "they are deprecated indicates that there are problems with correct use of "
6814 "these functions."
6815 msgstr ""
6816
6817 #. type: =head2
6818 #: ../fish/guestfish-actions.pod:35
6819 msgid "add-domain"
6820 msgstr "add-domain"
6821
6822 #. type: =head2
6823 #: ../fish/guestfish-actions.pod:37
6824 msgid "domain"
6825 msgstr "домен"
6826
6827 #. type: verbatim
6828 #: ../fish/guestfish-actions.pod:39
6829 #, no-wrap
6830 msgid ""
6831 " add-domain dom [libvirturi:..] [readonly:true|false] [iface:..] [live:true|false] [allowuuid:true|false] [readonlydisk:..]\n"
6832 "\n"
6833 msgstr ""
6834
6835 #. type: textblock
6836 #: ../fish/guestfish-actions.pod:41
6837 msgid ""
6838 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
6839 "It works by connecting to libvirt, requesting the domain and domain XML from "
6840 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
6841 msgstr ""
6842
6843 #. type: textblock
6844 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:65
6845 msgid ""
6846 "The number of disks added is returned.  This operation is atomic: if an "
6847 "error is returned, then no disks are added."
6848 msgstr ""
6849
6850 #. type: textblock
6851 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:68
6852 msgid ""
6853 "This function does some minimal checks to make sure the libvirt domain is "
6854 "not running (unless C<readonly> is true).  In a future version we will try "
6855 "to acquire the libvirt lock on each disk."
6856 msgstr ""
6857
6858 #. type: textblock
6859 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:72
6860 msgid ""
6861 "Disks must be accessible locally.  This often means that adding disks from a "
6862 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
6863 "unless those disks are accessible via the same device path locally too."
6864 msgstr ""
6865
6866 #. type: textblock
6867 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:77
6868 msgid ""
6869 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
6870 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
6871 "libvirt URI (or one set through an environment variable, see the libvirt "
6872 "documentation for full details)."
6873 msgstr ""
6874
6875 #. type: textblock
6876 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:83
6877 msgid ""
6878 "The optional C<live> flag controls whether this call will try to connect to "
6879 "a running virtual machine C<guestfsd> process if it sees a suitable "
6880 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
6881 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
6882 "DAEMONS> for more information."
6883 msgstr ""
6884
6885 #. type: textblock
6886 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:90
6887 msgid ""
6888 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
6889 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
6890 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
6891 "as usual."
6892 msgstr ""
6893
6894 #. type: textblock
6895 #: ../fish/guestfish-actions.pod:76 ../src/guestfs-actions.pod:95
6896 msgid ""
6897 "The optional C<readonlydisk> parameter controls what we do for disks which "
6898 "are marked E<lt>readonly/E<gt> in the libvirt XML.  Possible values are:"
6899 msgstr ""
6900
6901 #. type: =item
6902 #: ../fish/guestfish-actions.pod:82 ../src/guestfs-actions.pod:101
6903 msgid "readonlydisk = \"error\""
6904 msgstr ""
6905
6906 #. type: textblock
6907 #: ../fish/guestfish-actions.pod:84 ../fish/guestfish-actions.pod:95
6908 #: ../fish/guestfish-actions.pod:106 ../src/guestfs-actions.pod:103
6909 #: ../src/guestfs-actions.pod:114 ../src/guestfs-actions.pod:125
6910 msgid "If C<readonly> is false:"
6911 msgstr ""
6912
6913 #. type: textblock
6914 #: ../fish/guestfish-actions.pod:86 ../src/guestfs-actions.pod:105
6915 msgid ""
6916 "The whole call is aborted with an error if any disk with the E<lt>readonly/"
6917 "E<gt> flag is found."
6918 msgstr ""
6919
6920 #. type: textblock
6921 #: ../fish/guestfish-actions.pod:89 ../fish/guestfish-actions.pod:100
6922 #: ../fish/guestfish-actions.pod:110 ../src/guestfs-actions.pod:108
6923 #: ../src/guestfs-actions.pod:119 ../src/guestfs-actions.pod:129
6924 msgid "If C<readonly> is true:"
6925 msgstr ""
6926
6927 #. type: textblock
6928 #: ../fish/guestfish-actions.pod:91 ../fish/guestfish-actions.pod:102
6929 #: ../fish/guestfish-actions.pod:112 ../src/guestfs-actions.pod:110
6930 #: ../src/guestfs-actions.pod:121 ../src/guestfs-actions.pod:131
6931 msgid "Disks with the E<lt>readonly/E<gt> flag are added read-only."
6932 msgstr ""
6933
6934 #. type: =item
6935 #: ../fish/guestfish-actions.pod:93 ../src/guestfs-actions.pod:112
6936 msgid "readonlydisk = \"read\""
6937 msgstr ""
6938
6939 #. type: textblock
6940 #: ../fish/guestfish-actions.pod:97 ../src/guestfs-actions.pod:116
6941 msgid ""
6942 "Disks with the E<lt>readonly/E<gt> flag are added read-only.  Other disks "
6943 "are added read/write."
6944 msgstr ""
6945
6946 #. type: =item
6947 #: ../fish/guestfish-actions.pod:104 ../src/guestfs-actions.pod:123
6948 msgid "readonlydisk = \"write\" (default)"
6949 msgstr ""
6950
6951 #. type: textblock
6952 #: ../fish/guestfish-actions.pod:108 ../src/guestfs-actions.pod:127
6953 msgid "Disks with the E<lt>readonly/E<gt> flag are added read/write."
6954 msgstr ""
6955
6956 #. type: =item
6957 #: ../fish/guestfish-actions.pod:114 ../src/guestfs-actions.pod:133
6958 msgid "readonlydisk = \"ignore\""
6959 msgstr ""
6960
6961 #. type: textblock
6962 #: ../fish/guestfish-actions.pod:116 ../src/guestfs-actions.pod:135
6963 msgid "If C<readonly> is true or false:"
6964 msgstr ""
6965
6966 #. type: textblock
6967 #: ../fish/guestfish-actions.pod:118 ../src/guestfs-actions.pod:137
6968 msgid "Disks with the E<lt>readonly/E<gt> flag are skipped."
6969 msgstr ""
6970
6971 #. type: textblock
6972 #: ../fish/guestfish-actions.pod:122
6973 msgid ""
6974 "The other optional parameters are passed directly through to L</add-drive-"
6975 "opts>."
6976 msgstr ""
6977
6978 #. type: textblock
6979 #: ../fish/guestfish-actions.pod:125 ../fish/guestfish-actions.pod:194
6980 #: ../fish/guestfish-actions.pod:624 ../fish/guestfish-actions.pod:835
6981 #: ../fish/guestfish-actions.pod:856 ../fish/guestfish-actions.pod:894
6982 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:912
6983 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:2171
6984 #: ../fish/guestfish-actions.pod:3219 ../fish/guestfish-actions.pod:3441
6985 #: ../fish/guestfish-actions.pod:3604 ../fish/guestfish-actions.pod:3739
6986 #: ../fish/guestfish-actions.pod:5110
6987 msgid ""
6988 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
6989 msgstr ""
6990
6991 #. type: =head2
6992 #: ../fish/guestfish-actions.pod:127
6993 msgid "add-drive"
6994 msgstr "add-drive"
6995
6996 #. type: verbatim
6997 #: ../fish/guestfish-actions.pod:129
6998 #, no-wrap
6999 msgid ""
7000 " add-drive filename\n"
7001 "\n"
7002 msgstr ""
7003 " add-drive назва_файла\n"
7004 "\n"
7005
7006 #. type: textblock
7007 #: ../fish/guestfish-actions.pod:131
7008 msgid ""
7009 "This function is the equivalent of calling L</add-drive-opts> with no "
7010 "optional parameters, so the disk is added writable, with the format being "
7011 "detected automatically."
7012 msgstr ""
7013
7014 #. type: textblock
7015 #: ../fish/guestfish-actions.pod:135
7016 msgid ""
7017 "Automatic detection of the format opens you up to a potential security hole "
7018 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
7019 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
7020 "you should think about replacing calls to this function with calls to L</add-"
7021 "drive-opts>, and specifying the format."
7022 msgstr ""
7023
7024 #. type: =head2
7025 #: ../fish/guestfish-actions.pod:142
7026 msgid "add-drive-opts"
7027 msgstr "add-drive-opts"
7028
7029 #. type: =head2
7030 #: ../fish/guestfish-actions.pod:144
7031 msgid "add"
7032 msgstr "add"
7033
7034 #. type: verbatim
7035 #: ../fish/guestfish-actions.pod:146
7036 #, no-wrap
7037 msgid ""
7038 " add-drive-opts filename [readonly:true|false] [format:..] [iface:..] [name:..]\n"
7039 "\n"
7040 msgstr ""
7041
7042 #. type: textblock
7043 #: ../fish/guestfish-actions.pod:148 ../src/guestfs-actions.pod:208
7044 msgid ""
7045 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
7046 "The first time you call this function, the disk appears as C</dev/sda>, the "
7047 "second time as C</dev/sdb>, and so on."
7048 msgstr ""
7049
7050 #. type: textblock
7051 #: ../fish/guestfish-actions.pod:153 ../src/guestfs-actions.pod:213
7052 msgid ""
7053 "You don't necessarily need to be root when using libguestfs.  However you "
7054 "obviously do need sufficient permissions to access the filename for whatever "
7055 "operations you want to perform (ie. read access if you just want to read the "
7056 "image or write access if you want to modify the image)."
7057 msgstr ""
7058
7059 #. type: textblock
7060 #: ../fish/guestfish-actions.pod:159 ../src/guestfs-actions.pod:219
7061 msgid "This call checks that C<filename> exists."
7062 msgstr ""
7063
7064 #. type: textblock
7065 #: ../fish/guestfish-actions.pod:161 ../fish/guestfish-actions.pod:3403
7066 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5279
7067 msgid "The optional arguments are:"
7068 msgstr ""
7069
7070 #. type: =item
7071 #: ../fish/guestfish-actions.pod:165 ../src/guestfs-actions.pod:225
7072 msgid "C<readonly>"
7073 msgstr "C<readonly>"
7074
7075 #. type: textblock
7076 #: ../fish/guestfish-actions.pod:167 ../src/guestfs-actions.pod:227
7077 msgid ""
7078 "If true then the image is treated as read-only.  Writes are still allowed, "
7079 "but they are stored in a temporary snapshot overlay which is discarded at "
7080 "the end.  The disk that you add is not modified."
7081 msgstr ""
7082
7083 #. type: =item
7084 #: ../fish/guestfish-actions.pod:171 ../src/guestfs-actions.pod:231
7085 msgid "C<format>"
7086 msgstr "C<format>"
7087
7088 #. type: textblock
7089 #: ../fish/guestfish-actions.pod:173
7090 msgid ""
7091 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
7092 "add-drive-ro>) then the format is automatically detected.  Possible formats "
7093 "include C<raw> and C<qcow2>."
7094 msgstr ""
7095
7096 #. type: textblock
7097 #: ../fish/guestfish-actions.pod:177 ../src/guestfs-actions.pod:237
7098 msgid ""
7099 "Automatic detection of the format opens you up to a potential security hole "
7100 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
7101 "RHBZ#642934.  Specifying the format closes this security hole."
7102 msgstr ""
7103
7104 #. type: =item
7105 #: ../fish/guestfish-actions.pod:182 ../src/guestfs-actions.pod:242
7106 msgid "C<iface>"
7107 msgstr "C<iface>"
7108
7109 #. type: textblock
7110 #: ../fish/guestfish-actions.pod:184
7111 msgid ""
7112 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
7113 "add-drive-with-if> call (q.v.)"
7114 msgstr ""
7115
7116 #. type: =item
7117 #: ../fish/guestfish-actions.pod:187 ../fish/guestfish-actions.pod:3246
7118 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:5000
7119 msgid "C<name>"
7120 msgstr ""
7121
7122 #. type: textblock
7123 #: ../fish/guestfish-actions.pod:189 ../src/guestfs-actions.pod:249
7124 msgid ""
7125 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
7126 "a hint to the guest inspection process if it is available."
7127 msgstr ""
7128
7129 #. type: =head2
7130 #: ../fish/guestfish-actions.pod:196
7131 msgid "add-drive-ro"
7132 msgstr "add-drive-ro"
7133
7134 #. type: =head2
7135 #: ../fish/guestfish-actions.pod:198
7136 msgid "add-ro"
7137 msgstr "add-ro"
7138
7139 #. type: verbatim
7140 #: ../fish/guestfish-actions.pod:200
7141 #, no-wrap
7142 msgid ""
7143 " add-drive-ro filename\n"
7144 "\n"
7145 msgstr ""
7146
7147 #. type: textblock
7148 #: ../fish/guestfish-actions.pod:202
7149 msgid ""
7150 "This function is the equivalent of calling L</add-drive-opts> with the "
7151 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
7152 "is added read-only, with the format being detected automatically."
7153 msgstr ""
7154
7155 #. type: =head2
7156 #: ../fish/guestfish-actions.pod:207
7157 msgid "add-drive-ro-with-if"
7158 msgstr ""
7159
7160 #. type: verbatim
7161 #: ../fish/guestfish-actions.pod:209
7162 #, no-wrap
7163 msgid ""
7164 " add-drive-ro-with-if filename iface\n"
7165 "\n"
7166 msgstr ""
7167
7168 #. type: textblock
7169 #: ../fish/guestfish-actions.pod:211
7170 msgid ""
7171 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
7172 "interface emulation to use at run time."
7173 msgstr ""
7174
7175 #. type: =head2
7176 #: ../fish/guestfish-actions.pod:221
7177 msgid "add-drive-with-if"
7178 msgstr ""
7179
7180 #. type: verbatim
7181 #: ../fish/guestfish-actions.pod:223
7182 #, no-wrap
7183 msgid ""
7184 " add-drive-with-if filename iface\n"
7185 "\n"
7186 msgstr ""
7187
7188 #. type: textblock
7189 #: ../fish/guestfish-actions.pod:225
7190 msgid ""
7191 "This is the same as L</add-drive> but it allows you to specify the QEMU "
7192 "interface emulation to use at run time."
7193 msgstr ""
7194
7195 #. type: =head2
7196 #: ../fish/guestfish-actions.pod:235
7197 msgid "aug-clear"
7198 msgstr ""
7199
7200 #. type: verbatim
7201 #: ../fish/guestfish-actions.pod:237
7202 #, no-wrap
7203 msgid ""
7204 " aug-clear augpath\n"
7205 "\n"
7206 msgstr ""
7207
7208 #. type: textblock
7209 #: ../fish/guestfish-actions.pod:239 ../src/guestfs-actions.pod:343
7210 msgid ""
7211 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
7212 "L<augtool(1)> C<clear> command."
7213 msgstr ""
7214
7215 #. type: =head2
7216 #: ../fish/guestfish-actions.pod:242
7217 msgid "aug-close"
7218 msgstr ""
7219
7220 #. type: verbatim
7221 #: ../fish/guestfish-actions.pod:244
7222 #, no-wrap
7223 msgid ""
7224 " aug-close\n"
7225 "\n"
7226 msgstr ""
7227
7228 #. type: textblock
7229 #: ../fish/guestfish-actions.pod:246
7230 msgid ""
7231 "Close the current Augeas handle and free up any resources used by it.  After "
7232 "calling this, you have to call L</aug-init> again before you can use any "
7233 "other Augeas functions."
7234 msgstr ""
7235
7236 #. type: =head2
7237 #: ../fish/guestfish-actions.pod:251
7238 msgid "aug-defnode"
7239 msgstr ""
7240
7241 #. type: verbatim
7242 #: ../fish/guestfish-actions.pod:253
7243 #, no-wrap
7244 msgid ""
7245 " aug-defnode name expr val\n"
7246 "\n"
7247 msgstr ""
7248
7249 #. type: textblock
7250 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:372
7251 msgid ""
7252 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
7253 msgstr ""
7254
7255 #. type: textblock
7256 #: ../fish/guestfish-actions.pod:258
7257 msgid ""
7258 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
7259 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
7260 "containing that single node."
7261 msgstr ""
7262
7263 #. type: textblock
7264 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:379
7265 msgid ""
7266 "On success this returns a pair containing the number of nodes in the "
7267 "nodeset, and a boolean flag if a node was created."
7268 msgstr ""
7269
7270 #. type: =head2
7271 #: ../fish/guestfish-actions.pod:266
7272 msgid "aug-defvar"
7273 msgstr ""
7274
7275 #. type: verbatim
7276 #: ../fish/guestfish-actions.pod:268
7277 #, no-wrap
7278 msgid ""
7279 " aug-defvar name expr\n"
7280 "\n"
7281 msgstr ""
7282
7283 #. type: textblock
7284 #: ../fish/guestfish-actions.pod:270 ../src/guestfs-actions.pod:396
7285 msgid ""
7286 "Defines an Augeas variable C<name> whose value is the result of evaluating "
7287 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
7288 msgstr ""
7289
7290 #. type: textblock
7291 #: ../fish/guestfish-actions.pod:274 ../src/guestfs-actions.pod:400
7292 msgid ""
7293 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
7294 "evaluates to something which is not a nodeset."
7295 msgstr ""
7296
7297 #. type: =head2
7298 #: ../fish/guestfish-actions.pod:277
7299 msgid "aug-get"
7300 msgstr ""
7301
7302 #. type: verbatim
7303 #: ../fish/guestfish-actions.pod:279
7304 #, no-wrap
7305 msgid ""
7306 " aug-get augpath\n"
7307 "\n"
7308 msgstr ""
7309
7310 #. type: textblock
7311 #: ../fish/guestfish-actions.pod:281 ../src/guestfs-actions.pod:413
7312 msgid ""
7313 "Look up the value associated with C<path>.  If C<path> matches exactly one "
7314 "node, the C<value> is returned."
7315 msgstr ""
7316
7317 #. type: =head2
7318 #: ../fish/guestfish-actions.pod:284
7319 msgid "aug-init"
7320 msgstr ""
7321
7322 #. type: verbatim
7323 #: ../fish/guestfish-actions.pod:286
7324 #, no-wrap
7325 msgid ""
7326 " aug-init root flags\n"
7327 "\n"
7328 msgstr ""
7329
7330 #. type: textblock
7331 #: ../fish/guestfish-actions.pod:288 ../src/guestfs-actions.pod:428
7332 msgid ""
7333 "Create a new Augeas handle for editing configuration files.  If there was "
7334 "any previous Augeas handle associated with this guestfs session, then it is "
7335 "closed."
7336 msgstr ""
7337
7338 #. type: textblock
7339 #: ../fish/guestfish-actions.pod:292
7340 msgid "You must call this before using any other L</aug-*> commands."
7341 msgstr ""
7342
7343 #. type: textblock
7344 #: ../fish/guestfish-actions.pod:295 ../src/guestfs-actions.pod:435
7345 msgid ""
7346 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
7347 msgstr ""
7348
7349 #. type: textblock
7350 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:438
7351 msgid ""
7352 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
7353 "logical I<or> of the following integers:"
7354 msgstr ""
7355
7356 #. type: =item
7357 #: ../fish/guestfish-actions.pod:304 ../src/guestfs-actions.pod:444
7358 msgid "C<AUG_SAVE_BACKUP> = 1"
7359 msgstr "C<AUG_SAVE_BACKUP> = 1"
7360
7361 #. type: textblock
7362 #: ../fish/guestfish-actions.pod:306 ../src/guestfs-actions.pod:446
7363 msgid "Keep the original file with a C<.augsave> extension."
7364 msgstr ""
7365
7366 #. type: =item
7367 #: ../fish/guestfish-actions.pod:308 ../src/guestfs-actions.pod:448
7368 msgid "C<AUG_SAVE_NEWFILE> = 2"
7369 msgstr "C<AUG_SAVE_NEWFILE> = 2"
7370
7371 #. type: textblock
7372 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:450
7373 msgid ""
7374 "Save changes into a file with extension C<.augnew>, and do not overwrite "
7375 "original.  Overrides C<AUG_SAVE_BACKUP>."
7376 msgstr ""
7377
7378 #. type: =item
7379 #: ../fish/guestfish-actions.pod:313 ../src/guestfs-actions.pod:453
7380 msgid "C<AUG_TYPE_CHECK> = 4"
7381 msgstr "C<AUG_TYPE_CHECK> = 4"
7382
7383 #. type: textblock
7384 #: ../fish/guestfish-actions.pod:315 ../src/guestfs-actions.pod:455
7385 msgid "Typecheck lenses."
7386 msgstr ""
7387
7388 #. type: textblock
7389 #: ../fish/guestfish-actions.pod:317
7390 msgid ""
7391 "This option is only useful when debugging Augeas lenses.  Use of this option "
7392 "may require additional memory for the libguestfs appliance.  You may need to "
7393 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
7394 msgstr ""
7395
7396 #. type: =item
7397 #: ../fish/guestfish-actions.pod:322 ../src/guestfs-actions.pod:462
7398 msgid "C<AUG_NO_STDINC> = 8"
7399 msgstr "C<AUG_NO_STDINC> = 8"
7400
7401 #. type: textblock
7402 #: ../fish/guestfish-actions.pod:324 ../src/guestfs-actions.pod:464
7403 msgid "Do not use standard load path for modules."
7404 msgstr ""
7405
7406 #. type: =item
7407 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:466
7408 msgid "C<AUG_SAVE_NOOP> = 16"
7409 msgstr "C<AUG_SAVE_NOOP> = 16"
7410
7411 #. type: textblock
7412 #: ../fish/guestfish-actions.pod:328 ../src/guestfs-actions.pod:468
7413 msgid "Make save a no-op, just record what would have been changed."
7414 msgstr ""
7415
7416 #. type: =item
7417 #: ../fish/guestfish-actions.pod:330 ../src/guestfs-actions.pod:470
7418 msgid "C<AUG_NO_LOAD> = 32"
7419 msgstr "C<AUG_NO_LOAD> = 32"
7420
7421 #. type: textblock
7422 #: ../fish/guestfish-actions.pod:332
7423 msgid "Do not load the tree in L</aug-init>."
7424 msgstr ""
7425
7426 #. type: textblock
7427 #: ../fish/guestfish-actions.pod:336
7428 msgid "To close the handle, you can call L</aug-close>."
7429 msgstr ""
7430
7431 #. type: textblock
7432 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:478
7433 msgid "To find out more about Augeas, see L<http://augeas.net/>."
7434 msgstr ""
7435
7436 #. type: =head2
7437 #: ../fish/guestfish-actions.pod:340
7438 msgid "aug-insert"
7439 msgstr ""
7440
7441 #. type: verbatim
7442 #: ../fish/guestfish-actions.pod:342
7443 #, no-wrap
7444 msgid ""
7445 " aug-insert augpath label true|false\n"
7446 "\n"
7447 msgstr ""
7448
7449 #. type: textblock
7450 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:492
7451 msgid ""
7452 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
7453 "or after C<path> (depending on the boolean flag C<before>)."
7454 msgstr ""
7455
7456 #. type: textblock
7457 #: ../fish/guestfish-actions.pod:348 ../src/guestfs-actions.pod:496
7458 msgid ""
7459 "C<path> must match exactly one existing node in the tree, and C<label> must "
7460 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
7461 msgstr ""
7462
7463 #. type: =head2
7464 #: ../fish/guestfish-actions.pod:352
7465 msgid "aug-load"
7466 msgstr ""
7467
7468 #. type: verbatim
7469 #: ../fish/guestfish-actions.pod:354
7470 #, no-wrap
7471 msgid ""
7472 " aug-load\n"
7473 "\n"
7474 msgstr ""
7475
7476 #. type: textblock
7477 #: ../fish/guestfish-actions.pod:356 ../src/guestfs-actions.pod:509
7478 msgid "Load files into the tree."
7479 msgstr "Завантажити файли до ієрархії."
7480
7481 #. type: textblock
7482 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:511
7483 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
7484 msgstr ""
7485
7486 #. type: =head2
7487 #: ../fish/guestfish-actions.pod:361
7488 msgid "aug-ls"
7489 msgstr ""
7490
7491 #. type: verbatim
7492 #: ../fish/guestfish-actions.pod:363
7493 #, no-wrap
7494 msgid ""
7495 " aug-ls augpath\n"
7496 "\n"
7497 msgstr ""
7498
7499 #. type: textblock
7500 #: ../fish/guestfish-actions.pod:365
7501 msgid ""
7502 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
7503 "resulting nodes into alphabetical order."
7504 msgstr ""
7505
7506 #. type: =head2
7507 #: ../fish/guestfish-actions.pod:368
7508 msgid "aug-match"
7509 msgstr ""
7510
7511 #. type: verbatim
7512 #: ../fish/guestfish-actions.pod:370
7513 #, no-wrap
7514 msgid ""
7515 " aug-match augpath\n"
7516 "\n"
7517 msgstr ""
7518
7519 #. type: textblock
7520 #: ../fish/guestfish-actions.pod:372 ../src/guestfs-actions.pod:539
7521 msgid ""
7522 "Returns a list of paths which match the path expression C<path>.  The "
7523 "returned paths are sufficiently qualified so that they match exactly one "
7524 "node in the current tree."
7525 msgstr ""
7526
7527 #. type: =head2
7528 #: ../fish/guestfish-actions.pod:376
7529 msgid "aug-mv"
7530 msgstr ""
7531
7532 #. type: verbatim
7533 #: ../fish/guestfish-actions.pod:378
7534 #, no-wrap
7535 msgid ""
7536 " aug-mv src dest\n"
7537 "\n"
7538 msgstr ""
7539
7540 #. type: textblock
7541 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:556
7542 msgid ""
7543 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
7544 "C<dest> is overwritten if it exists."
7545 msgstr ""
7546
7547 #. type: =head2
7548 #: ../fish/guestfish-actions.pod:383
7549 msgid "aug-rm"
7550 msgstr ""
7551
7552 #. type: verbatim
7553 #: ../fish/guestfish-actions.pod:385
7554 #, no-wrap
7555 msgid ""
7556 " aug-rm augpath\n"
7557 "\n"
7558 msgstr ""
7559
7560 #. type: textblock
7561 #: ../fish/guestfish-actions.pod:387 ../src/guestfs-actions.pod:569
7562 msgid "Remove C<path> and all of its children."
7563 msgstr ""
7564
7565 #. type: textblock
7566 #: ../fish/guestfish-actions.pod:389 ../src/guestfs-actions.pod:571
7567 msgid "On success this returns the number of entries which were removed."
7568 msgstr ""
7569
7570 #. type: =head2
7571 #: ../fish/guestfish-actions.pod:391
7572 msgid "aug-save"
7573 msgstr ""
7574
7575 #. type: verbatim
7576 #: ../fish/guestfish-actions.pod:393
7577 #, no-wrap
7578 msgid ""
7579 " aug-save\n"
7580 "\n"
7581 msgstr ""
7582
7583 #. type: textblock
7584 #: ../fish/guestfish-actions.pod:395 ../src/guestfs-actions.pod:582
7585 msgid "This writes all pending changes to disk."
7586 msgstr ""
7587
7588 #. type: textblock
7589 #: ../fish/guestfish-actions.pod:397
7590 msgid ""
7591 "The flags which were passed to L</aug-init> affect exactly how files are "
7592 "saved."
7593 msgstr ""
7594
7595 #. type: =head2
7596 #: ../fish/guestfish-actions.pod:400
7597 msgid "aug-set"
7598 msgstr ""
7599
7600 #. type: verbatim
7601 #: ../fish/guestfish-actions.pod:402
7602 #, no-wrap
7603 msgid ""
7604 " aug-set augpath val\n"
7605 "\n"
7606 msgstr ""
7607
7608 #. type: textblock
7609 #: ../fish/guestfish-actions.pod:404 ../src/guestfs-actions.pod:598
7610 msgid "Set the value associated with C<path> to C<val>."
7611 msgstr ""
7612
7613 #. type: textblock
7614 #: ../fish/guestfish-actions.pod:406
7615 msgid ""
7616 "In the Augeas API, it is possible to clear a node by setting the value to "
7617 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
7618 "this call.  Instead you must use the L</aug-clear> call."
7619 msgstr ""
7620
7621 #. type: =head2
7622 #: ../fish/guestfish-actions.pod:411
7623 msgid "available"
7624 msgstr ""
7625
7626 #. type: verbatim
7627 #: ../fish/guestfish-actions.pod:413
7628 #, no-wrap
7629 msgid ""
7630 " available 'groups ...'\n"
7631 "\n"
7632 msgstr ""
7633
7634 #. type: textblock
7635 #: ../fish/guestfish-actions.pod:415 ../src/guestfs-actions.pod:615
7636 msgid ""
7637 "This command is used to check the availability of some groups of "
7638 "functionality in the appliance, which not all builds of the libguestfs "
7639 "appliance will be able to provide."
7640 msgstr ""
7641
7642 #. type: textblock
7643 #: ../fish/guestfish-actions.pod:419
7644 msgid ""
7645 "The libguestfs groups, and the functions that those groups correspond to, "
7646 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
7647 "runtime by calling L</available-all-groups>."
7648 msgstr ""
7649
7650 #. type: textblock
7651 #: ../fish/guestfish-actions.pod:424 ../src/guestfs-actions.pod:624
7652 msgid ""
7653 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
7654 "\"]> would check for the availability of the Linux inotify functions and "
7655 "Augeas (configuration file editing) functions."
7656 msgstr ""
7657
7658 #. type: textblock
7659 #: ../fish/guestfish-actions.pod:429 ../src/guestfs-actions.pod:629
7660 msgid "The command returns no error if I<all> requested groups are available."
7661 msgstr ""
7662
7663 #. type: textblock
7664 #: ../fish/guestfish-actions.pod:431 ../src/guestfs-actions.pod:631
7665 msgid ""
7666 "It fails with an error if one or more of the requested groups is unavailable "
7667 "in the appliance."
7668 msgstr ""
7669
7670 #. type: textblock
7671 #: ../fish/guestfish-actions.pod:434 ../src/guestfs-actions.pod:634
7672 msgid ""
7673 "If an unknown group name is included in the list of groups then an error is "
7674 "always returned."
7675 msgstr ""
7676
7677 #. type: textblock
7678 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:637
7679 msgid "I<Notes:>"
7680 msgstr "I<Нотатки:>"
7681
7682 #. type: textblock
7683 #: ../fish/guestfish-actions.pod:443
7684 msgid "You must call L</launch> before calling this function."
7685 msgstr ""
7686
7687 #. type: textblock
7688 #: ../fish/guestfish-actions.pod:445 ../src/guestfs-actions.pod:645
7689 msgid ""
7690 "The reason is because we don't know what groups are supported by the "
7691 "appliance/daemon until it is running and can be queried."
7692 msgstr ""
7693
7694 #. type: textblock
7695 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:651
7696 msgid ""
7697 "If a group of functions is available, this does not necessarily mean that "
7698 "they will work.  You still have to check for errors when calling individual "
7699 "API functions even if they are available."
7700 msgstr ""
7701
7702 #. type: textblock
7703 #: ../fish/guestfish-actions.pod:458 ../src/guestfs-actions.pod:658
7704 msgid ""
7705 "It is usually the job of distro packagers to build complete functionality "
7706 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
7707 "with all requirements satisfied, will support everything."
7708 msgstr ""
7709
7710 #. type: textblock
7711 #: ../fish/guestfish-actions.pod:465
7712 msgid ""
7713 "This call was added in version C<1.0.80>.  In previous versions of "
7714 "libguestfs all you could do would be to speculatively execute a command to "
7715 "find out if the daemon implemented it.  See also L</version>."
7716 msgstr ""
7717
7718 #. type: =head2
7719 #: ../fish/guestfish-actions.pod:472
7720 msgid "available-all-groups"
7721 msgstr ""
7722
7723 #. type: verbatim
7724 #: ../fish/guestfish-actions.pod:474
7725 #, no-wrap
7726 msgid ""
7727 " available-all-groups\n"
7728 "\n"
7729 msgstr ""
7730
7731 #. type: textblock
7732 #: ../fish/guestfish-actions.pod:476
7733 msgid ""
7734 "This command returns a list of all optional groups that this daemon knows "
7735 "about.  Note this returns both supported and unsupported groups.  To find "
7736 "out which ones the daemon can actually support you have to call L</"
7737 "available> on each member of the returned list."
7738 msgstr ""
7739
7740 #. type: textblock
7741 #: ../fish/guestfish-actions.pod:482
7742 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
7743 msgstr ""
7744
7745 #. type: =head2
7746 #: ../fish/guestfish-actions.pod:484
7747 msgid "base64-in"
7748 msgstr ""
7749
7750 #. type: verbatim
7751 #: ../fish/guestfish-actions.pod:486
7752 #, no-wrap
7753 msgid ""
7754 " base64-in (base64file|-) filename\n"
7755 "\n"
7756 msgstr ""
7757
7758 #. type: textblock
7759 #: ../fish/guestfish-actions.pod:488 ../src/guestfs-actions.pod:702
7760 msgid ""
7761 "This command uploads base64-encoded data from C<base64file> to C<filename>."
7762 msgstr ""
7763
7764 #. type: textblock
7765 #: ../fish/guestfish-actions.pod:491 ../fish/guestfish-actions.pod:500
7766 #: ../fish/guestfish-actions.pod:749 ../fish/guestfish-actions.pod:833
7767 #: ../fish/guestfish-actions.pod:854 ../fish/guestfish-actions.pod:1025
7768 #: ../fish/guestfish-actions.pod:1044 ../fish/guestfish-actions.pod:1418
7769 #: ../fish/guestfish-actions.pod:4966 ../fish/guestfish-actions.pod:4978
7770 #: ../fish/guestfish-actions.pod:4989 ../fish/guestfish-actions.pod:5000
7771 #: ../fish/guestfish-actions.pod:5131 ../fish/guestfish-actions.pod:5140
7772 #: ../fish/guestfish-actions.pod:5194 ../fish/guestfish-actions.pod:5217
7773 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
7774 msgstr ""
7775
7776 #. type: =head2
7777 #: ../fish/guestfish-actions.pod:493
7778 msgid "base64-out"
7779 msgstr ""
7780
7781 #. type: verbatim
7782 #: ../fish/guestfish-actions.pod:495
7783 #, no-wrap
7784 msgid ""
7785 " base64-out filename (base64file|-)\n"
7786 "\n"
7787 msgstr ""
7788
7789 #. type: textblock
7790 #: ../fish/guestfish-actions.pod:497 ../src/guestfs-actions.pod:716
7791 msgid ""
7792 "This command downloads the contents of C<filename>, writing it out to local "
7793 "file C<base64file> encoded as base64."
7794 msgstr ""
7795
7796 #. type: =head2
7797 #: ../fish/guestfish-actions.pod:502
7798 msgid "blockdev-flushbufs"
7799 msgstr ""
7800
7801 #. type: verbatim
7802 #: ../fish/guestfish-actions.pod:504
7803 #, no-wrap
7804 msgid ""
7805 " blockdev-flushbufs device\n"
7806 "\n"
7807 msgstr ""
7808
7809 #. type: textblock
7810 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:729
7811 msgid ""
7812 "This tells the kernel to flush internal buffers associated with C<device>."
7813 msgstr ""
7814
7815 #. type: textblock
7816 #: ../fish/guestfish-actions.pod:509 ../fish/guestfish-actions.pod:520
7817 #: ../fish/guestfish-actions.pod:529 ../fish/guestfish-actions.pod:539
7818 #: ../fish/guestfish-actions.pod:551 ../fish/guestfish-actions.pod:564
7819 #: ../fish/guestfish-actions.pod:572 ../fish/guestfish-actions.pod:583
7820 #: ../fish/guestfish-actions.pod:591 ../fish/guestfish-actions.pod:599
7821 #: ../src/guestfs-actions.pod:732 ../src/guestfs-actions.pod:749
7822 #: ../src/guestfs-actions.pod:764 ../src/guestfs-actions.pod:780
7823 #: ../src/guestfs-actions.pod:798 ../src/guestfs-actions.pod:817
7824 #: ../src/guestfs-actions.pod:831 ../src/guestfs-actions.pod:849
7825 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:877
7826 msgid "This uses the L<blockdev(8)> command."
7827 msgstr ""
7828
7829 #. type: =head2
7830 #: ../fish/guestfish-actions.pod:511
7831 msgid "blockdev-getbsz"
7832 msgstr ""
7833
7834 #. type: verbatim
7835 #: ../fish/guestfish-actions.pod:513
7836 #, no-wrap
7837 msgid ""
7838 " blockdev-getbsz device\n"
7839 "\n"
7840 msgstr ""
7841
7842 #. type: textblock
7843 #: ../fish/guestfish-actions.pod:515 ../src/guestfs-actions.pod:744
7844 msgid "This returns the block size of a device."
7845 msgstr ""
7846
7847 #. type: textblock
7848 #: ../fish/guestfish-actions.pod:517 ../fish/guestfish-actions.pod:580
7849 #: ../src/guestfs-actions.pod:746 ../src/guestfs-actions.pod:846
7850 msgid ""
7851 "(Note this is different from both I<size in blocks> and I<filesystem block "
7852 "size>)."
7853 msgstr ""
7854
7855 #. type: =head2
7856 #: ../fish/guestfish-actions.pod:522
7857 msgid "blockdev-getro"
7858 msgstr ""
7859
7860 #. type: verbatim
7861 #: ../fish/guestfish-actions.pod:524
7862 #, no-wrap
7863 msgid ""
7864 " blockdev-getro device\n"
7865 "\n"
7866 msgstr ""
7867
7868 #. type: textblock
7869 #: ../fish/guestfish-actions.pod:526 ../src/guestfs-actions.pod:761
7870 msgid ""
7871 "Returns a boolean indicating if the block device is read-only (true if read-"
7872 "only, false if not)."
7873 msgstr ""
7874
7875 #. type: =head2
7876 #: ../fish/guestfish-actions.pod:531
7877 msgid "blockdev-getsize64"
7878 msgstr ""
7879
7880 #. type: verbatim
7881 #: ../fish/guestfish-actions.pod:533
7882 #, no-wrap
7883 msgid ""
7884 " blockdev-getsize64 device\n"
7885 "\n"
7886 msgstr ""
7887
7888 #. type: textblock
7889 #: ../fish/guestfish-actions.pod:535 ../src/guestfs-actions.pod:776
7890 msgid "This returns the size of the device in bytes."
7891 msgstr ""
7892
7893 #. type: textblock
7894 #: ../fish/guestfish-actions.pod:537
7895 msgid "See also L</blockdev-getsz>."
7896 msgstr "Див. також L</blockdev-getsz>."
7897
7898 #. type: =head2
7899 #: ../fish/guestfish-actions.pod:541
7900 msgid "blockdev-getss"
7901 msgstr ""
7902
7903 #. type: verbatim
7904 #: ../fish/guestfish-actions.pod:543
7905 #, no-wrap
7906 msgid ""
7907 " blockdev-getss device\n"
7908 "\n"
7909 msgstr ""
7910
7911 #. type: textblock
7912 #: ../fish/guestfish-actions.pod:545 ../src/guestfs-actions.pod:792
7913 msgid ""
7914 "This returns the size of sectors on a block device.  Usually 512, but can be "
7915 "larger for modern devices."
7916 msgstr ""
7917
7918 #. type: textblock
7919 #: ../fish/guestfish-actions.pod:548
7920 msgid ""
7921 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
7922 msgstr ""
7923
7924 #. type: =head2
7925 #: ../fish/guestfish-actions.pod:553
7926 msgid "blockdev-getsz"
7927 msgstr ""
7928
7929 #. type: verbatim
7930 #: ../fish/guestfish-actions.pod:555
7931 #, no-wrap
7932 msgid ""
7933 " blockdev-getsz device\n"
7934 "\n"
7935 msgstr ""
7936
7937 #. type: textblock
7938 #: ../fish/guestfish-actions.pod:557 ../src/guestfs-actions.pod:810
7939 msgid ""
7940 "This returns the size of the device in units of 512-byte sectors (even if "
7941 "the sectorsize isn't 512 bytes ... weird)."
7942 msgstr ""
7943
7944 #. type: textblock
7945 #: ../fish/guestfish-actions.pod:560
7946 msgid ""
7947 "See also L</blockdev-getss> for the real sector size of the device, and L</"
7948 "blockdev-getsize64> for the more useful I<size in bytes>."
7949 msgstr ""
7950
7951 #. type: =head2
7952 #: ../fish/guestfish-actions.pod:566
7953 msgid "blockdev-rereadpt"
7954 msgstr ""
7955
7956 #. type: verbatim
7957 #: ../fish/guestfish-actions.pod:568
7958 #, no-wrap
7959 msgid ""
7960 " blockdev-rereadpt device\n"
7961 "\n"
7962 msgstr ""
7963
7964 #. type: textblock
7965 #: ../fish/guestfish-actions.pod:570 ../src/guestfs-actions.pod:829
7966 msgid "Reread the partition table on C<device>."
7967 msgstr ""
7968
7969 #. type: =head2
7970 #: ../fish/guestfish-actions.pod:574
7971 msgid "blockdev-setbsz"
7972 msgstr ""
7973
7974 #. type: verbatim
7975 #: ../fish/guestfish-actions.pod:576
7976 #, no-wrap
7977 msgid ""
7978 " blockdev-setbsz device blocksize\n"
7979 "\n"
7980 msgstr ""
7981
7982 #. type: textblock
7983 #: ../fish/guestfish-actions.pod:578 ../src/guestfs-actions.pod:844
7984 msgid "This sets the block size of a device."
7985 msgstr ""
7986
7987 #. type: =head2
7988 #: ../fish/guestfish-actions.pod:585
7989 msgid "blockdev-setro"
7990 msgstr ""
7991
7992 #. type: verbatim
7993 #: ../fish/guestfish-actions.pod:587
7994 #, no-wrap
7995 msgid ""
7996 " blockdev-setro device\n"
7997 "\n"
7998 msgstr ""
7999
8000 #. type: textblock
8001 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:861
8002 msgid "Sets the block device named C<device> to read-only."
8003 msgstr ""
8004
8005 #. type: =head2
8006 #: ../fish/guestfish-actions.pod:593
8007 msgid "blockdev-setrw"
8008 msgstr ""
8009
8010 #. type: verbatim
8011 #: ../fish/guestfish-actions.pod:595
8012 #, no-wrap
8013 msgid ""
8014 " blockdev-setrw device\n"
8015 "\n"
8016 msgstr ""
8017
8018 #. type: textblock
8019 #: ../fish/guestfish-actions.pod:597 ../src/guestfs-actions.pod:875
8020 msgid "Sets the block device named C<device> to read-write."
8021 msgstr ""
8022
8023 #. type: =head2
8024 #: ../fish/guestfish-actions.pod:601
8025 msgid "btrfs-filesystem-resize"
8026 msgstr ""
8027
8028 #. type: verbatim
8029 #: ../fish/guestfish-actions.pod:603
8030 #, no-wrap
8031 msgid ""
8032 " btrfs-filesystem-resize mountpoint [size:N]\n"
8033 "\n"
8034 msgstr ""
8035
8036 #. type: textblock
8037 #: ../fish/guestfish-actions.pod:605 ../src/guestfs-actions.pod:897
8038 msgid "This command resizes a btrfs filesystem."
8039 msgstr ""
8040
8041 #. type: textblock
8042 #: ../fish/guestfish-actions.pod:607 ../src/guestfs-actions.pod:899
8043 msgid ""
8044 "Note that unlike other resize calls, the filesystem has to be mounted and "
8045 "the parameter is the mountpoint not the device (this is a requirement of "
8046 "btrfs itself)."
8047 msgstr ""
8048
8049 #. type: textblock
8050 #: ../fish/guestfish-actions.pod:611 ../fish/guestfish-actions.pod:3168
8051 #: ../fish/guestfish-actions.pod:3714 ../fish/guestfish-actions.pod:5040
8052 #: ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:4896
8053 #: ../src/guestfs-actions.pod:5803 ../src/guestfs-actions.pod:7779
8054 msgid "The optional parameters are:"
8055 msgstr ""
8056
8057 #. type: =item
8058 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3718
8059 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5807
8060 msgid "C<size>"
8061 msgstr "C<розмір>"
8062
8063 #. type: textblock
8064 #: ../fish/guestfish-actions.pod:617 ../src/guestfs-actions.pod:909
8065 msgid ""
8066 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
8067 "resized to the maximum size."
8068 msgstr ""
8069
8070 #. type: textblock
8071 #: ../fish/guestfish-actions.pod:622 ../src/guestfs-actions.pod:914
8072 msgid "See also L<btrfs(8)>."
8073 msgstr "Див. також L<btrfs(8)>."
8074
8075 #. type: =head2
8076 #: ../fish/guestfish-actions.pod:626
8077 msgid "case-sensitive-path"
8078 msgstr ""
8079
8080 #. type: verbatim
8081 #: ../fish/guestfish-actions.pod:628
8082 #, no-wrap
8083 msgid ""
8084 " case-sensitive-path path\n"
8085 "\n"
8086 msgstr ""
8087
8088 #. type: textblock
8089 #: ../fish/guestfish-actions.pod:630 ../src/guestfs-actions.pod:948
8090 msgid ""
8091 "This can be used to resolve case insensitive paths on a filesystem which is "
8092 "case sensitive.  The use case is to resolve paths which you have read from "
8093 "Windows configuration files or the Windows Registry, to the true path."
8094 msgstr ""
8095
8096 #. type: textblock
8097 #: ../fish/guestfish-actions.pod:635 ../src/guestfs-actions.pod:953
8098 msgid ""
8099 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
8100 "(and probably others), which is that although the underlying filesystem is "
8101 "case-insensitive, the driver exports the filesystem to Linux as case-"
8102 "sensitive."
8103 msgstr ""
8104
8105 #. type: textblock
8106 #: ../fish/guestfish-actions.pod:640 ../src/guestfs-actions.pod:958
8107 msgid ""
8108 "One consequence of this is that special directories such as C<c:\\windows> "
8109 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
8110 "precise details of how they were created.  In Windows itself this would not "
8111 "be a problem."
8112 msgstr ""
8113
8114 #. type: textblock
8115 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:964
8116 msgid ""
8117 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
8118 "#posixfilenames1>"
8119 msgstr ""
8120
8121 #. type: textblock
8122 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:967
8123 msgid ""
8124 "This function resolves the true case of each element in the path and returns "
8125 "the case-sensitive path."
8126 msgstr ""
8127
8128 #. type: textblock
8129 #: ../fish/guestfish-actions.pod:652
8130 msgid ""
8131 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
8132 "WINDOWS/system32\"> (the exact return value would depend on details of how "
8133 "the directories were originally created under Windows)."
8134 msgstr ""
8135
8136 #. type: textblock
8137 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:975
8138 msgid "I<Note>: This function does not handle drive names, backslashes etc."
8139 msgstr ""
8140
8141 #. type: textblock
8142 #: ../fish/guestfish-actions.pod:660
8143 msgid "See also L</realpath>."
8144 msgstr "Див. також L</realpath>."
8145
8146 #. type: =head2
8147 #: ../fish/guestfish-actions.pod:662
8148 msgid "cat"
8149 msgstr "cat"
8150
8151 #. type: verbatim
8152 #: ../fish/guestfish-actions.pod:664
8153 #, no-wrap
8154 msgid ""
8155 " cat path\n"
8156 "\n"
8157 msgstr ""
8158 " cat шлях\n"
8159 "\n"
8160
8161 #. type: textblock
8162 #: ../fish/guestfish-actions.pod:666 ../fish/guestfish-actions.pod:4145
8163 #: ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6463
8164 msgid "Return the contents of the file named C<path>."
8165 msgstr ""
8166
8167 #. type: textblock
8168 #: ../fish/guestfish-actions.pod:668
8169 msgid ""
8170 "Note that this function cannot correctly handle binary files (specifically, "
8171 "files containing C<\\0> character which is treated as end of string).  For "
8172 "those you need to use the L</read-file> or L</download> functions which have "
8173 "a more complex interface."
8174 msgstr ""
8175
8176 #. type: textblock
8177 #: ../fish/guestfish-actions.pod:673 ../fish/guestfish-actions.pod:808
8178 #: ../fish/guestfish-actions.pod:820 ../fish/guestfish-actions.pod:1103
8179 #: ../fish/guestfish-actions.pod:1113 ../fish/guestfish-actions.pod:1180
8180 #: ../fish/guestfish-actions.pod:1190 ../fish/guestfish-actions.pod:1382
8181 #: ../fish/guestfish-actions.pod:1695 ../fish/guestfish-actions.pod:1705
8182 #: ../fish/guestfish-actions.pod:1755 ../fish/guestfish-actions.pod:1770
8183 #: ../fish/guestfish-actions.pod:1780 ../fish/guestfish-actions.pod:1799
8184 #: ../fish/guestfish-actions.pod:4015 ../fish/guestfish-actions.pod:4030
8185 #: ../fish/guestfish-actions.pod:4106 ../fish/guestfish-actions.pod:4123
8186 #: ../fish/guestfish-actions.pod:4138 ../fish/guestfish-actions.pod:4807
8187 #: ../fish/guestfish-actions.pod:4853 ../fish/guestfish-actions.pod:4938
8188 #: ../fish/guestfish-actions.pod:4953 ../fish/guestfish-actions.pod:5438
8189 #: ../fish/guestfish-actions.pod:5450 ../fish/guestfish-actions.pod:5468
8190 #: ../fish/guestfish-actions.pod:5485 ../fish/guestfish-actions.pod:5495
8191 #: ../fish/guestfish-actions.pod:5549 ../fish/guestfish-actions.pod:5559
8192 #: ../fish/guestfish-actions.pod:5588 ../fish/guestfish-actions.pod:5598
8193 #: ../src/guestfs-actions.pod:1001 ../src/guestfs-actions.pod:1180
8194 #: ../src/guestfs-actions.pod:1200 ../src/guestfs-actions.pod:1855
8195 #: ../src/guestfs-actions.pod:1874 ../src/guestfs-actions.pod:1977
8196 #: ../src/guestfs-actions.pod:1996 ../src/guestfs-actions.pod:2242
8197 #: ../src/guestfs-actions.pod:2724 ../src/guestfs-actions.pod:2743
8198 #: ../src/guestfs-actions.pod:2808 ../src/guestfs-actions.pod:2832
8199 #: ../src/guestfs-actions.pod:2849 ../src/guestfs-actions.pod:2878
8200 #: ../src/guestfs-actions.pod:6245 ../src/guestfs-actions.pod:6271
8201 #: ../src/guestfs-actions.pod:6402 ../src/guestfs-actions.pod:6428
8202 #: ../src/guestfs-actions.pod:6452 ../src/guestfs-actions.pod:7407
8203 #: ../src/guestfs-actions.pod:7462 ../src/guestfs-actions.pod:7608
8204 #: ../src/guestfs-actions.pod:7632 ../src/guestfs-actions.pod:8419
8205 #: ../src/guestfs-actions.pod:8439 ../src/guestfs-actions.pod:8472
8206 #: ../src/guestfs-actions.pod:8491 ../src/guestfs-actions.pod:8510
8207 #: ../src/guestfs-actions.pod:8601 ../src/guestfs-actions.pod:8620
8208 #: ../src/guestfs-actions.pod:8666 ../src/guestfs-actions.pod:8685
8209 msgid ""
8210 "Because of the message protocol, there is a transfer limit of somewhere "
8211 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
8212 msgstr ""
8213
8214 #. type: =head2
8215 #: ../fish/guestfish-actions.pod:676
8216 msgid "checksum"
8217 msgstr "checksum"
8218
8219 #. type: verbatim
8220 #: ../fish/guestfish-actions.pod:678
8221 #, no-wrap
8222 msgid ""
8223 " checksum csumtype path\n"
8224 "\n"
8225 msgstr ""
8226
8227 #. type: textblock
8228 #: ../fish/guestfish-actions.pod:680 ../src/guestfs-actions.pod:1013
8229 msgid ""
8230 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
8231 msgstr ""
8232
8233 #. type: textblock
8234 #: ../fish/guestfish-actions.pod:683 ../src/guestfs-actions.pod:1016
8235 msgid ""
8236 "The type of checksum to compute is given by the C<csumtype> parameter which "
8237 "must have one of the following values:"
8238 msgstr ""
8239
8240 #. type: =item
8241 #: ../fish/guestfish-actions.pod:688 ../src/guestfs-actions.pod:1021
8242 msgid "C<crc>"
8243 msgstr "C<crc>"
8244
8245 #. type: textblock
8246 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1023
8247 msgid ""
8248 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
8249 "C<cksum> command."
8250 msgstr ""
8251
8252 #. type: =item
8253 #: ../fish/guestfish-actions.pod:693 ../src/guestfs-actions.pod:1026
8254 msgid "C<md5>"
8255 msgstr "C<md5>"
8256
8257 #. type: textblock
8258 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1028
8259 msgid "Compute the MD5 hash (using the C<md5sum> program)."
8260 msgstr ""
8261
8262 #. type: =item
8263 #: ../fish/guestfish-actions.pod:697 ../src/guestfs-actions.pod:1030
8264 msgid "C<sha1>"
8265 msgstr "C<sha1>"
8266
8267 #. type: textblock
8268 #: ../fish/guestfish-actions.pod:699 ../src/guestfs-actions.pod:1032
8269 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
8270 msgstr ""
8271
8272 #. type: =item
8273 #: ../fish/guestfish-actions.pod:701 ../src/guestfs-actions.pod:1034
8274 msgid "C<sha224>"
8275 msgstr "C<sha224>"
8276
8277 #. type: textblock
8278 #: ../fish/guestfish-actions.pod:703 ../src/guestfs-actions.pod:1036
8279 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
8280 msgstr ""
8281
8282 #. type: =item
8283 #: ../fish/guestfish-actions.pod:705 ../src/guestfs-actions.pod:1038
8284 msgid "C<sha256>"
8285 msgstr "C<sha256>"
8286
8287 #. type: textblock
8288 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1040
8289 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
8290 msgstr ""
8291
8292 #. type: =item
8293 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1042
8294 msgid "C<sha384>"
8295 msgstr "C<sha384>"
8296
8297 #. type: textblock
8298 #: ../fish/guestfish-actions.pod:711 ../src/guestfs-actions.pod:1044
8299 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
8300 msgstr ""
8301
8302 #. type: =item
8303 #: ../fish/guestfish-actions.pod:713 ../src/guestfs-actions.pod:1046
8304 msgid "C<sha512>"
8305 msgstr "C<sha512>"
8306
8307 #. type: textblock
8308 #: ../fish/guestfish-actions.pod:715 ../src/guestfs-actions.pod:1048
8309 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
8310 msgstr ""
8311
8312 #. type: textblock
8313 #: ../fish/guestfish-actions.pod:719 ../src/guestfs-actions.pod:1052
8314 msgid "The checksum is returned as a printable string."
8315 msgstr ""
8316
8317 #. type: textblock
8318 #: ../fish/guestfish-actions.pod:721
8319 msgid "To get the checksum for a device, use L</checksum-device>."
8320 msgstr ""
8321
8322 #. type: textblock
8323 #: ../fish/guestfish-actions.pod:723
8324 msgid "To get the checksums for many files, use L</checksums-out>."
8325 msgstr ""
8326
8327 #. type: =head2
8328 #: ../fish/guestfish-actions.pod:725
8329 msgid "checksum-device"
8330 msgstr "checksum-device"
8331
8332 #. type: verbatim
8333 #: ../fish/guestfish-actions.pod:727
8334 #, no-wrap
8335 msgid ""
8336 " checksum-device csumtype device\n"
8337 "\n"
8338 msgstr ""
8339
8340 #. type: textblock
8341 #: ../fish/guestfish-actions.pod:729
8342 msgid ""
8343 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
8344 "device named C<device>.  For the types of checksums supported see the L</"
8345 "checksum> command."
8346 msgstr ""
8347
8348 #. type: =head2
8349 #: ../fish/guestfish-actions.pod:733
8350 msgid "checksums-out"
8351 msgstr ""
8352
8353 #. type: verbatim
8354 #: ../fish/guestfish-actions.pod:735
8355 #, no-wrap
8356 msgid ""
8357 " checksums-out csumtype directory (sumsfile|-)\n"
8358 "\n"
8359 msgstr ""
8360
8361 #. type: textblock
8362 #: ../fish/guestfish-actions.pod:737 ../src/guestfs-actions.pod:1087
8363 msgid ""
8364 "This command computes the checksums of all regular files in C<directory> and "
8365 "then emits a list of those checksums to the local output file C<sumsfile>."
8366 msgstr ""
8367
8368 #. type: textblock
8369 #: ../fish/guestfish-actions.pod:741 ../src/guestfs-actions.pod:1091
8370 msgid ""
8371 "This can be used for verifying the integrity of a virtual machine.  However "
8372 "to be properly secure you should pay attention to the output of the checksum "
8373 "command (it uses the ones from GNU coreutils).  In particular when the "
8374 "filename is not printable, coreutils uses a special backslash syntax.  For "
8375 "more information, see the GNU coreutils info file."
8376 msgstr ""
8377
8378 #. type: =head2
8379 #: ../fish/guestfish-actions.pod:751
8380 msgid "chmod"
8381 msgstr "chmod"
8382
8383 #. type: verbatim
8384 #: ../fish/guestfish-actions.pod:753
8385 #, no-wrap
8386 msgid ""
8387 " chmod mode path\n"
8388 "\n"
8389 msgstr ""
8390
8391 #. type: textblock
8392 #: ../fish/guestfish-actions.pod:755 ../src/guestfs-actions.pod:1110
8393 msgid ""
8394 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
8395 "supported."
8396 msgstr ""
8397
8398 #. type: textblock
8399 #: ../fish/guestfish-actions.pod:758 ../src/guestfs-actions.pod:1113
8400 msgid ""
8401 "I<Note>: When using this command from guestfish, C<mode> by default would be "
8402 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
8403 "C<700>."
8404 msgstr ""
8405
8406 #. type: textblock
8407 #: ../fish/guestfish-actions.pod:762 ../fish/guestfish-actions.pod:3367
8408 #: ../fish/guestfish-actions.pod:3506 ../fish/guestfish-actions.pod:3516
8409 #: ../fish/guestfish-actions.pod:3526 ../src/guestfs-actions.pod:1117
8410 #: ../src/guestfs-actions.pod:5210 ../src/guestfs-actions.pod:5419
8411 #: ../src/guestfs-actions.pod:5438 ../src/guestfs-actions.pod:5457
8412 msgid "The mode actually set is affected by the umask."
8413 msgstr ""
8414
8415 #. type: =head2
8416 #: ../fish/guestfish-actions.pod:764
8417 msgid "chown"
8418 msgstr "chown"
8419
8420 #. type: verbatim
8421 #: ../fish/guestfish-actions.pod:766
8422 #, no-wrap
8423 msgid ""
8424 " chown owner group path\n"
8425 "\n"
8426 msgstr ""
8427
8428 #. type: textblock
8429 #: ../fish/guestfish-actions.pod:768 ../src/guestfs-actions.pod:1131
8430 msgid "Change the file owner to C<owner> and group to C<group>."
8431 msgstr ""
8432
8433 #. type: textblock
8434 #: ../fish/guestfish-actions.pod:770 ../fish/guestfish-actions.pod:2707
8435 #: ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4128
8436 msgid ""
8437 "Only numeric uid and gid are supported.  If you want to use names, you will "
8438 "need to locate and parse the password file yourself (Augeas support makes "
8439 "this relatively easy)."
8440 msgstr ""
8441
8442 #. type: =head2
8443 #: ../fish/guestfish-actions.pod:774
8444 msgid "command"
8445 msgstr "command"
8446
8447 #. type: verbatim
8448 #: ../fish/guestfish-actions.pod:776
8449 #, no-wrap
8450 msgid ""
8451 " command 'arguments ...'\n"
8452 "\n"
8453 msgstr ""
8454 " command 'параметри...'\n"
8455 "\n"
8456
8457 #. type: textblock
8458 #: ../fish/guestfish-actions.pod:778 ../src/guestfs-actions.pod:1147
8459 msgid ""
8460 "This call runs a command from the guest filesystem.  The filesystem must be "
8461 "mounted, and must contain a compatible operating system (ie. something "
8462 "Linux, with the same or compatible processor architecture)."
8463 msgstr ""
8464
8465 #. type: textblock
8466 #: ../fish/guestfish-actions.pod:783
8467 msgid ""
8468 "The single parameter is an argv-style list of arguments.  The first element "
8469 "is the name of the program to run.  Subsequent elements are parameters.  The "
8470 "list must be non-empty (ie. must contain a program name).  Note that the "
8471 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
8472 msgstr ""
8473
8474 #. type: textblock
8475 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1159
8476 msgid "The return value is anything printed to I<stdout> by the command."
8477 msgstr ""
8478
8479 #. type: textblock
8480 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1162
8481 msgid ""
8482 "If the command returns a non-zero exit status, then this function returns an "
8483 "error message.  The error message string is the content of I<stderr> from "
8484 "the command."
8485 msgstr ""
8486
8487 #. type: textblock
8488 #: ../fish/guestfish-actions.pod:797 ../src/guestfs-actions.pod:1166
8489 msgid ""
8490 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
8491 "bin>.  If you require a program from another location, you should provide "
8492 "the full path in the first parameter."
8493 msgstr ""
8494
8495 #. type: textblock
8496 #: ../fish/guestfish-actions.pod:802 ../src/guestfs-actions.pod:1171
8497 msgid ""
8498 "Shared libraries and data files required by the program must be available on "
8499 "filesystems which are mounted in the correct places.  It is the caller's "
8500 "responsibility to ensure all filesystems that are needed are mounted at the "
8501 "right locations."
8502 msgstr ""
8503
8504 #. type: =head2
8505 #: ../fish/guestfish-actions.pod:811
8506 msgid "command-lines"
8507 msgstr ""
8508
8509 #. type: verbatim
8510 #: ../fish/guestfish-actions.pod:813
8511 #, no-wrap
8512 msgid ""
8513 " command-lines 'arguments ...'\n"
8514 "\n"
8515 msgstr ""
8516
8517 #. type: textblock
8518 #: ../fish/guestfish-actions.pod:815
8519 msgid ""
8520 "This is the same as L</command>, but splits the result into a list of lines."
8521 msgstr ""
8522
8523 #. type: textblock
8524 #: ../fish/guestfish-actions.pod:818
8525 msgid "See also: L</sh-lines>"
8526 msgstr "Див. також L</sh-lines>"
8527
8528 #. type: =head2
8529 #: ../fish/guestfish-actions.pod:823
8530 msgid "compress-device-out"
8531 msgstr ""
8532
8533 #. type: verbatim
8534 #: ../fish/guestfish-actions.pod:825
8535 #, no-wrap
8536 msgid ""
8537 " compress-device-out ctype device (zdevice|-) [level:N]\n"
8538 "\n"
8539 msgstr ""
8540
8541 #. type: textblock
8542 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1221
8543 msgid ""
8544 "This command compresses C<device> and writes it out to the local file "
8545 "C<zdevice>."
8546 msgstr ""
8547
8548 #. type: textblock
8549 #: ../fish/guestfish-actions.pod:830
8550 msgid ""
8551 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
8552 "compress-out>."
8553 msgstr ""
8554
8555 #. type: =head2
8556 #: ../fish/guestfish-actions.pod:837
8557 msgid "compress-out"
8558 msgstr ""
8559
8560 #. type: verbatim
8561 #: ../fish/guestfish-actions.pod:839
8562 #, no-wrap
8563 msgid ""
8564 " compress-out ctype file (zfile|-) [level:N]\n"
8565 "\n"
8566 msgstr ""
8567
8568 #. type: textblock
8569 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1273
8570 msgid ""
8571 "This command compresses C<file> and writes it out to the local file C<zfile>."
8572 msgstr ""
8573
8574 #. type: textblock
8575 #: ../fish/guestfish-actions.pod:844 ../src/guestfs-actions.pod:1276
8576 msgid ""
8577 "The compression program used is controlled by the C<ctype> parameter.  "
8578 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
8579 "Some compression types may not be supported by particular builds of "
8580 "libguestfs, in which case you will get an error containing the substring "
8581 "\"not supported\"."
8582 msgstr ""
8583
8584 #. type: textblock
8585 #: ../fish/guestfish-actions.pod:850 ../src/guestfs-actions.pod:1282
8586 msgid ""
8587 "The optional C<level> parameter controls compression level.  The meaning and "
8588 "default for this parameter depends on the compression program being used."
8589 msgstr ""
8590
8591 #. type: =head2
8592 #: ../fish/guestfish-actions.pod:858
8593 msgid "config"
8594 msgstr ""
8595
8596 #. type: verbatim
8597 #: ../fish/guestfish-actions.pod:860
8598 #, no-wrap
8599 msgid ""
8600 " config qemuparam qemuvalue\n"
8601 "\n"
8602 msgstr ""
8603
8604 #. type: textblock
8605 #: ../fish/guestfish-actions.pod:862 ../src/guestfs-actions.pod:1323
8606 msgid ""
8607 "This can be used to add arbitrary qemu command line parameters of the form "
8608 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
8609 "setting some parameters which would interfere with parameters that we use."
8610 msgstr ""
8611
8612 #. type: textblock
8613 #: ../fish/guestfish-actions.pod:867 ../src/guestfs-actions.pod:1328
8614 msgid "The first character of C<param> string must be a C<-> (dash)."
8615 msgstr ""
8616
8617 #. type: textblock
8618 #: ../fish/guestfish-actions.pod:869 ../src/guestfs-actions.pod:1330
8619 msgid "C<value> can be NULL."
8620 msgstr ""
8621
8622 #. type: =head2
8623 #: ../fish/guestfish-actions.pod:871
8624 msgid "copy-device-to-device"
8625 msgstr ""
8626
8627 #. type: verbatim
8628 #: ../fish/guestfish-actions.pod:873
8629 #, no-wrap
8630 msgid ""
8631 " copy-device-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8632 "\n"
8633 msgstr ""
8634
8635 #. type: textblock
8636 #: ../fish/guestfish-actions.pod:875
8637 msgid ""
8638 "The four calls L</copy-device-to-device>, L</copy-device-to-file>, L</copy-"
8639 "file-to-device>, and L</copy-file-to-file> let you copy from a source "
8640 "(device|file) to a destination (device|file)."
8641 msgstr ""
8642
8643 #. type: textblock
8644 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1360
8645 msgid ""
8646 "Partial copies can be made since you can specify optionally the source "
8647 "offset, destination offset and size to copy.  These values are all specified "
8648 "in bytes.  If not given, the offsets both default to zero, and the size "
8649 "defaults to copying as much as possible until we hit the end of the source."
8650 msgstr ""
8651
8652 #. type: textblock
8653 #: ../fish/guestfish-actions.pod:888 ../src/guestfs-actions.pod:1366
8654 msgid ""
8655 "The source and destination may be the same object.  However overlapping "
8656 "regions may not be copied correctly."
8657 msgstr ""
8658
8659 #. type: textblock
8660 #: ../fish/guestfish-actions.pod:891 ../src/guestfs-actions.pod:1369
8661 msgid ""
8662 "If the destination is a file, it is created if required.  If the destination "
8663 "file is not large enough, it is extended."
8664 msgstr ""
8665
8666 #. type: =head2
8667 #: ../fish/guestfish-actions.pod:896
8668 msgid "copy-device-to-file"
8669 msgstr ""
8670
8671 #. type: verbatim
8672 #: ../fish/guestfish-actions.pod:898
8673 #, no-wrap
8674 msgid ""
8675 " copy-device-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8676 "\n"
8677 msgstr ""
8678
8679 #. type: textblock
8680 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:909
8681 #: ../fish/guestfish-actions.pod:918
8682 msgid "See L</copy-device-to-device> for a general overview of this call."
8683 msgstr ""
8684
8685 #. type: =head2
8686 #: ../fish/guestfish-actions.pod:905
8687 msgid "copy-file-to-device"
8688 msgstr ""
8689
8690 #. type: verbatim
8691 #: ../fish/guestfish-actions.pod:907
8692 #, no-wrap
8693 msgid ""
8694 " copy-file-to-device src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8695 "\n"
8696 msgstr ""
8697
8698 #. type: =head2
8699 #: ../fish/guestfish-actions.pod:914
8700 msgid "copy-file-to-file"
8701 msgstr ""
8702
8703 #. type: verbatim
8704 #: ../fish/guestfish-actions.pod:916
8705 #, no-wrap
8706 msgid ""
8707 " copy-file-to-file src dest [srcoffset:N] [destoffset:N] [size:N]\n"
8708 "\n"
8709 msgstr ""
8710
8711 #. type: textblock
8712 #: ../fish/guestfish-actions.pod:921
8713 msgid ""
8714 "This is B<not> the function you want for copying files.  This is for copying "
8715 "blocks within existing files.  See L</cp>, L</cp-a> and L</mv> for general "
8716 "file copying and moving functions."
8717 msgstr ""
8718
8719 #. type: =head2
8720 #: ../fish/guestfish-actions.pod:928
8721 msgid "copy-size"
8722 msgstr ""
8723
8724 #. type: verbatim
8725 #: ../fish/guestfish-actions.pod:930
8726 #, no-wrap
8727 msgid ""
8728 " copy-size src dest size\n"
8729 "\n"
8730 msgstr ""
8731
8732 #. type: textblock
8733 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1584
8734 msgid ""
8735 "This command copies exactly C<size> bytes from one source device or file "
8736 "C<src> to another destination device or file C<dest>."
8737 msgstr ""
8738
8739 #. type: textblock
8740 #: ../fish/guestfish-actions.pod:935 ../src/guestfs-actions.pod:1587
8741 msgid ""
8742 "Note this will fail if the source is too short or if the destination is not "
8743 "large enough."
8744 msgstr ""
8745
8746 #. type: textblock
8747 #: ../fish/guestfish-actions.pod:938 ../fish/guestfish-actions.pod:973
8748 msgid ""
8749 "I<This function is deprecated.> In new code, use the L</"
8750 "copy_device_to_device> call instead."
8751 msgstr ""
8752
8753 #. type: =head2
8754 #: ../fish/guestfish-actions.pod:945
8755 msgid "cp"
8756 msgstr "cp"
8757
8758 #. type: verbatim
8759 #: ../fish/guestfish-actions.pod:947
8760 #, no-wrap
8761 msgid ""
8762 " cp src dest\n"
8763 "\n"
8764 msgstr ""
8765
8766 #. type: textblock
8767 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1606
8768 msgid ""
8769 "This copies a file from C<src> to C<dest> where C<dest> is either a "
8770 "destination filename or destination directory."
8771 msgstr ""
8772
8773 #. type: =head2
8774 #: ../fish/guestfish-actions.pod:952
8775 msgid "cp-a"
8776 msgstr "cp-a"
8777
8778 #. type: verbatim
8779 #: ../fish/guestfish-actions.pod:954
8780 #, no-wrap
8781 msgid ""
8782 " cp-a src dest\n"
8783 "\n"
8784 msgstr ""
8785
8786 #. type: textblock
8787 #: ../fish/guestfish-actions.pod:956 ../src/guestfs-actions.pod:1620
8788 msgid ""
8789 "This copies a file or directory from C<src> to C<dest> recursively using the "
8790 "C<cp -a> command."
8791 msgstr ""
8792
8793 #. type: =head2
8794 #: ../fish/guestfish-actions.pod:959
8795 msgid "dd"
8796 msgstr "dd"
8797
8798 #. type: verbatim
8799 #: ../fish/guestfish-actions.pod:961
8800 #, no-wrap
8801 msgid ""
8802 " dd src dest\n"
8803 "\n"
8804 msgstr ""
8805
8806 #. type: textblock
8807 #: ../fish/guestfish-actions.pod:963 ../src/guestfs-actions.pod:1641
8808 msgid ""
8809 "This command copies from one source device or file C<src> to another "
8810 "destination device or file C<dest>.  Normally you would use this to copy to "
8811 "or from a device or partition, for example to duplicate a filesystem."
8812 msgstr ""
8813
8814 #. type: textblock
8815 #: ../fish/guestfish-actions.pod:968
8816 msgid ""
8817 "If the destination is a device, it must be as large or larger than the "
8818 "source file or device, otherwise the copy will fail.  This command cannot do "
8819 "partial copies (see L</copy-device-to-device>)."
8820 msgstr ""
8821
8822 #. type: =head2
8823 #: ../fish/guestfish-actions.pod:980
8824 msgid "df"
8825 msgstr "df"
8826
8827 #. type: verbatim
8828 #: ../fish/guestfish-actions.pod:982
8829 #, no-wrap
8830 msgid ""
8831 " df\n"
8832 "\n"
8833 msgstr ""
8834 " df\n"
8835 "\n"
8836
8837 #. type: textblock
8838 #: ../fish/guestfish-actions.pod:984 ../src/guestfs-actions.pod:1660
8839 msgid "This command runs the C<df> command to report disk space used."
8840 msgstr ""
8841
8842 #. type: textblock
8843 #: ../fish/guestfish-actions.pod:986 ../fish/guestfish-actions.pod:997
8844 msgid ""
8845 "This command is mostly useful for interactive sessions.  It is I<not> "
8846 "intended that you try to parse the output string.  Use L</statvfs> from "
8847 "programs."
8848 msgstr ""
8849
8850 #. type: =head2
8851 #: ../fish/guestfish-actions.pod:990
8852 msgid "df-h"
8853 msgstr "df-h"
8854
8855 #. type: verbatim
8856 #: ../fish/guestfish-actions.pod:992
8857 #, no-wrap
8858 msgid ""
8859 " df-h\n"
8860 "\n"
8861 msgstr ""
8862 " df-h\n"
8863 "\n"
8864
8865 #. type: textblock
8866 #: ../fish/guestfish-actions.pod:994 ../src/guestfs-actions.pod:1676
8867 msgid ""
8868 "This command runs the C<df -h> command to report disk space used in human-"
8869 "readable format."
8870 msgstr ""
8871
8872 #. type: =head2
8873 #: ../fish/guestfish-actions.pod:1001
8874 msgid "dmesg"
8875 msgstr "dmesg"
8876
8877 #. type: verbatim
8878 #: ../fish/guestfish-actions.pod:1003
8879 #, no-wrap
8880 msgid ""
8881 " dmesg\n"
8882 "\n"
8883 msgstr ""
8884 " dmesg\n"
8885 "\n"
8886
8887 #. type: textblock
8888 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1693
8889 msgid ""
8890 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
8891 "This is sometimes useful for extended debugging of problems."
8892 msgstr ""
8893
8894 #. type: textblock
8895 #: ../fish/guestfish-actions.pod:1009
8896 msgid ""
8897 "Another way to get the same information is to enable verbose messages with "
8898 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
8899 "before running the program."
8900 msgstr ""
8901
8902 #. type: =head2
8903 #: ../fish/guestfish-actions.pod:1014
8904 msgid "download"
8905 msgstr "download"
8906
8907 #. type: verbatim
8908 #: ../fish/guestfish-actions.pod:1016
8909 #, no-wrap
8910 msgid ""
8911 " download remotefilename (filename|-)\n"
8912 "\n"
8913 msgstr ""
8914
8915 #. type: textblock
8916 #: ../fish/guestfish-actions.pod:1018 ../fish/guestfish-actions.pod:1031
8917 #: ../src/guestfs-actions.pod:1714 ../src/guestfs-actions.pod:1739
8918 msgid ""
8919 "Download file C<remotefilename> and save it as C<filename> on the local "
8920 "machine."
8921 msgstr ""
8922
8923 #. type: textblock
8924 #: ../fish/guestfish-actions.pod:1021 ../fish/guestfish-actions.pod:5190
8925 #: ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7989
8926 msgid "C<filename> can also be a named pipe."
8927 msgstr ""
8928
8929 #. type: textblock
8930 #: ../fish/guestfish-actions.pod:1023
8931 msgid "See also L</upload>, L</cat>."
8932 msgstr ""
8933
8934 #. type: =head2
8935 #: ../fish/guestfish-actions.pod:1027
8936 msgid "download-offset"
8937 msgstr "download-offset"
8938
8939 #. type: verbatim
8940 #: ../fish/guestfish-actions.pod:1029
8941 #, no-wrap
8942 msgid ""
8943 " download-offset remotefilename (filename|-) offset size\n"
8944 "\n"
8945 msgstr ""
8946
8947 #. type: textblock
8948 #: ../fish/guestfish-actions.pod:1034 ../src/guestfs-actions.pod:1742
8949 msgid ""
8950 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
8951 "region must be within the file or device)."
8952 msgstr ""
8953
8954 #. type: textblock
8955 #: ../fish/guestfish-actions.pod:1037
8956 msgid ""
8957 "Note that there is no limit on the amount of data that can be downloaded "
8958 "with this call, unlike with L</pread>, and this call always reads the full "
8959 "amount unless an error occurs."
8960 msgstr ""
8961
8962 #. type: textblock
8963 #: ../fish/guestfish-actions.pod:1042
8964 msgid "See also L</download>, L</pread>."
8965 msgstr ""
8966
8967 #. type: =head2
8968 #: ../fish/guestfish-actions.pod:1046
8969 msgid "drop-caches"
8970 msgstr ""
8971
8972 #. type: verbatim
8973 #: ../fish/guestfish-actions.pod:1048
8974 #, no-wrap
8975 msgid ""
8976 " drop-caches whattodrop\n"
8977 "\n"
8978 msgstr ""
8979
8980 #. type: textblock
8981 #: ../fish/guestfish-actions.pod:1050 ../src/guestfs-actions.pod:1767
8982 msgid ""
8983 "This instructs the guest kernel to drop its page cache, and/or dentries and "
8984 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
8985 "to drop, see L<http://linux-mm.org/Drop_Caches>"
8986 msgstr ""
8987
8988 #. type: textblock
8989 #: ../fish/guestfish-actions.pod:1055 ../src/guestfs-actions.pod:1772
8990 msgid "Setting C<whattodrop> to 3 should drop everything."
8991 msgstr ""
8992
8993 #. type: textblock
8994 #: ../fish/guestfish-actions.pod:1057 ../src/guestfs-actions.pod:1774
8995 msgid ""
8996 "This automatically calls L<sync(2)> before the operation, so that the "
8997 "maximum guest memory is freed."
8998 msgstr ""
8999
9000 #. type: =head2
9001 #: ../fish/guestfish-actions.pod:1060
9002 msgid "du"
9003 msgstr "du"
9004
9005 #. type: verbatim
9006 #: ../fish/guestfish-actions.pod:1062
9007 #, no-wrap
9008 msgid ""
9009 " du path\n"
9010 "\n"
9011 msgstr ""
9012 " du шлях\n"
9013 "\n"
9014
9015 #. type: textblock
9016 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1787
9017 msgid ""
9018 "This command runs the C<du -s> command to estimate file space usage for "
9019 "C<path>."
9020 msgstr ""
9021
9022 #. type: textblock
9023 #: ../fish/guestfish-actions.pod:1067 ../src/guestfs-actions.pod:1790
9024 msgid ""
9025 "C<path> can be a file or a directory.  If C<path> is a directory then the "
9026 "estimate includes the contents of the directory and all subdirectories "
9027 "(recursively)."
9028 msgstr ""
9029
9030 #. type: textblock
9031 #: ../fish/guestfish-actions.pod:1071 ../src/guestfs-actions.pod:1794
9032 msgid ""
9033 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
9034 msgstr ""
9035
9036 #. type: =head2
9037 #: ../fish/guestfish-actions.pod:1074
9038 msgid "e2fsck-f"
9039 msgstr "e2fsck-f"
9040
9041 #. type: verbatim
9042 #: ../fish/guestfish-actions.pod:1076
9043 #, no-wrap
9044 msgid ""
9045 " e2fsck-f device\n"
9046 "\n"
9047 msgstr ""
9048
9049 #. type: textblock
9050 #: ../fish/guestfish-actions.pod:1078 ../src/guestfs-actions.pod:1812
9051 msgid ""
9052 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
9053 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
9054 "clean (I<-f>)."
9055 msgstr ""
9056
9057 #. type: textblock
9058 #: ../fish/guestfish-actions.pod:1082
9059 msgid ""
9060 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
9061 "should use L</fsck>."
9062 msgstr ""
9063
9064 #. type: =head2
9065 #: ../fish/guestfish-actions.pod:1085
9066 msgid "echo-daemon"
9067 msgstr ""
9068
9069 #. type: verbatim
9070 #: ../fish/guestfish-actions.pod:1087
9071 #, no-wrap
9072 msgid ""
9073 " echo-daemon 'words ...'\n"
9074 "\n"
9075 msgstr ""
9076
9077 #. type: textblock
9078 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1829
9079 msgid ""
9080 "This command concatenates the list of C<words> passed with single spaces "
9081 "between them and returns the resulting string."
9082 msgstr ""
9083
9084 #. type: textblock
9085 #: ../fish/guestfish-actions.pod:1092 ../src/guestfs-actions.pod:1832
9086 msgid "You can use this command to test the connection through to the daemon."
9087 msgstr ""
9088
9089 #. type: textblock
9090 #: ../fish/guestfish-actions.pod:1094
9091 msgid "See also L</ping-daemon>."
9092 msgstr "Див. також L</ping-daemon>."
9093
9094 #. type: =head2
9095 #: ../fish/guestfish-actions.pod:1096
9096 msgid "egrep"
9097 msgstr "egrep"
9098
9099 #. type: verbatim
9100 #: ../fish/guestfish-actions.pod:1098
9101 #, no-wrap
9102 msgid ""
9103 " egrep regex path\n"
9104 "\n"
9105 msgstr ""
9106
9107 #. type: textblock
9108 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1848
9109 msgid ""
9110 "This calls the external C<egrep> program and returns the matching lines."
9111 msgstr ""
9112
9113 #. type: =head2
9114 #: ../fish/guestfish-actions.pod:1106
9115 msgid "egrepi"
9116 msgstr "egrepi"
9117
9118 #. type: verbatim
9119 #: ../fish/guestfish-actions.pod:1108
9120 #, no-wrap
9121 msgid ""
9122 " egrepi regex path\n"
9123 "\n"
9124 msgstr ""
9125
9126 #. type: textblock
9127 #: ../fish/guestfish-actions.pod:1110 ../src/guestfs-actions.pod:1867
9128 msgid ""
9129 "This calls the external C<egrep -i> program and returns the matching lines."
9130 msgstr ""
9131
9132 #. type: =head2
9133 #: ../fish/guestfish-actions.pod:1116
9134 msgid "equal"
9135 msgstr "equal"
9136
9137 #. type: verbatim
9138 #: ../fish/guestfish-actions.pod:1118
9139 #, no-wrap
9140 msgid ""
9141 " equal file1 file2\n"
9142 "\n"
9143 msgstr ""
9144 " equal файл1 файл2\n"
9145 "\n"
9146
9147 #. type: textblock
9148 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1886
9149 msgid ""
9150 "This compares the two files C<file1> and C<file2> and returns true if their "
9151 "content is exactly equal, or false otherwise."
9152 msgstr ""
9153
9154 #. type: textblock
9155 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1889
9156 msgid "The external L<cmp(1)> program is used for the comparison."
9157 msgstr ""
9158
9159 #. type: =head2
9160 #: ../fish/guestfish-actions.pod:1125
9161 msgid "exists"
9162 msgstr "exists"
9163
9164 #. type: verbatim
9165 #: ../fish/guestfish-actions.pod:1127
9166 #, no-wrap
9167 msgid ""
9168 " exists path\n"
9169 "\n"
9170 msgstr ""
9171 " exists шлях\n"
9172 "\n"
9173
9174 #. type: textblock
9175 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1901
9176 msgid ""
9177 "This returns C<true> if and only if there is a file, directory (or anything) "
9178 "with the given C<path> name."
9179 msgstr ""
9180
9181 #. type: textblock
9182 #: ../fish/guestfish-actions.pod:1132
9183 msgid "See also L</is-file>, L</is-dir>, L</stat>."
9184 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
9185
9186 #. type: =head2
9187 #: ../fish/guestfish-actions.pod:1134
9188 msgid "fallocate"
9189 msgstr "fallocate"
9190
9191 #. type: verbatim
9192 #: ../fish/guestfish-actions.pod:1136
9193 #, no-wrap
9194 msgid ""
9195 " fallocate path len\n"
9196 "\n"
9197 msgstr ""
9198 " fallocate шлях довжина\n"
9199 "\n"
9200
9201 #. type: textblock
9202 #: ../fish/guestfish-actions.pod:1138 ../fish/guestfish-actions.pod:1157
9203 #: ../src/guestfs-actions.pod:1924 ../src/guestfs-actions.pod:1943
9204 msgid ""
9205 "This command preallocates a file (containing zero bytes) named C<path> of "
9206 "size C<len> bytes.  If the file exists already, it is overwritten."
9207 msgstr ""
9208
9209 #. type: textblock
9210 #: ../fish/guestfish-actions.pod:1142 ../src/guestfs-actions.pod:1928
9211 msgid ""
9212 "Do not confuse this with the guestfish-specific C<alloc> command which "
9213 "allocates a file in the host and attaches it as a device."
9214 msgstr ""
9215
9216 #. type: textblock
9217 #: ../fish/guestfish-actions.pod:1146
9218 msgid ""
9219 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
9220 "instead."
9221 msgstr ""
9222
9223 #. type: =head2
9224 #: ../fish/guestfish-actions.pod:1153
9225 msgid "fallocate64"
9226 msgstr "fallocate64"
9227
9228 #. type: verbatim
9229 #: ../fish/guestfish-actions.pod:1155
9230 #, no-wrap
9231 msgid ""
9232 " fallocate64 path len\n"
9233 "\n"
9234 msgstr ""
9235 " fallocate64 шлях довжина\n"
9236 "\n"
9237
9238 #. type: textblock
9239 #: ../fish/guestfish-actions.pod:1161
9240 msgid ""
9241 "Note that this call allocates disk blocks for the file.  To create a sparse "
9242 "file use L</truncate-size> instead."
9243 msgstr ""
9244
9245 #. type: textblock
9246 #: ../fish/guestfish-actions.pod:1164
9247 msgid ""
9248 "The deprecated call L</fallocate> does the same, but owing to an oversight "
9249 "it only allowed 30 bit lengths to be specified, effectively limiting the "
9250 "maximum size of files created through that call to 1GB."
9251 msgstr ""
9252
9253 #. type: textblock
9254 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1955
9255 msgid ""
9256 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
9257 "commands which create a file in the host and attach it as a device."
9258 msgstr ""
9259
9260 #. type: =head2
9261 #: ../fish/guestfish-actions.pod:1173
9262 msgid "fgrep"
9263 msgstr "fgrep"
9264
9265 #. type: verbatim
9266 #: ../fish/guestfish-actions.pod:1175
9267 #, no-wrap
9268 msgid ""
9269 " fgrep pattern path\n"
9270 "\n"
9271 msgstr ""
9272 " fgrep шаблон шлях\n"
9273 "\n"
9274
9275 #. type: textblock
9276 #: ../fish/guestfish-actions.pod:1177 ../src/guestfs-actions.pod:1970
9277 msgid ""
9278 "This calls the external C<fgrep> program and returns the matching lines."
9279 msgstr ""
9280
9281 #. type: =head2
9282 #: ../fish/guestfish-actions.pod:1183
9283 msgid "fgrepi"
9284 msgstr "fgrepi"
9285
9286 #. type: verbatim
9287 #: ../fish/guestfish-actions.pod:1185
9288 #, no-wrap
9289 msgid ""
9290 " fgrepi pattern path\n"
9291 "\n"
9292 msgstr ""
9293 " fgrepi шаблон шлях\n"
9294 "\n"
9295
9296 #. type: textblock
9297 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1989
9298 msgid ""
9299 "This calls the external C<fgrep -i> program and returns the matching lines."
9300 msgstr ""
9301
9302 #. type: =head2
9303 #: ../fish/guestfish-actions.pod:1193
9304 msgid "file"
9305 msgstr "file"
9306
9307 #. type: verbatim
9308 #: ../fish/guestfish-actions.pod:1195
9309 #, no-wrap
9310 msgid ""
9311 " file path\n"
9312 "\n"
9313 msgstr ""
9314 " file шлях\n"
9315 "\n"
9316
9317 #. type: textblock
9318 #: ../fish/guestfish-actions.pod:1197 ../src/guestfs-actions.pod:2007
9319 msgid ""
9320 "This call uses the standard L<file(1)> command to determine the type or "
9321 "contents of the file."
9322 msgstr ""
9323
9324 #. type: textblock
9325 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:2010
9326 msgid ""
9327 "This call will also transparently look inside various types of compressed "
9328 "file."
9329 msgstr ""
9330
9331 #. type: textblock
9332 #: ../fish/guestfish-actions.pod:1203 ../src/guestfs-actions.pod:2013
9333 msgid ""
9334 "The exact command which runs is C<file -zb path>.  Note in particular that "
9335 "the filename is not prepended to the output (the I<-b> option)."
9336 msgstr ""
9337
9338 #. type: textblock
9339 #: ../fish/guestfish-actions.pod:1207 ../src/guestfs-actions.pod:2017
9340 msgid ""
9341 "The output depends on the output of the underlying L<file(1)> command and it "
9342 "can change in future in ways beyond our control.  In other words, the output "
9343 "is not guaranteed by the ABI."
9344 msgstr ""
9345
9346 #. type: textblock
9347 #: ../fish/guestfish-actions.pod:1211
9348 msgid ""
9349 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
9350 "(etc), L</is-zero>."
9351 msgstr ""
9352
9353 #. type: =head2
9354 #: ../fish/guestfish-actions.pod:1214
9355 msgid "file-architecture"
9356 msgstr "file-architecture"
9357
9358 #. type: verbatim
9359 #: ../fish/guestfish-actions.pod:1216
9360 #, no-wrap
9361 msgid ""
9362 " file-architecture filename\n"
9363 "\n"
9364 msgstr ""
9365 " file-architecture назва_файла\n"
9366 "\n"
9367
9368 #. type: textblock
9369 #: ../fish/guestfish-actions.pod:1218 ../src/guestfs-actions.pod:2035
9370 msgid ""
9371 "This detects the architecture of the binary C<filename>, and returns it if "
9372 "known."
9373 msgstr ""
9374
9375 #. type: textblock
9376 #: ../fish/guestfish-actions.pod:1221 ../src/guestfs-actions.pod:2038
9377 msgid "Currently defined architectures are:"
9378 msgstr ""
9379
9380 #. type: =item
9381 #: ../fish/guestfish-actions.pod:1225 ../src/guestfs-actions.pod:2042
9382 msgid "\"i386\""
9383 msgstr "\"i386\""
9384
9385 #. type: textblock
9386 #: ../fish/guestfish-actions.pod:1227 ../src/guestfs-actions.pod:2044
9387 msgid ""
9388 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
9389 "irrespective of the precise processor requirements of the binary."
9390 msgstr ""
9391
9392 #. type: =item
9393 #: ../fish/guestfish-actions.pod:1230 ../src/guestfs-actions.pod:2047
9394 msgid "\"x86_64\""
9395 msgstr "\"x86_64\""
9396
9397 #. type: textblock
9398 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:2049
9399 msgid "64 bit x86-64."
9400 msgstr ""
9401
9402 #. type: =item
9403 #: ../fish/guestfish-actions.pod:1234 ../src/guestfs-actions.pod:2051
9404 msgid "\"sparc\""
9405 msgstr ""
9406
9407 #. type: textblock
9408 #: ../fish/guestfish-actions.pod:1236 ../src/guestfs-actions.pod:2053
9409 msgid "32 bit SPARC."
9410 msgstr ""
9411
9412 #. type: =item
9413 #: ../fish/guestfish-actions.pod:1238 ../src/guestfs-actions.pod:2055
9414 msgid "\"sparc64\""
9415 msgstr ""
9416
9417 #. type: textblock
9418 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:2057
9419 msgid "64 bit SPARC V9 and above."
9420 msgstr ""
9421
9422 #. type: =item
9423 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:2059
9424 msgid "\"ia64\""
9425 msgstr "\"ia64\""
9426
9427 #. type: textblock
9428 #: ../fish/guestfish-actions.pod:1244 ../src/guestfs-actions.pod:2061
9429 msgid "Intel Itanium."
9430 msgstr "Intel Itanium."
9431
9432 #. type: =item
9433 #: ../fish/guestfish-actions.pod:1246 ../src/guestfs-actions.pod:2063
9434 msgid "\"ppc\""
9435 msgstr ""
9436
9437 #. type: textblock
9438 #: ../fish/guestfish-actions.pod:1248 ../src/guestfs-actions.pod:2065
9439 msgid "32 bit Power PC."
9440 msgstr ""
9441
9442 #. type: =item
9443 #: ../fish/guestfish-actions.pod:1250 ../src/guestfs-actions.pod:2067
9444 msgid "\"ppc64\""
9445 msgstr ""
9446
9447 #. type: textblock
9448 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:2069
9449 msgid "64 bit Power PC."
9450 msgstr ""
9451
9452 #. type: textblock
9453 #: ../fish/guestfish-actions.pod:1256 ../src/guestfs-actions.pod:2073
9454 msgid "Libguestfs may return other architecture strings in future."
9455 msgstr ""
9456
9457 #. type: textblock
9458 #: ../fish/guestfish-actions.pod:1258 ../src/guestfs-actions.pod:2075
9459 msgid "The function works on at least the following types of files:"
9460 msgstr ""
9461
9462 #. type: textblock
9463 #: ../fish/guestfish-actions.pod:1264 ../src/guestfs-actions.pod:2081
9464 msgid "many types of Un*x and Linux binary"
9465 msgstr ""
9466
9467 #. type: textblock
9468 #: ../fish/guestfish-actions.pod:1268 ../src/guestfs-actions.pod:2085
9469 msgid "many types of Un*x and Linux shared library"
9470 msgstr ""
9471
9472 #. type: textblock
9473 #: ../fish/guestfish-actions.pod:1272 ../src/guestfs-actions.pod:2089
9474 msgid "Windows Win32 and Win64 binaries"
9475 msgstr ""
9476
9477 #. type: textblock
9478 #: ../fish/guestfish-actions.pod:1276 ../src/guestfs-actions.pod:2093
9479 msgid "Windows Win32 and Win64 DLLs"
9480 msgstr ""
9481
9482 #. type: textblock
9483 #: ../fish/guestfish-actions.pod:1278 ../src/guestfs-actions.pod:2095
9484 msgid "Win32 binaries and DLLs return C<i386>."
9485 msgstr ""
9486
9487 #. type: textblock
9488 #: ../fish/guestfish-actions.pod:1280 ../src/guestfs-actions.pod:2097
9489 msgid "Win64 binaries and DLLs return C<x86_64>."
9490 msgstr ""
9491
9492 #. type: textblock
9493 #: ../fish/guestfish-actions.pod:1284 ../src/guestfs-actions.pod:2101
9494 msgid "Linux kernel modules"
9495 msgstr ""
9496
9497 #. type: textblock
9498 #: ../fish/guestfish-actions.pod:1288 ../src/guestfs-actions.pod:2105
9499 msgid "Linux new-style initrd images"
9500 msgstr ""
9501
9502 #. type: textblock
9503 #: ../fish/guestfish-actions.pod:1292 ../src/guestfs-actions.pod:2109
9504 msgid "some non-x86 Linux vmlinuz kernels"
9505 msgstr ""
9506
9507 #. type: textblock
9508 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:2113
9509 msgid "What it can't do currently:"
9510 msgstr ""
9511
9512 #. type: textblock
9513 #: ../fish/guestfish-actions.pod:1302 ../src/guestfs-actions.pod:2119
9514 msgid "static libraries (libfoo.a)"
9515 msgstr ""
9516
9517 #. type: textblock
9518 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:2123
9519 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
9520 msgstr ""
9521
9522 #. type: textblock
9523 #: ../fish/guestfish-actions.pod:1310 ../src/guestfs-actions.pod:2127
9524 msgid "x86 Linux vmlinuz kernels"
9525 msgstr ""
9526
9527 #. type: textblock
9528 #: ../fish/guestfish-actions.pod:1312 ../src/guestfs-actions.pod:2129
9529 msgid ""
9530 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
9531 "compressed code, and are horribly hard to unpack.  If you want to find the "
9532 "architecture of a kernel, use the architecture of the associated initrd or "
9533 "kernel module(s) instead."
9534 msgstr ""
9535
9536 #. type: =head2
9537 #: ../fish/guestfish-actions.pod:1319
9538 msgid "filesize"
9539 msgstr "filesize"
9540
9541 #. type: verbatim
9542 #: ../fish/guestfish-actions.pod:1321
9543 #, no-wrap
9544 msgid ""
9545 " filesize file\n"
9546 "\n"
9547 msgstr ""
9548 " filesize файл\n"
9549 "\n"
9550
9551 #. type: textblock
9552 #: ../fish/guestfish-actions.pod:1323 ../src/guestfs-actions.pod:2147
9553 msgid "This command returns the size of C<file> in bytes."
9554 msgstr ""
9555
9556 #. type: textblock
9557 #: ../fish/guestfish-actions.pod:1325
9558 msgid ""
9559 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
9560 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
9561 msgstr ""
9562
9563 #. type: =head2
9564 #: ../fish/guestfish-actions.pod:1329
9565 msgid "fill"
9566 msgstr "fill"
9567
9568 #. type: verbatim
9569 #: ../fish/guestfish-actions.pod:1331
9570 #, no-wrap
9571 msgid ""
9572 " fill c len path\n"
9573 "\n"
9574 msgstr ""
9575
9576 #. type: textblock
9577 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2165
9578 msgid ""
9579 "This command creates a new file called C<path>.  The initial content of the "
9580 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
9581 "[0..255]>."
9582 msgstr ""
9583
9584 #. type: textblock
9585 #: ../fish/guestfish-actions.pod:1337
9586 msgid ""
9587 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
9588 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
9589 "L</fill-pattern>."
9590 msgstr ""
9591
9592 #. type: =head2
9593 #: ../fish/guestfish-actions.pod:1342
9594 msgid "fill-pattern"
9595 msgstr "fill-pattern"
9596
9597 #. type: verbatim
9598 #: ../fish/guestfish-actions.pod:1344
9599 #, no-wrap
9600 msgid ""
9601 " fill-pattern pattern len path\n"
9602 "\n"
9603 msgstr ""
9604
9605 #. type: textblock
9606 #: ../fish/guestfish-actions.pod:1346
9607 msgid ""
9608 "This function is like L</fill> except that it creates a new file of length "
9609 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
9610 "is truncated if necessary to ensure the length of the file is exactly C<len> "
9611 "bytes."
9612 msgstr ""
9613
9614 #. type: =head2
9615 #: ../fish/guestfish-actions.pod:1351
9616 msgid "find"
9617 msgstr "find"
9618
9619 #. type: verbatim
9620 #: ../fish/guestfish-actions.pod:1353
9621 #, no-wrap
9622 msgid ""
9623 " find directory\n"
9624 "\n"
9625 msgstr ""
9626 " find каталог\n"
9627 "\n"
9628
9629 #. type: textblock
9630 #: ../fish/guestfish-actions.pod:1355 ../src/guestfs-actions.pod:2211
9631 msgid ""
9632 "This command lists out all files and directories, recursively, starting at "
9633 "C<directory>.  It is essentially equivalent to running the shell command "
9634 "C<find directory -print> but some post-processing happens on the output, "
9635 "described below."
9636 msgstr ""
9637
9638 #. type: textblock
9639 #: ../fish/guestfish-actions.pod:1360 ../src/guestfs-actions.pod:2216
9640 msgid ""
9641 "This returns a list of strings I<without any prefix>.  Thus if the directory "
9642 "structure was:"
9643 msgstr ""
9644
9645 #. type: verbatim
9646 #: ../fish/guestfish-actions.pod:1363 ../src/guestfs-actions.pod:2219
9647 #, no-wrap
9648 msgid ""
9649 " /tmp/a\n"
9650 " /tmp/b\n"
9651 " /tmp/c/d\n"
9652 "\n"
9653 msgstr ""
9654
9655 #. type: textblock
9656 #: ../fish/guestfish-actions.pod:1367
9657 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
9658 msgstr ""
9659
9660 #. type: verbatim
9661 #: ../fish/guestfish-actions.pod:1370 ../src/guestfs-actions.pod:2226
9662 #, no-wrap
9663 msgid ""
9664 " a\n"
9665 " b\n"
9666 " c\n"
9667 " c/d\n"
9668 "\n"
9669 msgstr ""
9670
9671 #. type: textblock
9672 #: ../fish/guestfish-actions.pod:1375 ../src/guestfs-actions.pod:2231
9673 msgid "If C<directory> is not a directory, then this command returns an error."
9674 msgstr ""
9675
9676 #. type: textblock
9677 #: ../fish/guestfish-actions.pod:1378 ../src/guestfs-actions.pod:2234
9678 msgid "The returned list is sorted."
9679 msgstr ""
9680
9681 #. type: textblock
9682 #: ../fish/guestfish-actions.pod:1380
9683 msgid "See also L</find0>."
9684 msgstr "Див. також L</find0>."
9685
9686 #. type: =head2
9687 #: ../fish/guestfish-actions.pod:1385
9688 msgid "find0"
9689 msgstr "find0"
9690
9691 #. type: verbatim
9692 #: ../fish/guestfish-actions.pod:1387
9693 #, no-wrap
9694 msgid ""
9695 " find0 directory (files|-)\n"
9696 "\n"
9697 msgstr ""
9698 " find0 каталог (файли|-)\n"
9699 "\n"
9700
9701 #. type: textblock
9702 #: ../fish/guestfish-actions.pod:1389 ../src/guestfs-actions.pod:2254
9703 msgid ""
9704 "This command lists out all files and directories, recursively, starting at "
9705 "C<directory>, placing the resulting list in the external file called "
9706 "C<files>."
9707 msgstr ""
9708
9709 #. type: textblock
9710 #: ../fish/guestfish-actions.pod:1393
9711 msgid ""
9712 "This command works the same way as L</find> with the following exceptions:"
9713 msgstr ""
9714
9715 #. type: textblock
9716 #: ../fish/guestfish-actions.pod:1400 ../src/guestfs-actions.pod:2265
9717 msgid "The resulting list is written to an external file."
9718 msgstr ""
9719
9720 #. type: textblock
9721 #: ../fish/guestfish-actions.pod:1404 ../src/guestfs-actions.pod:2269
9722 msgid ""
9723 "Items (filenames) in the result are separated by C<\\0> characters.  See "
9724 "L<find(1)> option I<-print0>."
9725 msgstr ""
9726
9727 #. type: textblock
9728 #: ../fish/guestfish-actions.pod:1409 ../src/guestfs-actions.pod:2274
9729 msgid "This command is not limited in the number of names that it can return."
9730 msgstr ""
9731
9732 #. type: textblock
9733 #: ../fish/guestfish-actions.pod:1414 ../src/guestfs-actions.pod:2279
9734 msgid "The result list is not sorted."
9735 msgstr ""
9736
9737 #. type: =head2
9738 #: ../fish/guestfish-actions.pod:1420
9739 msgid "findfs-label"
9740 msgstr "findfs-label"
9741
9742 #. type: verbatim
9743 #: ../fish/guestfish-actions.pod:1422
9744 #, no-wrap
9745 msgid ""
9746 " findfs-label label\n"
9747 "\n"
9748 msgstr ""
9749 " findfs-label мітка\n"
9750 "\n"
9751
9752 #. type: textblock
9753 #: ../fish/guestfish-actions.pod:1424 ../src/guestfs-actions.pod:2293
9754 msgid ""
9755 "This command searches the filesystems and returns the one which has the "
9756 "given label.  An error is returned if no such filesystem can be found."
9757 msgstr ""
9758
9759 #. type: textblock
9760 #: ../fish/guestfish-actions.pod:1428
9761 msgid "To find the label of a filesystem, use L</vfs-label>."
9762 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
9763
9764 #. type: =head2
9765 #: ../fish/guestfish-actions.pod:1430
9766 msgid "findfs-uuid"
9767 msgstr "findfs-uuid"
9768
9769 #. type: verbatim
9770 #: ../fish/guestfish-actions.pod:1432
9771 #, no-wrap
9772 msgid ""
9773 " findfs-uuid uuid\n"
9774 "\n"
9775 msgstr ""
9776 " findfs-uuid uuid\n"
9777 "\n"
9778
9779 #. type: textblock
9780 #: ../fish/guestfish-actions.pod:1434 ../src/guestfs-actions.pod:2310
9781 msgid ""
9782 "This command searches the filesystems and returns the one which has the "
9783 "given UUID.  An error is returned if no such filesystem can be found."
9784 msgstr ""
9785
9786 #. type: textblock
9787 #: ../fish/guestfish-actions.pod:1438
9788 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
9789 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
9790
9791 #. type: =head2
9792 #: ../fish/guestfish-actions.pod:1440
9793 msgid "fsck"
9794 msgstr "fsck"
9795
9796 #. type: verbatim
9797 #: ../fish/guestfish-actions.pod:1442
9798 #, no-wrap
9799 msgid ""
9800 " fsck fstype device\n"
9801 "\n"
9802 msgstr ""
9803 " fsck тип_файлової_системи пристрій\n"
9804 "\n"
9805
9806 #. type: textblock
9807 #: ../fish/guestfish-actions.pod:1444 ../src/guestfs-actions.pod:2328
9808 msgid ""
9809 "This runs the filesystem checker (fsck) on C<device> which should have "
9810 "filesystem type C<fstype>."
9811 msgstr ""
9812
9813 #. type: textblock
9814 #: ../fish/guestfish-actions.pod:1447 ../src/guestfs-actions.pod:2331
9815 msgid ""
9816 "The returned integer is the status.  See L<fsck(8)> for the list of status "
9817 "codes from C<fsck>."
9818 msgstr ""
9819
9820 #. type: textblock
9821 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2340
9822 msgid "Multiple status codes can be summed together."
9823 msgstr ""
9824
9825 #. type: textblock
9826 #: ../fish/guestfish-actions.pod:1460 ../src/guestfs-actions.pod:2344
9827 msgid ""
9828 "A non-zero return code can mean \"success\", for example if errors have been "
9829 "corrected on the filesystem."
9830 msgstr ""
9831
9832 #. type: textblock
9833 #: ../fish/guestfish-actions.pod:1465 ../src/guestfs-actions.pod:2349
9834 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
9835 msgstr ""
9836
9837 #. type: textblock
9838 #: ../fish/guestfish-actions.pod:1470 ../src/guestfs-actions.pod:2354
9839 msgid ""
9840 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
9841 msgstr ""
9842
9843 #. type: =head2
9844 #: ../fish/guestfish-actions.pod:1472
9845 msgid "get-append"
9846 msgstr "get-append"
9847
9848 #. type: verbatim
9849 #: ../fish/guestfish-actions.pod:1474
9850 #, no-wrap
9851 msgid ""
9852 " get-append\n"
9853 "\n"
9854 msgstr ""
9855 " get-append\n"
9856 "\n"
9857
9858 #. type: textblock
9859 #: ../fish/guestfish-actions.pod:1476 ../src/guestfs-actions.pod:2365
9860 msgid ""
9861 "Return the additional kernel options which are added to the guest kernel "
9862 "command line."
9863 msgstr ""
9864
9865 #. type: textblock
9866 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2368
9867 msgid "If C<NULL> then no options are added."
9868 msgstr ""
9869
9870 #. type: =head2
9871 #: ../fish/guestfish-actions.pod:1481
9872 msgid "get-attach-method"
9873 msgstr "get-attach-method"
9874
9875 #. type: verbatim
9876 #: ../fish/guestfish-actions.pod:1483
9877 #, no-wrap
9878 msgid ""
9879 " get-attach-method\n"
9880 "\n"
9881 msgstr ""
9882 " get-attach-method\n"
9883 "\n"
9884
9885 #. type: textblock
9886 #: ../fish/guestfish-actions.pod:1485
9887 msgid "Return the current attach method.  See L</set-attach-method>."
9888 msgstr ""
9889
9890 #. type: =head2
9891 #: ../fish/guestfish-actions.pod:1487
9892 msgid "get-autosync"
9893 msgstr "get-autosync"
9894
9895 #. type: verbatim
9896 #: ../fish/guestfish-actions.pod:1489
9897 #, no-wrap
9898 msgid ""
9899 " get-autosync\n"
9900 "\n"
9901 msgstr ""
9902 " get-autosync\n"
9903 "\n"
9904
9905 #. type: textblock
9906 #: ../fish/guestfish-actions.pod:1491 ../src/guestfs-actions.pod:2393
9907 msgid "Get the autosync flag."
9908 msgstr ""
9909
9910 #. type: =head2
9911 #: ../fish/guestfish-actions.pod:1493
9912 msgid "get-direct"
9913 msgstr "get-direct"
9914
9915 #. type: verbatim
9916 #: ../fish/guestfish-actions.pod:1495
9917 #, no-wrap
9918 msgid ""
9919 " get-direct\n"
9920 "\n"
9921 msgstr ""
9922 " get-direct\n"
9923 "\n"
9924
9925 #. type: textblock
9926 #: ../fish/guestfish-actions.pod:1497 ../src/guestfs-actions.pod:2404
9927 msgid "Return the direct appliance mode flag."
9928 msgstr ""
9929
9930 #. type: =head2
9931 #: ../fish/guestfish-actions.pod:1499
9932 msgid "get-e2label"
9933 msgstr "get-e2label"
9934
9935 #. type: verbatim
9936 #: ../fish/guestfish-actions.pod:1501
9937 #, no-wrap
9938 msgid ""
9939 " get-e2label device\n"
9940 "\n"
9941 msgstr ""
9942 " get-e2label пристрій\n"
9943 "\n"
9944
9945 #. type: textblock
9946 #: ../fish/guestfish-actions.pod:1503 ../src/guestfs-actions.pod:2423
9947 msgid ""
9948 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
9949 msgstr ""
9950
9951 #. type: textblock
9952 #: ../fish/guestfish-actions.pod:1506
9953 msgid ""
9954 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
9955 "instead."
9956 msgstr ""
9957
9958 #. type: =head2
9959 #: ../fish/guestfish-actions.pod:1513
9960 msgid "get-e2uuid"
9961 msgstr "get-e2uuid"
9962
9963 #. type: verbatim
9964 #: ../fish/guestfish-actions.pod:1515
9965 #, no-wrap
9966 msgid ""
9967 " get-e2uuid device\n"
9968 "\n"
9969 msgstr ""
9970 " get-e2uuid пристрій\n"
9971 "\n"
9972
9973 #. type: textblock
9974 #: ../fish/guestfish-actions.pod:1517 ../src/guestfs-actions.pod:2444
9975 msgid ""
9976 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
9977 msgstr ""
9978
9979 #. type: textblock
9980 #: ../fish/guestfish-actions.pod:1520
9981 msgid ""
9982 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
9983 "instead."
9984 msgstr ""
9985
9986 #. type: =head2
9987 #: ../fish/guestfish-actions.pod:1527
9988 msgid "get-memsize"
9989 msgstr "get-memsize"
9990
9991 #. type: verbatim
9992 #: ../fish/guestfish-actions.pod:1529
9993 #, no-wrap
9994 msgid ""
9995 " get-memsize\n"
9996 "\n"
9997 msgstr ""
9998 " get-memsize\n"
9999 "\n"
10000
10001 #. type: textblock
10002 #: ../fish/guestfish-actions.pod:1531 ../src/guestfs-actions.pod:2457
10003 msgid ""
10004 "This gets the memory size in megabytes allocated to the qemu subprocess."
10005 msgstr ""
10006
10007 #. type: textblock
10008 #: ../fish/guestfish-actions.pod:1534
10009 msgid ""
10010 "If L</set-memsize> was not called on this handle, and if "
10011 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
10012 "value for memsize."
10013 msgstr ""
10014
10015 #. type: textblock
10016 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:1595
10017 #: ../fish/guestfish-actions.pod:4468 ../fish/guestfish-actions.pod:4570
10018 #: ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556
10019 #: ../src/guestfs-actions.pod:6921 ../src/guestfs-actions.pod:7047
10020 msgid ""
10021 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
10022 msgstr ""
10023
10024 #. type: =head2
10025 #: ../fish/guestfish-actions.pod:1541
10026 msgid "get-network"
10027 msgstr "get-network"
10028
10029 #. type: verbatim
10030 #: ../fish/guestfish-actions.pod:1543
10031 #, no-wrap
10032 msgid ""
10033 " get-network\n"
10034 "\n"
10035 msgstr ""
10036 " get-network\n"
10037 "\n"
10038
10039 #. type: textblock
10040 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2476
10041 msgid "This returns the enable network flag."
10042 msgstr ""
10043
10044 #. type: =head2
10045 #: ../fish/guestfish-actions.pod:1547
10046 msgid "get-path"
10047 msgstr "get-path"
10048
10049 #. type: verbatim
10050 #: ../fish/guestfish-actions.pod:1549
10051 #, no-wrap
10052 msgid ""
10053 " get-path\n"
10054 "\n"
10055 msgstr ""
10056 " get-path\n"
10057 "\n"
10058
10059 #. type: textblock
10060 #: ../fish/guestfish-actions.pod:1551 ../src/guestfs-actions.pod:2487
10061 msgid "Return the current search path."
10062 msgstr ""
10063
10064 #. type: textblock
10065 #: ../fish/guestfish-actions.pod:1553 ../src/guestfs-actions.pod:2489
10066 msgid ""
10067 "This is always non-NULL.  If it wasn't set already, then this will return "
10068 "the default path."
10069 msgstr ""
10070
10071 #. type: =head2
10072 #: ../fish/guestfish-actions.pod:1556
10073 msgid "get-pgroup"
10074 msgstr ""
10075
10076 #. type: verbatim
10077 #: ../fish/guestfish-actions.pod:1558
10078 #, no-wrap
10079 msgid ""
10080 " get-pgroup\n"
10081 "\n"
10082 msgstr ""
10083
10084 #. type: textblock
10085 #: ../fish/guestfish-actions.pod:1560 ../src/guestfs-actions.pod:2502
10086 msgid "This returns the process group flag."
10087 msgstr ""
10088
10089 #. type: =head2
10090 #: ../fish/guestfish-actions.pod:1562
10091 msgid "get-pid"
10092 msgstr "get-pid"
10093
10094 #. type: =head2
10095 #: ../fish/guestfish-actions.pod:1564
10096 msgid "pid"
10097 msgstr "PID"
10098
10099 #. type: verbatim
10100 #: ../fish/guestfish-actions.pod:1566
10101 #, no-wrap
10102 msgid ""
10103 " get-pid\n"
10104 "\n"
10105 msgstr ""
10106 " get-pid\n"
10107 "\n"
10108
10109 #. type: textblock
10110 #: ../fish/guestfish-actions.pod:1568 ../src/guestfs-actions.pod:2513
10111 msgid ""
10112 "Return the process ID of the qemu subprocess.  If there is no qemu "
10113 "subprocess, then this will return an error."
10114 msgstr ""
10115
10116 #. type: textblock
10117 #: ../fish/guestfish-actions.pod:1571 ../src/guestfs-actions.pod:2516
10118 msgid "This is an internal call used for debugging and testing."
10119 msgstr ""
10120
10121 #. type: =head2
10122 #: ../fish/guestfish-actions.pod:1573
10123 msgid "get-qemu"
10124 msgstr "get-qemu"
10125
10126 #. type: verbatim
10127 #: ../fish/guestfish-actions.pod:1575
10128 #, no-wrap
10129 msgid ""
10130 " get-qemu\n"
10131 "\n"
10132 msgstr ""
10133 " get-qemu\n"
10134 "\n"
10135
10136 #. type: textblock
10137 #: ../fish/guestfish-actions.pod:1577 ../src/guestfs-actions.pod:2527
10138 msgid "Return the current qemu binary."
10139 msgstr ""
10140
10141 #. type: textblock
10142 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2529
10143 msgid ""
10144 "This is always non-NULL.  If it wasn't set already, then this will return "
10145 "the default qemu binary name."
10146 msgstr ""
10147
10148 #. type: =head2
10149 #: ../fish/guestfish-actions.pod:1582
10150 msgid "get-recovery-proc"
10151 msgstr "get-recovery-proc"
10152
10153 #. type: verbatim
10154 #: ../fish/guestfish-actions.pod:1584
10155 #, no-wrap
10156 msgid ""
10157 " get-recovery-proc\n"
10158 "\n"
10159 msgstr ""
10160 " get-recovery-proc\n"
10161 "\n"
10162
10163 #. type: textblock
10164 #: ../fish/guestfish-actions.pod:1586 ../src/guestfs-actions.pod:2542
10165 msgid "Return the recovery process enabled flag."
10166 msgstr ""
10167
10168 #. type: =head2
10169 #: ../fish/guestfish-actions.pod:1588
10170 msgid "get-selinux"
10171 msgstr "get-selinux"
10172
10173 #. type: verbatim
10174 #: ../fish/guestfish-actions.pod:1590
10175 #, no-wrap
10176 msgid ""
10177 " get-selinux\n"
10178 "\n"
10179 msgstr ""
10180 " get-selinux\n"
10181 "\n"
10182
10183 #. type: textblock
10184 #: ../fish/guestfish-actions.pod:1592
10185 msgid ""
10186 "This returns the current setting of the selinux flag which is passed to the "
10187 "appliance at boot time.  See L</set-selinux>."
10188 msgstr ""
10189
10190 #. type: =head2
10191 #: ../fish/guestfish-actions.pod:1598
10192 msgid "get-smp"
10193 msgstr ""
10194
10195 #. type: verbatim
10196 #: ../fish/guestfish-actions.pod:1600
10197 #, no-wrap
10198 msgid ""
10199 " get-smp\n"
10200 "\n"
10201 msgstr ""
10202
10203 #. type: textblock
10204 #: ../fish/guestfish-actions.pod:1602 ../src/guestfs-actions.pod:2568
10205 msgid "This returns the number of virtual CPUs assigned to the appliance."
10206 msgstr ""
10207
10208 #. type: =head2
10209 #: ../fish/guestfish-actions.pod:1604
10210 msgid "get-state"
10211 msgstr "get-state"
10212
10213 #. type: verbatim
10214 #: ../fish/guestfish-actions.pod:1606
10215 #, no-wrap
10216 msgid ""
10217 " get-state\n"
10218 "\n"
10219 msgstr ""
10220 " get-state\n"
10221 "\n"
10222
10223 #. type: textblock
10224 #: ../fish/guestfish-actions.pod:1608 ../src/guestfs-actions.pod:2579
10225 msgid ""
10226 "This returns the current state as an opaque integer.  This is only useful "
10227 "for printing debug and internal error messages."
10228 msgstr ""
10229
10230 #. type: textblock
10231 #: ../fish/guestfish-actions.pod:1611 ../fish/guestfish-actions.pod:2574
10232 #: ../fish/guestfish-actions.pod:2592 ../fish/guestfish-actions.pod:2630
10233 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:2582
10234 #: ../src/guestfs-actions.pod:3905 ../src/guestfs-actions.pod:3934
10235 #: ../src/guestfs-actions.pod:3995 ../src/guestfs-actions.pod:4022
10236 msgid "For more information on states, see L<guestfs(3)>."
10237 msgstr ""
10238
10239 #. type: =head2
10240 #: ../fish/guestfish-actions.pod:1613
10241 msgid "get-trace"
10242 msgstr "get-trace"
10243
10244 #. type: verbatim
10245 #: ../fish/guestfish-actions.pod:1615
10246 #, no-wrap
10247 msgid ""
10248 " get-trace\n"
10249 "\n"
10250 msgstr ""
10251 " get-trace\n"
10252 "\n"
10253
10254 #. type: textblock
10255 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2593
10256 msgid "Return the command trace flag."
10257 msgstr ""
10258
10259 #. type: =head2
10260 #: ../fish/guestfish-actions.pod:1619
10261 msgid "get-umask"
10262 msgstr "get-umask"
10263
10264 #. type: verbatim
10265 #: ../fish/guestfish-actions.pod:1621
10266 #, no-wrap
10267 msgid ""
10268 " get-umask\n"
10269 "\n"
10270 msgstr ""
10271 " get-umask\n"
10272 "\n"
10273
10274 #. type: textblock
10275 #: ../fish/guestfish-actions.pod:1623
10276 msgid ""
10277 "Return the current umask.  By default the umask is C<022> unless it has been "
10278 "set by calling L</umask>."
10279 msgstr ""
10280
10281 #. type: =head2
10282 #: ../fish/guestfish-actions.pod:1626
10283 msgid "get-verbose"
10284 msgstr "get-verbose"
10285
10286 #. type: verbatim
10287 #: ../fish/guestfish-actions.pod:1628
10288 #, no-wrap
10289 msgid ""
10290 " get-verbose\n"
10291 "\n"
10292 msgstr ""
10293 " get-verbose\n"
10294 "\n"
10295
10296 #. type: textblock
10297 #: ../fish/guestfish-actions.pod:1630 ../src/guestfs-actions.pod:2616
10298 msgid "This returns the verbose messages flag."
10299 msgstr ""
10300
10301 #. type: =head2
10302 #: ../fish/guestfish-actions.pod:1632
10303 msgid "getcon"
10304 msgstr "getcon"
10305
10306 #. type: verbatim
10307 #: ../fish/guestfish-actions.pod:1634
10308 #, no-wrap
10309 msgid ""
10310 " getcon\n"
10311 "\n"
10312 msgstr ""
10313 " getcon\n"
10314 "\n"
10315
10316 #. type: textblock
10317 #: ../fish/guestfish-actions.pod:1636 ../src/guestfs-actions.pod:2627
10318 msgid "This gets the SELinux security context of the daemon."
10319 msgstr ""
10320
10321 #. type: textblock
10322 #: ../fish/guestfish-actions.pod:1638
10323 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
10324 msgstr ""
10325
10326 #. type: =head2
10327 #: ../fish/guestfish-actions.pod:1641
10328 msgid "getxattr"
10329 msgstr "getxattr"
10330
10331 #. type: verbatim
10332 #: ../fish/guestfish-actions.pod:1643
10333 #, no-wrap
10334 msgid ""
10335 " getxattr path name\n"
10336 "\n"
10337 msgstr ""
10338 " getxattr шлях назва\n"
10339 "\n"
10340
10341 #. type: textblock
10342 #: ../fish/guestfish-actions.pod:1645
10343 msgid ""
10344 "Get a single extended attribute from file C<path> named C<name>.  This call "
10345 "follows symlinks.  If you want to lookup an extended attribute for the "
10346 "symlink itself, use L</lgetxattr>."
10347 msgstr ""
10348
10349 #. type: textblock
10350 #: ../fish/guestfish-actions.pod:1649 ../fish/guestfish-actions.pod:2719
10351 msgid ""
10352 "Normally it is better to get all extended attributes from a file in one go "
10353 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
10354 "buggy and do not provide a way to list out attributes.  For these "
10355 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
10356 "attributes you want in advance and call this function."
10357 msgstr ""
10358
10359 #. type: textblock
10360 #: ../fish/guestfish-actions.pod:1656 ../fish/guestfish-actions.pod:2726
10361 #: ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4155
10362 msgid ""
10363 "Extended attribute values are blobs of binary data.  If there is no extended "
10364 "attribute named C<name>, this returns an error."
10365 msgstr ""
10366
10367 #. type: textblock
10368 #: ../fish/guestfish-actions.pod:1659
10369 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
10370 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
10371
10372 #. type: =head2
10373 #: ../fish/guestfish-actions.pod:1661
10374 msgid "getxattrs"
10375 msgstr "getxattrs"
10376
10377 #. type: verbatim
10378 #: ../fish/guestfish-actions.pod:1663
10379 #, no-wrap
10380 msgid ""
10381 " getxattrs path\n"
10382 "\n"
10383 msgstr ""
10384 " getxattrs шлях\n"
10385 "\n"
10386
10387 #. type: textblock
10388 #: ../fish/guestfish-actions.pod:1665 ../src/guestfs-actions.pod:2673
10389 msgid ""
10390 "This call lists the extended attributes of the file or directory C<path>."
10391 msgstr ""
10392
10393 #. type: textblock
10394 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2676
10395 msgid ""
10396 "At the system call level, this is a combination of the L<listxattr(2)> and "
10397 "L<getxattr(2)> calls."
10398 msgstr ""
10399
10400 #. type: textblock
10401 #: ../fish/guestfish-actions.pod:1671
10402 msgid "See also: L</lgetxattrs>, L<attr(5)>."
10403 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
10404
10405 #. type: =head2
10406 #: ../fish/guestfish-actions.pod:1673
10407 msgid "glob-expand"
10408 msgstr "glob-expand"
10409
10410 #. type: verbatim
10411 #: ../fish/guestfish-actions.pod:1675
10412 #, no-wrap
10413 msgid ""
10414 " glob-expand pattern\n"
10415 "\n"
10416 msgstr ""
10417 " glob-expand шаблон\n"
10418 "\n"
10419
10420 #. type: textblock
10421 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2693
10422 msgid ""
10423 "This command searches for all the pathnames matching C<pattern> according to "
10424 "the wildcard expansion rules used by the shell."
10425 msgstr ""
10426
10427 #. type: textblock
10428 #: ../fish/guestfish-actions.pod:1681 ../src/guestfs-actions.pod:2697
10429 msgid ""
10430 "If no paths match, then this returns an empty list (note: not an error)."
10431 msgstr ""
10432
10433 #. type: textblock
10434 #: ../fish/guestfish-actions.pod:1684 ../src/guestfs-actions.pod:2700
10435 msgid ""
10436 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
10437 "GLOB_BRACE>.  See that manual page for more details."
10438 msgstr ""
10439
10440 #. type: =head2
10441 #: ../fish/guestfish-actions.pod:1688
10442 msgid "grep"
10443 msgstr "grep"
10444
10445 #. type: verbatim
10446 #: ../fish/guestfish-actions.pod:1690
10447 #, no-wrap
10448 msgid ""
10449 " grep regex path\n"
10450 "\n"
10451 msgstr ""
10452 " grepi формальний_вираз шлях\n"
10453 "\n"
10454
10455 #. type: textblock
10456 #: ../fish/guestfish-actions.pod:1692 ../src/guestfs-actions.pod:2717
10457 msgid "This calls the external C<grep> program and returns the matching lines."
10458 msgstr ""
10459
10460 #. type: =head2
10461 #: ../fish/guestfish-actions.pod:1698
10462 msgid "grepi"
10463 msgstr "grepi"
10464
10465 #. type: verbatim
10466 #: ../fish/guestfish-actions.pod:1700
10467 #, no-wrap
10468 msgid ""
10469 " grepi regex path\n"
10470 "\n"
10471 msgstr ""
10472 " grepi формальний_вираз шлях\n"
10473 "\n"
10474
10475 #. type: textblock
10476 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2736
10477 msgid ""
10478 "This calls the external C<grep -i> program and returns the matching lines."
10479 msgstr ""
10480
10481 #. type: =head2
10482 #: ../fish/guestfish-actions.pod:1708
10483 msgid "grub-install"
10484 msgstr "grub-install"
10485
10486 #. type: verbatim
10487 #: ../fish/guestfish-actions.pod:1710
10488 #, no-wrap
10489 msgid ""
10490 " grub-install root device\n"
10491 "\n"
10492 msgstr ""
10493 " grub-install кореневий пристрій\n"
10494 "\n"
10495
10496 #. type: textblock
10497 #: ../fish/guestfish-actions.pod:1712 ../src/guestfs-actions.pod:2755
10498 msgid ""
10499 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
10500 "with the root directory being C<root>."
10501 msgstr ""
10502
10503 #. type: textblock
10504 #: ../fish/guestfish-actions.pod:1721 ../src/guestfs-actions.pod:2764
10505 msgid ""
10506 "There is currently no way in the API to install grub2, which is used by most "
10507 "modern Linux guests.  It is possible to run the grub2 command from the "
10508 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
10509 msgstr ""
10510
10511 #. type: textblock
10512 #: ../fish/guestfish-actions.pod:1728 ../src/guestfs-actions.pod:2771
10513 msgid ""
10514 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
10515 "compatible with itself, so this only works in rather narrow circumstances.  "
10516 "Careful testing with each guest version is advisable."
10517 msgstr ""
10518
10519 #. type: textblock
10520 #: ../fish/guestfish-actions.pod:1735 ../src/guestfs-actions.pod:2778
10521 msgid ""
10522 "If grub-install reports the error \"No suitable drive was found in the "
10523 "generated device map.\" it may be that you need to create a C</boot/grub/"
10524 "device.map> file first that contains the mapping between grub device names "
10525 "and Linux device names.  It is usually sufficient to create a file "
10526 "containing:"
10527 msgstr ""
10528
10529 #. type: verbatim
10530 #: ../fish/guestfish-actions.pod:1742 ../src/guestfs-actions.pod:2785
10531 #, no-wrap
10532 msgid ""
10533 " (hd0) /dev/vda\n"
10534 "\n"
10535 msgstr ""
10536
10537 #. type: textblock
10538 #: ../fish/guestfish-actions.pod:1744 ../src/guestfs-actions.pod:2787
10539 msgid "replacing C</dev/vda> with the name of the installation device."
10540 msgstr ""
10541
10542 #. type: =head2
10543 #: ../fish/guestfish-actions.pod:1748
10544 msgid "head"
10545 msgstr "head"
10546
10547 #. type: verbatim
10548 #: ../fish/guestfish-actions.pod:1750
10549 #, no-wrap
10550 msgid ""
10551 " head path\n"
10552 "\n"
10553 msgstr ""
10554 " head шлях\n"
10555 "\n"
10556
10557 #. type: textblock
10558 #: ../fish/guestfish-actions.pod:1752 ../src/guestfs-actions.pod:2801
10559 msgid ""
10560 "This command returns up to the first 10 lines of a file as a list of strings."
10561 msgstr ""
10562
10563 #. type: =head2
10564 #: ../fish/guestfish-actions.pod:1758
10565 msgid "head-n"
10566 msgstr "head-n"
10567
10568 #. type: verbatim
10569 #: ../fish/guestfish-actions.pod:1760
10570 #, no-wrap
10571 msgid ""
10572 " head-n nrlines path\n"
10573 "\n"
10574 msgstr ""
10575
10576 #. type: textblock
10577 #: ../fish/guestfish-actions.pod:1762 ../src/guestfs-actions.pod:2820
10578 msgid ""
10579 "If the parameter C<nrlines> is a positive number, this returns the first "
10580 "C<nrlines> lines of the file C<path>."
10581 msgstr ""
10582
10583 #. type: textblock
10584 #: ../fish/guestfish-actions.pod:1765 ../src/guestfs-actions.pod:2823
10585 msgid ""
10586 "If the parameter C<nrlines> is a negative number, this returns lines from "
10587 "the file C<path>, excluding the last C<nrlines> lines."
10588 msgstr ""
10589
10590 #. type: textblock
10591 #: ../fish/guestfish-actions.pod:1768 ../fish/guestfish-actions.pod:4951
10592 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7626
10593 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
10594 msgstr ""
10595
10596 #. type: =head2
10597 #: ../fish/guestfish-actions.pod:1773
10598 msgid "hexdump"
10599 msgstr "hexdump"
10600
10601 #. type: verbatim
10602 #: ../fish/guestfish-actions.pod:1775
10603 #, no-wrap
10604 msgid ""
10605 " hexdump path\n"
10606 "\n"
10607 msgstr ""
10608 " hexdump шлях\n"
10609 "\n"
10610
10611 #. type: textblock
10612 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2843
10613 msgid ""
10614 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
10615 "readable, canonical hex dump of the file."
10616 msgstr ""
10617
10618 #. type: =head2
10619 #: ../fish/guestfish-actions.pod:1783
10620 msgid "initrd-cat"
10621 msgstr "initrd-cat"
10622
10623 #. type: verbatim
10624 #: ../fish/guestfish-actions.pod:1785
10625 #, no-wrap
10626 msgid ""
10627 " initrd-cat initrdpath filename\n"
10628 "\n"
10629 msgstr ""
10630 " initrd-cat шлях_initrd назва_файла\n"
10631 "\n"
10632
10633 #. type: textblock
10634 #: ../fish/guestfish-actions.pod:1787 ../src/guestfs-actions.pod:2862
10635 msgid ""
10636 "This command unpacks the file C<filename> from the initrd file called "
10637 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
10638 "character."
10639 msgstr ""
10640
10641 #. type: textblock
10642 #: ../fish/guestfish-actions.pod:1791 ../src/guestfs-actions.pod:2866
10643 msgid ""
10644 "For example, in guestfish you could use the following command to examine the "
10645 "boot script (usually called C</init>)  contained in a Linux initrd or "
10646 "initramfs image:"
10647 msgstr ""
10648
10649 #. type: verbatim
10650 #: ../fish/guestfish-actions.pod:1795 ../src/guestfs-actions.pod:2870
10651 #, no-wrap
10652 msgid ""
10653 " initrd-cat /boot/initrd-<version>.img init\n"
10654 "\n"
10655 msgstr ""
10656
10657 #. type: textblock
10658 #: ../fish/guestfish-actions.pod:1797
10659 msgid "See also L</initrd-list>."
10660 msgstr "Див. також L</initrd-list>."
10661
10662 #. type: =head2
10663 #: ../fish/guestfish-actions.pod:1802
10664 msgid "initrd-list"
10665 msgstr "initrd-list"
10666
10667 #. type: verbatim
10668 #: ../fish/guestfish-actions.pod:1804
10669 #, no-wrap
10670 msgid ""
10671 " initrd-list path\n"
10672 "\n"
10673 msgstr ""
10674 " initrd-list шлях\n"
10675 "\n"
10676
10677 #. type: textblock
10678 #: ../fish/guestfish-actions.pod:1806 ../src/guestfs-actions.pod:2889
10679 msgid "This command lists out files contained in an initrd."
10680 msgstr ""
10681
10682 #. type: textblock
10683 #: ../fish/guestfish-actions.pod:1808 ../src/guestfs-actions.pod:2891
10684 msgid ""
10685 "The files are listed without any initial C</> character.  The files are "
10686 "listed in the order they appear (not necessarily alphabetical).  Directory "
10687 "names are listed as separate items."
10688 msgstr ""
10689
10690 #. type: textblock
10691 #: ../fish/guestfish-actions.pod:1812 ../src/guestfs-actions.pod:2895
10692 msgid ""
10693 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
10694 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
10695 "files)."
10696 msgstr ""
10697
10698 #. type: =head2
10699 #: ../fish/guestfish-actions.pod:1816
10700 msgid "inotify-add-watch"
10701 msgstr "inotify-add-watch"
10702
10703 #. type: verbatim
10704 #: ../fish/guestfish-actions.pod:1818
10705 #, no-wrap
10706 msgid ""
10707 " inotify-add-watch path mask\n"
10708 "\n"
10709 msgstr ""
10710 " inotify-add-watch шлях маска\n"
10711 "\n"
10712
10713 #. type: textblock
10714 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2912
10715 msgid "Watch C<path> for the events listed in C<mask>."
10716 msgstr ""
10717
10718 #. type: textblock
10719 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2914
10720 msgid ""
10721 "Note that if C<path> is a directory then events within that directory are "
10722 "watched, but this does I<not> happen recursively (in subdirectories)."
10723 msgstr ""
10724
10725 #. type: textblock
10726 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2918
10727 msgid ""
10728 "Note for non-C or non-Linux callers: the inotify events are defined by the "
10729 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
10730 msgstr ""
10731
10732 #. type: =head2
10733 #: ../fish/guestfish-actions.pod:1830
10734 msgid "inotify-close"
10735 msgstr "inotify-close"
10736
10737 #. type: verbatim
10738 #: ../fish/guestfish-actions.pod:1832
10739 #, no-wrap
10740 msgid ""
10741 " inotify-close\n"
10742 "\n"
10743 msgstr ""
10744 " inotify-close\n"
10745 "\n"
10746
10747 #. type: textblock
10748 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2931
10749 msgid ""
10750 "This closes the inotify handle which was previously opened by inotify_init.  "
10751 "It removes all watches, throws away any pending events, and deallocates all "
10752 "resources."
10753 msgstr ""
10754
10755 #. type: =head2
10756 #: ../fish/guestfish-actions.pod:1838
10757 msgid "inotify-files"
10758 msgstr "inotify-files"
10759
10760 #. type: verbatim
10761 #: ../fish/guestfish-actions.pod:1840
10762 #, no-wrap
10763 msgid ""
10764 " inotify-files\n"
10765 "\n"
10766 msgstr ""
10767 " inotify-files\n"
10768 "\n"
10769
10770 #. type: textblock
10771 #: ../fish/guestfish-actions.pod:1842
10772 msgid ""
10773 "This function is a helpful wrapper around L</inotify-read> which just "
10774 "returns a list of pathnames of objects that were touched.  The returned "
10775 "pathnames are sorted and deduplicated."
10776 msgstr ""
10777
10778 #. type: =head2
10779 #: ../fish/guestfish-actions.pod:1846
10780 msgid "inotify-init"
10781 msgstr "inotify-init"
10782
10783 #. type: verbatim
10784 #: ../fish/guestfish-actions.pod:1848
10785 #, no-wrap
10786 msgid ""
10787 " inotify-init maxevents\n"
10788 "\n"
10789 msgstr ""
10790
10791 #. type: textblock
10792 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2960
10793 msgid ""
10794 "This command creates a new inotify handle.  The inotify subsystem can be "
10795 "used to notify events which happen to objects in the guest filesystem."
10796 msgstr ""
10797
10798 #. type: textblock
10799 #: ../fish/guestfish-actions.pod:1854
10800 msgid ""
10801 "C<maxevents> is the maximum number of events which will be queued up between "
10802 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
10803 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
10804 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
10805 "but records the fact that it threw them away by setting a flag "
10806 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
10807 msgstr ""
10808
10809 #. type: textblock
10810 #: ../fish/guestfish-actions.pod:1864
10811 msgid ""
10812 "Before any events are generated, you have to add some watches to the "
10813 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
10814 "L</inotify-watch-all>."
10815 msgstr ""
10816
10817 #. type: textblock
10818 #: ../fish/guestfish-actions.pod:1870
10819 msgid ""
10820 "Queued up events should be read periodically by calling L</inotify-read> (or "
10821 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
10822 "If you don't read the events out often enough then you risk the internal "
10823 "queue overflowing."
10824 msgstr ""
10825
10826 #. type: textblock
10827 #: ../fish/guestfish-actions.pod:1877
10828 msgid ""
10829 "The handle should be closed after use by calling L</inotify-close>.  This "
10830 "also removes any watches automatically."
10831 msgstr ""
10832
10833 #. type: textblock
10834 #: ../fish/guestfish-actions.pod:1881 ../src/guestfs-actions.pod:2991
10835 msgid ""
10836 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
10837 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
10838 "that there is one global inotify handle per libguestfs instance."
10839 msgstr ""
10840
10841 #. type: =head2
10842 #: ../fish/guestfish-actions.pod:1886
10843 msgid "inotify-read"
10844 msgstr "inotify-read"
10845
10846 #. type: verbatim
10847 #: ../fish/guestfish-actions.pod:1888
10848 #, no-wrap
10849 msgid ""
10850 " inotify-read\n"
10851 "\n"
10852 msgstr ""
10853 " inotify-read\n"
10854 "\n"
10855
10856 #. type: textblock
10857 #: ../fish/guestfish-actions.pod:1890 ../src/guestfs-actions.pod:3005
10858 msgid ""
10859 "Return the complete queue of events that have happened since the previous "
10860 "read call."
10861 msgstr ""
10862
10863 #. type: textblock
10864 #: ../fish/guestfish-actions.pod:1893 ../src/guestfs-actions.pod:3008
10865 msgid "If no events have happened, this returns an empty list."
10866 msgstr ""
10867
10868 #. type: textblock
10869 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:3010
10870 msgid ""
10871 "I<Note>: In order to make sure that all events have been read, you must call "
10872 "this function repeatedly until it returns an empty list.  The reason is that "
10873 "the call will read events up to the maximum appliance-to-host message size "
10874 "and leave remaining events in the queue."
10875 msgstr ""
10876
10877 #. type: =head2
10878 #: ../fish/guestfish-actions.pod:1901
10879 msgid "inotify-rm-watch"
10880 msgstr "inotify-rm-watch"
10881
10882 #. type: verbatim
10883 #: ../fish/guestfish-actions.pod:1903
10884 #, no-wrap
10885 msgid ""
10886 " inotify-rm-watch wd\n"
10887 "\n"
10888 msgstr ""
10889
10890 #. type: textblock
10891 #: ../fish/guestfish-actions.pod:1905
10892 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
10893 msgstr ""
10894
10895 #. type: =head2
10896 #: ../fish/guestfish-actions.pod:1908
10897 msgid "inspect-get-arch"
10898 msgstr "inspect-get-arch"
10899
10900 #. type: verbatim
10901 #: ../fish/guestfish-actions.pod:1910
10902 #, no-wrap
10903 msgid ""
10904 " inspect-get-arch root\n"
10905 "\n"
10906 msgstr ""
10907 " inspect-get-arch корінь\n"
10908 "\n"
10909
10910 #. type: textblock
10911 #: ../fish/guestfish-actions.pod:1912
10912 msgid ""
10913 "This returns the architecture of the inspected operating system.  The "
10914 "possible return values are listed under L</file-architecture>."
10915 msgstr ""
10916
10917 #. type: textblock
10918 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:3045
10919 msgid ""
10920 "If the architecture could not be determined, then the string C<unknown> is "
10921 "returned."
10922 msgstr ""
10923
10924 #. type: textblock
10925 #: ../fish/guestfish-actions.pod:1919 ../fish/guestfish-actions.pod:2014
10926 #: ../fish/guestfish-actions.pod:2093 ../fish/guestfish-actions.pod:2105
10927 #: ../fish/guestfish-actions.pod:2189 ../fish/guestfish-actions.pod:2251
10928 #: ../fish/guestfish-actions.pod:2272 ../fish/guestfish-actions.pod:2286
10929 #: ../fish/guestfish-actions.pod:2326 ../fish/guestfish-actions.pod:2366
10930 #: ../fish/guestfish-actions.pod:2379 ../fish/guestfish-actions.pod:2392
10931 #: ../fish/guestfish-actions.pod:2402 ../fish/guestfish-actions.pod:2412
10932 #: ../fish/guestfish-actions.pod:2424 ../fish/guestfish-actions.pod:2520
10933 #: ../fish/guestfish-actions.pod:2554 ../src/guestfs-actions.pod:3048
10934 #: ../src/guestfs-actions.pod:3150 ../src/guestfs-actions.pod:3254
10935 #: ../src/guestfs-actions.pod:3273 ../src/guestfs-actions.pod:3404
10936 #: ../src/guestfs-actions.pod:3488 ../src/guestfs-actions.pod:3516
10937 #: ../src/guestfs-actions.pod:3537 ../src/guestfs-actions.pod:3590
10938 #: ../src/guestfs-actions.pod:3638 ../src/guestfs-actions.pod:3658
10939 #: ../src/guestfs-actions.pod:3678 ../src/guestfs-actions.pod:3695
10940 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729
10941 #: ../src/guestfs-actions.pod:3831 ../src/guestfs-actions.pod:3872
10942 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
10943 msgstr ""
10944
10945 #. type: =head2
10946 #: ../fish/guestfish-actions.pod:1921
10947 msgid "inspect-get-distro"
10948 msgstr "inspect-get-distro"
10949
10950 #. type: verbatim
10951 #: ../fish/guestfish-actions.pod:1923
10952 #, no-wrap
10953 msgid ""
10954 " inspect-get-distro root\n"
10955 "\n"
10956 msgstr ""
10957 " inspect-get-distro корінь\n"
10958 "\n"
10959
10960 #. type: textblock
10961 #: ../fish/guestfish-actions.pod:1925 ../src/guestfs-actions.pod:3061
10962 msgid ""
10963 "This returns the distro (distribution) of the inspected operating system."
10964 msgstr ""
10965
10966 #. type: textblock
10967 #: ../fish/guestfish-actions.pod:1928 ../src/guestfs-actions.pod:3064
10968 msgid "Currently defined distros are:"
10969 msgstr ""
10970
10971 #. type: =item
10972 #: ../fish/guestfish-actions.pod:1932 ../src/guestfs-actions.pod:3068
10973 msgid "\"archlinux\""
10974 msgstr "\"archlinux\""
10975
10976 #. type: textblock
10977 #: ../fish/guestfish-actions.pod:1934 ../src/guestfs-actions.pod:3070
10978 msgid "Arch Linux."
10979 msgstr "Arch Linux."
10980
10981 #. type: =item
10982 #: ../fish/guestfish-actions.pod:1936 ../src/guestfs-actions.pod:3072
10983 msgid "\"centos\""
10984 msgstr ""
10985
10986 #. type: textblock
10987 #: ../fish/guestfish-actions.pod:1938 ../src/guestfs-actions.pod:3074
10988 msgid "CentOS."
10989 msgstr ""
10990
10991 #. type: =item
10992 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:3076
10993 msgid "\"debian\""
10994 msgstr "\"debian\""
10995
10996 #. type: textblock
10997 #: ../fish/guestfish-actions.pod:1942 ../src/guestfs-actions.pod:3078
10998 msgid "Debian."
10999 msgstr "Debian."
11000
11001 #. type: =item
11002 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:3080
11003 msgid "\"fedora\""
11004 msgstr "\"fedora\""
11005
11006 #. type: textblock
11007 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:3082
11008 msgid "Fedora."
11009 msgstr "Fedora."
11010
11011 #. type: =item
11012 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:3084
11013 msgid "\"gentoo\""
11014 msgstr "\"gentoo\""
11015
11016 #. type: textblock
11017 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:3086
11018 msgid "Gentoo."
11019 msgstr "Gentoo."
11020
11021 #. type: =item
11022 #: ../fish/guestfish-actions.pod:1952 ../src/guestfs-actions.pod:3088
11023 msgid "\"linuxmint\""
11024 msgstr "\"linuxmint\""
11025
11026 #. type: textblock
11027 #: ../fish/guestfish-actions.pod:1954 ../src/guestfs-actions.pod:3090
11028 msgid "Linux Mint."
11029 msgstr "Linux Mint."
11030
11031 #. type: =item
11032 #: ../fish/guestfish-actions.pod:1956 ../src/guestfs-actions.pod:3092
11033 msgid "\"mageia\""
11034 msgstr ""
11035
11036 #. type: textblock
11037 #: ../fish/guestfish-actions.pod:1958 ../src/guestfs-actions.pod:3094
11038 msgid "Mageia."
11039 msgstr ""
11040
11041 #. type: =item
11042 #: ../fish/guestfish-actions.pod:1960 ../src/guestfs-actions.pod:3096
11043 msgid "\"mandriva\""
11044 msgstr "\"mandriva\""
11045
11046 #. type: textblock
11047 #: ../fish/guestfish-actions.pod:1962 ../src/guestfs-actions.pod:3098
11048 msgid "Mandriva."
11049 msgstr "Mandriva."
11050
11051 #. type: =item
11052 #: ../fish/guestfish-actions.pod:1964 ../src/guestfs-actions.pod:3100
11053 msgid "\"meego\""
11054 msgstr "\"meego\""
11055
11056 #. type: textblock
11057 #: ../fish/guestfish-actions.pod:1966 ../src/guestfs-actions.pod:3102
11058 msgid "MeeGo."
11059 msgstr "MeeGo."
11060
11061 #. type: =item
11062 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:3104
11063 msgid "\"opensuse\""
11064 msgstr ""
11065
11066 #. type: textblock
11067 #: ../fish/guestfish-actions.pod:1970 ../src/guestfs-actions.pod:3106
11068 msgid "OpenSUSE."
11069 msgstr ""
11070
11071 #. type: =item
11072 #: ../fish/guestfish-actions.pod:1972 ../src/guestfs-actions.pod:3108
11073 msgid "\"pardus\""
11074 msgstr "\"pardus\""
11075
11076 #. type: textblock
11077 #: ../fish/guestfish-actions.pod:1974 ../src/guestfs-actions.pod:3110
11078 msgid "Pardus."
11079 msgstr "Pardus."
11080
11081 #. type: =item
11082 #: ../fish/guestfish-actions.pod:1976 ../src/guestfs-actions.pod:3112
11083 msgid "\"redhat-based\""
11084 msgstr "\"redhat-based\""
11085
11086 #. type: textblock
11087 #: ../fish/guestfish-actions.pod:1978 ../src/guestfs-actions.pod:3114
11088 msgid "Some Red Hat-derived distro."
11089 msgstr "Дистрибутив, що походить від Red Hat."
11090
11091 #. type: =item
11092 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:3116
11093 msgid "\"rhel\""
11094 msgstr "\"rhel\""
11095
11096 #. type: textblock
11097 #: ../fish/guestfish-actions.pod:1982 ../src/guestfs-actions.pod:3118
11098 msgid "Red Hat Enterprise Linux."
11099 msgstr "Red Hat Enterprise Linux."
11100
11101 #. type: =item
11102 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:3120
11103 msgid "\"scientificlinux\""
11104 msgstr "\"scientificlinux\""
11105
11106 #. type: textblock
11107 #: ../fish/guestfish-actions.pod:1986 ../src/guestfs-actions.pod:3122
11108 msgid "Scientific Linux."
11109 msgstr "Scientific Linux."
11110
11111 #. type: =item
11112 #: ../fish/guestfish-actions.pod:1988 ../src/guestfs-actions.pod:3124
11113 msgid "\"slackware\""
11114 msgstr "\"slackware\""
11115
11116 #. type: textblock
11117 #: ../fish/guestfish-actions.pod:1990 ../src/guestfs-actions.pod:3126
11118 msgid "Slackware."
11119 msgstr "Slackware."
11120
11121 #. type: =item
11122 #: ../fish/guestfish-actions.pod:1992 ../src/guestfs-actions.pod:3128
11123 msgid "\"ttylinux\""
11124 msgstr ""
11125
11126 #. type: textblock
11127 #: ../fish/guestfish-actions.pod:1994 ../src/guestfs-actions.pod:3130
11128 msgid "ttylinux."
11129 msgstr ""
11130
11131 #. type: =item
11132 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3132
11133 msgid "\"ubuntu\""
11134 msgstr "\"ubuntu\""
11135
11136 #. type: textblock
11137 #: ../fish/guestfish-actions.pod:1998 ../src/guestfs-actions.pod:3134
11138 msgid "Ubuntu."
11139 msgstr "Ubuntu."
11140
11141 #. type: =item
11142 #: ../fish/guestfish-actions.pod:2000 ../fish/guestfish-actions.pod:2084
11143 #: ../fish/guestfish-actions.pod:2357 ../src/guestfs-actions.pod:3136
11144 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3629
11145 msgid "\"unknown\""
11146 msgstr "\"unknown\""
11147
11148 #. type: textblock
11149 #: ../fish/guestfish-actions.pod:2002 ../src/guestfs-actions.pod:3138
11150 msgid "The distro could not be determined."
11151 msgstr "Дистрибутив, тип якого не вдалося визначити."
11152
11153 #. type: =item
11154 #: ../fish/guestfish-actions.pod:2004 ../fish/guestfish-actions.pod:2341
11155 #: ../src/guestfs-actions.pod:3140 ../src/guestfs-actions.pod:3613
11156 msgid "\"windows\""
11157 msgstr "\"windows\""
11158
11159 #. type: textblock
11160 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3142
11161 msgid ""
11162 "Windows does not have distributions.  This string is returned if the OS type "
11163 "is Windows."
11164 msgstr ""
11165
11166 #. type: textblock
11167 #: ../fish/guestfish-actions.pod:2011 ../fish/guestfish-actions.pod:2090
11168 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3147
11169 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3635
11170 msgid ""
11171 "Future versions of libguestfs may return other strings here.  The caller "
11172 "should be prepared to handle any string."
11173 msgstr ""
11174
11175 #. type: =head2
11176 #: ../fish/guestfish-actions.pod:2016
11177 msgid "inspect-get-drive-mappings"
11178 msgstr ""
11179
11180 #. type: verbatim
11181 #: ../fish/guestfish-actions.pod:2018
11182 #, no-wrap
11183 msgid ""
11184 " inspect-get-drive-mappings root\n"
11185 "\n"
11186 msgstr ""
11187
11188 #. type: textblock
11189 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3163
11190 msgid ""
11191 "This call is useful for Windows which uses a primitive system of assigning "
11192 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
11193 "Windows Registry to find out how disks/partitions are mapped to drive "
11194 "letters, and returns a hash table as in the example below:"
11195 msgstr ""
11196
11197 #. type: verbatim
11198 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3169
11199 #, no-wrap
11200 msgid ""
11201 " C      =>     /dev/vda2\n"
11202 " E      =>     /dev/vdb1\n"
11203 " F      =>     /dev/vdc1\n"
11204 "\n"
11205 msgstr ""
11206
11207 #. type: textblock
11208 #: ../fish/guestfish-actions.pod:2030 ../src/guestfs-actions.pod:3173
11209 msgid ""
11210 "Note that keys are drive letters.  For Windows, the key is case insensitive "
11211 "and just contains the drive letter, without the customary colon separator "
11212 "character."
11213 msgstr ""
11214
11215 #. type: textblock
11216 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3177
11217 msgid ""
11218 "In future we may support other operating systems that also used drive "
11219 "letters, but the keys for those might not be case insensitive and might be "
11220 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
11221 "C<h1> etc."
11222 msgstr ""
11223
11224 #. type: textblock
11225 #: ../fish/guestfish-actions.pod:2039 ../src/guestfs-actions.pod:3182
11226 msgid ""
11227 "For Windows guests, currently only hard drive mappings are returned.  "
11228 "Removable disks (eg. DVD-ROMs) are ignored."
11229 msgstr ""
11230
11231 #. type: textblock
11232 #: ../fish/guestfish-actions.pod:2042 ../src/guestfs-actions.pod:3185
11233 msgid ""
11234 "For guests that do not use drive mappings, or if the drive mappings could "
11235 "not be determined, this returns an empty hash table."
11236 msgstr ""
11237
11238 #. type: textblock
11239 #: ../fish/guestfish-actions.pod:2045
11240 msgid ""
11241 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11242 "get-mountpoints>, L</inspect-get-filesystems>."
11243 msgstr ""
11244
11245 #. type: =head2
11246 #: ../fish/guestfish-actions.pod:2049
11247 msgid "inspect-get-filesystems"
11248 msgstr "inspect-get-filesystems"
11249
11250 #. type: verbatim
11251 #: ../fish/guestfish-actions.pod:2051
11252 #, no-wrap
11253 msgid ""
11254 " inspect-get-filesystems root\n"
11255 "\n"
11256 msgstr ""
11257 " inspect-get-filesystems корінь\n"
11258 "\n"
11259
11260 #. type: textblock
11261 #: ../fish/guestfish-actions.pod:2053 ../src/guestfs-actions.pod:3206
11262 msgid ""
11263 "This returns a list of all the filesystems that we think are associated with "
11264 "this operating system.  This includes the root filesystem, other ordinary "
11265 "filesystems, and non-mounted devices like swap partitions."
11266 msgstr ""
11267
11268 #. type: textblock
11269 #: ../fish/guestfish-actions.pod:2058 ../src/guestfs-actions.pod:3211
11270 msgid ""
11271 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
11272 "to be shared between operating systems."
11273 msgstr ""
11274
11275 #. type: textblock
11276 #: ../fish/guestfish-actions.pod:2061
11277 msgid ""
11278 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11279 "get-mountpoints>."
11280 msgstr ""
11281
11282 #. type: =head2
11283 #: ../fish/guestfish-actions.pod:2064
11284 msgid "inspect-get-format"
11285 msgstr "inspect-get-format"
11286
11287 #. type: verbatim
11288 #: ../fish/guestfish-actions.pod:2066
11289 #, no-wrap
11290 msgid ""
11291 " inspect-get-format root\n"
11292 "\n"
11293 msgstr ""
11294 " inspect-get-format корінь\n"
11295 "\n"
11296
11297 #. type: textblock
11298 #: ../fish/guestfish-actions.pod:2068 ../src/guestfs-actions.pod:3229
11299 msgid ""
11300 "This returns the format of the inspected operating system.  You can use it "
11301 "to detect install images, live CDs and similar."
11302 msgstr ""
11303
11304 #. type: textblock
11305 #: ../fish/guestfish-actions.pod:2071 ../src/guestfs-actions.pod:3232
11306 msgid "Currently defined formats are:"
11307 msgstr ""
11308
11309 #. type: =item
11310 #: ../fish/guestfish-actions.pod:2075 ../src/guestfs-actions.pod:3236
11311 msgid "\"installed\""
11312 msgstr "\"installed\""
11313
11314 #. type: textblock
11315 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3238
11316 msgid "This is an installed operating system."
11317 msgstr "Це встановлена операційна система."
11318
11319 #. type: =item
11320 #: ../fish/guestfish-actions.pod:2079 ../src/guestfs-actions.pod:3240
11321 msgid "\"installer\""
11322 msgstr ""
11323
11324 #. type: textblock
11325 #: ../fish/guestfish-actions.pod:2081 ../src/guestfs-actions.pod:3242
11326 msgid ""
11327 "The disk image being inspected is not an installed operating system, but a "
11328 "I<bootable> install disk, live CD, or similar."
11329 msgstr ""
11330
11331 #. type: textblock
11332 #: ../fish/guestfish-actions.pod:2086 ../src/guestfs-actions.pod:3247
11333 msgid "The format of this disk image is not known."
11334 msgstr ""
11335
11336 #. type: =head2
11337 #: ../fish/guestfish-actions.pod:2095
11338 msgid "inspect-get-hostname"
11339 msgstr "inspect-get-hostname"
11340
11341 #. type: verbatim
11342 #: ../fish/guestfish-actions.pod:2097
11343 #, no-wrap
11344 msgid ""
11345 " inspect-get-hostname root\n"
11346 "\n"
11347 msgstr ""
11348 " inspect-get-hostname корінь\n"
11349 "\n"
11350
11351 #. type: textblock
11352 #: ../fish/guestfish-actions.pod:2099 ../src/guestfs-actions.pod:3267
11353 msgid ""
11354 "This function returns the hostname of the operating system as found by "
11355 "inspection of the guest's configuration files."
11356 msgstr ""
11357
11358 #. type: textblock
11359 #: ../fish/guestfish-actions.pod:2102 ../src/guestfs-actions.pod:3270
11360 msgid ""
11361 "If the hostname could not be determined, then the string C<unknown> is "
11362 "returned."
11363 msgstr ""
11364
11365 #. type: =head2
11366 #: ../fish/guestfish-actions.pod:2107
11367 msgid "inspect-get-icon"
11368 msgstr ""
11369
11370 #. type: verbatim
11371 #: ../fish/guestfish-actions.pod:2109
11372 #, no-wrap
11373 msgid ""
11374 " inspect-get-icon root [favicon:true|false] [highquality:true|false]\n"
11375 "\n"
11376 msgstr ""
11377
11378 #. type: textblock
11379 #: ../fish/guestfish-actions.pod:2111 ../src/guestfs-actions.pod:3296
11380 msgid ""
11381 "This function returns an icon corresponding to the inspected operating "
11382 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
11383 "to PNG if necessary)."
11384 msgstr ""
11385
11386 #. type: textblock
11387 #: ../fish/guestfish-actions.pod:2115 ../src/guestfs-actions.pod:3300
11388 msgid ""
11389 "If it was not possible to get an icon this function returns a zero-length "
11390 "(non-NULL) buffer.  I<Callers must check for this case>."
11391 msgstr ""
11392
11393 #. type: textblock
11394 #: ../fish/guestfish-actions.pod:2118 ../src/guestfs-actions.pod:3303
11395 msgid ""
11396 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
11397 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
11398 "this file will be returned.  You can disable favicons by passing the "
11399 "optional C<favicon> boolean as false (default is true)."
11400 msgstr ""
11401
11402 #. type: textblock
11403 #: ../fish/guestfish-actions.pod:2124 ../src/guestfs-actions.pod:3309
11404 msgid ""
11405 "If finding the favicon fails, then we look in other places in the guest for "
11406 "a suitable icon."
11407 msgstr ""
11408
11409 #. type: textblock
11410 #: ../fish/guestfish-actions.pod:2127 ../src/guestfs-actions.pod:3312
11411 msgid ""
11412 "If the optional C<highquality> boolean is true then only high quality icons "
11413 "are returned, which means only icons of high resolution with an alpha "
11414 "channel.  The default (false) is to return any icon we can, even if it is of "
11415 "substandard quality."
11416 msgstr ""
11417
11418 #. type: textblock
11419 #: ../fish/guestfish-actions.pod:2138 ../src/guestfs-actions.pod:3323
11420 msgid ""
11421 "Unlike most other inspection API calls, the guest's disks must be mounted up "
11422 "before you call this, since it needs to read information from the guest "
11423 "filesystem during the call."
11424 msgstr ""
11425
11426 #. type: textblock
11427 #: ../fish/guestfish-actions.pod:2144 ../src/guestfs-actions.pod:3329
11428 msgid ""
11429 "B<Security:> The icon data comes from the untrusted guest, and should be "
11430 "treated with caution.  PNG files have been known to contain exploits.  "
11431 "Ensure that libpng (or other relevant libraries) are fully up to date before "
11432 "trying to process or display the icon."
11433 msgstr ""
11434
11435 #. type: textblock
11436 #: ../fish/guestfish-actions.pod:2152 ../src/guestfs-actions.pod:3337
11437 msgid ""
11438 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
11439 "tries to return the largest, highest quality icon available.  The "
11440 "application must scale the icon to the required size."
11441 msgstr ""
11442
11443 #. type: textblock
11444 #: ../fish/guestfish-actions.pod:2159 ../src/guestfs-actions.pod:3344
11445 msgid ""
11446 "Extracting icons from Windows guests requires the external C<wrestool> "
11447 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
11448 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
11449 "installed separately."
11450 msgstr ""
11451
11452 #. type: textblock
11453 #: ../fish/guestfish-actions.pod:2166 ../src/guestfs-actions.pod:3351
11454 msgid ""
11455 "Operating system icons are usually trademarks.  Seek legal advice before "
11456 "using trademarks in applications."
11457 msgstr ""
11458
11459 #. type: =head2
11460 #: ../fish/guestfish-actions.pod:2173
11461 msgid "inspect-get-major-version"
11462 msgstr "inspect-get-major-version"
11463
11464 #. type: verbatim
11465 #: ../fish/guestfish-actions.pod:2175
11466 #, no-wrap
11467 msgid ""
11468 " inspect-get-major-version root\n"
11469 "\n"
11470 msgstr ""
11471 " inspect-get-major-version корінь\n"
11472 "\n"
11473
11474 #. type: textblock
11475 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3392
11476 msgid ""
11477 "This returns the major version number of the inspected operating system."
11478 msgstr ""
11479
11480 #. type: textblock
11481 #: ../fish/guestfish-actions.pod:2180 ../src/guestfs-actions.pod:3395
11482 msgid ""
11483 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
11484 "popular public names used by the operating system.  Notably the operating "
11485 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
11486 "1).  You can find out the real versions corresponding to releases of Windows "
11487 "by consulting Wikipedia or MSDN."
11488 msgstr ""
11489
11490 #. type: textblock
11491 #: ../fish/guestfish-actions.pod:2187 ../fish/guestfish-actions.pod:2198
11492 #: ../src/guestfs-actions.pod:3402 ../src/guestfs-actions.pod:3419
11493 msgid "If the version could not be determined, then C<0> is returned."
11494 msgstr ""
11495
11496 #. type: =head2
11497 #: ../fish/guestfish-actions.pod:2191
11498 msgid "inspect-get-minor-version"
11499 msgstr "inspect-get-minor-version"
11500
11501 #. type: verbatim
11502 #: ../fish/guestfish-actions.pod:2193
11503 #, no-wrap
11504 msgid ""
11505 " inspect-get-minor-version root\n"
11506 "\n"
11507 msgstr ""
11508 " inspect-get-minor-version корінь\n"
11509 "\n"
11510
11511 #. type: textblock
11512 #: ../fish/guestfish-actions.pod:2195 ../src/guestfs-actions.pod:3416
11513 msgid ""
11514 "This returns the minor version number of the inspected operating system."
11515 msgstr ""
11516
11517 #. type: textblock
11518 #: ../fish/guestfish-actions.pod:2200
11519 msgid ""
11520 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11521 "get-major-version>."
11522 msgstr ""
11523
11524 #. type: =head2
11525 #: ../fish/guestfish-actions.pod:2203
11526 msgid "inspect-get-mountpoints"
11527 msgstr "inspect-get-mountpoints"
11528
11529 #. type: verbatim
11530 #: ../fish/guestfish-actions.pod:2205
11531 #, no-wrap
11532 msgid ""
11533 " inspect-get-mountpoints root\n"
11534 "\n"
11535 msgstr ""
11536 " inspect-get-mountpoints корінь\n"
11537 "\n"
11538
11539 #. type: textblock
11540 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3434
11541 msgid ""
11542 "This returns a hash of where we think the filesystems associated with this "
11543 "operating system should be mounted.  Callers should note that this is at "
11544 "best an educated guess made by reading configuration files such as C</etc/"
11545 "fstab>.  I<In particular note> that this may return filesystems which are "
11546 "non-existent or not mountable and callers should be prepared to handle or "
11547 "ignore failures if they try to mount them."
11548 msgstr ""
11549
11550 #. type: textblock
11551 #: ../fish/guestfish-actions.pod:2216 ../src/guestfs-actions.pod:3443
11552 msgid ""
11553 "Each element in the returned hashtable has a key which is the path of the "
11554 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
11555 "mounted there (eg. C</dev/sda1>)."
11556 msgstr ""
11557
11558 #. type: textblock
11559 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3448
11560 msgid ""
11561 "Non-mounted devices such as swap devices are I<not> returned in this list."
11562 msgstr ""
11563
11564 #. type: textblock
11565 #: ../fish/guestfish-actions.pod:2224
11566 msgid ""
11567 "For operating systems like Windows which still use drive letters, this call "
11568 "will only return an entry for the first drive \"mounted on\" C</>.  For "
11569 "information about the mapping of drive letters to partitions, see L</inspect-"
11570 "get-drive-mappings>."
11571 msgstr ""
11572
11573 #. type: textblock
11574 #: ../fish/guestfish-actions.pod:2230
11575 msgid ""
11576 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11577 "get-filesystems>."
11578 msgstr ""
11579
11580 #. type: =head2
11581 #: ../fish/guestfish-actions.pod:2233
11582 msgid "inspect-get-package-format"
11583 msgstr "inspect-get-package-format"
11584
11585 #. type: verbatim
11586 #: ../fish/guestfish-actions.pod:2235
11587 #, no-wrap
11588 msgid ""
11589 " inspect-get-package-format root\n"
11590 "\n"
11591 msgstr ""
11592 " inspect-get-package-format корінь\n"
11593 "\n"
11594
11595 #. type: textblock
11596 #: ../fish/guestfish-actions.pod:2237
11597 msgid ""
11598 "This function and L</inspect-get-package-management> return the package "
11599 "format and package management tool used by the inspected operating system.  "
11600 "For example for Fedora these functions would return C<rpm> (package format) "
11601 "and C<yum> (package management)."
11602 msgstr ""
11603
11604 #. type: textblock
11605 #: ../fish/guestfish-actions.pod:2243 ../src/guestfs-actions.pod:3480
11606 msgid ""
11607 "This returns the string C<unknown> if we could not determine the package "
11608 "format I<or> if the operating system does not have a real packaging system "
11609 "(eg. Windows)."
11610 msgstr ""
11611
11612 #. type: textblock
11613 #: ../fish/guestfish-actions.pod:2247 ../src/guestfs-actions.pod:3484
11614 msgid ""
11615 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
11616 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
11617 msgstr ""
11618
11619 #. type: =head2
11620 #: ../fish/guestfish-actions.pod:2253
11621 msgid "inspect-get-package-management"
11622 msgstr "inspect-get-package-management"
11623
11624 #. type: verbatim
11625 #: ../fish/guestfish-actions.pod:2255
11626 #, no-wrap
11627 msgid ""
11628 " inspect-get-package-management root\n"
11629 "\n"
11630 msgstr ""
11631 " inspect-get-package-management корінь\n"
11632 "\n"
11633
11634 #. type: textblock
11635 #: ../fish/guestfish-actions.pod:2257
11636 msgid ""
11637 "L</inspect-get-package-format> and this function return the package format "
11638 "and package management tool used by the inspected operating system.  For "
11639 "example for Fedora these functions would return C<rpm> (package format) and "
11640 "C<yum> (package management)."
11641 msgstr ""
11642
11643 #. type: textblock
11644 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3507
11645 msgid ""
11646 "This returns the string C<unknown> if we could not determine the package "
11647 "management tool I<or> if the operating system does not have a real packaging "
11648 "system (eg. Windows)."
11649 msgstr ""
11650
11651 #. type: textblock
11652 #: ../fish/guestfish-actions.pod:2267 ../src/guestfs-actions.pod:3511
11653 msgid ""
11654 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
11655 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
11656 "versions of libguestfs may return other strings."
11657 msgstr ""
11658
11659 #. type: =head2
11660 #: ../fish/guestfish-actions.pod:2274
11661 msgid "inspect-get-product-name"
11662 msgstr "inspect-get-product-name"
11663
11664 #. type: verbatim
11665 #: ../fish/guestfish-actions.pod:2276
11666 #, no-wrap
11667 msgid ""
11668 " inspect-get-product-name root\n"
11669 "\n"
11670 msgstr ""
11671 " inspect-get-product-name корінь\n"
11672 "\n"
11673
11674 #. type: textblock
11675 #: ../fish/guestfish-actions.pod:2278 ../src/guestfs-actions.pod:3529
11676 msgid ""
11677 "This returns the product name of the inspected operating system.  The "
11678 "product name is generally some freeform string which can be displayed to the "
11679 "user, but should not be parsed by programs."
11680 msgstr ""
11681
11682 #. type: textblock
11683 #: ../fish/guestfish-actions.pod:2283 ../src/guestfs-actions.pod:3534
11684 msgid ""
11685 "If the product name could not be determined, then the string C<unknown> is "
11686 "returned."
11687 msgstr ""
11688
11689 #. type: =head2
11690 #: ../fish/guestfish-actions.pod:2288
11691 msgid "inspect-get-product-variant"
11692 msgstr ""
11693
11694 #. type: verbatim
11695 #: ../fish/guestfish-actions.pod:2290
11696 #, no-wrap
11697 msgid ""
11698 " inspect-get-product-variant root\n"
11699 "\n"
11700 msgstr ""
11701
11702 #. type: textblock
11703 #: ../fish/guestfish-actions.pod:2292 ../src/guestfs-actions.pod:3550
11704 msgid "This returns the product variant of the inspected operating system."
11705 msgstr ""
11706
11707 #. type: textblock
11708 #: ../fish/guestfish-actions.pod:2295 ../src/guestfs-actions.pod:3553
11709 msgid ""
11710 "For Windows guests, this returns the contents of the Registry key C<HKLM"
11711 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
11712 "is usually a string such as C<Client> or C<Server> (other values are "
11713 "possible).  This can be used to distinguish consumer and enterprise versions "
11714 "of Windows that have the same version number (for example, Windows 7 and "
11715 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
11716 "the latter is C<Server>)."
11717 msgstr ""
11718
11719 #. type: textblock
11720 #: ../fish/guestfish-actions.pod:2304 ../src/guestfs-actions.pod:3562
11721 msgid ""
11722 "For enterprise Linux guests, in future we intend this to return the product "
11723 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
11724 "implemented at present."
11725 msgstr ""
11726
11727 #. type: textblock
11728 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3566
11729 msgid ""
11730 "If the product variant could not be determined, then the string C<unknown> "
11731 "is returned."
11732 msgstr ""
11733
11734 #. type: textblock
11735 #: ../fish/guestfish-actions.pod:2311
11736 msgid ""
11737 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
11738 "get-product-name>, L</inspect-get-major-version>."
11739 msgstr ""
11740
11741 #. type: =head2
11742 #: ../fish/guestfish-actions.pod:2315
11743 msgid "inspect-get-roots"
11744 msgstr "inspect-get-roots"
11745
11746 #. type: verbatim
11747 #: ../fish/guestfish-actions.pod:2317
11748 #, no-wrap
11749 msgid ""
11750 " inspect-get-roots\n"
11751 "\n"
11752 msgstr ""
11753 " inspect-get-roots\n"
11754 "\n"
11755
11756 #. type: textblock
11757 #: ../fish/guestfish-actions.pod:2319
11758 msgid ""
11759 "This function is a convenient way to get the list of root devices, as "
11760 "returned from a previous call to L</inspect-os>, but without redoing the "
11761 "whole inspection process."
11762 msgstr ""
11763
11764 #. type: textblock
11765 #: ../fish/guestfish-actions.pod:2323
11766 msgid ""
11767 "This returns an empty list if either no root devices were found or the "
11768 "caller has not called L</inspect-os>."
11769 msgstr ""
11770
11771 #. type: =head2
11772 #: ../fish/guestfish-actions.pod:2328
11773 msgid "inspect-get-type"
11774 msgstr "inspect-get-type"
11775
11776 #. type: verbatim
11777 #: ../fish/guestfish-actions.pod:2330
11778 #, no-wrap
11779 msgid ""
11780 " inspect-get-type root\n"
11781 "\n"
11782 msgstr ""
11783 " inspect-get-type корінь\n"
11784 "\n"
11785
11786 #. type: textblock
11787 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3604
11788 msgid ""
11789 "This returns the type of the inspected operating system.  Currently defined "
11790 "types are:"
11791 msgstr ""
11792
11793 #. type: =item
11794 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3609
11795 msgid "\"linux\""
11796 msgstr "\"linux\""
11797
11798 #. type: textblock
11799 #: ../fish/guestfish-actions.pod:2339 ../src/guestfs-actions.pod:3611
11800 msgid "Any Linux-based operating system."
11801 msgstr ""
11802
11803 #. type: textblock
11804 #: ../fish/guestfish-actions.pod:2343 ../src/guestfs-actions.pod:3615
11805 msgid "Any Microsoft Windows operating system."
11806 msgstr ""
11807
11808 #. type: =item
11809 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3617
11810 msgid "\"freebsd\""
11811 msgstr "\"freebsd\""
11812
11813 #. type: textblock
11814 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3619
11815 msgid "FreeBSD."
11816 msgstr "FreeBSD."
11817
11818 #. type: =item
11819 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3621
11820 msgid "\"netbsd\""
11821 msgstr ""
11822
11823 #. type: textblock
11824 #: ../fish/guestfish-actions.pod:2351 ../src/guestfs-actions.pod:3623
11825 msgid "NetBSD."
11826 msgstr ""
11827
11828 #. type: =item
11829 #: ../fish/guestfish-actions.pod:2353 ../src/guestfs-actions.pod:3625
11830 msgid "\"hurd\""
11831 msgstr ""
11832
11833 #. type: textblock
11834 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
11835 msgid "GNU/Hurd."
11836 msgstr ""
11837
11838 #. type: textblock
11839 #: ../fish/guestfish-actions.pod:2359 ../src/guestfs-actions.pod:3631
11840 msgid "The operating system type could not be determined."
11841 msgstr ""
11842
11843 #. type: =head2
11844 #: ../fish/guestfish-actions.pod:2368
11845 msgid "inspect-get-windows-current-control-set"
11846 msgstr ""
11847
11848 #. type: verbatim
11849 #: ../fish/guestfish-actions.pod:2370
11850 #, no-wrap
11851 msgid ""
11852 " inspect-get-windows-current-control-set root\n"
11853 "\n"
11854 msgstr ""
11855
11856 #. type: textblock
11857 #: ../fish/guestfish-actions.pod:2372 ../src/guestfs-actions.pod:3651
11858 msgid ""
11859 "This returns the Windows CurrentControlSet of the inspected guest.  The "
11860 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11861 msgstr ""
11862
11863 #. type: textblock
11864 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3654
11865 msgid ""
11866 "This call assumes that the guest is Windows and that the Registry could be "
11867 "examined by inspection.  If this is not the case then an error is returned."
11868 msgstr ""
11869
11870 #. type: =head2
11871 #: ../fish/guestfish-actions.pod:2381
11872 msgid "inspect-get-windows-systemroot"
11873 msgstr "inspect-get-windows-systemroot"
11874
11875 #. type: verbatim
11876 #: ../fish/guestfish-actions.pod:2383
11877 #, no-wrap
11878 msgid ""
11879 " inspect-get-windows-systemroot root\n"
11880 "\n"
11881 msgstr ""
11882 " inspect-get-windows-systemroot корінь\n"
11883 "\n"
11884
11885 #. type: textblock
11886 #: ../fish/guestfish-actions.pod:2385 ../src/guestfs-actions.pod:3671
11887 msgid ""
11888 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11889 "is a directory path such as C</WINDOWS>."
11890 msgstr ""
11891
11892 #. type: textblock
11893 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3674
11894 msgid ""
11895 "This call assumes that the guest is Windows and that the systemroot could be "
11896 "determined by inspection.  If this is not the case then an error is returned."
11897 msgstr ""
11898
11899 #. type: =head2
11900 #: ../fish/guestfish-actions.pod:2394
11901 msgid "inspect-is-live"
11902 msgstr "inspect-is-live"
11903
11904 #. type: verbatim
11905 #: ../fish/guestfish-actions.pod:2396
11906 #, no-wrap
11907 msgid ""
11908 " inspect-is-live root\n"
11909 "\n"
11910 msgstr ""
11911 " inspect-is-live корінь\n"
11912 "\n"
11913
11914 #. type: textblock
11915 #: ../fish/guestfish-actions.pod:2398
11916 msgid ""
11917 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11918 "then this returns true if a live image was detected on the disk."
11919 msgstr ""
11920
11921 #. type: =head2
11922 #: ../fish/guestfish-actions.pod:2404
11923 msgid "inspect-is-multipart"
11924 msgstr "inspect-is-multipart"
11925
11926 #. type: verbatim
11927 #: ../fish/guestfish-actions.pod:2406
11928 #, no-wrap
11929 msgid ""
11930 " inspect-is-multipart root\n"
11931 "\n"
11932 msgstr ""
11933 " inspect-is-multipart корінь\n"
11934 "\n"
11935
11936 #. type: textblock
11937 #: ../fish/guestfish-actions.pod:2408
11938 msgid ""
11939 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11940 "then this returns true if the disk is part of a set."
11941 msgstr ""
11942
11943 #. type: =head2
11944 #: ../fish/guestfish-actions.pod:2414
11945 msgid "inspect-is-netinst"
11946 msgstr "inspect-is-netinst"
11947
11948 #. type: verbatim
11949 #: ../fish/guestfish-actions.pod:2416
11950 #, no-wrap
11951 msgid ""
11952 " inspect-is-netinst root\n"
11953 "\n"
11954 msgstr ""
11955 " inspect-is-netinst корінь\n"
11956 "\n"
11957
11958 #. type: textblock
11959 #: ../fish/guestfish-actions.pod:2418
11960 msgid ""
11961 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11962 "then this returns true if the disk is a network installer, ie. not a self-"
11963 "contained install CD but one which is likely to require network access to "
11964 "complete the install."
11965 msgstr ""
11966
11967 #. type: =head2
11968 #: ../fish/guestfish-actions.pod:2426
11969 msgid "inspect-list-applications"
11970 msgstr "inspect-list-applications"
11971
11972 #. type: verbatim
11973 #: ../fish/guestfish-actions.pod:2428
11974 #, no-wrap
11975 msgid ""
11976 " inspect-list-applications root\n"
11977 "\n"
11978 msgstr ""
11979 " inspect-list-applications кореневий_каталог\n"
11980 "\n"
11981
11982 #. type: textblock
11983 #: ../fish/guestfish-actions.pod:2430 ../src/guestfs-actions.pod:3741
11984 msgid "Return the list of applications installed in the operating system."
11985 msgstr ""
11986
11987 #. type: textblock
11988 #: ../fish/guestfish-actions.pod:2432
11989 msgid ""
11990 "I<Note:> This call works differently from other parts of the inspection "
11991 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11992 "then mount up the disks, before calling this.  Listing applications is a "
11993 "significantly more difficult operation which requires access to the full "
11994 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
11995 "are just returning data cached in the libguestfs handle, this call actually "
11996 "reads parts of the mounted filesystems during the call."
11997 msgstr ""
11998
11999 #. type: textblock
12000 #: ../fish/guestfish-actions.pod:2442 ../src/guestfs-actions.pod:3753
12001 msgid ""
12002 "This returns an empty list if the inspection code was not able to determine "
12003 "the list of applications."
12004 msgstr ""
12005
12006 #. type: textblock
12007 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
12008 msgid "The application structure contains the following fields:"
12009 msgstr ""
12010
12011 #. type: =item
12012 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3760
12013 msgid "C<app_name>"
12014 msgstr "C<app_name>"
12015
12016 #. type: textblock
12017 #: ../fish/guestfish-actions.pod:2451 ../src/guestfs-actions.pod:3762
12018 msgid ""
12019 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
12020 "guests, this is the package name."
12021 msgstr ""
12022
12023 #. type: =item
12024 #: ../fish/guestfish-actions.pod:2454 ../src/guestfs-actions.pod:3765
12025 msgid "C<app_display_name>"
12026 msgstr "C<app_display_name>"
12027
12028 #. type: textblock
12029 #: ../fish/guestfish-actions.pod:2456 ../src/guestfs-actions.pod:3767
12030 msgid ""
12031 "The display name of the application, sometimes localized to the install "
12032 "language of the guest operating system."
12033 msgstr ""
12034
12035 #. type: textblock
12036 #: ../fish/guestfish-actions.pod:2459 ../src/guestfs-actions.pod:3770
12037 msgid ""
12038 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
12039 "to display something can use C<app_name> instead."
12040 msgstr ""
12041
12042 #. type: =item
12043 #: ../fish/guestfish-actions.pod:2462 ../src/guestfs-actions.pod:3773
12044 msgid "C<app_epoch>"
12045 msgstr "C<app_epoch>"
12046
12047 #. type: textblock
12048 #: ../fish/guestfish-actions.pod:2464 ../src/guestfs-actions.pod:3775
12049 msgid ""
12050 "For package managers which use epochs, this contains the epoch of the "
12051 "package (an integer).  If unavailable, this is returned as C<0>."
12052 msgstr ""
12053
12054 #. type: =item
12055 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3778
12056 msgid "C<app_version>"
12057 msgstr "C<app_version>"
12058
12059 #. type: textblock
12060 #: ../fish/guestfish-actions.pod:2469 ../src/guestfs-actions.pod:3780
12061 msgid ""
12062 "The version string of the application or package.  If unavailable this is "
12063 "returned as an empty string C<\"\">."
12064 msgstr ""
12065
12066 #. type: =item
12067 #: ../fish/guestfish-actions.pod:2472 ../src/guestfs-actions.pod:3783
12068 msgid "C<app_release>"
12069 msgstr "C<app_release>"
12070
12071 #. type: textblock
12072 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
12073 msgid ""
12074 "The release string of the application or package, for package managers that "
12075 "use this.  If unavailable this is returned as an empty string C<\"\">."
12076 msgstr ""
12077
12078 #. type: =item
12079 #: ../fish/guestfish-actions.pod:2478 ../src/guestfs-actions.pod:3789
12080 msgid "C<app_install_path>"
12081 msgstr "C<app_install_path>"
12082
12083 #. type: textblock
12084 #: ../fish/guestfish-actions.pod:2480 ../src/guestfs-actions.pod:3791
12085 msgid ""
12086 "The installation path of the application (on operating systems such as "
12087 "Windows which use installation paths).  This path is in the format used by "
12088 "the guest operating system, it is not a libguestfs path."
12089 msgstr ""
12090
12091 #. type: textblock
12092 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
12093 msgid "If unavailable this is returned as an empty string C<\"\">."
12094 msgstr ""
12095
12096 #. type: =item
12097 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3798
12098 msgid "C<app_trans_path>"
12099 msgstr "C<app_trans_path>"
12100
12101 #. type: textblock
12102 #: ../fish/guestfish-actions.pod:2489 ../src/guestfs-actions.pod:3800
12103 msgid ""
12104 "The install path translated into a libguestfs path.  If unavailable this is "
12105 "returned as an empty string C<\"\">."
12106 msgstr ""
12107
12108 #. type: =item
12109 #: ../fish/guestfish-actions.pod:2492 ../src/guestfs-actions.pod:3803
12110 msgid "C<app_publisher>"
12111 msgstr "C<app_publisher>"
12112
12113 #. type: textblock
12114 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
12115 msgid ""
12116 "The name of the publisher of the application, for package managers that use "
12117 "this.  If unavailable this is returned as an empty string C<\"\">."
12118 msgstr ""
12119
12120 #. type: =item
12121 #: ../fish/guestfish-actions.pod:2498 ../src/guestfs-actions.pod:3809
12122 msgid "C<app_url>"
12123 msgstr "C<app_url>"
12124
12125 #. type: textblock
12126 #: ../fish/guestfish-actions.pod:2500 ../src/guestfs-actions.pod:3811
12127 msgid ""
12128 "The URL (eg. upstream URL) of the application.  If unavailable this is "
12129 "returned as an empty string C<\"\">."
12130 msgstr ""
12131
12132 #. type: =item
12133 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3814
12134 msgid "C<app_source_package>"
12135 msgstr "C<app_source_package>"
12136
12137 #. type: textblock
12138 #: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3816
12139 msgid ""
12140 "For packaging systems which support this, the name of the source package.  "
12141 "If unavailable this is returned as an empty string C<\"\">."
12142 msgstr ""
12143
12144 #. type: =item
12145 #: ../fish/guestfish-actions.pod:2508 ../src/guestfs-actions.pod:3819
12146 msgid "C<app_summary>"
12147 msgstr "C<app_summary>"
12148
12149 #. type: textblock
12150 #: ../fish/guestfish-actions.pod:2510 ../src/guestfs-actions.pod:3821
12151 msgid ""
12152 "A short (usually one line) description of the application or package.  If "
12153 "unavailable this is returned as an empty string C<\"\">."
12154 msgstr ""
12155
12156 #. type: =item
12157 #: ../fish/guestfish-actions.pod:2513 ../src/guestfs-actions.pod:3824
12158 msgid "C<app_description>"
12159 msgstr "C<app_description>"
12160
12161 #. type: textblock
12162 #: ../fish/guestfish-actions.pod:2515 ../src/guestfs-actions.pod:3826
12163 msgid ""
12164 "A longer description of the application or package.  If unavailable this is "
12165 "returned as an empty string C<\"\">."
12166 msgstr ""
12167
12168 #. type: =head2
12169 #: ../fish/guestfish-actions.pod:2522
12170 msgid "inspect-os"
12171 msgstr "inspect-os"
12172
12173 #. type: verbatim
12174 #: ../fish/guestfish-actions.pod:2524
12175 #, no-wrap
12176 msgid ""
12177 " inspect-os\n"
12178 "\n"
12179 msgstr ""
12180 " inspect-os\n"
12181 "\n"
12182
12183 #. type: textblock
12184 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
12185 msgid ""
12186 "This function uses other libguestfs functions and certain heuristics to "
12187 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
12188 "for operating systems."
12189 msgstr ""
12190
12191 #. type: textblock
12192 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3848
12193 msgid "The list returned is empty if no operating systems were found."
12194 msgstr ""
12195
12196 #. type: textblock
12197 #: ../fish/guestfish-actions.pod:2532 ../src/guestfs-actions.pod:3850
12198 msgid ""
12199 "If one operating system was found, then this returns a list with a single "
12200 "element, which is the name of the root filesystem of this operating system.  "
12201 "It is also possible for this function to return a list containing more than "
12202 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
12203 "element being the root filesystem of one of the operating systems."
12204 msgstr ""
12205
12206 #. type: textblock
12207 #: ../fish/guestfish-actions.pod:2539
12208 msgid ""
12209 "You can pass the root string(s) returned to other L</inspect-get-*> "
12210 "functions in order to query further information about each operating system, "
12211 "such as the name and version."
12212 msgstr ""
12213
12214 #. type: textblock
12215 #: ../fish/guestfish-actions.pod:2544
12216 msgid ""
12217 "This function uses other libguestfs features such as L</mount-ro> and L</"
12218 "umount-all> in order to mount and unmount filesystems and look at the "
12219 "contents.  This should be called with no disks currently mounted.  The "
12220 "function may also use Augeas, so any existing Augeas handle will be closed."
12221 msgstr ""
12222
12223 #. type: textblock
12224 #: ../fish/guestfish-actions.pod:2550 ../src/guestfs-actions.pod:3868
12225 msgid ""
12226 "This function cannot decrypt encrypted disks.  The caller must do that first "
12227 "(supplying the necessary keys) if the disk is encrypted."
12228 msgstr ""
12229
12230 #. type: textblock
12231 #: ../fish/guestfish-actions.pod:2556 ../fish/guestfish-actions.pod:2754
12232 #: ../fish/guestfish-actions.pod:2819
12233 msgid "See also L</list-filesystems>."
12234 msgstr "Див. також L</list-filesystems>."
12235
12236 #. type: =head2
12237 #: ../fish/guestfish-actions.pod:2558
12238 msgid "is-blockdev"
12239 msgstr "is-blockdev"
12240
12241 #. type: verbatim
12242 #: ../fish/guestfish-actions.pod:2560
12243 #, no-wrap
12244 msgid ""
12245 " is-blockdev path\n"
12246 "\n"
12247 msgstr ""
12248 " is-blockdev шлях\n"
12249 "\n"
12250
12251 #. type: textblock
12252 #: ../fish/guestfish-actions.pod:2562 ../src/guestfs-actions.pod:3888
12253 msgid ""
12254 "This returns C<true> if and only if there is a block device with the given "
12255 "C<path> name."
12256 msgstr ""
12257
12258 #. type: textblock
12259 #: ../fish/guestfish-actions.pod:2565 ../fish/guestfish-actions.pod:2583
12260 #: ../fish/guestfish-actions.pod:2602 ../fish/guestfish-actions.pod:2611
12261 #: ../fish/guestfish-actions.pod:2621 ../fish/guestfish-actions.pod:2655
12262 #: ../fish/guestfish-actions.pod:2664
12263 msgid "See also L</stat>."
12264 msgstr "Див. також L</stat>."
12265
12266 #. type: =head2
12267 #: ../fish/guestfish-actions.pod:2567
12268 msgid "is-busy"
12269 msgstr "is-busy"
12270
12271 #. type: verbatim
12272 #: ../fish/guestfish-actions.pod:2569
12273 #, no-wrap
12274 msgid ""
12275 " is-busy\n"
12276 "\n"
12277 msgstr ""
12278 " is-busy\n"
12279 "\n"
12280
12281 #. type: textblock
12282 #: ../fish/guestfish-actions.pod:2571 ../src/guestfs-actions.pod:3902
12283 msgid ""
12284 "This returns true iff this handle is busy processing a command (in the "
12285 "C<BUSY> state)."
12286 msgstr ""
12287
12288 #. type: =head2
12289 #: ../fish/guestfish-actions.pod:2576
12290 msgid "is-chardev"
12291 msgstr "is-chardev"
12292
12293 #. type: verbatim
12294 #: ../fish/guestfish-actions.pod:2578
12295 #, no-wrap
12296 msgid ""
12297 " is-chardev path\n"
12298 "\n"
12299 msgstr ""
12300 " is-chardev шлях\n"
12301 "\n"
12302
12303 #. type: textblock
12304 #: ../fish/guestfish-actions.pod:2580 ../src/guestfs-actions.pod:3917
12305 msgid ""
12306 "This returns C<true> if and only if there is a character device with the "
12307 "given C<path> name."
12308 msgstr ""
12309
12310 #. type: =head2
12311 #: ../fish/guestfish-actions.pod:2585
12312 msgid "is-config"
12313 msgstr "is-config"
12314
12315 #. type: verbatim
12316 #: ../fish/guestfish-actions.pod:2587
12317 #, no-wrap
12318 msgid ""
12319 " is-config\n"
12320 "\n"
12321 msgstr ""
12322 " is-config\n"
12323 "\n"
12324
12325 #. type: textblock
12326 #: ../fish/guestfish-actions.pod:2589 ../src/guestfs-actions.pod:3931
12327 msgid ""
12328 "This returns true iff this handle is being configured (in the C<CONFIG> "
12329 "state)."
12330 msgstr ""
12331
12332 #. type: =head2
12333 #: ../fish/guestfish-actions.pod:2594
12334 msgid "is-dir"
12335 msgstr "is-dir"
12336
12337 #. type: verbatim
12338 #: ../fish/guestfish-actions.pod:2596
12339 #, no-wrap
12340 msgid ""
12341 " is-dir path\n"
12342 "\n"
12343 msgstr ""
12344 " is-dir шлях\n"
12345 "\n"
12346
12347 #. type: textblock
12348 #: ../fish/guestfish-actions.pod:2598 ../src/guestfs-actions.pod:3946
12349 msgid ""
12350 "This returns C<true> if and only if there is a directory with the given "
12351 "C<path> name.  Note that it returns false for other objects like files."
12352 msgstr ""
12353
12354 #. type: =head2
12355 #: ../fish/guestfish-actions.pod:2604
12356 msgid "is-fifo"
12357 msgstr "is-fifo"
12358
12359 #. type: verbatim
12360 #: ../fish/guestfish-actions.pod:2606
12361 #, no-wrap
12362 msgid ""
12363 " is-fifo path\n"
12364 "\n"
12365 msgstr ""
12366 " is-fifo шлях\n"
12367 "\n"
12368
12369 #. type: textblock
12370 #: ../fish/guestfish-actions.pod:2608 ../src/guestfs-actions.pod:3962
12371 msgid ""
12372 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
12373 "given C<path> name."
12374 msgstr ""
12375
12376 #. type: =head2
12377 #: ../fish/guestfish-actions.pod:2613
12378 msgid "is-file"
12379 msgstr "is-file"
12380
12381 #. type: verbatim
12382 #: ../fish/guestfish-actions.pod:2615
12383 #, no-wrap
12384 msgid ""
12385 " is-file path\n"
12386 "\n"
12387 msgstr ""
12388 " is-file шлях\n"
12389 "\n"
12390
12391 #. type: textblock
12392 #: ../fish/guestfish-actions.pod:2617 ../src/guestfs-actions.pod:3977
12393 msgid ""
12394 "This returns C<true> if and only if there is a regular file with the given "
12395 "C<path> name.  Note that it returns false for other objects like directories."
12396 msgstr ""
12397
12398 #. type: =head2
12399 #: ../fish/guestfish-actions.pod:2623
12400 msgid "is-launching"
12401 msgstr "is-launching"
12402
12403 #. type: verbatim
12404 #: ../fish/guestfish-actions.pod:2625
12405 #, no-wrap
12406 msgid ""
12407 " is-launching\n"
12408 "\n"
12409 msgstr ""
12410 " is-launching\n"
12411 "\n"
12412
12413 #. type: textblock
12414 #: ../fish/guestfish-actions.pod:2627 ../src/guestfs-actions.pod:3992
12415 msgid ""
12416 "This returns true iff this handle is launching the subprocess (in the "
12417 "C<LAUNCHING> state)."
12418 msgstr ""
12419
12420 #. type: =head2
12421 #: ../fish/guestfish-actions.pod:2632
12422 msgid "is-lv"
12423 msgstr "is-lv"
12424
12425 #. type: verbatim
12426 #: ../fish/guestfish-actions.pod:2634
12427 #, no-wrap
12428 msgid ""
12429 " is-lv device\n"
12430 "\n"
12431 msgstr ""
12432 " is-lv пристрій\n"
12433 "\n"
12434
12435 #. type: textblock
12436 #: ../fish/guestfish-actions.pod:2636 ../src/guestfs-actions.pod:4007
12437 msgid ""
12438 "This command tests whether C<device> is a logical volume, and returns true "
12439 "iff this is the case."
12440 msgstr ""
12441
12442 #. type: =head2
12443 #: ../fish/guestfish-actions.pod:2639
12444 msgid "is-ready"
12445 msgstr "is-ready"
12446
12447 #. type: verbatim
12448 #: ../fish/guestfish-actions.pod:2641
12449 #, no-wrap
12450 msgid ""
12451 " is-ready\n"
12452 "\n"
12453 msgstr ""
12454 " is-ready\n"
12455 "\n"
12456
12457 #. type: textblock
12458 #: ../fish/guestfish-actions.pod:2643 ../src/guestfs-actions.pod:4019
12459 msgid ""
12460 "This returns true iff this handle is ready to accept commands (in the "
12461 "C<READY> state)."
12462 msgstr ""
12463
12464 #. type: =head2
12465 #: ../fish/guestfish-actions.pod:2648
12466 msgid "is-socket"
12467 msgstr "is-socket"
12468
12469 #. type: verbatim
12470 #: ../fish/guestfish-actions.pod:2650
12471 #, no-wrap
12472 msgid ""
12473 " is-socket path\n"
12474 "\n"
12475 msgstr ""
12476 " is-socket шлях\n"
12477 "\n"
12478
12479 #. type: textblock
12480 #: ../fish/guestfish-actions.pod:2652 ../src/guestfs-actions.pod:4034
12481 msgid ""
12482 "This returns C<true> if and only if there is a Unix domain socket with the "
12483 "given C<path> name."
12484 msgstr ""
12485
12486 #. type: =head2
12487 #: ../fish/guestfish-actions.pod:2657
12488 msgid "is-symlink"
12489 msgstr "is-symlink"
12490
12491 #. type: verbatim
12492 #: ../fish/guestfish-actions.pod:2659
12493 #, no-wrap
12494 msgid ""
12495 " is-symlink path\n"
12496 "\n"
12497 msgstr ""
12498 " is-symlink шлях\n"
12499 "\n"
12500
12501 #. type: textblock
12502 #: ../fish/guestfish-actions.pod:2661 ../src/guestfs-actions.pod:4049
12503 msgid ""
12504 "This returns C<true> if and only if there is a symbolic link with the given "
12505 "C<path> name."
12506 msgstr ""
12507
12508 #. type: =head2
12509 #: ../fish/guestfish-actions.pod:2666
12510 msgid "is-zero"
12511 msgstr ""
12512
12513 #. type: verbatim
12514 #: ../fish/guestfish-actions.pod:2668
12515 #, no-wrap
12516 msgid ""
12517 " is-zero path\n"
12518 "\n"
12519 msgstr ""
12520
12521 #. type: textblock
12522 #: ../fish/guestfish-actions.pod:2670 ../src/guestfs-actions.pod:4064
12523 msgid ""
12524 "This returns true iff the file exists and the file is empty or it contains "
12525 "all zero bytes."
12526 msgstr ""
12527
12528 #. type: =head2
12529 #: ../fish/guestfish-actions.pod:2673
12530 msgid "is-zero-device"
12531 msgstr ""
12532
12533 #. type: verbatim
12534 #: ../fish/guestfish-actions.pod:2675
12535 #, no-wrap
12536 msgid ""
12537 " is-zero-device device\n"
12538 "\n"
12539 msgstr ""
12540
12541 #. type: textblock
12542 #: ../fish/guestfish-actions.pod:2677 ../src/guestfs-actions.pod:4077
12543 msgid "This returns true iff the device exists and contains all zero bytes."
12544 msgstr ""
12545
12546 #. type: textblock
12547 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:4079
12548 msgid "Note that for large devices this can take a long time to run."
12549 msgstr ""
12550
12551 #. type: =head2
12552 #: ../fish/guestfish-actions.pod:2681
12553 msgid "kill-subprocess"
12554 msgstr "kill-subprocess"
12555
12556 #. type: verbatim
12557 #: ../fish/guestfish-actions.pod:2683
12558 #, no-wrap
12559 msgid ""
12560 " kill-subprocess\n"
12561 "\n"
12562 msgstr ""
12563 " kill-subprocess\n"
12564 "\n"
12565
12566 #. type: textblock
12567 #: ../fish/guestfish-actions.pod:2685 ../src/guestfs-actions.pod:4090
12568 msgid "This kills the qemu subprocess.  You should never need to call this."
12569 msgstr ""
12570
12571 #. type: =head2
12572 #: ../fish/guestfish-actions.pod:2687
12573 msgid "launch"
12574 msgstr "launch"
12575
12576 #. type: =head2
12577 #: ../fish/guestfish-actions.pod:2689
12578 msgid "run"
12579 msgstr ""
12580
12581 #. type: verbatim
12582 #: ../fish/guestfish-actions.pod:2691
12583 #, no-wrap
12584 msgid ""
12585 " launch\n"
12586 "\n"
12587 msgstr ""
12588 " launch\n"
12589 "\n"
12590
12591 #. type: textblock
12592 #: ../fish/guestfish-actions.pod:2693 ../src/guestfs-actions.pod:4101
12593 msgid ""
12594 "Internally libguestfs is implemented by running a virtual machine using "
12595 "L<qemu(1)>."
12596 msgstr ""
12597
12598 #. type: textblock
12599 #: ../fish/guestfish-actions.pod:2696 ../src/guestfs-actions.pod:4104
12600 msgid ""
12601 "You should call this after configuring the handle (eg. adding drives) but "
12602 "before performing any actions."
12603 msgstr ""
12604
12605 #. type: =head2
12606 #: ../fish/guestfish-actions.pod:2699
12607 msgid "lchown"
12608 msgstr "lchown"
12609
12610 #. type: verbatim
12611 #: ../fish/guestfish-actions.pod:2701
12612 #, no-wrap
12613 msgid ""
12614 " lchown owner group path\n"
12615 "\n"
12616 msgstr ""
12617 " lchown власник група шлях\n"
12618 "\n"
12619
12620 #. type: textblock
12621 #: ../fish/guestfish-actions.pod:2703
12622 msgid ""
12623 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
12624 "chown> but if C<path> is a symlink then the link itself is changed, not the "
12625 "target."
12626 msgstr ""
12627
12628 #. type: =head2
12629 #: ../fish/guestfish-actions.pod:2711
12630 msgid "lgetxattr"
12631 msgstr "lgetxattr"
12632
12633 #. type: verbatim
12634 #: ../fish/guestfish-actions.pod:2713
12635 #, no-wrap
12636 msgid ""
12637 " lgetxattr path name\n"
12638 "\n"
12639 msgstr ""
12640 " lgetxattr шлях назва\n"
12641 "\n"
12642
12643 #. type: textblock
12644 #: ../fish/guestfish-actions.pod:2715 ../src/guestfs-actions.pod:4144
12645 msgid ""
12646 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
12647 "is a symlink, then this call returns an extended attribute from the symlink."
12648 msgstr ""
12649
12650 #. type: textblock
12651 #: ../fish/guestfish-actions.pod:2729
12652 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12653 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12654
12655 #. type: =head2
12656 #: ../fish/guestfish-actions.pod:2731
12657 msgid "lgetxattrs"
12658 msgstr "lgetxattrs"
12659
12660 #. type: verbatim
12661 #: ../fish/guestfish-actions.pod:2733
12662 #, no-wrap
12663 msgid ""
12664 " lgetxattrs path\n"
12665 "\n"
12666 msgstr ""
12667 " lgetxattrs шлях\n"
12668 "\n"
12669
12670 #. type: textblock
12671 #: ../fish/guestfish-actions.pod:2735
12672 msgid ""
12673 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
12674 "it returns the extended attributes of the link itself."
12675 msgstr ""
12676
12677 #. type: =head2
12678 #: ../fish/guestfish-actions.pod:2739
12679 msgid "list-9p"
12680 msgstr ""
12681
12682 #. type: verbatim
12683 #: ../fish/guestfish-actions.pod:2741
12684 #, no-wrap
12685 msgid ""
12686 " list-9p\n"
12687 "\n"
12688 msgstr ""
12689
12690 #. type: textblock
12691 #: ../fish/guestfish-actions.pod:2743 ../src/guestfs-actions.pod:4187
12692 msgid ""
12693 "List all 9p filesystems attached to the guest.  A list of mount tags is "
12694 "returned."
12695 msgstr ""
12696
12697 #. type: =head2
12698 #: ../fish/guestfish-actions.pod:2746
12699 msgid "list-devices"
12700 msgstr "list-devices"
12701
12702 #. type: verbatim
12703 #: ../fish/guestfish-actions.pod:2748
12704 #, no-wrap
12705 msgid ""
12706 " list-devices\n"
12707 "\n"
12708 msgstr ""
12709 " list-devices\n"
12710 "\n"
12711
12712 #. type: textblock
12713 #: ../fish/guestfish-actions.pod:2750 ../src/guestfs-actions.pod:4201
12714 msgid "List all the block devices."
12715 msgstr ""
12716
12717 #. type: textblock
12718 #: ../fish/guestfish-actions.pod:2752 ../src/guestfs-actions.pod:4203
12719 msgid "The full block device names are returned, eg. C</dev/sda>."
12720 msgstr ""
12721
12722 #. type: =head2
12723 #: ../fish/guestfish-actions.pod:2756
12724 msgid "list-dm-devices"
12725 msgstr ""
12726
12727 #. type: verbatim
12728 #: ../fish/guestfish-actions.pod:2758
12729 #, no-wrap
12730 msgid ""
12731 " list-dm-devices\n"
12732 "\n"
12733 msgstr ""
12734
12735 #. type: textblock
12736 #: ../fish/guestfish-actions.pod:2760 ../src/guestfs-actions.pod:4218
12737 msgid "List all device mapper devices."
12738 msgstr ""
12739
12740 #. type: textblock
12741 #: ../fish/guestfish-actions.pod:2762
12742 msgid ""
12743 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
12744 "previous call to L</luks-open>."
12745 msgstr ""
12746
12747 #. type: textblock
12748 #: ../fish/guestfish-actions.pod:2765
12749 msgid ""
12750 "Device mapper devices which correspond to logical volumes are I<not> "
12751 "returned in this list.  Call L</lvs> if you want to list logical volumes."
12752 msgstr ""
12753
12754 #. type: =head2
12755 #: ../fish/guestfish-actions.pod:2769
12756 msgid "list-filesystems"
12757 msgstr "list-filesystems"
12758
12759 #. type: verbatim
12760 #: ../fish/guestfish-actions.pod:2771
12761 #, no-wrap
12762 msgid ""
12763 " list-filesystems\n"
12764 "\n"
12765 msgstr ""
12766 " list-filesystems\n"
12767 "\n"
12768
12769 #. type: textblock
12770 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
12771 msgid ""
12772 "This inspection command looks for filesystems on partitions, block devices "
12773 "and logical volumes, returning a list of devices containing filesystems and "
12774 "their type."
12775 msgstr ""
12776
12777 #. type: textblock
12778 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
12779 msgid ""
12780 "The return value is a hash, where the keys are the devices containing "
12781 "filesystems, and the values are the filesystem types.  For example:"
12782 msgstr ""
12783
12784 #. type: verbatim
12785 #: ../fish/guestfish-actions.pod:2781 ../src/guestfs-actions.pod:4246
12786 #, no-wrap
12787 msgid ""
12788 " \"/dev/sda1\" => \"ntfs\"\n"
12789 " \"/dev/sda2\" => \"ext2\"\n"
12790 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12791 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12792 "\n"
12793 msgstr ""
12794
12795 #. type: textblock
12796 #: ../fish/guestfish-actions.pod:2786 ../src/guestfs-actions.pod:4251
12797 msgid ""
12798 "The value can have the special value \"unknown\", meaning the content of the "
12799 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
12800 msgstr ""
12801
12802 #. type: textblock
12803 #: ../fish/guestfish-actions.pod:2790
12804 msgid ""
12805 "This command runs other libguestfs commands, which might include L</mount> "
12806 "and L</umount>, and therefore you should use this soon after launch and only "
12807 "when nothing is mounted."
12808 msgstr ""
12809
12810 #. type: textblock
12811 #: ../fish/guestfish-actions.pod:2794
12812 msgid ""
12813 "Not all of the filesystems returned will be mountable.  In particular, swap "
12814 "partitions are returned in the list.  Also this command does not check that "
12815 "each filesystem found is valid and mountable, and some filesystems might be "
12816 "mountable but require special options.  Filesystems may not all belong to a "
12817 "single logical operating system (use L</inspect-os> to look for OSes)."
12818 msgstr ""
12819
12820 #. type: =head2
12821 #: ../fish/guestfish-actions.pod:2802
12822 #, fuzzy
12823 #| msgid "list-devices"
12824 msgid "list-md-devices"
12825 msgstr "list-devices"
12826
12827 #. type: verbatim
12828 #: ../fish/guestfish-actions.pod:2804
12829 #, fuzzy, no-wrap
12830 #| msgid ""
12831 #| " list-devices\n"
12832 #| "\n"
12833 msgid ""
12834 " list-md-devices\n"
12835 "\n"
12836 msgstr ""
12837 " list-devices\n"
12838 "\n"
12839
12840 #. type: textblock
12841 #: ../fish/guestfish-actions.pod:2806 ../src/guestfs-actions.pod:4280
12842 msgid "List all Linux md devices."
12843 msgstr ""
12844
12845 #. type: =head2
12846 #: ../fish/guestfish-actions.pod:2808
12847 msgid "list-partitions"
12848 msgstr "list-partitions"
12849
12850 #. type: verbatim
12851 #: ../fish/guestfish-actions.pod:2810
12852 #, no-wrap
12853 msgid ""
12854 " list-partitions\n"
12855 "\n"
12856 msgstr ""
12857 " list-partitions\n"
12858 "\n"
12859
12860 #. type: textblock
12861 #: ../fish/guestfish-actions.pod:2812 ../src/guestfs-actions.pod:4293
12862 msgid "List all the partitions detected on all block devices."
12863 msgstr ""
12864
12865 #. type: textblock
12866 #: ../fish/guestfish-actions.pod:2814 ../src/guestfs-actions.pod:4295
12867 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12868 msgstr ""
12869
12870 #. type: textblock
12871 #: ../fish/guestfish-actions.pod:2816
12872 msgid ""
12873 "This does not return logical volumes.  For that you will need to call L</"
12874 "lvs>."
12875 msgstr ""
12876
12877 #. type: =head2
12878 #: ../fish/guestfish-actions.pod:2821
12879 msgid "ll"
12880 msgstr "ll"
12881
12882 #. type: verbatim
12883 #: ../fish/guestfish-actions.pod:2823
12884 #, no-wrap
12885 msgid ""
12886 " ll directory\n"
12887 "\n"
12888 msgstr ""
12889 " ll каталог\n"
12890 "\n"
12891
12892 #. type: textblock
12893 #: ../fish/guestfish-actions.pod:2825 ../src/guestfs-actions.pod:4314
12894 msgid ""
12895 "List the files in C<directory> (relative to the root directory, there is no "
12896 "cwd) in the format of 'ls -la'."
12897 msgstr ""
12898
12899 #. type: textblock
12900 #: ../fish/guestfish-actions.pod:2828 ../src/guestfs-actions.pod:4317
12901 msgid ""
12902 "This command is mostly useful for interactive sessions.  It is I<not> "
12903 "intended that you try to parse the output string."
12904 msgstr ""
12905
12906 #. type: =head2
12907 #: ../fish/guestfish-actions.pod:2831
12908 msgid "ln"
12909 msgstr "ln"
12910
12911 #. type: verbatim
12912 #: ../fish/guestfish-actions.pod:2833
12913 #, no-wrap
12914 msgid ""
12915 " ln target linkname\n"
12916 "\n"
12917 msgstr ""
12918 " ln призначення назва_посилання\n"
12919 "\n"
12920
12921 #. type: textblock
12922 #: ../fish/guestfish-actions.pod:2835 ../src/guestfs-actions.pod:4332
12923 msgid "This command creates a hard link using the C<ln> command."
12924 msgstr ""
12925
12926 #. type: =head2
12927 #: ../fish/guestfish-actions.pod:2837
12928 msgid "ln-f"
12929 msgstr "ln-f"
12930
12931 #. type: verbatim
12932 #: ../fish/guestfish-actions.pod:2839
12933 #, no-wrap
12934 msgid ""
12935 " ln-f target linkname\n"
12936 "\n"
12937 msgstr ""
12938 " ln-f призначення назва_посилання\n"
12939 "\n"
12940
12941 #. type: textblock
12942 #: ../fish/guestfish-actions.pod:2841 ../src/guestfs-actions.pod:4345
12943 msgid ""
12944 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
12945 "option removes the link (C<linkname>) if it exists already."
12946 msgstr ""
12947
12948 #. type: =head2
12949 #: ../fish/guestfish-actions.pod:2844
12950 msgid "ln-s"
12951 msgstr "ln-s"
12952
12953 #. type: verbatim
12954 #: ../fish/guestfish-actions.pod:2846
12955 #, no-wrap
12956 msgid ""
12957 " ln-s target linkname\n"
12958 "\n"
12959 msgstr ""
12960 " ln-s призначення назва_посилання\n"
12961 "\n"
12962
12963 #. type: textblock
12964 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4359
12965 msgid "This command creates a symbolic link using the C<ln -s> command."
12966 msgstr ""
12967
12968 #. type: =head2
12969 #: ../fish/guestfish-actions.pod:2850
12970 msgid "ln-sf"
12971 msgstr "ln-sf"
12972
12973 #. type: verbatim
12974 #: ../fish/guestfish-actions.pod:2852
12975 #, no-wrap
12976 msgid ""
12977 " ln-sf target linkname\n"
12978 "\n"
12979 msgstr ""
12980 " ln-sf призначення назва_посилання\n"
12981 "\n"
12982
12983 #. type: textblock
12984 #: ../fish/guestfish-actions.pod:2854 ../src/guestfs-actions.pod:4372
12985 msgid ""
12986 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12987 "option removes the link (C<linkname>) if it exists already."
12988 msgstr ""
12989
12990 #. type: =head2
12991 #: ../fish/guestfish-actions.pod:2857
12992 msgid "lremovexattr"
12993 msgstr "lremovexattr"
12994
12995 #. type: verbatim
12996 #: ../fish/guestfish-actions.pod:2859
12997 #, no-wrap
12998 msgid ""
12999 " lremovexattr xattr path\n"
13000 "\n"
13001 msgstr ""
13002
13003 #. type: textblock
13004 #: ../fish/guestfish-actions.pod:2861
13005 msgid ""
13006 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
13007 "it removes an extended attribute of the link itself."
13008 msgstr ""
13009
13010 #. type: =head2
13011 #: ../fish/guestfish-actions.pod:2865
13012 msgid "ls"
13013 msgstr "ls"
13014
13015 #. type: verbatim
13016 #: ../fish/guestfish-actions.pod:2867
13017 #, no-wrap
13018 msgid ""
13019 " ls directory\n"
13020 "\n"
13021 msgstr ""
13022 " ls каталог\n"
13023 "\n"
13024
13025 #. type: textblock
13026 #: ../fish/guestfish-actions.pod:2869 ../src/guestfs-actions.pod:4400
13027 msgid ""
13028 "List the files in C<directory> (relative to the root directory, there is no "
13029 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
13030 msgstr ""
13031
13032 #. type: textblock
13033 #: ../fish/guestfish-actions.pod:2873
13034 msgid ""
13035 "This command is mostly useful for interactive sessions.  Programs should "
13036 "probably use L</readdir> instead."
13037 msgstr ""
13038
13039 #. type: =head2
13040 #: ../fish/guestfish-actions.pod:2876
13041 msgid "lsetxattr"
13042 msgstr "lsetxattr"
13043
13044 #. type: verbatim
13045 #: ../fish/guestfish-actions.pod:2878
13046 #, no-wrap
13047 msgid ""
13048 " lsetxattr xattr val vallen path\n"
13049 "\n"
13050 msgstr ""
13051
13052 #. type: textblock
13053 #: ../fish/guestfish-actions.pod:2880
13054 msgid ""
13055 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
13056 "sets an extended attribute of the link itself."
13057 msgstr ""
13058
13059 #. type: =head2
13060 #: ../fish/guestfish-actions.pod:2884
13061 msgid "lstat"
13062 msgstr "lstat"
13063
13064 #. type: verbatim
13065 #: ../fish/guestfish-actions.pod:2886
13066 #, no-wrap
13067 msgid ""
13068 " lstat path\n"
13069 "\n"
13070 msgstr ""
13071 " lstat шлях\n"
13072 "\n"
13073
13074 #. type: textblock
13075 #: ../fish/guestfish-actions.pod:2888 ../fish/guestfish-actions.pod:4786
13076 #: ../src/guestfs-actions.pod:4436 ../src/guestfs-actions.pod:7366
13077 msgid "Returns file information for the given C<path>."
13078 msgstr ""
13079
13080 #. type: textblock
13081 #: ../fish/guestfish-actions.pod:2890
13082 msgid ""
13083 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
13084 "the link is stat-ed, not the file it refers to."
13085 msgstr ""
13086
13087 #. type: textblock
13088 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4442
13089 msgid "This is the same as the C<lstat(2)> system call."
13090 msgstr ""
13091
13092 #. type: =head2
13093 #: ../fish/guestfish-actions.pod:2896
13094 msgid "lstatlist"
13095 msgstr "lstatlist"
13096
13097 #. type: verbatim
13098 #: ../fish/guestfish-actions.pod:2898
13099 #, no-wrap
13100 msgid ""
13101 " lstatlist path 'names ...'\n"
13102 "\n"
13103 msgstr ""
13104
13105 #. type: textblock
13106 #: ../fish/guestfish-actions.pod:2900
13107 msgid ""
13108 "This call allows you to perform the L</lstat> operation on multiple files, "
13109 "where all files are in the directory C<path>.  C<names> is the list of files "
13110 "from this directory."
13111 msgstr ""
13112
13113 #. type: textblock
13114 #: ../fish/guestfish-actions.pod:2904 ../src/guestfs-actions.pod:4461
13115 msgid ""
13116 "On return you get a list of stat structs, with a one-to-one correspondence "
13117 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
13118 "then the C<ino> field of that structure is set to C<-1>."
13119 msgstr ""
13120
13121 #. type: textblock
13122 #: ../fish/guestfish-actions.pod:2909
13123 msgid ""
13124 "This call is intended for programs that want to efficiently list a directory "
13125 "contents without making many round-trips.  See also L</lxattrlist> for a "
13126 "similarly efficient call for getting extended attributes.  Very long "
13127 "directory listings might cause the protocol message size to be exceeded, "
13128 "causing this call to fail.  The caller must split up such requests into "
13129 "smaller groups of names."
13130 msgstr ""
13131
13132 #. type: =head2
13133 #: ../fish/guestfish-actions.pod:2917
13134 msgid "luks-add-key"
13135 msgstr "luks-add-key"
13136
13137 #. type: verbatim
13138 #: ../fish/guestfish-actions.pod:2919
13139 #, no-wrap
13140 msgid ""
13141 " luks-add-key device keyslot\n"
13142 "\n"
13143 msgstr ""
13144
13145 #. type: textblock
13146 #: ../fish/guestfish-actions.pod:2921 ../src/guestfs-actions.pod:4489
13147 msgid ""
13148 "This command adds a new key on LUKS device C<device>.  C<key> is any "
13149 "existing key, and is used to access the device.  C<newkey> is the new key to "
13150 "add.  C<keyslot> is the key slot that will be replaced."
13151 msgstr ""
13152
13153 #. type: textblock
13154 #: ../fish/guestfish-actions.pod:2926
13155 msgid ""
13156 "Note that if C<keyslot> already contains a key, then this command will "
13157 "fail.  You have to use L</luks-kill-slot> first to remove that key."
13158 msgstr ""
13159
13160 #. type: textblock
13161 #: ../fish/guestfish-actions.pod:2930 ../fish/guestfish-actions.pod:2952
13162 #: ../fish/guestfish-actions.pod:2962 ../fish/guestfish-actions.pod:2973
13163 #: ../fish/guestfish-actions.pod:2999 ../fish/guestfish-actions.pod:3009
13164 msgid ""
13165 "This command has one or more key or passphrase parameters.  Guestfish will "
13166 "prompt for these separately."
13167 msgstr ""
13168
13169 #. type: =head2
13170 #: ../fish/guestfish-actions.pod:2933
13171 msgid "luks-close"
13172 msgstr "luks-close"
13173
13174 #. type: verbatim
13175 #: ../fish/guestfish-actions.pod:2935
13176 #, no-wrap
13177 msgid ""
13178 " luks-close device\n"
13179 "\n"
13180 msgstr ""
13181 " luks-close пристрій\n"
13182 "\n"
13183
13184 #. type: textblock
13185 #: ../fish/guestfish-actions.pod:2937
13186 msgid ""
13187 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
13188 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
13189 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
13190 "block device."
13191 msgstr ""
13192
13193 #. type: =head2
13194 #: ../fish/guestfish-actions.pod:2943
13195 msgid "luks-format"
13196 msgstr "luks-format"
13197
13198 #. type: verbatim
13199 #: ../fish/guestfish-actions.pod:2945
13200 #, no-wrap
13201 msgid ""
13202 " luks-format device keyslot\n"
13203 "\n"
13204 msgstr ""
13205
13206 #. type: textblock
13207 #: ../fish/guestfish-actions.pod:2947 ../src/guestfs-actions.pod:4530
13208 msgid ""
13209 "This command erases existing data on C<device> and formats the device as a "
13210 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
13211 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
13212 msgstr ""
13213
13214 #. type: =head2
13215 #: ../fish/guestfish-actions.pod:2955
13216 msgid "luks-format-cipher"
13217 msgstr "luks-format-cipher"
13218
13219 #. type: verbatim
13220 #: ../fish/guestfish-actions.pod:2957
13221 #, no-wrap
13222 msgid ""
13223 " luks-format-cipher device keyslot cipher\n"
13224 "\n"
13225 msgstr ""
13226
13227 #. type: textblock
13228 #: ../fish/guestfish-actions.pod:2959
13229 msgid ""
13230 "This command is the same as L</luks-format> but it also allows you to set "
13231 "the C<cipher> used."
13232 msgstr ""
13233
13234 #. type: =head2
13235 #: ../fish/guestfish-actions.pod:2965
13236 msgid "luks-kill-slot"
13237 msgstr "luks-kill-slot"
13238
13239 #. type: verbatim
13240 #: ../fish/guestfish-actions.pod:2967
13241 #, no-wrap
13242 msgid ""
13243 " luks-kill-slot device keyslot\n"
13244 "\n"
13245 msgstr ""
13246
13247 #. type: textblock
13248 #: ../fish/guestfish-actions.pod:2969 ../src/guestfs-actions.pod:4571
13249 msgid ""
13250 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
13251 "device C<device>.  C<key> must be one of the I<other> keys."
13252 msgstr ""
13253
13254 #. type: =head2
13255 #: ../fish/guestfish-actions.pod:2976
13256 msgid "luks-open"
13257 msgstr "luks-open"
13258
13259 #. type: verbatim
13260 #: ../fish/guestfish-actions.pod:2978
13261 #, no-wrap
13262 msgid ""
13263 " luks-open device mapname\n"
13264 "\n"
13265 msgstr ""
13266
13267 #. type: textblock
13268 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4591
13269 msgid ""
13270 "This command opens a block device which has been encrypted according to the "
13271 "Linux Unified Key Setup (LUKS) standard."
13272 msgstr ""
13273
13274 #. type: textblock
13275 #: ../fish/guestfish-actions.pod:2983 ../src/guestfs-actions.pod:4594
13276 msgid "C<device> is the encrypted block device or partition."
13277 msgstr ""
13278
13279 #. type: textblock
13280 #: ../fish/guestfish-actions.pod:2985 ../src/guestfs-actions.pod:4596
13281 msgid ""
13282 "The caller must supply one of the keys associated with the LUKS block "
13283 "device, in the C<key> parameter."
13284 msgstr ""
13285
13286 #. type: textblock
13287 #: ../fish/guestfish-actions.pod:2988 ../src/guestfs-actions.pod:4599
13288 msgid ""
13289 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
13290 "writes to this block device are decrypted from and encrypted to the "
13291 "underlying C<device> respectively."
13292 msgstr ""
13293
13294 #. type: textblock
13295 #: ../fish/guestfish-actions.pod:2992
13296 msgid ""
13297 "If this block device contains LVM volume groups, then calling L</vgscan> "
13298 "followed by L</vg-activate-all> will make them visible."
13299 msgstr ""
13300
13301 #. type: textblock
13302 #: ../fish/guestfish-actions.pod:2996
13303 msgid "Use L</list-dm-devices> to list all device mapper devices."
13304 msgstr ""
13305
13306 #. type: =head2
13307 #: ../fish/guestfish-actions.pod:3002
13308 msgid "luks-open-ro"
13309 msgstr "luks-open-ro"
13310
13311 #. type: verbatim
13312 #: ../fish/guestfish-actions.pod:3004
13313 #, no-wrap
13314 msgid ""
13315 " luks-open-ro device mapname\n"
13316 "\n"
13317 msgstr ""
13318
13319 #. type: textblock
13320 #: ../fish/guestfish-actions.pod:3006
13321 msgid ""
13322 "This is the same as L</luks-open> except that a read-only mapping is created."
13323 msgstr ""
13324
13325 #. type: =head2
13326 #: ../fish/guestfish-actions.pod:3012
13327 msgid "lvcreate"
13328 msgstr "lvcreate"
13329
13330 #. type: verbatim
13331 #: ../fish/guestfish-actions.pod:3014
13332 #, no-wrap
13333 msgid ""
13334 " lvcreate logvol volgroup mbytes\n"
13335 "\n"
13336 msgstr ""
13337
13338 #. type: textblock
13339 #: ../fish/guestfish-actions.pod:3016 ../src/guestfs-actions.pod:4645
13340 msgid ""
13341 "This creates an LVM logical volume called C<logvol> on the volume group "
13342 "C<volgroup>, with C<size> megabytes."
13343 msgstr ""
13344
13345 #. type: =head2
13346 #: ../fish/guestfish-actions.pod:3019
13347 msgid "lvm-canonical-lv-name"
13348 msgstr "lvm-canonical-lv-name"
13349
13350 #. type: verbatim
13351 #: ../fish/guestfish-actions.pod:3021
13352 #, no-wrap
13353 msgid ""
13354 " lvm-canonical-lv-name lvname\n"
13355 "\n"
13356 msgstr ""
13357
13358 #. type: textblock
13359 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4658
13360 msgid ""
13361 "This converts alternative naming schemes for LVs that you might find to the "
13362 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
13363 "LV>."
13364 msgstr ""
13365
13366 #. type: textblock
13367 #: ../fish/guestfish-actions.pod:3027 ../src/guestfs-actions.pod:4662
13368 msgid ""
13369 "This command returns an error if the C<lvname> parameter does not refer to a "
13370 "logical volume."
13371 msgstr ""
13372
13373 #. type: textblock
13374 #: ../fish/guestfish-actions.pod:3030
13375 msgid "See also L</is-lv>."
13376 msgstr "Див. також L</is-lv>."
13377
13378 #. type: =head2
13379 #: ../fish/guestfish-actions.pod:3032
13380 msgid "lvm-clear-filter"
13381 msgstr "lvm-clear-filter"
13382
13383 #. type: verbatim
13384 #: ../fish/guestfish-actions.pod:3034
13385 #, no-wrap
13386 msgid ""
13387 " lvm-clear-filter\n"
13388 "\n"
13389 msgstr ""
13390 " lvm-clear-filter\n"
13391 "\n"
13392
13393 #. type: textblock
13394 #: ../fish/guestfish-actions.pod:3036
13395 msgid ""
13396 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
13397 "block device."
13398 msgstr ""
13399
13400 #. type: textblock
13401 #: ../fish/guestfish-actions.pod:3039 ../fish/guestfish-actions.pod:3067
13402 #: ../src/guestfs-actions.pod:4680 ../src/guestfs-actions.pod:4719
13403 msgid ""
13404 "This command also clears the LVM cache and performs a volume group scan."
13405 msgstr ""
13406
13407 #. type: =head2
13408 #: ../fish/guestfish-actions.pod:3042
13409 msgid "lvm-remove-all"
13410 msgstr "lvm-remove-all"
13411
13412 #. type: verbatim
13413 #: ../fish/guestfish-actions.pod:3044
13414 #, no-wrap
13415 msgid ""
13416 " lvm-remove-all\n"
13417 "\n"
13418 msgstr ""
13419 " lvm-remove-all\n"
13420 "\n"
13421
13422 #. type: textblock
13423 #: ../fish/guestfish-actions.pod:3046 ../src/guestfs-actions.pod:4692
13424 msgid ""
13425 "This command removes all LVM logical volumes, volume groups and physical "
13426 "volumes."
13427 msgstr ""
13428
13429 #. type: =head2
13430 #: ../fish/guestfish-actions.pod:3049
13431 msgid "lvm-set-filter"
13432 msgstr "lvm-set-filter"
13433
13434 #. type: verbatim
13435 #: ../fish/guestfish-actions.pod:3051
13436 #, no-wrap
13437 msgid ""
13438 " lvm-set-filter 'devices ...'\n"
13439 "\n"
13440 msgstr ""
13441 " lvm-set-filter 'пристрої...'\n"
13442 "\n"
13443
13444 #. type: textblock
13445 #: ../fish/guestfish-actions.pod:3053 ../src/guestfs-actions.pod:4705
13446 msgid ""
13447 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
13448 "block devices in the list C<devices>, and will ignore all other attached "
13449 "block devices."
13450 msgstr ""
13451
13452 #. type: textblock
13453 #: ../fish/guestfish-actions.pod:3057 ../src/guestfs-actions.pod:4709
13454 msgid ""
13455 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
13456 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
13457 "there are two types of duplication possible: either cloned PVs/VGs which "
13458 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
13459 "same name.  In normal operation you cannot create this situation, but you "
13460 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
13461 "inside the LVM metadata."
13462 msgstr ""
13463
13464 #. type: textblock
13465 #: ../fish/guestfish-actions.pod:3070 ../src/guestfs-actions.pod:4722
13466 msgid "You can filter whole block devices or individual partitions."
13467 msgstr ""
13468
13469 #. type: textblock
13470 #: ../fish/guestfish-actions.pod:3072 ../src/guestfs-actions.pod:4724
13471 msgid ""
13472 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
13473 "filesystem), even if you are not filtering out that VG."
13474 msgstr ""
13475
13476 #. type: =head2
13477 #: ../fish/guestfish-actions.pod:3076
13478 msgid "lvremove"
13479 msgstr "lvremove"
13480
13481 #. type: verbatim
13482 #: ../fish/guestfish-actions.pod:3078
13483 #, no-wrap
13484 msgid ""
13485 " lvremove device\n"
13486 "\n"
13487 msgstr ""
13488 " lvremove пристрій\n"
13489 "\n"
13490
13491 #. type: textblock
13492 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4738
13493 msgid ""
13494 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
13495 "LV, such as C</dev/VG/LV>."
13496 msgstr ""
13497
13498 #. type: textblock
13499 #: ../fish/guestfish-actions.pod:3083 ../src/guestfs-actions.pod:4741
13500 msgid ""
13501 "You can also remove all LVs in a volume group by specifying the VG name, C</"
13502 "dev/VG>."
13503 msgstr ""
13504
13505 #. type: =head2
13506 #: ../fish/guestfish-actions.pod:3086
13507 msgid "lvrename"
13508 msgstr "lvrename"
13509
13510 #. type: verbatim
13511 #: ../fish/guestfish-actions.pod:3088
13512 #, no-wrap
13513 msgid ""
13514 " lvrename logvol newlogvol\n"
13515 "\n"
13516 msgstr ""
13517
13518 #. type: textblock
13519 #: ../fish/guestfish-actions.pod:3090 ../src/guestfs-actions.pod:4755
13520 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
13521 msgstr ""
13522
13523 #. type: =head2
13524 #: ../fish/guestfish-actions.pod:3092
13525 msgid "lvresize"
13526 msgstr "lvresize"
13527
13528 #. type: verbatim
13529 #: ../fish/guestfish-actions.pod:3094
13530 #, no-wrap
13531 msgid ""
13532 " lvresize device mbytes\n"
13533 "\n"
13534 msgstr ""
13535
13536 #. type: textblock
13537 #: ../fish/guestfish-actions.pod:3096 ../src/guestfs-actions.pod:4768
13538 msgid ""
13539 "This resizes (expands or shrinks) an existing LVM logical volume to "
13540 "C<mbytes>.  When reducing, data in the reduced part is lost."
13541 msgstr ""
13542
13543 #. type: =head2
13544 #: ../fish/guestfish-actions.pod:3100
13545 msgid "lvresize-free"
13546 msgstr "lvresize-free"
13547
13548 #. type: verbatim
13549 #: ../fish/guestfish-actions.pod:3102
13550 #, no-wrap
13551 msgid ""
13552 " lvresize-free lv percent\n"
13553 "\n"
13554 msgstr ""
13555
13556 #. type: textblock
13557 #: ../fish/guestfish-actions.pod:3104 ../src/guestfs-actions.pod:4783
13558 msgid ""
13559 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
13560 "remaining free space in the volume group.  Commonly you would call this with "
13561 "pc = 100 which expands the logical volume as much as possible, using all "
13562 "remaining free space in the volume group."
13563 msgstr ""
13564
13565 #. type: =head2
13566 #: ../fish/guestfish-actions.pod:3110
13567 msgid "lvs"
13568 msgstr "lvs"
13569
13570 #. type: verbatim
13571 #: ../fish/guestfish-actions.pod:3112
13572 #, no-wrap
13573 msgid ""
13574 " lvs\n"
13575 "\n"
13576 msgstr ""
13577 " lvs\n"
13578 "\n"
13579
13580 #. type: textblock
13581 #: ../fish/guestfish-actions.pod:3114 ../src/guestfs-actions.pod:4798
13582 msgid ""
13583 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13584 "(8)> command."
13585 msgstr ""
13586
13587 #. type: textblock
13588 #: ../fish/guestfish-actions.pod:3117 ../src/guestfs-actions.pod:4801
13589 msgid ""
13590 "This returns a list of the logical volume device names (eg. C</dev/"
13591 "VolGroup00/LogVol00>)."
13592 msgstr ""
13593
13594 #. type: textblock
13595 #: ../fish/guestfish-actions.pod:3120
13596 msgid "See also L</lvs-full>, L</list-filesystems>."
13597 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
13598
13599 #. type: =head2
13600 #: ../fish/guestfish-actions.pod:3122
13601 msgid "lvs-full"
13602 msgstr "lvs-full"
13603
13604 #. type: verbatim
13605 #: ../fish/guestfish-actions.pod:3124
13606 #, no-wrap
13607 msgid ""
13608 " lvs-full\n"
13609 "\n"
13610 msgstr ""
13611 " lvs-full\n"
13612 "\n"
13613
13614 #. type: textblock
13615 #: ../fish/guestfish-actions.pod:3126 ../src/guestfs-actions.pod:4817
13616 msgid ""
13617 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13618 "(8)> command.  The \"full\" version includes all fields."
13619 msgstr ""
13620
13621 #. type: =head2
13622 #: ../fish/guestfish-actions.pod:3129
13623 msgid "lvuuid"
13624 msgstr "lvuuid"
13625
13626 #. type: verbatim
13627 #: ../fish/guestfish-actions.pod:3131
13628 #, no-wrap
13629 msgid ""
13630 " lvuuid device\n"
13631 "\n"
13632 msgstr ""
13633 " lvuuid пристрій\n"
13634 "\n"
13635
13636 #. type: textblock
13637 #: ../fish/guestfish-actions.pod:3133 ../src/guestfs-actions.pod:4832
13638 msgid "This command returns the UUID of the LVM LV C<device>."
13639 msgstr ""
13640
13641 #. type: =head2
13642 #: ../fish/guestfish-actions.pod:3135
13643 msgid "lxattrlist"
13644 msgstr "lxattrlist"
13645
13646 #. type: verbatim
13647 #: ../fish/guestfish-actions.pod:3137
13648 #, no-wrap
13649 msgid ""
13650 " lxattrlist path 'names ...'\n"
13651 "\n"
13652 msgstr ""
13653
13654 #. type: textblock
13655 #: ../fish/guestfish-actions.pod:3139 ../src/guestfs-actions.pod:4846
13656 msgid ""
13657 "This call allows you to get the extended attributes of multiple files, where "
13658 "all files are in the directory C<path>.  C<names> is the list of files from "
13659 "this directory."
13660 msgstr ""
13661
13662 #. type: textblock
13663 #: ../fish/guestfish-actions.pod:3143 ../src/guestfs-actions.pod:4850
13664 msgid ""
13665 "On return you get a flat list of xattr structs which must be interpreted "
13666 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
13667 "C<attrval> in this struct is zero-length to indicate there was an error "
13668 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13669 "number (the number of following attributes for this file, which could be C<"
13670 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
13671 "for the first named file.  This repeats for the second and subsequent files."
13672 msgstr ""
13673
13674 #. type: textblock
13675 #: ../fish/guestfish-actions.pod:3153
13676 msgid ""
13677 "This call is intended for programs that want to efficiently list a directory "
13678 "contents without making many round-trips.  See also L</lstatlist> for a "
13679 "similarly efficient call for getting standard stats.  Very long directory "
13680 "listings might cause the protocol message size to be exceeded, causing this "
13681 "call to fail.  The caller must split up such requests into smaller groups of "
13682 "names."
13683 msgstr ""
13684
13685 #. type: =head2
13686 #: ../fish/guestfish-actions.pod:3161
13687 #, fuzzy
13688 #| msgid "lvcreate"
13689 msgid "md-create"
13690 msgstr "lvcreate"
13691
13692 #. type: verbatim
13693 #: ../fish/guestfish-actions.pod:3163
13694 #, no-wrap
13695 msgid ""
13696 " md-create name 'devices ...' [missingbitmap:N] [nrdevices:N] [spare:N] [chunk:N] [level:..]\n"
13697 "\n"
13698 msgstr ""
13699
13700 #. type: textblock
13701 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4893
13702 msgid ""
13703 "Create a Linux md (RAID) device named C<name> on the devices in the list "
13704 "C<devices>."
13705 msgstr ""
13706
13707 #. type: =item
13708 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4900
13709 msgid "C<missingbitmap>"
13710 msgstr ""
13711
13712 #. type: textblock
13713 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4902
13714 msgid ""
13715 "A bitmap of missing devices.  If a bit is set it means that a missing device "
13716 "is added to the array.  The least significant bit corresponds to the first "
13717 "device in the array."
13718 msgstr ""
13719
13720 #. type: textblock
13721 #: ../fish/guestfish-actions.pod:3178 ../src/guestfs-actions.pod:4906
13722 #, fuzzy
13723 #| msgid "For example:"
13724 msgid "As examples:"
13725 msgstr "Приклад:"
13726
13727 #. type: textblock
13728 #: ../fish/guestfish-actions.pod:3180 ../src/guestfs-actions.pod:4908
13729 msgid ""
13730 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x1> then the resulting "
13731 "array would be C<[E<lt>missingE<gt>, \"/dev/sda\"]>."
13732 msgstr ""
13733
13734 #. type: textblock
13735 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4911
13736 msgid ""
13737 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x2> then the resulting "
13738 "array would be C<[\"/dev/sda\", E<lt>missingE<gt>]>."
13739 msgstr ""
13740
13741 #. type: textblock
13742 #: ../fish/guestfish-actions.pod:3186 ../src/guestfs-actions.pod:4914
13743 msgid "This defaults to C<0> (no missing devices)."
13744 msgstr ""
13745
13746 #. type: textblock
13747 #: ../fish/guestfish-actions.pod:3188 ../src/guestfs-actions.pod:4916
13748 msgid ""
13749 "The length of C<devices> + the number of bits set in C<missingbitmap> must "
13750 "equal C<nrdevices> + C<spare>."
13751 msgstr ""
13752
13753 #. type: =item
13754 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4919
13755 #, fuzzy
13756 #| msgid "device"
13757 msgid "C<nrdevices>"
13758 msgstr "пристрій"
13759
13760 #. type: textblock
13761 #: ../fish/guestfish-actions.pod:3193 ../src/guestfs-actions.pod:4921
13762 #, fuzzy
13763 #| msgid "The number of hard links."
13764 msgid "The number of active RAID devices."
13765 msgstr "Кількість жорстких посилань."
13766
13767 #. type: textblock
13768 #: ../fish/guestfish-actions.pod:3195 ../src/guestfs-actions.pod:4923
13769 msgid ""
13770 "If not set, this defaults to the length of C<devices> plus the number of "
13771 "bits set in C<missingbitmap>."
13772 msgstr ""
13773
13774 #. type: =item
13775 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4926
13776 #, fuzzy
13777 #| msgid "sparse"
13778 msgid "C<spare>"
13779 msgstr "sparse"
13780
13781 #. type: textblock
13782 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4928
13783 #, fuzzy
13784 #| msgid "The number of hard links."
13785 msgid "The number of spare devices."
13786 msgstr "Кількість жорстких посилань."
13787
13788 #. type: textblock
13789 #: ../fish/guestfish-actions.pod:3202 ../src/guestfs-actions.pod:4930
13790 msgid "If not set, this defaults to C<0>."
13791 msgstr ""
13792
13793 #. type: =item
13794 #: ../fish/guestfish-actions.pod:3204 ../src/guestfs-actions.pod:4932
13795 msgid "C<chunk>"
13796 msgstr ""
13797
13798 #. type: textblock
13799 #: ../fish/guestfish-actions.pod:3206 ../src/guestfs-actions.pod:4934
13800 #, fuzzy
13801 #| msgid "The size in SI 1000 byte units."
13802 msgid "The chunk size in bytes."
13803 msgstr "Розмір у одиницях СІ: 1000 байтів."
13804
13805 #. type: =item
13806 #: ../fish/guestfish-actions.pod:3208 ../fish/guestfish-actions.pod:3230
13807 #: ../src/guestfs-actions.pod:4936 ../src/guestfs-actions.pod:4984
13808 msgid "C<level>"
13809 msgstr ""
13810
13811 #. type: textblock
13812 #: ../fish/guestfish-actions.pod:3210 ../src/guestfs-actions.pod:4938
13813 msgid ""
13814 "The RAID level, which can be one of: I<linear>, I<raid0>, I<0>, I<stripe>, "
13815 "I<raid1>, I<1>, I<mirror>, I<raid4>, I<4>, I<raid5>, I<5>, I<raid6>, I<6>, "
13816 "I<raid10>, I<10>.  Some of these are synonymous, and more levels may be "
13817 "added in future."
13818 msgstr ""
13819
13820 #. type: textblock
13821 #: ../fish/guestfish-actions.pod:3215 ../src/guestfs-actions.pod:4943
13822 msgid "If not set, this defaults to C<raid1>."
13823 msgstr ""
13824
13825 #. type: =head2
13826 #: ../fish/guestfish-actions.pod:3221
13827 #, fuzzy
13828 #| msgid "tail"
13829 msgid "md-detail"
13830 msgstr "tail"
13831
13832 #. type: verbatim
13833 #: ../fish/guestfish-actions.pod:3223
13834 #, no-wrap
13835 msgid ""
13836 " md-detail md\n"
13837 "\n"
13838 msgstr ""
13839
13840 #. type: textblock
13841 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4979
13842 msgid ""
13843 "This command exposes the output of 'mdadm -DY <md>'. The following fields "
13844 "are usually present in the returned hash. Other fields may also be present."
13845 msgstr ""
13846
13847 #. type: textblock
13848 #: ../fish/guestfish-actions.pod:3232 ../src/guestfs-actions.pod:4986
13849 msgid "The raid level of the MD device."
13850 msgstr ""
13851
13852 #. type: =item
13853 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4988
13854 #, fuzzy
13855 #| msgid "device"
13856 msgid "C<devices>"
13857 msgstr "пристрій"
13858
13859 #. type: textblock
13860 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4990
13861 msgid "The number of underlying devices in the MD device."
13862 msgstr ""
13863
13864 #. type: =item
13865 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4992
13866 msgid "C<metadata>"
13867 msgstr ""
13868
13869 #. type: textblock
13870 #: ../fish/guestfish-actions.pod:3240 ../src/guestfs-actions.pod:4994
13871 msgid "The metadata version used."
13872 msgstr ""
13873
13874 #. type: =item
13875 #: ../fish/guestfish-actions.pod:3242 ../src/guestfs-actions.pod:4996
13876 #, fuzzy
13877 #| msgid "B<--uuid>"
13878 msgid "C<uuid>"
13879 msgstr "B<--uuid>"
13880
13881 #. type: textblock
13882 #: ../fish/guestfish-actions.pod:3244 ../src/guestfs-actions.pod:4998
13883 msgid "The UUID of the MD device."
13884 msgstr ""
13885
13886 #. type: textblock
13887 #: ../fish/guestfish-actions.pod:3248 ../src/guestfs-actions.pod:5002
13888 #, fuzzy
13889 #| msgid "The time of last access."
13890 msgid "The name of the MD device."
13891 msgstr "Час останнього доступу."
13892
13893 #. type: =head2
13894 #: ../fish/guestfish-actions.pod:3252
13895 msgid "md-stop"
13896 msgstr ""
13897
13898 #. type: verbatim
13899 #: ../fish/guestfish-actions.pod:3254
13900 #, no-wrap
13901 msgid ""
13902 " md-stop md\n"
13903 "\n"
13904 msgstr ""
13905
13906 #. type: textblock
13907 #: ../fish/guestfish-actions.pod:3256 ../src/guestfs-actions.pod:5018
13908 msgid ""
13909 "This command deactivates the MD array named C<md>.  The device is stopped, "
13910 "but it is not destroyed or zeroed."
13911 msgstr ""
13912
13913 #. type: =head2
13914 #: ../fish/guestfish-actions.pod:3259
13915 msgid "mkdir"
13916 msgstr "mkdir"
13917
13918 #. type: verbatim
13919 #: ../fish/guestfish-actions.pod:3261
13920 #, no-wrap
13921 msgid ""
13922 " mkdir path\n"
13923 "\n"
13924 msgstr ""
13925 " mkdir шлях\n"
13926 "\n"
13927
13928 #. type: textblock
13929 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:5029
13930 msgid "Create a directory named C<path>."
13931 msgstr ""
13932
13933 #. type: =head2
13934 #: ../fish/guestfish-actions.pod:3265
13935 msgid "mkdir-mode"
13936 msgstr "mkdir-mode"
13937
13938 #. type: verbatim
13939 #: ../fish/guestfish-actions.pod:3267
13940 #, no-wrap
13941 msgid ""
13942 " mkdir-mode path mode\n"
13943 "\n"
13944 msgstr ""
13945 " mkdir-mode шлях режим\n"
13946 "\n"
13947
13948 #. type: textblock
13949 #: ../fish/guestfish-actions.pod:3269 ../src/guestfs-actions.pod:5042
13950 msgid ""
13951 "This command creates a directory, setting the initial permissions of the "
13952 "directory to C<mode>."
13953 msgstr ""
13954
13955 #. type: textblock
13956 #: ../fish/guestfish-actions.pod:3272 ../src/guestfs-actions.pod:5045
13957 msgid ""
13958 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13959 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
13960 "other ways."
13961 msgstr ""
13962
13963 #. type: textblock
13964 #: ../fish/guestfish-actions.pod:3276
13965 msgid "See also L</mkdir>, L</umask>"
13966 msgstr "Див. також L</mkdir>, L</umask>"
13967
13968 #. type: =head2
13969 #: ../fish/guestfish-actions.pod:3278
13970 msgid "mkdir-p"
13971 msgstr "mkdir-p"
13972
13973 #. type: verbatim
13974 #: ../fish/guestfish-actions.pod:3280
13975 #, no-wrap
13976 msgid ""
13977 " mkdir-p path\n"
13978 "\n"
13979 msgstr ""
13980 " mkdir-p шлях\n"
13981 "\n"
13982
13983 #. type: textblock
13984 #: ../fish/guestfish-actions.pod:3282 ../src/guestfs-actions.pod:5061
13985 msgid ""
13986 "Create a directory named C<path>, creating any parent directories as "
13987 "necessary.  This is like the C<mkdir -p> shell command."
13988 msgstr ""
13989
13990 #. type: =head2
13991 #: ../fish/guestfish-actions.pod:3285
13992 msgid "mkdtemp"
13993 msgstr "mkdtemp"
13994
13995 #. type: verbatim
13996 #: ../fish/guestfish-actions.pod:3287
13997 #, no-wrap
13998 msgid ""
13999 " mkdtemp template\n"
14000 "\n"
14001 msgstr ""
14002 " mkdtemp шаблон\n"
14003 "\n"
14004
14005 #. type: textblock
14006 #: ../fish/guestfish-actions.pod:3289 ../src/guestfs-actions.pod:5074
14007 msgid ""
14008 "This command creates a temporary directory.  The C<template> parameter "
14009 "should be a full pathname for the temporary directory name with the final "
14010 "six characters being \"XXXXXX\"."
14011 msgstr ""
14012
14013 #. type: textblock
14014 #: ../fish/guestfish-actions.pod:3294 ../src/guestfs-actions.pod:5079
14015 msgid ""
14016 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
14017 "being suitable for Windows filesystems."
14018 msgstr ""
14019
14020 #. type: textblock
14021 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:5082
14022 msgid "The name of the temporary directory that was created is returned."
14023 msgstr ""
14024
14025 #. type: textblock
14026 #: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:5085
14027 msgid "The temporary directory is created with mode 0700 and is owned by root."
14028 msgstr ""
14029
14030 #. type: textblock
14031 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5088
14032 msgid ""
14033 "The caller is responsible for deleting the temporary directory and its "
14034 "contents after use."
14035 msgstr ""
14036
14037 #. type: textblock
14038 #: ../fish/guestfish-actions.pod:3306 ../src/guestfs-actions.pod:5091
14039 msgid "See also: L<mkdtemp(3)>"
14040 msgstr "Див. також L<mkdtemp(3)>"
14041
14042 #. type: =head2
14043 #: ../fish/guestfish-actions.pod:3308
14044 msgid "mke2fs-J"
14045 msgstr "mke2fs-J"
14046
14047 #. type: verbatim
14048 #: ../fish/guestfish-actions.pod:3310
14049 #, no-wrap
14050 msgid ""
14051 " mke2fs-J fstype blocksize device journal\n"
14052 "\n"
14053 msgstr ""
14054
14055 #. type: textblock
14056 #: ../fish/guestfish-actions.pod:3312 ../src/guestfs-actions.pod:5107
14057 msgid ""
14058 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14059 "C<journal>.  It is equivalent to the command:"
14060 msgstr ""
14061
14062 #. type: verbatim
14063 #: ../fish/guestfish-actions.pod:3316 ../src/guestfs-actions.pod:5111
14064 #, no-wrap
14065 msgid ""
14066 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
14067 "\n"
14068 msgstr ""
14069 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
14070 "\n"
14071
14072 #. type: textblock
14073 #: ../fish/guestfish-actions.pod:3318
14074 msgid "See also L</mke2journal>."
14075 msgstr "Див. також L</mke2journal>."
14076
14077 #. type: =head2
14078 #: ../fish/guestfish-actions.pod:3320
14079 msgid "mke2fs-JL"
14080 msgstr "mke2fs-JL"
14081
14082 #. type: verbatim
14083 #: ../fish/guestfish-actions.pod:3322
14084 #, no-wrap
14085 msgid ""
14086 " mke2fs-JL fstype blocksize device label\n"
14087 "\n"
14088 msgstr ""
14089
14090 #. type: textblock
14091 #: ../fish/guestfish-actions.pod:3324 ../src/guestfs-actions.pod:5128
14092 msgid ""
14093 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14094 "the journal labeled C<label>."
14095 msgstr ""
14096
14097 #. type: textblock
14098 #: ../fish/guestfish-actions.pod:3327
14099 msgid "See also L</mke2journal-L>."
14100 msgstr "Див. також L</mke2journal-L>."
14101
14102 #. type: =head2
14103 #: ../fish/guestfish-actions.pod:3329
14104 msgid "mke2fs-JU"
14105 msgstr "mke2fs-JU"
14106
14107 #. type: verbatim
14108 #: ../fish/guestfish-actions.pod:3331
14109 #, no-wrap
14110 msgid ""
14111 " mke2fs-JU fstype blocksize device uuid\n"
14112 "\n"
14113 msgstr ""
14114
14115 #. type: textblock
14116 #: ../fish/guestfish-actions.pod:3333 ../src/guestfs-actions.pod:5146
14117 msgid ""
14118 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14119 "the journal with UUID C<uuid>."
14120 msgstr ""
14121
14122 #. type: textblock
14123 #: ../fish/guestfish-actions.pod:3336
14124 msgid "See also L</mke2journal-U>."
14125 msgstr "Див. також L</mke2journal-U>."
14126
14127 #. type: =head2
14128 #: ../fish/guestfish-actions.pod:3338
14129 msgid "mke2journal"
14130 msgstr "mke2journal"
14131
14132 #. type: verbatim
14133 #: ../fish/guestfish-actions.pod:3340
14134 #, no-wrap
14135 msgid ""
14136 " mke2journal blocksize device\n"
14137 "\n"
14138 msgstr ""
14139
14140 #. type: textblock
14141 #: ../fish/guestfish-actions.pod:3342 ../src/guestfs-actions.pod:5162
14142 msgid ""
14143 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
14144 "command:"
14145 msgstr ""
14146
14147 #. type: verbatim
14148 #: ../fish/guestfish-actions.pod:3345 ../src/guestfs-actions.pod:5165
14149 #, no-wrap
14150 msgid ""
14151 " mke2fs -O journal_dev -b blocksize device\n"
14152 "\n"
14153 msgstr ""
14154
14155 #. type: =head2
14156 #: ../fish/guestfish-actions.pod:3347
14157 msgid "mke2journal-L"
14158 msgstr "mke2journal-L"
14159
14160 #. type: verbatim
14161 #: ../fish/guestfish-actions.pod:3349
14162 #, no-wrap
14163 msgid ""
14164 " mke2journal-L blocksize label device\n"
14165 "\n"
14166 msgstr ""
14167
14168 #. type: textblock
14169 #: ../fish/guestfish-actions.pod:3351 ../src/guestfs-actions.pod:5179
14170 msgid "This creates an ext2 external journal on C<device> with label C<label>."
14171 msgstr ""
14172
14173 #. type: =head2
14174 #: ../fish/guestfish-actions.pod:3353
14175 msgid "mke2journal-U"
14176 msgstr "mke2journal-U"
14177
14178 #. type: verbatim
14179 #: ../fish/guestfish-actions.pod:3355
14180 #, no-wrap
14181 msgid ""
14182 " mke2journal-U blocksize uuid device\n"
14183 "\n"
14184 msgstr ""
14185
14186 #. type: textblock
14187 #: ../fish/guestfish-actions.pod:3357 ../src/guestfs-actions.pod:5193
14188 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
14189 msgstr ""
14190
14191 #. type: =head2
14192 #: ../fish/guestfish-actions.pod:3359
14193 msgid "mkfifo"
14194 msgstr "mkfifo"
14195
14196 #. type: verbatim
14197 #: ../fish/guestfish-actions.pod:3361
14198 #, no-wrap
14199 msgid ""
14200 " mkfifo mode path\n"
14201 "\n"
14202 msgstr ""
14203 " mkfifo режим шлях\n"
14204 "\n"
14205
14206 #. type: textblock
14207 #: ../fish/guestfish-actions.pod:3363
14208 msgid ""
14209 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
14210 "is just a convenient wrapper around L</mknod>."
14211 msgstr ""
14212
14213 #. type: =head2
14214 #: ../fish/guestfish-actions.pod:3369
14215 msgid "mkfs"
14216 msgstr "mkfs"
14217
14218 #. type: verbatim
14219 #: ../fish/guestfish-actions.pod:3371
14220 #, no-wrap
14221 msgid ""
14222 " mkfs fstype device\n"
14223 "\n"
14224 msgstr ""
14225 " mkfs тип_файлової_системи пристрій\n"
14226 "\n"
14227
14228 #. type: textblock
14229 #: ../fish/guestfish-actions.pod:3373 ../src/guestfs-actions.pod:5223
14230 msgid ""
14231 "This creates a filesystem on C<device> (usually a partition or LVM logical "
14232 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
14233 msgstr ""
14234
14235 #. type: =head2
14236 #: ../fish/guestfish-actions.pod:3377
14237 msgid "mkfs-b"
14238 msgstr "mkfs-b"
14239
14240 #. type: verbatim
14241 #: ../fish/guestfish-actions.pod:3379
14242 #, no-wrap
14243 msgid ""
14244 " mkfs-b fstype blocksize device\n"
14245 "\n"
14246 msgstr ""
14247
14248 #. type: textblock
14249 #: ../fish/guestfish-actions.pod:3381
14250 msgid ""
14251 "This call is similar to L</mkfs>, but it allows you to control the block "
14252 "size of the resulting filesystem.  Supported block sizes depend on the "
14253 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
14254 msgstr ""
14255
14256 #. type: textblock
14257 #: ../fish/guestfish-actions.pod:3386 ../fish/guestfish-actions.pod:3413
14258 #: ../src/guestfs-actions.pod:5251 ../src/guestfs-actions.pod:5289
14259 msgid ""
14260 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
14261 "cluster size."
14262 msgstr ""
14263
14264 #. type: textblock
14265 #: ../fish/guestfish-actions.pod:3389
14266 msgid ""
14267 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
14268 "instead."
14269 msgstr ""
14270
14271 #. type: =head2
14272 #: ../fish/guestfish-actions.pod:3396
14273 msgid "mkfs-opts"
14274 msgstr "mkfs-opts"
14275
14276 #. type: verbatim
14277 #: ../fish/guestfish-actions.pod:3398
14278 #, no-wrap
14279 msgid ""
14280 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] [sectorsize:N]\n"
14281 "\n"
14282 msgstr ""
14283
14284 #. type: textblock
14285 #: ../fish/guestfish-actions.pod:3400 ../src/guestfs-actions.pod:5276
14286 msgid ""
14287 "This function creates a filesystem on C<device>.  The filesystem type is "
14288 "C<fstype>, for example C<ext3>."
14289 msgstr ""
14290
14291 #. type: =item
14292 #: ../fish/guestfish-actions.pod:3407 ../src/guestfs-actions.pod:5283
14293 msgid "C<blocksize>"
14294 msgstr "C<blocksize>"
14295
14296 #. type: textblock
14297 #: ../fish/guestfish-actions.pod:3409 ../src/guestfs-actions.pod:5285
14298 msgid ""
14299 "The filesystem block size.  Supported block sizes depend on the filesystem "
14300 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
14301 "filesystems."
14302 msgstr ""
14303
14304 #. type: textblock
14305 #: ../fish/guestfish-actions.pod:3416 ../src/guestfs-actions.pod:5292
14306 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
14307 msgstr ""
14308
14309 #. type: =item
14310 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5294
14311 msgid "C<features>"
14312 msgstr "C<features>"
14313
14314 #. type: textblock
14315 #: ../fish/guestfish-actions.pod:3420 ../src/guestfs-actions.pod:5296
14316 msgid "This passes the I<-O> parameter to the external mkfs program."
14317 msgstr ""
14318
14319 #. type: textblock
14320 #: ../fish/guestfish-actions.pod:3422 ../src/guestfs-actions.pod:5298
14321 msgid ""
14322 "For certain filesystem types, this allows extra filesystem features to be "
14323 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
14324 msgstr ""
14325
14326 #. type: textblock
14327 #: ../fish/guestfish-actions.pod:3426 ../src/guestfs-actions.pod:5302
14328 msgid ""
14329 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
14330 "type."
14331 msgstr ""
14332
14333 #. type: =item
14334 #: ../fish/guestfish-actions.pod:3429 ../src/guestfs-actions.pod:5305
14335 msgid "C<inode>"
14336 msgstr "C<inode>"
14337
14338 #. type: textblock
14339 #: ../fish/guestfish-actions.pod:3431 ../src/guestfs-actions.pod:5307
14340 msgid ""
14341 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
14342 "sets the inode size (only for ext2/3/4 filesystems at present)."
14343 msgstr ""
14344
14345 #. type: =item
14346 #: ../fish/guestfish-actions.pod:3434 ../src/guestfs-actions.pod:5310
14347 msgid "C<sectorsize>"
14348 msgstr "C<sectorsize>"
14349
14350 #. type: textblock
14351 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5312
14352 msgid ""
14353 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
14354 "sets sector size for ufs filesystem."
14355 msgstr ""
14356
14357 #. type: =head2
14358 #: ../fish/guestfish-actions.pod:3443
14359 msgid "mkmountpoint"
14360 msgstr "mkmountpoint"
14361
14362 #. type: verbatim
14363 #: ../fish/guestfish-actions.pod:3445
14364 #, no-wrap
14365 msgid ""
14366 " mkmountpoint exemptpath\n"
14367 "\n"
14368 msgstr ""
14369
14370 #. type: textblock
14371 #: ../fish/guestfish-actions.pod:3447
14372 msgid ""
14373 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
14374 "to create extra mountpoints before mounting the first filesystem."
14375 msgstr ""
14376
14377 #. type: textblock
14378 #: ../fish/guestfish-actions.pod:3451 ../src/guestfs-actions.pod:5355
14379 msgid ""
14380 "These calls are I<only> necessary in some very limited circumstances, mainly "
14381 "the case where you want to mount a mix of unrelated and/or read-only "
14382 "filesystems together."
14383 msgstr ""
14384
14385 #. type: textblock
14386 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5359
14387 msgid ""
14388 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
14389 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
14390 "inside that.  You can unpack this as follows in guestfish:"
14391 msgstr ""
14392
14393 #. type: verbatim
14394 #: ../fish/guestfish-actions.pod:3460 ../src/guestfs-actions.pod:5364
14395 #, no-wrap
14396 msgid ""
14397 " add-ro Fedora-11-i686-Live.iso\n"
14398 " run\n"
14399 " mkmountpoint /cd\n"
14400 " mkmountpoint /sqsh\n"
14401 " mkmountpoint /ext3fs\n"
14402 " mount /dev/sda /cd\n"
14403 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14404 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14405 "\n"
14406 msgstr ""
14407 " add-ro Fedora-11-i686-Live.iso\n"
14408 " run\n"
14409 " mkmountpoint /cd\n"
14410 " mkmountpoint /sqsh\n"
14411 " mkmountpoint /ext3fs\n"
14412 " mount /dev/sda /cd\n"
14413 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14414 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14415 "\n"
14416
14417 #. type: textblock
14418 #: ../fish/guestfish-actions.pod:3469 ../src/guestfs-actions.pod:5373
14419 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
14420 msgstr ""
14421
14422 #. type: textblock
14423 #: ../fish/guestfish-actions.pod:3471
14424 msgid ""
14425 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
14426 "unexpected errors if you try to mix these calls.  It is safest to manually "
14427 "unmount filesystems and remove mountpoints after use."
14428 msgstr ""
14429
14430 #. type: textblock
14431 #: ../fish/guestfish-actions.pod:3475
14432 msgid ""
14433 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
14434 "for this to work for manual mountpoints, you must ensure that the innermost "
14435 "mountpoints have the longest pathnames, as in the example code above."
14436 msgstr ""
14437
14438 #. type: textblock
14439 #: ../fish/guestfish-actions.pod:3480 ../src/guestfs-actions.pod:5384
14440 msgid ""
14441 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
14442 msgstr ""
14443
14444 #. type: textblock
14445 #: ../fish/guestfish-actions.pod:3482
14446 msgid ""
14447 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
14448 "L</umount-all> to be called when the handle is closed which can also trigger "
14449 "these issues."
14450 msgstr ""
14451
14452 #. type: =head2
14453 #: ../fish/guestfish-actions.pod:3486
14454 msgid "mknod"
14455 msgstr "mknod"
14456
14457 #. type: verbatim
14458 #: ../fish/guestfish-actions.pod:3488
14459 #, no-wrap
14460 msgid ""
14461 " mknod mode devmajor devminor path\n"
14462 "\n"
14463 msgstr ""
14464
14465 #. type: textblock
14466 #: ../fish/guestfish-actions.pod:3490 ../src/guestfs-actions.pod:5403
14467 msgid ""
14468 "This call creates block or character special devices, or named pipes (FIFOs)."
14469 msgstr ""
14470
14471 #. type: textblock
14472 #: ../fish/guestfish-actions.pod:3493 ../src/guestfs-actions.pod:5406
14473 msgid ""
14474 "The C<mode> parameter should be the mode, using the standard constants.  "
14475 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
14476 "used when creating block and character special devices."
14477 msgstr ""
14478
14479 #. type: textblock
14480 #: ../fish/guestfish-actions.pod:3498
14481 msgid ""
14482 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
14483 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
14484 "regular file).  These constants are available in the standard Linux header "
14485 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
14486 "wrappers around this command which bitwise OR in the appropriate constant "
14487 "for you."
14488 msgstr ""
14489
14490 #. type: =head2
14491 #: ../fish/guestfish-actions.pod:3508
14492 msgid "mknod-b"
14493 msgstr "mknod-b"
14494
14495 #. type: verbatim
14496 #: ../fish/guestfish-actions.pod:3510
14497 #, no-wrap
14498 msgid ""
14499 " mknod-b mode devmajor devminor path\n"
14500 "\n"
14501 msgstr ""
14502
14503 #. type: textblock
14504 #: ../fish/guestfish-actions.pod:3512
14505 msgid ""
14506 "This call creates a block device node called C<path> with mode C<mode> and "
14507 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14508 "wrapper around L</mknod>."
14509 msgstr ""
14510
14511 #. type: =head2
14512 #: ../fish/guestfish-actions.pod:3518
14513 msgid "mknod-c"
14514 msgstr "mknod-c"
14515
14516 #. type: verbatim
14517 #: ../fish/guestfish-actions.pod:3520
14518 #, no-wrap
14519 msgid ""
14520 " mknod-c mode devmajor devminor path\n"
14521 "\n"
14522 msgstr ""
14523
14524 #. type: textblock
14525 #: ../fish/guestfish-actions.pod:3522
14526 msgid ""
14527 "This call creates a char device node called C<path> with mode C<mode> and "
14528 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14529 "wrapper around L</mknod>."
14530 msgstr ""
14531
14532 #. type: =head2
14533 #: ../fish/guestfish-actions.pod:3528
14534 msgid "mkswap"
14535 msgstr "mkswap"
14536
14537 #. type: verbatim
14538 #: ../fish/guestfish-actions.pod:3530
14539 #, no-wrap
14540 msgid ""
14541 " mkswap device\n"
14542 "\n"
14543 msgstr ""
14544 " mkswap пристрій\n"
14545 "\n"
14546
14547 #. type: textblock
14548 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5469
14549 msgid "Create a swap partition on C<device>."
14550 msgstr ""
14551
14552 #. type: =head2
14553 #: ../fish/guestfish-actions.pod:3534
14554 msgid "mkswap-L"
14555 msgstr "mkswap-L"
14556
14557 #. type: verbatim
14558 #: ../fish/guestfish-actions.pod:3536
14559 #, no-wrap
14560 msgid ""
14561 " mkswap-L label device\n"
14562 "\n"
14563 msgstr ""
14564 " mkswap-L мітка пристрій\n"
14565 "\n"
14566
14567 #. type: textblock
14568 #: ../fish/guestfish-actions.pod:3538 ../src/guestfs-actions.pod:5482
14569 msgid "Create a swap partition on C<device> with label C<label>."
14570 msgstr ""
14571
14572 #. type: textblock
14573 #: ../fish/guestfish-actions.pod:3540 ../src/guestfs-actions.pod:5484
14574 msgid ""
14575 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
14576 "sda>), just to a partition.  This appears to be a limitation of the kernel "
14577 "or swap tools."
14578 msgstr ""
14579
14580 #. type: =head2
14581 #: ../fish/guestfish-actions.pod:3544
14582 msgid "mkswap-U"
14583 msgstr "mkswap-U"
14584
14585 #. type: verbatim
14586 #: ../fish/guestfish-actions.pod:3546
14587 #, no-wrap
14588 msgid ""
14589 " mkswap-U uuid device\n"
14590 "\n"
14591 msgstr ""
14592 " mkswap-U uuid пристрій\n"
14593 "\n"
14594
14595 #. type: textblock
14596 #: ../fish/guestfish-actions.pod:3548 ../src/guestfs-actions.pod:5499
14597 msgid "Create a swap partition on C<device> with UUID C<uuid>."
14598 msgstr ""
14599
14600 #. type: =head2
14601 #: ../fish/guestfish-actions.pod:3550
14602 msgid "mkswap-file"
14603 msgstr "mkswap-file"
14604
14605 #. type: verbatim
14606 #: ../fish/guestfish-actions.pod:3552
14607 #, no-wrap
14608 msgid ""
14609 " mkswap-file path\n"
14610 "\n"
14611 msgstr ""
14612 " mkswap-file шлях\n"
14613 "\n"
14614
14615 #. type: textblock
14616 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5511
14617 msgid "Create a swap file."
14618 msgstr "Створити файл резервної пам’яті."
14619
14620 #. type: textblock
14621 #: ../fish/guestfish-actions.pod:3556
14622 msgid ""
14623 "This command just writes a swap file signature to an existing file.  To "
14624 "create the file itself, use something like L</fallocate>."
14625 msgstr ""
14626
14627 #. type: =head2
14628 #: ../fish/guestfish-actions.pod:3559
14629 msgid "modprobe"
14630 msgstr "modprobe"
14631
14632 #. type: verbatim
14633 #: ../fish/guestfish-actions.pod:3561
14634 #, no-wrap
14635 msgid ""
14636 " modprobe modulename\n"
14637 "\n"
14638 msgstr ""
14639 " modprobe назва_модуля\n"
14640 "\n"
14641
14642 #. type: textblock
14643 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5526
14644 msgid "This loads a kernel module in the appliance."
14645 msgstr ""
14646
14647 #. type: textblock
14648 #: ../fish/guestfish-actions.pod:3565 ../src/guestfs-actions.pod:5528
14649 msgid ""
14650 "The kernel module must have been whitelisted when libguestfs was built (see "
14651 "C<appliance/kmod.whitelist.in> in the source)."
14652 msgstr ""
14653
14654 #. type: =head2
14655 #: ../fish/guestfish-actions.pod:3568
14656 msgid "mount"
14657 msgstr "mount"
14658
14659 #. type: verbatim
14660 #: ../fish/guestfish-actions.pod:3570
14661 #, no-wrap
14662 msgid ""
14663 " mount device mountpoint\n"
14664 "\n"
14665 msgstr ""
14666 " mount пристрій точка_монтування\n"
14667 "\n"
14668
14669 #. type: textblock
14670 #: ../fish/guestfish-actions.pod:3572 ../src/guestfs-actions.pod:5542
14671 msgid ""
14672 "Mount a guest disk at a position in the filesystem.  Block devices are named "
14673 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
14674 "those block devices contain partitions, they will have the usual names (eg. "
14675 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
14676 msgstr ""
14677
14678 #. type: textblock
14679 #: ../fish/guestfish-actions.pod:3578 ../src/guestfs-actions.pod:5548
14680 msgid ""
14681 "The rules are the same as for L<mount(2)>: A filesystem must first be "
14682 "mounted on C</> before others can be mounted.  Other filesystems can only be "
14683 "mounted on directories which already exist."
14684 msgstr ""
14685
14686 #. type: textblock
14687 #: ../fish/guestfish-actions.pod:3583 ../src/guestfs-actions.pod:5553
14688 msgid ""
14689 "The mounted filesystem is writable, if we have sufficient permissions on the "
14690 "underlying device."
14691 msgstr ""
14692
14693 #. type: textblock
14694 #: ../fish/guestfish-actions.pod:3586
14695 msgid ""
14696 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
14697 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
14698 "problems for users.  If your program might need to work with older versions "
14699 "of libguestfs, use L</mount-options> instead (using an empty string for the "
14700 "first parameter if you don't want any options)."
14701 msgstr ""
14702
14703 #. type: =head2
14704 #: ../fish/guestfish-actions.pod:3593
14705 msgid "mount-9p"
14706 msgstr ""
14707
14708 #. type: verbatim
14709 #: ../fish/guestfish-actions.pod:3595
14710 #, no-wrap
14711 msgid ""
14712 " mount-9p mounttag mountpoint [options:..]\n"
14713 "\n"
14714 msgstr ""
14715
14716 #. type: textblock
14717 #: ../fish/guestfish-actions.pod:3597 ../src/guestfs-actions.pod:5582
14718 msgid ""
14719 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
14720 "C<mountpoint>."
14721 msgstr ""
14722
14723 #. type: textblock
14724 #: ../fish/guestfish-actions.pod:3600 ../src/guestfs-actions.pod:5585
14725 msgid ""
14726 "If required, C<trans=virtio> will be automatically added to the options.  "
14727 "Any other options required can be passed in the optional C<options> "
14728 "parameter."
14729 msgstr ""
14730
14731 #. type: =head2
14732 #: ../fish/guestfish-actions.pod:3606
14733 msgid "mount-loop"
14734 msgstr "mount-loop"
14735
14736 #. type: verbatim
14737 #: ../fish/guestfish-actions.pod:3608
14738 #, no-wrap
14739 msgid ""
14740 " mount-loop file mountpoint\n"
14741 "\n"
14742 msgstr ""
14743
14744 #. type: textblock
14745 #: ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:5624
14746 msgid ""
14747 "This command lets you mount C<file> (a filesystem image in a file) on a "
14748 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
14749 "mountpoint>."
14750 msgstr ""
14751
14752 #. type: =head2
14753 #: ../fish/guestfish-actions.pod:3614
14754 msgid "mount-options"
14755 msgstr "mount-options"
14756
14757 #. type: verbatim
14758 #: ../fish/guestfish-actions.pod:3616
14759 #, no-wrap
14760 msgid ""
14761 " mount-options options device mountpoint\n"
14762 "\n"
14763 msgstr ""
14764
14765 #. type: textblock
14766 #: ../fish/guestfish-actions.pod:3618
14767 msgid ""
14768 "This is the same as the L</mount> command, but it allows you to set the "
14769 "mount options as for the L<mount(8)> I<-o> flag."
14770 msgstr ""
14771
14772 #. type: textblock
14773 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5644
14774 msgid ""
14775 "If the C<options> parameter is an empty string, then no options are passed "
14776 "(all options default to whatever the filesystem uses)."
14777 msgstr ""
14778
14779 #. type: =head2
14780 #: ../fish/guestfish-actions.pod:3626
14781 msgid "mount-ro"
14782 msgstr "mount-ro"
14783
14784 #. type: verbatim
14785 #: ../fish/guestfish-actions.pod:3628
14786 #, no-wrap
14787 msgid ""
14788 " mount-ro device mountpoint\n"
14789 "\n"
14790 msgstr ""
14791 " mount-ro пристрій точка_монтування\n"
14792 "\n"
14793
14794 #. type: textblock
14795 #: ../fish/guestfish-actions.pod:3630
14796 msgid ""
14797 "This is the same as the L</mount> command, but it mounts the filesystem with "
14798 "the read-only (I<-o ro>) flag."
14799 msgstr ""
14800
14801 #. type: =head2
14802 #: ../fish/guestfish-actions.pod:3633
14803 msgid "mount-vfs"
14804 msgstr "mount-vfs"
14805
14806 #. type: verbatim
14807 #: ../fish/guestfish-actions.pod:3635
14808 #, no-wrap
14809 msgid ""
14810 " mount-vfs options vfstype device mountpoint\n"
14811 "\n"
14812 msgstr ""
14813
14814 #. type: textblock
14815 #: ../fish/guestfish-actions.pod:3637
14816 msgid ""
14817 "This is the same as the L</mount> command, but it allows you to set both the "
14818 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
14819 msgstr ""
14820
14821 #. type: =head2
14822 #: ../fish/guestfish-actions.pod:3641
14823 msgid "mountpoints"
14824 msgstr "mountpoints"
14825
14826 #. type: verbatim
14827 #: ../fish/guestfish-actions.pod:3643
14828 #, no-wrap
14829 msgid ""
14830 " mountpoints\n"
14831 "\n"
14832 msgstr ""
14833 " mountpoints\n"
14834 "\n"
14835
14836 #. type: textblock
14837 #: ../fish/guestfish-actions.pod:3645
14838 msgid ""
14839 "This call is similar to L</mounts>.  That call returns a list of devices.  "
14840 "This one returns a hash table (map) of device name to directory where the "
14841 "device is mounted."
14842 msgstr ""
14843
14844 #. type: =head2
14845 #: ../fish/guestfish-actions.pod:3649
14846 msgid "mounts"
14847 msgstr "mounts"
14848
14849 #. type: verbatim
14850 #: ../fish/guestfish-actions.pod:3651
14851 #, no-wrap
14852 msgid ""
14853 " mounts\n"
14854 "\n"
14855 msgstr ""
14856 " mounts\n"
14857 "\n"
14858
14859 #. type: textblock
14860 #: ../fish/guestfish-actions.pod:3653 ../src/guestfs-actions.pod:5705
14861 msgid ""
14862 "This returns the list of currently mounted filesystems.  It returns the list "
14863 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14864 msgstr ""
14865
14866 #. type: textblock
14867 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5708
14868 msgid "Some internal mounts are not shown."
14869 msgstr ""
14870
14871 #. type: textblock
14872 #: ../fish/guestfish-actions.pod:3658
14873 msgid "See also: L</mountpoints>"
14874 msgstr "Див. також L</mountpoints>"
14875
14876 #. type: =head2
14877 #: ../fish/guestfish-actions.pod:3660
14878 msgid "mv"
14879 msgstr "mv"
14880
14881 #. type: verbatim
14882 #: ../fish/guestfish-actions.pod:3662
14883 #, no-wrap
14884 msgid ""
14885 " mv src dest\n"
14886 "\n"
14887 msgstr ""
14888 " mv джерело призначення\n"
14889 "\n"
14890
14891 #. type: textblock
14892 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5725
14893 msgid ""
14894 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14895 "destination filename or destination directory."
14896 msgstr ""
14897
14898 #. type: =head2
14899 #: ../fish/guestfish-actions.pod:3667
14900 msgid "ntfs-3g-probe"
14901 msgstr "ntfs-3g-probe"
14902
14903 #. type: verbatim
14904 #: ../fish/guestfish-actions.pod:3669
14905 #, no-wrap
14906 msgid ""
14907 " ntfs-3g-probe true|false device\n"
14908 "\n"
14909 msgstr ""
14910
14911 #. type: textblock
14912 #: ../fish/guestfish-actions.pod:3671 ../src/guestfs-actions.pod:5739
14913 msgid ""
14914 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14915 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
14916 "write, and some cannot be mounted at all)."
14917 msgstr ""
14918
14919 #. type: textblock
14920 #: ../fish/guestfish-actions.pod:3675 ../src/guestfs-actions.pod:5743
14921 msgid ""
14922 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
14923 "can be mounted read-write.  Set it to false if you want to test if the "
14924 "volume can be mounted read-only."
14925 msgstr ""
14926
14927 #. type: textblock
14928 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5747
14929 msgid ""
14930 "The return value is an integer which C<0> if the operation would succeed, or "
14931 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14932 msgstr ""
14933
14934 #. type: =head2
14935 #: ../fish/guestfish-actions.pod:3683
14936 msgid "ntfsresize"
14937 msgstr "ntfsresize"
14938
14939 #. type: verbatim
14940 #: ../fish/guestfish-actions.pod:3685
14941 #, no-wrap
14942 msgid ""
14943 " ntfsresize device\n"
14944 "\n"
14945 msgstr ""
14946 " ntfsresize пристрій\n"
14947 "\n"
14948
14949 #. type: textblock
14950 #: ../fish/guestfish-actions.pod:3687 ../fish/guestfish-actions.pod:3711
14951 #: ../src/guestfs-actions.pod:5768 ../src/guestfs-actions.pod:5800
14952 msgid ""
14953 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14954 "size of the underlying device."
14955 msgstr ""
14956
14957 #. type: textblock
14958 #: ../fish/guestfish-actions.pod:3690 ../src/guestfs-actions.pod:5771
14959 msgid ""
14960 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
14961 "consistency check (for safety).  You have to boot into Windows to perform "
14962 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
14963 "resize filesystems which have been marked in this way.  So in effect it is "
14964 "not possible to call ntfsresize multiple times on a single filesystem "
14965 "without booting into Windows between each resize."
14966 msgstr ""
14967
14968 #. type: textblock
14969 #: ../fish/guestfish-actions.pod:3698 ../fish/guestfish-actions.pod:3737
14970 #: ../src/guestfs-actions.pod:5779 ../src/guestfs-actions.pod:5826
14971 msgid "See also L<ntfsresize(8)>."
14972 msgstr "Див. також L<ntfsresize(8)>."
14973
14974 #. type: textblock
14975 #: ../fish/guestfish-actions.pod:3700 ../fish/guestfish-actions.pod:3748
14976 msgid ""
14977 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
14978 "call instead."
14979 msgstr ""
14980
14981 #. type: =head2
14982 #: ../fish/guestfish-actions.pod:3707
14983 msgid "ntfsresize-opts"
14984 msgstr ""
14985
14986 #. type: verbatim
14987 #: ../fish/guestfish-actions.pod:3709
14988 #, no-wrap
14989 msgid ""
14990 " ntfsresize-opts device [size:N] [force:true|false]\n"
14991 "\n"
14992 msgstr ""
14993
14994 #. type: textblock
14995 #: ../fish/guestfish-actions.pod:3720 ../src/guestfs-actions.pod:5809
14996 msgid ""
14997 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
14998 "resized to fit the container (eg. partition)."
14999 msgstr ""
15000
15001 #. type: =item
15002 #: ../fish/guestfish-actions.pod:3723 ../fish/guestfish-actions.pod:5044
15003 #: ../src/guestfs-actions.pod:5812 ../src/guestfs-actions.pod:7783
15004 msgid "C<force>"
15005 msgstr "C<force>"
15006
15007 #. type: textblock
15008 #: ../fish/guestfish-actions.pod:3725 ../src/guestfs-actions.pod:5814
15009 msgid ""
15010 "If this option is true, then force the resize of the filesystem even if the "
15011 "filesystem is marked as requiring a consistency check."
15012 msgstr ""
15013
15014 #. type: textblock
15015 #: ../fish/guestfish-actions.pod:3728
15016 msgid ""
15017 "After the resize operation, the filesystem is always marked as requiring a "
15018 "consistency check (for safety).  You have to boot into Windows to perform "
15019 "this check and clear this condition.  If you I<don't> set the C<force> "
15020 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
15021 "a single filesystem without booting into Windows between each resize."
15022 msgstr ""
15023
15024 #. type: =head2
15025 #: ../fish/guestfish-actions.pod:3741
15026 msgid "ntfsresize-size"
15027 msgstr "ntfsresize-size"
15028
15029 #. type: verbatim
15030 #: ../fish/guestfish-actions.pod:3743
15031 #, no-wrap
15032 msgid ""
15033 " ntfsresize-size device size\n"
15034 "\n"
15035 msgstr ""
15036
15037 #. type: textblock
15038 #: ../fish/guestfish-actions.pod:3745
15039 msgid ""
15040 "This command is the same as L</ntfsresize> except that it allows you to "
15041 "specify the new size (in bytes) explicitly."
15042 msgstr ""
15043
15044 #. type: =head2
15045 #: ../fish/guestfish-actions.pod:3755
15046 msgid "part-add"
15047 msgstr "part-add"
15048
15049 #. type: verbatim
15050 #: ../fish/guestfish-actions.pod:3757
15051 #, no-wrap
15052 msgid ""
15053 " part-add device prlogex startsect endsect\n"
15054 "\n"
15055 msgstr ""
15056
15057 #. type: textblock
15058 #: ../fish/guestfish-actions.pod:3759
15059 msgid ""
15060 "This command adds a partition to C<device>.  If there is no partition table "
15061 "on the device, call L</part-init> first."
15062 msgstr ""
15063
15064 #. type: textblock
15065 #: ../fish/guestfish-actions.pod:3762 ../src/guestfs-actions.pod:5887
15066 msgid ""
15067 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
15068 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
15069 "C<logical>) and C<e> (or C<extended>) partition types."
15070 msgstr ""
15071
15072 #. type: textblock
15073 #: ../fish/guestfish-actions.pod:3767 ../src/guestfs-actions.pod:5892
15074 msgid ""
15075 "C<startsect> and C<endsect> are the start and end of the partition in "
15076 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
15077 "from the end of the disk (C<-1> is the last sector)."
15078 msgstr ""
15079
15080 #. type: textblock
15081 #: ../fish/guestfish-actions.pod:3771
15082 msgid ""
15083 "Creating a partition which covers the whole disk is not so easy.  Use L</"
15084 "part-disk> to do that."
15085 msgstr ""
15086
15087 #. type: =head2
15088 #: ../fish/guestfish-actions.pod:3774
15089 msgid "part-del"
15090 msgstr "part-del"
15091
15092 #. type: verbatim
15093 #: ../fish/guestfish-actions.pod:3776
15094 #, no-wrap
15095 msgid ""
15096 " part-del device partnum\n"
15097 "\n"
15098 msgstr ""
15099
15100 #. type: textblock
15101 #: ../fish/guestfish-actions.pod:3778 ../src/guestfs-actions.pod:5910
15102 msgid "This command deletes the partition numbered C<partnum> on C<device>."
15103 msgstr ""
15104
15105 #. type: textblock
15106 #: ../fish/guestfish-actions.pod:3780 ../src/guestfs-actions.pod:5912
15107 msgid ""
15108 "Note that in the case of MBR partitioning, deleting an extended partition "
15109 "also deletes any logical partitions it contains."
15110 msgstr ""
15111
15112 #. type: =head2
15113 #: ../fish/guestfish-actions.pod:3784
15114 msgid "part-disk"
15115 msgstr "part-disk"
15116
15117 #. type: verbatim
15118 #: ../fish/guestfish-actions.pod:3786
15119 #, no-wrap
15120 msgid ""
15121 " part-disk device parttype\n"
15122 "\n"
15123 msgstr ""
15124 " part-disk пристрій тип_розділу\n"
15125 "\n"
15126
15127 #. type: textblock
15128 #: ../fish/guestfish-actions.pod:3788
15129 msgid ""
15130 "This command is simply a combination of L</part-init> followed by L</part-"
15131 "add> to create a single primary partition covering the whole disk."
15132 msgstr ""
15133
15134 #. type: textblock
15135 #: ../fish/guestfish-actions.pod:3792
15136 msgid ""
15137 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
15138 "possible values are described in L</part-init>."
15139 msgstr ""
15140
15141 #. type: =head2
15142 #: ../fish/guestfish-actions.pod:3795
15143 msgid "part-get-bootable"
15144 msgstr "part-get-bootable"
15145
15146 #. type: verbatim
15147 #: ../fish/guestfish-actions.pod:3797
15148 #, no-wrap
15149 msgid ""
15150 " part-get-bootable device partnum\n"
15151 "\n"
15152 msgstr ""
15153
15154 #. type: textblock
15155 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5945
15156 msgid ""
15157 "This command returns true if the partition C<partnum> on C<device> has the "
15158 "bootable flag set."
15159 msgstr ""
15160
15161 #. type: textblock
15162 #: ../fish/guestfish-actions.pod:3802
15163 msgid "See also L</part-set-bootable>."
15164 msgstr "Див. також L</part-set-bootable>."
15165
15166 #. type: =head2
15167 #: ../fish/guestfish-actions.pod:3804
15168 msgid "part-get-mbr-id"
15169 msgstr "part-get-mbr-id"
15170
15171 #. type: verbatim
15172 #: ../fish/guestfish-actions.pod:3806
15173 #, no-wrap
15174 msgid ""
15175 " part-get-mbr-id device partnum\n"
15176 "\n"
15177 msgstr ""
15178
15179 #. type: textblock
15180 #: ../fish/guestfish-actions.pod:3808 ../src/guestfs-actions.pod:5961
15181 msgid ""
15182 "Returns the MBR type byte (also known as the ID byte) from the numbered "
15183 "partition C<partnum>."
15184 msgstr ""
15185
15186 #. type: textblock
15187 #: ../fish/guestfish-actions.pod:3811 ../fish/guestfish-actions.pod:3955
15188 msgid ""
15189 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
15190 "undefined results for other partition table types (see L</part-get-"
15191 "parttype>)."
15192 msgstr ""
15193
15194 #. type: =head2
15195 #: ../fish/guestfish-actions.pod:3815
15196 msgid "part-get-parttype"
15197 msgstr "part-get-parttype"
15198
15199 #. type: verbatim
15200 #: ../fish/guestfish-actions.pod:3817
15201 #, no-wrap
15202 msgid ""
15203 " part-get-parttype device\n"
15204 "\n"
15205 msgstr ""
15206 " part-get-parttype пристрій\n"
15207 "\n"
15208
15209 #. type: textblock
15210 #: ../fish/guestfish-actions.pod:3819 ../src/guestfs-actions.pod:5978
15211 msgid ""
15212 "This command examines the partition table on C<device> and returns the "
15213 "partition table type (format) being used."
15214 msgstr ""
15215
15216 #. type: textblock
15217 #: ../fish/guestfish-actions.pod:3822
15218 msgid ""
15219 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
15220 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
15221 "possible, although unusual.  See L</part-init> for a full list."
15222 msgstr ""
15223
15224 #. type: =head2
15225 #: ../fish/guestfish-actions.pod:3827
15226 msgid "part-init"
15227 msgstr "part-init"
15228
15229 #. type: verbatim
15230 #: ../fish/guestfish-actions.pod:3829
15231 #, no-wrap
15232 msgid ""
15233 " part-init device parttype\n"
15234 "\n"
15235 msgstr ""
15236
15237 #. type: textblock
15238 #: ../fish/guestfish-actions.pod:3831 ../src/guestfs-actions.pod:5998
15239 msgid ""
15240 "This creates an empty partition table on C<device> of one of the partition "
15241 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
15242 "(for large disks)."
15243 msgstr ""
15244
15245 #. type: textblock
15246 #: ../fish/guestfish-actions.pod:3835
15247 msgid ""
15248 "Initially there are no partitions.  Following this, you should call L</part-"
15249 "add> for each partition required."
15250 msgstr ""
15251
15252 #. type: textblock
15253 #: ../fish/guestfish-actions.pod:3838 ../src/guestfs-actions.pod:6005
15254 msgid "Possible values for C<parttype> are:"
15255 msgstr ""
15256
15257 #. type: =item
15258 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:6009
15259 msgid "B<efi>"
15260 msgstr "B<efi>"
15261
15262 #. type: =item
15263 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:6011
15264 msgid "B<gpt>"
15265 msgstr "B<gpt>"
15266
15267 #. type: textblock
15268 #: ../fish/guestfish-actions.pod:3846 ../src/guestfs-actions.pod:6013
15269 msgid "Intel EFI / GPT partition table."
15270 msgstr ""
15271
15272 #. type: textblock
15273 #: ../fish/guestfish-actions.pod:3848 ../src/guestfs-actions.pod:6015
15274 msgid ""
15275 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
15276 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
15277 "the C<mbr> format."
15278 msgstr ""
15279
15280 #. type: =item
15281 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:6019
15282 msgid "B<mbr>"
15283 msgstr "B<mbr>"
15284
15285 #. type: =item
15286 #: ../fish/guestfish-actions.pod:3854 ../src/guestfs-actions.pod:6021
15287 msgid "B<msdos>"
15288 msgstr "B<msdos>"
15289
15290 #. type: textblock
15291 #: ../fish/guestfish-actions.pod:3856 ../src/guestfs-actions.pod:6023
15292 msgid ""
15293 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
15294 "Windows.  This partition type will B<only> work for device sizes up to 2 "
15295 "TB.  For large disks we recommend using C<gpt>."
15296 msgstr ""
15297
15298 #. type: textblock
15299 #: ../fish/guestfish-actions.pod:3863 ../src/guestfs-actions.pod:6030
15300 msgid ""
15301 "Other partition table types that may work but are not supported include:"
15302 msgstr ""
15303
15304 #. type: =item
15305 #: ../fish/guestfish-actions.pod:3868 ../src/guestfs-actions.pod:6035
15306 msgid "B<aix>"
15307 msgstr "B<aix>"
15308
15309 #. type: textblock
15310 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:6037
15311 msgid "AIX disk labels."
15312 msgstr "Мітки дисків AIX."
15313
15314 #. type: =item
15315 #: ../fish/guestfish-actions.pod:3872 ../src/guestfs-actions.pod:6039
15316 msgid "B<amiga>"
15317 msgstr "B<amiga>"
15318
15319 #. type: =item
15320 #: ../fish/guestfish-actions.pod:3874 ../src/guestfs-actions.pod:6041
15321 msgid "B<rdb>"
15322 msgstr "B<rdb>"
15323
15324 #. type: textblock
15325 #: ../fish/guestfish-actions.pod:3876 ../src/guestfs-actions.pod:6043
15326 msgid "Amiga \"Rigid Disk Block\" format."
15327 msgstr "Формат \"Rigid Disk Block\" Amiga."
15328
15329 #. type: =item
15330 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:6045
15331 msgid "B<bsd>"
15332 msgstr "B<bsd>"
15333
15334 #. type: textblock
15335 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:6047
15336 msgid "BSD disk labels."
15337 msgstr "Мітки дисків BSD."
15338
15339 #. type: =item
15340 #: ../fish/guestfish-actions.pod:3882 ../src/guestfs-actions.pod:6049
15341 msgid "B<dasd>"
15342 msgstr "B<dasd>"
15343
15344 #. type: textblock
15345 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:6051
15346 msgid "DASD, used on IBM mainframes."
15347 msgstr "DASD, використовувалися у мейнфреймах IBM."
15348
15349 #. type: =item
15350 #: ../fish/guestfish-actions.pod:3886 ../src/guestfs-actions.pod:6053
15351 msgid "B<dvh>"
15352 msgstr "B<dvh>"
15353
15354 #. type: textblock
15355 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:6055
15356 msgid "MIPS/SGI volumes."
15357 msgstr "Томи MIPS/SGI."
15358
15359 #. type: =item
15360 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6057
15361 msgid "B<mac>"
15362 msgstr "B<mac>"
15363
15364 #. type: textblock
15365 #: ../fish/guestfish-actions.pod:3892 ../src/guestfs-actions.pod:6059
15366 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
15367 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
15368
15369 #. type: =item
15370 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:6061
15371 msgid "B<pc98>"
15372 msgstr "B<pc98>"
15373
15374 #. type: textblock
15375 #: ../fish/guestfish-actions.pod:3896 ../src/guestfs-actions.pod:6063
15376 msgid "NEC PC-98 format, common in Japan apparently."
15377 msgstr "Формат NEC PC-98, поширений у Японії."
15378
15379 #. type: =item
15380 #: ../fish/guestfish-actions.pod:3898 ../src/guestfs-actions.pod:6065
15381 msgid "B<sun>"
15382 msgstr "B<sun>"
15383
15384 #. type: textblock
15385 #: ../fish/guestfish-actions.pod:3900 ../src/guestfs-actions.pod:6067
15386 msgid "Sun disk labels."
15387 msgstr "Мітки дисків Sun."
15388
15389 #. type: =head2
15390 #: ../fish/guestfish-actions.pod:3904
15391 msgid "part-list"
15392 msgstr "part-list"
15393
15394 #. type: verbatim
15395 #: ../fish/guestfish-actions.pod:3906
15396 #, no-wrap
15397 msgid ""
15398 " part-list device\n"
15399 "\n"
15400 msgstr ""
15401 " part-list device\n"
15402 "\n"
15403
15404 #. type: textblock
15405 #: ../fish/guestfish-actions.pod:3908 ../src/guestfs-actions.pod:6081
15406 msgid ""
15407 "This command parses the partition table on C<device> and returns the list of "
15408 "partitions found."
15409 msgstr ""
15410
15411 #. type: textblock
15412 #: ../fish/guestfish-actions.pod:3911 ../src/guestfs-actions.pod:6084
15413 msgid "The fields in the returned structure are:"
15414 msgstr ""
15415
15416 #. type: =item
15417 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:6088
15418 msgid "B<part_num>"
15419 msgstr "B<part_num>"
15420
15421 #. type: textblock
15422 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6090
15423 msgid "Partition number, counting from 1."
15424 msgstr ""
15425
15426 #. type: =item
15427 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6092
15428 msgid "B<part_start>"
15429 msgstr "B<part_start>"
15430
15431 #. type: textblock
15432 #: ../fish/guestfish-actions.pod:3921
15433 msgid ""
15434 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
15435 "the device's sector size, see L</blockdev-getss>."
15436 msgstr ""
15437
15438 #. type: =item
15439 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:6097
15440 msgid "B<part_end>"
15441 msgstr "B<part_end>"
15442
15443 #. type: textblock
15444 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6099
15445 msgid "End of the partition in bytes."
15446 msgstr ""
15447
15448 #. type: =item
15449 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6101
15450 msgid "B<part_size>"
15451 msgstr "B<part_size>"
15452
15453 #. type: textblock
15454 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6103
15455 msgid "Size of the partition in bytes."
15456 msgstr ""
15457
15458 #. type: =head2
15459 #: ../fish/guestfish-actions.pod:3934
15460 msgid "part-set-bootable"
15461 msgstr "part-set-bootable"
15462
15463 #. type: verbatim
15464 #: ../fish/guestfish-actions.pod:3936
15465 #, no-wrap
15466 msgid ""
15467 " part-set-bootable device partnum true|false\n"
15468 "\n"
15469 msgstr ""
15470
15471 #. type: textblock
15472 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6121
15473 msgid ""
15474 "This sets the bootable flag on partition numbered C<partnum> on device "
15475 "C<device>.  Note that partitions are numbered from 1."
15476 msgstr ""
15477
15478 #. type: textblock
15479 #: ../fish/guestfish-actions.pod:3941 ../src/guestfs-actions.pod:6124
15480 msgid ""
15481 "The bootable flag is used by some operating systems (notably Windows) to "
15482 "determine which partition to boot from.  It is by no means universally "
15483 "recognized."
15484 msgstr ""
15485
15486 #. type: =head2
15487 #: ../fish/guestfish-actions.pod:3945
15488 msgid "part-set-mbr-id"
15489 msgstr "part-set-mbr-id"
15490
15491 #. type: verbatim
15492 #: ../fish/guestfish-actions.pod:3947
15493 #, no-wrap
15494 msgid ""
15495 " part-set-mbr-id device partnum idbyte\n"
15496 "\n"
15497 msgstr ""
15498
15499 #. type: textblock
15500 #: ../fish/guestfish-actions.pod:3949 ../src/guestfs-actions.pod:6140
15501 msgid ""
15502 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
15503 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
15504 "documentation are in fact hexadecimal numbers, but usually documented "
15505 "without any leading \"0x\" which might be confusing."
15506 msgstr ""
15507
15508 #. type: =head2
15509 #: ../fish/guestfish-actions.pod:3959
15510 msgid "part-set-name"
15511 msgstr "part-set-name"
15512
15513 #. type: verbatim
15514 #: ../fish/guestfish-actions.pod:3961
15515 #, no-wrap
15516 msgid ""
15517 " part-set-name device partnum name\n"
15518 "\n"
15519 msgstr ""
15520
15521 #. type: textblock
15522 #: ../fish/guestfish-actions.pod:3963 ../src/guestfs-actions.pod:6162
15523 msgid ""
15524 "This sets the partition name on partition numbered C<partnum> on device "
15525 "C<device>.  Note that partitions are numbered from 1."
15526 msgstr ""
15527
15528 #. type: textblock
15529 #: ../fish/guestfish-actions.pod:3966 ../src/guestfs-actions.pod:6165
15530 msgid ""
15531 "The partition name can only be set on certain types of partition table.  "
15532 "This works on C<gpt> but not on C<mbr> partitions."
15533 msgstr ""
15534
15535 #. type: =head2
15536 #: ../fish/guestfish-actions.pod:3969
15537 msgid "part-to-dev"
15538 msgstr "part-to-dev"
15539
15540 #. type: verbatim
15541 #: ../fish/guestfish-actions.pod:3971
15542 #, no-wrap
15543 msgid ""
15544 " part-to-dev partition\n"
15545 "\n"
15546 msgstr ""
15547 " part-to-dev розділ\n"
15548 "\n"
15549
15550 #. type: textblock
15551 #: ../fish/guestfish-actions.pod:3973 ../src/guestfs-actions.pod:6178
15552 msgid ""
15553 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
15554 "partition number, returning the device name (eg. \"/dev/sdb\")."
15555 msgstr ""
15556
15557 #. type: textblock
15558 #: ../fish/guestfish-actions.pod:3977 ../fish/guestfish-actions.pod:3989
15559 msgid ""
15560 "The named partition must exist, for example as a string returned from L</"
15561 "list-partitions>."
15562 msgstr ""
15563
15564 #. type: textblock
15565 #: ../fish/guestfish-actions.pod:3980
15566 msgid "See also L</part-to-partnum>."
15567 msgstr ""
15568
15569 #. type: =head2
15570 #: ../fish/guestfish-actions.pod:3982
15571 msgid "part-to-partnum"
15572 msgstr ""
15573
15574 #. type: verbatim
15575 #: ../fish/guestfish-actions.pod:3984
15576 #, no-wrap
15577 msgid ""
15578 " part-to-partnum partition\n"
15579 "\n"
15580 msgstr ""
15581
15582 #. type: textblock
15583 #: ../fish/guestfish-actions.pod:3986 ../src/guestfs-actions.pod:6198
15584 msgid ""
15585 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
15586 "partition number (eg. C<1>)."
15587 msgstr ""
15588
15589 #. type: textblock
15590 #: ../fish/guestfish-actions.pod:3992
15591 msgid "See also L</part-to-dev>."
15592 msgstr ""
15593
15594 #. type: =head2
15595 #: ../fish/guestfish-actions.pod:3994
15596 msgid "ping-daemon"
15597 msgstr "ping-daemon"
15598
15599 #. type: verbatim
15600 #: ../fish/guestfish-actions.pod:3996
15601 #, no-wrap
15602 msgid ""
15603 " ping-daemon\n"
15604 "\n"
15605 msgstr ""
15606 " ping-daemon\n"
15607 "\n"
15608
15609 #. type: textblock
15610 #: ../fish/guestfish-actions.pod:3998 ../src/guestfs-actions.pod:6215
15611 msgid ""
15612 "This is a test probe into the guestfs daemon running inside the qemu "
15613 "subprocess.  Calling this function checks that the daemon responds to the "
15614 "ping message, without affecting the daemon or attached block device(s) in "
15615 "any other way."
15616 msgstr ""
15617
15618 #. type: =head2
15619 #: ../fish/guestfish-actions.pod:4003
15620 msgid "pread"
15621 msgstr "pread"
15622
15623 #. type: verbatim
15624 #: ../fish/guestfish-actions.pod:4005
15625 #, no-wrap
15626 msgid ""
15627 " pread path count offset\n"
15628 "\n"
15629 msgstr ""
15630
15631 #. type: textblock
15632 #: ../fish/guestfish-actions.pod:4007 ../src/guestfs-actions.pod:6233
15633 msgid ""
15634 "This command lets you read part of a file.  It reads C<count> bytes of the "
15635 "file, starting at C<offset>, from file C<path>."
15636 msgstr ""
15637
15638 #. type: textblock
15639 #: ../fish/guestfish-actions.pod:4010 ../fish/guestfish-actions.pod:4025
15640 #: ../src/guestfs-actions.pod:6236 ../src/guestfs-actions.pod:6262
15641 msgid ""
15642 "This may read fewer bytes than requested.  For further details see the "
15643 "L<pread(2)> system call."
15644 msgstr ""
15645
15646 #. type: textblock
15647 #: ../fish/guestfish-actions.pod:4013
15648 msgid "See also L</pwrite>, L</pread-device>."
15649 msgstr "Див. також L</pwrite>, L</pread-device>."
15650
15651 #. type: =head2
15652 #: ../fish/guestfish-actions.pod:4018
15653 msgid "pread-device"
15654 msgstr "pread-device"
15655
15656 #. type: verbatim
15657 #: ../fish/guestfish-actions.pod:4020
15658 #, no-wrap
15659 msgid ""
15660 " pread-device device count offset\n"
15661 "\n"
15662 msgstr ""
15663
15664 #. type: textblock
15665 #: ../fish/guestfish-actions.pod:4022 ../src/guestfs-actions.pod:6259
15666 msgid ""
15667 "This command lets you read part of a file.  It reads C<count> bytes of "
15668 "C<device>, starting at C<offset>."
15669 msgstr ""
15670
15671 #. type: textblock
15672 #: ../fish/guestfish-actions.pod:4028
15673 msgid "See also L</pread>."
15674 msgstr "Див. також L</pread>."
15675
15676 #. type: =head2
15677 #: ../fish/guestfish-actions.pod:4033
15678 msgid "pvcreate"
15679 msgstr "pvcreate"
15680
15681 #. type: verbatim
15682 #: ../fish/guestfish-actions.pod:4035
15683 #, no-wrap
15684 msgid ""
15685 " pvcreate device\n"
15686 "\n"
15687 msgstr ""
15688 " pvcreate пристрій\n"
15689 "\n"
15690
15691 #. type: textblock
15692 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6282
15693 msgid ""
15694 "This creates an LVM physical volume on the named C<device>, where C<device> "
15695 "should usually be a partition name such as C</dev/sda1>."
15696 msgstr ""
15697
15698 #. type: =head2
15699 #: ../fish/guestfish-actions.pod:4041
15700 msgid "pvremove"
15701 msgstr "pvremove"
15702
15703 #. type: verbatim
15704 #: ../fish/guestfish-actions.pod:4043
15705 #, no-wrap
15706 msgid ""
15707 " pvremove device\n"
15708 "\n"
15709 msgstr ""
15710 " pvremove пристрій\n"
15711 "\n"
15712
15713 #. type: textblock
15714 #: ../fish/guestfish-actions.pod:4045 ../src/guestfs-actions.pod:6296
15715 msgid ""
15716 "This wipes a physical volume C<device> so that LVM will no longer recognise "
15717 "it."
15718 msgstr ""
15719
15720 #. type: textblock
15721 #: ../fish/guestfish-actions.pod:4048 ../src/guestfs-actions.pod:6299
15722 msgid ""
15723 "The implementation uses the C<pvremove> command which refuses to wipe "
15724 "physical volumes that contain any volume groups, so you have to remove those "
15725 "first."
15726 msgstr ""
15727
15728 #. type: =head2
15729 #: ../fish/guestfish-actions.pod:4052
15730 msgid "pvresize"
15731 msgstr "pvresize"
15732
15733 #. type: verbatim
15734 #: ../fish/guestfish-actions.pod:4054
15735 #, no-wrap
15736 msgid ""
15737 " pvresize device\n"
15738 "\n"
15739 msgstr ""
15740 " pvresize пристрій\n"
15741 "\n"
15742
15743 #. type: textblock
15744 #: ../fish/guestfish-actions.pod:4056 ../src/guestfs-actions.pod:6313
15745 msgid ""
15746 "This resizes (expands or shrinks) an existing LVM physical volume to match "
15747 "the new size of the underlying device."
15748 msgstr ""
15749
15750 #. type: =head2
15751 #: ../fish/guestfish-actions.pod:4059
15752 msgid "pvresize-size"
15753 msgstr "pvresize-size"
15754
15755 #. type: verbatim
15756 #: ../fish/guestfish-actions.pod:4061
15757 #, no-wrap
15758 msgid ""
15759 " pvresize-size device size\n"
15760 "\n"
15761 msgstr ""
15762
15763 #. type: textblock
15764 #: ../fish/guestfish-actions.pod:4063
15765 msgid ""
15766 "This command is the same as L</pvresize> except that it allows you to "
15767 "specify the new size (in bytes) explicitly."
15768 msgstr ""
15769
15770 #. type: =head2
15771 #: ../fish/guestfish-actions.pod:4066
15772 msgid "pvs"
15773 msgstr "pvs"
15774
15775 #. type: verbatim
15776 #: ../fish/guestfish-actions.pod:4068
15777 #, no-wrap
15778 msgid ""
15779 " pvs\n"
15780 "\n"
15781 msgstr ""
15782 " pvs\n"
15783 "\n"
15784
15785 #. type: textblock
15786 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6339
15787 msgid ""
15788 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15789 "(8)> command."
15790 msgstr ""
15791
15792 #. type: textblock
15793 #: ../fish/guestfish-actions.pod:4073 ../src/guestfs-actions.pod:6342
15794 msgid ""
15795 "This returns a list of just the device names that contain PVs (eg. C</dev/"
15796 "sda2>)."
15797 msgstr ""
15798
15799 #. type: textblock
15800 #: ../fish/guestfish-actions.pod:4076
15801 msgid "See also L</pvs-full>."
15802 msgstr "Див. також L</pvs-full>."
15803
15804 #. type: =head2
15805 #: ../fish/guestfish-actions.pod:4078
15806 msgid "pvs-full"
15807 msgstr "pvs-full"
15808
15809 #. type: verbatim
15810 #: ../fish/guestfish-actions.pod:4080
15811 #, no-wrap
15812 msgid ""
15813 " pvs-full\n"
15814 "\n"
15815 msgstr ""
15816 " pvs-full\n"
15817 "\n"
15818
15819 #. type: textblock
15820 #: ../fish/guestfish-actions.pod:4082 ../src/guestfs-actions.pod:6358
15821 msgid ""
15822 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15823 "(8)> command.  The \"full\" version includes all fields."
15824 msgstr ""
15825
15826 #. type: =head2
15827 #: ../fish/guestfish-actions.pod:4085
15828 msgid "pvuuid"
15829 msgstr "pvuuid"
15830
15831 #. type: verbatim
15832 #: ../fish/guestfish-actions.pod:4087
15833 #, no-wrap
15834 msgid ""
15835 " pvuuid device\n"
15836 "\n"
15837 msgstr ""
15838 " pvuuid пристрій\n"
15839 "\n"
15840
15841 #. type: textblock
15842 #: ../fish/guestfish-actions.pod:4089 ../src/guestfs-actions.pod:6373
15843 msgid "This command returns the UUID of the LVM PV C<device>."
15844 msgstr ""
15845
15846 #. type: =head2
15847 #: ../fish/guestfish-actions.pod:4091
15848 msgid "pwrite"
15849 msgstr "pwrite"
15850
15851 #. type: verbatim
15852 #: ../fish/guestfish-actions.pod:4093
15853 #, no-wrap
15854 msgid ""
15855 " pwrite path content offset\n"
15856 "\n"
15857 msgstr ""
15858
15859 #. type: textblock
15860 #: ../fish/guestfish-actions.pod:4095 ../src/guestfs-actions.pod:6389
15861 msgid ""
15862 "This command writes to part of a file.  It writes the data buffer C<content> "
15863 "to the file C<path> starting at offset C<offset>."
15864 msgstr ""
15865
15866 #. type: textblock
15867 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6392
15868 msgid ""
15869 "This command implements the L<pwrite(2)> system call, and like that system "
15870 "call it may not write the full data requested.  The return value is the "
15871 "number of bytes that were actually written to the file.  This could even be "
15872 "0, although short writes are unlikely for regular files in ordinary "
15873 "circumstances."
15874 msgstr ""
15875
15876 #. type: textblock
15877 #: ../fish/guestfish-actions.pod:4104
15878 msgid "See also L</pread>, L</pwrite-device>."
15879 msgstr "Див. також L</pread>, L</pwrite-device>."
15880
15881 #. type: =head2
15882 #: ../fish/guestfish-actions.pod:4109
15883 msgid "pwrite-device"
15884 msgstr "pwrite-device"
15885
15886 #. type: verbatim
15887 #: ../fish/guestfish-actions.pod:4111
15888 #, no-wrap
15889 msgid ""
15890 " pwrite-device device content offset\n"
15891 "\n"
15892 msgstr ""
15893
15894 #. type: textblock
15895 #: ../fish/guestfish-actions.pod:4113 ../src/guestfs-actions.pod:6416
15896 msgid ""
15897 "This command writes to part of a device.  It writes the data buffer "
15898 "C<content> to C<device> starting at offset C<offset>."
15899 msgstr ""
15900
15901 #. type: textblock
15902 #: ../fish/guestfish-actions.pod:4116 ../src/guestfs-actions.pod:6419
15903 msgid ""
15904 "This command implements the L<pwrite(2)> system call, and like that system "
15905 "call it may not write the full data requested (although short writes to disk "
15906 "devices and partitions are probably impossible with standard Linux kernels)."
15907 msgstr ""
15908
15909 #. type: textblock
15910 #: ../fish/guestfish-actions.pod:4121
15911 msgid "See also L</pwrite>."
15912 msgstr "Див. також L</pwrite>."
15913
15914 #. type: =head2
15915 #: ../fish/guestfish-actions.pod:4126
15916 msgid "read-file"
15917 msgstr "read-file"
15918
15919 #. type: verbatim
15920 #: ../fish/guestfish-actions.pod:4128
15921 #, no-wrap
15922 msgid ""
15923 " read-file path\n"
15924 "\n"
15925 msgstr ""
15926 " read-file шлях\n"
15927 "\n"
15928
15929 #. type: textblock
15930 #: ../fish/guestfish-actions.pod:4130 ../src/guestfs-actions.pod:6440
15931 msgid "This calls returns the contents of the file C<path> as a buffer."
15932 msgstr ""
15933
15934 #. type: textblock
15935 #: ../fish/guestfish-actions.pod:4133
15936 msgid ""
15937 "Unlike L</cat>, this function can correctly handle files that contain "
15938 "embedded ASCII NUL characters.  However unlike L</download>, this function "
15939 "is limited in the total size of file that can be handled."
15940 msgstr ""
15941
15942 #. type: =head2
15943 #: ../fish/guestfish-actions.pod:4141
15944 msgid "read-lines"
15945 msgstr "read-lines"
15946
15947 #. type: verbatim
15948 #: ../fish/guestfish-actions.pod:4143
15949 #, no-wrap
15950 msgid ""
15951 " read-lines path\n"
15952 "\n"
15953 msgstr ""
15954 " read-lines шлях\n"
15955 "\n"
15956
15957 #. type: textblock
15958 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6465
15959 msgid ""
15960 "The file contents are returned as a list of lines.  Trailing C<LF> and "
15961 "C<CRLF> character sequences are I<not> returned."
15962 msgstr ""
15963
15964 #. type: textblock
15965 #: ../fish/guestfish-actions.pod:4150
15966 msgid ""
15967 "Note that this function cannot correctly handle binary files (specifically, "
15968 "files containing C<\\0> character which is treated as end of line).  For "
15969 "those you need to use the L</read-file> function which has a more complex "
15970 "interface."
15971 msgstr ""
15972
15973 #. type: =head2
15974 #: ../fish/guestfish-actions.pod:4155
15975 msgid "readdir"
15976 msgstr "readdir"
15977
15978 #. type: verbatim
15979 #: ../fish/guestfish-actions.pod:4157
15980 #, no-wrap
15981 msgid ""
15982 " readdir dir\n"
15983 "\n"
15984 msgstr ""
15985 " readdir каталог\n"
15986 "\n"
15987
15988 #. type: textblock
15989 #: ../fish/guestfish-actions.pod:4159 ../src/guestfs-actions.pod:6485
15990 msgid "This returns the list of directory entries in directory C<dir>."
15991 msgstr ""
15992
15993 #. type: textblock
15994 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6487
15995 msgid ""
15996 "All entries in the directory are returned, including C<.> and C<..>.  The "
15997 "entries are I<not> sorted, but returned in the same order as the underlying "
15998 "filesystem."
15999 msgstr ""
16000
16001 #. type: textblock
16002 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6491
16003 msgid ""
16004 "Also this call returns basic file type information about each file.  The "
16005 "C<ftyp> field will contain one of the following characters:"
16006 msgstr ""
16007
16008 #. type: =item
16009 #: ../fish/guestfish-actions.pod:4170 ../src/guestfs-actions.pod:6496
16010 msgid "'b'"
16011 msgstr "'b'"
16012
16013 #. type: textblock
16014 #: ../fish/guestfish-actions.pod:4172 ../src/guestfs-actions.pod:6498
16015 msgid "Block special"
16016 msgstr "Блоковий особливий"
16017
16018 #. type: =item
16019 #: ../fish/guestfish-actions.pod:4174 ../src/guestfs-actions.pod:6500
16020 msgid "'c'"
16021 msgstr "'c'"
16022
16023 #. type: textblock
16024 #: ../fish/guestfish-actions.pod:4176 ../src/guestfs-actions.pod:6502
16025 msgid "Char special"
16026 msgstr "Символьний особливий"
16027
16028 #. type: =item
16029 #: ../fish/guestfish-actions.pod:4178 ../src/guestfs-actions.pod:6504
16030 msgid "'d'"
16031 msgstr "'d'"
16032
16033 #. type: textblock
16034 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6506
16035 msgid "Directory"
16036 msgstr "Каталог"
16037
16038 #. type: =item
16039 #: ../fish/guestfish-actions.pod:4182 ../src/guestfs-actions.pod:6508
16040 msgid "'f'"
16041 msgstr "'f'"
16042
16043 #. type: textblock
16044 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6510
16045 msgid "FIFO (named pipe)"
16046 msgstr "FIFO (іменований канал)"
16047
16048 #. type: =item
16049 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6512
16050 msgid "'l'"
16051 msgstr "'l'"
16052
16053 #. type: textblock
16054 #: ../fish/guestfish-actions.pod:4188 ../src/guestfs-actions.pod:6514
16055 msgid "Symbolic link"
16056 msgstr "Символічне посилання"
16057
16058 #. type: =item
16059 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6516
16060 msgid "'r'"
16061 msgstr "'r'"
16062
16063 #. type: textblock
16064 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6518
16065 msgid "Regular file"
16066 msgstr "Звичайний файл"
16067
16068 #. type: =item
16069 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6520
16070 msgid "'s'"
16071 msgstr "'s'"
16072
16073 #. type: textblock
16074 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6522
16075 msgid "Socket"
16076 msgstr "Сокет"
16077
16078 #. type: =item
16079 #: ../fish/guestfish-actions.pod:4198 ../src/guestfs-actions.pod:6524
16080 msgid "'u'"
16081 msgstr "'u'"
16082
16083 #. type: textblock
16084 #: ../fish/guestfish-actions.pod:4200 ../src/guestfs-actions.pod:6526
16085 msgid "Unknown file type"
16086 msgstr "Невідомий тип файла"
16087
16088 #. type: =item
16089 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6528
16090 msgid "'?'"
16091 msgstr ""
16092
16093 #. type: textblock
16094 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6530
16095 msgid ""
16096 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
16097 msgstr ""
16098
16099 #. type: textblock
16100 #: ../fish/guestfish-actions.pod:4209
16101 msgid ""
16102 "This function is primarily intended for use by programs.  To get a simple "
16103 "list of names, use L</ls>.  To get a printable directory for human "
16104 "consumption, use L</ll>."
16105 msgstr ""
16106
16107 #. type: =head2
16108 #: ../fish/guestfish-actions.pod:4213
16109 msgid "readlink"
16110 msgstr "readlink"
16111
16112 #. type: verbatim
16113 #: ../fish/guestfish-actions.pod:4215
16114 #, no-wrap
16115 msgid ""
16116 " readlink path\n"
16117 "\n"
16118 msgstr ""
16119 " readlink шлях\n"
16120 "\n"
16121
16122 #. type: textblock
16123 #: ../fish/guestfish-actions.pod:4217 ../src/guestfs-actions.pod:6551
16124 msgid "This command reads the target of a symbolic link."
16125 msgstr ""
16126
16127 #. type: =head2
16128 #: ../fish/guestfish-actions.pod:4219
16129 msgid "readlinklist"
16130 msgstr "readlinklist"
16131
16132 #. type: verbatim
16133 #: ../fish/guestfish-actions.pod:4221
16134 #, no-wrap
16135 msgid ""
16136 " readlinklist path 'names ...'\n"
16137 "\n"
16138 msgstr ""
16139
16140 #. type: textblock
16141 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6565
16142 msgid ""
16143 "This call allows you to do a C<readlink> operation on multiple files, where "
16144 "all files are in the directory C<path>.  C<names> is the list of files from "
16145 "this directory."
16146 msgstr ""
16147
16148 #. type: textblock
16149 #: ../fish/guestfish-actions.pod:4227 ../src/guestfs-actions.pod:6569
16150 msgid ""
16151 "On return you get a list of strings, with a one-to-one correspondence to the "
16152 "C<names> list.  Each string is the value of the symbolic link."
16153 msgstr ""
16154
16155 #. type: textblock
16156 #: ../fish/guestfish-actions.pod:4231 ../src/guestfs-actions.pod:6573
16157 msgid ""
16158 "If the C<readlink(2)> operation fails on any name, then the corresponding "
16159 "result string is the empty string C<\"\">.  However the whole operation is "
16160 "completed even if there were C<readlink(2)> errors, and so you can call this "
16161 "function with names where you don't know if they are symbolic links already "
16162 "(albeit slightly less efficient)."
16163 msgstr ""
16164
16165 #. type: textblock
16166 #: ../fish/guestfish-actions.pod:4238 ../src/guestfs-actions.pod:6580
16167 msgid ""
16168 "This call is intended for programs that want to efficiently list a directory "
16169 "contents without making many round-trips.  Very long directory listings "
16170 "might cause the protocol message size to be exceeded, causing this call to "
16171 "fail.  The caller must split up such requests into smaller groups of names."
16172 msgstr ""
16173
16174 #. type: =head2
16175 #: ../fish/guestfish-actions.pod:4245
16176 msgid "realpath"
16177 msgstr "realpath"
16178
16179 #. type: verbatim
16180 #: ../fish/guestfish-actions.pod:4247
16181 #, no-wrap
16182 msgid ""
16183 " realpath path\n"
16184 "\n"
16185 msgstr ""
16186 " realpath шлях\n"
16187 "\n"
16188
16189 #. type: textblock
16190 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6599
16191 msgid ""
16192 "Return the canonicalized absolute pathname of C<path>.  The returned path "
16193 "has no C<.>, C<..> or symbolic link path elements."
16194 msgstr ""
16195
16196 #. type: =head2
16197 #: ../fish/guestfish-actions.pod:4252
16198 msgid "removexattr"
16199 msgstr "removexattr"
16200
16201 #. type: verbatim
16202 #: ../fish/guestfish-actions.pod:4254
16203 #, no-wrap
16204 msgid ""
16205 " removexattr xattr path\n"
16206 "\n"
16207 msgstr ""
16208
16209 #. type: textblock
16210 #: ../fish/guestfish-actions.pod:4256 ../src/guestfs-actions.pod:6614
16211 msgid ""
16212 "This call removes the extended attribute named C<xattr> of the file C<path>."
16213 msgstr ""
16214
16215 #. type: textblock
16216 #: ../fish/guestfish-actions.pod:4259
16217 msgid "See also: L</lremovexattr>, L<attr(5)>."
16218 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
16219
16220 #. type: =head2
16221 #: ../fish/guestfish-actions.pod:4261
16222 msgid "resize2fs"
16223 msgstr "resize2fs"
16224
16225 #. type: verbatim
16226 #: ../fish/guestfish-actions.pod:4263
16227 #, no-wrap
16228 msgid ""
16229 " resize2fs device\n"
16230 "\n"
16231 msgstr ""
16232 " resize2fs пристрій\n"
16233 "\n"
16234
16235 #. type: textblock
16236 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6629
16237 msgid ""
16238 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
16239 "underlying device."
16240 msgstr ""
16241
16242 #. type: textblock
16243 #: ../fish/guestfish-actions.pod:4268
16244 msgid ""
16245 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
16246 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
16247 "gives an error about this and sometimes not.  In any case, it is always safe "
16248 "to call L</e2fsck-f> before calling this function."
16249 msgstr ""
16250
16251 #. type: =head2
16252 #: ../fish/guestfish-actions.pod:4274
16253 msgid "resize2fs-M"
16254 msgstr "resize2fs-M"
16255
16256 #. type: verbatim
16257 #: ../fish/guestfish-actions.pod:4276
16258 #, no-wrap
16259 msgid ""
16260 " resize2fs-M device\n"
16261 "\n"
16262 msgstr ""
16263 " resize2fs-M пристрій\n"
16264 "\n"
16265
16266 #. type: textblock
16267 #: ../fish/guestfish-actions.pod:4278
16268 msgid ""
16269 "This command is the same as L</resize2fs>, but the filesystem is resized to "
16270 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
16271 "command."
16272 msgstr ""
16273
16274 #. type: textblock
16275 #: ../fish/guestfish-actions.pod:4282
16276 msgid ""
16277 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
16278 "and read the C<Block size> and C<Block count> values.  These two numbers, "
16279 "multiplied together, give the resulting size of the minimal filesystem in "
16280 "bytes."
16281 msgstr ""
16282
16283 #. type: =head2
16284 #: ../fish/guestfish-actions.pod:4287
16285 msgid "resize2fs-size"
16286 msgstr "resize2fs-size"
16287
16288 #. type: verbatim
16289 #: ../fish/guestfish-actions.pod:4289
16290 #, no-wrap
16291 msgid ""
16292 " resize2fs-size device size\n"
16293 "\n"
16294 msgstr ""
16295
16296 #. type: textblock
16297 #: ../fish/guestfish-actions.pod:4291
16298 msgid ""
16299 "This command is the same as L</resize2fs> except that it allows you to "
16300 "specify the new size (in bytes) explicitly."
16301 msgstr ""
16302
16303 #. type: =head2
16304 #: ../fish/guestfish-actions.pod:4294
16305 msgid "rm"
16306 msgstr "rm"
16307
16308 #. type: verbatim
16309 #: ../fish/guestfish-actions.pod:4296
16310 #, no-wrap
16311 msgid ""
16312 " rm path\n"
16313 "\n"
16314 msgstr ""
16315 " rm шлях\n"
16316 "\n"
16317
16318 #. type: textblock
16319 #: ../fish/guestfish-actions.pod:4298 ../src/guestfs-actions.pod:6681
16320 msgid "Remove the single file C<path>."
16321 msgstr ""
16322
16323 #. type: =head2
16324 #: ../fish/guestfish-actions.pod:4300
16325 msgid "rm-rf"
16326 msgstr "rm-rf"
16327
16328 #. type: verbatim
16329 #: ../fish/guestfish-actions.pod:4302
16330 #, no-wrap
16331 msgid ""
16332 " rm-rf path\n"
16333 "\n"
16334 msgstr ""
16335 " rm-rf шлях\n"
16336 "\n"
16337
16338 #. type: textblock
16339 #: ../fish/guestfish-actions.pod:4304 ../src/guestfs-actions.pod:6693
16340 msgid ""
16341 "Remove the file or directory C<path>, recursively removing the contents if "
16342 "its a directory.  This is like the C<rm -rf> shell command."
16343 msgstr ""
16344
16345 #. type: =head2
16346 #: ../fish/guestfish-actions.pod:4308
16347 msgid "rmdir"
16348 msgstr "rmdir"
16349
16350 #. type: verbatim
16351 #: ../fish/guestfish-actions.pod:4310
16352 #, no-wrap
16353 msgid ""
16354 " rmdir path\n"
16355 "\n"
16356 msgstr ""
16357 " rmdir шлях\n"
16358 "\n"
16359
16360 #. type: textblock
16361 #: ../fish/guestfish-actions.pod:4312 ../src/guestfs-actions.pod:6707
16362 msgid "Remove the single directory C<path>."
16363 msgstr ""
16364
16365 #. type: =head2
16366 #: ../fish/guestfish-actions.pod:4314
16367 msgid "rmmountpoint"
16368 msgstr "rmmountpoint"
16369
16370 #. type: verbatim
16371 #: ../fish/guestfish-actions.pod:4316
16372 #, no-wrap
16373 msgid ""
16374 " rmmountpoint exemptpath\n"
16375 "\n"
16376 msgstr ""
16377
16378 #. type: textblock
16379 #: ../fish/guestfish-actions.pod:4318
16380 msgid ""
16381 "This calls removes a mountpoint that was previously created with L</"
16382 "mkmountpoint>.  See L</mkmountpoint> for full details."
16383 msgstr ""
16384
16385 #. type: =head2
16386 #: ../fish/guestfish-actions.pod:4322
16387 msgid "scrub-device"
16388 msgstr "scrub-device"
16389
16390 #. type: verbatim
16391 #: ../fish/guestfish-actions.pod:4324
16392 #, no-wrap
16393 msgid ""
16394 " scrub-device device\n"
16395 "\n"
16396 msgstr ""
16397 " scrub-device пристрій\n"
16398 "\n"
16399
16400 #. type: textblock
16401 #: ../fish/guestfish-actions.pod:4326 ../src/guestfs-actions.pod:6733
16402 msgid ""
16403 "This command writes patterns over C<device> to make data retrieval more "
16404 "difficult."
16405 msgstr ""
16406
16407 #. type: textblock
16408 #: ../fish/guestfish-actions.pod:4329 ../fish/guestfish-actions.pod:4341
16409 #: ../fish/guestfish-actions.pod:4354 ../src/guestfs-actions.pod:6736
16410 #: ../src/guestfs-actions.pod:6754 ../src/guestfs-actions.pod:6773
16411 msgid ""
16412 "It is an interface to the L<scrub(1)> program.  See that manual page for "
16413 "more details."
16414 msgstr ""
16415
16416 #. type: =head2
16417 #: ../fish/guestfish-actions.pod:4332
16418 msgid "scrub-file"
16419 msgstr "scrub-file"
16420
16421 #. type: verbatim
16422 #: ../fish/guestfish-actions.pod:4334
16423 #, no-wrap
16424 msgid ""
16425 " scrub-file file\n"
16426 "\n"
16427 msgstr ""
16428 " scrub-file файл\n"
16429 "\n"
16430
16431 #. type: textblock
16432 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6749
16433 msgid ""
16434 "This command writes patterns over a file to make data retrieval more "
16435 "difficult."
16436 msgstr ""
16437
16438 #. type: textblock
16439 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6752
16440 msgid "The file is I<removed> after scrubbing."
16441 msgstr ""
16442
16443 #. type: =head2
16444 #: ../fish/guestfish-actions.pod:4344
16445 msgid "scrub-freespace"
16446 msgstr "scrub-freespace"
16447
16448 #. type: verbatim
16449 #: ../fish/guestfish-actions.pod:4346
16450 #, no-wrap
16451 msgid ""
16452 " scrub-freespace dir\n"
16453 "\n"
16454 msgstr ""
16455 " scrub-freespace каталог\n"
16456 "\n"
16457
16458 #. type: textblock
16459 #: ../fish/guestfish-actions.pod:4348
16460 msgid ""
16461 "This command creates the directory C<dir> and then fills it with files until "
16462 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
16463 "deletes them.  The intention is to scrub any free space on the partition "
16464 "containing C<dir>."
16465 msgstr ""
16466
16467 #. type: =head2
16468 #: ../fish/guestfish-actions.pod:4357
16469 msgid "set-append"
16470 msgstr "set-append"
16471
16472 #. type: =head2
16473 #: ../fish/guestfish-actions.pod:4359
16474 msgid "append"
16475 msgstr ""
16476
16477 #. type: verbatim
16478 #: ../fish/guestfish-actions.pod:4361
16479 #, no-wrap
16480 msgid ""
16481 " set-append append\n"
16482 "\n"
16483 msgstr ""
16484
16485 #. type: textblock
16486 #: ../fish/guestfish-actions.pod:4363 ../src/guestfs-actions.pod:6786
16487 msgid ""
16488 "This function is used to add additional options to the guest kernel command "
16489 "line."
16490 msgstr ""
16491
16492 #. type: textblock
16493 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6789
16494 msgid ""
16495 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
16496 "environment variable."
16497 msgstr ""
16498
16499 #. type: textblock
16500 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6792
16501 msgid ""
16502 "Setting C<append> to C<NULL> means I<no> additional options are passed "
16503 "(libguestfs always adds a few of its own)."
16504 msgstr ""
16505
16506 #. type: =head2
16507 #: ../fish/guestfish-actions.pod:4372
16508 msgid "set-attach-method"
16509 msgstr "set-attach-method"
16510
16511 #. type: =head2
16512 #: ../fish/guestfish-actions.pod:4374
16513 msgid "attach-method"
16514 msgstr ""
16515
16516 #. type: verbatim
16517 #: ../fish/guestfish-actions.pod:4376
16518 #, no-wrap
16519 msgid ""
16520 " set-attach-method attachmethod\n"
16521 "\n"
16522 msgstr ""
16523
16524 #. type: textblock
16525 #: ../fish/guestfish-actions.pod:4378 ../src/guestfs-actions.pod:6805
16526 msgid ""
16527 "Set the method that libguestfs uses to connect to the back end guestfsd "
16528 "daemon.  Possible methods are:"
16529 msgstr ""
16530
16531 #. type: =item
16532 #: ../fish/guestfish-actions.pod:4383 ../src/guestfs-actions.pod:6810
16533 #: ../src/guestfs.pod:2916
16534 msgid "C<appliance>"
16535 msgstr "C<appliance>"
16536
16537 #. type: textblock
16538 #: ../fish/guestfish-actions.pod:4385 ../src/guestfs-actions.pod:6812
16539 msgid ""
16540 "Launch an appliance and connect to it.  This is the ordinary method and the "
16541 "default."
16542 msgstr ""
16543
16544 #. type: =item
16545 #: ../fish/guestfish-actions.pod:4388 ../src/guestfs-actions.pod:6815
16546 msgid "C<unix:I<path>>"
16547 msgstr "C<unix:I<шлях>>"
16548
16549 #. type: textblock
16550 #: ../fish/guestfish-actions.pod:4390 ../src/guestfs-actions.pod:6817
16551 msgid "Connect to the Unix domain socket I<path>."
16552 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
16553
16554 #. type: textblock
16555 #: ../fish/guestfish-actions.pod:4392 ../src/guestfs-actions.pod:6819
16556 msgid ""
16557 "This method lets you connect to an existing daemon or (using virtio-serial) "
16558 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
16559 "RUNNING DAEMONS>."
16560 msgstr ""
16561
16562 #. type: =head2
16563 #: ../fish/guestfish-actions.pod:4398
16564 msgid "set-autosync"
16565 msgstr "set-autosync"
16566
16567 #. type: =head2
16568 #: ../fish/guestfish-actions.pod:4400
16569 msgid "autosync"
16570 msgstr "autosync"
16571
16572 #. type: verbatim
16573 #: ../fish/guestfish-actions.pod:4402
16574 #, no-wrap
16575 msgid ""
16576 " set-autosync true|false\n"
16577 "\n"
16578 msgstr ""
16579 " set-autosync true|false\n"
16580 "\n"
16581
16582 #. type: textblock
16583 #: ../fish/guestfish-actions.pod:4404 ../src/guestfs-actions.pod:6835
16584 msgid ""
16585 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
16586 "effort attempt to make filesystems consistent and synchronized when the "
16587 "handle is closed (also if the program exits without closing handles)."
16588 msgstr ""
16589
16590 #. type: textblock
16591 #: ../fish/guestfish-actions.pod:4409 ../src/guestfs-actions.pod:6840
16592 msgid ""
16593 "This is enabled by default (since libguestfs 1.5.24, previously it was "
16594 "disabled by default)."
16595 msgstr ""
16596
16597 #. type: =head2
16598 #: ../fish/guestfish-actions.pod:4412
16599 msgid "set-direct"
16600 msgstr "set-direct"
16601
16602 #. type: =head2
16603 #: ../fish/guestfish-actions.pod:4414
16604 msgid "direct"
16605 msgstr "direct"
16606
16607 #. type: verbatim
16608 #: ../fish/guestfish-actions.pod:4416
16609 #, no-wrap
16610 msgid ""
16611 " set-direct true|false\n"
16612 "\n"
16613 msgstr ""
16614 " set-direct true|false\n"
16615 "\n"
16616
16617 #. type: textblock
16618 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6853
16619 msgid ""
16620 "If the direct appliance mode flag is enabled, then stdin and stdout are "
16621 "passed directly through to the appliance once it is launched."
16622 msgstr ""
16623
16624 #. type: textblock
16625 #: ../fish/guestfish-actions.pod:4422
16626 msgid ""
16627 "One consequence of this is that log messages aren't caught by the library "
16628 "and handled by L</set-log-message-callback>, but go straight to stdout."
16629 msgstr ""
16630
16631 #. type: textblock
16632 #: ../fish/guestfish-actions.pod:4426 ../src/guestfs-actions.pod:6861
16633 msgid "You probably don't want to use this unless you know what you are doing."
16634 msgstr ""
16635
16636 #. type: textblock
16637 #: ../fish/guestfish-actions.pod:4429 ../src/guestfs-actions.pod:6864
16638 msgid "The default is disabled."
16639 msgstr ""
16640
16641 #. type: =head2
16642 #: ../fish/guestfish-actions.pod:4431
16643 msgid "set-e2label"
16644 msgstr "set-e2label"
16645
16646 #. type: verbatim
16647 #: ../fish/guestfish-actions.pod:4433
16648 #, no-wrap
16649 msgid ""
16650 " set-e2label device label\n"
16651 "\n"
16652 msgstr ""
16653
16654 #. type: textblock
16655 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6877
16656 msgid ""
16657 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
16658 "C<label>.  Filesystem labels are limited to 16 characters."
16659 msgstr ""
16660
16661 #. type: textblock
16662 #: ../fish/guestfish-actions.pod:4439
16663 msgid ""
16664 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
16665 "label on a filesystem."
16666 msgstr ""
16667
16668 #. type: =head2
16669 #: ../fish/guestfish-actions.pod:4442
16670 msgid "set-e2uuid"
16671 msgstr "set-e2uuid"
16672
16673 #. type: verbatim
16674 #: ../fish/guestfish-actions.pod:4444
16675 #, no-wrap
16676 msgid ""
16677 " set-e2uuid device uuid\n"
16678 "\n"
16679 msgstr ""
16680
16681 #. type: textblock
16682 #: ../fish/guestfish-actions.pod:4446 ../src/guestfs-actions.pod:6895
16683 msgid ""
16684 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
16685 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
16686 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
16687 msgstr ""
16688
16689 #. type: textblock
16690 #: ../fish/guestfish-actions.pod:4451
16691 msgid ""
16692 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
16693 "UUID of a filesystem."
16694 msgstr ""
16695
16696 #. type: =head2
16697 #: ../fish/guestfish-actions.pod:4454
16698 msgid "set-memsize"
16699 msgstr "set-memsize"
16700
16701 #. type: =head2
16702 #: ../fish/guestfish-actions.pod:4456
16703 msgid "memsize"
16704 msgstr ""
16705
16706 #. type: verbatim
16707 #: ../fish/guestfish-actions.pod:4458
16708 #, no-wrap
16709 msgid ""
16710 " set-memsize memsize\n"
16711 "\n"
16712 msgstr ""
16713
16714 #. type: textblock
16715 #: ../fish/guestfish-actions.pod:4460
16716 msgid ""
16717 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
16718 "This only has any effect if called before L</launch>."
16719 msgstr ""
16720
16721 #. type: textblock
16722 #: ../fish/guestfish-actions.pod:4464 ../src/guestfs-actions.pod:6917
16723 msgid ""
16724 "You can also change this by setting the environment variable "
16725 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
16726 msgstr ""
16727
16728 #. type: =head2
16729 #: ../fish/guestfish-actions.pod:4471
16730 msgid "set-network"
16731 msgstr "set-network"
16732
16733 #. type: =head2
16734 #: ../fish/guestfish-actions.pod:4473
16735 msgid "network"
16736 msgstr "network"
16737
16738 #. type: verbatim
16739 #: ../fish/guestfish-actions.pod:4475
16740 #, no-wrap
16741 msgid ""
16742 " set-network true|false\n"
16743 "\n"
16744 msgstr ""
16745 " set-network true|false\n"
16746 "\n"
16747
16748 #. type: textblock
16749 #: ../fish/guestfish-actions.pod:4477 ../src/guestfs-actions.pod:6934
16750 msgid ""
16751 "If C<network> is true, then the network is enabled in the libguestfs "
16752 "appliance.  The default is false."
16753 msgstr ""
16754
16755 #. type: textblock
16756 #: ../fish/guestfish-actions.pod:4480 ../src/guestfs-actions.pod:6937
16757 msgid ""
16758 "This affects whether commands are able to access the network (see L<guestfs"
16759 "(3)/RUNNING COMMANDS>)."
16760 msgstr ""
16761
16762 #. type: textblock
16763 #: ../fish/guestfish-actions.pod:4483
16764 msgid ""
16765 "You must call this before calling L</launch>, otherwise it has no effect."
16766 msgstr ""
16767
16768 #. type: =head2
16769 #: ../fish/guestfish-actions.pod:4486
16770 msgid "set-path"
16771 msgstr "set-path"
16772
16773 #. type: verbatim
16774 #: ../fish/guestfish-actions.pod:4490
16775 #, no-wrap
16776 msgid ""
16777 " set-path searchpath\n"
16778 "\n"
16779 msgstr ""
16780
16781 #. type: textblock
16782 #: ../fish/guestfish-actions.pod:4492 ../src/guestfs-actions.pod:6953
16783 msgid "Set the path that libguestfs searches for kernel and initrd.img."
16784 msgstr ""
16785
16786 #. type: textblock
16787 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6955
16788 msgid ""
16789 "The default is C<$libdir/guestfs> unless overridden by setting "
16790 "C<LIBGUESTFS_PATH> environment variable."
16791 msgstr ""
16792
16793 #. type: textblock
16794 #: ../fish/guestfish-actions.pod:4497 ../src/guestfs-actions.pod:6958
16795 msgid "Setting C<path> to C<NULL> restores the default path."
16796 msgstr ""
16797
16798 #. type: =head2
16799 #: ../fish/guestfish-actions.pod:4499
16800 msgid "set-pgroup"
16801 msgstr ""
16802
16803 #. type: =head2
16804 #: ../fish/guestfish-actions.pod:4501
16805 msgid "pgroup"
16806 msgstr ""
16807
16808 #. type: verbatim
16809 #: ../fish/guestfish-actions.pod:4503
16810 #, no-wrap
16811 msgid ""
16812 " set-pgroup true|false\n"
16813 "\n"
16814 msgstr ""
16815
16816 #. type: textblock
16817 #: ../fish/guestfish-actions.pod:4505 ../src/guestfs-actions.pod:6970
16818 msgid ""
16819 "If C<pgroup> is true, child processes are placed into their own process "
16820 "group."
16821 msgstr ""
16822
16823 #. type: textblock
16824 #: ../fish/guestfish-actions.pod:4508 ../src/guestfs-actions.pod:6973
16825 msgid ""
16826 "The practical upshot of this is that signals like C<SIGINT> (from users "
16827 "pressing C<^C>) won't be received by the child process."
16828 msgstr ""
16829
16830 #. type: textblock
16831 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6976
16832 msgid ""
16833 "The default for this flag is false, because usually you want C<^C> to kill "
16834 "the subprocess."
16835 msgstr ""
16836
16837 #. type: =head2
16838 #: ../fish/guestfish-actions.pod:4514
16839 msgid "set-qemu"
16840 msgstr "set-qemu"
16841
16842 #. type: =head2
16843 #: ../fish/guestfish-actions.pod:4516
16844 msgid "qemu"
16845 msgstr "qemu"
16846
16847 #. type: verbatim
16848 #: ../fish/guestfish-actions.pod:4518
16849 #, no-wrap
16850 msgid ""
16851 " set-qemu qemu\n"
16852 "\n"
16853 msgstr ""
16854 " set-qemu qemu\n"
16855 "\n"
16856
16857 #. type: textblock
16858 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6989
16859 msgid "Set the qemu binary that we will use."
16860 msgstr ""
16861
16862 #. type: textblock
16863 #: ../fish/guestfish-actions.pod:4522 ../src/guestfs-actions.pod:6991
16864 msgid ""
16865 "The default is chosen when the library was compiled by the configure script."
16866 msgstr ""
16867
16868 #. type: textblock
16869 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6994
16870 msgid ""
16871 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
16872 "variable."
16873 msgstr ""
16874
16875 #. type: textblock
16876 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6997
16877 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
16878 msgstr ""
16879
16880 #. type: textblock
16881 #: ../fish/guestfish-actions.pod:4530 ../src/guestfs-actions.pod:6999
16882 msgid ""
16883 "Note that you should call this function as early as possible after creating "
16884 "the handle.  This is because some pre-launch operations depend on testing "
16885 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
16886 "don't retest features, and so you might see inconsistent results.  Using the "
16887 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
16888 "the qemu binary at the same time as the handle is created."
16889 msgstr ""
16890
16891 #. type: =head2
16892 #: ../fish/guestfish-actions.pod:4538
16893 msgid "set-recovery-proc"
16894 msgstr "set-recovery-proc"
16895
16896 #. type: =head2
16897 #: ../fish/guestfish-actions.pod:4540
16898 msgid "recovery-proc"
16899 msgstr "recovery-proc"
16900
16901 #. type: verbatim
16902 #: ../fish/guestfish-actions.pod:4542
16903 #, no-wrap
16904 msgid ""
16905 " set-recovery-proc true|false\n"
16906 "\n"
16907 msgstr ""
16908 " set-recovery-proc true|false\n"
16909 "\n"
16910
16911 #. type: textblock
16912 #: ../fish/guestfish-actions.pod:4544
16913 msgid ""
16914 "If this is called with the parameter C<false> then L</launch> does not "
16915 "create a recovery process.  The purpose of the recovery process is to stop "
16916 "runaway qemu processes in the case where the main program aborts abruptly."
16917 msgstr ""
16918
16919 #. type: textblock
16920 #: ../fish/guestfish-actions.pod:4549
16921 msgid ""
16922 "This only has any effect if called before L</launch>, and the default is "
16923 "true."
16924 msgstr ""
16925
16926 #. type: textblock
16927 #: ../fish/guestfish-actions.pod:4552 ../src/guestfs-actions.pod:7025
16928 msgid ""
16929 "About the only time when you would want to disable this is if the main "
16930 "process will fork itself into the background (\"daemonize\" itself).  In "
16931 "this case the recovery process thinks that the main program has disappeared "
16932 "and so kills qemu, which is not very helpful."
16933 msgstr ""
16934
16935 #. type: =head2
16936 #: ../fish/guestfish-actions.pod:4558
16937 msgid "set-selinux"
16938 msgstr "set-selinux"
16939
16940 #. type: =head2
16941 #: ../fish/guestfish-actions.pod:4560
16942 msgid "selinux"
16943 msgstr "selinux"
16944
16945 #. type: verbatim
16946 #: ../fish/guestfish-actions.pod:4562
16947 #, no-wrap
16948 msgid ""
16949 " set-selinux true|false\n"
16950 "\n"
16951 msgstr ""
16952 " set-selinux true|false\n"
16953 "\n"
16954
16955 #. type: textblock
16956 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:7041
16957 msgid ""
16958 "This sets the selinux flag that is passed to the appliance at boot time.  "
16959 "The default is C<selinux=0> (disabled)."
16960 msgstr ""
16961
16962 #. type: textblock
16963 #: ../fish/guestfish-actions.pod:4567 ../src/guestfs-actions.pod:7044
16964 msgid ""
16965 "Note that if SELinux is enabled, it is always in Permissive mode "
16966 "(C<enforcing=0>)."
16967 msgstr ""
16968
16969 #. type: =head2
16970 #: ../fish/guestfish-actions.pod:4573
16971 msgid "set-smp"
16972 msgstr ""
16973
16974 #. type: =head2
16975 #: ../fish/guestfish-actions.pod:4575
16976 msgid "smp"
16977 msgstr ""
16978
16979 #. type: verbatim
16980 #: ../fish/guestfish-actions.pod:4577
16981 #, no-wrap
16982 msgid ""
16983 " set-smp smp\n"
16984 "\n"
16985 msgstr ""
16986
16987 #. type: textblock
16988 #: ../fish/guestfish-actions.pod:4579 ../src/guestfs-actions.pod:7060
16989 msgid ""
16990 "Change the number of virtual CPUs assigned to the appliance.  The default is "
16991 "C<1>.  Increasing this may improve performance, though often it has no "
16992 "effect."
16993 msgstr ""
16994
16995 #. type: textblock
16996 #: ../fish/guestfish-actions.pod:4583
16997 msgid "This function must be called before L</launch>."
16998 msgstr ""
16999
17000 #. type: =head2
17001 #: ../fish/guestfish-actions.pod:4585
17002 msgid "set-trace"
17003 msgstr "set-trace"
17004
17005 #. type: =head2
17006 #: ../fish/guestfish-actions.pod:4587
17007 msgid "trace"
17008 msgstr "trace"
17009
17010 #. type: verbatim
17011 #: ../fish/guestfish-actions.pod:4589
17012 #, no-wrap
17013 msgid ""
17014 " set-trace true|false\n"
17015 "\n"
17016 msgstr ""
17017 " set-trace true|false\n"
17018 "\n"
17019
17020 #. type: textblock
17021 #: ../fish/guestfish-actions.pod:4591 ../src/guestfs-actions.pod:7076
17022 msgid ""
17023 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
17024 "return values are traced."
17025 msgstr ""
17026
17027 #. type: textblock
17028 #: ../fish/guestfish-actions.pod:4594 ../src/guestfs-actions.pod:7079
17029 msgid ""
17030 "If you want to trace C API calls into libguestfs (and other libraries) then "
17031 "possibly a better way is to use the external ltrace(1) command."
17032 msgstr ""
17033
17034 #. type: textblock
17035 #: ../fish/guestfish-actions.pod:4598 ../src/guestfs-actions.pod:7083
17036 msgid ""
17037 "Command traces are disabled unless the environment variable "
17038 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
17039 msgstr ""
17040
17041 #. type: textblock
17042 #: ../fish/guestfish-actions.pod:4601
17043 msgid ""
17044 "Trace messages are normally sent to C<stderr>, unless you register a "
17045 "callback to send them somewhere else (see L</set-event-callback>)."
17046 msgstr ""
17047
17048 #. type: =head2
17049 #: ../fish/guestfish-actions.pod:4605
17050 msgid "set-verbose"
17051 msgstr "set-verbose"
17052
17053 #. type: =head2
17054 #: ../fish/guestfish-actions.pod:4607
17055 msgid "verbose"
17056 msgstr "verbose"
17057
17058 #. type: verbatim
17059 #: ../fish/guestfish-actions.pod:4609
17060 #, no-wrap
17061 msgid ""
17062 " set-verbose true|false\n"
17063 "\n"
17064 msgstr ""
17065 " set-verbose true|false\n"
17066 "\n"
17067
17068 #. type: textblock
17069 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:7100
17070 msgid "If C<verbose> is true, this turns on verbose messages."
17071 msgstr ""
17072
17073 #. type: textblock
17074 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:7102
17075 msgid ""
17076 "Verbose messages are disabled unless the environment variable "
17077 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
17078 msgstr ""
17079
17080 #. type: textblock
17081 #: ../fish/guestfish-actions.pod:4616
17082 msgid ""
17083 "Verbose messages are normally sent to C<stderr>, unless you register a "
17084 "callback to send them somewhere else (see L</set-event-callback>)."
17085 msgstr ""
17086
17087 #. type: =head2
17088 #: ../fish/guestfish-actions.pod:4620
17089 msgid "setcon"
17090 msgstr "setcon"
17091
17092 #. type: verbatim
17093 #: ../fish/guestfish-actions.pod:4622
17094 #, no-wrap
17095 msgid ""
17096 " setcon context\n"
17097 "\n"
17098 msgstr ""
17099 " setcon контекст\n"
17100 "\n"
17101
17102 #. type: textblock
17103 #: ../fish/guestfish-actions.pod:4624 ../src/guestfs-actions.pod:7119
17104 msgid ""
17105 "This sets the SELinux security context of the daemon to the string "
17106 "C<context>."
17107 msgstr ""
17108
17109 #. type: textblock
17110 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:7122
17111 msgid "See the documentation about SELINUX in L<guestfs(3)>."
17112 msgstr ""
17113
17114 #. type: =head2
17115 #: ../fish/guestfish-actions.pod:4629
17116 msgid "setxattr"
17117 msgstr "setxattr"
17118
17119 #. type: verbatim
17120 #: ../fish/guestfish-actions.pod:4631
17121 #, no-wrap
17122 msgid ""
17123 " setxattr xattr val vallen path\n"
17124 "\n"
17125 msgstr ""
17126
17127 #. type: textblock
17128 #: ../fish/guestfish-actions.pod:4633 ../src/guestfs-actions.pod:7137
17129 msgid ""
17130 "This call sets the extended attribute named C<xattr> of the file C<path> to "
17131 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
17132 msgstr ""
17133
17134 #. type: textblock
17135 #: ../fish/guestfish-actions.pod:4637
17136 msgid "See also: L</lsetxattr>, L<attr(5)>."
17137 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
17138
17139 #. type: =head2
17140 #: ../fish/guestfish-actions.pod:4639
17141 msgid "sfdisk"
17142 msgstr "sfdisk"
17143
17144 #. type: verbatim
17145 #: ../fish/guestfish-actions.pod:4641
17146 #, no-wrap
17147 msgid ""
17148 " sfdisk device cyls heads sectors 'lines ...'\n"
17149 "\n"
17150 msgstr ""
17151
17152 #. type: textblock
17153 #: ../fish/guestfish-actions.pod:4643 ../src/guestfs-actions.pod:7164
17154 msgid ""
17155 "This is a direct interface to the L<sfdisk(8)> program for creating "
17156 "partitions on block devices."
17157 msgstr ""
17158
17159 #. type: textblock
17160 #: ../fish/guestfish-actions.pod:4646 ../src/guestfs-actions.pod:7167
17161 msgid "C<device> should be a block device, for example C</dev/sda>."
17162 msgstr ""
17163
17164 #. type: textblock
17165 #: ../fish/guestfish-actions.pod:4648 ../src/guestfs-actions.pod:7169
17166 msgid ""
17167 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
17168 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
17169 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
17170 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
17171 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
17172 "the kernel) cannot work out the right geometry and you will need to tell it."
17173 msgstr ""
17174
17175 #. type: textblock
17176 #: ../fish/guestfish-actions.pod:4656 ../src/guestfs-actions.pod:7177
17177 msgid ""
17178 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
17179 "refer to the L<sfdisk(8)> manpage."
17180 msgstr ""
17181
17182 #. type: textblock
17183 #: ../fish/guestfish-actions.pod:4659 ../src/guestfs-actions.pod:7180
17184 msgid ""
17185 "To create a single partition occupying the whole disk, you would pass "
17186 "C<lines> as a single element list, when the single element being the string "
17187 "C<,> (comma)."
17188 msgstr ""
17189
17190 #. type: textblock
17191 #: ../fish/guestfish-actions.pod:4663
17192 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
17193 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
17194
17195 #. type: textblock
17196 #: ../fish/guestfish-actions.pod:4666 ../fish/guestfish-actions.pod:4686
17197 #: ../fish/guestfish-actions.pod:4705
17198 msgid ""
17199 "I<This function is deprecated.> In new code, use the L</part_add> call "
17200 "instead."
17201 msgstr ""
17202
17203 #. type: =head2
17204 #: ../fish/guestfish-actions.pod:4673
17205 msgid "sfdiskM"
17206 msgstr "sfdiskM"
17207
17208 #. type: verbatim
17209 #: ../fish/guestfish-actions.pod:4675
17210 #, no-wrap
17211 msgid ""
17212 " sfdiskM device 'lines ...'\n"
17213 "\n"
17214 msgstr ""
17215
17216 #. type: textblock
17217 #: ../fish/guestfish-actions.pod:4677
17218 msgid ""
17219 "This is a simplified interface to the L</sfdisk> command, where partition "
17220 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
17221 "you don't need to specify the cyls, heads and sectors parameters which were "
17222 "rarely if ever used anyway."
17223 msgstr ""
17224
17225 #. type: textblock
17226 #: ../fish/guestfish-actions.pod:4683
17227 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
17228 msgstr ""
17229 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
17230
17231 #. type: =head2
17232 #: ../fish/guestfish-actions.pod:4693
17233 msgid "sfdisk-N"
17234 msgstr "sfdisk-N"
17235
17236 #. type: verbatim
17237 #: ../fish/guestfish-actions.pod:4695
17238 #, no-wrap
17239 msgid ""
17240 " sfdisk-N device partnum cyls heads sectors line\n"
17241 "\n"
17242 msgstr ""
17243
17244 #. type: textblock
17245 #: ../fish/guestfish-actions.pod:4697 ../src/guestfs-actions.pod:7236
17246 msgid ""
17247 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
17248 "(note: C<n> counts from 1)."
17249 msgstr ""
17250
17251 #. type: textblock
17252 #: ../fish/guestfish-actions.pod:4700
17253 msgid ""
17254 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
17255 "cyls/heads/sectors parameters."
17256 msgstr ""
17257
17258 #. type: textblock
17259 #: ../fish/guestfish-actions.pod:4703
17260 msgid "See also: L</part-add>"
17261 msgstr "Див. також L</part-add>"
17262
17263 #. type: =head2
17264 #: ../fish/guestfish-actions.pod:4712
17265 msgid "sfdisk-disk-geometry"
17266 msgstr "sfdisk-disk-geometry"
17267
17268 #. type: verbatim
17269 #: ../fish/guestfish-actions.pod:4714
17270 #, no-wrap
17271 msgid ""
17272 " sfdisk-disk-geometry device\n"
17273 "\n"
17274 msgstr ""
17275 " sfdisk-disk-geometry пристрій\n"
17276 "\n"
17277
17278 #. type: textblock
17279 #: ../fish/guestfish-actions.pod:4716
17280 msgid ""
17281 "This displays the disk geometry of C<device> read from the partition table.  "
17282 "Especially in the case where the underlying block device has been resized, "
17283 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
17284 "kernel-geometry>)."
17285 msgstr ""
17286
17287 #. type: textblock
17288 #: ../fish/guestfish-actions.pod:4721 ../fish/guestfish-actions.pod:4730
17289 #: ../src/guestfs-actions.pod:7259 ../src/guestfs-actions.pod:7275
17290 msgid "The result is in human-readable format, and not designed to be parsed."
17291 msgstr ""
17292
17293 #. type: =head2
17294 #: ../fish/guestfish-actions.pod:4724
17295 msgid "sfdisk-kernel-geometry"
17296 msgstr "sfdisk-kernel-geometry"
17297
17298 #. type: verbatim
17299 #: ../fish/guestfish-actions.pod:4726
17300 #, no-wrap
17301 msgid ""
17302 " sfdisk-kernel-geometry device\n"
17303 "\n"
17304 msgstr ""
17305 " sfdisk-kernel-geometry пристрій\n"
17306 "\n"
17307
17308 #. type: textblock
17309 #: ../fish/guestfish-actions.pod:4728 ../src/guestfs-actions.pod:7273
17310 msgid "This displays the kernel's idea of the geometry of C<device>."
17311 msgstr ""
17312
17313 #. type: =head2
17314 #: ../fish/guestfish-actions.pod:4733
17315 msgid "sfdisk-l"
17316 msgstr "sfdisk-l"
17317
17318 #. type: verbatim
17319 #: ../fish/guestfish-actions.pod:4735
17320 #, no-wrap
17321 msgid ""
17322 " sfdisk-l device\n"
17323 "\n"
17324 msgstr ""
17325 " sfdisk-l пристрій\n"
17326 "\n"
17327
17328 #. type: textblock
17329 #: ../fish/guestfish-actions.pod:4737 ../src/guestfs-actions.pod:7296
17330 msgid ""
17331 "This displays the partition table on C<device>, in the human-readable output "
17332 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
17333 msgstr ""
17334
17335 #. type: textblock
17336 #: ../fish/guestfish-actions.pod:4741
17337 msgid "See also: L</part-list>"
17338 msgstr "Див. також L</part-list>"
17339
17340 #. type: textblock
17341 #: ../fish/guestfish-actions.pod:4743
17342 msgid ""
17343 "I<This function is deprecated.> In new code, use the L</part_list> call "
17344 "instead."
17345 msgstr ""
17346
17347 #. type: =head2
17348 #: ../fish/guestfish-actions.pod:4750
17349 msgid "sh"
17350 msgstr "sh"
17351
17352 #. type: verbatim
17353 #: ../fish/guestfish-actions.pod:4752
17354 #, no-wrap
17355 msgid ""
17356 " sh command\n"
17357 "\n"
17358 msgstr ""
17359 " sh команда\n"
17360 "\n"
17361
17362 #. type: textblock
17363 #: ../fish/guestfish-actions.pod:4754 ../src/guestfs-actions.pod:7313
17364 msgid ""
17365 "This call runs a command from the guest filesystem via the guest's C</bin/"
17366 "sh>."
17367 msgstr ""
17368
17369 #. type: textblock
17370 #: ../fish/guestfish-actions.pod:4757
17371 msgid "This is like L</command>, but passes the command to:"
17372 msgstr ""
17373
17374 #. type: verbatim
17375 #: ../fish/guestfish-actions.pod:4759 ../src/guestfs-actions.pod:7318
17376 #, no-wrap
17377 msgid ""
17378 " /bin/sh -c \"command\"\n"
17379 "\n"
17380 msgstr ""
17381
17382 #. type: textblock
17383 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7320
17384 msgid ""
17385 "Depending on the guest's shell, this usually results in wildcards being "
17386 "expanded, shell expressions being interpolated and so on."
17387 msgstr ""
17388
17389 #. type: textblock
17390 #: ../fish/guestfish-actions.pod:4765
17391 msgid "All the provisos about L</command> apply to this call."
17392 msgstr ""
17393
17394 #. type: =head2
17395 #: ../fish/guestfish-actions.pod:4767
17396 msgid "sh-lines"
17397 msgstr "sh-lines"
17398
17399 #. type: verbatim
17400 #: ../fish/guestfish-actions.pod:4769
17401 #, no-wrap
17402 msgid ""
17403 " sh-lines command\n"
17404 "\n"
17405 msgstr ""
17406 " sh-lines команда\n"
17407 "\n"
17408
17409 #. type: textblock
17410 #: ../fish/guestfish-actions.pod:4771
17411 msgid "This is the same as L</sh>, but splits the result into a list of lines."
17412 msgstr ""
17413
17414 #. type: textblock
17415 #: ../fish/guestfish-actions.pod:4774
17416 msgid "See also: L</command-lines>"
17417 msgstr "Див. також L</command-lines>"
17418
17419 #. type: =head2
17420 #: ../fish/guestfish-actions.pod:4776
17421 msgid "sleep"
17422 msgstr "sleep"
17423
17424 #. type: verbatim
17425 #: ../fish/guestfish-actions.pod:4778
17426 #, no-wrap
17427 msgid ""
17428 " sleep secs\n"
17429 "\n"
17430 msgstr ""
17431 " sleep час_у_секундах\n"
17432 "\n"
17433
17434 #. type: textblock
17435 #: ../fish/guestfish-actions.pod:4780 ../src/guestfs-actions.pod:7354
17436 msgid "Sleep for C<secs> seconds."
17437 msgstr ""
17438
17439 #. type: =head2
17440 #: ../fish/guestfish-actions.pod:4782
17441 msgid "stat"
17442 msgstr "stat"
17443
17444 #. type: verbatim
17445 #: ../fish/guestfish-actions.pod:4784
17446 #, no-wrap
17447 msgid ""
17448 " stat path\n"
17449 "\n"
17450 msgstr ""
17451 " stat шлях\n"
17452 "\n"
17453
17454 #. type: textblock
17455 #: ../fish/guestfish-actions.pod:4788 ../src/guestfs-actions.pod:7368
17456 msgid "This is the same as the C<stat(2)> system call."
17457 msgstr ""
17458
17459 #. type: =head2
17460 #: ../fish/guestfish-actions.pod:4790
17461 msgid "statvfs"
17462 msgstr "statvfs"
17463
17464 #. type: verbatim
17465 #: ../fish/guestfish-actions.pod:4792
17466 #, no-wrap
17467 msgid ""
17468 " statvfs path\n"
17469 "\n"
17470 msgstr ""
17471 " statvfs шлях\n"
17472 "\n"
17473
17474 #. type: textblock
17475 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7382
17476 msgid ""
17477 "Returns file system statistics for any mounted file system.  C<path> should "
17478 "be a file or directory in the mounted file system (typically it is the mount "
17479 "point itself, but it doesn't need to be)."
17480 msgstr ""
17481
17482 #. type: textblock
17483 #: ../fish/guestfish-actions.pod:4798 ../src/guestfs-actions.pod:7386
17484 msgid "This is the same as the C<statvfs(2)> system call."
17485 msgstr ""
17486
17487 #. type: =head2
17488 #: ../fish/guestfish-actions.pod:4800
17489 msgid "strings"
17490 msgstr "strings"
17491
17492 #. type: verbatim
17493 #: ../fish/guestfish-actions.pod:4802
17494 #, no-wrap
17495 msgid ""
17496 " strings path\n"
17497 "\n"
17498 msgstr ""
17499 " strings шлях\n"
17500 "\n"
17501
17502 #. type: textblock
17503 #: ../fish/guestfish-actions.pod:4804 ../src/guestfs-actions.pod:7400
17504 msgid ""
17505 "This runs the L<strings(1)> command on a file and returns the list of "
17506 "printable strings found."
17507 msgstr ""
17508
17509 #. type: =head2
17510 #: ../fish/guestfish-actions.pod:4810
17511 msgid "strings-e"
17512 msgstr "strings-e"
17513
17514 #. type: verbatim
17515 #: ../fish/guestfish-actions.pod:4812
17516 #, no-wrap
17517 msgid ""
17518 " strings-e encoding path\n"
17519 "\n"
17520 msgstr ""
17521 " strings-e кодування шлях\n"
17522 "\n"
17523
17524 #. type: textblock
17525 #: ../fish/guestfish-actions.pod:4814
17526 msgid ""
17527 "This is like the L</strings> command, but allows you to specify the encoding "
17528 "of strings that are looked for in the source file C<path>."
17529 msgstr ""
17530
17531 #. type: textblock
17532 #: ../fish/guestfish-actions.pod:4818 ../src/guestfs-actions.pod:7423
17533 msgid "Allowed encodings are:"
17534 msgstr "Можливими кодуваннями є:"
17535
17536 #. type: =item
17537 #: ../fish/guestfish-actions.pod:4822 ../src/guestfs-actions.pod:7427
17538 msgid "s"
17539 msgstr "s"
17540
17541 #. type: textblock
17542 #: ../fish/guestfish-actions.pod:4824
17543 msgid ""
17544 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
17545 "ISO-8859-X (this is what L</strings> uses)."
17546 msgstr ""
17547
17548 #. type: =item
17549 #: ../fish/guestfish-actions.pod:4827 ../src/guestfs-actions.pod:7432
17550 msgid "S"
17551 msgstr "S"
17552
17553 #. type: textblock
17554 #: ../fish/guestfish-actions.pod:4829 ../src/guestfs-actions.pod:7434
17555 msgid "Single 8-bit-byte characters."
17556 msgstr "Окремі 8-бітові-байтові символи."
17557
17558 #. type: =item
17559 #: ../fish/guestfish-actions.pod:4831 ../src/guestfs-actions.pod:7436
17560 msgid "b"
17561 msgstr "b"
17562
17563 #. type: textblock
17564 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7438
17565 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
17566 msgstr ""
17567
17568 #. type: =item
17569 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7441
17570 msgid "l (lower case letter L)"
17571 msgstr ""
17572
17573 #. type: textblock
17574 #: ../fish/guestfish-actions.pod:4838 ../src/guestfs-actions.pod:7443
17575 msgid ""
17576 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
17577 "examining binaries in Windows guests."
17578 msgstr ""
17579
17580 #. type: =item
17581 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7446
17582 msgid "B"
17583 msgstr "B"
17584
17585 #. type: textblock
17586 #: ../fish/guestfish-actions.pod:4843 ../src/guestfs-actions.pod:7448
17587 msgid "32-bit big endian such as UCS-4BE."
17588 msgstr ""
17589
17590 #. type: =item
17591 #: ../fish/guestfish-actions.pod:4845 ../src/guestfs-actions.pod:7450
17592 msgid "L"
17593 msgstr "L"
17594
17595 #. type: textblock
17596 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7452
17597 msgid "32-bit little endian such as UCS-4LE."
17598 msgstr ""
17599
17600 #. type: textblock
17601 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7456
17602 msgid "The returned strings are transcoded to UTF-8."
17603 msgstr ""
17604
17605 #. type: =head2
17606 #: ../fish/guestfish-actions.pod:4856
17607 msgid "swapoff-device"
17608 msgstr "swapoff-device"
17609
17610 #. type: verbatim
17611 #: ../fish/guestfish-actions.pod:4858
17612 #, no-wrap
17613 msgid ""
17614 " swapoff-device device\n"
17615 "\n"
17616 msgstr ""
17617 " swapoff-device пристрій\n"
17618 "\n"
17619
17620 #. type: textblock
17621 #: ../fish/guestfish-actions.pod:4860
17622 msgid ""
17623 "This command disables the libguestfs appliance swap device or partition "
17624 "named C<device>.  See L</swapon-device>."
17625 msgstr ""
17626
17627 #. type: =head2
17628 #: ../fish/guestfish-actions.pod:4864
17629 msgid "swapoff-file"
17630 msgstr "swapoff-file"
17631
17632 #. type: verbatim
17633 #: ../fish/guestfish-actions.pod:4866
17634 #, no-wrap
17635 msgid ""
17636 " swapoff-file file\n"
17637 "\n"
17638 msgstr ""
17639 " swapoff-file файл\n"
17640 "\n"
17641
17642 #. type: textblock
17643 #: ../fish/guestfish-actions.pod:4868 ../src/guestfs-actions.pod:7487
17644 msgid "This command disables the libguestfs appliance swap on file."
17645 msgstr ""
17646
17647 #. type: =head2
17648 #: ../fish/guestfish-actions.pod:4870
17649 msgid "swapoff-label"
17650 msgstr "swapoff-label"
17651
17652 #. type: verbatim
17653 #: ../fish/guestfish-actions.pod:4872
17654 #, no-wrap
17655 msgid ""
17656 " swapoff-label label\n"
17657 "\n"
17658 msgstr ""
17659 " swapoff-label мітка\n"
17660 "\n"
17661
17662 #. type: textblock
17663 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7499
17664 msgid ""
17665 "This command disables the libguestfs appliance swap on labeled swap "
17666 "partition."
17667 msgstr ""
17668
17669 #. type: =head2
17670 #: ../fish/guestfish-actions.pod:4877
17671 msgid "swapoff-uuid"
17672 msgstr "swapoff-uuid"
17673
17674 #. type: verbatim
17675 #: ../fish/guestfish-actions.pod:4879
17676 #, no-wrap
17677 msgid ""
17678 " swapoff-uuid uuid\n"
17679 "\n"
17680 msgstr ""
17681 " swapoff-uuid uuid\n"
17682 "\n"
17683
17684 #. type: textblock
17685 #: ../fish/guestfish-actions.pod:4881 ../src/guestfs-actions.pod:7512
17686 msgid ""
17687 "This command disables the libguestfs appliance swap partition with the given "
17688 "UUID."
17689 msgstr ""
17690
17691 #. type: =head2
17692 #: ../fish/guestfish-actions.pod:4884
17693 msgid "swapon-device"
17694 msgstr "swapon-device"
17695
17696 #. type: verbatim
17697 #: ../fish/guestfish-actions.pod:4886
17698 #, no-wrap
17699 msgid ""
17700 " swapon-device device\n"
17701 "\n"
17702 msgstr ""
17703 " swapon-device пристрій\n"
17704 "\n"
17705
17706 #. type: textblock
17707 #: ../fish/guestfish-actions.pod:4888
17708 msgid ""
17709 "This command enables the libguestfs appliance to use the swap device or "
17710 "partition named C<device>.  The increased memory is made available for all "
17711 "commands, for example those run using L</command> or L</sh>."
17712 msgstr ""
17713
17714 #. type: textblock
17715 #: ../fish/guestfish-actions.pod:4893 ../src/guestfs-actions.pod:7530
17716 msgid ""
17717 "Note that you should not swap to existing guest swap partitions unless you "
17718 "know what you are doing.  They may contain hibernation information, or other "
17719 "information that the guest doesn't want you to trash.  You also risk leaking "
17720 "information about the host to the guest this way.  Instead, attach a new "
17721 "host device to the guest and swap on that."
17722 msgstr ""
17723
17724 #. type: =head2
17725 #: ../fish/guestfish-actions.pod:4900
17726 msgid "swapon-file"
17727 msgstr "swapon-file"
17728
17729 #. type: verbatim
17730 #: ../fish/guestfish-actions.pod:4902
17731 #, no-wrap
17732 msgid ""
17733 " swapon-file file\n"
17734 "\n"
17735 msgstr ""
17736 " swapon-file файл\n"
17737 "\n"
17738
17739 #. type: textblock
17740 #: ../fish/guestfish-actions.pod:4904
17741 msgid ""
17742 "This command enables swap to a file.  See L</swapon-device> for other notes."
17743 msgstr ""
17744
17745 #. type: =head2
17746 #: ../fish/guestfish-actions.pod:4907
17747 msgid "swapon-label"
17748 msgstr "swapon-label"
17749
17750 #. type: verbatim
17751 #: ../fish/guestfish-actions.pod:4909
17752 #, no-wrap
17753 msgid ""
17754 " swapon-label label\n"
17755 "\n"
17756 msgstr ""
17757 " swapon-label мітка\n"
17758 "\n"
17759
17760 #. type: textblock
17761 #: ../fish/guestfish-actions.pod:4911
17762 msgid ""
17763 "This command enables swap to a labeled swap partition.  See L</swapon-"
17764 "device> for other notes."
17765 msgstr ""
17766
17767 #. type: =head2
17768 #: ../fish/guestfish-actions.pod:4914
17769 msgid "swapon-uuid"
17770 msgstr "swapon-uuid"
17771
17772 #. type: verbatim
17773 #: ../fish/guestfish-actions.pod:4916
17774 #, no-wrap
17775 msgid ""
17776 " swapon-uuid uuid\n"
17777 "\n"
17778 msgstr ""
17779 " swapon-uuid uuid\n"
17780 "\n"
17781
17782 #. type: textblock
17783 #: ../fish/guestfish-actions.pod:4918
17784 msgid ""
17785 "This command enables swap to a swap partition with the given UUID.  See L</"
17786 "swapon-device> for other notes."
17787 msgstr ""
17788
17789 #. type: =head2
17790 #: ../fish/guestfish-actions.pod:4921
17791 msgid "sync"
17792 msgstr "sync"
17793
17794 #. type: verbatim
17795 #: ../fish/guestfish-actions.pod:4923
17796 #, no-wrap
17797 msgid ""
17798 " sync\n"
17799 "\n"
17800 msgstr ""
17801 " sync\n"
17802 "\n"
17803
17804 #. type: textblock
17805 #: ../fish/guestfish-actions.pod:4925 ../src/guestfs-actions.pod:7585
17806 msgid ""
17807 "This syncs the disk, so that any writes are flushed through to the "
17808 "underlying disk image."
17809 msgstr ""
17810
17811 #. type: textblock
17812 #: ../fish/guestfish-actions.pod:4928 ../src/guestfs-actions.pod:7588
17813 msgid ""
17814 "You should always call this if you have modified a disk image, before "
17815 "closing the handle."
17816 msgstr ""
17817
17818 #. type: =head2
17819 #: ../fish/guestfish-actions.pod:4931
17820 msgid "tail"
17821 msgstr "tail"
17822
17823 #. type: verbatim
17824 #: ../fish/guestfish-actions.pod:4933
17825 #, no-wrap
17826 msgid ""
17827 " tail path\n"
17828 "\n"
17829 msgstr ""
17830 " tail шлях\n"
17831 "\n"
17832
17833 #. type: textblock
17834 #: ../fish/guestfish-actions.pod:4935 ../src/guestfs-actions.pod:7601
17835 msgid ""
17836 "This command returns up to the last 10 lines of a file as a list of strings."
17837 msgstr ""
17838
17839 #. type: =head2
17840 #: ../fish/guestfish-actions.pod:4941
17841 msgid "tail-n"
17842 msgstr "tail-n"
17843
17844 #. type: verbatim
17845 #: ../fish/guestfish-actions.pod:4943
17846 #, no-wrap
17847 msgid ""
17848 " tail-n nrlines path\n"
17849 "\n"
17850 msgstr ""
17851
17852 #. type: textblock
17853 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7620
17854 msgid ""
17855 "If the parameter C<nrlines> is a positive number, this returns the last "
17856 "C<nrlines> lines of the file C<path>."
17857 msgstr ""
17858
17859 #. type: textblock
17860 #: ../fish/guestfish-actions.pod:4948 ../src/guestfs-actions.pod:7623
17861 msgid ""
17862 "If the parameter C<nrlines> is a negative number, this returns lines from "
17863 "the file C<path>, starting with the C<-nrlines>th line."
17864 msgstr ""
17865
17866 #. type: =head2
17867 #: ../fish/guestfish-actions.pod:4956
17868 msgid "tar-in"
17869 msgstr "tar-in"
17870
17871 #. type: verbatim
17872 #: ../fish/guestfish-actions.pod:4958
17873 #, no-wrap
17874 msgid ""
17875 " tar-in (tarfile|-) directory\n"
17876 "\n"
17877 msgstr ""
17878 " tar-in (файл_tar|-) каталог\n"
17879 "\n"
17880
17881 #. type: textblock
17882 #: ../fish/guestfish-actions.pod:4960 ../src/guestfs-actions.pod:7644
17883 msgid ""
17884 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
17885 "tar file) into C<directory>."
17886 msgstr ""
17887
17888 #. type: textblock
17889 #: ../fish/guestfish-actions.pod:4963
17890 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
17891 msgstr ""
17892
17893 #. type: =head2
17894 #: ../fish/guestfish-actions.pod:4968
17895 msgid "tar-out"
17896 msgstr "tar-out"
17897
17898 #. type: verbatim
17899 #: ../fish/guestfish-actions.pod:4970
17900 #, no-wrap
17901 msgid ""
17902 " tar-out directory (tarfile|-)\n"
17903 "\n"
17904 msgstr ""
17905 " tar-out каталог (файл tar|-)\n"
17906 "\n"
17907
17908 #. type: textblock
17909 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7661
17910 msgid ""
17911 "This command packs the contents of C<directory> and downloads it to local "
17912 "file C<tarfile>."
17913 msgstr ""
17914
17915 #. type: textblock
17916 #: ../fish/guestfish-actions.pod:4975
17917 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
17918 msgstr ""
17919
17920 #. type: =head2
17921 #: ../fish/guestfish-actions.pod:4980
17922 msgid "tgz-in"
17923 msgstr "tgz-in"
17924
17925 #. type: verbatim
17926 #: ../fish/guestfish-actions.pod:4982
17927 #, no-wrap
17928 msgid ""
17929 " tgz-in (tarball|-) directory\n"
17930 "\n"
17931 msgstr ""
17932 " tgz-in (архів tar|-) каталог\n"
17933 "\n"
17934
17935 #. type: textblock
17936 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7678
17937 msgid ""
17938 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17939 "tar file) into C<directory>."
17940 msgstr ""
17941
17942 #. type: textblock
17943 #: ../fish/guestfish-actions.pod:4987
17944 msgid "To upload an uncompressed tarball, use L</tar-in>."
17945 msgstr ""
17946
17947 #. type: =head2
17948 #: ../fish/guestfish-actions.pod:4991
17949 msgid "tgz-out"
17950 msgstr "tgz-out"
17951
17952 #. type: verbatim
17953 #: ../fish/guestfish-actions.pod:4993
17954 #, no-wrap
17955 msgid ""
17956 " tgz-out directory (tarball|-)\n"
17957 "\n"
17958 msgstr ""
17959 " tgz-out каталог (архів tar|-)\n"
17960 "\n"
17961
17962 #. type: textblock
17963 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7694
17964 msgid ""
17965 "This command packs the contents of C<directory> and downloads it to local "
17966 "file C<tarball>."
17967 msgstr ""
17968
17969 #. type: textblock
17970 #: ../fish/guestfish-actions.pod:4998
17971 msgid "To download an uncompressed tarball, use L</tar-out>."
17972 msgstr ""
17973
17974 #. type: =head2
17975 #: ../fish/guestfish-actions.pod:5002
17976 msgid "touch"
17977 msgstr "touch"
17978
17979 #. type: verbatim
17980 #: ../fish/guestfish-actions.pod:5004
17981 #, no-wrap
17982 msgid ""
17983 " touch path\n"
17984 "\n"
17985 msgstr ""
17986 " touch шлях\n"
17987 "\n"
17988
17989 #. type: textblock
17990 #: ../fish/guestfish-actions.pod:5006 ../src/guestfs-actions.pod:7709
17991 msgid ""
17992 "Touch acts like the L<touch(1)> command.  It can be used to update the "
17993 "timestamps on a file, or, if the file does not exist, to create a new zero-"
17994 "length file."
17995 msgstr ""
17996
17997 #. type: textblock
17998 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7713
17999 msgid ""
18000 "This command only works on regular files, and will fail on other file types "
18001 "such as directories, symbolic links, block special etc."
18002 msgstr ""
18003
18004 #. type: =head2
18005 #: ../fish/guestfish-actions.pod:5013
18006 msgid "truncate"
18007 msgstr "truncate"
18008
18009 #. type: verbatim
18010 #: ../fish/guestfish-actions.pod:5015
18011 #, no-wrap
18012 msgid ""
18013 " truncate path\n"
18014 "\n"
18015 msgstr ""
18016 " truncate шлях\n"
18017 "\n"
18018
18019 #. type: textblock
18020 #: ../fish/guestfish-actions.pod:5017 ../src/guestfs-actions.pod:7726
18021 msgid ""
18022 "This command truncates C<path> to a zero-length file.  The file must exist "
18023 "already."
18024 msgstr ""
18025
18026 #. type: =head2
18027 #: ../fish/guestfish-actions.pod:5020
18028 msgid "truncate-size"
18029 msgstr "truncate-size"
18030
18031 #. type: verbatim
18032 #: ../fish/guestfish-actions.pod:5022
18033 #, no-wrap
18034 msgid ""
18035 " truncate-size path size\n"
18036 "\n"
18037 msgstr ""
18038 " truncate-size шлях розмір\n"
18039 "\n"
18040
18041 #. type: textblock
18042 #: ../fish/guestfish-actions.pod:5024 ../src/guestfs-actions.pod:7740
18043 msgid ""
18044 "This command truncates C<path> to size C<size> bytes.  The file must exist "
18045 "already."
18046 msgstr ""
18047
18048 #. type: textblock
18049 #: ../fish/guestfish-actions.pod:5027
18050 msgid ""
18051 "If the current file size is less than C<size> then the file is extended to "
18052 "the required size with zero bytes.  This creates a sparse file (ie. disk "
18053 "blocks are not allocated for the file until you write to it).  To create a "
18054 "non-sparse file of zeroes, use L</fallocate64> instead."
18055 msgstr ""
18056
18057 #. type: =head2
18058 #: ../fish/guestfish-actions.pod:5033
18059 #, fuzzy
18060 #| msgid "tune2fs-l"
18061 msgid "tune2fs"
18062 msgstr "tune2fs-l"
18063
18064 #. type: verbatim
18065 #: ../fish/guestfish-actions.pod:5035
18066 #, no-wrap
18067 msgid ""
18068 " tune2fs device [force:true|false] [maxmountcount:N] [mountcount:N] [errorbehavior:..] [group:N] [intervalbetweenchecks:N] [reservedblockspercentage:N] [lastmounteddirectory:..] [reservedblockscount:N] [user:N]\n"
18069 "\n"
18070 msgstr ""
18071
18072 #. type: textblock
18073 #: ../fish/guestfish-actions.pod:5037 ../src/guestfs-actions.pod:7776
18074 msgid ""
18075 "This call allows you to adjust various filesystem parameters of an ext2/ext3/"
18076 "ext4 filesystem called C<device>."
18077 msgstr ""
18078
18079 #. type: textblock
18080 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7785
18081 msgid ""
18082 "Force tune2fs to complete the operation even in the face of errors.  This is "
18083 "the same as the tune2fs C<-f> option."
18084 msgstr ""
18085
18086 #. type: =item
18087 #: ../fish/guestfish-actions.pod:5049 ../src/guestfs-actions.pod:7788
18088 #, fuzzy
18089 #| msgid "mkmountpoint"
18090 msgid "C<maxmountcount>"
18091 msgstr "mkmountpoint"
18092
18093 #. type: textblock
18094 #: ../fish/guestfish-actions.pod:5051 ../src/guestfs-actions.pod:7790
18095 msgid ""
18096 "Set the number of mounts after which the filesystem is checked by L<e2fsck(8)"
18097 ">.  If this is C<0> then the number of mounts is disregarded.  This is the "
18098 "same as the tune2fs C<-c> option."
18099 msgstr ""
18100
18101 #. type: =item
18102 #: ../fish/guestfish-actions.pod:5055 ../src/guestfs-actions.pod:7794
18103 #, fuzzy
18104 #| msgid "mountpoints"
18105 msgid "C<mountcount>"
18106 msgstr "mountpoints"
18107
18108 #. type: textblock
18109 #: ../fish/guestfish-actions.pod:5057 ../src/guestfs-actions.pod:7796
18110 msgid ""
18111 "Set the number of times the filesystem has been mounted.  This is the same "
18112 "as the tune2fs C<-C> option."
18113 msgstr ""
18114
18115 #. type: =item
18116 #: ../fish/guestfish-actions.pod:5060 ../src/guestfs-actions.pod:7799
18117 msgid "C<errorbehavior>"
18118 msgstr ""
18119
18120 #. type: textblock
18121 #: ../fish/guestfish-actions.pod:5062 ../src/guestfs-actions.pod:7801
18122 msgid ""
18123 "Change the behavior of the kernel code when errors are detected.  Possible "
18124 "values currently are: C<continue>, C<remount-ro>, C<panic>.  In practice "
18125 "these options don't really make any difference, particularly for write "
18126 "errors."
18127 msgstr ""
18128
18129 #. type: textblock
18130 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7806
18131 msgid "This is the same as the tune2fs C<-e> option."
18132 msgstr ""
18133
18134 #. type: =item
18135 #: ../fish/guestfish-actions.pod:5069 ../src/guestfs-actions.pod:7808
18136 #, fuzzy
18137 #| msgid "B<--volgroups>"
18138 msgid "C<group>"
18139 msgstr "B<--volgroups>"
18140
18141 #. type: textblock
18142 #: ../fish/guestfish-actions.pod:5071 ../src/guestfs-actions.pod:7810
18143 msgid ""
18144 "Set the group which can use reserved filesystem blocks.  This is the same as "
18145 "the tune2fs C<-g> option except that it can only be specified as a number."
18146 msgstr ""
18147
18148 #. type: =item
18149 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7814
18150 msgid "C<intervalbetweenchecks>"
18151 msgstr ""
18152
18153 #. type: textblock
18154 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7816
18155 msgid ""
18156 "Adjust the maximal time between two filesystem checks (in seconds).  If the "
18157 "option is passed as C<0> then time-dependent checking is disabled."
18158 msgstr ""
18159
18160 #. type: textblock
18161 #: ../fish/guestfish-actions.pod:5081 ../src/guestfs-actions.pod:7820
18162 msgid "This is the same as the tune2fs C<-i> option."
18163 msgstr ""
18164
18165 #. type: =item
18166 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7822
18167 msgid "C<reservedblockspercentage>"
18168 msgstr ""
18169
18170 #. type: textblock
18171 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7824
18172 msgid ""
18173 "Set the percentage of the filesystem which may only be allocated by "
18174 "privileged processes.  This is the same as the tune2fs C<-m> option."
18175 msgstr ""
18176
18177 #. type: =item
18178 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7828
18179 msgid "C<lastmounteddirectory>"
18180 msgstr ""
18181
18182 #. type: textblock
18183 #: ../fish/guestfish-actions.pod:5091 ../src/guestfs-actions.pod:7830
18184 msgid ""
18185 "Set the last mounted directory.  This is the same as the tune2fs C<-M> "
18186 "option."
18187 msgstr ""
18188
18189 #. type: =item
18190 #: ../fish/guestfish-actions.pod:5094 ../src/guestfs-actions.pod:7833
18191 msgid ""
18192 "C<reservedblockscount> Set the number of reserved filesystem blocks.  This "
18193 "is the same as the tune2fs C<-r> option."
18194 msgstr ""
18195
18196 #. type: =item
18197 #: ../fish/guestfish-actions.pod:5098 ../src/guestfs-actions.pod:7837
18198 msgid "C<user>"
18199 msgstr ""
18200
18201 #. type: textblock
18202 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7839
18203 msgid ""
18204 "Set the user who can use the reserved filesystem blocks.  This is the same "
18205 "as the tune2fs C<-u> option except that it can only be specified as a number."
18206 msgstr ""
18207
18208 #. type: textblock
18209 #: ../fish/guestfish-actions.pod:5106
18210 msgid ""
18211 "To get the current values of filesystem parameters, see L</tune2fs-l>.  For "
18212 "precise details of how tune2fs works, see the L<tune2fs(8)> man page."
18213 msgstr ""
18214
18215 #. type: =head2
18216 #: ../fish/guestfish-actions.pod:5112
18217 msgid "tune2fs-l"
18218 msgstr "tune2fs-l"
18219
18220 #. type: verbatim
18221 #: ../fish/guestfish-actions.pod:5114
18222 #, no-wrap
18223 msgid ""
18224 " tune2fs-l device\n"
18225 "\n"
18226 msgstr ""
18227 " tune2fs-l пристрій\n"
18228 "\n"
18229
18230 #. type: textblock
18231 #: ../fish/guestfish-actions.pod:5116 ../src/guestfs-actions.pod:7881
18232 msgid ""
18233 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
18234 "C<device>."
18235 msgstr ""
18236
18237 #. type: textblock
18238 #: ../fish/guestfish-actions.pod:5119 ../src/guestfs-actions.pod:7884
18239 msgid ""
18240 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
18241 "for more details.  The list of fields returned isn't clearly defined, and "
18242 "depends on both the version of C<tune2fs> that libguestfs was built against, "
18243 "and the filesystem itself."
18244 msgstr ""
18245
18246 #. type: =head2
18247 #: ../fish/guestfish-actions.pod:5124
18248 msgid "txz-in"
18249 msgstr "txz-in"
18250
18251 #. type: verbatim
18252 #: ../fish/guestfish-actions.pod:5126
18253 #, no-wrap
18254 msgid ""
18255 " txz-in (tarball|-) directory\n"
18256 "\n"
18257 msgstr ""
18258 " txz-in (архів tar|-) каталог\n"
18259 "\n"
18260
18261 #. type: textblock
18262 #: ../fish/guestfish-actions.pod:5128 ../src/guestfs-actions.pod:7904
18263 msgid ""
18264 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
18265 "tar file) into C<directory>."
18266 msgstr ""
18267
18268 #. type: =head2
18269 #: ../fish/guestfish-actions.pod:5133
18270 msgid "txz-out"
18271 msgstr "txz-out"
18272
18273 #. type: verbatim
18274 #: ../fish/guestfish-actions.pod:5135
18275 #, no-wrap
18276 msgid ""
18277 " txz-out directory (tarball|-)\n"
18278 "\n"
18279 msgstr ""
18280 " txz-out каталог (архів tar|-)\n"
18281 "\n"
18282
18283 #. type: textblock
18284 #: ../fish/guestfish-actions.pod:5137 ../src/guestfs-actions.pod:7918
18285 msgid ""
18286 "This command packs the contents of C<directory> and downloads it to local "
18287 "file C<tarball> (as an xz compressed tar archive)."
18288 msgstr ""
18289
18290 #. type: =head2
18291 #: ../fish/guestfish-actions.pod:5142
18292 msgid "umask"
18293 msgstr "umask"
18294
18295 #. type: verbatim
18296 #: ../fish/guestfish-actions.pod:5144
18297 #, no-wrap
18298 msgid ""
18299 " umask mask\n"
18300 "\n"
18301 msgstr ""
18302 " umask маска\n"
18303 "\n"
18304
18305 #. type: textblock
18306 #: ../fish/guestfish-actions.pod:5146 ../src/guestfs-actions.pod:7931
18307 msgid ""
18308 "This function sets the mask used for creating new files and device nodes to "
18309 "C<mask & 0777>."
18310 msgstr ""
18311
18312 #. type: textblock
18313 #: ../fish/guestfish-actions.pod:5149 ../src/guestfs-actions.pod:7934
18314 msgid ""
18315 "Typical umask values would be C<022> which creates new files with "
18316 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
18317 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
18318 msgstr ""
18319
18320 #. type: textblock
18321 #: ../fish/guestfish-actions.pod:5154 ../src/guestfs-actions.pod:7939
18322 msgid ""
18323 "The default umask is C<022>.  This is important because it means that "
18324 "directories and device nodes will be created with C<0644> or C<0755> mode "
18325 "even if you specify C<0777>."
18326 msgstr ""
18327
18328 #. type: textblock
18329 #: ../fish/guestfish-actions.pod:5158
18330 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
18331 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
18332
18333 #. type: textblock
18334 #: ../fish/guestfish-actions.pod:5161 ../src/guestfs-actions.pod:7946
18335 msgid "This call returns the previous umask."
18336 msgstr ""
18337
18338 #. type: =head2
18339 #: ../fish/guestfish-actions.pod:5163
18340 msgid "umount"
18341 msgstr "umount"
18342
18343 #. type: =head2
18344 #: ../fish/guestfish-actions.pod:5165
18345 msgid "unmount"
18346 msgstr "unmount"
18347
18348 #. type: verbatim
18349 #: ../fish/guestfish-actions.pod:5167
18350 #, no-wrap
18351 msgid ""
18352 " umount pathordevice\n"
18353 "\n"
18354 msgstr ""
18355 " umount шлях_або_пристрій\n"
18356 "\n"
18357
18358 #. type: textblock
18359 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7958
18360 msgid ""
18361 "This unmounts the given filesystem.  The filesystem may be specified either "
18362 "by its mountpoint (path) or the device which contains the filesystem."
18363 msgstr ""
18364
18365 #. type: =head2
18366 #: ../fish/guestfish-actions.pod:5173
18367 msgid "umount-all"
18368 msgstr "umount-all"
18369
18370 #. type: =head2
18371 #: ../fish/guestfish-actions.pod:5175
18372 msgid "unmount-all"
18373 msgstr "unmount-all"
18374
18375 #. type: verbatim
18376 #: ../fish/guestfish-actions.pod:5177
18377 #, no-wrap
18378 msgid ""
18379 " umount-all\n"
18380 "\n"
18381 msgstr ""
18382 " umount-all\n"
18383 "\n"
18384
18385 #. type: textblock
18386 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7971
18387 msgid "This unmounts all mounted filesystems."
18388 msgstr ""
18389
18390 #. type: textblock
18391 #: ../fish/guestfish-actions.pod:5181 ../src/guestfs-actions.pod:7973
18392 msgid "Some internal mounts are not unmounted by this call."
18393 msgstr ""
18394
18395 #. type: =head2
18396 #: ../fish/guestfish-actions.pod:5183
18397 msgid "upload"
18398 msgstr "upload"
18399
18400 #. type: verbatim
18401 #: ../fish/guestfish-actions.pod:5185
18402 #, no-wrap
18403 msgid ""
18404 " upload (filename|-) remotefilename\n"
18405 "\n"
18406 msgstr ""
18407 " upload (назва_файла|-) назва_віддаленого_файла\n"
18408 "\n"
18409
18410 #. type: textblock
18411 #: ../fish/guestfish-actions.pod:5187 ../fish/guestfish-actions.pod:5200
18412 #: ../src/guestfs-actions.pod:7986 ../src/guestfs-actions.pod:8010
18413 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
18414 msgstr ""
18415
18416 #. type: textblock
18417 #: ../fish/guestfish-actions.pod:5192
18418 msgid "See also L</download>."
18419 msgstr "Див. також L</download>."
18420
18421 #. type: =head2
18422 #: ../fish/guestfish-actions.pod:5196
18423 msgid "upload-offset"
18424 msgstr "upload-offset"
18425
18426 #. type: verbatim
18427 #: ../fish/guestfish-actions.pod:5198
18428 #, no-wrap
18429 msgid ""
18430 " upload-offset (filename|-) remotefilename offset\n"
18431 "\n"
18432 msgstr ""
18433 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
18434 "\n"
18435
18436 #. type: textblock
18437 #: ../fish/guestfish-actions.pod:5203 ../src/guestfs-actions.pod:8013
18438 msgid ""
18439 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
18440 "The intention is to overwrite parts of existing files or devices, although "
18441 "if a non-existant file is specified then it is created with a \"hole\" "
18442 "before C<offset>.  The size of the data written is implicit in the size of "
18443 "the source C<filename>."
18444 msgstr ""
18445
18446 #. type: textblock
18447 #: ../fish/guestfish-actions.pod:5210
18448 msgid ""
18449 "Note that there is no limit on the amount of data that can be uploaded with "
18450 "this call, unlike with L</pwrite>, and this call always writes the full "
18451 "amount unless an error occurs."
18452 msgstr ""
18453
18454 #. type: textblock
18455 #: ../fish/guestfish-actions.pod:5215
18456 msgid "See also L</upload>, L</pwrite>."
18457 msgstr "Див. також L</upload>, L</pwrite>."
18458
18459 #. type: =head2
18460 #: ../fish/guestfish-actions.pod:5219
18461 msgid "utimens"
18462 msgstr "utimens"
18463
18464 #. type: verbatim
18465 #: ../fish/guestfish-actions.pod:5221
18466 #, no-wrap
18467 msgid ""
18468 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
18469 "\n"
18470 msgstr ""
18471
18472 #. type: textblock
18473 #: ../fish/guestfish-actions.pod:5223 ../src/guestfs-actions.pod:8046
18474 msgid "This command sets the timestamps of a file with nanosecond precision."
18475 msgstr ""
18476
18477 #. type: textblock
18478 #: ../fish/guestfish-actions.pod:5226 ../src/guestfs-actions.pod:8049
18479 msgid ""
18480 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
18481 "from the epoch."
18482 msgstr ""
18483
18484 #. type: textblock
18485 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:8052
18486 msgid ""
18487 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
18488 "nanoseconds from the epoch."
18489 msgstr ""
18490
18491 #. type: textblock
18492 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:8055
18493 msgid ""
18494 "If the C<*nsecs> field contains the special value C<-1> then the "
18495 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
18496 "ignored in this case)."
18497 msgstr ""
18498
18499 #. type: textblock
18500 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:8059
18501 msgid ""
18502 "If the C<*nsecs> field contains the special value C<-2> then the "
18503 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
18504 "in this case)."
18505 msgstr ""
18506
18507 #. type: =head2
18508 #: ../fish/guestfish-actions.pod:5240
18509 msgid "version"
18510 msgstr "version"
18511
18512 #. type: verbatim
18513 #: ../fish/guestfish-actions.pod:5242
18514 #, no-wrap
18515 msgid ""
18516 " version\n"
18517 "\n"
18518 msgstr ""
18519 " version\n"
18520 "\n"
18521
18522 #. type: textblock
18523 #: ../fish/guestfish-actions.pod:5244 ../src/guestfs-actions.pod:8072
18524 msgid ""
18525 "Return the libguestfs version number that the program is linked against."
18526 msgstr ""
18527
18528 #. type: textblock
18529 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8075
18530 msgid ""
18531 "Note that because of dynamic linking this is not necessarily the version of "
18532 "libguestfs that you compiled against.  You can compile the program, and then "
18533 "at runtime dynamically link against a completely different C<libguestfs.so> "
18534 "library."
18535 msgstr ""
18536
18537 #. type: textblock
18538 #: ../fish/guestfish-actions.pod:5252 ../src/guestfs-actions.pod:8080
18539 msgid ""
18540 "This call was added in version C<1.0.58>.  In previous versions of "
18541 "libguestfs there was no way to get the version number.  From C code you can "
18542 "use dynamic linker functions to find out if this symbol exists (if it "
18543 "doesn't, then it's an earlier version)."
18544 msgstr ""
18545
18546 #. type: textblock
18547 #: ../fish/guestfish-actions.pod:5258 ../src/guestfs-actions.pod:8086
18548 msgid ""
18549 "The call returns a structure with four elements.  The first three (C<major>, "
18550 "C<minor> and C<release>) are numbers and correspond to the usual version "
18551 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
18552 "but may be used for distro-specific information."
18553 msgstr ""
18554
18555 #. type: textblock
18556 #: ../fish/guestfish-actions.pod:5264 ../src/guestfs-actions.pod:8092
18557 msgid ""
18558 "To construct the original version string: C<$major.$minor.$release$extra>"
18559 msgstr ""
18560
18561 #. type: textblock
18562 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:8095
18563 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18564 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18565
18566 #. type: textblock
18567 #: ../fish/guestfish-actions.pod:5269
18568 msgid ""
18569 "I<Note:> Don't use this call to test for availability of features.  In "
18570 "enterprise distributions we backport features from later versions into "
18571 "earlier versions, making this an unreliable way to test for features.  Use "
18572 "L</available> instead."
18573 msgstr ""
18574
18575 #. type: =head2
18576 #: ../fish/guestfish-actions.pod:5275
18577 msgid "vfs-label"
18578 msgstr "vfs-label"
18579
18580 #. type: verbatim
18581 #: ../fish/guestfish-actions.pod:5277
18582 #, no-wrap
18583 msgid ""
18584 " vfs-label device\n"
18585 "\n"
18586 msgstr ""
18587 " vfs-label пристрій\n"
18588 "\n"
18589
18590 #. type: textblock
18591 #: ../fish/guestfish-actions.pod:5279 ../src/guestfs-actions.pod:8115
18592 msgid "This returns the filesystem label of the filesystem on C<device>."
18593 msgstr ""
18594
18595 #. type: textblock
18596 #: ../fish/guestfish-actions.pod:5282 ../src/guestfs-actions.pod:8118
18597 msgid "If the filesystem is unlabeled, this returns the empty string."
18598 msgstr ""
18599
18600 #. type: textblock
18601 #: ../fish/guestfish-actions.pod:5284
18602 msgid "To find a filesystem from the label, use L</findfs-label>."
18603 msgstr ""
18604
18605 #. type: =head2
18606 #: ../fish/guestfish-actions.pod:5286
18607 msgid "vfs-type"
18608 msgstr "vfs-type"
18609
18610 #. type: verbatim
18611 #: ../fish/guestfish-actions.pod:5288
18612 #, no-wrap
18613 msgid ""
18614 " vfs-type device\n"
18615 "\n"
18616 msgstr ""
18617 " vfs-type пристрій\n"
18618 "\n"
18619
18620 #. type: textblock
18621 #: ../fish/guestfish-actions.pod:5290 ../src/guestfs-actions.pod:8133
18622 msgid ""
18623 "This command gets the filesystem type corresponding to the filesystem on "
18624 "C<device>."
18625 msgstr ""
18626
18627 #. type: textblock
18628 #: ../fish/guestfish-actions.pod:5293 ../src/guestfs-actions.pod:8136
18629 msgid ""
18630 "For most filesystems, the result is the name of the Linux VFS module which "
18631 "would be used to mount this filesystem if you mounted it without specifying "
18632 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
18633 msgstr ""
18634
18635 #. type: =head2
18636 #: ../fish/guestfish-actions.pod:5298
18637 msgid "vfs-uuid"
18638 msgstr "vfs-uuid"
18639
18640 #. type: verbatim
18641 #: ../fish/guestfish-actions.pod:5300
18642 #, no-wrap
18643 msgid ""
18644 " vfs-uuid device\n"
18645 "\n"
18646 msgstr ""
18647 " vfs-uuid пристрій\n"
18648 "\n"
18649
18650 #. type: textblock
18651 #: ../fish/guestfish-actions.pod:5302 ../src/guestfs-actions.pod:8152
18652 msgid "This returns the filesystem UUID of the filesystem on C<device>."
18653 msgstr ""
18654
18655 #. type: textblock
18656 #: ../fish/guestfish-actions.pod:5305 ../src/guestfs-actions.pod:8155
18657 msgid "If the filesystem does not have a UUID, this returns the empty string."
18658 msgstr ""
18659
18660 #. type: textblock
18661 #: ../fish/guestfish-actions.pod:5307
18662 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
18663 msgstr ""
18664
18665 #. type: =head2
18666 #: ../fish/guestfish-actions.pod:5309
18667 msgid "vg-activate"
18668 msgstr "vg-activate"
18669
18670 #. type: verbatim
18671 #: ../fish/guestfish-actions.pod:5311
18672 #, no-wrap
18673 msgid ""
18674 " vg-activate true|false 'volgroups ...'\n"
18675 "\n"
18676 msgstr ""
18677
18678 #. type: textblock
18679 #: ../fish/guestfish-actions.pod:5313 ../src/guestfs-actions.pod:8171
18680 msgid ""
18681 "This command activates or (if C<activate> is false) deactivates all logical "
18682 "volumes in the listed volume groups C<volgroups>."
18683 msgstr ""
18684
18685 #. type: textblock
18686 #: ../fish/guestfish-actions.pod:5316 ../src/guestfs-actions.pod:8174
18687 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
18688 msgstr ""
18689
18690 #. type: textblock
18691 #: ../fish/guestfish-actions.pod:5318 ../src/guestfs-actions.pod:8176
18692 msgid ""
18693 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
18694 "activated or deactivated."
18695 msgstr ""
18696
18697 #. type: =head2
18698 #: ../fish/guestfish-actions.pod:5321
18699 msgid "vg-activate-all"
18700 msgstr "vg-activate-all"
18701
18702 #. type: verbatim
18703 #: ../fish/guestfish-actions.pod:5323
18704 #, no-wrap
18705 msgid ""
18706 " vg-activate-all true|false\n"
18707 "\n"
18708 msgstr ""
18709 " vg-activate-all true|false\n"
18710 "\n"
18711
18712 #. type: textblock
18713 #: ../fish/guestfish-actions.pod:5325 ../src/guestfs-actions.pod:8189
18714 msgid ""
18715 "This command activates or (if C<activate> is false) deactivates all logical "
18716 "volumes in all volume groups."
18717 msgstr ""
18718
18719 #. type: textblock
18720 #: ../fish/guestfish-actions.pod:5328 ../src/guestfs-actions.pod:8192
18721 msgid "This command is the same as running C<vgchange -a y|n>"
18722 msgstr ""
18723
18724 #. type: =head2
18725 #: ../fish/guestfish-actions.pod:5330
18726 msgid "vgcreate"
18727 msgstr "vgcreate"
18728
18729 #. type: verbatim
18730 #: ../fish/guestfish-actions.pod:5332
18731 #, no-wrap
18732 msgid ""
18733 " vgcreate volgroup 'physvols ...'\n"
18734 "\n"
18735 msgstr ""
18736
18737 #. type: textblock
18738 #: ../fish/guestfish-actions.pod:5334 ../src/guestfs-actions.pod:8205
18739 msgid ""
18740 "This creates an LVM volume group called C<volgroup> from the non-empty list "
18741 "of physical volumes C<physvols>."
18742 msgstr ""
18743
18744 #. type: =head2
18745 #: ../fish/guestfish-actions.pod:5337
18746 msgid "vglvuuids"
18747 msgstr "vglvuuids"
18748
18749 #. type: verbatim
18750 #: ../fish/guestfish-actions.pod:5339
18751 #, no-wrap
18752 msgid ""
18753 " vglvuuids vgname\n"
18754 "\n"
18755 msgstr ""
18756
18757 #. type: textblock
18758 #: ../fish/guestfish-actions.pod:5341 ../src/guestfs-actions.pod:8218
18759 msgid ""
18760 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
18761 "volumes created in this volume group."
18762 msgstr ""
18763
18764 #. type: textblock
18765 #: ../fish/guestfish-actions.pod:5344
18766 msgid ""
18767 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
18768 "logical volumes and volume groups."
18769 msgstr ""
18770
18771 #. type: textblock
18772 #: ../fish/guestfish-actions.pod:5347
18773 msgid "See also L</vgpvuuids>."
18774 msgstr "Див. також L</vgpvuuids>."
18775
18776 #. type: =head2
18777 #: ../fish/guestfish-actions.pod:5349
18778 msgid "vgpvuuids"
18779 msgstr "vgpvuuids"
18780
18781 #. type: verbatim
18782 #: ../fish/guestfish-actions.pod:5351
18783 #, no-wrap
18784 msgid ""
18785 " vgpvuuids vgname\n"
18786 "\n"
18787 msgstr ""
18788
18789 #. type: textblock
18790 #: ../fish/guestfish-actions.pod:5353 ../src/guestfs-actions.pod:8238
18791 msgid ""
18792 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
18793 "volumes that this volume group resides on."
18794 msgstr ""
18795
18796 #. type: textblock
18797 #: ../fish/guestfish-actions.pod:5356
18798 msgid ""
18799 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
18800 "physical volumes and volume groups."
18801 msgstr ""
18802
18803 #. type: textblock
18804 #: ../fish/guestfish-actions.pod:5359
18805 msgid "See also L</vglvuuids>."
18806 msgstr "Див. також L</vglvuuids>."
18807
18808 #. type: =head2
18809 #: ../fish/guestfish-actions.pod:5361
18810 msgid "vgremove"
18811 msgstr "vgremove"
18812
18813 #. type: verbatim
18814 #: ../fish/guestfish-actions.pod:5363
18815 #, no-wrap
18816 msgid ""
18817 " vgremove vgname\n"
18818 "\n"
18819 msgstr ""
18820
18821 #. type: textblock
18822 #: ../fish/guestfish-actions.pod:5365 ../src/guestfs-actions.pod:8258
18823 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
18824 msgstr ""
18825
18826 #. type: textblock
18827 #: ../fish/guestfish-actions.pod:5367 ../src/guestfs-actions.pod:8260
18828 msgid ""
18829 "This also forcibly removes all logical volumes in the volume group (if any)."
18830 msgstr ""
18831
18832 #. type: =head2
18833 #: ../fish/guestfish-actions.pod:5370
18834 msgid "vgrename"
18835 msgstr "vgrename"
18836
18837 #. type: verbatim
18838 #: ../fish/guestfish-actions.pod:5372
18839 #, no-wrap
18840 msgid ""
18841 " vgrename volgroup newvolgroup\n"
18842 "\n"
18843 msgstr ""
18844
18845 #. type: textblock
18846 #: ../fish/guestfish-actions.pod:5374 ../src/guestfs-actions.pod:8274
18847 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
18848 msgstr ""
18849
18850 #. type: =head2
18851 #: ../fish/guestfish-actions.pod:5376
18852 msgid "vgs"
18853 msgstr "vgs"
18854
18855 #. type: verbatim
18856 #: ../fish/guestfish-actions.pod:5378
18857 #, no-wrap
18858 msgid ""
18859 " vgs\n"
18860 "\n"
18861 msgstr ""
18862 " vgs\n"
18863 "\n"
18864
18865 #. type: textblock
18866 #: ../fish/guestfish-actions.pod:5380 ../src/guestfs-actions.pod:8285
18867 msgid ""
18868 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18869 "> command."
18870 msgstr ""
18871
18872 #. type: textblock
18873 #: ../fish/guestfish-actions.pod:5383 ../src/guestfs-actions.pod:8288
18874 msgid ""
18875 "This returns a list of just the volume group names that were detected (eg. "
18876 "C<VolGroup00>)."
18877 msgstr ""
18878
18879 #. type: textblock
18880 #: ../fish/guestfish-actions.pod:5386
18881 msgid "See also L</vgs-full>."
18882 msgstr "Див. також L</vgs-full>."
18883
18884 #. type: =head2
18885 #: ../fish/guestfish-actions.pod:5388
18886 msgid "vgs-full"
18887 msgstr "vgs-full"
18888
18889 #. type: verbatim
18890 #: ../fish/guestfish-actions.pod:5390
18891 #, no-wrap
18892 msgid ""
18893 " vgs-full\n"
18894 "\n"
18895 msgstr ""
18896 " vgs-full\n"
18897 "\n"
18898
18899 #. type: textblock
18900 #: ../fish/guestfish-actions.pod:5392 ../src/guestfs-actions.pod:8304
18901 msgid ""
18902 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18903 "> command.  The \"full\" version includes all fields."
18904 msgstr ""
18905
18906 #. type: =head2
18907 #: ../fish/guestfish-actions.pod:5395
18908 msgid "vgscan"
18909 msgstr "vgscan"
18910
18911 #. type: verbatim
18912 #: ../fish/guestfish-actions.pod:5397
18913 #, no-wrap
18914 msgid ""
18915 " vgscan\n"
18916 "\n"
18917 msgstr ""
18918 " vgscan\n"
18919 "\n"
18920
18921 #. type: textblock
18922 #: ../fish/guestfish-actions.pod:5399 ../src/guestfs-actions.pod:8318
18923 msgid ""
18924 "This rescans all block devices and rebuilds the list of LVM physical "
18925 "volumes, volume groups and logical volumes."
18926 msgstr ""
18927
18928 #. type: =head2
18929 #: ../fish/guestfish-actions.pod:5402
18930 msgid "vguuid"
18931 msgstr "vguuid"
18932
18933 #. type: verbatim
18934 #: ../fish/guestfish-actions.pod:5404
18935 #, no-wrap
18936 msgid ""
18937 " vguuid vgname\n"
18938 "\n"
18939 msgstr ""
18940
18941 #. type: textblock
18942 #: ../fish/guestfish-actions.pod:5406 ../src/guestfs-actions.pod:8331
18943 msgid "This command returns the UUID of the LVM VG named C<vgname>."
18944 msgstr ""
18945
18946 #. type: =head2
18947 #: ../fish/guestfish-actions.pod:5408
18948 msgid "wc-c"
18949 msgstr "wc-c"
18950
18951 #. type: verbatim
18952 #: ../fish/guestfish-actions.pod:5410
18953 #, no-wrap
18954 msgid ""
18955 " wc-c path\n"
18956 "\n"
18957 msgstr ""
18958 " wc-c шлях\n"
18959 "\n"
18960
18961 #. type: textblock
18962 #: ../fish/guestfish-actions.pod:5412 ../src/guestfs-actions.pod:8371
18963 msgid ""
18964 "This command counts the characters in a file, using the C<wc -c> external "
18965 "command."
18966 msgstr ""
18967
18968 #. type: =head2
18969 #: ../fish/guestfish-actions.pod:5415
18970 msgid "wc-l"
18971 msgstr "wc-l"
18972
18973 #. type: verbatim
18974 #: ../fish/guestfish-actions.pod:5417
18975 #, no-wrap
18976 msgid ""
18977 " wc-l path\n"
18978 "\n"
18979 msgstr ""
18980 " wc-l шлях\n"
18981 "\n"
18982
18983 #. type: textblock
18984 #: ../fish/guestfish-actions.pod:5419 ../src/guestfs-actions.pod:8384
18985 msgid ""
18986 "This command counts the lines in a file, using the C<wc -l> external command."
18987 msgstr ""
18988
18989 #. type: =head2
18990 #: ../fish/guestfish-actions.pod:5422
18991 msgid "wc-w"
18992 msgstr "wc-w"
18993
18994 #. type: verbatim
18995 #: ../fish/guestfish-actions.pod:5424
18996 #, no-wrap
18997 msgid ""
18998 " wc-w path\n"
18999 "\n"
19000 msgstr ""
19001 " wc-w шлях\n"
19002 "\n"
19003
19004 #. type: textblock
19005 #: ../fish/guestfish-actions.pod:5426 ../src/guestfs-actions.pod:8397
19006 msgid ""
19007 "This command counts the words in a file, using the C<wc -w> external command."
19008 msgstr ""
19009
19010 #. type: =head2
19011 #: ../fish/guestfish-actions.pod:5429
19012 msgid "write"
19013 msgstr "write"
19014
19015 #. type: verbatim
19016 #: ../fish/guestfish-actions.pod:5431
19017 #, no-wrap
19018 msgid ""
19019 " write path content\n"
19020 "\n"
19021 msgstr ""
19022 " write шлях дані\n"
19023 "\n"
19024
19025 #. type: textblock
19026 #: ../fish/guestfish-actions.pod:5433 ../src/guestfs-actions.pod:8412
19027 msgid ""
19028 "This call creates a file called C<path>.  The content of the file is the "
19029 "string C<content> (which can contain any 8 bit data)."
19030 msgstr ""
19031
19032 #. type: textblock
19033 #: ../fish/guestfish-actions.pod:5436
19034 msgid "See also L</write-append>."
19035 msgstr "Див. також L</write-append>."
19036
19037 #. type: =head2
19038 #: ../fish/guestfish-actions.pod:5441
19039 msgid "write-append"
19040 msgstr ""
19041
19042 #. type: verbatim
19043 #: ../fish/guestfish-actions.pod:5443
19044 #, no-wrap
19045 msgid ""
19046 " write-append path content\n"
19047 "\n"
19048 msgstr ""
19049
19050 #. type: textblock
19051 #: ../fish/guestfish-actions.pod:5445 ../src/guestfs-actions.pod:8432
19052 msgid ""
19053 "This call appends C<content> to the end of file C<path>.  If C<path> does "
19054 "not exist, then a new file is created."
19055 msgstr ""
19056
19057 #. type: textblock
19058 #: ../fish/guestfish-actions.pod:5448
19059 msgid "See also L</write>."
19060 msgstr "Див. також L</write>."
19061
19062 #. type: =head2
19063 #: ../fish/guestfish-actions.pod:5453
19064 msgid "write-file"
19065 msgstr "write-file"
19066
19067 #. type: verbatim
19068 #: ../fish/guestfish-actions.pod:5455
19069 #, no-wrap
19070 msgid ""
19071 " write-file path content size\n"
19072 "\n"
19073 msgstr ""
19074
19075 #. type: textblock
19076 #: ../fish/guestfish-actions.pod:5457 ../src/guestfs-actions.pod:8459
19077 msgid ""
19078 "This call creates a file called C<path>.  The contents of the file is the "
19079 "string C<content> (which can contain any 8 bit data), with length C<size>."
19080 msgstr ""
19081
19082 #. type: textblock
19083 #: ../fish/guestfish-actions.pod:5461 ../src/guestfs-actions.pod:8463
19084 msgid ""
19085 "As a special case, if C<size> is C<0> then the length is calculated using "
19086 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
19087 msgstr ""
19088
19089 #. type: textblock
19090 #: ../fish/guestfish-actions.pod:5465 ../src/guestfs-actions.pod:8467
19091 msgid ""
19092 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
19093 "I<not> work, even if the length is specified."
19094 msgstr ""
19095
19096 #. type: textblock
19097 #: ../fish/guestfish-actions.pod:5471
19098 msgid ""
19099 "I<This function is deprecated.> In new code, use the L</write> call instead."
19100 msgstr ""
19101
19102 #. type: =head2
19103 #: ../fish/guestfish-actions.pod:5478
19104 msgid "zegrep"
19105 msgstr "zegrep"
19106
19107 #. type: verbatim
19108 #: ../fish/guestfish-actions.pod:5480
19109 #, no-wrap
19110 msgid ""
19111 " zegrep regex path\n"
19112 "\n"
19113 msgstr ""
19114 " zegrep формальний_вираз шлях\n"
19115 "\n"
19116
19117 #. type: textblock
19118 #: ../fish/guestfish-actions.pod:5482 ../src/guestfs-actions.pod:8484
19119 msgid ""
19120 "This calls the external C<zegrep> program and returns the matching lines."
19121 msgstr ""
19122
19123 #. type: =head2
19124 #: ../fish/guestfish-actions.pod:5488
19125 msgid "zegrepi"
19126 msgstr "zegrepi"
19127
19128 #. type: verbatim
19129 #: ../fish/guestfish-actions.pod:5490
19130 #, no-wrap
19131 msgid ""
19132 " zegrepi regex path\n"
19133 "\n"
19134 msgstr ""
19135
19136 #. type: textblock
19137 #: ../fish/guestfish-actions.pod:5492 ../src/guestfs-actions.pod:8503
19138 msgid ""
19139 "This calls the external C<zegrep -i> program and returns the matching lines."
19140 msgstr ""
19141
19142 #. type: =head2
19143 #: ../fish/guestfish-actions.pod:5498
19144 msgid "zero"
19145 msgstr "zero"
19146
19147 #. type: verbatim
19148 #: ../fish/guestfish-actions.pod:5500
19149 #, no-wrap
19150 msgid ""
19151 " zero device\n"
19152 "\n"
19153 msgstr ""
19154 " zero пристрій\n"
19155 "\n"
19156
19157 #. type: textblock
19158 #: ../fish/guestfish-actions.pod:5502 ../src/guestfs-actions.pod:8521
19159 msgid "This command writes zeroes over the first few blocks of C<device>."
19160 msgstr ""
19161
19162 #. type: textblock
19163 #: ../fish/guestfish-actions.pod:5504 ../src/guestfs-actions.pod:8523
19164 msgid ""
19165 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
19166 "securely wipe the device).  It should be sufficient to remove any partition "
19167 "tables, filesystem superblocks and so on."
19168 msgstr ""
19169
19170 #. type: textblock
19171 #: ../fish/guestfish-actions.pod:5508 ../fish/guestfish-actions.pod:5523
19172 #: ../src/guestfs-actions.pod:8527 ../src/guestfs-actions.pod:8553
19173 msgid ""
19174 "If blocks are already zero, then this command avoids writing zeroes.  This "
19175 "prevents the underlying device from becoming non-sparse or growing "
19176 "unnecessarily."
19177 msgstr ""
19178
19179 #. type: textblock
19180 #: ../fish/guestfish-actions.pod:5512
19181 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
19182 msgstr ""
19183
19184 #. type: =head2
19185 #: ../fish/guestfish-actions.pod:5515
19186 msgid "zero-device"
19187 msgstr "zero-device"
19188
19189 #. type: verbatim
19190 #: ../fish/guestfish-actions.pod:5517
19191 #, no-wrap
19192 msgid ""
19193 " zero-device device\n"
19194 "\n"
19195 msgstr ""
19196 " zero-device пристрій\n"
19197 "\n"
19198
19199 #. type: textblock
19200 #: ../fish/guestfish-actions.pod:5519
19201 msgid ""
19202 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
19203 "which just zeroes the first few blocks of a device."
19204 msgstr ""
19205
19206 #. type: =head2
19207 #: ../fish/guestfish-actions.pod:5527
19208 msgid "zerofree"
19209 msgstr "zerofree"
19210
19211 #. type: verbatim
19212 #: ../fish/guestfish-actions.pod:5529
19213 #, no-wrap
19214 msgid ""
19215 " zerofree device\n"
19216 "\n"
19217 msgstr ""
19218 " zerofree пристрій\n"
19219 "\n"
19220
19221 #. type: textblock
19222 #: ../fish/guestfish-actions.pod:5531 ../src/guestfs-actions.pod:8572
19223 msgid ""
19224 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
19225 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
19226 "possible to compress the filesystem more effectively."
19227 msgstr ""
19228
19229 #. type: textblock
19230 #: ../fish/guestfish-actions.pod:5536 ../src/guestfs-actions.pod:8577
19231 msgid "You should B<not> run this program if the filesystem is mounted."
19232 msgstr ""
19233
19234 #. type: textblock
19235 #: ../fish/guestfish-actions.pod:5539 ../src/guestfs-actions.pod:8580
19236 msgid ""
19237 "It is possible that using this program can damage the filesystem or data on "
19238 "the filesystem."
19239 msgstr ""
19240
19241 #. type: =head2
19242 #: ../fish/guestfish-actions.pod:5542
19243 msgid "zfgrep"
19244 msgstr "zfgrep"
19245
19246 #. type: verbatim
19247 #: ../fish/guestfish-actions.pod:5544
19248 #, no-wrap
19249 msgid ""
19250 " zfgrep pattern path\n"
19251 "\n"
19252 msgstr ""
19253 " zfgrep шаблон шлях\n"
19254 "\n"
19255
19256 #. type: textblock
19257 #: ../fish/guestfish-actions.pod:5546 ../src/guestfs-actions.pod:8594
19258 msgid ""
19259 "This calls the external C<zfgrep> program and returns the matching lines."
19260 msgstr ""
19261
19262 #. type: =head2
19263 #: ../fish/guestfish-actions.pod:5552
19264 msgid "zfgrepi"
19265 msgstr "zfgrepi"
19266
19267 #. type: verbatim
19268 #: ../fish/guestfish-actions.pod:5554
19269 #, no-wrap
19270 msgid ""
19271 " zfgrepi pattern path\n"
19272 "\n"
19273 msgstr ""
19274 " zfgrepi шаблон шлях\n"
19275 "\n"
19276
19277 #. type: textblock
19278 #: ../fish/guestfish-actions.pod:5556 ../src/guestfs-actions.pod:8613
19279 msgid ""
19280 "This calls the external C<zfgrep -i> program and returns the matching lines."
19281 msgstr ""
19282
19283 #. type: =head2
19284 #: ../fish/guestfish-actions.pod:5562
19285 msgid "zfile"
19286 msgstr "zfile"
19287
19288 #. type: verbatim
19289 #: ../fish/guestfish-actions.pod:5564
19290 #, no-wrap
19291 msgid ""
19292 " zfile meth path\n"
19293 "\n"
19294 msgstr ""
19295 " zfile метод шлях\n"
19296 "\n"
19297
19298 #. type: textblock
19299 #: ../fish/guestfish-actions.pod:5566 ../src/guestfs-actions.pod:8639
19300 msgid ""
19301 "This command runs C<file> after first decompressing C<path> using C<method>."
19302 msgstr ""
19303
19304 #. type: textblock
19305 #: ../fish/guestfish-actions.pod:5569 ../src/guestfs-actions.pod:8642
19306 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
19307 msgstr ""
19308
19309 #. type: textblock
19310 #: ../fish/guestfish-actions.pod:5571
19311 msgid ""
19312 "Since 1.0.63, use L</file> instead which can now process compressed files."
19313 msgstr ""
19314
19315 #. type: textblock
19316 #: ../fish/guestfish-actions.pod:5574
19317 msgid ""
19318 "I<This function is deprecated.> In new code, use the L</file> call instead."
19319 msgstr ""
19320
19321 #. type: =head2
19322 #: ../fish/guestfish-actions.pod:5581
19323 msgid "zgrep"
19324 msgstr "zgrep"
19325
19326 #. type: verbatim
19327 #: ../fish/guestfish-actions.pod:5583
19328 #, no-wrap
19329 msgid ""
19330 " zgrep regex path\n"
19331 "\n"
19332 msgstr ""
19333 " zgrep формальний_вираз шлях\n"
19334 "\n"
19335
19336 #. type: textblock
19337 #: ../fish/guestfish-actions.pod:5585 ../src/guestfs-actions.pod:8659
19338 msgid ""
19339 "This calls the external C<zgrep> program and returns the matching lines."
19340 msgstr ""
19341
19342 #. type: =head2
19343 #: ../fish/guestfish-actions.pod:5591
19344 msgid "zgrepi"
19345 msgstr "zgrepi"
19346
19347 #. type: verbatim
19348 #: ../fish/guestfish-actions.pod:5593
19349 #, no-wrap
19350 msgid ""
19351 " zgrepi regex path\n"
19352 "\n"
19353 msgstr ""
19354 " zgrepi формальний_вираз шлях\n"
19355 "\n"
19356
19357 #. type: textblock
19358 #: ../fish/guestfish-actions.pod:5595 ../src/guestfs-actions.pod:8678
19359 msgid ""
19360 "This calls the external C<zgrep -i> program and returns the matching lines."
19361 msgstr ""
19362
19363 #. type: =head2
19364 #: ../fish/guestfish-commands.pod:1
19365 msgid "alloc"
19366 msgstr "alloc"
19367
19368 #. type: =head2
19369 #: ../fish/guestfish-commands.pod:3
19370 msgid "allocate"
19371 msgstr ""
19372
19373 #. type: verbatim
19374 #: ../fish/guestfish-commands.pod:5
19375 #, no-wrap
19376 msgid ""
19377 " alloc filename size\n"
19378 "\n"
19379 msgstr ""
19380
19381 #. type: textblock
19382 #: ../fish/guestfish-commands.pod:7
19383 msgid ""
19384 "This creates an empty (zeroed) file of the given size, and then adds so it "
19385 "can be further examined."
19386 msgstr ""
19387
19388 #. type: textblock
19389 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
19390 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
19391 msgstr ""
19392
19393 #. type: textblock
19394 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
19395 msgid "Size can be specified using standard suffixes, eg. C<1M>."
19396 msgstr ""
19397
19398 #. type: textblock
19399 #: ../fish/guestfish-commands.pod:14
19400 msgid ""
19401 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
19402 "image, see L</PREPARED DISK IMAGES>."
19403 msgstr ""
19404
19405 #. type: =head2
19406 #: ../fish/guestfish-commands.pod:17
19407 msgid "copy-in"
19408 msgstr "copy-in"
19409
19410 #. type: verbatim
19411 #: ../fish/guestfish-commands.pod:19
19412 #, no-wrap
19413 msgid ""
19414 " copy-in local [local ...] /remotedir\n"
19415 "\n"
19416 msgstr ""
19417
19418 #. type: textblock
19419 #: ../fish/guestfish-commands.pod:21
19420 msgid ""
19421 "C<copy-in> copies local files or directories recursively into the disk "
19422 "image, placing them in the directory called C</remotedir> (which must "
19423 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
19424 "other commands as necessary."
19425 msgstr ""
19426
19427 #. type: textblock
19428 #: ../fish/guestfish-commands.pod:26
19429 msgid ""
19430 "Multiple local files and directories can be specified, but the last "
19431 "parameter must always be a remote directory.  Wildcards cannot be used."
19432 msgstr ""
19433
19434 #. type: =head2
19435 #: ../fish/guestfish-commands.pod:30
19436 msgid "copy-out"
19437 msgstr "copy-out"
19438
19439 #. type: verbatim
19440 #: ../fish/guestfish-commands.pod:32
19441 #, no-wrap
19442 msgid ""
19443 " copy-out remote [remote ...] localdir\n"
19444 "\n"
19445 msgstr ""
19446
19447 #. type: textblock
19448 #: ../fish/guestfish-commands.pod:34
19449 msgid ""
19450 "C<copy-out> copies remote files or directories recursively out of the disk "
19451 "image, placing them on the host disk in a local directory called C<localdir> "
19452 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
19453 "download>, L</tar-out> and other commands as necessary."
19454 msgstr ""
19455
19456 #. type: textblock
19457 #: ../fish/guestfish-commands.pod:40
19458 msgid ""
19459 "Multiple remote files and directories can be specified, but the last "
19460 "parameter must always be a local directory.  To download to the current "
19461 "directory, use C<.> as in:"
19462 msgstr ""
19463
19464 #. type: verbatim
19465 #: ../fish/guestfish-commands.pod:44
19466 #, no-wrap
19467 msgid ""
19468 " copy-out /home .\n"
19469 "\n"
19470 msgstr ""
19471 " copy-out /home .\n"
19472 "\n"
19473
19474 #. type: textblock
19475 #: ../fish/guestfish-commands.pod:46
19476 msgid ""
19477 "Wildcards cannot be used in the ordinary command, but you can use them with "
19478 "the help of L</glob> like this:"
19479 msgstr ""
19480
19481 #. type: verbatim
19482 #: ../fish/guestfish-commands.pod:49
19483 #, no-wrap
19484 msgid ""
19485 " glob copy-out /home/* .\n"
19486 "\n"
19487 msgstr ""
19488 " glob copy-out /home/* .\n"
19489 "\n"
19490
19491 #. type: =head2
19492 #: ../fish/guestfish-commands.pod:51
19493 msgid "display"
19494 msgstr ""
19495
19496 #. type: verbatim
19497 #: ../fish/guestfish-commands.pod:53
19498 #, no-wrap
19499 msgid ""
19500 " display filename\n"
19501 "\n"
19502 msgstr ""
19503
19504 #. type: textblock
19505 #: ../fish/guestfish-commands.pod:55
19506 msgid ""
19507 "Use C<display> (a graphical display program) to display an image file.  It "
19508 "downloads the file, and runs C<display> on it."
19509 msgstr ""
19510
19511 #. type: textblock
19512 #: ../fish/guestfish-commands.pod:58
19513 msgid ""
19514 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
19515 "environment variable.  For example to use the GNOME display program:"
19516 msgstr ""
19517
19518 #. type: verbatim
19519 #: ../fish/guestfish-commands.pod:61
19520 #, no-wrap
19521 msgid ""
19522 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
19523 "\n"
19524 msgstr ""
19525
19526 #. type: textblock
19527 #: ../fish/guestfish-commands.pod:63
19528 msgid "See also L<display(1)>."
19529 msgstr "Див. також L<display(1)>."
19530
19531 #. type: =head2
19532 #: ../fish/guestfish-commands.pod:65
19533 msgid "echo"
19534 msgstr "echo"
19535
19536 #. type: verbatim
19537 #: ../fish/guestfish-commands.pod:67
19538 #, no-wrap
19539 msgid ""
19540 " echo [params ...]\n"
19541 "\n"
19542 msgstr ""
19543 " echo [параметри...]\n"
19544 "\n"
19545
19546 #. type: textblock
19547 #: ../fish/guestfish-commands.pod:69
19548 msgid "This echos the parameters to the terminal."
19549 msgstr ""
19550
19551 #. type: =head2
19552 #: ../fish/guestfish-commands.pod:71
19553 msgid "edit"
19554 msgstr "edit"
19555
19556 #. type: =head2
19557 #: ../fish/guestfish-commands.pod:73
19558 msgid "vi"
19559 msgstr "vi"
19560
19561 #. type: =head2
19562 #: ../fish/guestfish-commands.pod:75
19563 msgid "emacs"
19564 msgstr "emacs"
19565
19566 #. type: verbatim
19567 #: ../fish/guestfish-commands.pod:77
19568 #, no-wrap
19569 msgid ""
19570 " edit filename\n"
19571 "\n"
19572 msgstr ""
19573 " edit назва_файла\n"
19574 "\n"
19575
19576 #. type: textblock
19577 #: ../fish/guestfish-commands.pod:79
19578 msgid ""
19579 "This is used to edit a file.  It downloads the file, edits it locally using "
19580 "your editor, then uploads the result."
19581 msgstr ""
19582
19583 #. type: textblock
19584 #: ../fish/guestfish-commands.pod:82
19585 msgid ""
19586 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
19587 "or C<emacs> you will get those corresponding editors."
19588 msgstr ""
19589
19590 #. type: =head2
19591 #: ../fish/guestfish-commands.pod:86
19592 msgid "glob"
19593 msgstr "glob"
19594
19595 #. type: verbatim
19596 #: ../fish/guestfish-commands.pod:88
19597 #, no-wrap
19598 msgid ""
19599 " glob command args...\n"
19600 "\n"
19601 msgstr ""
19602 " glob команда параметри...\n"
19603 "\n"
19604
19605 #. type: textblock
19606 #: ../fish/guestfish-commands.pod:90
19607 msgid ""
19608 "Expand wildcards in any paths in the args list, and run C<command> "
19609 "repeatedly on each matching path."
19610 msgstr ""
19611
19612 #. type: textblock
19613 #: ../fish/guestfish-commands.pod:93
19614 msgid "See L</WILDCARDS AND GLOBBING>."
19615 msgstr "Див. L</WILDCARDS AND GLOBBING>."
19616
19617 #. type: =head2
19618 #: ../fish/guestfish-commands.pod:95
19619 msgid "hexedit"
19620 msgstr "hexedit"
19621
19622 #. type: verbatim
19623 #: ../fish/guestfish-commands.pod:97
19624 #, no-wrap
19625 msgid ""
19626 " hexedit <filename|device>\n"
19627 " hexedit <filename|device> <max>\n"
19628 " hexedit <filename|device> <start> <max>\n"
19629 "\n"
19630 msgstr ""
19631
19632 #. type: textblock
19633 #: ../fish/guestfish-commands.pod:101
19634 msgid ""
19635 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
19636 "device."
19637 msgstr ""
19638
19639 #. type: textblock
19640 #: ../fish/guestfish-commands.pod:104
19641 msgid ""
19642 "This command works by downloading potentially the whole file or device, "
19643 "editing it locally, then uploading it.  If the file or device is large, you "
19644 "have to specify which part you wish to edit by using C<max> and/or C<start> "
19645 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
19646 "usual modifiers allowed such as C<1M> (1 megabyte)."
19647 msgstr ""
19648
19649 #. type: textblock
19650 #: ../fish/guestfish-commands.pod:111
19651 msgid "For example to edit the first few sectors of a disk you might do:"
19652 msgstr ""
19653
19654 #. type: verbatim
19655 #: ../fish/guestfish-commands.pod:114
19656 #, no-wrap
19657 msgid ""
19658 " hexedit /dev/sda 1M\n"
19659 "\n"
19660 msgstr ""
19661 " hexedit /dev/sda 1M\n"
19662 "\n"
19663
19664 #. type: textblock
19665 #: ../fish/guestfish-commands.pod:116
19666 msgid ""
19667 "which would allow you to edit anywhere within the first megabyte of the disk."
19668 msgstr ""
19669
19670 #. type: textblock
19671 #: ../fish/guestfish-commands.pod:119
19672 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
19673 msgstr ""
19674
19675 #. type: verbatim
19676 #: ../fish/guestfish-commands.pod:121
19677 #, no-wrap
19678 msgid ""
19679 " hexedit /dev/sda1 0x400 0x400\n"
19680 "\n"
19681 msgstr ""
19682 " hexedit /dev/sda1 0x400 0x400\n"
19683 "\n"
19684
19685 #. type: textblock
19686 #: ../fish/guestfish-commands.pod:123
19687 msgid "(assuming the superblock is in the standard location)."
19688 msgstr ""
19689
19690 #. type: textblock
19691 #: ../fish/guestfish-commands.pod:125
19692 msgid ""
19693 "This command requires the external L<hexedit(1)> program.  You can specify "
19694 "another program to use by setting the C<HEXEDITOR> environment variable."
19695 msgstr ""
19696
19697 #. type: textblock
19698 #: ../fish/guestfish-commands.pod:129
19699 msgid "See also L</hexdump>."
19700 msgstr "Див. також L</hexdump>."
19701
19702 #. type: =head2
19703 #: ../fish/guestfish-commands.pod:131
19704 msgid "lcd"
19705 msgstr "lcd"
19706
19707 #. type: verbatim
19708 #: ../fish/guestfish-commands.pod:133
19709 #, no-wrap
19710 msgid ""
19711 " lcd directory\n"
19712 "\n"
19713 msgstr ""
19714
19715 #. type: textblock
19716 #: ../fish/guestfish-commands.pod:135
19717 msgid ""
19718 "Change the local directory, ie. the current directory of guestfish itself."
19719 msgstr ""
19720
19721 #. type: textblock
19722 #: ../fish/guestfish-commands.pod:138
19723 msgid "Note that C<!cd> won't do what you might expect."
19724 msgstr ""
19725
19726 #. type: =head2
19727 #: ../fish/guestfish-commands.pod:140
19728 msgid "man"
19729 msgstr "man"
19730
19731 #. type: =head2
19732 #: ../fish/guestfish-commands.pod:142
19733 msgid "manual"
19734 msgstr "підручник"
19735
19736 #. type: verbatim
19737 #: ../fish/guestfish-commands.pod:144
19738 #, no-wrap
19739 msgid ""
19740 "  man\n"
19741 "\n"
19742 msgstr ""
19743 "  man\n"
19744 "\n"
19745
19746 #. type: textblock
19747 #: ../fish/guestfish-commands.pod:146
19748 msgid "Opens the manual page for guestfish."
19749 msgstr ""
19750
19751 #. type: =head2
19752 #: ../fish/guestfish-commands.pod:148
19753 msgid "more"
19754 msgstr "more"
19755
19756 #. type: =head2
19757 #: ../fish/guestfish-commands.pod:150
19758 msgid "less"
19759 msgstr "less"
19760
19761 #. type: verbatim
19762 #: ../fish/guestfish-commands.pod:152
19763 #, no-wrap
19764 msgid ""
19765 " more filename\n"
19766 "\n"
19767 msgstr ""
19768
19769 #. type: verbatim
19770 #: ../fish/guestfish-commands.pod:154
19771 #, no-wrap
19772 msgid ""
19773 " less filename\n"
19774 "\n"
19775 msgstr ""
19776
19777 #. type: textblock
19778 #: ../fish/guestfish-commands.pod:156
19779 msgid "This is used to view a file."
19780 msgstr ""
19781
19782 #. type: textblock
19783 #: ../fish/guestfish-commands.pod:158
19784 msgid ""
19785 "The default viewer is C<$PAGER>.  However if you use the alternate command "
19786 "C<less> you will get the C<less> command specifically."
19787 msgstr ""
19788
19789 #. type: =head2
19790 #: ../fish/guestfish-commands.pod:161
19791 msgid "reopen"
19792 msgstr "reopen"
19793
19794 #. type: verbatim
19795 #: ../fish/guestfish-commands.pod:163
19796 #, no-wrap
19797 msgid ""
19798 "  reopen\n"
19799 "\n"
19800 msgstr ""
19801
19802 #. type: textblock
19803 #: ../fish/guestfish-commands.pod:165
19804 msgid ""
19805 "Close and reopen the libguestfs handle.  It is not necessary to use this "
19806 "normally, because the handle is closed properly when guestfish exits.  "
19807 "However this is occasionally useful for testing."
19808 msgstr ""
19809
19810 #. type: =head2
19811 #: ../fish/guestfish-commands.pod:169
19812 msgid "setenv"
19813 msgstr ""
19814
19815 #. type: verbatim
19816 #: ../fish/guestfish-commands.pod:171
19817 #, no-wrap
19818 msgid ""
19819 "  setenv VAR value\n"
19820 "\n"
19821 msgstr ""
19822
19823 #. type: textblock
19824 #: ../fish/guestfish-commands.pod:173
19825 msgid "Set the environment variable C<VAR> to the string C<value>."
19826 msgstr ""
19827
19828 #. type: textblock
19829 #: ../fish/guestfish-commands.pod:175
19830 msgid ""
19831 "To print the value of an environment variable use a shell command such as:"
19832 msgstr ""
19833
19834 #. type: verbatim
19835 #: ../fish/guestfish-commands.pod:178
19836 #, no-wrap
19837 msgid ""
19838 " !echo $VAR\n"
19839 "\n"
19840 msgstr ""
19841
19842 #. type: =head2
19843 #: ../fish/guestfish-commands.pod:180
19844 msgid "sparse"
19845 msgstr "sparse"
19846
19847 #. type: verbatim
19848 #: ../fish/guestfish-commands.pod:182
19849 #, no-wrap
19850 msgid ""
19851 " sparse filename size\n"
19852 "\n"
19853 msgstr ""
19854
19855 #. type: textblock
19856 #: ../fish/guestfish-commands.pod:184
19857 msgid ""
19858 "This creates an empty sparse file of the given size, and then adds so it can "
19859 "be further examined."
19860 msgstr ""
19861
19862 #. type: textblock
19863 #: ../fish/guestfish-commands.pod:187
19864 msgid ""
19865 "In all respects it works the same as the L</alloc> command, except that the "
19866 "image file is allocated sparsely, which means that disk blocks are not "
19867 "assigned to the file until they are needed.  Sparse disk files only use "
19868 "space when written to, but they are slower and there is a danger you could "
19869 "run out of real disk space during a write operation."
19870 msgstr ""
19871
19872 #. type: =head2
19873 #: ../fish/guestfish-commands.pod:197
19874 msgid "supported"
19875 msgstr "supported"
19876
19877 #. type: verbatim
19878 #: ../fish/guestfish-commands.pod:199
19879 #, no-wrap
19880 msgid ""
19881 " supported\n"
19882 "\n"
19883 msgstr ""
19884 " supported\n"
19885 "\n"
19886
19887 #. type: textblock
19888 #: ../fish/guestfish-commands.pod:201
19889 msgid ""
19890 "This command returns a list of the optional groups known to the daemon, and "
19891 "indicates which ones are supported by this build of the libguestfs appliance."
19892 msgstr ""
19893
19894 #. type: textblock
19895 #: ../fish/guestfish-commands.pod:205
19896 msgid "See also L<guestfs(3)/AVAILABILITY>."
19897 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
19898
19899 #. type: =head2
19900 #: ../fish/guestfish-commands.pod:207
19901 msgid "time"
19902 msgstr "time"
19903
19904 #. type: verbatim
19905 #: ../fish/guestfish-commands.pod:209
19906 #, no-wrap
19907 msgid ""
19908 " time command args...\n"
19909 "\n"
19910 msgstr ""
19911
19912 #. type: textblock
19913 #: ../fish/guestfish-commands.pod:211
19914 msgid ""
19915 "Run the command as usual, but print the elapsed time afterwards.  This can "
19916 "be useful for benchmarking operations."
19917 msgstr ""
19918
19919 #. type: =head2
19920 #: ../fish/guestfish-commands.pod:214
19921 msgid "unsetenv"
19922 msgstr ""
19923
19924 #. type: verbatim
19925 #: ../fish/guestfish-commands.pod:216
19926 #, no-wrap
19927 msgid ""
19928 "  unsetenv VAR\n"
19929 "\n"
19930 msgstr ""
19931
19932 #. type: textblock
19933 #: ../fish/guestfish-commands.pod:218
19934 msgid "Remove C<VAR> from the environment."
19935 msgstr ""
19936
19937 #. type: textblock
19938 #: ../fish/guestfish.pod:5
19939 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
19940 msgstr ""
19941
19942 #. type: verbatim
19943 #: ../fish/guestfish.pod:9
19944 #, no-wrap
19945 msgid ""
19946 " guestfish [--options] [commands]\n"
19947 "\n"
19948 msgstr ""
19949
19950 #. type: verbatim
19951 #: ../fish/guestfish.pod:11
19952 #, no-wrap
19953 msgid ""
19954 " guestfish\n"
19955 "\n"
19956 msgstr ""
19957
19958 #. type: verbatim
19959 #: ../fish/guestfish.pod:13
19960 #, no-wrap
19961 msgid ""
19962 " guestfish [--ro|--rw] -a disk.img\n"
19963 "\n"
19964 msgstr ""
19965
19966 #. type: verbatim
19967 #: ../fish/guestfish.pod:15
19968 #, no-wrap
19969 msgid ""
19970 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
19971 "\n"
19972 msgstr ""
19973
19974 #. type: verbatim
19975 #: ../fish/guestfish.pod:17
19976 #, no-wrap
19977 msgid ""
19978 " guestfish -d libvirt-domain\n"
19979 "\n"
19980 msgstr ""
19981
19982 #. type: verbatim
19983 #: ../fish/guestfish.pod:19
19984 #, no-wrap
19985 msgid ""
19986 " guestfish [--ro|--rw] -a disk.img -i\n"
19987 "\n"
19988 msgstr ""
19989
19990 #. type: verbatim
19991 #: ../fish/guestfish.pod:21
19992 #, no-wrap
19993 msgid ""
19994 " guestfish -d libvirt-domain -i\n"
19995 "\n"
19996 msgstr ""
19997
19998 #. type: textblock
19999 #: ../fish/guestfish.pod:25
20000 msgid ""
20001 "Using guestfish in read/write mode on live virtual machines can be "
20002 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
20003 "option to use guestfish safely if the disk image or virtual machine might be "
20004 "live."
20005 msgstr ""
20006
20007 #. type: textblock
20008 #: ../fish/guestfish.pod:32
20009 msgid ""
20010 "Guestfish is a shell and command-line tool for examining and modifying "
20011 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
20012 "functionality of the guestfs API, see L<guestfs(3)>."
20013 msgstr ""
20014
20015 #. type: textblock
20016 #: ../fish/guestfish.pod:36
20017 msgid ""
20018 "Guestfish gives you structured access to the libguestfs API, from shell "
20019 "scripts or the command line or interactively.  If you want to rescue a "
20020 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
20021 "command."
20022 msgstr ""
20023
20024 #. type: =head2
20025 #: ../fish/guestfish.pod:43
20026 msgid "As an interactive shell"
20027 msgstr ""
20028
20029 #. type: verbatim
20030 #: ../fish/guestfish.pod:45
20031 #, no-wrap
20032 msgid ""
20033 " $ guestfish\n"
20034 " \n"
20035 msgstr ""
20036
20037 #. type: verbatim
20038 #: ../fish/guestfish.pod:47
20039 #, no-wrap
20040 msgid ""
20041 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
20042 " editing virtual machine filesystems.\n"
20043 " \n"
20044 msgstr ""
20045
20046 #. type: verbatim
20047 #: ../fish/guestfish.pod:50
20048 #, no-wrap
20049 msgid ""
20050 " Type: 'help' for a list of commands\n"
20051 "       'man' to read the manual\n"
20052 "       'quit' to quit the shell\n"
20053 " \n"
20054 msgstr ""
20055
20056 #. type: verbatim
20057 #: ../fish/guestfish.pod:54
20058 #, no-wrap
20059 msgid ""
20060 " ><fs> add-ro disk.img\n"
20061 " ><fs> run\n"
20062 " ><fs> list-filesystems\n"
20063 " /dev/sda1: ext4\n"
20064 " /dev/vg_guest/lv_root: ext4\n"
20065 " /dev/vg_guest/lv_swap: swap\n"
20066 " ><fs> mount /dev/vg_guest/lv_root /\n"
20067 " ><fs> cat /etc/fstab\n"
20068 " # /etc/fstab\n"
20069 " # Created by anaconda\n"
20070 " [...]\n"
20071 " ><fs> exit\n"
20072 "\n"
20073 msgstr ""
20074
20075 #. type: =head2
20076 #: ../fish/guestfish.pod:67
20077 msgid "From shell scripts"
20078 msgstr ""
20079
20080 #. type: textblock
20081 #: ../fish/guestfish.pod:69
20082 msgid "Create a new C</etc/motd> file in a guest or disk image:"
20083 msgstr ""
20084
20085 #. type: verbatim
20086 #: ../fish/guestfish.pod:71
20087 #, no-wrap
20088 msgid ""
20089 " guestfish <<_EOF_\n"
20090 " add disk.img\n"
20091 " run\n"
20092 " mount /dev/vg_guest/lv_root /\n"
20093 " write /etc/motd \"Welcome, new users\"\n"
20094 " _EOF_\n"
20095 "\n"
20096 msgstr ""
20097
20098 #. type: textblock
20099 #: ../fish/guestfish.pod:78
20100 msgid "List the LVM logical volumes in a disk image:"
20101 msgstr ""
20102
20103 #. type: verbatim
20104 #: ../fish/guestfish.pod:80
20105 #, no-wrap
20106 msgid ""
20107 " guestfish -a disk.img --ro <<_EOF_\n"
20108 " run\n"
20109 " lvs\n"
20110 " _EOF_\n"
20111 "\n"
20112 msgstr ""
20113
20114 #. type: textblock
20115 #: ../fish/guestfish.pod:85
20116 msgid "List all the filesystems in a disk image:"
20117 msgstr ""
20118
20119 #. type: verbatim
20120 #: ../fish/guestfish.pod:87
20121 #, no-wrap
20122 msgid ""
20123 " guestfish -a disk.img --ro <<_EOF_\n"
20124 " run\n"
20125 " list-filesystems\n"
20126 " _EOF_\n"
20127 "\n"
20128 msgstr ""
20129
20130 #. type: =head2
20131 #: ../fish/guestfish.pod:92
20132 msgid "On one command line"
20133 msgstr ""
20134
20135 #. type: textblock
20136 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
20137 msgid "Update C</etc/resolv.conf> in a guest:"
20138 msgstr ""
20139
20140 #. type: verbatim
20141 #: ../fish/guestfish.pod:96
20142 #, no-wrap
20143 msgid ""
20144 " guestfish \\\n"
20145 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
20146 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
20147 "\n"
20148 msgstr ""
20149
20150 #. type: textblock
20151 #: ../fish/guestfish.pod:100
20152 msgid "Edit C</boot/grub/grub.conf> interactively:"
20153 msgstr ""
20154
20155 #. type: verbatim
20156 #: ../fish/guestfish.pod:102
20157 #, no-wrap
20158 msgid ""
20159 " guestfish --rw --add disk.img \\\n"
20160 "   --mount /dev/vg_guest/lv_root \\\n"
20161 "   --mount /dev/sda1:/boot \\\n"
20162 "   edit /boot/grub/grub.conf\n"
20163 "\n"
20164 msgstr ""
20165
20166 #. type: =head2
20167 #: ../fish/guestfish.pod:107
20168 msgid "Mount disks automatically"
20169 msgstr ""
20170
20171 #. type: textblock
20172 #: ../fish/guestfish.pod:109
20173 msgid ""
20174 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
20175 msgstr ""
20176
20177 #. type: verbatim
20178 #: ../fish/guestfish.pod:112
20179 #, no-wrap
20180 msgid ""
20181 " guestfish --ro -a disk.img -i cat /etc/group\n"
20182 "\n"
20183 msgstr ""
20184
20185 #. type: verbatim
20186 #: ../fish/guestfish.pod:114
20187 #, no-wrap
20188 msgid ""
20189 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
20190 "\n"
20191 msgstr ""
20192
20193 #. type: textblock
20194 #: ../fish/guestfish.pod:116
20195 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
20196 msgstr ""
20197
20198 #. type: verbatim
20199 #: ../fish/guestfish.pod:118
20200 #, no-wrap
20201 msgid ""
20202 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
20203 "\n"
20204 msgstr ""
20205
20206 #. type: =head2
20207 #: ../fish/guestfish.pod:120
20208 msgid "As a script interpreter"
20209 msgstr ""
20210
20211 #. type: textblock
20212 #: ../fish/guestfish.pod:122
20213 msgid "Create a 100MB disk containing an ext2-formatted partition:"
20214 msgstr ""
20215
20216 #. type: verbatim
20217 #: ../fish/guestfish.pod:124
20218 #, no-wrap
20219 msgid ""
20220 " #!/usr/bin/guestfish -f\n"
20221 " sparse test1.img 100M\n"
20222 " run\n"
20223 " part-disk /dev/sda mbr\n"
20224 " mkfs ext2 /dev/sda1\n"
20225 "\n"
20226 msgstr ""
20227
20228 #. type: =head2
20229 #: ../fish/guestfish.pod:130
20230 msgid "Start with a prepared disk"
20231 msgstr ""
20232
20233 #. type: textblock
20234 #: ../fish/guestfish.pod:132
20235 msgid ""
20236 "An alternate way to create a 100MB disk called C<test1.img> containing a "
20237 "single ext2-formatted partition:"
20238 msgstr ""
20239
20240 #. type: verbatim
20241 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
20242 #, no-wrap
20243 msgid ""
20244 " guestfish -N fs\n"
20245 "\n"
20246 msgstr ""
20247
20248 #. type: textblock
20249 #: ../fish/guestfish.pod:137
20250 msgid "To list what is available do:"
20251 msgstr ""
20252
20253 #. type: verbatim
20254 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
20255 #, no-wrap
20256 msgid ""
20257 " guestfish -N help | less\n"
20258 "\n"
20259 msgstr ""
20260
20261 #. type: =head2
20262 #: ../fish/guestfish.pod:141
20263 msgid "Remote control"
20264 msgstr "Дистанційне керування"
20265
20266 #. type: verbatim
20267 #: ../fish/guestfish.pod:143
20268 #, no-wrap
20269 msgid ""
20270 " eval \"`guestfish --listen`\"\n"
20271 " guestfish --remote add-ro disk.img\n"
20272 " guestfish --remote run\n"
20273 " guestfish --remote lvs\n"
20274 "\n"
20275 msgstr ""
20276 " eval \"`guestfish --listen`\"\n"
20277 " guestfish --remote add-ro disk.img\n"
20278 " guestfish --remote run\n"
20279 " guestfish --remote lvs\n"
20280 "\n"
20281
20282 #. type: textblock
20283 #: ../fish/guestfish.pod:154
20284 msgid "Displays general help on options."
20285 msgstr ""
20286
20287 #. type: =item
20288 #: ../fish/guestfish.pod:158
20289 msgid "B<--cmd-help>"
20290 msgstr "B<--cmd-help>"
20291
20292 #. type: textblock
20293 #: ../fish/guestfish.pod:160
20294 msgid "Lists all available guestfish commands."
20295 msgstr ""
20296
20297 #. type: =item
20298 #: ../fish/guestfish.pod:162
20299 msgid "B<-h cmd>"
20300 msgstr "B<-h команда>"
20301
20302 #. type: =item
20303 #: ../fish/guestfish.pod:164
20304 msgid "B<--cmd-help cmd>"
20305 msgstr "B<--cmd-help команда>"
20306
20307 #. type: textblock
20308 #: ../fish/guestfish.pod:166
20309 msgid "Displays detailed help on a single command C<cmd>."
20310 msgstr ""
20311
20312 #. type: =item
20313 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
20314 msgid "B<-a image>"
20315 msgstr "B<-a образ>"
20316
20317 #. type: =item
20318 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
20319 msgid "B<--add image>"
20320 msgstr "B<--add образ>"
20321
20322 #. type: textblock
20323 #: ../fish/guestfish.pod:172
20324 msgid "Add a block device or virtual machine image to the shell."
20325 msgstr ""
20326
20327 #. type: textblock
20328 #: ../fish/guestfish.pod:177
20329 msgid ""
20330 "Using this flag is mostly equivalent to using the C<add> command, with "
20331 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
20332 "the I<--format=...> flag was given."
20333 msgstr ""
20334
20335 #. type: textblock
20336 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
20337 msgid ""
20338 "When used in conjunction with the I<-d> option, this specifies the libvirt "
20339 "URI to use.  The default is to use the default libvirt connection."
20340 msgstr ""
20341
20342 #. type: =item
20343 #: ../fish/guestfish.pod:189
20344 msgid "B<--csh>"
20345 msgstr "B<--csh>"
20346
20347 #. type: textblock
20348 #: ../fish/guestfish.pod:191
20349 msgid ""
20350 "If using the I<--listen> option and a csh-like shell, use this option.  See "
20351 "section L</REMOTE CONTROL AND CSH> below."
20352 msgstr ""
20353
20354 #. type: =item
20355 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
20356 msgid "B<-d libvirt-domain>"
20357 msgstr "B<-d домен-libvirt>"
20358
20359 #. type: =item
20360 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
20361 msgid "B<--domain libvirt-domain>"
20362 msgstr "B<--domain домен-libvirt>"
20363
20364 #. type: textblock
20365 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
20366 msgid ""
20367 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
20368 "used, then any libvirt domain can be used.  However in write mode, only "
20369 "libvirt domains which are shut down can be named here."
20370 msgstr ""
20371
20372 #. type: textblock
20373 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
20374 msgid "Domain UUIDs can be used instead of names."
20375 msgstr ""
20376
20377 #. type: textblock
20378 #: ../fish/guestfish.pod:204
20379 msgid ""
20380 "Using this flag is mostly equivalent to using the C<add-domain> command, "
20381 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
20382 "if the I<--format:...> flag was given."
20383 msgstr ""
20384
20385 #. type: =item
20386 #: ../fish/guestfish.pod:208
20387 msgid "B<-D>"
20388 msgstr "B<-D>"
20389
20390 #. type: =item
20391 #: ../fish/guestfish.pod:210
20392 msgid "B<--no-dest-paths>"
20393 msgstr "B<--no-dest-paths>"
20394
20395 #. type: textblock
20396 #: ../fish/guestfish.pod:212
20397 msgid ""
20398 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
20399 "to hit the tab key to complete paths on the guest filesystem, but this "
20400 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
20401 "allow this feature to be disabled."
20402 msgstr ""
20403
20404 #. type: textblock
20405 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
20406 msgid ""
20407 "When prompting for keys and passphrases, guestfish normally turns echoing "
20408 "off so you cannot see what you are typing.  If you are not worried about "
20409 "Tempest attacks and there is no one else in the room you can specify this "
20410 "flag to see what you are typing."
20411 msgstr ""
20412
20413 #. type: =item
20414 #: ../fish/guestfish.pod:224
20415 msgid "B<-f file>"
20416 msgstr "B<-f файл>"
20417
20418 #. type: =item
20419 #: ../fish/guestfish.pod:226
20420 msgid "B<--file file>"
20421 msgstr "B<--file файл>"
20422
20423 #. type: textblock
20424 #: ../fish/guestfish.pod:228
20425 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
20426 msgstr ""
20427
20428 #. type: verbatim
20429 #: ../fish/guestfish.pod:231
20430 #, no-wrap
20431 msgid ""
20432 " #!/usr/bin/guestfish -f\n"
20433 "\n"
20434 msgstr ""
20435 " #!/usr/bin/guestfish -f\n"
20436 "\n"
20437
20438 #. type: verbatim
20439 #: ../fish/guestfish.pod:244
20440 #, no-wrap
20441 msgid ""
20442 " guestfish --format=raw -a disk.img\n"
20443 "\n"
20444 msgstr ""
20445 " guestfish --format=raw -a disk.img\n"
20446 "\n"
20447
20448 #. type: verbatim
20449 #: ../fish/guestfish.pod:248
20450 #, no-wrap
20451 msgid ""
20452 " guestfish --format=raw -a disk.img --format -a another.img\n"
20453 "\n"
20454 msgstr ""
20455 " guestfish --format=raw -a disk.img --format -a another.img\n"
20456 "\n"
20457
20458 #. type: textblock
20459 #: ../fish/guestfish.pod:253
20460 msgid ""
20461 "If you have untrusted raw-format guest disk images, you should use this "
20462 "option to specify the disk format.  This avoids a possible security problem "
20463 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
20464 msgstr ""
20465
20466 #. type: =item
20467 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
20468 msgid "B<--inspector>"
20469 msgstr "B<--inspector>"
20470
20471 #. type: textblock
20472 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
20473 msgid ""
20474 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
20475 "system and mount filesystems as they would be mounted on the real virtual "
20476 "machine."
20477 msgstr ""
20478
20479 #. type: textblock
20480 #: ../fish/guestfish.pod:266
20481 msgid "Typical usage is either:"
20482 msgstr ""
20483
20484 #. type: verbatim
20485 #: ../fish/guestfish.pod:268
20486 #, no-wrap
20487 msgid ""
20488 " guestfish -d myguest -i\n"
20489 "\n"
20490 msgstr ""
20491 " guestfish -d myguest -i\n"
20492 "\n"
20493
20494 #. type: textblock
20495 #: ../fish/guestfish.pod:270
20496 msgid "(for an inactive libvirt domain called I<myguest>), or:"
20497 msgstr ""
20498
20499 #. type: verbatim
20500 #: ../fish/guestfish.pod:272
20501 #, no-wrap
20502 msgid ""
20503 " guestfish --ro -d myguest -i\n"
20504 "\n"
20505 msgstr ""
20506 " guestfish --ro -d myguest -i\n"
20507 "\n"
20508
20509 #. type: textblock
20510 #: ../fish/guestfish.pod:274
20511 msgid "(for active domains, readonly), or specify the block device directly:"
20512 msgstr ""
20513
20514 #. type: verbatim
20515 #: ../fish/guestfish.pod:276
20516 #, no-wrap
20517 msgid ""
20518 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
20519 "\n"
20520 msgstr ""
20521 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
20522 "\n"
20523
20524 #. type: textblock
20525 #: ../fish/guestfish.pod:278
20526 msgid ""
20527 "Note that the command line syntax changed slightly over older versions of "
20528 "guestfish.  You can still use the old syntax:"
20529 msgstr ""
20530
20531 #. type: verbatim
20532 #: ../fish/guestfish.pod:281
20533 #, no-wrap
20534 msgid ""
20535 " guestfish [--ro] -i disk.img\n"
20536 "\n"
20537 msgstr ""
20538 " guestfish [--ro] -i disk.img\n"
20539 "\n"
20540
20541 #. type: verbatim
20542 #: ../fish/guestfish.pod:283
20543 #, no-wrap
20544 msgid ""
20545 " guestfish [--ro] -i libvirt-domain\n"
20546 "\n"
20547 msgstr ""
20548
20549 #. type: textblock
20550 #: ../fish/guestfish.pod:285
20551 msgid ""
20552 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
20553 "then using other commands to mount the filesystems that were found."
20554 msgstr ""
20555
20556 #. type: =item
20557 #: ../fish/guestfish.pod:294
20558 msgid "B<--listen>"
20559 msgstr "B<--listen>"
20560
20561 #. type: textblock
20562 #: ../fish/guestfish.pod:296
20563 msgid ""
20564 "Fork into the background and listen for remote commands.  See section L</"
20565 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
20566 msgstr ""
20567
20568 #. type: =item
20569 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
20570 msgid "B<--live>"
20571 msgstr "B<--live>"
20572
20573 #. type: textblock
20574 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
20575 msgid ""
20576 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
20577 "ATTACHING TO RUNNING DAEMONS>)."
20578 msgstr ""
20579
20580 #. type: =item
20581 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
20582 msgid "B<-m dev[:mountpoint[:options]]>"
20583 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
20584
20585 #. type: =item
20586 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
20587 msgid "B<--mount dev[:mountpoint[:options]]>"
20588 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
20589
20590 #. type: textblock
20591 #: ../fish/guestfish.pod:308
20592 msgid "Mount the named partition or logical volume on the given mountpoint."
20593 msgstr ""
20594
20595 #. type: textblock
20596 #: ../fish/guestfish.pod:310
20597 msgid "If the mountpoint is omitted, it defaults to C</>."
20598 msgstr ""
20599
20600 #. type: textblock
20601 #: ../fish/guestfish.pod:312
20602 msgid "You have to mount something on C</> before most commands will work."
20603 msgstr ""
20604
20605 #. type: textblock
20606 #: ../fish/guestfish.pod:314
20607 msgid ""
20608 "If any I<-m> or I<--mount> options are given, the guest is automatically "
20609 "launched."
20610 msgstr ""
20611
20612 #. type: textblock
20613 #: ../fish/guestfish.pod:317
20614 msgid ""
20615 "If you don't know what filesystems a disk image contains, you can either run "
20616 "guestfish without this option, then list the partitions, filesystems and LVs "
20617 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
20618 "commands), or you can use the L<virt-filesystems(1)> program."
20619 msgstr ""
20620
20621 #. type: textblock
20622 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
20623 msgid ""
20624 "The third (and rarely used) part of the mount parameter is the list of mount "
20625 "options used to mount the underlying filesystem.  If this is not given, then "
20626 "the mount options are either the empty string or C<ro> (the latter if the "
20627 "I<--ro> flag is used).  By specifying the mount options, you override this "
20628 "default choice.  Probably the only time you would use this is to enable ACLs "
20629 "and/or extended attributes if the filesystem can support them:"
20630 msgstr ""
20631
20632 #. type: verbatim
20633 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
20634 #, no-wrap
20635 msgid ""
20636 " -m /dev/sda1:/:acl,user_xattr\n"
20637 "\n"
20638 msgstr ""
20639
20640 #. type: textblock
20641 #: ../fish/guestfish.pod:333
20642 msgid "Using this flag is equivalent to using the C<mount-options> command."
20643 msgstr ""
20644
20645 #. type: =item
20646 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
20647 #: ../resize/virt-resize.pod:441
20648 msgid "B<-n>"
20649 msgstr "B<-n>"
20650
20651 #. type: =item
20652 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
20653 msgid "B<--no-sync>"
20654 msgstr "B<--no-sync>"
20655
20656 #. type: textblock
20657 #: ../fish/guestfish.pod:339
20658 msgid ""
20659 "Disable autosync.  This is enabled by default.  See the discussion of "
20660 "autosync in the L<guestfs(3)> manpage."
20661 msgstr ""
20662
20663 #. type: =item
20664 #: ../fish/guestfish.pod:342
20665 msgid "B<-N type>"
20666 msgstr "B<-N тип>"
20667
20668 #. type: =item
20669 #: ../fish/guestfish.pod:344
20670 msgid "B<--new type>"
20671 msgstr "B<--new тип>"
20672
20673 #. type: =item
20674 #: ../fish/guestfish.pod:346
20675 msgid "B<-N help>"
20676 msgstr "B<-N help>"
20677
20678 #. type: textblock
20679 #: ../fish/guestfish.pod:348
20680 msgid ""
20681 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
20682 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
20683 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
20684 "IMAGES> below."
20685 msgstr ""
20686
20687 #. type: =item
20688 #: ../fish/guestfish.pod:353
20689 msgid "B<--progress-bars>"
20690 msgstr "B<--progress-bars>"
20691
20692 #. type: textblock
20693 #: ../fish/guestfish.pod:355
20694 msgid "Enable progress bars, even when guestfish is used non-interactively."
20695 msgstr ""
20696
20697 #. type: textblock
20698 #: ../fish/guestfish.pod:357
20699 msgid ""
20700 "Progress bars are enabled by default when guestfish is used as an "
20701 "interactive shell."
20702 msgstr ""
20703
20704 #. type: =item
20705 #: ../fish/guestfish.pod:360
20706 msgid "B<--no-progress-bars>"
20707 msgstr "B<--no-progress-bars>"
20708
20709 #. type: textblock
20710 #: ../fish/guestfish.pod:362
20711 msgid "Disable progress bars."
20712 msgstr ""
20713
20714 #. type: =item
20715 #: ../fish/guestfish.pod:364
20716 msgid "B<--remote[=pid]>"
20717 msgstr "B<--remote[=pid]>"
20718
20719 #. type: textblock
20720 #: ../fish/guestfish.pod:366
20721 msgid ""
20722 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
20723 "CONTROL GUESTFISH OVER A SOCKET> below."
20724 msgstr ""
20725
20726 #. type: =item
20727 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
20728 #: ../rescue/virt-rescue.pod:189
20729 msgid "B<-r>"
20730 msgstr "B<-r>"
20731
20732 #. type: =item
20733 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
20734 #: ../rescue/virt-rescue.pod:191
20735 msgid "B<--ro>"
20736 msgstr "B<--ro>"
20737
20738 #. type: textblock
20739 #: ../fish/guestfish.pod:373
20740 msgid ""
20741 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20742 "mounts are done read-only."
20743 msgstr ""
20744
20745 #. type: textblock
20746 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
20747 msgid ""
20748 "The option must always be used if the disk image or virtual machine might be "
20749 "running, and is generally recommended in cases where you don't need write "
20750 "access to the disk."
20751 msgstr ""
20752
20753 #. type: textblock
20754 #: ../fish/guestfish.pod:380
20755 msgid ""
20756 "Note that prepared disk images created with I<-N> are not affected by this "
20757 "option.  Also commands like C<add> are not affected - you have to specify "
20758 "the C<readonly:true> option explicitly if you need it."
20759 msgstr ""
20760
20761 #. type: textblock
20762 #: ../fish/guestfish.pod:384
20763 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
20764 msgstr ""
20765
20766 #. type: =item
20767 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
20768 #: ../rescue/virt-rescue.pod:201
20769 msgid "B<--selinux>"
20770 msgstr "B<--selinux>"
20771
20772 #. type: textblock
20773 #: ../fish/guestfish.pod:388
20774 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
20775 msgstr ""
20776
20777 #. type: textblock
20778 #: ../fish/guestfish.pod:394
20779 msgid ""
20780 "Enable very verbose messages.  This is particularly useful if you find a bug."
20781 msgstr ""
20782
20783 #. type: textblock
20784 #: ../fish/guestfish.pod:401
20785 msgid "Display the guestfish / libguestfs version number and exit."
20786 msgstr ""
20787
20788 #. type: =item
20789 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
20790 #: ../rescue/virt-rescue.pod:231
20791 msgid "B<-w>"
20792 msgstr "B<-w>"
20793
20794 #. type: =item
20795 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
20796 #: ../rescue/virt-rescue.pod:233
20797 msgid "B<--rw>"
20798 msgstr "B<--rw>"
20799
20800 #. type: textblock
20801 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
20802 msgid ""
20803 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20804 "mounts are done read-write."
20805 msgstr ""
20806
20807 #. type: textblock
20808 #: ../fish/guestfish.pod:410
20809 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
20810 msgstr ""
20811
20812 #. type: textblock
20813 #: ../fish/guestfish.pod:414
20814 msgid "Echo each command before executing it."
20815 msgstr ""
20816
20817 #. type: =head1
20818 #: ../fish/guestfish.pod:418
20819 msgid "COMMANDS ON COMMAND LINE"
20820 msgstr ""
20821
20822 #. type: textblock
20823 #: ../fish/guestfish.pod:420
20824 msgid ""
20825 "Any additional (non-option) arguments are treated as commands to execute."
20826 msgstr ""
20827
20828 #. type: textblock
20829 #: ../fish/guestfish.pod:423
20830 msgid ""
20831 "Commands to execute should be separated by a colon (C<:>), where the colon "
20832 "is a separate parameter.  Thus:"
20833 msgstr ""
20834
20835 #. type: verbatim
20836 #: ../fish/guestfish.pod:426
20837 #, no-wrap
20838 msgid ""
20839 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
20840 "\n"
20841 msgstr ""
20842
20843 #. type: textblock
20844 #: ../fish/guestfish.pod:428
20845 msgid ""
20846 "If there are no additional arguments, then we enter a shell, either an "
20847 "interactive shell with a prompt (if the input is a terminal) or a non-"
20848 "interactive shell."
20849 msgstr ""
20850
20851 #. type: textblock
20852 #: ../fish/guestfish.pod:432
20853 msgid ""
20854 "In either command line mode or non-interactive shell, the first command that "
20855 "gives an error causes the whole shell to exit.  In interactive mode (with a "
20856 "prompt) if a command fails, you can continue to enter commands."
20857 msgstr ""
20858
20859 #. type: =head1
20860 #: ../fish/guestfish.pod:437
20861 msgid "USING launch (OR run)"
20862 msgstr ""
20863
20864 #. type: textblock
20865 #: ../fish/guestfish.pod:439
20866 msgid ""
20867 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
20868 "then launch it, then mount any disks you need, and finally issue actions/"
20869 "commands.  So the general order of the day is:"
20870 msgstr ""
20871
20872 #. type: textblock
20873 #: ../fish/guestfish.pod:447
20874 msgid "add or -a/--add"
20875 msgstr ""
20876
20877 #. type: textblock
20878 #: ../fish/guestfish.pod:451
20879 msgid "launch (aka run)"
20880 msgstr ""
20881
20882 #. type: textblock
20883 #: ../fish/guestfish.pod:455
20884 msgid "mount or -m/--mount"
20885 msgstr ""
20886
20887 #. type: textblock
20888 #: ../fish/guestfish.pod:459
20889 msgid "any other commands"
20890 msgstr ""
20891
20892 #. type: textblock
20893 #: ../fish/guestfish.pod:463
20894 msgid ""
20895 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
20896 "guest before mounting or performing any other commands."
20897 msgstr ""
20898
20899 #. type: textblock
20900 #: ../fish/guestfish.pod:466
20901 msgid ""
20902 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
20903 "I<--new> options were given then C<run> is done automatically, simply "
20904 "because guestfish can't perform the action you asked for without doing this."
20905 msgstr ""
20906
20907 #. type: =head1
20908 #: ../fish/guestfish.pod:471
20909 msgid "OPENING DISKS FOR READ AND WRITE"
20910 msgstr ""
20911
20912 #. type: textblock
20913 #: ../fish/guestfish.pod:473
20914 msgid ""
20915 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
20916 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
20917 "I<-i> and I<-m> open disk images read-only or for writing."
20918 msgstr ""
20919
20920 #. type: textblock
20921 #: ../fish/guestfish.pod:478
20922 msgid ""
20923 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
20924 "opening disk images supplied on the command line for write.  To open a disk "
20925 "image read-only you have to do I<-a image --ro>."
20926 msgstr ""
20927
20928 #. type: textblock
20929 #: ../fish/guestfish.pod:482
20930 msgid ""
20931 "This matters: If you accidentally open a live VM disk image writable then "
20932 "you will cause irreversible disk corruption."
20933 msgstr ""
20934
20935 #. type: textblock
20936 #: ../fish/guestfish.pod:485
20937 msgid ""
20938 "In a future libguestfs we intend to change the default the other way.  Disk "
20939 "images will be opened read-only.  You will have to either specify "
20940 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
20941 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
20942 "access for disk images specified by those other command line options."
20943 msgstr ""
20944
20945 #. type: textblock
20946 #: ../fish/guestfish.pod:492
20947 msgid ""
20948 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
20949 "which does nothing (it is already the default).  However it is highly "
20950 "recommended that you use this option to indicate that you need write access, "
20951 "and prepare your scripts for the day when this option will be required for "
20952 "write access."
20953 msgstr ""
20954
20955 #. type: textblock
20956 #: ../fish/guestfish.pod:498
20957 msgid ""
20958 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
20959 "other libguestfs program apart from guestfish and guestmount."
20960 msgstr ""
20961
20962 #. type: =head1
20963 #: ../fish/guestfish.pod:501
20964 msgid "QUOTING"
20965 msgstr ""
20966
20967 #. type: textblock
20968 #: ../fish/guestfish.pod:503
20969 msgid ""
20970 "You can quote ordinary parameters using either single or double quotes.  For "
20971 "example:"
20972 msgstr ""
20973
20974 #. type: verbatim
20975 #: ../fish/guestfish.pod:506
20976 #, no-wrap
20977 msgid ""
20978 " add \"file with a space.img\"\n"
20979 "\n"
20980 msgstr ""
20981
20982 #. type: verbatim
20983 #: ../fish/guestfish.pod:508
20984 #, no-wrap
20985 msgid ""
20986 " rm '/file name'\n"
20987 "\n"
20988 msgstr ""
20989
20990 #. type: verbatim
20991 #: ../fish/guestfish.pod:510
20992 #, no-wrap
20993 msgid ""
20994 " rm '/\"'\n"
20995 "\n"
20996 msgstr ""
20997
20998 #. type: textblock
20999 #: ../fish/guestfish.pod:512
21000 msgid ""
21001 "A few commands require a list of strings to be passed.  For these, use a "
21002 "whitespace-separated list, enclosed in quotes.  Strings containing "
21003 "whitespace to be passed through must be enclosed in single quotes.  A "
21004 "literal single quote must be escaped with a backslash."
21005 msgstr ""
21006
21007 #. type: verbatim
21008 #: ../fish/guestfish.pod:517
21009 #, no-wrap
21010 msgid ""
21011 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
21012 " command \"/bin/echo 'foo      bar'\"\n"
21013 " command \"/bin/echo \\'foo\\'\"\n"
21014 "\n"
21015 msgstr ""
21016
21017 #. type: =head2
21018 #: ../fish/guestfish.pod:521
21019 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
21020 msgstr ""
21021
21022 #. type: textblock
21023 #: ../fish/guestfish.pod:523
21024 msgid ""
21025 "In double-quoted arguments (only) use backslash to insert special characters:"
21026 msgstr ""
21027
21028 #. type: =item
21029 #: ../fish/guestfish.pod:528
21030 msgid "C<\\a>"
21031 msgstr "C<\\a>"
21032
21033 #. type: textblock
21034 #: ../fish/guestfish.pod:530
21035 msgid "Alert (bell) character."
21036 msgstr "Символ гудка (дзвінка)."
21037
21038 #. type: =item
21039 #: ../fish/guestfish.pod:532
21040 msgid "C<\\b>"
21041 msgstr "C<\\b>"
21042
21043 #. type: textblock
21044 #: ../fish/guestfish.pod:534
21045 msgid "Backspace character."
21046 msgstr ""
21047
21048 #. type: =item
21049 #: ../fish/guestfish.pod:536
21050 msgid "C<\\f>"
21051 msgstr "C<\\f>"
21052
21053 #. type: textblock
21054 #: ../fish/guestfish.pod:538
21055 msgid "Form feed character."
21056 msgstr ""
21057
21058 #. type: =item
21059 #: ../fish/guestfish.pod:540
21060 msgid "C<\\n>"
21061 msgstr "C<\\n>"
21062
21063 #. type: textblock
21064 #: ../fish/guestfish.pod:542
21065 msgid "Newline character."
21066 msgstr ""
21067
21068 #. type: =item
21069 #: ../fish/guestfish.pod:544
21070 msgid "C<\\r>"
21071 msgstr "C<\\r>"
21072
21073 #. type: textblock
21074 #: ../fish/guestfish.pod:546
21075 msgid "Carriage return character."
21076 msgstr "Символ повернення каретки."
21077
21078 #. type: =item
21079 #: ../fish/guestfish.pod:548
21080 msgid "C<\\t>"
21081 msgstr "C<\\t>"
21082
21083 #. type: textblock
21084 #: ../fish/guestfish.pod:550
21085 msgid "Horizontal tab character."
21086 msgstr "Символ горизонтальної табуляції"
21087
21088 #. type: =item
21089 #: ../fish/guestfish.pod:552
21090 msgid "C<\\v>"
21091 msgstr "C<\\v>"
21092
21093 #. type: textblock
21094 #: ../fish/guestfish.pod:554
21095 msgid "Vertical tab character."
21096 msgstr "Символ вертикальної табуляції."
21097
21098 #. type: =item
21099 #: ../fish/guestfish.pod:556
21100 msgid "C<\\\">"
21101 msgstr "C<\\\">"
21102
21103 #. type: textblock
21104 #: ../fish/guestfish.pod:558
21105 msgid "A literal double quote character."
21106 msgstr ""
21107
21108 #. type: =item
21109 #: ../fish/guestfish.pod:560
21110 msgid "C<\\ooo>"
21111 msgstr "C<\\ooo>"
21112
21113 #. type: textblock
21114 #: ../fish/guestfish.pod:562
21115 msgid ""
21116 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
21117 "(unlike C)."
21118 msgstr ""
21119
21120 #. type: =item
21121 #: ../fish/guestfish.pod:565
21122 msgid "C<\\xhh>"
21123 msgstr "C<\\xhh>"
21124
21125 #. type: textblock
21126 #: ../fish/guestfish.pod:567
21127 msgid ""
21128 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
21129 msgstr ""
21130
21131 #. type: textblock
21132 #: ../fish/guestfish.pod:570
21133 msgid ""
21134 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
21135 "strings."
21136 msgstr ""
21137
21138 #. type: =item
21139 #: ../fish/guestfish.pod:573
21140 msgid "C<\\\\>"
21141 msgstr "C<\\\\>"
21142
21143 #. type: textblock
21144 #: ../fish/guestfish.pod:575
21145 msgid "A literal backslash character."
21146 msgstr ""
21147
21148 #. type: =head1
21149 #: ../fish/guestfish.pod:579
21150 msgid "OPTIONAL ARGUMENTS"
21151 msgstr ""
21152
21153 #. type: textblock
21154 #: ../fish/guestfish.pod:581
21155 msgid ""
21156 "Some commands take optional arguments.  These arguments appear in this "
21157 "documentation as C<[argname:..]>.  You can use them as in these examples:"
21158 msgstr ""
21159
21160 #. type: verbatim
21161 #: ../fish/guestfish.pod:585
21162 #, no-wrap
21163 msgid ""
21164 " add-drive-opts filename\n"
21165 "\n"
21166 msgstr ""
21167
21168 #. type: verbatim
21169 #: ../fish/guestfish.pod:587
21170 #, no-wrap
21171 msgid ""
21172 " add-drive-opts filename readonly:true\n"
21173 "\n"
21174 msgstr ""
21175
21176 #. type: verbatim
21177 #: ../fish/guestfish.pod:589
21178 #, no-wrap
21179 msgid ""
21180 " add-drive-opts filename format:qcow2 readonly:false\n"
21181 "\n"
21182 msgstr ""
21183
21184 #. type: textblock
21185 #: ../fish/guestfish.pod:591
21186 msgid ""
21187 "Each optional argument can appear at most once.  All optional arguments must "
21188 "appear after the required ones."
21189 msgstr ""
21190
21191 #. type: =head1
21192 #: ../fish/guestfish.pod:594
21193 msgid "NUMBERS"
21194 msgstr "ЧИСЛА"
21195
21196 #. type: textblock
21197 #: ../fish/guestfish.pod:596
21198 msgid ""
21199 "This section applies to all commands which can take integers as parameters."
21200 msgstr ""
21201
21202 #. type: =head2
21203 #: ../fish/guestfish.pod:599
21204 msgid "SIZE SUFFIX"
21205 msgstr ""
21206
21207 #. type: textblock
21208 #: ../fish/guestfish.pod:601
21209 msgid ""
21210 "When the command takes a parameter measured in bytes, you can use one of the "
21211 "following suffixes to specify kilobytes, megabytes and larger sizes:"
21212 msgstr ""
21213
21214 #. type: =item
21215 #: ../fish/guestfish.pod:607
21216 msgid "B<k> or B<K> or B<KiB>"
21217 msgstr "B<k>, B<K> або B<KiB>"
21218
21219 #. type: textblock
21220 #: ../fish/guestfish.pod:609
21221 msgid "The size in kilobytes (multiplied by 1024)."
21222 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
21223
21224 #. type: =item
21225 #: ../fish/guestfish.pod:611
21226 msgid "B<KB>"
21227 msgstr "B<KB>"
21228
21229 #. type: textblock
21230 #: ../fish/guestfish.pod:613
21231 msgid "The size in SI 1000 byte units."
21232 msgstr "Розмір у одиницях СІ: 1000 байтів."
21233
21234 #. type: =item
21235 #: ../fish/guestfish.pod:615
21236 msgid "B<M> or B<MiB>"
21237 msgstr "B<M> або B<MiB>"
21238
21239 #. type: textblock
21240 #: ../fish/guestfish.pod:617
21241 msgid "The size in megabytes (multiplied by 1048576)."
21242 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
21243
21244 #. type: =item
21245 #: ../fish/guestfish.pod:619
21246 msgid "B<MB>"
21247 msgstr "B<MB>"
21248
21249 #. type: textblock
21250 #: ../fish/guestfish.pod:621
21251 msgid "The size in SI 1000000 byte units."
21252 msgstr "Розмір у одиницях СІ: 1000000 байтів."
21253
21254 #. type: =item
21255 #: ../fish/guestfish.pod:623
21256 msgid "B<G> or B<GiB>"
21257 msgstr "B<G> або B<GiB>"
21258
21259 #. type: textblock
21260 #: ../fish/guestfish.pod:625
21261 msgid "The size in gigabytes (multiplied by 2**30)."
21262 msgstr "Розмір у гігабайтах (з множником 2**30)."
21263
21264 #. type: =item
21265 #: ../fish/guestfish.pod:627
21266 msgid "B<GB>"
21267 msgstr "B<GB>"
21268
21269 #. type: textblock
21270 #: ../fish/guestfish.pod:629
21271 msgid "The size in SI 10**9 byte units."
21272 msgstr "Розмір у одиницях СІ: 10**9 байтів."
21273
21274 #. type: =item
21275 #: ../fish/guestfish.pod:631
21276 msgid "B<T> or B<TiB>"
21277 msgstr "B<T> або B<TiB>"
21278
21279 #. type: textblock
21280 #: ../fish/guestfish.pod:633
21281 msgid "The size in terabytes (multiplied by 2**40)."
21282 msgstr "Розмір у терабайтах (з множником 2**40)."
21283
21284 #. type: =item
21285 #: ../fish/guestfish.pod:635
21286 msgid "B<TB>"
21287 msgstr "B<TB>"
21288
21289 #. type: textblock
21290 #: ../fish/guestfish.pod:637
21291 msgid "The size in SI 10**12 byte units."
21292 msgstr "Розмір у одиницях СІ: 10**12 байтів."
21293
21294 #. type: =item
21295 #: ../fish/guestfish.pod:639
21296 msgid "B<P> or B<PiB>"
21297 msgstr "B<P> або B<PiB>"
21298
21299 #. type: textblock
21300 #: ../fish/guestfish.pod:641
21301 msgid "The size in petabytes (multiplied by 2**50)."
21302 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
21303
21304 #. type: =item
21305 #: ../fish/guestfish.pod:643
21306 msgid "B<PB>"
21307 msgstr "B<PB>"
21308
21309 #. type: textblock
21310 #: ../fish/guestfish.pod:645
21311 msgid "The size in SI 10**15 byte units."
21312 msgstr "Розмір у одиницях СІ: 10**15 байтів."
21313
21314 #. type: =item
21315 #: ../fish/guestfish.pod:647
21316 msgid "B<E> or B<EiB>"
21317 msgstr "B<E> або B<EiB>"
21318
21319 #. type: textblock
21320 #: ../fish/guestfish.pod:649
21321 msgid "The size in exabytes (multiplied by 2**60)."
21322 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
21323
21324 #. type: =item
21325 #: ../fish/guestfish.pod:651
21326 msgid "B<EB>"
21327 msgstr "B<EB>"
21328
21329 #. type: textblock
21330 #: ../fish/guestfish.pod:653
21331 msgid "The size in SI 10**18 byte units."
21332 msgstr "Розмір у одиницях СІ: 10**18 байтів."
21333
21334 #. type: =item
21335 #: ../fish/guestfish.pod:655
21336 msgid "B<Z> or B<ZiB>"
21337 msgstr "B<Z> або B<ZiB>"
21338
21339 #. type: textblock
21340 #: ../fish/guestfish.pod:657
21341 msgid "The size in zettabytes (multiplied by 2**70)."
21342 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
21343
21344 #. type: =item
21345 #: ../fish/guestfish.pod:659
21346 msgid "B<ZB>"
21347 msgstr "B<ZB>"
21348
21349 #. type: textblock
21350 #: ../fish/guestfish.pod:661
21351 msgid "The size in SI 10**21 byte units."
21352 msgstr "Розмір у одиницях СІ: 10**21 байтів."
21353
21354 #. type: =item
21355 #: ../fish/guestfish.pod:663
21356 msgid "B<Y> or B<YiB>"
21357 msgstr "B<Y> або B<YiB>"
21358
21359 #. type: textblock
21360 #: ../fish/guestfish.pod:665
21361 msgid "The size in yottabytes (multiplied by 2**80)."
21362 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
21363
21364 #. type: =item
21365 #: ../fish/guestfish.pod:667
21366 msgid "B<YB>"
21367 msgstr "B<YB>"
21368
21369 #. type: textblock
21370 #: ../fish/guestfish.pod:669
21371 msgid "The size in SI 10**24 byte units."
21372 msgstr "Розмір у одиницях СІ: 10**24 байтів."
21373
21374 #. type: verbatim
21375 #: ../fish/guestfish.pod:675
21376 #, no-wrap
21377 msgid ""
21378 " truncate-size /file 1G\n"
21379 "\n"
21380 msgstr ""
21381
21382 #. type: textblock
21383 #: ../fish/guestfish.pod:677
21384 msgid "would truncate the file to 1 gigabyte."
21385 msgstr ""
21386
21387 #. type: textblock
21388 #: ../fish/guestfish.pod:679
21389 msgid ""
21390 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
21391 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
21392 "suffix will probably not do what you expect."
21393 msgstr ""
21394
21395 #. type: =head2
21396 #: ../fish/guestfish.pod:683
21397 msgid "OCTAL AND HEXADECIMAL NUMBERS"
21398 msgstr ""
21399
21400 #. type: textblock
21401 #: ../fish/guestfish.pod:685
21402 msgid ""
21403 "For specifying the radix (base) use the C convention: C<0> to prefix an "
21404 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
21405 msgstr ""
21406
21407 #. type: verbatim
21408 #: ../fish/guestfish.pod:688
21409 #, no-wrap
21410 msgid ""
21411 " 1234      decimal number 1234\n"
21412 " 02322     octal number, equivalent to decimal 1234\n"
21413 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
21414 "\n"
21415 msgstr ""
21416
21417 #. type: textblock
21418 #: ../fish/guestfish.pod:692
21419 msgid ""
21420 "When using the C<chmod> command, you almost always want to specify an octal "
21421 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
21422 "L<chmod(1)> program):"
21423 msgstr ""
21424
21425 #. type: verbatim
21426 #: ../fish/guestfish.pod:696
21427 #, no-wrap
21428 msgid ""
21429 " chmod 0777 /public  # OK\n"
21430 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
21431 "\n"
21432 msgstr ""
21433
21434 #. type: textblock
21435 #: ../fish/guestfish.pod:699
21436 msgid ""
21437 "Commands that return numbers usually print them in decimal, but some "
21438 "commands print numbers in other radices (eg. C<umask> prints the mode in "
21439 "octal, preceeded by C<0>)."
21440 msgstr ""
21441
21442 #. type: =head1
21443 #: ../fish/guestfish.pod:703
21444 msgid "WILDCARDS AND GLOBBING"
21445 msgstr ""
21446
21447 #. type: textblock
21448 #: ../fish/guestfish.pod:705
21449 msgid ""
21450 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
21451 "(globbing) by default.  So for example the following will not do what you "
21452 "expect:"
21453 msgstr ""
21454
21455 #. type: verbatim
21456 #: ../fish/guestfish.pod:709
21457 #, no-wrap
21458 msgid ""
21459 " rm-rf /home/*\n"
21460 "\n"
21461 msgstr ""
21462
21463 #. type: textblock
21464 #: ../fish/guestfish.pod:711
21465 msgid ""
21466 "Assuming you don't have a directory called literally C</home/*> then the "
21467 "above command will return an error."
21468 msgstr ""
21469
21470 #. type: textblock
21471 #: ../fish/guestfish.pod:714
21472 msgid "To perform wildcard expansion, use the C<glob> command."
21473 msgstr ""
21474
21475 #. type: verbatim
21476 #: ../fish/guestfish.pod:716
21477 #, no-wrap
21478 msgid ""
21479 " glob rm-rf /home/*\n"
21480 "\n"
21481 msgstr ""
21482
21483 #. type: textblock
21484 #: ../fish/guestfish.pod:718
21485 msgid ""
21486 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
21487 "many times), equivalent to:"
21488 msgstr ""
21489
21490 #. type: verbatim
21491 #: ../fish/guestfish.pod:721
21492 #, no-wrap
21493 msgid ""
21494 " rm-rf /home/jim\n"
21495 " rm-rf /home/joe\n"
21496 " rm-rf /home/mary\n"
21497 "\n"
21498 msgstr ""
21499
21500 #. type: textblock
21501 #: ../fish/guestfish.pod:725
21502 msgid "C<glob> only works on simple guest paths and not on device names."
21503 msgstr ""
21504
21505 #. type: textblock
21506 #: ../fish/guestfish.pod:727
21507 msgid ""
21508 "If you have several parameters, each containing a wildcard, then glob will "
21509 "perform a Cartesian product."
21510 msgstr ""
21511
21512 #. type: =head1
21513 #: ../fish/guestfish.pod:730
21514 msgid "COMMENTS"
21515 msgstr "КОМЕНТАРІ"
21516
21517 #. type: textblock
21518 #: ../fish/guestfish.pod:732
21519 msgid ""
21520 "Any line which starts with a I<#> character is treated as a comment and "
21521 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
21522 "a command.  For example:"
21523 msgstr ""
21524
21525 #. type: verbatim
21526 #: ../fish/guestfish.pod:736
21527 #, no-wrap
21528 msgid ""
21529 " # this is a comment\n"
21530 "         # this is a comment\n"
21531 " foo # NOT a comment\n"
21532 "\n"
21533 msgstr ""
21534
21535 #. type: textblock
21536 #: ../fish/guestfish.pod:740
21537 msgid "Blank lines are also ignored."
21538 msgstr ""
21539
21540 #. type: =head1
21541 #: ../fish/guestfish.pod:742
21542 msgid "RUNNING COMMANDS LOCALLY"
21543 msgstr ""
21544
21545 #. type: textblock
21546 #: ../fish/guestfish.pod:744
21547 msgid ""
21548 "Any line which starts with a I<!> character is treated as a command sent to "
21549 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
21550 msgstr ""
21551
21552 #. type: verbatim
21553 #: ../fish/guestfish.pod:748
21554 #, no-wrap
21555 msgid ""
21556 " !mkdir local\n"
21557 " tgz-out /remote local/remote-data.tar.gz\n"
21558 "\n"
21559 msgstr ""
21560
21561 #. type: textblock
21562 #: ../fish/guestfish.pod:751
21563 msgid ""
21564 "will create a directory C<local> on the host, and then export the contents "
21565 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
21566 "(See C<tgz-out>)."
21567 msgstr ""
21568
21569 #. type: textblock
21570 #: ../fish/guestfish.pod:755
21571 msgid ""
21572 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
21573 "effect, due to the way that subprocesses work in Unix."
21574 msgstr ""
21575
21576 #. type: =head2
21577 #: ../fish/guestfish.pod:758
21578 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
21579 msgstr ""
21580
21581 #. type: textblock
21582 #: ../fish/guestfish.pod:760
21583 msgid ""
21584 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
21585 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
21586 "and executed as guestfish commands."
21587 msgstr ""
21588
21589 #. type: textblock
21590 #: ../fish/guestfish.pod:764
21591 msgid ""
21592 "Thus you can use shell script to construct arbitrary guestfish commands "
21593 "which are then parsed by guestfish."
21594 msgstr ""
21595
21596 #. type: textblock
21597 #: ../fish/guestfish.pod:767
21598 msgid ""
21599 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
21600 "through C</foo.100>) using guestfish commands alone.  However this is simple "
21601 "if we use a shell script to create the guestfish commands for us:"
21602 msgstr ""
21603
21604 #. type: verbatim
21605 #: ../fish/guestfish.pod:772
21606 #, no-wrap
21607 msgid ""
21608 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
21609 "\n"
21610 msgstr ""
21611
21612 #. type: textblock
21613 #: ../fish/guestfish.pod:774
21614 msgid "or with names like C</foo.001>:"
21615 msgstr ""
21616
21617 #. type: verbatim
21618 #: ../fish/guestfish.pod:776
21619 #, no-wrap
21620 msgid ""
21621 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
21622 "\n"
21623 msgstr ""
21624
21625 #. type: textblock
21626 #: ../fish/guestfish.pod:778
21627 msgid ""
21628 "When using guestfish interactively it can be helpful to just run the shell "
21629 "script first (ie. remove the initial C<E<lt>> character so it is just an "
21630 "ordinary I<!> local command), see what guestfish commands it would run, and "
21631 "when you are happy with those prepend the C<E<lt>> character to run the "
21632 "guestfish commands for real."
21633 msgstr ""
21634
21635 #. type: =head1
21636 #: ../fish/guestfish.pod:784
21637 msgid "PIPES"
21638 msgstr "КАНАЛИ"
21639
21640 #. type: textblock
21641 #: ../fish/guestfish.pod:786
21642 msgid ""
21643 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
21644 "command (a guestfish command) to the second command (any host command).  For "
21645 "example:"
21646 msgstr ""
21647
21648 #. type: verbatim
21649 #: ../fish/guestfish.pod:790
21650 #, no-wrap
21651 msgid ""
21652 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
21653 "\n"
21654 msgstr ""
21655
21656 #. type: textblock
21657 #: ../fish/guestfish.pod:792
21658 msgid ""
21659 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
21660 "program).  The above command would list all accounts in the guest filesystem "
21661 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
21662 msgstr ""
21663
21664 #. type: verbatim
21665 #: ../fish/guestfish.pod:797
21666 #, no-wrap
21667 msgid ""
21668 " hexdump /bin/ls | head\n"
21669 " list-devices | tail -1\n"
21670 " tgz-out / - | tar ztf -\n"
21671 "\n"
21672 msgstr ""
21673
21674 #. type: textblock
21675 #: ../fish/guestfish.pod:801
21676 msgid ""
21677 "The space before the pipe symbol is required, any space after the pipe "
21678 "symbol is optional.  Everything after the pipe symbol is just passed "
21679 "straight to the host shell, so it can contain redirections, globs and "
21680 "anything else that makes sense on the host side."
21681 msgstr ""
21682
21683 #. type: textblock
21684 #: ../fish/guestfish.pod:806
21685 msgid ""
21686 "To use a literal argument which begins with a pipe symbol, you have to quote "
21687 "it, eg:"
21688 msgstr ""
21689
21690 #. type: verbatim
21691 #: ../fish/guestfish.pod:809
21692 #, no-wrap
21693 msgid ""
21694 " echo \"|\"\n"
21695 "\n"
21696 msgstr ""
21697
21698 #. type: =head1
21699 #: ../fish/guestfish.pod:811
21700 msgid "HOME DIRECTORIES"
21701 msgstr ""
21702
21703 #. type: textblock
21704 #: ../fish/guestfish.pod:813
21705 msgid ""
21706 "If a parameter starts with the character C<~> then the tilde may be expanded "
21707 "as a home directory path (either C<~> for the current user's home directory, "
21708 "or C<~user> for another user)."
21709 msgstr ""
21710
21711 #. type: textblock
21712 #: ../fish/guestfish.pod:817
21713 msgid ""
21714 "Note that home directory expansion happens for users known I<on the host>, "
21715 "not in the guest filesystem."
21716 msgstr ""
21717
21718 #. type: textblock
21719 #: ../fish/guestfish.pod:820
21720 msgid ""
21721 "To use a literal argument which begins with a tilde, you have to quote it, "
21722 "eg:"
21723 msgstr ""
21724
21725 #. type: verbatim
21726 #: ../fish/guestfish.pod:823
21727 #, no-wrap
21728 msgid ""
21729 " echo \"~\"\n"
21730 "\n"
21731 msgstr ""
21732
21733 #. type: =head2
21734 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
21735 msgid "ENCRYPTED DISKS"
21736 msgstr "ЗАШИФРОВАНІ ДИСКИ"
21737
21738 #. type: textblock
21739 #: ../fish/guestfish.pod:827
21740 msgid ""
21741 "Libguestfs has some support for Linux guests encrypted according to the "
21742 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
21743 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
21744 "LUKS is supported."
21745 msgstr ""
21746
21747 #. type: textblock
21748 #: ../fish/guestfish.pod:832
21749 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
21750 msgstr ""
21751
21752 #. type: verbatim
21753 #: ../fish/guestfish.pod:834
21754 #, no-wrap
21755 msgid ""
21756 " ><fs> vfs-type /dev/sda2\n"
21757 " crypto_LUKS\n"
21758 "\n"
21759 msgstr ""
21760
21761 #. type: textblock
21762 #: ../fish/guestfish.pod:837
21763 msgid ""
21764 "Then open those devices using L</luks-open>.  This creates a device-mapper "
21765 "device called C</dev/mapper/luksdev>."
21766 msgstr ""
21767
21768 #. type: verbatim
21769 #: ../fish/guestfish.pod:840
21770 #, no-wrap
21771 msgid ""
21772 " ><fs> luks-open /dev/sda2 luksdev\n"
21773 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
21774 "\n"
21775 msgstr ""
21776
21777 #. type: textblock
21778 #: ../fish/guestfish.pod:843
21779 msgid ""
21780 "Finally you have to tell LVM to scan for volume groups on the newly created "
21781 "mapper device:"
21782 msgstr ""
21783
21784 #. type: verbatim
21785 #: ../fish/guestfish.pod:846
21786 #, no-wrap
21787 msgid ""
21788 " vgscan\n"
21789 " vg-activate-all true\n"
21790 "\n"
21791 msgstr ""
21792
21793 #. type: textblock
21794 #: ../fish/guestfish.pod:849
21795 msgid "The logical volume(s) can now be mounted in the usual way."
21796 msgstr ""
21797
21798 #. type: textblock
21799 #: ../fish/guestfish.pod:851
21800 msgid ""
21801 "Before closing a LUKS device you must unmount any logical volumes on it and "
21802 "deactivate the volume groups by calling C<vg-activate false VG> on each "
21803 "one.  Then you can close the mapper device:"
21804 msgstr ""
21805
21806 #. type: verbatim
21807 #: ../fish/guestfish.pod:855
21808 #, no-wrap
21809 msgid ""
21810 " vg-activate false /dev/VG\n"
21811 " luks-close /dev/mapper/luksdev\n"
21812 "\n"
21813 msgstr ""
21814
21815 #. type: textblock
21816 #: ../fish/guestfish.pod:860
21817 msgid ""
21818 "If a path is prefixed with C<win:> then you can use Windows-style drive "
21819 "letters and paths (with some limitations).  The following commands are "
21820 "equivalent:"
21821 msgstr ""
21822
21823 #. type: verbatim
21824 #: ../fish/guestfish.pod:864
21825 #, no-wrap
21826 msgid ""
21827 " file /WINDOWS/system32/config/system.LOG\n"
21828 "\n"
21829 msgstr ""
21830
21831 #. type: verbatim
21832 #: ../fish/guestfish.pod:866
21833 #, no-wrap
21834 msgid ""
21835 " file win:\\windows\\system32\\config\\system.log\n"
21836 "\n"
21837 msgstr ""
21838
21839 #. type: verbatim
21840 #: ../fish/guestfish.pod:868
21841 #, no-wrap
21842 msgid ""
21843 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
21844 "\n"
21845 msgstr ""
21846
21847 #. type: textblock
21848 #: ../fish/guestfish.pod:870
21849 msgid ""
21850 "The parameter is rewritten \"behind the scenes\" by looking up the position "
21851 "where the drive is mounted, prepending that to the path, changing all "
21852 "backslash characters to forward slash, then resolving the result using L</"
21853 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
21854 "the parameter might be rewritten like this:"
21855 msgstr ""
21856
21857 #. type: verbatim
21858 #: ../fish/guestfish.pod:876
21859 #, no-wrap
21860 msgid ""
21861 " win:e:\\foo\\bar => /e/FOO/bar\n"
21862 "\n"
21863 msgstr ""
21864
21865 #. type: textblock
21866 #: ../fish/guestfish.pod:878
21867 msgid "This only works in argument positions that expect a path."
21868 msgstr ""
21869
21870 #. type: =head1
21871 #: ../fish/guestfish.pod:880
21872 msgid "UPLOADING AND DOWNLOADING FILES"
21873 msgstr ""
21874
21875 #. type: textblock
21876 #: ../fish/guestfish.pod:882
21877 msgid ""
21878 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
21879 "others which upload from or download to a local file, you can use the "
21880 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
21881 msgstr ""
21882
21883 #. type: verbatim
21884 #: ../fish/guestfish.pod:886
21885 #, no-wrap
21886 msgid ""
21887 " upload - /foo\n"
21888 "\n"
21889 msgstr ""
21890
21891 #. type: textblock
21892 #: ../fish/guestfish.pod:888
21893 msgid ""
21894 "reads stdin and creates from that a file C</foo> in the disk image, and:"
21895 msgstr ""
21896
21897 #. type: verbatim
21898 #: ../fish/guestfish.pod:891
21899 #, no-wrap
21900 msgid ""
21901 " tar-out /etc - | tar tf -\n"
21902 "\n"
21903 msgstr ""
21904
21905 #. type: textblock
21906 #: ../fish/guestfish.pod:893
21907 msgid ""
21908 "writes the tarball to stdout and then pipes that into the external \"tar\" "
21909 "command (see L</PIPES>)."
21910 msgstr ""
21911
21912 #. type: textblock
21913 #: ../fish/guestfish.pod:896
21914 msgid ""
21915 "When using C<-> to read from stdin, the input is read up to the end of "
21916 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
21917 "some arbitrary end marker:"
21918 msgstr ""
21919
21920 #. type: verbatim
21921 #: ../fish/guestfish.pod:900
21922 #, no-wrap
21923 msgid ""
21924 " upload -<<END /foo\n"
21925 " input line 1\n"
21926 " input line 2\n"
21927 " input line 3\n"
21928 " END\n"
21929 "\n"
21930 msgstr ""
21931
21932 #. type: textblock
21933 #: ../fish/guestfish.pod:906
21934 msgid ""
21935 "Any string of characters can be used instead of C<END>.  The end marker must "
21936 "appear on a line of its own, without any preceeding or following characters "
21937 "(not even spaces)."
21938 msgstr ""
21939
21940 #. type: textblock
21941 #: ../fish/guestfish.pod:910
21942 msgid ""
21943 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
21944 "upload local files (so-called \"FileIn\" parameters in the generator)."
21945 msgstr ""
21946
21947 #. type: =head1
21948 #: ../fish/guestfish.pod:913
21949 msgid "EXIT ON ERROR BEHAVIOUR"
21950 msgstr ""
21951
21952 #. type: textblock
21953 #: ../fish/guestfish.pod:915
21954 msgid ""
21955 "By default, guestfish will ignore any errors when in interactive mode (ie. "
21956 "taking commands from a human over a tty), and will exit on the first error "
21957 "in non-interactive mode (scripts, commands given on the command line)."
21958 msgstr ""
21959
21960 #. type: textblock
21961 #: ../fish/guestfish.pod:920
21962 msgid ""
21963 "If you prefix a command with a I<-> character, then that command will not "
21964 "cause guestfish to exit, even if that (one) command returns an error."
21965 msgstr ""
21966
21967 #. type: =head1
21968 #: ../fish/guestfish.pod:924
21969 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
21970 msgstr ""
21971
21972 #. type: textblock
21973 #: ../fish/guestfish.pod:926
21974 msgid ""
21975 "Guestfish can be remote-controlled over a socket.  This is useful "
21976 "particularly in shell scripts where you want to make several different "
21977 "changes to a filesystem, but you don't want the overhead of starting up a "
21978 "guestfish process each time."
21979 msgstr ""
21980
21981 #. type: textblock
21982 #: ../fish/guestfish.pod:931
21983 msgid "Start a guestfish server process using:"
21984 msgstr ""
21985
21986 #. type: verbatim
21987 #: ../fish/guestfish.pod:933
21988 #, no-wrap
21989 msgid ""
21990 " eval \"`guestfish --listen`\"\n"
21991 "\n"
21992 msgstr ""
21993
21994 #. type: textblock
21995 #: ../fish/guestfish.pod:935
21996 msgid "and then send it commands by doing:"
21997 msgstr ""
21998
21999 #. type: verbatim
22000 #: ../fish/guestfish.pod:937
22001 #, no-wrap
22002 msgid ""
22003 " guestfish --remote cmd [...]\n"
22004 "\n"
22005 msgstr ""
22006
22007 #. type: textblock
22008 #: ../fish/guestfish.pod:939
22009 msgid "To cause the server to exit, send it the exit command:"
22010 msgstr ""
22011
22012 #. type: textblock
22013 #: ../fish/guestfish.pod:943
22014 msgid ""
22015 "Note that the server will normally exit if there is an error in a command.  "
22016 "You can change this in the usual way.  See section L</EXIT ON ERROR "
22017 "BEHAVIOUR>."
22018 msgstr ""
22019
22020 #. type: =head2
22021 #: ../fish/guestfish.pod:947
22022 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
22023 msgstr ""
22024
22025 #. type: textblock
22026 #: ../fish/guestfish.pod:949
22027 msgid ""
22028 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
22029 "is how the I<--remote> option knows where to send the commands.  You can "
22030 "have several guestfish listener processes running using:"
22031 msgstr ""
22032
22033 #. type: verbatim
22034 #: ../fish/guestfish.pod:953
22035 #, no-wrap
22036 msgid ""
22037 " eval \"`guestfish --listen`\"\n"
22038 " pid1=$GUESTFISH_PID\n"
22039 " eval \"`guestfish --listen`\"\n"
22040 " pid2=$GUESTFISH_PID\n"
22041 " ...\n"
22042 " guestfish --remote=$pid1 cmd\n"
22043 " guestfish --remote=$pid2 cmd\n"
22044 "\n"
22045 msgstr ""
22046
22047 #. type: =head2
22048 #: ../fish/guestfish.pod:961
22049 msgid "REMOTE CONTROL AND CSH"
22050 msgstr ""
22051
22052 #. type: textblock
22053 #: ../fish/guestfish.pod:963
22054 msgid ""
22055 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
22056 "option:"
22057 msgstr ""
22058
22059 #. type: verbatim
22060 #: ../fish/guestfish.pod:966
22061 #, no-wrap
22062 msgid ""
22063 " eval \"`guestfish --listen --csh`\"\n"
22064 "\n"
22065 msgstr ""
22066
22067 #. type: =head2
22068 #: ../fish/guestfish.pod:968
22069 msgid "REMOTE CONTROL DETAILS"
22070 msgstr ""
22071
22072 #. type: textblock
22073 #: ../fish/guestfish.pod:970
22074 msgid ""
22075 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
22076 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
22077 "and C<$PID> is the process ID of the server."
22078 msgstr ""
22079
22080 #. type: textblock
22081 #: ../fish/guestfish.pod:974
22082 msgid "Guestfish client and server versions must match exactly."
22083 msgstr ""
22084
22085 #. type: =head2
22086 #: ../fish/guestfish.pod:976
22087 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
22088 msgstr ""
22089
22090 #. type: textblock
22091 #: ../fish/guestfish.pod:978
22092 msgid ""
22093 "From Bash, you can use the following code which creates a guestfish "
22094 "instance, correctly quotes the command line, handles failure to start, and "
22095 "cleans up guestfish when the script exits:"
22096 msgstr ""
22097
22098 #. type: verbatim
22099 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
22100 #, no-wrap
22101 msgid ""
22102 " #!/bin/bash -\n"
22103 " \n"
22104 msgstr ""
22105
22106 #. type: verbatim
22107 #: ../fish/guestfish.pod:986
22108 #, no-wrap
22109 msgid ""
22110 " guestfish[0]=\"guestfish\"\n"
22111 " guestfish[1]=\"--listen\"\n"
22112 " guestfish[2]=\"--ro\"\n"
22113 " guestfish[3]=\"-a\"\n"
22114 " guestfish[4]=\"disk.img\"\n"
22115 " \n"
22116 msgstr ""
22117
22118 #. type: verbatim
22119 #: ../fish/guestfish.pod:992
22120 #, no-wrap
22121 msgid ""
22122 " GUESTFISH_PID=\n"
22123 " eval $(\"${guestfish[@]}\")\n"
22124 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
22125 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
22126 "     exit 1\n"
22127 " fi\n"
22128 " \n"
22129 msgstr ""
22130
22131 #. type: verbatim
22132 #: ../fish/guestfish.pod:999
22133 #, no-wrap
22134 msgid ""
22135 " cleanup_guestfish ()\n"
22136 " {\n"
22137 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
22138 " }\n"
22139 " trap cleanup_guestfish EXIT ERR\n"
22140 " \n"
22141 msgstr ""
22142
22143 #. type: verbatim
22144 #: ../fish/guestfish.pod:1005
22145 #, no-wrap
22146 msgid ""
22147 " guestfish --remote -- run\n"
22148 " \n"
22149 msgstr ""
22150
22151 #. type: verbatim
22152 #: ../fish/guestfish.pod:1007
22153 #, no-wrap
22154 msgid ""
22155 " # ...\n"
22156 "\n"
22157 msgstr ""
22158
22159 #. type: =head2
22160 #: ../fish/guestfish.pod:1009
22161 msgid "REMOTE CONTROL RUN COMMAND HANGING"
22162 msgstr ""
22163
22164 #. type: textblock
22165 #: ../fish/guestfish.pod:1011
22166 msgid ""
22167 "Using the C<run> (or C<launch>) command remotely in a command substitution "
22168 "context hangs, ie. don't do (note the backquotes):"
22169 msgstr ""
22170
22171 #. type: verbatim
22172 #: ../fish/guestfish.pod:1014
22173 #, no-wrap
22174 msgid ""
22175 " a=`guestfish --remote run`\n"
22176 "\n"
22177 msgstr ""
22178
22179 #. type: textblock
22180 #: ../fish/guestfish.pod:1016
22181 msgid ""
22182 "Since the C<run> command produces no output on stdout, this is not useful "
22183 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
22184 "cgi?id=592910>."
22185 msgstr ""
22186
22187 #. type: =head1
22188 #: ../fish/guestfish.pod:1020
22189 msgid "PREPARED DISK IMAGES"
22190 msgstr ""
22191
22192 #. type: textblock
22193 #: ../fish/guestfish.pod:1022
22194 msgid ""
22195 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
22196 "preformatted disk images that guestfish can make for you to save typing.  "
22197 "This is particularly useful for testing purposes.  This option is used "
22198 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
22199 "can be mixed with I<-a>)."
22200 msgstr ""
22201
22202 #. type: textblock
22203 #: ../fish/guestfish.pod:1028
22204 msgid ""
22205 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
22206 "the second and so on.  Existing files in the current directory are "
22207 "I<overwritten>."
22208 msgstr ""
22209
22210 #. type: textblock
22211 #: ../fish/guestfish.pod:1032
22212 msgid ""
22213 "The type briefly describes how the disk should be sized, partitioned, how "
22214 "filesystem(s) should be created, and how content should be added.  "
22215 "Optionally the type can be followed by extra parameters, separated by C<:> "
22216 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
22217 "allocated disk, containing a single partition, with the partition formatted "
22218 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
22219 "disk instead."
22220 msgstr ""
22221
22222 #. type: textblock
22223 #: ../fish/guestfish.pod:1040
22224 msgid "To list the available types and any extra parameters they take, run:"
22225 msgstr ""
22226
22227 #. type: textblock
22228 #: ../fish/guestfish.pod:1044
22229 msgid ""
22230 "Note that the prepared filesystem is not mounted.  You would usually have to "
22231 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
22232 msgstr ""
22233
22234 #. type: textblock
22235 #: ../fish/guestfish.pod:1048
22236 msgid ""
22237 "If any I<-N> or I<--new> options are given, the guest is automatically "
22238 "launched."
22239 msgstr ""
22240
22241 #. type: textblock
22242 #: ../fish/guestfish.pod:1053
22243 msgid "Create a 100MB disk with an ext4-formatted partition:"
22244 msgstr ""
22245
22246 #. type: verbatim
22247 #: ../fish/guestfish.pod:1055
22248 #, no-wrap
22249 msgid ""
22250 " guestfish -N fs:ext4\n"
22251 "\n"
22252 msgstr ""
22253
22254 #. type: textblock
22255 #: ../fish/guestfish.pod:1057
22256 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
22257 msgstr ""
22258
22259 #. type: verbatim
22260 #: ../fish/guestfish.pod:1059
22261 #, no-wrap
22262 msgid ""
22263 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
22264 "\n"
22265 msgstr ""
22266
22267 #. type: textblock
22268 #: ../fish/guestfish.pod:1061
22269 msgid "Create a blank 200MB disk:"
22270 msgstr ""
22271
22272 #. type: verbatim
22273 #: ../fish/guestfish.pod:1063
22274 #, no-wrap
22275 msgid ""
22276 " guestfish -N disk:200M\n"
22277 "\n"
22278 msgstr ""
22279
22280 #. type: =head1
22281 #: ../fish/guestfish.pod:1065
22282 msgid "PROGRESS BARS"
22283 msgstr ""
22284
22285 #. type: textblock
22286 #: ../fish/guestfish.pod:1067
22287 msgid ""
22288 "Some (not all) long-running commands send progress notification messages as "
22289 "they are running.  Guestfish turns these messages into progress bars."
22290 msgstr ""
22291
22292 #. type: textblock
22293 #: ../fish/guestfish.pod:1071
22294 msgid ""
22295 "When a command that supports progress bars takes longer than two seconds to "
22296 "run, and if progress bars are enabled, then you will see one appearing below "
22297 "the command:"
22298 msgstr ""
22299
22300 #. type: verbatim
22301 #: ../fish/guestfish.pod:1075
22302 #, no-wrap
22303 msgid ""
22304 " ><fs> copy-size /large-file /another-file 2048M\n"
22305 " / 10% [#####-----------------------------------------] 00:30\n"
22306 "\n"
22307 msgstr ""
22308
22309 #. type: textblock
22310 #: ../fish/guestfish.pod:1078
22311 msgid ""
22312 "The spinner on the left hand side moves round once for every progress "
22313 "notification received from the backend.  This is a (reasonably) golden "
22314 "assurance that the command is \"doing something\" even if the progress bar "
22315 "is not moving, because the command is able to send the progress "
22316 "notifications.  When the bar reaches 100% and the command finishes, the "
22317 "spinner disappears."
22318 msgstr ""
22319
22320 #. type: textblock
22321 #: ../fish/guestfish.pod:1085
22322 msgid ""
22323 "Progress bars are enabled by default when guestfish is used interactively.  "
22324 "You can enable them even for non-interactive modes using I<--progress-bars>, "
22325 "and you can disable them completely using I<--no-progress-bars>."
22326 msgstr ""
22327
22328 #. type: =head1
22329 #: ../fish/guestfish.pod:1090
22330 msgid "GUESTFISH COMMANDS"
22331 msgstr ""
22332
22333 #. type: textblock
22334 #: ../fish/guestfish.pod:1092
22335 msgid ""
22336 "The commands in this section are guestfish convenience commands, in other "
22337 "words, they are not part of the L<guestfs(3)> API."
22338 msgstr ""
22339
22340 #. type: =head2
22341 #: ../fish/guestfish.pod:1095
22342 msgid "help"
22343 msgstr "help"
22344
22345 #. type: verbatim
22346 #: ../fish/guestfish.pod:1097
22347 #, no-wrap
22348 msgid ""
22349 " help\n"
22350 " help cmd\n"
22351 "\n"
22352 msgstr ""
22353 " help\n"
22354 " help команда\n"
22355 "\n"
22356
22357 #. type: textblock
22358 #: ../fish/guestfish.pod:1100
22359 msgid "Without any parameter, this provides general help."
22360 msgstr "Без параметра показує загальну довідкову інформацію."
22361
22362 #. type: textblock
22363 #: ../fish/guestfish.pod:1102
22364 msgid "With a C<cmd> parameter, this displays detailed help for that command."
22365 msgstr ""
22366
22367 #. type: =head2
22368 #: ../fish/guestfish.pod:1104
22369 msgid "quit | exit"
22370 msgstr ""
22371
22372 #. type: textblock
22373 #: ../fish/guestfish.pod:1106
22374 msgid "This exits guestfish.  You can also use C<^D> key."
22375 msgstr ""
22376
22377 #. type: textblock
22378 #: ../fish/guestfish.pod:1108
22379 msgid "@FISH_COMMANDS@"
22380 msgstr ""
22381
22382 #. type: =head1
22383 #: ../fish/guestfish.pod:1110
22384 msgid "COMMANDS"
22385 msgstr "КОМАНДИ"
22386
22387 #. type: textblock
22388 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
22389 msgid "@ACTIONS@"
22390 msgstr "@ACTIONS@"
22391
22392 #. type: textblock
22393 #: ../fish/guestfish.pod:1116
22394 msgid ""
22395 "guestfish returns 0 if the commands completed without error, or 1 if there "
22396 "was an error."
22397 msgstr ""
22398
22399 #. type: =item
22400 #: ../fish/guestfish.pod:1123
22401 msgid "EDITOR"
22402 msgstr "РЕДАКТОР"
22403
22404 #. type: textblock
22405 #: ../fish/guestfish.pod:1125
22406 msgid ""
22407 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
22408 "C<vi>."
22409 msgstr ""
22410
22411 #. type: =item
22412 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3218
22413 msgid "FEBOOTSTRAP_KERNEL"
22414 msgstr ""
22415
22416 #. type: =item
22417 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3220
22418 msgid "FEBOOTSTRAP_MODULES"
22419 msgstr ""
22420
22421 #. type: textblock
22422 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3222
22423 msgid ""
22424 "These two environment variables allow the kernel that libguestfs uses in the "
22425 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
22426 "most recent host kernel is chosen.  For more information about kernel "
22427 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
22428 "available in febootstrap E<ge> 3.8."
22429 msgstr ""
22430
22431 #. type: =item
22432 #: ../fish/guestfish.pod:1138
22433 msgid "GUESTFISH_DISPLAY_IMAGE"
22434 msgstr ""
22435
22436 #. type: textblock
22437 #: ../fish/guestfish.pod:1140
22438 msgid ""
22439 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
22440 "If not set, it uses L<display(1)>."
22441 msgstr ""
22442
22443 #. type: =item
22444 #: ../fish/guestfish.pod:1143
22445 msgid "GUESTFISH_PID"
22446 msgstr ""
22447
22448 #. type: textblock
22449 #: ../fish/guestfish.pod:1145
22450 msgid ""
22451 "Used with the I<--remote> option to specify the remote guestfish process to "
22452 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
22453 msgstr ""
22454
22455 #. type: =item
22456 #: ../fish/guestfish.pod:1149
22457 msgid "HEXEDITOR"
22458 msgstr ""
22459
22460 #. type: textblock
22461 #: ../fish/guestfish.pod:1151
22462 msgid ""
22463 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
22464 "not specified, the external L<hexedit(1)> program is used."
22465 msgstr ""
22466
22467 #. type: =item
22468 #: ../fish/guestfish.pod:1155
22469 msgid "HOME"
22470 msgstr "ДОМІВКА"
22471
22472 #. type: textblock
22473 #: ../fish/guestfish.pod:1157
22474 msgid ""
22475 "If compiled with GNU readline support, various files in the home directory "
22476 "can be used.  See L</FILES>."
22477 msgstr ""
22478
22479 #. type: =item
22480 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3228
22481 msgid "LIBGUESTFS_APPEND"
22482 msgstr ""
22483
22484 #. type: textblock
22485 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3230
22486 msgid "Pass additional options to the guest kernel."
22487 msgstr ""
22488
22489 #. type: =item
22490 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3232
22491 msgid "LIBGUESTFS_DEBUG"
22492 msgstr "LIBGUESTFS_DEBUG"
22493
22494 #. type: textblock
22495 #: ../fish/guestfish.pod:1166
22496 msgid ""
22497 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
22498 "effect as using the B<-v> option."
22499 msgstr ""
22500
22501 #. type: =item
22502 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3237
22503 msgid "LIBGUESTFS_MEMSIZE"
22504 msgstr "LIBGUESTFS_MEMSIZE"
22505
22506 #. type: textblock
22507 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3239
22508 msgid ""
22509 "Set the memory allocated to the qemu process, in megabytes.  For example:"
22510 msgstr ""
22511
22512 #. type: verbatim
22513 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3242
22514 #, no-wrap
22515 msgid ""
22516 " LIBGUESTFS_MEMSIZE=700\n"
22517 "\n"
22518 msgstr ""
22519 " LIBGUESTFS_MEMSIZE=700\n"
22520 "\n"
22521
22522 #. type: =item
22523 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3244
22524 msgid "LIBGUESTFS_PATH"
22525 msgstr ""
22526
22527 #. type: textblock
22528 #: ../fish/guestfish.pod:1178
22529 msgid ""
22530 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
22531 "the discussion of paths in L<guestfs(3)>."
22532 msgstr ""
22533
22534 #. type: =item
22535 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3249
22536 msgid "LIBGUESTFS_QEMU"
22537 msgstr ""
22538
22539 #. type: textblock
22540 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3251
22541 msgid ""
22542 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
22543 "which was found at compile time by the configure script is used."
22544 msgstr ""
22545
22546 #. type: =item
22547 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3257
22548 msgid "LIBGUESTFS_TRACE"
22549 msgstr ""
22550
22551 #. type: textblock
22552 #: ../fish/guestfish.pod:1189
22553 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
22554 msgstr ""
22555
22556 #. type: =item
22557 #: ../fish/guestfish.pod:1191
22558 msgid "PAGER"
22559 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
22560
22561 #. type: textblock
22562 #: ../fish/guestfish.pod:1193
22563 msgid ""
22564 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
22565 "C<more>."
22566 msgstr ""
22567
22568 #. type: =item
22569 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:260
22570 #: ../src/guestfs.pod:3262
22571 msgid "TMPDIR"
22572 msgstr ""
22573
22574 #. type: textblock
22575 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3264
22576 msgid ""
22577 "Location of temporary directory, defaults to C</tmp> except for the cached "
22578 "supermin appliance which defaults to C</var/tmp>."
22579 msgstr ""
22580
22581 #. type: textblock
22582 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3267
22583 msgid ""
22584 "If libguestfs was compiled to use the supermin appliance then the real "
22585 "appliance is cached in this directory, shared between all handles belonging "
22586 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
22587 "use in case C</var/tmp> is not large enough."
22588 msgstr ""
22589
22590 #. type: =head1
22591 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
22592 #: ../rescue/virt-rescue.pod:310
22593 msgid "FILES"
22594 msgstr "ФАЙЛИ"
22595
22596 #. type: =item
22597 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
22598 #: ../rescue/virt-rescue.pod:314
22599 msgid "$HOME/.libguestfs-tools.rc"
22600 msgstr ""
22601
22602 #. type: =item
22603 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
22604 #: ../rescue/virt-rescue.pod:316
22605 msgid "/etc/libguestfs-tools.conf"
22606 msgstr ""
22607
22608 #. type: textblock
22609 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
22610 #: ../rescue/virt-rescue.pod:318
22611 msgid ""
22612 "This configuration file controls the default read-only or read-write mode "
22613 "(I<--ro> or I<--rw>)."
22614 msgstr ""
22615
22616 #. type: textblock
22617 #: ../fish/guestfish.pod:1220
22618 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
22619 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
22620
22621 #. type: =item
22622 #: ../fish/guestfish.pod:1222
22623 msgid "$HOME/.guestfish"
22624 msgstr ""
22625
22626 #. type: textblock
22627 #: ../fish/guestfish.pod:1224
22628 msgid ""
22629 "If compiled with GNU readline support, then the command history is saved in "
22630 "this file."
22631 msgstr ""
22632
22633 #. type: =item
22634 #: ../fish/guestfish.pod:1227
22635 msgid "$HOME/.inputrc"
22636 msgstr ""
22637
22638 #. type: =item
22639 #: ../fish/guestfish.pod:1229
22640 msgid "/etc/inputrc"
22641 msgstr ""
22642
22643 #. type: textblock
22644 #: ../fish/guestfish.pod:1231
22645 msgid ""
22646 "If compiled with GNU readline support, then these files can be used to "
22647 "configure readline.  For further information, please see L<readline(3)/"
22648 "INITIALIZATION FILE>."
22649 msgstr ""
22650
22651 #. type: textblock
22652 #: ../fish/guestfish.pod:1235
22653 msgid "To write rules which only apply to guestfish, use:"
22654 msgstr ""
22655
22656 #. type: verbatim
22657 #: ../fish/guestfish.pod:1237
22658 #, no-wrap
22659 msgid ""
22660 " $if guestfish\n"
22661 " ...\n"
22662 " $endif\n"
22663 "\n"
22664 msgstr ""
22665
22666 #. type: textblock
22667 #: ../fish/guestfish.pod:1241
22668 msgid ""
22669 "Variables that you can set in inputrc that change the behaviour of guestfish "
22670 "in useful ways include:"
22671 msgstr ""
22672
22673 #. type: =item
22674 #: ../fish/guestfish.pod:1246
22675 msgid "completion-ignore-case (default: on)"
22676 msgstr ""
22677
22678 #. type: textblock
22679 #: ../fish/guestfish.pod:1248
22680 msgid ""
22681 "By default, guestfish will ignore case when tab-completing paths on the "
22682 "disk.  Use:"
22683 msgstr ""
22684
22685 #. type: verbatim
22686 #: ../fish/guestfish.pod:1251
22687 #, no-wrap
22688 msgid ""
22689 " set completion-ignore-case off\n"
22690 "\n"
22691 msgstr ""
22692
22693 #. type: textblock
22694 #: ../fish/guestfish.pod:1253
22695 msgid "to make guestfish case sensitive."
22696 msgstr ""
22697
22698 #. type: =item
22699 #: ../fish/guestfish.pod:1257
22700 msgid "test1.img"
22701 msgstr ""
22702
22703 #. type: =item
22704 #: ../fish/guestfish.pod:1259
22705 msgid "test2.img (etc)"
22706 msgstr ""
22707
22708 #. type: textblock
22709 #: ../fish/guestfish.pod:1261
22710 msgid ""
22711 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
22712 "will be created in the file C<test1.img> in the current directory.  The "
22713 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
22714 "the same name will be overwritten."
22715 msgstr ""
22716
22717 #. type: textblock
22718 #: ../fish/guestfish.pod:1270
22719 msgid ""
22720 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
22721 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
22722 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
22723 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
22724 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
22725 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
22726 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
22727 msgstr ""
22728
22729 #. type: textblock
22730 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3360
22731 #: ../test-tool/libguestfs-test-tool.pod:112
22732 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
22733 msgstr ""
22734
22735 #. type: textblock
22736 #: ../fish/virt-copy-in.pod:5
22737 msgid ""
22738 "virt-copy-in - Copy files and directories into a virtual machine disk image."
22739 msgstr ""
22740
22741 #. type: verbatim
22742 #: ../fish/virt-copy-in.pod:9
22743 #, no-wrap
22744 msgid ""
22745 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
22746 "\n"
22747 msgstr ""
22748
22749 #. type: verbatim
22750 #: ../fish/virt-copy-in.pod:11
22751 #, no-wrap
22752 msgid ""
22753 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
22754 "\n"
22755 msgstr ""
22756
22757 #. type: textblock
22758 #: ../fish/virt-copy-in.pod:15
22759 msgid ""
22760 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
22761 "causing disk corruption.  The virtual machine must be shut down before you "
22762 "use this command."
22763 msgstr ""
22764
22765 #. type: textblock
22766 #: ../fish/virt-copy-in.pod:21
22767 msgid ""
22768 "C<virt-copy-in> copies files and directories from the local disk into a "
22769 "virtual machine disk image or named libvirt domain."
22770 msgstr ""
22771
22772 #. type: textblock
22773 #: ../fish/virt-copy-in.pod:24
22774 msgid ""
22775 "You can give one of more filenames and directories on the command line.  "
22776 "Directories are copied in recursively.  The final parameter must be the "
22777 "destination directory in the disk image which must be an absolute path "
22778 "starting with a C</> character."
22779 msgstr ""
22780
22781 #. type: verbatim
22782 #: ../fish/virt-copy-in.pod:33
22783 #, no-wrap
22784 msgid ""
22785 " virt-copy-in -d MyGuest resolv.conf /etc\n"
22786 "\n"
22787 msgstr ""
22788
22789 #. type: textblock
22790 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
22791 msgid "Upload a home directory to a guest:"
22792 msgstr ""
22793
22794 #. type: verbatim
22795 #: ../fish/virt-copy-in.pod:37
22796 #, no-wrap
22797 msgid ""
22798 " virt-copy-in -d MyGuest skel /home\n"
22799 "\n"
22800 msgstr ""
22801
22802 #. type: =head1
22803 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
22804 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
22805 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
22806 msgstr ""
22807
22808 #. type: textblock
22809 #: ../fish/virt-copy-in.pod:41
22810 msgid ""
22811 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22812 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
22813 "are probably better off using guestfish directly."
22814 msgstr ""
22815
22816 #. type: textblock
22817 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
22818 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
22819 msgid ""
22820 "Since the shell script just passes options straight to guestfish, read "
22821 "L<guestfish(1)> to see the full list of options."
22822 msgstr ""
22823
22824 #. type: textblock
22825 #: ../fish/virt-copy-in.pod:52
22826 msgid ""
22827 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
22828 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22829 msgstr ""
22830
22831 #. type: textblock
22832 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
22833 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
22834 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
22835 msgstr ""
22836
22837 #. type: textblock
22838 #: ../fish/virt-copy-out.pod:5
22839 msgid ""
22840 "virt-copy-out - Copy files and directories out of a virtual machine disk "
22841 "image."
22842 msgstr ""
22843
22844 #. type: verbatim
22845 #: ../fish/virt-copy-out.pod:9
22846 #, no-wrap
22847 msgid ""
22848 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
22849 "\n"
22850 msgstr ""
22851
22852 #. type: verbatim
22853 #: ../fish/virt-copy-out.pod:11
22854 #, no-wrap
22855 msgid ""
22856 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
22857 "\n"
22858 msgstr ""
22859
22860 #. type: textblock
22861 #: ../fish/virt-copy-out.pod:15
22862 msgid ""
22863 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
22864 "image or named libvirt domain."
22865 msgstr ""
22866
22867 #. type: textblock
22868 #: ../fish/virt-copy-out.pod:18
22869 msgid ""
22870 "You can give one of more filenames and directories on the command line.  "
22871 "Directories are copied out recursively."
22872 msgstr ""
22873
22874 #. type: textblock
22875 #: ../fish/virt-copy-out.pod:23
22876 msgid "Download the home directories from a virtual machine:"
22877 msgstr ""
22878
22879 #. type: verbatim
22880 #: ../fish/virt-copy-out.pod:25
22881 #, no-wrap
22882 msgid ""
22883 " mkdir homes\n"
22884 " virt-copy-out -d MyGuest /home homes\n"
22885 "\n"
22886 msgstr ""
22887
22888 #. type: textblock
22889 #: ../fish/virt-copy-out.pod:30
22890 msgid ""
22891 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22892 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
22893 "are probably better off using guestfish directly."
22894 msgstr ""
22895
22896 #. type: textblock
22897 #: ../fish/virt-copy-out.pod:41
22898 msgid ""
22899 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
22900 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22901 msgstr ""
22902
22903 #. type: textblock
22904 #: ../fish/virt-tar-in.pod:5
22905 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
22906 msgstr ""
22907
22908 #. type: verbatim
22909 #: ../fish/virt-tar-in.pod:9
22910 #, no-wrap
22911 msgid ""
22912 " virt-tar-in -a disk.img data.tar /destination\n"
22913 "\n"
22914 msgstr ""
22915
22916 #. type: verbatim
22917 #: ../fish/virt-tar-in.pod:11
22918 #, no-wrap
22919 msgid ""
22920 " virt-tar-in -d domain data.tar /destination\n"
22921 "\n"
22922 msgstr ""
22923
22924 #. type: verbatim
22925 #: ../fish/virt-tar-in.pod:13
22926 #, no-wrap
22927 msgid ""
22928 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
22929 "\n"
22930 msgstr ""
22931
22932 #. type: textblock
22933 #: ../fish/virt-tar-in.pod:17
22934 msgid ""
22935 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
22936 "causing disk corruption.  The virtual machine must be shut down before you "
22937 "use this command."
22938 msgstr ""
22939
22940 #. type: textblock
22941 #: ../fish/virt-tar-in.pod:23
22942 msgid ""
22943 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
22944 "image or named libvirt domain."
22945 msgstr ""
22946
22947 #. type: textblock
22948 #: ../fish/virt-tar-in.pod:26
22949 msgid ""
22950 "The first parameter is the tar file.  Use C<-> to read the tar file from "
22951 "standard input.  The second parameter is the absolute target directory to "
22952 "unpack into."
22953 msgstr ""
22954
22955 #. type: verbatim
22956 #: ../fish/virt-tar-in.pod:34
22957 #, no-wrap
22958 msgid ""
22959 " virt-tar-in -d MyGuest homes.tar /home\n"
22960 "\n"
22961 msgstr ""
22962
22963 #. type: textblock
22964 #: ../fish/virt-tar-in.pod:38
22965 msgid ""
22966 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22967 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
22968 "probably better off using guestfish directly."
22969 msgstr ""
22970
22971 #. type: textblock
22972 #: ../fish/virt-tar-in.pod:49
22973 msgid ""
22974 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22975 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
22976 "org/>."
22977 msgstr ""
22978
22979 #. type: textblock
22980 #: ../fish/virt-tar-out.pod:5
22981 msgid ""
22982 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
22983 msgstr ""
22984
22985 #. type: verbatim
22986 #: ../fish/virt-tar-out.pod:9
22987 #, no-wrap
22988 msgid ""
22989 " virt-tar-out -a disk.img /dir files.tar\n"
22990 "\n"
22991 msgstr ""
22992
22993 #. type: verbatim
22994 #: ../fish/virt-tar-out.pod:11
22995 #, no-wrap
22996 msgid ""
22997 " virt-tar-out -d domain /dir files.tar\n"
22998 "\n"
22999 msgstr ""
23000
23001 #. type: verbatim
23002 #: ../fish/virt-tar-out.pod:13
23003 #, no-wrap
23004 msgid ""
23005 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
23006 "\n"
23007 msgstr ""
23008
23009 #. type: textblock
23010 #: ../fish/virt-tar-out.pod:17
23011 msgid ""
23012 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
23013 msgstr ""
23014
23015 #. type: textblock
23016 #: ../fish/virt-tar-out.pod:20
23017 msgid ""
23018 "The first parameter is the absolute path of the virtual machine directory.  "
23019 "The second parameter is the tar file to write.  Use C<-> to write to "
23020 "standard output."
23021 msgstr ""
23022
23023 #. type: textblock
23024 #: ../fish/virt-tar-out.pod:26
23025 msgid "Download the home directories from a guest:"
23026 msgstr ""
23027
23028 #. type: verbatim
23029 #: ../fish/virt-tar-out.pod:28
23030 #, no-wrap
23031 msgid ""
23032 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
23033 "\n"
23034 msgstr ""
23035
23036 #. type: textblock
23037 #: ../fish/virt-tar-out.pod:32
23038 msgid ""
23039 "This command is just a simple shell script wrapper around the L<guestfish(1)"
23040 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
23041 "are probably better off using guestfish directly."
23042 msgstr ""
23043
23044 #. type: textblock
23045 #: ../fish/virt-tar-out.pod:43
23046 msgid ""
23047 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
23048 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
23049 msgstr ""
23050
23051 #. type: textblock
23052 #: ../fuse/guestmount.pod:5
23053 msgid ""
23054 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
23055 msgstr ""
23056
23057 #. type: verbatim
23058 #: ../fuse/guestmount.pod:9
23059 #, no-wrap
23060 msgid ""
23061 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
23062 "\n"
23063 msgstr ""
23064
23065 #. type: verbatim
23066 #: ../fuse/guestmount.pod:11
23067 #, no-wrap
23068 msgid ""
23069 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
23070 "\n"
23071 msgstr ""
23072
23073 #. type: verbatim
23074 #: ../fuse/guestmount.pod:13
23075 #, no-wrap
23076 msgid ""
23077 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
23078 "\n"
23079 msgstr ""
23080
23081 #. type: textblock
23082 #: ../fuse/guestmount.pod:17
23083 msgid ""
23084 "You must I<not> use C<guestmount> in read-write mode on live virtual "
23085 "machines.  If you do this, you risk disk corruption in the VM."
23086 msgstr ""
23087
23088 #. type: textblock
23089 #: ../fuse/guestmount.pod:22
23090 msgid ""
23091 "The guestmount program can be used to mount virtual machine filesystems and "
23092 "other disk images on the host.  It uses libguestfs for access to the guest "
23093 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
23094 "a mountable device."
23095 msgstr ""
23096
23097 #. type: textblock
23098 #: ../fuse/guestmount.pod:27
23099 msgid ""
23100 "Along with other options, you have to give at least one device (I<-a> "
23101 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
23102 "option) or use the I<-i> inspection option or the I<--live> option.  How "
23103 "this works is better explained in the L<guestfish(1)> manual page, or by "
23104 "looking at the examples below."
23105 msgstr ""
23106
23107 #. type: textblock
23108 #: ../fuse/guestmount.pod:33
23109 msgid ""
23110 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
23111 "by you, and the filesystem will not be visible to any other users unless you "
23112 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
23113 "the filesystem, use the C<fusermount -u> command."
23114 msgstr ""
23115
23116 #. type: textblock
23117 #: ../fuse/guestmount.pod:41
23118 msgid ""
23119 "For a typical Windows guest which has its main filesystem on the first "
23120 "partition:"
23121 msgstr ""
23122
23123 #. type: verbatim
23124 #: ../fuse/guestmount.pod:44
23125 #, no-wrap
23126 msgid ""
23127 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
23128 "\n"
23129 msgstr ""
23130
23131 #. type: textblock
23132 #: ../fuse/guestmount.pod:46
23133 msgid ""
23134 "For a typical Linux guest which has a /boot filesystem on the first "
23135 "partition, and the root filesystem on a logical volume:"
23136 msgstr ""
23137
23138 #. type: verbatim
23139 #: ../fuse/guestmount.pod:49
23140 #, no-wrap
23141 msgid ""
23142 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
23143 "\n"
23144 msgstr ""
23145
23146 #. type: textblock
23147 #: ../fuse/guestmount.pod:51
23148 msgid "To get libguestfs to detect guest mountpoints for you:"
23149 msgstr ""
23150
23151 #. type: verbatim
23152 #: ../fuse/guestmount.pod:53
23153 #, no-wrap
23154 msgid ""
23155 " guestmount -a guest.img -i --ro /mnt\n"
23156 "\n"
23157 msgstr ""
23158
23159 #. type: textblock
23160 #: ../fuse/guestmount.pod:55
23161 msgid "For a libvirt guest called \"Guest\" you could do:"
23162 msgstr ""
23163
23164 #. type: verbatim
23165 #: ../fuse/guestmount.pod:57
23166 #, no-wrap
23167 msgid ""
23168 " guestmount -d Guest -i --ro /mnt\n"
23169 "\n"
23170 msgstr ""
23171
23172 #. type: textblock
23173 #: ../fuse/guestmount.pod:59
23174 msgid ""
23175 "If you don't know what filesystems are contained in a guest or disk image, "
23176 "use L<virt-filesystems(1)> first:"
23177 msgstr ""
23178
23179 #. type: verbatim
23180 #: ../fuse/guestmount.pod:62
23181 #, no-wrap
23182 msgid ""
23183 " virt-filesystems MyGuest\n"
23184 "\n"
23185 msgstr ""
23186
23187 #. type: textblock
23188 #: ../fuse/guestmount.pod:64
23189 msgid ""
23190 "If you want to trace the libguestfs calls but without excessive debugging "
23191 "information, we recommend:"
23192 msgstr ""
23193
23194 #. type: verbatim
23195 #: ../fuse/guestmount.pod:67
23196 #, no-wrap
23197 msgid ""
23198 " guestmount [...] --trace /mnt\n"
23199 "\n"
23200 msgstr ""
23201
23202 #. type: textblock
23203 #: ../fuse/guestmount.pod:69
23204 msgid "If you want to debug the program, we recommend:"
23205 msgstr ""
23206
23207 #. type: verbatim
23208 #: ../fuse/guestmount.pod:71
23209 #, no-wrap
23210 msgid ""
23211 " guestmount [...] --trace --verbose /mnt\n"
23212 "\n"
23213 msgstr ""
23214
23215 #. type: =head1
23216 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96
23217 #: ../resize/virt-resize.pod:627
23218 msgid "NOTES"
23219 msgstr "ПРИМІТКИ"
23220
23221 #. type: =head2
23222 #: ../fuse/guestmount.pod:75
23223 msgid "Other users cannot see the filesystem by default"
23224 msgstr ""
23225
23226 #. type: textblock
23227 #: ../fuse/guestmount.pod:77
23228 msgid ""
23229 "If you mount a filesystem as one user (eg. root), then other users will not "
23230 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
23231 "option when mounting:"
23232 msgstr ""
23233
23234 #. type: verbatim
23235 #: ../fuse/guestmount.pod:81
23236 #, no-wrap
23237 msgid ""
23238 " sudo guestmount [...] -o allow_other /mnt\n"
23239 "\n"
23240 msgstr ""
23241
23242 #. type: =head2
23243 #: ../fuse/guestmount.pod:83
23244 msgid "Enabling FUSE"
23245 msgstr ""
23246
23247 #. type: textblock
23248 #: ../fuse/guestmount.pod:85
23249 msgid ""
23250 "On some distros, you may need to add yourself to a special group (eg. "
23251 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
23252 "Debian and derivatives."
23253 msgstr ""
23254
23255 #. type: textblock
23256 #: ../fuse/guestmount.pod:89
23257 msgid ""
23258 "On other distros, no special group is required.  It is not necessary on "
23259 "Fedora or Red Hat Enterprise Linux."
23260 msgstr ""
23261
23262 #. type: textblock
23263 #: ../fuse/guestmount.pod:100
23264 msgid "Add a block device or virtual machine image."
23265 msgstr ""
23266
23267 #. type: =item
23268 #: ../fuse/guestmount.pod:123
23269 msgid "B<--dir-cache-timeout N>"
23270 msgstr "B<--dir-cache-timeout N>"
23271
23272 #. type: textblock
23273 #: ../fuse/guestmount.pod:125
23274 msgid ""
23275 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
23276 "seconds.  The readdir cache [actually, there are several semi-independent "
23277 "caches] is populated after a readdir(2) call with the stat and extended "
23278 "attributes of the files in the directory, in anticipation that they will be "
23279 "requested soon after."
23280 msgstr ""
23281
23282 #. type: textblock
23283 #: ../fuse/guestmount.pod:131
23284 msgid ""
23285 "There is also a different attribute cache implemented by FUSE (see the FUSE "
23286 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
23287 "requests, only cache existing ones."
23288 msgstr ""
23289
23290 #. type: textblock
23291 #: ../fuse/guestmount.pod:151
23292 msgid ""
23293 "If you have untrusted raw-format guest disk images, you should use this "
23294 "option to specify the disk format.  This avoids a possible security problem "
23295 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
23296 "guestfs_add_drive_opts>."
23297 msgstr ""
23298
23299 #. type: =item
23300 #: ../fuse/guestmount.pod:156
23301 msgid "B<--fuse-help>"
23302 msgstr "B<--fuse-help>"
23303
23304 #. type: textblock
23305 #: ../fuse/guestmount.pod:158
23306 msgid "Display help on special FUSE options (see I<-o> below)."
23307 msgstr ""
23308
23309 #. type: textblock
23310 #: ../fuse/guestmount.pod:162
23311 msgid "Display brief help and exit."
23312 msgstr ""
23313
23314 #. type: textblock
23315 #: ../fuse/guestmount.pod:186
23316 msgid ""
23317 "Mount the named partition or logical volume on the given mountpoint B<in the "
23318 "guest> (this has nothing to do with mountpoints in the host)."
23319 msgstr ""
23320
23321 #. type: textblock
23322 #: ../fuse/guestmount.pod:189
23323 msgid ""
23324 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
23325 "something on C</>."
23326 msgstr ""
23327
23328 #. type: textblock
23329 #: ../fuse/guestmount.pod:206
23330 msgid ""
23331 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
23332 "unmounted.  If you specify this option, then we don't attempt to sync the "
23333 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
23334 msgstr ""
23335
23336 #. type: =item
23337 #: ../fuse/guestmount.pod:211
23338 msgid "B<-o option>"
23339 msgstr "B<-o параметр>"
23340
23341 #. type: =item
23342 #: ../fuse/guestmount.pod:213
23343 msgid "B<--option option>"
23344 msgstr "B<--option параметр>"
23345
23346 #. type: textblock
23347 #: ../fuse/guestmount.pod:215
23348 msgid "Pass extra options to FUSE."
23349 msgstr ""
23350
23351 #. type: textblock
23352 #: ../fuse/guestmount.pod:217
23353 msgid ""
23354 "To get a list of all the extra options supported by FUSE, use the command "
23355 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
23356 "of them are a good idea."
23357 msgstr ""
23358
23359 #. type: verbatim
23360 #: ../fuse/guestmount.pod:221
23361 #, no-wrap
23362 msgid ""
23363 " guestmount --fuse-help\n"
23364 "\n"
23365 msgstr ""
23366
23367 #. type: textblock
23368 #: ../fuse/guestmount.pod:223
23369 msgid "Some potentially useful FUSE options:"
23370 msgstr ""
23371
23372 #. type: =item
23373 #: ../fuse/guestmount.pod:227
23374 msgid "B<-o allow_other>"
23375 msgstr ""
23376
23377 #. type: textblock
23378 #: ../fuse/guestmount.pod:229
23379 msgid "Allow other users to see the filesystem."
23380 msgstr ""
23381
23382 #. type: =item
23383 #: ../fuse/guestmount.pod:231
23384 msgid "B<-o attr_timeout=N>"
23385 msgstr "B<-o attr_timeout=N>"
23386
23387 #. type: textblock
23388 #: ../fuse/guestmount.pod:233
23389 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
23390 msgstr ""
23391
23392 #. type: =item
23393 #: ../fuse/guestmount.pod:235
23394 msgid "B<-o kernel_cache>"
23395 msgstr ""
23396
23397 #. type: textblock
23398 #: ../fuse/guestmount.pod:237
23399 msgid ""
23400 "Allow the kernel to cache files (reduces the number of reads that have to go "
23401 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
23402 "afford the extra memory usage."
23403 msgstr ""
23404
23405 #. type: =item
23406 #: ../fuse/guestmount.pod:241
23407 msgid "B<-o uid=N> B<-o gid=N>"
23408 msgstr "B<-o uid=N> B<-o gid=N>"
23409
23410 #. type: textblock
23411 #: ../fuse/guestmount.pod:243
23412 msgid ""
23413 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
23414 "the chosen values."
23415 msgstr ""
23416
23417 #. type: textblock
23418 #: ../fuse/guestmount.pod:252
23419 msgid ""
23420 "Add devices and mount everything read-only.  Also disallow writes and make "
23421 "the disk appear read-only to FUSE."
23422 msgstr ""
23423
23424 #. type: textblock
23425 #: ../fuse/guestmount.pod:255
23426 msgid ""
23427 "This is highly recommended if you are not going to edit the guest disk.  If "
23428 "the guest is running and this option is I<not> supplied, then there is a "
23429 "strong risk of disk corruption in the guest.  We try to prevent this from "
23430 "happening, but it is not always possible."
23431 msgstr ""
23432
23433 #. type: textblock
23434 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
23435 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23436 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23437
23438 #. type: textblock
23439 #: ../fuse/guestmount.pod:264
23440 msgid "Enable SELinux support for the guest."
23441 msgstr ""
23442
23443 #. type: textblock
23444 #: ../fuse/guestmount.pod:270
23445 msgid "Enable verbose messages from underlying libguestfs."
23446 msgstr ""
23447
23448 #. type: textblock
23449 #: ../fuse/guestmount.pod:276
23450 msgid "Display the program version and exit."
23451 msgstr ""
23452
23453 #. type: textblock
23454 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
23455 #: ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
23456 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23457 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23458
23459 #. type: =item
23460 #: ../fuse/guestmount.pod:289
23461 msgid "B<--trace>"
23462 msgstr "B<--trace>"
23463
23464 #. type: textblock
23465 #: ../fuse/guestmount.pod:291
23466 msgid "Trace libguestfs calls and entry into each FUSE function."
23467 msgstr ""
23468
23469 #. type: textblock
23470 #: ../fuse/guestmount.pod:293
23471 msgid "This also stops the daemon from forking into the background."
23472 msgstr ""
23473
23474 #. type: textblock
23475 #: ../fuse/guestmount.pod:319
23476 msgid ""
23477 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23478 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
23479 "net/>."
23480 msgstr ""
23481 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23482 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
23483 "net/>."
23484
23485 #. type: textblock
23486 #: ../fuse/guestmount.pod:334
23487 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
23488 msgstr ""
23489
23490 #. type: textblock
23491 #: ../inspector/virt-inspector.pod:5
23492 msgid ""
23493 "virt-inspector - Display operating system version and other information "
23494 "about a virtual machine"
23495 msgstr ""
23496
23497 #. type: verbatim
23498 #: ../inspector/virt-inspector.pod:9
23499 #, no-wrap
23500 msgid ""
23501 " virt-inspector [--options] -d domname\n"
23502 "\n"
23503 msgstr ""
23504
23505 #. type: verbatim
23506 #: ../inspector/virt-inspector.pod:11
23507 #, no-wrap
23508 msgid ""
23509 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
23510 "\n"
23511 msgstr ""
23512
23513 #. type: verbatim
23514 #: ../inspector/virt-inspector.pod:15
23515 #, no-wrap
23516 msgid ""
23517 " virt-inspector domname\n"
23518 "\n"
23519 msgstr ""
23520
23521 #. type: verbatim
23522 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
23523 #, no-wrap
23524 msgid ""
23525 " virt-inspector disk.img [disk.img ...]\n"
23526 "\n"
23527 msgstr ""
23528
23529 #. type: textblock
23530 #: ../inspector/virt-inspector.pod:21
23531 msgid ""
23532 "B<virt-inspector> examines a virtual machine or disk image and tries to "
23533 "determine the version of the operating system and other information about "
23534 "the virtual machine."
23535 msgstr ""
23536
23537 #. type: textblock
23538 #: ../inspector/virt-inspector.pod:25
23539 msgid "Virt-inspector produces XML output for feeding into other programs."
23540 msgstr ""
23541
23542 #. type: textblock
23543 #: ../inspector/virt-inspector.pod:27
23544 msgid ""
23545 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
23546 "the libvirt domain (see: C<virsh list --all>)."
23547 msgstr ""
23548
23549 #. type: textblock
23550 #: ../inspector/virt-inspector.pod:30
23551 msgid ""
23552 "You can also run virt-inspector directly on disk images from a single "
23553 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
23554 "has several block devices, in which case you should list several I<-a> "
23555 "options one after another, with the first corresponding to the guest's C</"
23556 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
23557 msgstr ""
23558
23559 #. type: textblock
23560 #: ../inspector/virt-inspector.pod:37
23561 msgid ""
23562 "You can also run virt-inspector on install disks, live CDs, bootable USB "
23563 "keys and similar."
23564 msgstr ""
23565
23566 #. type: textblock
23567 #: ../inspector/virt-inspector.pod:40
23568 msgid ""
23569 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
23570 "inspect several virtual machines, you have to run virt-inspector several "
23571 "times (for example, from a shell script for-loop)."
23572 msgstr ""
23573
23574 #. type: textblock
23575 #: ../inspector/virt-inspector.pod:45
23576 msgid ""
23577 "Because virt-inspector needs direct access to guest images, it won't "
23578 "normally work over remote libvirt connections."
23579 msgstr ""
23580
23581 #. type: textblock
23582 #: ../inspector/virt-inspector.pod:48
23583 msgid ""
23584 "All of the information available from virt-inspector is also available "
23585 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
23586 "The same information can also be fetched using guestfish or via libguestfs "
23587 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
23588 "WITH OTHER PROGRAMMING LANGUAGES>)."
23589 msgstr ""
23590
23591 #. type: textblock
23592 #: ../inspector/virt-inspector.pod:81
23593 msgid ""
23594 "Libvirt is only used if you specify a C<domname> on the command line.  If "
23595 "you specify guest block devices directly (I<-a>), then libvirt is not used "
23596 "at all."
23597 msgstr ""
23598
23599 #. type: textblock
23600 #: ../inspector/virt-inspector.pod:94
23601 msgid ""
23602 "When prompting for keys and passphrases, virt-inspector normally turns "
23603 "echoing off so you cannot see what you are typing.  If you are not worried "
23604 "about Tempest attacks and there is no one else in the room you can specify "
23605 "this flag to see what you are typing."
23606 msgstr ""
23607
23608 #. type: textblock
23609 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
23610 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
23611 #: ../tools/virt-win-reg.pl:144
23612 msgid ""
23613 "Specify the format of disk images given on the command line.  If this is "
23614 "omitted then the format is autodetected from the content of the disk image."
23615 msgstr ""
23616
23617 #. type: textblock
23618 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
23619 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
23620 #: ../tools/virt-win-reg.pl:148
23621 msgid ""
23622 "If disk images are requested from libvirt, then this program asks libvirt "
23623 "for this information.  In this case, the value of the format parameter is "
23624 "ignored."
23625 msgstr ""
23626
23627 #. type: textblock
23628 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:397
23629 #: ../resize/virt-resize.pod:489 ../sparsify/virt-sparsify.pod:144
23630 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
23631 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
23632 msgid ""
23633 "If working with untrusted raw-format guest disk images, you should ensure "
23634 "the format is always specified."
23635 msgstr ""
23636
23637 #. type: =item
23638 #: ../inspector/virt-inspector.pod:135
23639 #, fuzzy
23640 #| msgid "B<--parts>"
23641 msgid "B<--xpath> query"
23642 msgstr "B<--parts>"
23643
23644 #. type: textblock
23645 #: ../inspector/virt-inspector.pod:137
23646 msgid ""
23647 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
23648 "In this mode virt-inspector simply runs an XPath query; all other inspection "
23649 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
23650 msgstr ""
23651
23652 #. type: textblock
23653 #: ../inspector/virt-inspector.pod:146
23654 msgid "Previous versions of virt-inspector allowed you to write either:"
23655 msgstr ""
23656
23657 #. type: verbatim
23658 #: ../inspector/virt-inspector.pod:152
23659 #, no-wrap
23660 msgid ""
23661 " virt-inspector guestname\n"
23662 "\n"
23663 msgstr ""
23664
23665 #. type: =head1
23666 #: ../inspector/virt-inspector.pod:160
23667 msgid "XML FORMAT"
23668 msgstr ""
23669
23670 #. type: textblock
23671 #: ../inspector/virt-inspector.pod:162
23672 msgid ""
23673 "The virt-inspector XML is described precisely in a RELAX NG schema file "
23674 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
23675 "just an overview."
23676 msgstr ""
23677
23678 #. type: textblock
23679 #: ../inspector/virt-inspector.pod:166
23680 msgid ""
23681 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
23682 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
23683 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
23684 "which is vanishingly rare in real world VMs."
23685 msgstr ""
23686
23687 #. type: =head2
23688 #: ../inspector/virt-inspector.pod:171
23689 msgid "E<lt>operatingsystemE<gt>"
23690 msgstr ""
23691
23692 #. type: textblock
23693 #: ../inspector/virt-inspector.pod:173
23694 msgid ""
23695 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
23696 "describe the operating system, its architecture, the descriptive \"product "
23697 "name\" string, the type of OS and so on, as in this example:"
23698 msgstr ""
23699
23700 #. type: verbatim
23701 #: ../inspector/virt-inspector.pod:177
23702 #, no-wrap
23703 msgid ""
23704 " <operatingsystems>\n"
23705 "   <operatingsystem>\n"
23706 "     <root>/dev/sda2</root>\n"
23707 "     <name>windows</name>\n"
23708 "     <arch>i386</arch>\n"
23709 "     <distro>windows</distro>\n"
23710 "     <product_name>Windows 7 Enterprise</product_name>\n"
23711 "     <product_variant>Client</product_variant>\n"
23712 "     <major_version>6</major_version>\n"
23713 "     <minor_version>1</minor_version>\n"
23714 "     <windows_systemroot>/Windows</windows_systemroot>\n"
23715 "     <format>installed</format>\n"
23716 "\n"
23717 msgstr ""
23718
23719 #. type: textblock
23720 #: ../inspector/virt-inspector.pod:190
23721 msgid ""
23722 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
23723 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
23724 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
23725 "architecture.  The other fields are fairly self-explanatory, but because "
23726 "these fields are taken directly from the libguestfs inspection API you can "
23727 "find precise information from L<guestfs(3)/INSPECTION>."
23728 msgstr ""
23729
23730 #. type: textblock
23731 #: ../inspector/virt-inspector.pod:198
23732 msgid ""
23733 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
23734 "of view of libguestfs (block devices may have completely different names "
23735 "inside the VM itself)."
23736 msgstr ""
23737
23738 #. type: =head2
23739 #: ../inspector/virt-inspector.pod:202
23740 msgid "E<lt>mountpointsE<gt>"
23741 msgstr ""
23742
23743 #. type: textblock
23744 #: ../inspector/virt-inspector.pod:204
23745 msgid ""
23746 "Un*x-like guests typically have multiple filesystems which are mounted at "
23747 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
23748 "element which looks like this:"
23749 msgstr ""
23750
23751 #. type: verbatim
23752 #: ../inspector/virt-inspector.pod:208
23753 #, no-wrap
23754 msgid ""
23755 " <operatingsystems>\n"
23756 "   <operatingsystem>\n"
23757 "     ...\n"
23758 "     <mountpoints>\n"
23759 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
23760 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
23761 "     </mountpoints>\n"
23762 "\n"
23763 msgstr ""
23764
23765 #. type: textblock
23766 #: ../inspector/virt-inspector.pod:216
23767 msgid ""
23768 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
23769 "and may have completely different names inside the guest.  Only mountable "
23770 "filesystems appear in this list, not things like swap devices."
23771 msgstr ""
23772
23773 #. type: =head2
23774 #: ../inspector/virt-inspector.pod:221
23775 msgid "E<lt>filesystemsE<gt>"
23776 msgstr ""
23777
23778 #. type: textblock
23779 #: ../inspector/virt-inspector.pod:223
23780 msgid ""
23781 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
23782 "filesystems belonging to the guest, including swap and empty partitions.  "
23783 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
23784 "this OS or shared with this OS and other OSes)."
23785 msgstr ""
23786
23787 #. type: textblock
23788 #: ../inspector/virt-inspector.pod:229
23789 msgid "You might see something like this:"
23790 msgstr ""
23791
23792 #. type: verbatim
23793 #: ../inspector/virt-inspector.pod:231
23794 #, no-wrap
23795 msgid ""
23796 " <operatingsystems>\n"
23797 "   <operatingsystem>\n"
23798 "     ...\n"
23799 "     <filesystems>\n"
23800 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23801 "         <type>ext4</type>\n"
23802 "         <label>Fedora-13-x86_64</label>\n"
23803 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
23804 "       </filesystem>\n"
23805 "\n"
23806 msgstr ""
23807
23808 #. type: textblock
23809 #: ../inspector/virt-inspector.pod:241
23810 msgid ""
23811 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
23812 "the label, and the UUID."
23813 msgstr ""
23814
23815 #. type: =head2
23816 #: ../inspector/virt-inspector.pod:244
23817 msgid "E<lt>applicationsE<gt>"
23818 msgstr ""
23819
23820 #. type: textblock
23821 #: ../inspector/virt-inspector.pod:246
23822 msgid ""
23823 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
23824 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
23825 "machine."
23826 msgstr ""
23827
23828 #. type: textblock
23829 #: ../inspector/virt-inspector.pod:250
23830 msgid ""
23831 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
23832 "Typical values would be C<rpm> and C<deb>."
23833 msgstr ""
23834
23835 #. type: textblock
23836 #: ../inspector/virt-inspector.pod:253
23837 msgid ""
23838 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
23839 "Typical values include C<yum>, C<up2date> and C<apt>"
23840 msgstr ""
23841
23842 #. type: textblock
23843 #: ../inspector/virt-inspector.pod:256
23844 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
23845 msgstr ""
23846
23847 #. type: verbatim
23848 #: ../inspector/virt-inspector.pod:259
23849 #, no-wrap
23850 msgid ""
23851 " <operatingsystems>\n"
23852 "   <operatingsystem>\n"
23853 "     ...\n"
23854 "     <applications>\n"
23855 "       <application>\n"
23856 "         <name>coreutils</name>\n"
23857 "         <version>8.5</version>\n"
23858 "         <release>1</release>\n"
23859 "       </application>\n"
23860 "\n"
23861 msgstr ""
23862
23863 #. type: textblock
23864 #: ../inspector/virt-inspector.pod:269
23865 msgid ""
23866 "The version and release fields may not be available for some types guests.  "
23867 "Other fields are possible, see L<guestfs(3)/"
23868 "guestfs_inspect_list_applications>."
23869 msgstr ""
23870
23871 #. type: =head2
23872 #: ../inspector/virt-inspector.pod:273
23873 msgid "E<lt>drive_mappingsE<gt>"
23874 msgstr ""
23875
23876 #. type: textblock
23877 #: ../inspector/virt-inspector.pod:275
23878 msgid ""
23879 "For operating systems like Windows which use drive letters, virt-inspector "
23880 "is able to find out how drive letters map to filesystems."
23881 msgstr ""
23882
23883 #. type: verbatim
23884 #: ../inspector/virt-inspector.pod:279
23885 #, no-wrap
23886 msgid ""
23887 " <operatingsystems>\n"
23888 "   <operatingsystem>\n"
23889 "     ...\n"
23890 "     <drive_mappings>\n"
23891 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
23892 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
23893 "     </drive_mappings>\n"
23894 "\n"
23895 msgstr ""
23896
23897 #. type: textblock
23898 #: ../inspector/virt-inspector.pod:287
23899 msgid ""
23900 "In the example above, drive C maps to the filesystem on the second partition "
23901 "on the first disk, and drive E maps to the filesystem on the first partition "
23902 "on the second disk."
23903 msgstr ""
23904
23905 #. type: textblock
23906 #: ../inspector/virt-inspector.pod:291
23907 msgid ""
23908 "Note that this only covers permanent local filesystem mappings, not things "
23909 "like network shares.  Furthermore NTFS volume mount points may not be listed "
23910 "here."
23911 msgstr ""
23912
23913 #. type: =head2
23914 #: ../inspector/virt-inspector.pod:295
23915 msgid "E<lt>iconE<gt>"
23916 msgstr ""
23917
23918 #. type: textblock
23919 #: ../inspector/virt-inspector.pod:297
23920 msgid ""
23921 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
23922 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
23923 "very large and high quality."
23924 msgstr ""
23925
23926 #. type: verbatim
23927 #: ../inspector/virt-inspector.pod:301
23928 #, no-wrap
23929 msgid ""
23930 " <operatingsystems>\n"
23931 "   <operatingsystem>\n"
23932 "     ...\n"
23933 "     <icon>\n"
23934 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
23935 "       [... many lines of base64 data ...]\n"
23936 "     </icon>\n"
23937 "\n"
23938 msgstr ""
23939
23940 #. type: textblock
23941 #: ../inspector/virt-inspector.pod:309
23942 msgid ""
23943 "To display the icon, you have to extract it and convert the base64 data back "
23944 "to a binary file.  Use an XPath query or simply an editor to extract the "
23945 "data, then use the coreutils L<base64(1)> program to do the conversion back "
23946 "to a PNG file:"
23947 msgstr ""
23948
23949 #. type: verbatim
23950 #: ../inspector/virt-inspector.pod:314
23951 #, no-wrap
23952 msgid ""
23953 " base64 -i -d < icon.data > icon.png\n"
23954 "\n"
23955 msgstr ""
23956
23957 #. type: =head2
23958 #: ../inspector/virt-inspector.pod:316
23959 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
23960 msgstr ""
23961
23962 #. type: textblock
23963 #: ../inspector/virt-inspector.pod:318
23964 msgid ""
23965 "Virt-inspector can detect some operating system installers on install disks, "
23966 "live CDs, bootable USB keys and more."
23967 msgstr ""
23968
23969 #. type: textblock
23970 #: ../inspector/virt-inspector.pod:321
23971 msgid ""
23972 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
23973 "fields may be present to indicate a live CD, network installer, or one part "
23974 "of a multipart CD.  For example:"
23975 msgstr ""
23976
23977 #. type: verbatim
23978 #: ../inspector/virt-inspector.pod:325
23979 #, no-wrap
23980 msgid ""
23981 " <operatingsystems>\n"
23982 "   <operatingsystem>\n"
23983 "     <root>/dev/sda</root>\n"
23984 "     <name>linux</name>\n"
23985 "     <arch>i386</arch>\n"
23986 "     <distro>ubuntu</distro>\n"
23987 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
23988 "     <major_version>10</major_version>\n"
23989 "     <minor_version>10</minor_version>\n"
23990 "     <format>installer</format>\n"
23991 "     <live/>\n"
23992 "\n"
23993 msgstr ""
23994
23995 #. type: =head1
23996 #: ../inspector/virt-inspector.pod:337
23997 msgid "XPATH QUERIES"
23998 msgstr ""
23999
24000 #. type: textblock
24001 #: ../inspector/virt-inspector.pod:339
24002 msgid ""
24003 "Virt-inspector includes built in support for running XPath queries.  The "
24004 "reason for including XPath support directly in virt-inspector is simply that "
24005 "there are no good and widely available command line programs that can do "
24006 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
24007 "available on Red Hat Enterprise Linux."
24008 msgstr ""
24009
24010 #. type: textblock
24011 #: ../inspector/virt-inspector.pod:346
24012 msgid ""
24013 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
24014 "mode, virt-inspector simply reads XML from stdin and outputs the query "
24015 "result on stdout.  All other inspection features are disabled in this mode."
24016 msgstr ""
24017
24018 #. type: verbatim
24019 #: ../inspector/virt-inspector.pod:353
24020 #, no-wrap
24021 msgid ""
24022 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
24023 " <filesystems>\n"
24024 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24025 "        <type>ext4</type>\n"
24026 " [...]\n"
24027 "\n"
24028 msgstr ""
24029
24030 #. type: verbatim
24031 #: ../inspector/virt-inspector.pod:359
24032 #, no-wrap
24033 msgid ""
24034 " $ virt-inspector -d Guest | \\\n"
24035 "     virt-inspector --xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
24036 " ext4\n"
24037 "\n"
24038 msgstr ""
24039
24040 #. type: verbatim
24041 #: ../inspector/virt-inspector.pod:363
24042 #, no-wrap
24043 msgid ""
24044 " $ virt-inspector -d Guest | \\\n"
24045 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
24046 " [displays the guest icon, if there is one]\n"
24047 "\n"
24048 msgstr ""
24049
24050 #. type: =head1
24051 #: ../inspector/virt-inspector.pod:374
24052 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
24053 msgstr ""
24054
24055 #. type: textblock
24056 #: ../inspector/virt-inspector.pod:376
24057 msgid ""
24058 "Early versions of libguestfs shipped with a different virt-inspector program "
24059 "written in Perl (the current version is written in C).  The XML output of "
24060 "the Perl virt-inspector was different and it could also output in other "
24061 "formats like text."
24062 msgstr ""
24063
24064 #. type: textblock
24065 #: ../inspector/virt-inspector.pod:381
24066 msgid ""
24067 "The old virt-inspector is no longer supported or shipped with libguestfs."
24068 msgstr ""
24069
24070 #. type: textblock
24071 #: ../inspector/virt-inspector.pod:384
24072 msgid ""
24073 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
24074 "versions of virt-inspector with different names:"
24075 msgstr ""
24076
24077 #. type: verbatim
24078 #: ../inspector/virt-inspector.pod:387
24079 #, no-wrap
24080 msgid ""
24081 " virt-inspector     Old Perl version.\n"
24082 " virt-inspector2    New C version.\n"
24083 "\n"
24084 msgstr ""
24085
24086 #. type: textblock
24087 #: ../inspector/virt-inspector.pod:397
24088 msgid ""
24089 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
24090 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
24091 msgstr ""
24092
24093 #. type: textblock
24094 #: ../inspector/virt-inspector.pod:414
24095 msgid "Matthew Booth L<mbooth@redhat.com>"
24096 msgstr ""
24097
24098 #. type: textblock
24099 #: ../java/examples/guestfs-java.pod:5
24100 msgid "guestfs-java - How to use libguestfs from Java"
24101 msgstr ""
24102
24103 #. type: verbatim
24104 #: ../java/examples/guestfs-java.pod:9
24105 #, no-wrap
24106 msgid ""
24107 " import com.redhat.et.libguestfs.*;\n"
24108 " \n"
24109 msgstr ""
24110
24111 #. type: verbatim
24112 #: ../java/examples/guestfs-java.pod:11
24113 #, no-wrap
24114 msgid ""
24115 " GuestFS g = new GuestFS ();\n"
24116 " g.add_drive_opts (\"disk.img\", null);\n"
24117 " g.launch ();\n"
24118 "\n"
24119 msgstr ""
24120
24121 #. type: textblock
24122 #: ../java/examples/guestfs-java.pod:17
24123 msgid ""
24124 "This manual page documents how to call libguestfs from the Java programming "
24125 "language.  This page just documents the differences from the C API and gives "
24126 "some examples.  If you are not familiar with using libguestfs, you also need "
24127 "to read L<guestfs(3)>."
24128 msgstr ""
24129
24130 #. type: =head2
24131 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
24132 msgid "CLOSING THE HANDLE"
24133 msgstr ""
24134
24135 #. type: textblock
24136 #: ../java/examples/guestfs-java.pod:24
24137 msgid ""
24138 "The handle is closed when it is reaped by the garbage collector.  Because "
24139 "libguestfs handles include a lot of state, it is also possible to close (and "
24140 "hence free) them explicitly by calling the C<close> method."
24141 msgstr ""
24142
24143 #. type: =head2
24144 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
24145 #: ../python/examples/guestfs-python.pod:21
24146 #: ../ruby/examples/guestfs-ruby.pod:22
24147 msgid "EXCEPTIONS"
24148 msgstr "ВИНЯТКИ"
24149
24150 #. type: textblock
24151 #: ../java/examples/guestfs-java.pod:31
24152 msgid ""
24153 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
24154 "exception.  This has a single parameter which is the error message (a "
24155 "C<String>)."
24156 msgstr ""
24157
24158 #. type: textblock
24159 #: ../java/examples/guestfs-java.pod:35
24160 msgid "Calling any method on a closed handle raises the same exception."
24161 msgstr ""
24162
24163 #. type: textblock
24164 #: ../java/examples/guestfs-java.pod:47
24165 msgid ""
24166 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
24167 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
24168 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
24169 msgstr ""
24170
24171 #. type: textblock
24172 #: ../ocaml/examples/guestfs-ocaml.pod:5
24173 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
24174 msgstr ""
24175
24176 #. type: textblock
24177 #: ../ocaml/examples/guestfs-ocaml.pod:9
24178 msgid "Module style:"
24179 msgstr ""
24180
24181 #. type: verbatim
24182 #: ../ocaml/examples/guestfs-ocaml.pod:11
24183 #, no-wrap
24184 msgid ""
24185 " let g = Guestfs.create () in\n"
24186 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
24187 " Guestfs.launch g;\n"
24188 "\n"
24189 msgstr ""
24190
24191 #. type: textblock
24192 #: ../ocaml/examples/guestfs-ocaml.pod:15
24193 msgid "Object-oriented style:"
24194 msgstr ""
24195
24196 #. type: verbatim
24197 #: ../ocaml/examples/guestfs-ocaml.pod:17
24198 #, no-wrap
24199 msgid ""
24200 " let g = new Guestfs.guestfs () in\n"
24201 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
24202 " g#launch ();\n"
24203 "\n"
24204 msgstr ""
24205
24206 #. type: verbatim
24207 #: ../ocaml/examples/guestfs-ocaml.pod:21
24208 #, no-wrap
24209 msgid ""
24210 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
24211 "or:\n"
24212 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
24213 "\n"
24214 msgstr ""
24215
24216 #. type: textblock
24217 #: ../ocaml/examples/guestfs-ocaml.pod:27
24218 msgid ""
24219 "This manual page documents how to call libguestfs from the OCaml programming "
24220 "language.  This page just documents the differences from the C API and gives "
24221 "some examples.  If you are not familiar with using libguestfs, you also need "
24222 "to read L<guestfs(3)>."
24223 msgstr ""
24224
24225 #. type: =head2
24226 #: ../ocaml/examples/guestfs-ocaml.pod:32
24227 msgid "PROGRAMMING STYLES"
24228 msgstr ""
24229
24230 #. type: textblock
24231 #: ../ocaml/examples/guestfs-ocaml.pod:34
24232 msgid ""
24233 "There are two different programming styles supported by the OCaml bindings.  "
24234 "You can use a module style, with each C function mapped to an OCaml function:"
24235 msgstr ""
24236
24237 #. type: verbatim
24238 #: ../ocaml/examples/guestfs-ocaml.pod:38
24239 #, no-wrap
24240 msgid ""
24241 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
24242 "\n"
24243 msgstr ""
24244
24245 #. type: textblock
24246 #: ../ocaml/examples/guestfs-ocaml.pod:40
24247 msgid "becomes:"
24248 msgstr ""
24249
24250 #. type: verbatim
24251 #: ../ocaml/examples/guestfs-ocaml.pod:42
24252 #, no-wrap
24253 msgid ""
24254 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
24255 "\n"
24256 msgstr ""
24257
24258 #. type: textblock
24259 #: ../ocaml/examples/guestfs-ocaml.pod:44
24260 msgid ""
24261 "Alternately you can use an object-oriented style, calling methods on the "
24262 "class C<Guestfs.guestfs>:"
24263 msgstr ""
24264
24265 #. type: verbatim
24266 #: ../ocaml/examples/guestfs-ocaml.pod:47
24267 #, no-wrap
24268 msgid ""
24269 " method set_verbose : bool -> unit\n"
24270 "\n"
24271 msgstr ""
24272
24273 #. type: textblock
24274 #: ../ocaml/examples/guestfs-ocaml.pod:49
24275 msgid ""
24276 "The object-oriented style is usually briefer, and the minor performance "
24277 "penalty isn't noticable in the general overhead of performing libguestfs "
24278 "functions."
24279 msgstr ""
24280
24281 #. type: textblock
24282 #: ../ocaml/examples/guestfs-ocaml.pod:55
24283 msgid ""
24284 "The handle is closed when it is reaped by the garbage collector.  Because "
24285 "libguestfs handles include a lot of state, it is also possible to close (and "
24286 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
24287 "method."
24288 msgstr ""
24289
24290 #. type: textblock
24291 #: ../ocaml/examples/guestfs-ocaml.pod:62
24292 msgid ""
24293 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
24294 "exception.  This has a single parameter which is the error message (a "
24295 "string)."
24296 msgstr ""
24297
24298 #. type: textblock
24299 #: ../ocaml/examples/guestfs-ocaml.pod:66
24300 msgid ""
24301 "Calling any function/method on a closed handle raises C<Guestfs."
24302 "Handle_closed>.  The single parameter is the name of the function that you "
24303 "called."
24304 msgstr ""
24305
24306 #. type: textblock
24307 #: ../ocaml/examples/guestfs-ocaml.pod:80
24308 msgid ""
24309 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24310 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
24311 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
24312 msgstr ""
24313
24314 #. type: textblock
24315 #: ../perl/examples/guestfs-perl.pod:5
24316 msgid "guestfs-perl - How to use libguestfs from Perl"
24317 msgstr ""
24318
24319 #. type: verbatim
24320 #: ../perl/examples/guestfs-perl.pod:9
24321 #, no-wrap
24322 msgid ""
24323 " use Sys::Guestfs;\n"
24324 " \n"
24325 msgstr ""
24326
24327 #. type: verbatim
24328 #: ../perl/examples/guestfs-perl.pod:11
24329 #, no-wrap
24330 msgid ""
24331 " my $h = Sys::Guestfs->new ();\n"
24332 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
24333 " $h->launch ();\n"
24334 " $h->mount_options ('', '/dev/sda1', '/');\n"
24335 " $h->touch ('/hello');\n"
24336 " $h->sync ();\n"
24337 "\n"
24338 msgstr ""
24339
24340 #. type: textblock
24341 #: ../perl/examples/guestfs-perl.pod:20
24342 msgid ""
24343 "This manual page documents how to call libguestfs from the Perl programming "
24344 "language.  This page just documents the differences from the C API and gives "
24345 "some examples.  If you are not familiar with using libguestfs, you also need "
24346 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
24347 msgstr ""
24348
24349 #. type: =head2
24350 #: ../perl/examples/guestfs-perl.pod:26
24351 msgid "ERRORS"
24352 msgstr "ПОМИЛКИ"
24353
24354 #. type: textblock
24355 #: ../perl/examples/guestfs-perl.pod:28
24356 msgid ""
24357 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
24358 ">)."
24359 msgstr ""
24360
24361 #. type: textblock
24362 #: ../perl/examples/guestfs-perl.pod:41
24363 msgid ""
24364 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
24365 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
24366 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
24367 msgstr ""
24368
24369 #. type: textblock
24370 #: ../python/examples/guestfs-python.pod:5
24371 msgid "guestfs-python - How to use libguestfs from Python"
24372 msgstr ""
24373
24374 #. type: verbatim
24375 #: ../python/examples/guestfs-python.pod:9
24376 #, no-wrap
24377 msgid ""
24378 " import guestfs\n"
24379 " g = guestfs.GuestFS ()\n"
24380 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
24381 " g.launch\n"
24382 "\n"
24383 msgstr ""
24384
24385 #. type: textblock
24386 #: ../python/examples/guestfs-python.pod:16
24387 msgid ""
24388 "This manual page documents how to call libguestfs from the Python "
24389 "programming language.  This page just documents the differences from the C "
24390 "API and gives some examples.  If you are not familiar with using libguestfs, "
24391 "you also need to read L<guestfs(3)>."
24392 msgstr ""
24393
24394 #. type: textblock
24395 #: ../python/examples/guestfs-python.pod:23
24396 msgid ""
24397 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
24398 "single string argument which is the error message."
24399 msgstr ""
24400
24401 #. type: =head2
24402 #: ../python/examples/guestfs-python.pod:26
24403 msgid "MORE DOCUMENTATION"
24404 msgstr ""
24405
24406 #. type: textblock
24407 #: ../python/examples/guestfs-python.pod:28
24408 msgid "Type:"
24409 msgstr "Тип:"
24410
24411 #. type: verbatim
24412 #: ../python/examples/guestfs-python.pod:30
24413 #, no-wrap
24414 msgid ""
24415 " $ python\n"
24416 " >>> import guestfs\n"
24417 " >>> help (guestfs)\n"
24418 "\n"
24419 msgstr ""
24420
24421 #. type: textblock
24422 #: ../python/examples/guestfs-python.pod:44
24423 msgid ""
24424 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24425 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
24426 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
24427 msgstr ""
24428
24429 #. type: textblock
24430 #: ../rescue/virt-rescue.pod:5
24431 msgid "virt-rescue - Run a rescue shell on a virtual machine"
24432 msgstr ""
24433
24434 #. type: verbatim
24435 #: ../rescue/virt-rescue.pod:9
24436 #, no-wrap
24437 msgid ""
24438 " virt-rescue [--options] -d domname\n"
24439 "\n"
24440 msgstr ""
24441
24442 #. type: verbatim
24443 #: ../rescue/virt-rescue.pod:11
24444 #, no-wrap
24445 msgid ""
24446 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
24447 "\n"
24448 msgstr ""
24449
24450 #. type: verbatim
24451 #: ../rescue/virt-rescue.pod:13
24452 #, fuzzy, no-wrap
24453 #| msgid ""
24454 #| " virt-filesystems --format=raw -a disk.img\n"
24455 #| "\n"
24456 msgid ""
24457 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
24458 "\n"
24459 msgstr ""
24460 " virt-filesystems --format=raw -a диск.img\n"
24461 "\n"
24462
24463 #. type: verbatim
24464 #: ../rescue/virt-rescue.pod:17
24465 #, no-wrap
24466 msgid ""
24467 " virt-rescue [--options] domname\n"
24468 "\n"
24469 msgstr ""
24470
24471 #. type: verbatim
24472 #: ../rescue/virt-rescue.pod:19
24473 #, no-wrap
24474 msgid ""
24475 " virt-rescue [--options] disk.img [disk.img ...]\n"
24476 "\n"
24477 msgstr ""
24478
24479 #. type: textblock
24480 #: ../rescue/virt-rescue.pod:23
24481 msgid ""
24482 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
24483 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
24484 "you from doing this, but doesn't catch all cases."
24485 msgstr ""
24486
24487 #. type: textblock
24488 #: ../rescue/virt-rescue.pod:27
24489 msgid ""
24490 "However if you use the I<--ro> (read only) option, then you can attach a "
24491 "shell to a live virtual machine.  The results might be strange or "
24492 "inconsistent at times but you won't get disk corruption."
24493 msgstr ""
24494
24495 #. type: textblock
24496 #: ../rescue/virt-rescue.pod:33
24497 msgid ""
24498 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
24499 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
24500 "recovery tools which you can use to examine or rescue a virtual machine or "
24501 "disk image."
24502 msgstr ""
24503
24504 #. type: textblock
24505 #: ../rescue/virt-rescue.pod:38
24506 msgid ""
24507 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
24508 "on disk image(s):"
24509 msgstr ""
24510
24511 #. type: verbatim
24512 #: ../rescue/virt-rescue.pod:41
24513 #, no-wrap
24514 msgid ""
24515 " virt-rescue -d GuestName\n"
24516 "\n"
24517 msgstr ""
24518
24519 #. type: verbatim
24520 #: ../rescue/virt-rescue.pod:43
24521 #, no-wrap
24522 msgid ""
24523 " virt-rescue --ro -a /path/to/disk.img\n"
24524 "\n"
24525 msgstr ""
24526
24527 #. type: verbatim
24528 #: ../rescue/virt-rescue.pod:45
24529 #, no-wrap
24530 msgid ""
24531 " virt-rescue -a /dev/sdc\n"
24532 "\n"
24533 msgstr ""
24534
24535 #. type: textblock
24536 #: ../rescue/virt-rescue.pod:47
24537 msgid "For live VMs you I<must> use the --ro option."
24538 msgstr ""
24539
24540 #. type: textblock
24541 #: ../rescue/virt-rescue.pod:49
24542 msgid ""
24543 "When you run virt-rescue on a virtual machine or disk image, you are placed "
24544 "in an interactive bash shell where you can use many ordinary Linux "
24545 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
24546 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
24547 "is an empty directory called C</sysroot> where you can mount filesystems."
24548 msgstr ""
24549
24550 #. type: textblock
24551 #: ../rescue/virt-rescue.pod:56
24552 msgid ""
24553 "You can get virt-rescue to suggest mount commands for you by using the I<--"
24554 "suggest> option (in another terminal):"
24555 msgstr ""
24556
24557 #. type: verbatim
24558 #: ../rescue/virt-rescue.pod:59
24559 #, no-wrap
24560 msgid ""
24561 " $ virt-rescue --suggest -d Fedora15\n"
24562 " Inspecting the virtual machine or disk image ...\n"
24563 " \n"
24564 msgstr ""
24565
24566 #. type: verbatim
24567 #: ../rescue/virt-rescue.pod:62
24568 #, no-wrap
24569 msgid ""
24570 " This disk contains one or more operating systems.  You can use these\n"
24571 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
24572 " filesystems.\n"
24573 " \n"
24574 msgstr ""
24575
24576 #. type: verbatim
24577 #: ../rescue/virt-rescue.pod:66
24578 #, no-wrap
24579 msgid ""
24580 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
24581 " # type: linux, distro: fedora, version: 15.0\n"
24582 " # Fedora release 15 (Lovelock)\n"
24583 " \n"
24584 msgstr ""
24585
24586 #. type: verbatim
24587 #: ../rescue/virt-rescue.pod:70
24588 #, no-wrap
24589 msgid ""
24590 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
24591 " mount /dev/vda1 /sysroot/boot\n"
24592 " mount --bind /dev /sysroot/dev\n"
24593 " mount --bind /dev/pts /sysroot/dev/pts\n"
24594 " mount --bind /proc /sysroot/proc\n"
24595 " mount --bind /sys /sysroot/sys\n"
24596 "\n"
24597 msgstr ""
24598
24599 #. type: textblock
24600 #: ../rescue/virt-rescue.pod:77
24601 msgid ""
24602 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
24603 "(with L<parted(8)>) and mount them by hand:"
24604 msgstr ""
24605
24606 #. type: verbatim
24607 #: ../rescue/virt-rescue.pod:80
24608 #, no-wrap
24609 msgid ""
24610 " ><rescue> lvs\n"
24611 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
24612 " lv_root vg_f15x32 -wi-a-   8.83G\n"
24613 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
24614 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
24615 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
24616 " ><rescue> ls /sysroot\n"
24617 "\n"
24618 msgstr ""
24619
24620 #. type: textblock
24621 #: ../rescue/virt-rescue.pod:88
24622 msgid ""
24623 "Another command to list available filesystems is L<virt-filesystems(1)>."
24624 msgstr ""
24625
24626 #. type: textblock
24627 #: ../rescue/virt-rescue.pod:91
24628 msgid ""
24629 "To run commands in a Linux guest (for example, grub), you should chroot into "
24630 "the /sysroot directory first:"
24631 msgstr ""
24632
24633 #. type: verbatim
24634 #: ../rescue/virt-rescue.pod:94
24635 #, no-wrap
24636 msgid ""
24637 " ><rescue> chroot /sysroot\n"
24638 "\n"
24639 msgstr ""
24640
24641 #. type: textblock
24642 #: ../rescue/virt-rescue.pod:98
24643 msgid ""
24644 "Virt-rescue can be used on I<any> disk image file or device, not just a "
24645 "virtual machine.  For example you can use it on a blank file if you want to "
24646 "partition that file (although we would recommend using L<guestfish(1)> "
24647 "instead as it is more suitable for this purpose).  You can even use virt-"
24648 "rescue on things like SD cards."
24649 msgstr ""
24650
24651 #. type: textblock
24652 #: ../rescue/virt-rescue.pod:104
24653 msgid ""
24654 "Virt-rescue does not require root.  You only need to run it as root if you "
24655 "need root to open the disk image."
24656 msgstr ""
24657
24658 #. type: textblock
24659 #: ../rescue/virt-rescue.pod:107
24660 msgid ""
24661 "This tool is just designed for quick interactive hacking on a virtual "
24662 "machine.  For more structured access to a virtual machine disk image, you "
24663 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
24664 "make scripted changes to guests, use L<guestfish(1)>."
24665 msgstr ""
24666
24667 #. type: =item
24668 #: ../rescue/virt-rescue.pod:131
24669 msgid "B<--append kernelopts>"
24670 msgstr "B<--append параметри_ядра>"
24671
24672 #. type: textblock
24673 #: ../rescue/virt-rescue.pod:133
24674 msgid "Pass additional options to the rescue kernel."
24675 msgstr ""
24676
24677 #. type: verbatim
24678 #: ../rescue/virt-rescue.pod:163
24679 #, no-wrap
24680 msgid ""
24681 " virt-rescue --format=raw -a disk.img\n"
24682 "\n"
24683 msgstr ""
24684
24685 #. type: verbatim
24686 #: ../rescue/virt-rescue.pod:167
24687 #, no-wrap
24688 msgid ""
24689 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
24690 "\n"
24691 msgstr ""
24692
24693 #. type: =item
24694 #: ../rescue/virt-rescue.pod:176
24695 msgid "B<-m MB>"
24696 msgstr "B<-m МБ>"
24697
24698 #. type: =item
24699 #: ../rescue/virt-rescue.pod:178
24700 msgid "B<--memsize MB>"
24701 msgstr "B<--memsize МБ>"
24702
24703 #. type: textblock
24704 #: ../rescue/virt-rescue.pod:180
24705 msgid ""
24706 "Change the amount of memory allocated to the rescue system.  The default is "
24707 "set by libguestfs and is small but adequate for running system tools.  The "
24708 "occasional program might need more memory.  The parameter is specified in "
24709 "megabytes."
24710 msgstr ""
24711
24712 #. type: =item
24713 #: ../rescue/virt-rescue.pod:185
24714 msgid "B<--network>"
24715 msgstr "B<--network>"
24716
24717 #. type: textblock
24718 #: ../rescue/virt-rescue.pod:187
24719 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
24720 msgstr ""
24721
24722 #. type: textblock
24723 #: ../rescue/virt-rescue.pod:193
24724 msgid "Open the image read-only."
24725 msgstr ""
24726
24727 #. type: textblock
24728 #: ../rescue/virt-rescue.pod:203
24729 msgid ""
24730 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
24731 "SELINUX> before using this option."
24732 msgstr ""
24733
24734 #. type: =item
24735 #: ../rescue/virt-rescue.pod:206
24736 msgid "B<--smp> N"
24737 msgstr ""
24738
24739 #. type: textblock
24740 #: ../rescue/virt-rescue.pod:208
24741 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
24742 msgstr ""
24743
24744 #. type: =item
24745 #: ../rescue/virt-rescue.pod:210
24746 #, fuzzy
24747 #| msgid "B<--quiet>"
24748 msgid "B<--suggest>"
24749 msgstr "B<--quiet>"
24750
24751 #. type: textblock
24752 #: ../rescue/virt-rescue.pod:212
24753 msgid ""
24754 "Inspect the disk image and suggest what mount commands should be used to "
24755 "mount the disks.  You should use the I<--suggest> option in a second "
24756 "terminal, then paste the commands into another virt-rescue."
24757 msgstr ""
24758
24759 #. type: textblock
24760 #: ../rescue/virt-rescue.pod:216
24761 msgid ""
24762 "This option implies I<--ro> and is safe to use even if the guest is up or if "
24763 "another virt-rescue is running."
24764 msgstr ""
24765
24766 #. type: textblock
24767 #: ../rescue/virt-rescue.pod:235
24768 msgid ""
24769 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
24770 "are done read-write."
24771 msgstr ""
24772
24773 #. type: textblock
24774 #: ../rescue/virt-rescue.pod:248
24775 msgid "Previous versions of virt-rescue allowed you to write either:"
24776 msgstr ""
24777
24778 #. type: verbatim
24779 #: ../rescue/virt-rescue.pod:250
24780 #, no-wrap
24781 msgid ""
24782 " virt-rescue disk.img [disk.img ...]\n"
24783 "\n"
24784 msgstr ""
24785
24786 #. type: verbatim
24787 #: ../rescue/virt-rescue.pod:254
24788 #, no-wrap
24789 msgid ""
24790 " virt-rescue guestname\n"
24791 "\n"
24792 msgstr ""
24793
24794 #. type: =head1
24795 #: ../rescue/virt-rescue.pod:262
24796 msgid "NETWORK"
24797 msgstr "МЕРЕЖА"
24798
24799 #. type: textblock
24800 #: ../rescue/virt-rescue.pod:264
24801 msgid ""
24802 "Adding the I<--network> option enables QEMU user networking in the rescue "
24803 "appliance.  There are some differences between user networking and ordinary "
24804 "networking:"
24805 msgstr ""
24806
24807 #. type: =item
24808 #: ../rescue/virt-rescue.pod:270
24809 msgid "ping does not work"
24810 msgstr ""
24811
24812 #. type: textblock
24813 #: ../rescue/virt-rescue.pod:272
24814 msgid ""
24815 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
24816 "send the ping packets, and because virt-rescue must be able to run as non-"
24817 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
24818 "The ping command will appear to resolve addresses but will not be able to "
24819 "send or receive any packets.  This does not mean that the network is not "
24820 "working."
24821 msgstr ""
24822
24823 #. type: =item
24824 #: ../rescue/virt-rescue.pod:279
24825 msgid "cannot receive connections"
24826 msgstr ""
24827
24828 #. type: textblock
24829 #: ../rescue/virt-rescue.pod:281
24830 msgid "QEMU user networking cannot receive incoming connections."
24831 msgstr ""
24832
24833 #. type: =item
24834 #: ../rescue/virt-rescue.pod:283
24835 msgid "making TCP connections"
24836 msgstr ""
24837
24838 #. type: textblock
24839 #: ../rescue/virt-rescue.pod:285
24840 msgid ""
24841 "The virt-rescue appliance needs to be small and so does not include many "
24842 "network tools.  In particular there is no L<telnet(1)> command.  You can "
24843 "make TCP connections from the shell using the magical C</dev/tcp/"
24844 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
24845 msgstr ""
24846
24847 #. type: verbatim
24848 #: ../rescue/virt-rescue.pod:290
24849 #, no-wrap
24850 msgid ""
24851 " exec 3<>/dev/tcp/redhat.com/80\n"
24852 " echo \"GET /\" >&3\n"
24853 " cat <&3\n"
24854 "\n"
24855 msgstr ""
24856
24857 #. type: textblock
24858 #: ../rescue/virt-rescue.pod:294
24859 msgid "See L<bash(1)> for more details."
24860 msgstr ""
24861
24862 #. type: textblock
24863 #: ../rescue/virt-rescue.pod:300
24864 msgid ""
24865 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
24866 "ENVIRONMENT VARIABLES> for the complete list."
24867 msgstr ""
24868
24869 #. type: textblock
24870 #: ../rescue/virt-rescue.pod:327
24871 #, fuzzy
24872 #| msgid ""
24873 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
24874 #| "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
24875 msgid ""
24876 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
24877 "filesystems(1)>, L<http://libguestfs.org/>."
24878 msgstr ""
24879 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
24880 "tar-out(1)>, L<http://libguestfs.org/>."
24881
24882 #. type: textblock
24883 #: ../resize/virt-resize.pod:5
24884 msgid "virt-resize - Resize a virtual machine disk"
24885 msgstr ""
24886
24887 #. type: verbatim
24888 #: ../resize/virt-resize.pod:9
24889 #, no-wrap
24890 msgid ""
24891 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
24892 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
24893 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
24894 "\n"
24895 msgstr ""
24896
24897 #. type: textblock
24898 #: ../resize/virt-resize.pod:15
24899 msgid ""
24900 "Virt-resize is a tool which can resize a virtual machine disk, making it "
24901 "larger or smaller overall, and resizing or deleting any partitions contained "
24902 "within."
24903 msgstr ""
24904
24905 #. type: textblock
24906 #: ../resize/virt-resize.pod:19
24907 msgid ""
24908 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
24909 "not> be used on live virtual machines - for consistent results, shut the "
24910 "virtual machine down before resizing it."
24911 msgstr ""
24912
24913 #. type: textblock
24914 #: ../resize/virt-resize.pod:23
24915 msgid ""
24916 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
24917 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
24918 msgstr ""
24919
24920 #. type: =item
24921 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:603
24922 #: ../sparsify/virt-sparsify.pod:227 ../src/guestfs.pod:484
24923 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
24924 msgid "1."
24925 msgstr "1."
24926
24927 #. type: textblock
24928 #: ../resize/virt-resize.pod:33
24929 msgid ""
24930 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
24931 "fill the extra 5GB of space."
24932 msgstr ""
24933
24934 #. type: verbatim
24935 #: ../resize/virt-resize.pod:36
24936 #, no-wrap
24937 msgid ""
24938 " virt-filesystems --long -h --all -a olddisk\n"
24939 " \n"
24940 msgstr ""
24941
24942 #. type: verbatim
24943 #: ../resize/virt-resize.pod:38
24944 #, no-wrap
24945 msgid ""
24946 " truncate -r olddisk newdisk\n"
24947 " truncate -s +5G newdisk\n"
24948 " \n"
24949 msgstr ""
24950
24951 #. type: verbatim
24952 #: ../resize/virt-resize.pod:41
24953 #, no-wrap
24954 msgid ""
24955 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
24956 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
24957 "\n"
24958 msgstr ""
24959
24960 #. type: =item
24961 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:610
24962 #: ../sparsify/virt-sparsify.pod:234 ../src/guestfs.pod:490
24963 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
24964 msgid "2."
24965 msgstr "2."
24966
24967 #. type: textblock
24968 #: ../resize/virt-resize.pod:46
24969 msgid ""
24970 "As above, but make the /boot partition 200MB bigger, while giving the "
24971 "remaining space to /dev/sda2:"
24972 msgstr ""
24973
24974 #. type: verbatim
24975 #: ../resize/virt-resize.pod:49
24976 #, no-wrap
24977 msgid ""
24978 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24979 "   olddisk newdisk\n"
24980 "\n"
24981 msgstr ""
24982
24983 #. type: =item
24984 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:616
24985 #: ../sparsify/virt-sparsify.pod:240 ../src/guestfs.pod:501
24986 #: ../src/guestfs.pod:1451
24987 msgid "3."
24988 msgstr "3."
24989
24990 #. type: textblock
24991 #: ../resize/virt-resize.pod:54
24992 msgid ""
24993 "As in the first example, but expand a logical volume as the final step.  "
24994 "This is what you would typically use for Linux guests that use LVM:"
24995 msgstr ""
24996
24997 #. type: verbatim
24998 #: ../resize/virt-resize.pod:58
24999 #, no-wrap
25000 msgid ""
25001 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
25002 "   olddisk newdisk\n"
25003 "\n"
25004 msgstr ""
25005
25006 #. type: =item
25007 #: ../resize/virt-resize.pod:61
25008 msgid "4."
25009 msgstr ""
25010
25011 #. type: textblock
25012 #: ../resize/virt-resize.pod:63
25013 msgid ""
25014 "As in the first example, but the output format will be qcow2 instead of a "
25015 "raw disk:"
25016 msgstr ""
25017
25018 #. type: verbatim
25019 #: ../resize/virt-resize.pod:66
25020 #, no-wrap
25021 msgid ""
25022 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
25023 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
25024 "\n"
25025 msgstr ""
25026
25027 #. type: =head1
25028 #: ../resize/virt-resize.pod:71
25029 msgid "DETAILED USAGE"
25030 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
25031
25032 #. type: =head2
25033 #: ../resize/virt-resize.pod:73
25034 msgid "EXPANDING A VIRTUAL MACHINE DISK"
25035 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
25036
25037 #. type: =item
25038 #: ../resize/virt-resize.pod:77
25039 msgid "1. Shut down the virtual machine"
25040 msgstr ""
25041
25042 #. type: =item
25043 #: ../resize/virt-resize.pod:79
25044 msgid "2. Locate input disk image"
25045 msgstr ""
25046
25047 #. type: textblock
25048 #: ../resize/virt-resize.pod:81
25049 msgid ""
25050 "Locate the input disk image (ie. the file or device on the host containing "
25051 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
25052 "dumpxml> like this to find the disk image name:"
25053 msgstr ""
25054
25055 #. type: verbatim
25056 #: ../resize/virt-resize.pod:85
25057 #, no-wrap
25058 msgid ""
25059 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
25060 " Found 1 nodes:\n"
25061 " -- NODE --\n"
25062 " <source dev=\"/dev/vg/lv_guest\" />\n"
25063 "\n"
25064 msgstr ""
25065
25066 #. type: =item
25067 #: ../resize/virt-resize.pod:90
25068 msgid "3. Look at current sizing"
25069 msgstr ""
25070
25071 #. type: textblock
25072 #: ../resize/virt-resize.pod:92
25073 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
25074 msgstr ""
25075
25076 #. type: verbatim
25077 #: ../resize/virt-resize.pod:95
25078 #, no-wrap
25079 msgid ""
25080 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
25081 " Name       Type       Size  Parent\n"
25082 " /dev/sda1  partition  101M  /dev/sda\n"
25083 " /dev/sda2  partition  7.9G  /dev/sda\n"
25084 " /dev/sda   device     8.0G  -\n"
25085 "\n"
25086 msgstr ""
25087
25088 #. type: textblock
25089 #: ../resize/virt-resize.pod:101
25090 msgid ""
25091 "(This example is a virtual machine with an 8 GB disk which we would like to "
25092 "expand up to 10 GB)."
25093 msgstr ""
25094
25095 #. type: =item
25096 #: ../resize/virt-resize.pod:104
25097 msgid "4. Create output disk"
25098 msgstr ""
25099
25100 #. type: textblock
25101 #: ../resize/virt-resize.pod:106
25102 msgid ""
25103 "Virt-resize cannot do in-place disk modifications.  You have to have space "
25104 "to store the resized output disk."
25105 msgstr ""
25106
25107 #. type: textblock
25108 #: ../resize/virt-resize.pod:109
25109 msgid ""
25110 "To store the resized disk image in a file, create a file of a suitable size:"
25111 msgstr ""
25112
25113 #. type: verbatim
25114 #: ../resize/virt-resize.pod:112
25115 #, no-wrap
25116 msgid ""
25117 " # rm -f outdisk\n"
25118 " # truncate -s 10G outdisk\n"
25119 "\n"
25120 msgstr ""
25121
25122 #. type: textblock
25123 #: ../resize/virt-resize.pod:115
25124 msgid "Or use L<lvcreate(1)> to create a logical volume:"
25125 msgstr ""
25126
25127 #. type: verbatim
25128 #: ../resize/virt-resize.pod:117
25129 #, no-wrap
25130 msgid ""
25131 " # lvcreate -L 10G -n lv_name vg_name\n"
25132 "\n"
25133 msgstr ""
25134
25135 #. type: textblock
25136 #: ../resize/virt-resize.pod:119
25137 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
25138 msgstr ""
25139
25140 #. type: verbatim
25141 #: ../resize/virt-resize.pod:121
25142 #, no-wrap
25143 msgid ""
25144 " # virsh pool-list\n"
25145 " # virsh vol-create-as poolname newvol 10G\n"
25146 "\n"
25147 msgstr ""
25148
25149 #. type: =item
25150 #: ../resize/virt-resize.pod:124
25151 msgid "5. Resize"
25152 msgstr "5. Зміна розміру"
25153
25154 #. type: textblock
25155 #: ../resize/virt-resize.pod:126
25156 msgid ""
25157 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
25158 "file) and the output disk.  The output disk is the one created in the "
25159 "previous step."
25160 msgstr ""
25161
25162 #. type: verbatim
25163 #: ../resize/virt-resize.pod:130
25164 #, no-wrap
25165 msgid ""
25166 " # virt-resize indisk outdisk\n"
25167 "\n"
25168 msgstr ""
25169
25170 #. type: textblock
25171 #: ../resize/virt-resize.pod:132
25172 msgid ""
25173 "This command just copies disk image C<indisk> to disk image C<outdisk> "
25174 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
25175 "larger, then an extra, empty partition is created at the end of the disk "
25176 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
25177 "error."
25178 msgstr ""
25179
25180 #. type: textblock
25181 #: ../resize/virt-resize.pod:138
25182 msgid ""
25183 "More realistically you'd want to expand existing partitions in the disk "
25184 "image by passing extra options (for the full list see the L</OPTIONS> "
25185 "section below)."
25186 msgstr ""
25187
25188 #. type: textblock
25189 #: ../resize/virt-resize.pod:142
25190 msgid ""
25191 "L</--expand> is the most useful option.  It expands the named partition "
25192 "within the disk to fill any extra space:"
25193 msgstr ""
25194
25195 #. type: verbatim
25196 #: ../resize/virt-resize.pod:145
25197 #, no-wrap
25198 msgid ""
25199 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
25200 "\n"
25201 msgstr ""
25202
25203 #. type: textblock
25204 #: ../resize/virt-resize.pod:147
25205 msgid ""
25206 "(In this case, an extra partition is I<not> created at the end of the disk, "
25207 "because there will be no unused space)."
25208 msgstr ""
25209
25210 #. type: textblock
25211 #: ../resize/virt-resize.pod:150
25212 msgid ""
25213 "L</--resize> is the other commonly used option.  The following would "
25214 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
25215 "rest of the available space:"
25216 msgstr ""
25217
25218 #. type: verbatim
25219 #: ../resize/virt-resize.pod:154
25220 #, no-wrap
25221 msgid ""
25222 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
25223 "     indisk outdisk\n"
25224 "\n"
25225 msgstr ""
25226
25227 #. type: textblock
25228 #: ../resize/virt-resize.pod:157
25229 msgid ""
25230 "If the expanded partition in the image contains a filesystem or LVM PV, then "
25231 "if virt-resize knows how, it will resize the contents, the equivalent of "
25232 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
25233 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
25234 "filesystems, so you would have to online resize them after booting the guest."
25235 msgstr ""
25236
25237 #. type: textblock
25238 #: ../resize/virt-resize.pod:164
25239 msgid "Other options are covered below."
25240 msgstr ""
25241
25242 #. type: =item
25243 #: ../resize/virt-resize.pod:166
25244 msgid "6. Test"
25245 msgstr "6. Перевірка"
25246
25247 #. type: textblock
25248 #: ../resize/virt-resize.pod:168
25249 msgid "Thoroughly test the new disk image I<before> discarding the old one."
25250 msgstr ""
25251
25252 #. type: textblock
25253 #: ../resize/virt-resize.pod:170
25254 msgid "If you are using libvirt, edit the XML to point at the new disk:"
25255 msgstr ""
25256
25257 #. type: verbatim
25258 #: ../resize/virt-resize.pod:172
25259 #, no-wrap
25260 msgid ""
25261 " # virsh edit guestname\n"
25262 "\n"
25263 msgstr ""
25264
25265 #. type: textblock
25266 #: ../resize/virt-resize.pod:174
25267 msgid ""
25268 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
25269 "html#elementsDisks>"
25270 msgstr ""
25271
25272 #. type: textblock
25273 #: ../resize/virt-resize.pod:177
25274 msgid "Then start up the domain with the new, resized disk:"
25275 msgstr ""
25276
25277 #. type: verbatim
25278 #: ../resize/virt-resize.pod:179
25279 #, no-wrap
25280 msgid ""
25281 " # virsh start guestname\n"
25282 "\n"
25283 msgstr ""
25284
25285 #. type: textblock
25286 #: ../resize/virt-resize.pod:181
25287 msgid ""
25288 "and check that it still works.  See also the L</NOTES> section below for "
25289 "additional information."
25290 msgstr ""
25291
25292 #. type: =item
25293 #: ../resize/virt-resize.pod:184
25294 msgid "7. Resize LVs etc inside the guest"
25295 msgstr ""
25296
25297 #. type: textblock
25298 #: ../resize/virt-resize.pod:186
25299 msgid "(This can also be done offline using L<guestfish(1)>)"
25300 msgstr ""
25301
25302 #. type: textblock
25303 #: ../resize/virt-resize.pod:188
25304 msgid ""
25305 "Once the guest has booted you should see the new space available, at least "
25306 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
25307 "may need to resize LVs inside PVs, and also resize filesystem types that "
25308 "virt-resize does not know how to expand."
25309 msgstr ""
25310
25311 #. type: =head2
25312 #: ../resize/virt-resize.pod:195
25313 msgid "SHRINKING A VIRTUAL MACHINE DISK"
25314 msgstr ""
25315
25316 #. type: textblock
25317 #: ../resize/virt-resize.pod:197
25318 msgid ""
25319 "Shrinking is somewhat more complex than expanding, and only an overview is "
25320 "given here."
25321 msgstr ""
25322
25323 #. type: textblock
25324 #: ../resize/virt-resize.pod:200
25325 msgid ""
25326 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
25327 "filesystems).  The user has to shrink content before passing the disk image "
25328 "to virt-resize, and virt-resize will check that the content has been shrunk "
25329 "properly."
25330 msgstr ""
25331
25332 #. type: textblock
25333 #: ../resize/virt-resize.pod:205
25334 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
25335 msgstr ""
25336
25337 #. type: textblock
25338 #: ../resize/virt-resize.pod:207
25339 msgid ""
25340 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
25341 "steps 3 and 4 above to allocate a new disk image."
25342 msgstr ""
25343
25344 #. type: textblock
25345 #: ../resize/virt-resize.pod:210
25346 msgid ""
25347 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
25348 msgstr ""
25349
25350 #. type: =head2
25351 #: ../resize/virt-resize.pod:213
25352 msgid "IGNORING OR DELETING PARTITIONS"
25353 msgstr ""
25354
25355 #. type: textblock
25356 #: ../resize/virt-resize.pod:215
25357 msgid ""
25358 "virt-resize also gives a convenient way to ignore or delete partitions when "
25359 "copying from the input disk to the output disk.  Ignoring a partition speeds "
25360 "up the copy where you don't care about the existing contents of a "
25361 "partition.  Deleting a partition removes it completely, but note that it "
25362 "also renumbers any partitions after the one which is deleted, which can "
25363 "leave some guests unbootable."
25364 msgstr ""
25365
25366 #. type: =head2
25367 #: ../resize/virt-resize.pod:222
25368 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
25369 msgstr ""
25370
25371 #. type: textblock
25372 #: ../resize/virt-resize.pod:224
25373 msgid ""
25374 "If the input disk is in qcow2 format, then you may prefer that the output is "
25375 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
25376 "the fly.  The output format is simply determined by the format of the empty "
25377 "output container that you provide.  Thus to create qcow2 output, use:"
25378 msgstr ""
25379
25380 #. type: verbatim
25381 #: ../resize/virt-resize.pod:230
25382 #, no-wrap
25383 msgid ""
25384 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
25385 "\n"
25386 msgstr ""
25387
25388 #. type: textblock
25389 #: ../resize/virt-resize.pod:232
25390 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
25391 msgstr ""
25392
25393 #. type: textblock
25394 #: ../resize/virt-resize.pod:234
25395 msgid "Similarly, to get non-sparse raw output use:"
25396 msgstr ""
25397
25398 #. type: verbatim
25399 #: ../resize/virt-resize.pod:236
25400 #, no-wrap
25401 msgid ""
25402 " fallocate -l size outdisk\n"
25403 "\n"
25404 msgstr ""
25405
25406 #. type: textblock
25407 #: ../resize/virt-resize.pod:238
25408 msgid ""
25409 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
25410 "dev/zero of=outdisk bs=1M count=..>)"
25411 msgstr ""
25412
25413 #. type: =head2
25414 #: ../resize/virt-resize.pod:241
25415 msgid "LOGICAL PARTITIONS"
25416 msgstr ""
25417
25418 #. type: textblock
25419 #: ../resize/virt-resize.pod:243
25420 msgid ""
25421 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
25422 "tables) cannot be resized."
25423 msgstr ""
25424
25425 #. type: textblock
25426 #: ../resize/virt-resize.pod:246
25427 msgid ""
25428 "To understand what is going on, firstly one of the four partitions C</dev/"
25429 "sda1-4> will have MBR partition type C<05> or C<0f>.  This is called the "
25430 "B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR partition "
25431 "type."
25432 msgstr ""
25433
25434 #. type: textblock
25435 #: ../resize/virt-resize.pod:251
25436 msgid "Logical partitions live inside the extended partition."
25437 msgstr ""
25438
25439 #. type: textblock
25440 #: ../resize/virt-resize.pod:253
25441 msgid ""
25442 "The extended partition can be expanded, but not shrunk (unless you force it, "
25443 "which is not advisable).  When the extended partition is copied across, all "
25444 "the logical partitions contained inside are copied over implicitly.  Virt-"
25445 "resize does not look inside the extended partition, so it copies the logical "
25446 "partitions blindly."
25447 msgstr ""
25448
25449 #. type: textblock
25450 #: ../resize/virt-resize.pod:259
25451 msgid ""
25452 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
25453 "line.  Doing so will give an error."
25454 msgstr ""
25455
25456 #. type: textblock
25457 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
25458 msgid "Display help."
25459 msgstr ""
25460
25461 #. type: =item
25462 #: ../resize/virt-resize.pod:270
25463 msgid "B<--align-first auto>"
25464 msgstr ""
25465
25466 #. type: =item
25467 #: ../resize/virt-resize.pod:272
25468 msgid "B<--align-first never>"
25469 msgstr ""
25470
25471 #. type: =item
25472 #: ../resize/virt-resize.pod:274
25473 msgid "B<--align-first always>"
25474 msgstr ""
25475
25476 #. type: textblock
25477 #: ../resize/virt-resize.pod:276
25478 msgid ""
25479 "Align the first partition for improved performance (see also the I<--"
25480 "alignment> option)."
25481 msgstr ""
25482
25483 #. type: textblock
25484 #: ../resize/virt-resize.pod:279
25485 msgid ""
25486 "The default is I<--align-first auto> which only aligns the first partition "
25487 "if it is safe to do so.  That is, only when we know how to fix the "
25488 "bootloader automatically, and at the moment that can only be done for "
25489 "Windows guests."
25490 msgstr ""
25491
25492 #. type: textblock
25493 #: ../resize/virt-resize.pod:284
25494 msgid ""
25495 "I<--align-first never> means we never move the first partition.  This is the "
25496 "safest option.  Try this if the guest does not boot after resizing."
25497 msgstr ""
25498
25499 #. type: textblock
25500 #: ../resize/virt-resize.pod:288
25501 msgid ""
25502 "I<--align-first always> means we always align the first partition (if it "
25503 "needs to be aligned).  For some guests this will break the bootloader, "
25504 "making the guest unbootable."
25505 msgstr ""
25506
25507 #. type: =item
25508 #: ../resize/virt-resize.pod:292
25509 msgid "B<--alignment N>"
25510 msgstr ""
25511
25512 #. type: textblock
25513 #: ../resize/virt-resize.pod:294
25514 msgid ""
25515 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
25516 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
25517 msgstr ""
25518
25519 #. type: textblock
25520 #: ../resize/virt-resize.pod:298
25521 msgid ""
25522 "Assuming 512 byte sector size inside the guest, here are some suitable "
25523 "values for this:"
25524 msgstr ""
25525
25526 #. type: =item
25527 #: ../resize/virt-resize.pod:303
25528 msgid "I<--alignment 1> (512 bytes)"
25529 msgstr ""
25530
25531 #. type: textblock
25532 #: ../resize/virt-resize.pod:305
25533 msgid ""
25534 "The partitions would be packed together as closely as possible, but would be "
25535 "completely unaligned.  In some cases this can cause very poor performance.  "
25536 "See L<virt-alignment-scan(1)> for further details."
25537 msgstr ""
25538
25539 #. type: =item
25540 #: ../resize/virt-resize.pod:309
25541 msgid "I<--alignment 8> (4K)"
25542 msgstr ""
25543
25544 #. type: textblock
25545 #: ../resize/virt-resize.pod:311
25546 msgid ""
25547 "This would be the minimum acceptable alignment for reasonable performance on "
25548 "modern hosts."
25549 msgstr ""
25550
25551 #. type: =item
25552 #: ../resize/virt-resize.pod:314
25553 msgid "I<--alignment 128> (64K)"
25554 msgstr ""
25555
25556 #. type: textblock
25557 #: ../resize/virt-resize.pod:316
25558 msgid ""
25559 "This alignment provides good performance when the host is using high end "
25560 "network storage."
25561 msgstr ""
25562
25563 #. type: =item
25564 #: ../resize/virt-resize.pod:319
25565 msgid "I<--alignment 2048> (1M)"
25566 msgstr ""
25567
25568 #. type: textblock
25569 #: ../resize/virt-resize.pod:321
25570 msgid ""
25571 "This is the standard alignment used by all newly installed guests since "
25572 "around 2008."
25573 msgstr ""
25574
25575 #. type: =item
25576 #: ../resize/virt-resize.pod:326
25577 msgid "B<-d>"
25578 msgstr "B<-d>"
25579
25580 #. type: =item
25581 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
25582 #: ../tools/virt-win-reg.pl:120
25583 msgid "B<--debug>"
25584 msgstr "B<--debug>"
25585
25586 #. type: textblock
25587 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
25588 msgid "Enable debugging messages."
25589 msgstr ""
25590
25591 #. type: =item
25592 #: ../resize/virt-resize.pod:332 ../sparsify/virt-sparsify.pod:131
25593 #, fuzzy
25594 #| msgid "B<--debug>"
25595 msgid "B<--debug-gc>"
25596 msgstr "B<--debug>"
25597
25598 #. type: textblock
25599 #: ../resize/virt-resize.pod:334
25600 msgid ""
25601 "Debug garbage collection and memory allocation.  This is only useful when "
25602 "debugging memory problems in virt-resize or the OCaml libguestfs bindings."
25603 msgstr ""
25604
25605 #. type: =item
25606 #: ../resize/virt-resize.pod:338
25607 msgid "B<--delete part>"
25608 msgstr "B<--delete розділ>"
25609
25610 #. type: textblock
25611 #: ../resize/virt-resize.pod:340
25612 msgid ""
25613 "Delete the named partition.  It would be more accurate to describe this as "
25614 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
25615 "the original disk image is left intact."
25616 msgstr ""
25617
25618 #. type: textblock
25619 #: ../resize/virt-resize.pod:344
25620 msgid ""
25621 "Note that when you delete a partition, then anything contained in the "
25622 "partition is also deleted.  Furthermore, this causes any partitions that "
25623 "come after to be I<renumbered>, which can easily make your guest unbootable."
25624 msgstr ""
25625
25626 #. type: textblock
25627 #: ../resize/virt-resize.pod:349 ../resize/virt-resize.pod:410
25628 #: ../resize/virt-resize.pod:537 ../sparsify/virt-sparsify.pod:157
25629 msgid "You can give this option multiple times."
25630 msgstr ""
25631
25632 #. type: =item
25633 #: ../resize/virt-resize.pod:351
25634 msgid "B<--expand part>"
25635 msgstr "B<--expand розділ>"
25636
25637 #. type: textblock
25638 #: ../resize/virt-resize.pod:353
25639 msgid ""
25640 "Expand the named partition so it uses up all extra space (space left over "
25641 "after any other resize changes that you request have been done)."
25642 msgstr ""
25643
25644 #. type: textblock
25645 #: ../resize/virt-resize.pod:356
25646 msgid ""
25647 "If virt-resize knows how, it will expand the direct content of the "
25648 "partition.  For example, if the partition is an LVM PV, it will expand the "
25649 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
25650 "content it doesn't know about alone."
25651 msgstr ""
25652
25653 #. type: textblock
25654 #: ../resize/virt-resize.pod:361
25655 msgid "Currently virt-resize can resize:"
25656 msgstr ""
25657
25658 #. type: textblock
25659 #: ../resize/virt-resize.pod:367
25660 msgid "ext2, ext3 and ext4 filesystems."
25661 msgstr ""
25662
25663 #. type: textblock
25664 #: ../resize/virt-resize.pod:371
25665 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
25666 msgstr ""
25667
25668 #. type: textblock
25669 #: ../resize/virt-resize.pod:373
25670 msgid ""
25671 "The filesystem must have been shut down consistently last time it was used.  "
25672 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
25673 "consistency check, so at the first boot after resizing Windows will check "
25674 "the disk."
25675 msgstr ""
25676
25677 #. type: textblock
25678 #: ../resize/virt-resize.pod:380
25679 msgid ""
25680 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
25681 "inside the PV, but see the I<--LV-expand> option.  The user could also "
25682 "resize LVs as desired after boot."
25683 msgstr ""
25684
25685 #. type: textblock
25686 #: ../resize/virt-resize.pod:386
25687 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
25688 msgstr ""
25689
25690 #. type: textblock
25691 #: ../resize/virt-resize.pod:390 ../resize/virt-resize.pod:565
25692 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
25693 msgstr ""
25694
25695 #. type: =item
25696 #: ../resize/virt-resize.pod:392 ../sparsify/virt-sparsify.pod:137
25697 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
25698 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
25699 msgid "B<--format> raw"
25700 msgstr "B<--format> raw"
25701
25702 #. type: textblock
25703 #: ../resize/virt-resize.pod:394 ../sparsify/virt-sparsify.pod:141
25704 msgid ""
25705 "Specify the format of the input disk image.  If this flag is not given then "
25706 "it is auto-detected from the image itself."
25707 msgstr ""
25708
25709 #. type: textblock
25710 #: ../resize/virt-resize.pod:400
25711 msgid ""
25712 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
25713 "AND NON-SPARSE RAW FORMATS>."
25714 msgstr ""
25715
25716 #. type: =item
25717 #: ../resize/virt-resize.pod:403
25718 msgid "B<--ignore part>"
25719 msgstr "B<--ignore розділ>"
25720
25721 #. type: textblock
25722 #: ../resize/virt-resize.pod:405
25723 msgid ""
25724 "Ignore the named partition.  Effectively this means the partition is "
25725 "allocated on the destination disk, but the content is not copied across from "
25726 "the source disk.  The content of the partition will be blank (all zero "
25727 "bytes)."
25728 msgstr ""
25729
25730 #. type: =item
25731 #: ../resize/virt-resize.pod:412
25732 msgid "B<--LV-expand logvol>"
25733 msgstr "B<--LV-expand логічний_том>"
25734
25735 #. type: textblock
25736 #: ../resize/virt-resize.pod:414
25737 msgid ""
25738 "This takes the logical volume and, as a final step, expands it to fill all "
25739 "the space available in its volume group.  A typical usage, assuming a Linux "
25740 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
25741 "lv_root> would be:"
25742 msgstr ""
25743
25744 #. type: verbatim
25745 #: ../resize/virt-resize.pod:419
25746 #, no-wrap
25747 msgid ""
25748 " virt-resize indisk outdisk \\\n"
25749 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25750 "\n"
25751 msgstr ""
25752
25753 #. type: textblock
25754 #: ../resize/virt-resize.pod:422
25755 msgid ""
25756 "This would first expand the partition (and PV), and then expand the root "
25757 "device to fill the extra space in the PV."
25758 msgstr ""
25759
25760 #. type: textblock
25761 #: ../resize/virt-resize.pod:425
25762 msgid ""
25763 "The contents of the LV are also resized if virt-resize knows how to do "
25764 "that.  You can stop virt-resize from trying to expand the content by using "
25765 "the option I<--no-expand-content>."
25766 msgstr ""
25767
25768 #. type: textblock
25769 #: ../resize/virt-resize.pod:429
25770 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
25771 msgstr ""
25772
25773 #. type: textblock
25774 #: ../resize/virt-resize.pod:431
25775 msgid ""
25776 "You can give this option multiple times, I<but> it doesn't make sense to do "
25777 "this unless the logical volumes you specify are all in different volume "
25778 "groups."
25779 msgstr ""
25780
25781 #. type: =item
25782 #: ../resize/virt-resize.pod:435 ../sparsify/virt-sparsify.pod:159
25783 msgid "B<--machine-readable>"
25784 msgstr ""
25785
25786 #. type: textblock
25787 #: ../resize/virt-resize.pod:437 ../sparsify/virt-sparsify.pod:161
25788 msgid ""
25789 "This option is used to make the output more machine friendly when being "
25790 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
25791 msgstr ""
25792
25793 #. type: =item
25794 #: ../resize/virt-resize.pod:443
25795 msgid "B<--dryrun>"
25796 msgstr "B<--dryrun>"
25797
25798 #. type: textblock
25799 #: ../resize/virt-resize.pod:445
25800 msgid "Print a summary of what would be done, but don't do anything."
25801 msgstr ""
25802
25803 #. type: =item
25804 #: ../resize/virt-resize.pod:447
25805 msgid "B<--no-copy-boot-loader>"
25806 msgstr "B<--no-copy-boot-loader>"
25807
25808 #. type: textblock
25809 #: ../resize/virt-resize.pod:449
25810 msgid ""
25811 "By default, virt-resize copies over some sectors at the start of the disk "
25812 "(up to the beginning of the first partition).  Commonly these sectors "
25813 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25814 "in order for the guest to boot correctly."
25815 msgstr ""
25816
25817 #. type: textblock
25818 #: ../resize/virt-resize.pod:454
25819 msgid ""
25820 "If you specify this flag, then this initial copy is not done.  You may need "
25821 "to reinstall the boot loader in this case."
25822 msgstr ""
25823
25824 #. type: =item
25825 #: ../resize/virt-resize.pod:457
25826 msgid "B<--no-extra-partition>"
25827 msgstr "B<--no-extra-partition>"
25828
25829 #. type: textblock
25830 #: ../resize/virt-resize.pod:459
25831 msgid ""
25832 "By default, virt-resize creates an extra partition if there is any extra, "
25833 "unused space after all resizing has happened.  Use this option to prevent "
25834 "the extra partition from being created.  If you do this then the extra space "
25835 "will be inaccessible until you run fdisk, parted, or some other partitioning "
25836 "tool in the guest."
25837 msgstr ""
25838
25839 #. type: textblock
25840 #: ../resize/virt-resize.pod:465
25841 msgid ""
25842 "Note that if the surplus space is smaller than 10 MB, no extra partition "
25843 "will be created."
25844 msgstr ""
25845
25846 #. type: =item
25847 #: ../resize/virt-resize.pod:468
25848 msgid "B<--no-expand-content>"
25849 msgstr "B<--no-expand-content>"
25850
25851 #. type: textblock
25852 #: ../resize/virt-resize.pod:470
25853 msgid ""
25854 "By default, virt-resize will try to expand the direct contents of "
25855 "partitions, if it knows how (see I<--expand> option above)."
25856 msgstr ""
25857
25858 #. type: textblock
25859 #: ../resize/virt-resize.pod:473
25860 msgid ""
25861 "If you give the I<--no-expand-content> option then virt-resize will not "
25862 "attempt this."
25863 msgstr ""
25864
25865 #. type: =item
25866 #: ../resize/virt-resize.pod:476
25867 msgid "B<--ntfsresize-force>"
25868 msgstr "B<--ntfsresize-force>"
25869
25870 #. type: textblock
25871 #: ../resize/virt-resize.pod:478
25872 msgid ""
25873 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
25874 "the NTFS disk is marked as needing a consistency check.  You have to use "
25875 "this option if you want to resize a Windows guest multiple times without "
25876 "booting into Windows between each resize."
25877 msgstr ""
25878
25879 #. type: =item
25880 #: ../resize/virt-resize.pod:484
25881 msgid "B<--output-format> raw"
25882 msgstr "B<--output-format> raw"
25883
25884 #. type: textblock
25885 #: ../resize/virt-resize.pod:486
25886 msgid ""
25887 "Specify the format of the output disk image.  If this flag is not given then "
25888 "it is auto-detected from the image itself."
25889 msgstr ""
25890
25891 #. type: textblock
25892 #: ../resize/virt-resize.pod:492
25893 msgid ""
25894 "Note that this option I<does not create> the output format.  This option "
25895 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
25896 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
25897 "SPARSE RAW FORMATS>."
25898 msgstr ""
25899
25900 #. type: textblock
25901 #: ../resize/virt-resize.pod:501
25902 msgid "Don't print the summary."
25903 msgstr ""
25904
25905 #. type: =item
25906 #: ../resize/virt-resize.pod:503
25907 msgid "B<--resize part=size>"
25908 msgstr "B<--resize розділ=розмір>"
25909
25910 #. type: textblock
25911 #: ../resize/virt-resize.pod:505
25912 msgid ""
25913 "Resize the named partition (expanding or shrinking it) so that it has the "
25914 "given size."
25915 msgstr ""
25916
25917 #. type: textblock
25918 #: ../resize/virt-resize.pod:508
25919 msgid ""
25920 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
25921 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
25922 "size; or as a relative number or percentage.  For example:"
25923 msgstr ""
25924
25925 #. type: verbatim
25926 #: ../resize/virt-resize.pod:514
25927 #, no-wrap
25928 msgid ""
25929 " --resize /dev/sda2=10G\n"
25930 "\n"
25931 msgstr ""
25932
25933 #. type: verbatim
25934 #: ../resize/virt-resize.pod:516
25935 #, no-wrap
25936 msgid ""
25937 " --resize /dev/sda4=90%\n"
25938 "\n"
25939 msgstr ""
25940
25941 #. type: verbatim
25942 #: ../resize/virt-resize.pod:518
25943 #, no-wrap
25944 msgid ""
25945 " --resize /dev/sda2=+1G\n"
25946 "\n"
25947 msgstr ""
25948
25949 #. type: verbatim
25950 #: ../resize/virt-resize.pod:520
25951 #, no-wrap
25952 msgid ""
25953 " --resize /dev/sda2=-200M\n"
25954 "\n"
25955 msgstr ""
25956
25957 #. type: verbatim
25958 #: ../resize/virt-resize.pod:522
25959 #, no-wrap
25960 msgid ""
25961 " --resize /dev/sda1=+128K\n"
25962 "\n"
25963 msgstr ""
25964
25965 #. type: verbatim
25966 #: ../resize/virt-resize.pod:524
25967 #, no-wrap
25968 msgid ""
25969 " --resize /dev/sda1=+10%\n"
25970 "\n"
25971 msgstr ""
25972
25973 #. type: verbatim
25974 #: ../resize/virt-resize.pod:526
25975 #, no-wrap
25976 msgid ""
25977 " --resize /dev/sda1=-10%\n"
25978 "\n"
25979 msgstr ""
25980
25981 #. type: textblock
25982 #: ../resize/virt-resize.pod:528
25983 msgid ""
25984 "You can increase the size of any partition.  Virt-resize will expand the "
25985 "direct content of the partition if it knows how (see I<--expand> below)."
25986 msgstr ""
25987
25988 #. type: textblock
25989 #: ../resize/virt-resize.pod:532
25990 msgid ""
25991 "You can only I<decrease> the size of partitions that contain filesystems or "
25992 "PVs which have already been shrunk.  Virt-resize will check this has been "
25993 "done before proceeding, or else will print an error (see also I<--resize-"
25994 "force>)."
25995 msgstr ""
25996
25997 #. type: =item
25998 #: ../resize/virt-resize.pod:539
25999 msgid "B<--resize-force part=size>"
26000 msgstr "B<--resize-force розділ=розмір>"
26001
26002 #. type: textblock
26003 #: ../resize/virt-resize.pod:541
26004 msgid ""
26005 "This is the same as I<--resize> except that it will let you decrease the "
26006 "size of any partition.  Generally this means you will lose any data which "
26007 "was at the end of the partition you shrink, but you may not care about that "
26008 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
26009 "as a swap partition)."
26010 msgstr ""
26011
26012 #. type: textblock
26013 #: ../resize/virt-resize.pod:547
26014 msgid "See also the I<--ignore> option."
26015 msgstr ""
26016
26017 #. type: =item
26018 #: ../resize/virt-resize.pod:549
26019 msgid "B<--shrink part>"
26020 msgstr "B<--shrink розділ>"
26021
26022 #. type: textblock
26023 #: ../resize/virt-resize.pod:551
26024 msgid ""
26025 "Shrink the named partition until the overall disk image fits in the "
26026 "destination.  The named partition B<must> contain a filesystem or PV which "
26027 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
26028 "online tools).  Virt-resize will check this and give an error if it has not "
26029 "been done."
26030 msgstr ""
26031
26032 #. type: textblock
26033 #: ../resize/virt-resize.pod:557
26034 msgid ""
26035 "The amount by which the overall disk must be shrunk (after carrying out all "
26036 "other operations requested by the user) is called the \"deficit\".  For "
26037 "example, a straight copy (assume no other operations)  from a 5GB disk image "
26038 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
26039 "would give an error unless the user specified a partition to shrink and that "
26040 "partition had more than a gigabyte of free space."
26041 msgstr ""
26042
26043 #. type: =head1
26044 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:201
26045 msgid "MACHINE READABLE OUTPUT"
26046 msgstr ""
26047
26048 #. type: textblock
26049 #: ../resize/virt-resize.pod:577
26050 msgid ""
26051 "The I<--machine-readable> option can be used to make the output more machine "
26052 "friendly, which is useful when calling virt-resize from other programs, GUIs "
26053 "etc."
26054 msgstr ""
26055
26056 #. type: textblock
26057 #: ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:207
26058 msgid "There are two ways to use this option."
26059 msgstr ""
26060
26061 #. type: textblock
26062 #: ../resize/virt-resize.pod:583
26063 msgid ""
26064 "Firstly use the option on its own to query the capabilities of the virt-"
26065 "resize binary.  Typical output looks like this:"
26066 msgstr ""
26067
26068 #. type: verbatim
26069 #: ../resize/virt-resize.pod:586
26070 #, no-wrap
26071 msgid ""
26072 " $ virt-resize --machine-readable\n"
26073 " virt-resize\n"
26074 " ntfsresize-force\n"
26075 " 32bitok\n"
26076 " ntfs\n"
26077 " btrfs\n"
26078 "\n"
26079 msgstr ""
26080
26081 #. type: textblock
26082 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:217
26083 msgid ""
26084 "A list of features is printed, one per line, and the program exits with "
26085 "status 0."
26086 msgstr ""
26087
26088 #. type: textblock
26089 #: ../resize/virt-resize.pod:596 ../sparsify/virt-sparsify.pod:220
26090 msgid ""
26091 "Secondly use the option in conjunction with other options to make the "
26092 "regular program output more machine friendly."
26093 msgstr ""
26094
26095 #. type: textblock
26096 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:223
26097 msgid "At the moment this means:"
26098 msgstr ""
26099
26100 #. type: textblock
26101 #: ../resize/virt-resize.pod:605 ../sparsify/virt-sparsify.pod:229
26102 msgid ""
26103 "Progress bar messages can be parsed from stdout by looking for this regular "
26104 "expression:"
26105 msgstr ""
26106
26107 #. type: verbatim
26108 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:232
26109 #, no-wrap
26110 msgid ""
26111 " ^[0-9]+/[0-9]+$\n"
26112 "\n"
26113 msgstr ""
26114
26115 #. type: textblock
26116 #: ../resize/virt-resize.pod:612 ../sparsify/virt-sparsify.pod:236
26117 msgid ""
26118 "The calling program should treat messages sent to stdout (except for "
26119 "progress bar messages) as status messages.  They can be logged and/or "
26120 "displayed to the user."
26121 msgstr ""
26122
26123 #. type: textblock
26124 #: ../resize/virt-resize.pod:618
26125 msgid ""
26126 "The calling program should treat messages sent to stderr as error messages.  "
26127 "In addition, virt-resize exits with a non-zero status code if there was a "
26128 "fatal error."
26129 msgstr ""
26130
26131 #. type: textblock
26132 #: ../resize/virt-resize.pod:624
26133 msgid ""
26134 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
26135 "readable> option and will return an error."
26136 msgstr ""
26137
26138 #. type: =head2
26139 #: ../resize/virt-resize.pod:629
26140 msgid "\"Partition 1 does not end on cylinder boundary.\""
26141 msgstr ""
26142
26143 #. type: textblock
26144 #: ../resize/virt-resize.pod:631
26145 msgid ""
26146 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
26147 "alignment> parameter).  Usually this means the partitions will not be "
26148 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
26149 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
26150 "drives.  Alignment of partitions to cylinders is not required by any modern "
26151 "operating system."
26152 msgstr ""
26153
26154 #. type: =head2
26155 #: ../resize/virt-resize.pod:638
26156 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
26157 msgstr ""
26158
26159 #. type: textblock
26160 #: ../resize/virt-resize.pod:640
26161 msgid ""
26162 "In Windows Vista and later versions, Microsoft switched to using a separate "
26163 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
26164 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
26165 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
26166 "the second partition (ie. C: drive)  should work."
26167 msgstr ""
26168
26169 #. type: textblock
26170 #: ../resize/virt-resize.pod:647
26171 msgid ""
26172 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
26173 "NTFS partitions have been expanded.  This is just a safety check and (unless "
26174 "it find errors) is nothing to worry about."
26175 msgstr ""
26176
26177 #. type: =head2
26178 #: ../resize/virt-resize.pod:651
26179 msgid "GUEST BOOT STUCK AT \"GRUB\""
26180 msgstr ""
26181
26182 #. type: textblock
26183 #: ../resize/virt-resize.pod:653
26184 msgid ""
26185 "If a Linux guest does not boot after resizing, and the boot is stuck after "
26186 "printing C<GRUB> on the console, try reinstalling grub."
26187 msgstr ""
26188
26189 #. type: verbatim
26190 #: ../resize/virt-resize.pod:656
26191 #, no-wrap
26192 msgid ""
26193 " guestfish -i -a newdisk\n"
26194 " ><fs> cat /boot/grub/device.map\n"
26195 " # check the contents of this file are sensible or\n"
26196 " # edit the file if necessary\n"
26197 " ><fs> grub-install / /dev/vda\n"
26198 " ><fs> exit\n"
26199 "\n"
26200 msgstr ""
26201
26202 #. type: textblock
26203 #: ../resize/virt-resize.pod:663
26204 msgid ""
26205 "For more flexible guest reconfiguration, including if you need to specify "
26206 "other parameters to grub-install, use L<virt-rescue(1)>."
26207 msgstr ""
26208
26209 #. type: =head1
26210 #: ../resize/virt-resize.pod:666
26211 msgid "ALTERNATIVE TOOLS"
26212 msgstr ""
26213
26214 #. type: textblock
26215 #: ../resize/virt-resize.pod:668
26216 msgid ""
26217 "There are several proprietary tools for resizing partitions.  We won't "
26218 "mention any here."
26219 msgstr ""
26220
26221 #. type: textblock
26222 #: ../resize/virt-resize.pod:671
26223 msgid ""
26224 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
26225 "operations on disk images.  They can resize and move partitions, but I don't "
26226 "think they can do anything with the contents, and they certainly don't "
26227 "understand LVM."
26228 msgstr ""
26229
26230 #. type: textblock
26231 #: ../resize/virt-resize.pod:676
26232 msgid ""
26233 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
26234 "but at a much lower level.  You will probably end up hand-calculating sector "
26235 "offsets, which is something that virt-resize was designed to avoid.  If you "
26236 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
26237 "I<--debug> flag."
26238 msgstr ""
26239
26240 #. type: textblock
26241 #: ../resize/virt-resize.pod:696
26242 msgid ""
26243 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
26244 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
26245 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
26246 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
26247 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
26248 msgstr ""
26249
26250 #. type: textblock
26251 #: ../ruby/examples/guestfs-ruby.pod:5
26252 msgid "guestfs-ruby - How to use libguestfs from Ruby"
26253 msgstr ""
26254
26255 #. type: verbatim
26256 #: ../ruby/examples/guestfs-ruby.pod:9
26257 #, no-wrap
26258 msgid ""
26259 " require 'guestfs'\n"
26260 " g = Guestfs::Guestfs.new()\n"
26261 " g.add_drive_opts(\"disk.img\",\n"
26262 "                  :readonly => 1, :format => \"raw\")\n"
26263 " g.launch()\n"
26264 "\n"
26265 msgstr ""
26266
26267 #. type: textblock
26268 #: ../ruby/examples/guestfs-ruby.pod:17
26269 msgid ""
26270 "This manual page documents how to call libguestfs from the Ruby programming "
26271 "language.  This page just documents the differences from the C API and gives "
26272 "some examples.  If you are not familiar with using libguestfs, you also need "
26273 "to read L<guestfs(3)>."
26274 msgstr ""
26275
26276 #. type: textblock
26277 #: ../ruby/examples/guestfs-ruby.pod:24
26278 msgid ""
26279 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
26280 "This has a single parameter which is the error message (a string)."
26281 msgstr ""
26282
26283 #. type: textblock
26284 #: ../ruby/examples/guestfs-ruby.pod:38
26285 msgid ""
26286 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
26287 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
26288 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
26289 msgstr ""
26290
26291 #. type: textblock
26292 #: ../sparsify/virt-sparsify.pod:5
26293 msgid "virt-sparsify - Make a virtual machine disk sparse"
26294 msgstr ""
26295
26296 #. type: verbatim
26297 #: ../sparsify/virt-sparsify.pod:9
26298 #, no-wrap
26299 msgid ""
26300 " virt-sparsify [--options] indisk outdisk\n"
26301 "\n"
26302 msgstr ""
26303
26304 #. type: textblock
26305 #: ../sparsify/virt-sparsify.pod:13
26306 msgid ""
26307 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
26308 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
26309 "the disk image can be converted back to free space on the host."
26310 msgstr ""
26311
26312 #. type: textblock
26313 #: ../sparsify/virt-sparsify.pod:18
26314 msgid ""
26315 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
26316 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
26317 msgstr ""
26318
26319 #. type: textblock
26320 #: ../sparsify/virt-sparsify.pod:21
26321 msgid ""
26322 "Virt-sparsify can also convert between some disk formats, for example "
26323 "converting a raw disk image to a thin-provisioned qcow2 image."
26324 msgstr ""
26325
26326 #. type: textblock
26327 #: ../sparsify/virt-sparsify.pod:24
26328 msgid ""
26329 "Virt-sparsify can operate on any disk image, not just ones from virtual "
26330 "machines.  If a virtual machine has more than one attached disk, you must "
26331 "sparsify each one separately."
26332 msgstr ""
26333
26334 #. type: =head2
26335 #: ../sparsify/virt-sparsify.pod:28
26336 msgid "IMPORTANT LIMITATIONS"
26337 msgstr ""
26338
26339 #. type: textblock
26340 #: ../sparsify/virt-sparsify.pod:34
26341 msgid ""
26342 "Virt-sparsify does not do in-place modifications.  It copies from a source "
26343 "image to a destination image, leaving the source unchanged.  I<Check that "
26344 "the sparsification was successful before deleting the source image>."
26345 msgstr ""
26346
26347 #. type: textblock
26348 #: ../sparsify/virt-sparsify.pod:41
26349 msgid "The virtual machine I<must be shut down> before using this tool."
26350 msgstr ""
26351
26352 #. type: textblock
26353 #: ../sparsify/virt-sparsify.pod:45
26354 msgid ""
26355 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
26356 "(1 temporary copy + 1 destination image).  This is in the worst case and "
26357 "usually much less space is required."
26358 msgstr ""
26359
26360 #. type: textblock
26361 #: ../sparsify/virt-sparsify.pod:51
26362 msgid ""
26363 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
26364 msgstr ""
26365
26366 #. type: textblock
26367 #: ../sparsify/virt-sparsify.pod:56
26368 msgid "Virt-sparsify cannot handle encrypted disks."
26369 msgstr ""
26370
26371 #. type: textblock
26372 #: ../sparsify/virt-sparsify.pod:60
26373 msgid ""
26374 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
26375 "this space is often used for critical items like bootloaders so it's not "
26376 "really unused."
26377 msgstr ""
26378
26379 #. type: textblock
26380 #: ../sparsify/virt-sparsify.pod:66
26381 msgid ""
26382 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
26383 "to do this unless we can be sure there is no hibernation data, so at the "
26384 "moment swap partitions are ignored."
26385 msgstr ""
26386
26387 #. type: textblock
26388 #: ../sparsify/virt-sparsify.pod:72
26389 msgid ""
26390 "You may also want to read the manual pages for the associated tools L<virt-"
26391 "filesystems(1)> and L<virt-df(1)> before starting."
26392 msgstr ""
26393
26394 #. type: textblock
26395 #: ../sparsify/virt-sparsify.pod:77
26396 msgid "Typical usage is:"
26397 msgstr ""
26398
26399 #. type: verbatim
26400 #: ../sparsify/virt-sparsify.pod:79
26401 #, no-wrap
26402 msgid ""
26403 " virt-sparsify indisk outdisk\n"
26404 "\n"
26405 msgstr ""
26406
26407 #. type: textblock
26408 #: ../sparsify/virt-sparsify.pod:81
26409 msgid ""
26410 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
26411 "is created, or overwritten if it already exists.  The format of the input "
26412 "disk is detected (eg. qcow2) and the same format is used for the output disk."
26413 msgstr ""
26414
26415 #. type: textblock
26416 #: ../sparsify/virt-sparsify.pod:86
26417 msgid "To convert between formats, use the I<--convert> option:"
26418 msgstr ""
26419
26420 #. type: verbatim
26421 #: ../sparsify/virt-sparsify.pod:88
26422 #, no-wrap
26423 msgid ""
26424 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
26425 "\n"
26426 msgstr ""
26427
26428 #. type: textblock
26429 #: ../sparsify/virt-sparsify.pod:90
26430 msgid ""
26431 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
26432 "can find within the source disk image.  You can get it to ignore (don't zero "
26433 "free space on) certain filesystems by doing:"
26434 msgstr ""
26435
26436 #. type: verbatim
26437 #: ../sparsify/virt-sparsify.pod:94
26438 #, no-wrap
26439 msgid ""
26440 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
26441 "\n"
26442 msgstr ""
26443
26444 #. type: textblock
26445 #: ../sparsify/virt-sparsify.pod:96
26446 msgid ""
26447 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
26448 msgstr ""
26449
26450 #. type: =item
26451 #: ../sparsify/virt-sparsify.pod:107
26452 #, fuzzy
26453 #| msgid "B<--parts>"
26454 msgid "B<--compress>"
26455 msgstr "B<--parts>"
26456
26457 #. type: textblock
26458 #: ../sparsify/virt-sparsify.pod:109
26459 msgid ""
26460 "Compress the output file.  This I<only> works if the output format is "
26461 "C<qcow2>."
26462 msgstr ""
26463
26464 #. type: =item
26465 #: ../sparsify/virt-sparsify.pod:112
26466 msgid "B<--convert> raw"
26467 msgstr ""
26468
26469 #. type: =item
26470 #: ../sparsify/virt-sparsify.pod:114
26471 msgid "B<--convert> qcow2"
26472 msgstr ""
26473
26474 #. type: =item
26475 #: ../sparsify/virt-sparsify.pod:116
26476 msgid "B<--convert> [other formats]"
26477 msgstr ""
26478
26479 #. type: textblock
26480 #: ../sparsify/virt-sparsify.pod:118
26481 msgid ""
26482 "Use C<output-format> as the format for the destination image.  If this is "
26483 "not specified, then the input format is used."
26484 msgstr ""
26485
26486 #. type: textblock
26487 #: ../sparsify/virt-sparsify.pod:121
26488 msgid ""
26489 "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
26490 msgstr ""
26491
26492 #. type: textblock
26493 #: ../sparsify/virt-sparsify.pod:123
26494 msgid ""
26495 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
26496 "C<vmdk>, but support for other formats is reliant on qemu."
26497 msgstr ""
26498
26499 #. type: textblock
26500 #: ../sparsify/virt-sparsify.pod:126
26501 msgid ""
26502 "Specifying the I<--convert> option is usually a good idea, because then virt-"
26503 "sparsify doesn't need to try to guess the input format."
26504 msgstr ""
26505
26506 #. type: textblock
26507 #: ../sparsify/virt-sparsify.pod:129
26508 msgid "For fine-tuning the output format, see: I<--compress>, I<-o>."
26509 msgstr ""
26510
26511 #. type: textblock
26512 #: ../sparsify/virt-sparsify.pod:133
26513 msgid ""
26514 "Debug garbage collection and memory allocation.  This is only useful when "
26515 "debugging memory problems in virt-sparsify or the OCaml libguestfs bindings."
26516 msgstr ""
26517
26518 #. type: =item
26519 #: ../sparsify/virt-sparsify.pod:139
26520 msgid "B<--format> qcow2"
26521 msgstr ""
26522
26523 #. type: =item
26524 #: ../sparsify/virt-sparsify.pod:147
26525 msgid "B<--ignore> filesystem"
26526 msgstr ""
26527
26528 #. type: =item
26529 #: ../sparsify/virt-sparsify.pod:149
26530 msgid "B<--ignore> volgroup"
26531 msgstr ""
26532
26533 #. type: textblock
26534 #: ../sparsify/virt-sparsify.pod:151
26535 msgid ""
26536 "Ignore the named filesystem.  Free space on the filesystem will not be "
26537 "zeroed, but existing blocks of zeroes will still be sparsified."
26538 msgstr ""
26539
26540 #. type: textblock
26541 #: ../sparsify/virt-sparsify.pod:154
26542 msgid ""
26543 "In the second form, this ignores the named volume group.  Use the volume "
26544 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
26545 msgstr ""
26546
26547 #. type: =item
26548 #: ../sparsify/virt-sparsify.pod:165
26549 #, fuzzy
26550 #| msgid "B<--option option>"
26551 msgid "B<-o> option[,option,...]"
26552 msgstr "B<--option параметр>"
26553
26554 #. type: textblock
26555 #: ../sparsify/virt-sparsify.pod:167
26556 msgid ""
26557 "Pass I<-o> option(s) to the L<qemu-img(1)> command to fine-tune the output "
26558 "format.  Options available depend on the output format (see I<--convert>) "
26559 "and the installed version of the qemu-img program."
26560 msgstr ""
26561
26562 #. type: textblock
26563 #: ../sparsify/virt-sparsify.pod:171
26564 msgid ""
26565 "You should use I<-o> at most once.  To pass multiple options, separate them "
26566 "with commas, eg:"
26567 msgstr ""
26568
26569 #. type: verbatim
26570 #: ../sparsify/virt-sparsify.pod:174
26571 #, no-wrap
26572 msgid ""
26573 " virt-sparsify --convert qcow2 \\\n"
26574 "   -o cluster_size=512,preallocation=metadata ...\n"
26575 "\n"
26576 msgstr ""
26577
26578 #. type: textblock
26579 #: ../sparsify/virt-sparsify.pod:181
26580 msgid "This disables progress bars and other unnecessary output."
26581 msgstr ""
26582
26583 #. type: textblock
26584 #: ../sparsify/virt-sparsify.pod:203
26585 msgid ""
26586 "The I<--machine-readable> option can be used to make the output more machine "
26587 "friendly, which is useful when calling virt-sparsify from other programs, "
26588 "GUIs etc."
26589 msgstr ""
26590
26591 #. type: textblock
26592 #: ../sparsify/virt-sparsify.pod:209
26593 msgid ""
26594 "Firstly use the option on its own to query the capabilities of the virt-"
26595 "sparsify binary.  Typical output looks like this:"
26596 msgstr ""
26597
26598 #. type: verbatim
26599 #: ../sparsify/virt-sparsify.pod:212
26600 #, no-wrap
26601 msgid ""
26602 " $ virt-sparsify --machine-readable\n"
26603 " virt-sparsify\n"
26604 " ntfs\n"
26605 " btrfs\n"
26606 "\n"
26607 msgstr ""
26608
26609 #. type: textblock
26610 #: ../sparsify/virt-sparsify.pod:242
26611 msgid ""
26612 "The calling program should treat messages sent to stderr as error messages.  "
26613 "In addition, virt-sparsify exits with a non-zero status code if there was a "
26614 "fatal error."
26615 msgstr ""
26616
26617 #. type: textblock
26618 #: ../sparsify/virt-sparsify.pod:248
26619 msgid ""
26620 "All versions of virt-sparsify have supported the I<--machine-readable> "
26621 "option."
26622 msgstr ""
26623
26624 #. type: textblock
26625 #: ../sparsify/virt-sparsify.pod:262
26626 msgid ""
26627 "Location of the temporary directory used for the potentially large temporary "
26628 "overlay file."
26629 msgstr ""
26630
26631 #. type: textblock
26632 #: ../sparsify/virt-sparsify.pod:265
26633 msgid ""
26634 "You should ensure there is enough free space in the worst case for a full "
26635 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
26636 "to another directory that has enough space."
26637 msgstr ""
26638
26639 #. type: textblock
26640 #: ../sparsify/virt-sparsify.pod:269
26641 msgid "This defaults to C</tmp>."
26642 msgstr ""
26643
26644 #. type: textblock
26645 #: ../sparsify/virt-sparsify.pod:273
26646 msgid ""
26647 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
26648 msgstr ""
26649
26650 #. type: textblock
26651 #: ../sparsify/virt-sparsify.pod:277
26652 msgid ""
26653 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
26654 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
26655 "(1)>, L<http://libguestfs.org/>."
26656 msgstr ""
26657
26658 #. type: =head2
26659 #: ../src/guestfs-actions.pod:1
26660 msgid "guestfs_add_cdrom"
26661 msgstr ""
26662
26663 #. type: verbatim
26664 #: ../src/guestfs-actions.pod:3
26665 #, no-wrap
26666 msgid ""
26667 " int\n"
26668 " guestfs_add_cdrom (guestfs_h *g,\n"
26669 "                    const char *filename);\n"
26670 "\n"
26671 msgstr ""
26672
26673 #. type: textblock
26674 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
26675 #: ../src/guestfs-actions.pod:323
26676 msgid ""
26677 "I<This function is deprecated.> In new code, use the L</"
26678 "guestfs_add_drive_opts> call instead."
26679 msgstr ""
26680
26681 #. type: textblock
26682 #: ../src/guestfs-actions.pod:24
26683 msgid ""
26684 "This call checks for the existence of C<filename>.  This stops you from "
26685 "specifying other types of drive which are supported by qemu such as C<nbd:> "
26686 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
26687 "instead."
26688 msgstr ""
26689
26690 #. type: textblock
26691 #: ../src/guestfs-actions.pod:31
26692 msgid ""
26693 "If you just want to add an ISO file (often you use this as an efficient way "
26694 "to transfer large files into the guest), then you should probably use "
26695 "C<guestfs_add_drive_ro> instead."
26696 msgstr ""
26697
26698 #. type: textblock
26699 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
26700 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
26701 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
26702 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
26703 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
26704 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
26705 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
26706 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
26707 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
26708 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
26709 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
26710 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
26711 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
26712 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
26713 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
26714 #: ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478
26715 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590
26716 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623
26717 #: ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721
26718 #: ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777
26719 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932
26720 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174
26721 #: ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283
26722 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935
26723 #: ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031
26724 #: ../src/guestfs-actions.pod:4092 ../src/guestfs-actions.pod:4107
26725 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:4334
26726 #: ../src/guestfs-actions.pod:4348 ../src/guestfs-actions.pod:4361
26727 #: ../src/guestfs-actions.pod:4375 ../src/guestfs-actions.pod:4390
26728 #: ../src/guestfs-actions.pod:4426 ../src/guestfs-actions.pod:4498
26729 #: ../src/guestfs-actions.pod:4518 ../src/guestfs-actions.pod:4535
26730 #: ../src/guestfs-actions.pod:4555 ../src/guestfs-actions.pod:4575
26731 #: ../src/guestfs-actions.pod:4610 ../src/guestfs-actions.pod:4629
26732 #: ../src/guestfs-actions.pod:4648 ../src/guestfs-actions.pod:4683
26733 #: ../src/guestfs-actions.pod:4695 ../src/guestfs-actions.pod:4728
26734 #: ../src/guestfs-actions.pod:4744 ../src/guestfs-actions.pod:4757
26735 #: ../src/guestfs-actions.pod:4772 ../src/guestfs-actions.pod:4789
26736 #: ../src/guestfs-actions.pod:4947 ../src/guestfs-actions.pod:5021
26737 #: ../src/guestfs-actions.pod:5031 ../src/guestfs-actions.pod:5051
26738 #: ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5115
26739 #: ../src/guestfs-actions.pod:5133 ../src/guestfs-actions.pod:5151
26740 #: ../src/guestfs-actions.pod:5167 ../src/guestfs-actions.pod:5181
26741 #: ../src/guestfs-actions.pod:5195 ../src/guestfs-actions.pod:5212
26742 #: ../src/guestfs-actions.pod:5227 ../src/guestfs-actions.pod:5254
26743 #: ../src/guestfs-actions.pod:5317 ../src/guestfs-actions.pod:5390
26744 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5440
26745 #: ../src/guestfs-actions.pod:5459 ../src/guestfs-actions.pod:5471
26746 #: ../src/guestfs-actions.pod:5488 ../src/guestfs-actions.pod:5501
26747 #: ../src/guestfs-actions.pod:5516 ../src/guestfs-actions.pod:5531
26748 #: ../src/guestfs-actions.pod:5563 ../src/guestfs-actions.pod:5589
26749 #: ../src/guestfs-actions.pod:5628 ../src/guestfs-actions.pod:5648
26750 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5679
26751 #: ../src/guestfs-actions.pod:5728 ../src/guestfs-actions.pod:5781
26752 #: ../src/guestfs-actions.pod:5828 ../src/guestfs-actions.pod:5871
26753 #: ../src/guestfs-actions.pod:5899 ../src/guestfs-actions.pod:5916
26754 #: ../src/guestfs-actions.pod:5934 ../src/guestfs-actions.pod:6071
26755 #: ../src/guestfs-actions.pod:6128 ../src/guestfs-actions.pod:6150
26756 #: ../src/guestfs-actions.pod:6168 ../src/guestfs-actions.pod:6220
26757 #: ../src/guestfs-actions.pod:6286 ../src/guestfs-actions.pod:6303
26758 #: ../src/guestfs-actions.pod:6316 ../src/guestfs-actions.pod:6330
26759 #: ../src/guestfs-actions.pod:6619 ../src/guestfs-actions.pod:6638
26760 #: ../src/guestfs-actions.pod:6657 ../src/guestfs-actions.pod:6671
26761 #: ../src/guestfs-actions.pod:6683 ../src/guestfs-actions.pod:6697
26762 #: ../src/guestfs-actions.pod:6709 ../src/guestfs-actions.pod:6723
26763 #: ../src/guestfs-actions.pod:6739 ../src/guestfs-actions.pod:6757
26764 #: ../src/guestfs-actions.pod:6776 ../src/guestfs-actions.pod:6795
26765 #: ../src/guestfs-actions.pod:6825 ../src/guestfs-actions.pod:6843
26766 #: ../src/guestfs-actions.pod:6866 ../src/guestfs-actions.pod:6884
26767 #: ../src/guestfs-actions.pod:6903 ../src/guestfs-actions.pod:6924
26768 #: ../src/guestfs-actions.pod:6943 ../src/guestfs-actions.pod:6960
26769 #: ../src/guestfs-actions.pod:6979 ../src/guestfs-actions.pod:7007
26770 #: ../src/guestfs-actions.pod:7031 ../src/guestfs-actions.pod:7050
26771 #: ../src/guestfs-actions.pod:7066 ../src/guestfs-actions.pod:7090
26772 #: ../src/guestfs-actions.pod:7109 ../src/guestfs-actions.pod:7124
26773 #: ../src/guestfs-actions.pod:7143 ../src/guestfs-actions.pod:7187
26774 #: ../src/guestfs-actions.pod:7214 ../src/guestfs-actions.pod:7244
26775 #: ../src/guestfs-actions.pod:7356 ../src/guestfs-actions.pod:7477
26776 #: ../src/guestfs-actions.pod:7489 ../src/guestfs-actions.pod:7502
26777 #: ../src/guestfs-actions.pod:7515 ../src/guestfs-actions.pod:7537
26778 #: ../src/guestfs-actions.pod:7550 ../src/guestfs-actions.pod:7563
26779 #: ../src/guestfs-actions.pod:7576 ../src/guestfs-actions.pod:7591
26780 #: ../src/guestfs-actions.pod:7650 ../src/guestfs-actions.pod:7667
26781 #: ../src/guestfs-actions.pod:7683 ../src/guestfs-actions.pod:7699
26782 #: ../src/guestfs-actions.pod:7716 ../src/guestfs-actions.pod:7729
26783 #: ../src/guestfs-actions.pod:7749 ../src/guestfs-actions.pod:7849
26784 #: ../src/guestfs-actions.pod:7907 ../src/guestfs-actions.pod:7921
26785 #: ../src/guestfs-actions.pod:7962 ../src/guestfs-actions.pod:7975
26786 #: ../src/guestfs-actions.pod:7993 ../src/guestfs-actions.pod:8027
26787 #: ../src/guestfs-actions.pod:8063 ../src/guestfs-actions.pod:8179
26788 #: ../src/guestfs-actions.pod:8194 ../src/guestfs-actions.pod:8208
26789 #: ../src/guestfs-actions.pod:8263 ../src/guestfs-actions.pod:8276
26790 #: ../src/guestfs-actions.pod:8321 ../src/guestfs-actions.pod:8361
26791 #: ../src/guestfs-actions.pod:8417 ../src/guestfs-actions.pod:8437
26792 #: ../src/guestfs-actions.pod:8470 ../src/guestfs-actions.pod:8534
26793 #: ../src/guestfs-actions.pod:8557 ../src/guestfs-actions.pod:8583
26794 msgid "This function returns 0 on success or -1 on error."
26795 msgstr ""
26796
26797 #. type: textblock
26798 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
26799 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397
26800 #: ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620
26801 #: ../src/guestfs-actions.pod:4094 ../src/guestfs-actions.pod:4114
26802 #: ../src/guestfs-actions.pod:5565 ../src/guestfs-actions.pod:6845
26803 #: ../src/guestfs-actions.pod:6962 ../src/guestfs-actions.pod:7111
26804 #: ../src/guestfs-actions.pod:7593 ../src/guestfs-actions.pod:7718
26805 #: ../src/guestfs-actions.pod:8363
26806 msgid "(Added in 0.3)"
26807 msgstr "(Додано у 0.3)"
26808
26809 #. type: =head2
26810 #: ../src/guestfs-actions.pod:41
26811 msgid "guestfs_add_domain"
26812 msgstr ""
26813
26814 #. type: verbatim
26815 #: ../src/guestfs-actions.pod:43
26816 #, no-wrap
26817 msgid ""
26818 " int\n"
26819 " guestfs_add_domain (guestfs_h *g,\n"
26820 "                     const char *dom,\n"
26821 "                     ...);\n"
26822 "\n"
26823 msgstr ""
26824
26825 #. type: textblock
26826 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
26827 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
26828 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
26829 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
26830 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288
26831 #: ../src/guestfs-actions.pod:4882 ../src/guestfs-actions.pod:5266
26832 #: ../src/guestfs-actions.pod:5575 ../src/guestfs-actions.pod:5792
26833 #: ../src/guestfs-actions.pod:7760
26834 msgid ""
26835 "You may supply a list of optional arguments to this call.  Use zero or more "
26836 "of the following pairs of parameters, and terminate the list with C<-1> on "
26837 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
26838 msgstr ""
26839
26840 #. type: verbatim
26841 #: ../src/guestfs-actions.pod:53
26842 #, no-wrap
26843 msgid ""
26844 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
26845 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
26846 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
26847 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
26848 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
26849 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
26850 "\n"
26851 msgstr ""
26852
26853 #. type: textblock
26854 #: ../src/guestfs-actions.pod:60
26855 msgid ""
26856 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
26857 "It works by connecting to libvirt, requesting the domain and domain XML from "
26858 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
26859 "one."
26860 msgstr ""
26861
26862 #. type: textblock
26863 #: ../src/guestfs-actions.pod:141
26864 msgid ""
26865 "The other optional parameters are passed directly through to "
26866 "C<guestfs_add_drive_opts>."
26867 msgstr ""
26868
26869 #. type: textblock
26870 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
26871 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
26872 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
26873 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797
26874 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356
26875 #: ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518
26876 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584
26877 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922
26878 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
26879 #: ../src/guestfs-actions.pod:5751 ../src/guestfs-actions.pod:5968
26880 #: ../src/guestfs-actions.pod:6206 ../src/guestfs-actions.pod:6400
26881 #: ../src/guestfs-actions.pod:6426 ../src/guestfs-actions.pod:7948
26882 #: ../src/guestfs-actions.pod:8374 ../src/guestfs-actions.pod:8387
26883 #: ../src/guestfs-actions.pod:8400
26884 msgid "On error this function returns -1."
26885 msgstr ""
26886
26887 #. type: textblock
26888 #: ../src/guestfs-actions.pod:146
26889 msgid "(Added in 1.7.4)"
26890 msgstr "(Додано у 1.7.4)"
26891
26892 #. type: =head2
26893 #: ../src/guestfs-actions.pod:148
26894 msgid "guestfs_add_domain_va"
26895 msgstr ""
26896
26897 #. type: verbatim
26898 #: ../src/guestfs-actions.pod:150
26899 #, no-wrap
26900 msgid ""
26901 " int\n"
26902 " guestfs_add_domain_va (guestfs_h *g,\n"
26903 "                        const char *dom,\n"
26904 "                        va_list args);\n"
26905 "\n"
26906 msgstr ""
26907
26908 #. type: textblock
26909 #: ../src/guestfs-actions.pod:155
26910 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
26911 msgstr ""
26912
26913 #. type: textblock
26914 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
26915 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
26916 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
26917 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
26918 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
26919 #: ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403
26920 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
26921 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509
26922 #: ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567
26923 #: ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384
26924 #: ../src/guestfs-actions.pod:4959 ../src/guestfs-actions.pod:4971
26925 #: ../src/guestfs-actions.pod:5331 ../src/guestfs-actions.pod:5343
26926 #: ../src/guestfs-actions.pod:5603 ../src/guestfs-actions.pod:5615
26927 #: ../src/guestfs-actions.pod:5841 ../src/guestfs-actions.pod:5852
26928 #: ../src/guestfs-actions.pod:7862 ../src/guestfs-actions.pod:7873
26929 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
26930 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
26931
26932 #. type: =head2
26933 #: ../src/guestfs-actions.pod:159
26934 msgid "guestfs_add_domain_argv"
26935 msgstr "guestfs_add_domain_argv"
26936
26937 #. type: verbatim
26938 #: ../src/guestfs-actions.pod:161
26939 #, no-wrap
26940 msgid ""
26941 " int\n"
26942 " guestfs_add_domain_argv (guestfs_h *g,\n"
26943 "                          const char *dom,\n"
26944 "                          const struct guestfs_add_domain_argv *optargs);\n"
26945 "\n"
26946 msgstr ""
26947
26948 #. type: textblock
26949 #: ../src/guestfs-actions.pod:166
26950 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
26951 msgstr ""
26952
26953 #. type: =head2
26954 #: ../src/guestfs-actions.pod:170
26955 msgid "guestfs_add_drive"
26956 msgstr ""
26957
26958 #. type: verbatim
26959 #: ../src/guestfs-actions.pod:172
26960 #, no-wrap
26961 msgid ""
26962 " int\n"
26963 " guestfs_add_drive (guestfs_h *g,\n"
26964 "                    const char *filename);\n"
26965 "\n"
26966 msgstr ""
26967
26968 #. type: textblock
26969 #: ../src/guestfs-actions.pod:176
26970 msgid ""
26971 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
26972 "optional parameters, so the disk is added writable, with the format being "
26973 "detected automatically."
26974 msgstr ""
26975
26976 #. type: textblock
26977 #: ../src/guestfs-actions.pod:180
26978 msgid ""
26979 "Automatic detection of the format opens you up to a potential security hole "
26980 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
26981 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
26982 "you should think about replacing calls to this function with calls to "
26983 "C<guestfs_add_drive_opts>, and specifying the format."
26984 msgstr ""
26985
26986 #. type: =head2
26987 #: ../src/guestfs-actions.pod:191
26988 msgid "guestfs_add_drive_opts"
26989 msgstr ""
26990
26991 #. type: verbatim
26992 #: ../src/guestfs-actions.pod:193
26993 #, no-wrap
26994 msgid ""
26995 " int\n"
26996 " guestfs_add_drive_opts (guestfs_h *g,\n"
26997 "                         const char *filename,\n"
26998 "                         ...);\n"
26999 "\n"
27000 msgstr ""
27001
27002 #. type: verbatim
27003 #: ../src/guestfs-actions.pod:203
27004 #, no-wrap
27005 msgid ""
27006 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
27007 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
27008 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
27009 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
27010 "\n"
27011 msgstr ""
27012
27013 #. type: textblock
27014 #: ../src/guestfs-actions.pod:233
27015 msgid ""
27016 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
27017 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
27018 "Possible formats include C<raw> and C<qcow2>."
27019 msgstr ""
27020
27021 #. type: textblock
27022 #: ../src/guestfs-actions.pod:244
27023 msgid ""
27024 "This rarely-used option lets you emulate the behaviour of the deprecated "
27025 "C<guestfs_add_drive_with_if> call (q.v.)"
27026 msgstr ""
27027
27028 #. type: textblock
27029 #: ../src/guestfs-actions.pod:256
27030 msgid "(Added in 1.5.23)"
27031 msgstr "(Додано у 1.5.23)"
27032
27033 #. type: =head2
27034 #: ../src/guestfs-actions.pod:258
27035 msgid "guestfs_add_drive_opts_va"
27036 msgstr ""
27037
27038 #. type: verbatim
27039 #: ../src/guestfs-actions.pod:260
27040 #, no-wrap
27041 msgid ""
27042 " int\n"
27043 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
27044 "                            const char *filename,\n"
27045 "                            va_list args);\n"
27046 "\n"
27047 msgstr ""
27048
27049 #. type: textblock
27050 #: ../src/guestfs-actions.pod:265
27051 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
27052 msgstr ""
27053
27054 #. type: =head2
27055 #: ../src/guestfs-actions.pod:269
27056 msgid "guestfs_add_drive_opts_argv"
27057 msgstr ""
27058
27059 #. type: verbatim
27060 #: ../src/guestfs-actions.pod:271
27061 #, no-wrap
27062 msgid ""
27063 " int\n"
27064 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
27065 "                              const char *filename,\n"
27066 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
27067 "\n"
27068 msgstr ""
27069
27070 #. type: textblock
27071 #: ../src/guestfs-actions.pod:276
27072 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
27073 msgstr ""
27074
27075 #. type: =head2
27076 #: ../src/guestfs-actions.pod:280
27077 msgid "guestfs_add_drive_ro"
27078 msgstr ""
27079
27080 #. type: verbatim
27081 #: ../src/guestfs-actions.pod:282
27082 #, no-wrap
27083 msgid ""
27084 " int\n"
27085 " guestfs_add_drive_ro (guestfs_h *g,\n"
27086 "                       const char *filename);\n"
27087 "\n"
27088 msgstr ""
27089
27090 #. type: textblock
27091 #: ../src/guestfs-actions.pod:286
27092 msgid ""
27093 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
27094 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
27095 "disk is added read-only, with the format being detected automatically."
27096 msgstr ""
27097
27098 #. type: textblock
27099 #: ../src/guestfs-actions.pod:293
27100 msgid "(Added in 1.0.38)"
27101 msgstr "(Додано у 1.0.38)"
27102
27103 #. type: =head2
27104 #: ../src/guestfs-actions.pod:295
27105 msgid "guestfs_add_drive_ro_with_if"
27106 msgstr ""
27107
27108 #. type: verbatim
27109 #: ../src/guestfs-actions.pod:297
27110 #, no-wrap
27111 msgid ""
27112 " int\n"
27113 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
27114 "                               const char *filename,\n"
27115 "                               const char *iface);\n"
27116 "\n"
27117 msgstr ""
27118
27119 #. type: textblock
27120 #: ../src/guestfs-actions.pod:309
27121 msgid ""
27122 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
27123 "QEMU interface emulation to use at run time."
27124 msgstr ""
27125
27126 #. type: textblock
27127 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
27128 #: ../src/guestfs-actions.pod:2881
27129 msgid "(Added in 1.0.84)"
27130 msgstr "(Додано у 1.0.84)"
27131
27132 #. type: =head2
27133 #: ../src/guestfs-actions.pod:316
27134 msgid "guestfs_add_drive_with_if"
27135 msgstr ""
27136
27137 #. type: verbatim
27138 #: ../src/guestfs-actions.pod:318
27139 #, no-wrap
27140 msgid ""
27141 " int\n"
27142 " guestfs_add_drive_with_if (guestfs_h *g,\n"
27143 "                            const char *filename,\n"
27144 "                            const char *iface);\n"
27145 "\n"
27146 msgstr ""
27147
27148 #. type: textblock
27149 #: ../src/guestfs-actions.pod:330
27150 msgid ""
27151 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
27152 "QEMU interface emulation to use at run time."
27153 msgstr ""
27154
27155 #. type: =head2
27156 #: ../src/guestfs-actions.pod:337
27157 msgid "guestfs_aug_clear"
27158 msgstr ""
27159
27160 #. type: verbatim
27161 #: ../src/guestfs-actions.pod:339
27162 #, no-wrap
27163 msgid ""
27164 " int\n"
27165 " guestfs_aug_clear (guestfs_h *g,\n"
27166 "                    const char *augpath);\n"
27167 "\n"
27168 msgstr ""
27169
27170 #. type: textblock
27171 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
27172 msgid "(Added in 1.3.4)"
27173 msgstr "(Додано у 1.3.4)"
27174
27175 #. type: =head2
27176 #: ../src/guestfs-actions.pod:350
27177 msgid "guestfs_aug_close"
27178 msgstr ""
27179
27180 #. type: verbatim
27181 #: ../src/guestfs-actions.pod:352
27182 #, no-wrap
27183 msgid ""
27184 " int\n"
27185 " guestfs_aug_close (guestfs_h *g);\n"
27186 "\n"
27187 msgstr ""
27188
27189 #. type: textblock
27190 #: ../src/guestfs-actions.pod:355
27191 msgid ""
27192 "Close the current Augeas handle and free up any resources used by it.  After "
27193 "calling this, you have to call C<guestfs_aug_init> again before you can use "
27194 "any other Augeas functions."
27195 msgstr ""
27196
27197 #. type: textblock
27198 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
27199 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
27200 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
27201 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
27202 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
27203 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
27204 #: ../src/guestfs-actions.pod:6477
27205 msgid "(Added in 0.7)"
27206 msgstr "(Додано у 0.7)"
27207
27208 #. type: =head2
27209 #: ../src/guestfs-actions.pod:364
27210 msgid "guestfs_aug_defnode"
27211 msgstr ""
27212
27213 #. type: verbatim
27214 #: ../src/guestfs-actions.pod:366
27215 #, no-wrap
27216 msgid ""
27217 " struct guestfs_int_bool *\n"
27218 " guestfs_aug_defnode (guestfs_h *g,\n"
27219 "                      const char *name,\n"
27220 "                      const char *expr,\n"
27221 "                      const char *val);\n"
27222 "\n"
27223 msgstr ""
27224
27225 #. type: textblock
27226 #: ../src/guestfs-actions.pod:375
27227 msgid ""
27228 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
27229 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
27230 "containing that single node."
27231 msgstr ""
27232
27233 #. type: textblock
27234 #: ../src/guestfs-actions.pod:383
27235 msgid ""
27236 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
27237 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
27238 msgstr ""
27239
27240 #. type: =head2
27241 #: ../src/guestfs-actions.pod:389
27242 msgid "guestfs_aug_defvar"
27243 msgstr ""
27244
27245 #. type: verbatim
27246 #: ../src/guestfs-actions.pod:391
27247 #, no-wrap
27248 msgid ""
27249 " int\n"
27250 " guestfs_aug_defvar (guestfs_h *g,\n"
27251 "                     const char *name,\n"
27252 "                     const char *expr);\n"
27253 "\n"
27254 msgstr ""
27255
27256 #. type: =head2
27257 #: ../src/guestfs-actions.pod:407
27258 msgid "guestfs_aug_get"
27259 msgstr "guestfs_aug_get"
27260
27261 #. type: verbatim
27262 #: ../src/guestfs-actions.pod:409
27263 #, no-wrap
27264 msgid ""
27265 " char *\n"
27266 " guestfs_aug_get (guestfs_h *g,\n"
27267 "                  const char *augpath);\n"
27268 "\n"
27269 msgstr ""
27270 " char *\n"
27271 " guestfs_aug_get (guestfs_h *g,\n"
27272 "                  const char *augpath);\n"
27273 "\n"
27274
27275 #. type: textblock
27276 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
27277 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
27278 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
27279 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683
27280 #: ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836
27281 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136
27282 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316
27283 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426
27284 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632
27285 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050
27286 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256
27287 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490
27288 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539
27289 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3640
27290 #: ../src/guestfs-actions.pod:3660 ../src/guestfs-actions.pod:3680
27291 #: ../src/guestfs-actions.pod:4320 ../src/guestfs-actions.pod:4667
27292 #: ../src/guestfs-actions.pod:4834 ../src/guestfs-actions.pod:5093
27293 #: ../src/guestfs-actions.pod:5986 ../src/guestfs-actions.pod:6187
27294 #: ../src/guestfs-actions.pod:6375 ../src/guestfs-actions.pod:6553
27295 #: ../src/guestfs-actions.pod:6602 ../src/guestfs-actions.pod:7262
27296 #: ../src/guestfs-actions.pod:7278 ../src/guestfs-actions.pod:7302
27297 #: ../src/guestfs-actions.pod:7326 ../src/guestfs-actions.pod:8122
27298 #: ../src/guestfs-actions.pod:8141 ../src/guestfs-actions.pod:8159
27299 #: ../src/guestfs-actions.pod:8333 ../src/guestfs-actions.pod:8647
27300 msgid ""
27301 "This function returns a string, or NULL on error.  I<The caller must free "
27302 "the returned string after use>."
27303 msgstr ""
27304
27305 #. type: =head2
27306 #: ../src/guestfs-actions.pod:421
27307 msgid "guestfs_aug_init"
27308 msgstr "guestfs_aug_init"
27309
27310 #. type: verbatim
27311 #: ../src/guestfs-actions.pod:423
27312 #, no-wrap
27313 msgid ""
27314 " int\n"
27315 " guestfs_aug_init (guestfs_h *g,\n"
27316 "                   const char *root,\n"
27317 "                   int flags);\n"
27318 "\n"
27319 msgstr ""
27320 " int\n"
27321 " guestfs_aug_init (guestfs_h *g,\n"
27322 "                   const char *root,\n"
27323 "                   int flags);\n"
27324 "\n"
27325
27326 #. type: textblock
27327 #: ../src/guestfs-actions.pod:432
27328 msgid "You must call this before using any other C<guestfs_aug_*> commands."
27329 msgstr ""
27330
27331 #. type: textblock
27332 #: ../src/guestfs-actions.pod:457
27333 msgid ""
27334 "This option is only useful when debugging Augeas lenses.  Use of this option "
27335 "may require additional memory for the libguestfs appliance.  You may need to "
27336 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
27337 "C<guestfs_set_memsize>."
27338 msgstr ""
27339
27340 #. type: textblock
27341 #: ../src/guestfs-actions.pod:472
27342 msgid "Do not load the tree in C<guestfs_aug_init>."
27343 msgstr ""
27344
27345 #. type: textblock
27346 #: ../src/guestfs-actions.pod:476
27347 msgid "To close the handle, you can call C<guestfs_aug_close>."
27348 msgstr ""
27349
27350 #. type: =head2
27351 #: ../src/guestfs-actions.pod:484
27352 msgid "guestfs_aug_insert"
27353 msgstr "guestfs_aug_insert"
27354
27355 #. type: verbatim
27356 #: ../src/guestfs-actions.pod:486
27357 #, no-wrap
27358 msgid ""
27359 " int\n"
27360 " guestfs_aug_insert (guestfs_h *g,\n"
27361 "                     const char *augpath,\n"
27362 "                     const char *label,\n"
27363 "                     int before);\n"
27364 "\n"
27365 msgstr ""
27366 " int\n"
27367 " guestfs_aug_insert (guestfs_h *g,\n"
27368 "                     const char *augpath,\n"
27369 "                     const char *label,\n"
27370 "                     int before);\n"
27371 "\n"
27372
27373 #. type: =head2
27374 #: ../src/guestfs-actions.pod:504
27375 msgid "guestfs_aug_load"
27376 msgstr "guestfs_aug_load"
27377
27378 #. type: verbatim
27379 #: ../src/guestfs-actions.pod:506
27380 #, no-wrap
27381 msgid ""
27382 " int\n"
27383 " guestfs_aug_load (guestfs_h *g);\n"
27384 "\n"
27385 msgstr ""
27386 " int\n"
27387 " guestfs_aug_load (guestfs_h *g);\n"
27388 "\n"
27389
27390 #. type: =head2
27391 #: ../src/guestfs-actions.pod:518
27392 msgid "guestfs_aug_ls"
27393 msgstr "guestfs_aug_ls"
27394
27395 #. type: verbatim
27396 #: ../src/guestfs-actions.pod:520
27397 #, no-wrap
27398 msgid ""
27399 " char **\n"
27400 " guestfs_aug_ls (guestfs_h *g,\n"
27401 "                 const char *augpath);\n"
27402 "\n"
27403 msgstr ""
27404 " char **\n"
27405 " guestfs_aug_ls (guestfs_h *g,\n"
27406 "                 const char *augpath);\n"
27407 "\n"
27408
27409 #. type: textblock
27410 #: ../src/guestfs-actions.pod:524
27411 msgid ""
27412 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
27413 "sorting the resulting nodes into alphabetical order."
27414 msgstr ""
27415
27416 #. type: textblock
27417 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
27418 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
27419 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870
27420 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992
27421 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704
27422 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739
27423 #: ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828
27424 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948
27425 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592
27426 #: ../src/guestfs-actions.pod:3876 ../src/guestfs-actions.pod:4190
27427 #: ../src/guestfs-actions.pod:4207 ../src/guestfs-actions.pod:4227
27428 #: ../src/guestfs-actions.pod:4282 ../src/guestfs-actions.pod:4302
27429 #: ../src/guestfs-actions.pod:4407 ../src/guestfs-actions.pod:4806
27430 #: ../src/guestfs-actions.pod:5712 ../src/guestfs-actions.pod:6347
27431 #: ../src/guestfs-actions.pod:6473 ../src/guestfs-actions.pod:6587
27432 #: ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7403
27433 #: ../src/guestfs-actions.pod:7458 ../src/guestfs-actions.pod:7604
27434 #: ../src/guestfs-actions.pod:7628 ../src/guestfs-actions.pod:8226
27435 #: ../src/guestfs-actions.pod:8246 ../src/guestfs-actions.pod:8293
27436 #: ../src/guestfs-actions.pod:8487 ../src/guestfs-actions.pod:8506
27437 #: ../src/guestfs-actions.pod:8597 ../src/guestfs-actions.pod:8616
27438 #: ../src/guestfs-actions.pod:8662 ../src/guestfs-actions.pod:8681
27439 msgid ""
27440 "This function returns a NULL-terminated array of strings (like L<environ(3)"
27441 ">), or NULL if there was an error.  I<The caller must free the strings and "
27442 "the array after use>."
27443 msgstr ""
27444
27445 #. type: textblock
27446 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
27447 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908
27448 #: ../src/guestfs-actions.pod:3954 ../src/guestfs-actions.pod:3985
27449 #: ../src/guestfs-actions.pod:4650 ../src/guestfs-actions.pod:4697
27450 #: ../src/guestfs-actions.pod:5033 ../src/guestfs-actions.pod:5066
27451 #: ../src/guestfs-actions.pod:5229 ../src/guestfs-actions.pod:5716
27452 #: ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:6685
27453 #: ../src/guestfs-actions.pod:6699 ../src/guestfs-actions.pod:6711
27454 #: ../src/guestfs-actions.pod:7189 ../src/guestfs-actions.pod:7964
27455 #: ../src/guestfs-actions.pod:7977 ../src/guestfs-actions.pod:8210
27456 #: ../src/guestfs-actions.pod:8475
27457 msgid "(Added in 0.8)"
27458 msgstr "(Додано у 0.8)"
27459
27460 #. type: =head2
27461 #: ../src/guestfs-actions.pod:533
27462 msgid "guestfs_aug_match"
27463 msgstr "guestfs_aug_match"
27464
27465 #. type: verbatim
27466 #: ../src/guestfs-actions.pod:535
27467 #, no-wrap
27468 msgid ""
27469 " char **\n"
27470 " guestfs_aug_match (guestfs_h *g,\n"
27471 "                    const char *augpath);\n"
27472 "\n"
27473 msgstr ""
27474 " char **\n"
27475 " guestfs_aug_match (guestfs_h *g,\n"
27476 "                    const char *augpath);\n"
27477 "\n"
27478
27479 #. type: =head2
27480 #: ../src/guestfs-actions.pod:549
27481 msgid "guestfs_aug_mv"
27482 msgstr "guestfs_aug_mv"
27483
27484 #. type: verbatim
27485 #: ../src/guestfs-actions.pod:551
27486 #, no-wrap
27487 msgid ""
27488 " int\n"
27489 " guestfs_aug_mv (guestfs_h *g,\n"
27490 "                 const char *src,\n"
27491 "                 const char *dest);\n"
27492 "\n"
27493 msgstr ""
27494 " int\n"
27495 " guestfs_aug_mv (guestfs_h *g,\n"
27496 "                 const char *src,\n"
27497 "                 const char *dest);\n"
27498 "\n"
27499
27500 #. type: =head2
27501 #: ../src/guestfs-actions.pod:563
27502 msgid "guestfs_aug_rm"
27503 msgstr "guestfs_aug_rm"
27504
27505 #. type: verbatim
27506 #: ../src/guestfs-actions.pod:565
27507 #, no-wrap
27508 msgid ""
27509 " int\n"
27510 " guestfs_aug_rm (guestfs_h *g,\n"
27511 "                 const char *augpath);\n"
27512 "\n"
27513 msgstr ""
27514 " int\n"
27515 " guestfs_aug_rm (guestfs_h *g,\n"
27516 "                 const char *augpath);\n"
27517 "\n"
27518
27519 #. type: =head2
27520 #: ../src/guestfs-actions.pod:577
27521 msgid "guestfs_aug_save"
27522 msgstr "guestfs_aug_save"
27523
27524 #. type: verbatim
27525 #: ../src/guestfs-actions.pod:579
27526 #, no-wrap
27527 msgid ""
27528 " int\n"
27529 " guestfs_aug_save (guestfs_h *g);\n"
27530 "\n"
27531 msgstr ""
27532 " int\n"
27533 " guestfs_aug_save (guestfs_h *g);\n"
27534 "\n"
27535
27536 #. type: textblock
27537 #: ../src/guestfs-actions.pod:584
27538 msgid ""
27539 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
27540 "are saved."
27541 msgstr ""
27542
27543 #. type: =head2
27544 #: ../src/guestfs-actions.pod:591
27545 msgid "guestfs_aug_set"
27546 msgstr "guestfs_aug_set"
27547
27548 #. type: verbatim
27549 #: ../src/guestfs-actions.pod:593
27550 #, no-wrap
27551 msgid ""
27552 " int\n"
27553 " guestfs_aug_set (guestfs_h *g,\n"
27554 "                  const char *augpath,\n"
27555 "                  const char *val);\n"
27556 "\n"
27557 msgstr ""
27558 " int\n"
27559 " guestfs_aug_set (guestfs_h *g,\n"
27560 "                  const char *augpath,\n"
27561 "                  const char *val);\n"
27562 "\n"
27563
27564 #. type: textblock
27565 #: ../src/guestfs-actions.pod:600
27566 msgid ""
27567 "In the Augeas API, it is possible to clear a node by setting the value to "
27568 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
27569 "this call.  Instead you must use the C<guestfs_aug_clear> call."
27570 msgstr ""
27571
27572 #. type: =head2
27573 #: ../src/guestfs-actions.pod:609
27574 msgid "guestfs_available"
27575 msgstr "guestfs_available"
27576
27577 #. type: verbatim
27578 #: ../src/guestfs-actions.pod:611
27579 #, no-wrap
27580 msgid ""
27581 " int\n"
27582 " guestfs_available (guestfs_h *g,\n"
27583 "                    char *const *groups);\n"
27584 "\n"
27585 msgstr ""
27586 " int\n"
27587 " guestfs_available (guestfs_h *g,\n"
27588 "                    char *const *groups);\n"
27589 "\n"
27590
27591 #. type: textblock
27592 #: ../src/guestfs-actions.pod:619
27593 msgid ""
27594 "The libguestfs groups, and the functions that those groups correspond to, "
27595 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
27596 "runtime by calling C<guestfs_available_all_groups>."
27597 msgstr ""
27598
27599 #. type: textblock
27600 #: ../src/guestfs-actions.pod:643
27601 msgid "You must call C<guestfs_launch> before calling this function."
27602 msgstr ""
27603
27604 #. type: textblock
27605 #: ../src/guestfs-actions.pod:665
27606 msgid ""
27607 "This call was added in version C<1.0.80>.  In previous versions of "
27608 "libguestfs all you could do would be to speculatively execute a command to "
27609 "find out if the daemon implemented it.  See also C<guestfs_version>."
27610 msgstr ""
27611
27612 #. type: textblock
27613 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
27614 msgid "(Added in 1.0.80)"
27615 msgstr "(Додано у 1.0.80)"
27616
27617 #. type: =head2
27618 #: ../src/guestfs-actions.pod:676
27619 msgid "guestfs_available_all_groups"
27620 msgstr "guestfs_available_all_groups"
27621
27622 #. type: verbatim
27623 #: ../src/guestfs-actions.pod:678
27624 #, no-wrap
27625 msgid ""
27626 " char **\n"
27627 " guestfs_available_all_groups (guestfs_h *g);\n"
27628 "\n"
27629 msgstr ""
27630 " char **\n"
27631 " guestfs_available_all_groups (guestfs_h *g);\n"
27632 "\n"
27633
27634 #. type: textblock
27635 #: ../src/guestfs-actions.pod:681
27636 msgid ""
27637 "This command returns a list of all optional groups that this daemon knows "
27638 "about.  Note this returns both supported and unsupported groups.  To find "
27639 "out which ones the daemon can actually support you have to call "
27640 "C<guestfs_available> on each member of the returned list."
27641 msgstr ""
27642
27643 #. type: textblock
27644 #: ../src/guestfs-actions.pod:687
27645 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
27646 msgstr ""
27647
27648 #. type: textblock
27649 #: ../src/guestfs-actions.pod:693
27650 msgid "(Added in 1.3.15)"
27651 msgstr "(Додано у 1.3.15)"
27652
27653 #. type: =head2
27654 #: ../src/guestfs-actions.pod:695
27655 msgid "guestfs_base64_in"
27656 msgstr "guestfs_base64_in"
27657
27658 #. type: verbatim
27659 #: ../src/guestfs-actions.pod:697
27660 #, no-wrap
27661 msgid ""
27662 " int\n"
27663 " guestfs_base64_in (guestfs_h *g,\n"
27664 "                    const char *base64file,\n"
27665 "                    const char *filename);\n"
27666 "\n"
27667 msgstr ""
27668 " int\n"
27669 " guestfs_base64_in (guestfs_h *g,\n"
27670 "                    const char *base64file,\n"
27671 "                    const char *filename);\n"
27672 "\n"
27673
27674 #. type: textblock
27675 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
27676 msgid "(Added in 1.3.5)"
27677 msgstr "(Додано у 1.3.5)"
27678
27679 #. type: =head2
27680 #: ../src/guestfs-actions.pod:709
27681 msgid "guestfs_base64_out"
27682 msgstr "guestfs_base64_out"
27683
27684 #. type: verbatim
27685 #: ../src/guestfs-actions.pod:711
27686 #, no-wrap
27687 msgid ""
27688 " int\n"
27689 " guestfs_base64_out (guestfs_h *g,\n"
27690 "                     const char *filename,\n"
27691 "                     const char *base64file);\n"
27692 "\n"
27693 msgstr ""
27694 " int\n"
27695 " guestfs_base64_out (guestfs_h *g,\n"
27696 "                     const char *filename,\n"
27697 "                     const char *base64file);\n"
27698 "\n"
27699
27700 #. type: =head2
27701 #: ../src/guestfs-actions.pod:723
27702 msgid "guestfs_blockdev_flushbufs"
27703 msgstr "guestfs_blockdev_flushbufs"
27704
27705 #. type: verbatim
27706 #: ../src/guestfs-actions.pod:725
27707 #, no-wrap
27708 msgid ""
27709 " int\n"
27710 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
27711 "                             const char *device);\n"
27712 "\n"
27713 msgstr ""
27714 " int\n"
27715 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
27716 "                             const char *device);\n"
27717 "\n"
27718
27719 #. type: textblock
27720 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
27721 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
27722 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
27723 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
27724 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
27725 msgid "(Added in 0.9.3)"
27726 msgstr "(Додано у 0.9.3)"
27727
27728 #. type: =head2
27729 #: ../src/guestfs-actions.pod:738
27730 msgid "guestfs_blockdev_getbsz"
27731 msgstr "guestfs_blockdev_getbsz"
27732
27733 #. type: verbatim
27734 #: ../src/guestfs-actions.pod:740
27735 #, no-wrap
27736 msgid ""
27737 " int\n"
27738 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27739 "                          const char *device);\n"
27740 "\n"
27741 msgstr ""
27742 " int\n"
27743 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27744 "                          const char *device);\n"
27745 "\n"
27746
27747 #. type: =head2
27748 #: ../src/guestfs-actions.pod:755
27749 msgid "guestfs_blockdev_getro"
27750 msgstr "guestfs_blockdev_getro"
27751
27752 #. type: verbatim
27753 #: ../src/guestfs-actions.pod:757
27754 #, no-wrap
27755 msgid ""
27756 " int\n"
27757 " guestfs_blockdev_getro (guestfs_h *g,\n"
27758 "                         const char *device);\n"
27759 "\n"
27760 msgstr ""
27761 " int\n"
27762 " guestfs_blockdev_getro (guestfs_h *g,\n"
27763 "                         const char *device);\n"
27764 "\n"
27765
27766 #. type: textblock
27767 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891
27768 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395
27769 #: ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478
27770 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544
27771 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595
27772 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3697
27773 #: ../src/guestfs-actions.pod:3713 ../src/guestfs-actions.pod:3731
27774 #: ../src/guestfs-actions.pod:3893 ../src/guestfs-actions.pod:3907
27775 #: ../src/guestfs-actions.pod:3922 ../src/guestfs-actions.pod:3936
27776 #: ../src/guestfs-actions.pod:3952 ../src/guestfs-actions.pod:3967
27777 #: ../src/guestfs-actions.pod:3983 ../src/guestfs-actions.pod:3997
27778 #: ../src/guestfs-actions.pod:4010 ../src/guestfs-actions.pod:4024
27779 #: ../src/guestfs-actions.pod:4039 ../src/guestfs-actions.pod:4054
27780 #: ../src/guestfs-actions.pod:4067 ../src/guestfs-actions.pod:4081
27781 #: ../src/guestfs-actions.pod:5950
27782 msgid "This function returns a C truth value on success or -1 on error."
27783 msgstr ""
27784
27785 #. type: =head2
27786 #: ../src/guestfs-actions.pod:770
27787 msgid "guestfs_blockdev_getsize64"
27788 msgstr "guestfs_blockdev_getsize64"
27789
27790 #. type: verbatim
27791 #: ../src/guestfs-actions.pod:772
27792 #, no-wrap
27793 msgid ""
27794 " int64_t\n"
27795 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
27796 "                             const char *device);\n"
27797 "\n"
27798 msgstr ""
27799 " int64_t\n"
27800 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
27801 "                             const char *device);\n"
27802 "\n"
27803
27804 #. type: textblock
27805 #: ../src/guestfs-actions.pod:778
27806 msgid "See also C<guestfs_blockdev_getsz>."
27807 msgstr ""
27808
27809 #. type: =head2
27810 #: ../src/guestfs-actions.pod:786
27811 msgid "guestfs_blockdev_getss"
27812 msgstr "guestfs_blockdev_getss"
27813
27814 #. type: verbatim
27815 #: ../src/guestfs-actions.pod:788
27816 #, no-wrap
27817 msgid ""
27818 " int\n"
27819 " guestfs_blockdev_getss (guestfs_h *g,\n"
27820 "                         const char *device);\n"
27821 "\n"
27822 msgstr ""
27823 " int\n"
27824 " guestfs_blockdev_getss (guestfs_h *g,\n"
27825 "                         const char *device);\n"
27826 "\n"
27827
27828 #. type: textblock
27829 #: ../src/guestfs-actions.pod:795
27830 msgid ""
27831 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
27832 "that)."
27833 msgstr ""
27834
27835 #. type: =head2
27836 #: ../src/guestfs-actions.pod:804
27837 msgid "guestfs_blockdev_getsz"
27838 msgstr "guestfs_blockdev_getsz"
27839
27840 #. type: verbatim
27841 #: ../src/guestfs-actions.pod:806
27842 #, no-wrap
27843 msgid ""
27844 " int64_t\n"
27845 " guestfs_blockdev_getsz (guestfs_h *g,\n"
27846 "                         const char *device);\n"
27847 "\n"
27848 msgstr ""
27849 " int64_t\n"
27850 " guestfs_blockdev_getsz (guestfs_h *g,\n"
27851 "                         const char *device);\n"
27852 "\n"
27853
27854 #. type: textblock
27855 #: ../src/guestfs-actions.pod:813
27856 msgid ""
27857 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
27858 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
27859 msgstr ""
27860
27861 #. type: =head2
27862 #: ../src/guestfs-actions.pod:823
27863 msgid "guestfs_blockdev_rereadpt"
27864 msgstr "guestfs_blockdev_rereadpt"
27865
27866 #. type: verbatim
27867 #: ../src/guestfs-actions.pod:825
27868 #, no-wrap
27869 msgid ""
27870 " int\n"
27871 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
27872 "                            const char *device);\n"
27873 "\n"
27874 msgstr ""
27875 " int\n"
27876 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
27877 "                            const char *device);\n"
27878 "\n"
27879
27880 #. type: =head2
27881 #: ../src/guestfs-actions.pod:837
27882 msgid "guestfs_blockdev_setbsz"
27883 msgstr "guestfs_blockdev_setbsz"
27884
27885 #. type: verbatim
27886 #: ../src/guestfs-actions.pod:839
27887 #, no-wrap
27888 msgid ""
27889 " int\n"
27890 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
27891 "                          const char *device,\n"
27892 "                          int blocksize);\n"
27893 "\n"
27894 msgstr ""
27895 " int\n"
27896 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
27897 "                          const char *device,\n"
27898 "                          int blocksize);\n"
27899 "\n"
27900
27901 #. type: =head2
27902 #: ../src/guestfs-actions.pod:855
27903 msgid "guestfs_blockdev_setro"
27904 msgstr "guestfs_blockdev_setro"
27905
27906 #. type: verbatim
27907 #: ../src/guestfs-actions.pod:857
27908 #, no-wrap
27909 msgid ""
27910 " int\n"
27911 " guestfs_blockdev_setro (guestfs_h *g,\n"
27912 "                         const char *device);\n"
27913 "\n"
27914 msgstr ""
27915 " int\n"
27916 " guestfs_blockdev_setro (guestfs_h *g,\n"
27917 "                         const char *device);\n"
27918 "\n"
27919
27920 #. type: =head2
27921 #: ../src/guestfs-actions.pod:869
27922 msgid "guestfs_blockdev_setrw"
27923 msgstr "guestfs_blockdev_setrw"
27924
27925 #. type: verbatim
27926 #: ../src/guestfs-actions.pod:871
27927 #, no-wrap
27928 msgid ""
27929 " int\n"
27930 " guestfs_blockdev_setrw (guestfs_h *g,\n"
27931 "                         const char *device);\n"
27932 "\n"
27933 msgstr ""
27934 " int\n"
27935 " guestfs_blockdev_setrw (guestfs_h *g,\n"
27936 "                         const char *device);\n"
27937 "\n"
27938
27939 #. type: =head2
27940 #: ../src/guestfs-actions.pod:883
27941 msgid "guestfs_btrfs_filesystem_resize"
27942 msgstr "guestfs_btrfs_filesystem_resize"
27943
27944 #. type: verbatim
27945 #: ../src/guestfs-actions.pod:885
27946 #, no-wrap
27947 msgid ""
27948 " int\n"
27949 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
27950 "                                  const char *mountpoint,\n"
27951 "                                  ...);\n"
27952 "\n"
27953 msgstr ""
27954 " int\n"
27955 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
27956 "                                  const char *mountpoint,\n"
27957 "                                  ...);\n"
27958 "\n"
27959
27960 #. type: verbatim
27961 #: ../src/guestfs-actions.pod:895
27962 #, no-wrap
27963 msgid ""
27964 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27965 "\n"
27966 msgstr ""
27967 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27968 "\n"
27969
27970 #. type: textblock
27971 #: ../src/guestfs-actions.pod:918
27972 msgid "(Added in 1.11.17)"
27973 msgstr "(Додано у 1.11.17)"
27974
27975 #. type: =head2
27976 #: ../src/guestfs-actions.pod:920
27977 msgid "guestfs_btrfs_filesystem_resize_va"
27978 msgstr "guestfs_btrfs_filesystem_resize_va"
27979
27980 #. type: verbatim
27981 #: ../src/guestfs-actions.pod:922
27982 #, no-wrap
27983 msgid ""
27984 " int\n"
27985 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27986 "                                     const char *mountpoint,\n"
27987 "                                     va_list args);\n"
27988 "\n"
27989 msgstr ""
27990 " int\n"
27991 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27992 "                                     const char *mountpoint,\n"
27993 "                                     va_list args);\n"
27994 "\n"
27995
27996 #. type: textblock
27997 #: ../src/guestfs-actions.pod:927
27998 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
27999 msgstr ""
28000
28001 #. type: =head2
28002 #: ../src/guestfs-actions.pod:931
28003 msgid "guestfs_btrfs_filesystem_resize_argv"
28004 msgstr "guestfs_btrfs_filesystem_resize_argv"
28005
28006 #. type: verbatim
28007 #: ../src/guestfs-actions.pod:933
28008 #, no-wrap
28009 msgid ""
28010 " int\n"
28011 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
28012 "                                       const char *mountpoint,\n"
28013 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
28014 "\n"
28015 msgstr ""
28016 " int\n"
28017 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
28018 "                                       const char *mountpoint,\n"
28019 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
28020 "\n"
28021
28022 #. type: textblock
28023 #: ../src/guestfs-actions.pod:938
28024 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
28025 msgstr ""
28026
28027 #. type: =head2
28028 #: ../src/guestfs-actions.pod:942
28029 msgid "guestfs_case_sensitive_path"
28030 msgstr ""
28031
28032 #. type: verbatim
28033 #: ../src/guestfs-actions.pod:944
28034 #, no-wrap
28035 msgid ""
28036 " char *\n"
28037 " guestfs_case_sensitive_path (guestfs_h *g,\n"
28038 "                              const char *path);\n"
28039 "\n"
28040 msgstr ""
28041
28042 #. type: textblock
28043 #: ../src/guestfs-actions.pod:970
28044 msgid ""
28045 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
28046 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
28047 "how the directories were originally created under Windows)."
28048 msgstr ""
28049
28050 #. type: textblock
28051 #: ../src/guestfs-actions.pod:978
28052 msgid "See also C<guestfs_realpath>."
28053 msgstr ""
28054
28055 #. type: textblock
28056 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:8144
28057 msgid "(Added in 1.0.75)"
28058 msgstr "(Додано у 1.0.75)"
28059
28060 #. type: =head2
28061 #: ../src/guestfs-actions.pod:985
28062 msgid "guestfs_cat"
28063 msgstr ""
28064
28065 #. type: verbatim
28066 #: ../src/guestfs-actions.pod:987
28067 #, no-wrap
28068 msgid ""
28069 " char *\n"
28070 " guestfs_cat (guestfs_h *g,\n"
28071 "              const char *path);\n"
28072 "\n"
28073 msgstr ""
28074
28075 #. type: textblock
28076 #: ../src/guestfs-actions.pod:993
28077 msgid ""
28078 "Note that this function cannot correctly handle binary files (specifically, "
28079 "files containing C<\\0> character which is treated as end of string).  For "
28080 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
28081 "functions which have a more complex interface."
28082 msgstr ""
28083
28084 #. type: textblock
28085 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4211
28086 #: ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4323
28087 #: ../src/guestfs-actions.pod:4411 ../src/guestfs-actions.pod:4810
28088 #: ../src/guestfs-actions.pod:4824 ../src/guestfs-actions.pod:6351
28089 #: ../src/guestfs-actions.pod:6365 ../src/guestfs-actions.pod:8297
28090 #: ../src/guestfs-actions.pod:8311
28091 msgid "(Added in 0.4)"
28092 msgstr "(Додано у 0.4)"
28093
28094 #. type: =head2
28095 #: ../src/guestfs-actions.pod:1006
28096 msgid "guestfs_checksum"
28097 msgstr ""
28098
28099 #. type: verbatim
28100 #: ../src/guestfs-actions.pod:1008
28101 #, no-wrap
28102 msgid ""
28103 " char *\n"
28104 " guestfs_checksum (guestfs_h *g,\n"
28105 "                   const char *csumtype,\n"
28106 "                   const char *path);\n"
28107 "\n"
28108 msgstr ""
28109
28110 #. type: textblock
28111 #: ../src/guestfs-actions.pod:1054
28112 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
28113 msgstr ""
28114
28115 #. type: textblock
28116 #: ../src/guestfs-actions.pod:1056
28117 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
28118 msgstr ""
28119
28120 #. type: textblock
28121 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728
28122 #: ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3909
28123 #: ../src/guestfs-actions.pod:3938 ../src/guestfs-actions.pod:3999
28124 #: ../src/guestfs-actions.pod:4026 ../src/guestfs-actions.pod:8000
28125 msgid "(Added in 1.0.2)"
28126 msgstr "(Додано у 1.0.2)"
28127
28128 #. type: =head2
28129 #: ../src/guestfs-actions.pod:1063
28130 msgid "guestfs_checksum_device"
28131 msgstr ""
28132
28133 #. type: verbatim
28134 #: ../src/guestfs-actions.pod:1065
28135 #, no-wrap
28136 msgid ""
28137 " char *\n"
28138 " guestfs_checksum_device (guestfs_h *g,\n"
28139 "                          const char *csumtype,\n"
28140 "                          const char *device);\n"
28141 "\n"
28142 msgstr ""
28143
28144 #. type: textblock
28145 #: ../src/guestfs-actions.pod:1070
28146 msgid ""
28147 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
28148 "device named C<device>.  For the types of checksums supported see the "
28149 "C<guestfs_checksum> command."
28150 msgstr ""
28151
28152 #. type: textblock
28153 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5783
28154 #: ../src/guestfs-actions.pod:5918 ../src/guestfs-actions.pod:5952
28155 #: ../src/guestfs-actions.pod:5970 ../src/guestfs-actions.pod:6152
28156 #: ../src/guestfs-actions.pod:7909 ../src/guestfs-actions.pod:7923
28157 #: ../src/guestfs-actions.pod:8323
28158 msgid "(Added in 1.3.2)"
28159 msgstr "(Додано у 1.3.2)"
28160
28161 #. type: =head2
28162 #: ../src/guestfs-actions.pod:1079
28163 msgid "guestfs_checksums_out"
28164 msgstr ""
28165
28166 #. type: verbatim
28167 #: ../src/guestfs-actions.pod:1081
28168 #, no-wrap
28169 msgid ""
28170 " int\n"
28171 " guestfs_checksums_out (guestfs_h *g,\n"
28172 "                        const char *csumtype,\n"
28173 "                        const char *directory,\n"
28174 "                        const char *sumsfile);\n"
28175 "\n"
28176 msgstr ""
28177
28178 #. type: textblock
28179 #: ../src/guestfs-actions.pod:1101
28180 msgid "(Added in 1.3.7)"
28181 msgstr "(Додано у 1.3.7)"
28182
28183 #. type: =head2
28184 #: ../src/guestfs-actions.pod:1103
28185 msgid "guestfs_chmod"
28186 msgstr ""
28187
28188 #. type: verbatim
28189 #: ../src/guestfs-actions.pod:1105
28190 #, no-wrap
28191 msgid ""
28192 " int\n"
28193 " guestfs_chmod (guestfs_h *g,\n"
28194 "                int mode,\n"
28195 "                const char *path);\n"
28196 "\n"
28197 msgstr ""
28198
28199 #. type: =head2
28200 #: ../src/guestfs-actions.pod:1123
28201 msgid "guestfs_chown"
28202 msgstr ""
28203
28204 #. type: verbatim
28205 #: ../src/guestfs-actions.pod:1125
28206 #, no-wrap
28207 msgid ""
28208 " int\n"
28209 " guestfs_chown (guestfs_h *g,\n"
28210 "                int owner,\n"
28211 "                int group,\n"
28212 "                const char *path);\n"
28213 "\n"
28214 msgstr ""
28215
28216 #. type: =head2
28217 #: ../src/guestfs-actions.pod:1141
28218 msgid "guestfs_command"
28219 msgstr ""
28220
28221 #. type: verbatim
28222 #: ../src/guestfs-actions.pod:1143
28223 #, no-wrap
28224 msgid ""
28225 " char *\n"
28226 " guestfs_command (guestfs_h *g,\n"
28227 "                  char *const *arguments);\n"
28228 "\n"
28229 msgstr ""
28230
28231 #. type: textblock
28232 #: ../src/guestfs-actions.pod:1152
28233 msgid ""
28234 "The single parameter is an argv-style list of arguments.  The first element "
28235 "is the name of the program to run.  Subsequent elements are parameters.  The "
28236 "list must be non-empty (ie. must contain a program name).  Note that the "
28237 "command runs directly, and is I<not> invoked via the shell (see "
28238 "C<guestfs_sh>)."
28239 msgstr ""
28240
28241 #. type: textblock
28242 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
28243 #: ../src/guestfs-actions.pod:2027
28244 msgid "(Added in 0.9.1)"
28245 msgstr "(Додано у 0.9.1)"
28246
28247 #. type: =head2
28248 #: ../src/guestfs-actions.pod:1185
28249 msgid "guestfs_command_lines"
28250 msgstr ""
28251
28252 #. type: verbatim
28253 #: ../src/guestfs-actions.pod:1187
28254 #, no-wrap
28255 msgid ""
28256 " char **\n"
28257 " guestfs_command_lines (guestfs_h *g,\n"
28258 "                        char *const *arguments);\n"
28259 "\n"
28260 msgstr ""
28261
28262 #. type: textblock
28263 #: ../src/guestfs-actions.pod:1191
28264 msgid ""
28265 "This is the same as C<guestfs_command>, but splits the result into a list of "
28266 "lines."
28267 msgstr ""
28268
28269 #. type: textblock
28270 #: ../src/guestfs-actions.pod:1194
28271 msgid "See also: C<guestfs_sh_lines>"
28272 msgstr ""
28273
28274 #. type: =head2
28275 #: ../src/guestfs-actions.pod:1205
28276 msgid "guestfs_compress_device_out"
28277 msgstr ""
28278
28279 #. type: verbatim
28280 #: ../src/guestfs-actions.pod:1207
28281 #, no-wrap
28282 msgid ""
28283 " int\n"
28284 " guestfs_compress_device_out (guestfs_h *g,\n"
28285 "                              const char *ctype,\n"
28286 "                              const char *device,\n"
28287 "                              const char *zdevice,\n"
28288 "                              ...);\n"
28289 "\n"
28290 msgstr ""
28291
28292 #. type: verbatim
28293 #: ../src/guestfs-actions.pod:1219
28294 #, no-wrap
28295 msgid ""
28296 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
28297 "\n"
28298 msgstr ""
28299
28300 #. type: textblock
28301 #: ../src/guestfs-actions.pod:1224
28302 msgid ""
28303 "The C<ctype> and optional C<level> parameters have the same meaning as in "
28304 "C<guestfs_compress_out>."
28305 msgstr ""
28306
28307 #. type: textblock
28308 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
28309 #: ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:7068
28310 msgid "(Added in 1.13.15)"
28311 msgstr ""
28312
28313 #. type: =head2
28314 #: ../src/guestfs-actions.pod:1231
28315 msgid "guestfs_compress_device_out_va"
28316 msgstr ""
28317
28318 #. type: verbatim
28319 #: ../src/guestfs-actions.pod:1233
28320 #, no-wrap
28321 msgid ""
28322 " int\n"
28323 " guestfs_compress_device_out_va (guestfs_h *g,\n"
28324 "                                 const char *ctype,\n"
28325 "                                 const char *device,\n"
28326 "                                 const char *zdevice,\n"
28327 "                                 va_list args);\n"
28328 "\n"
28329 msgstr ""
28330
28331 #. type: textblock
28332 #: ../src/guestfs-actions.pod:1240
28333 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
28334 msgstr ""
28335
28336 #. type: =head2
28337 #: ../src/guestfs-actions.pod:1244
28338 msgid "guestfs_compress_device_out_argv"
28339 msgstr ""
28340
28341 #. type: verbatim
28342 #: ../src/guestfs-actions.pod:1246
28343 #, no-wrap
28344 msgid ""
28345 " int\n"
28346 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
28347 "                                   const char *ctype,\n"
28348 "                                   const char *device,\n"
28349 "                                   const char *zdevice,\n"
28350 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
28351 "\n"
28352 msgstr ""
28353
28354 #. type: textblock
28355 #: ../src/guestfs-actions.pod:1253
28356 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
28357 msgstr ""
28358
28359 #. type: =head2
28360 #: ../src/guestfs-actions.pod:1257
28361 msgid "guestfs_compress_out"
28362 msgstr ""
28363
28364 #. type: verbatim
28365 #: ../src/guestfs-actions.pod:1259
28366 #, no-wrap
28367 msgid ""
28368 " int\n"
28369 " guestfs_compress_out (guestfs_h *g,\n"
28370 "                       const char *ctype,\n"
28371 "                       const char *file,\n"
28372 "                       const char *zfile,\n"
28373 "                       ...);\n"
28374 "\n"
28375 msgstr ""
28376
28377 #. type: verbatim
28378 #: ../src/guestfs-actions.pod:1271
28379 #, no-wrap
28380 msgid ""
28381 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
28382 "\n"
28383 msgstr ""
28384
28385 #. type: =head2
28386 #: ../src/guestfs-actions.pod:1290
28387 msgid "guestfs_compress_out_va"
28388 msgstr ""
28389
28390 #. type: verbatim
28391 #: ../src/guestfs-actions.pod:1292
28392 #, no-wrap
28393 msgid ""
28394 " int\n"
28395 " guestfs_compress_out_va (guestfs_h *g,\n"
28396 "                          const char *ctype,\n"
28397 "                          const char *file,\n"
28398 "                          const char *zfile,\n"
28399 "                          va_list args);\n"
28400 "\n"
28401 msgstr ""
28402
28403 #. type: textblock
28404 #: ../src/guestfs-actions.pod:1299
28405 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
28406 msgstr ""
28407
28408 #. type: =head2
28409 #: ../src/guestfs-actions.pod:1303
28410 msgid "guestfs_compress_out_argv"
28411 msgstr ""
28412
28413 #. type: verbatim
28414 #: ../src/guestfs-actions.pod:1305
28415 #, no-wrap
28416 msgid ""
28417 " int\n"
28418 " guestfs_compress_out_argv (guestfs_h *g,\n"
28419 "                            const char *ctype,\n"
28420 "                            const char *file,\n"
28421 "                            const char *zfile,\n"
28422 "                            const struct guestfs_compress_out_argv *optargs);\n"
28423 "\n"
28424 msgstr ""
28425
28426 #. type: textblock
28427 #: ../src/guestfs-actions.pod:1312
28428 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
28429 msgstr ""
28430
28431 #. type: =head2
28432 #: ../src/guestfs-actions.pod:1316
28433 msgid "guestfs_config"
28434 msgstr ""
28435
28436 #. type: verbatim
28437 #: ../src/guestfs-actions.pod:1318
28438 #, no-wrap
28439 msgid ""
28440 " int\n"
28441 " guestfs_config (guestfs_h *g,\n"
28442 "                 const char *qemuparam,\n"
28443 "                 const char *qemuvalue);\n"
28444 "\n"
28445 msgstr ""
28446
28447 #. type: =head2
28448 #: ../src/guestfs-actions.pod:1336
28449 msgid "guestfs_copy_device_to_device"
28450 msgstr ""
28451
28452 #. type: verbatim
28453 #: ../src/guestfs-actions.pod:1338
28454 #, no-wrap
28455 msgid ""
28456 " int\n"
28457 " guestfs_copy_device_to_device (guestfs_h *g,\n"
28458 "                                const char *src,\n"
28459 "                                const char *dest,\n"
28460 "                                ...);\n"
28461 "\n"
28462 msgstr ""
28463
28464 #. type: verbatim
28465 #: ../src/guestfs-actions.pod:1349
28466 #, no-wrap
28467 msgid ""
28468 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
28469 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
28470 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
28471 "\n"
28472 msgstr ""
28473
28474 #. type: textblock
28475 #: ../src/guestfs-actions.pod:1353
28476 msgid ""
28477 "The four calls C<guestfs_copy_device_to_device>, "
28478 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
28479 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
28480 "destination (device|file)."
28481 msgstr ""
28482
28483 #. type: textblock
28484 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427
28485 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538
28486 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723
28487 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799
28488 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198
28489 #: ../src/guestfs-actions.pod:4109 ../src/guestfs-actions.pod:7995
28490 #: ../src/guestfs-actions.pod:8029 ../src/guestfs-actions.pod:8536
28491 #: ../src/guestfs-actions.pod:8559
28492 msgid ""
28493 "This long-running command can generate progress notification messages so "
28494 "that the caller can display a progress bar or indicator.  To receive these "
28495 "messages, the caller must register a progress event callback.  See L<guestfs"
28496 "(3)/GUESTFS_EVENT_PROGRESS>."
28497 msgstr ""
28498
28499 #. type: textblock
28500 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432
28501 #: ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543
28502 #: ../src/guestfs-actions.pod:6208
28503 #, fuzzy
28504 #| msgid "(Added in 1.3.5)"
28505 msgid "(Added in 1.13.25)"
28506 msgstr "(Додано у 1.3.5)"
28507
28508 #. type: =head2
28509 #: ../src/guestfs-actions.pod:1381
28510 msgid "guestfs_copy_device_to_device_va"
28511 msgstr ""
28512
28513 #. type: verbatim
28514 #: ../src/guestfs-actions.pod:1383
28515 #, no-wrap
28516 msgid ""
28517 " int\n"
28518 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
28519 "                                   const char *src,\n"
28520 "                                   const char *dest,\n"
28521 "                                   va_list args);\n"
28522 "\n"
28523 msgstr ""
28524
28525 #. type: textblock
28526 #: ../src/guestfs-actions.pod:1389
28527 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
28528 msgstr ""
28529
28530 #. type: =head2
28531 #: ../src/guestfs-actions.pod:1393
28532 msgid "guestfs_copy_device_to_device_argv"
28533 msgstr ""
28534
28535 #. type: verbatim
28536 #: ../src/guestfs-actions.pod:1395
28537 #, no-wrap
28538 msgid ""
28539 " int\n"
28540 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
28541 "                                     const char *src,\n"
28542 "                                     const char *dest,\n"
28543 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
28544 "\n"
28545 msgstr ""
28546
28547 #. type: textblock
28548 #: ../src/guestfs-actions.pod:1401
28549 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
28550 msgstr ""
28551
28552 #. type: =head2
28553 #: ../src/guestfs-actions.pod:1405
28554 msgid "guestfs_copy_device_to_file"
28555 msgstr ""
28556
28557 #. type: verbatim
28558 #: ../src/guestfs-actions.pod:1407
28559 #, no-wrap
28560 msgid ""
28561 " int\n"
28562 " guestfs_copy_device_to_file (guestfs_h *g,\n"
28563 "                              const char *src,\n"
28564 "                              const char *dest,\n"
28565 "                              ...);\n"
28566 "\n"
28567 msgstr ""
28568
28569 #. type: verbatim
28570 #: ../src/guestfs-actions.pod:1418
28571 #, no-wrap
28572 msgid ""
28573 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
28574 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
28575 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
28576 "\n"
28577 msgstr ""
28578
28579 #. type: textblock
28580 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475
28581 #: ../src/guestfs-actions.pod:1528
28582 msgid ""
28583 "See C<guestfs_copy_device_to_device> for a general overview of this call."
28584 msgstr ""
28585
28586 #. type: =head2
28587 #: ../src/guestfs-actions.pod:1434
28588 msgid "guestfs_copy_device_to_file_va"
28589 msgstr ""
28590
28591 #. type: verbatim
28592 #: ../src/guestfs-actions.pod:1436
28593 #, no-wrap
28594 msgid ""
28595 " int\n"
28596 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
28597 "                                 const char *src,\n"
28598 "                                 const char *dest,\n"
28599 "                                 va_list args);\n"
28600 "\n"
28601 msgstr ""
28602
28603 #. type: textblock
28604 #: ../src/guestfs-actions.pod:1442
28605 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
28606 msgstr ""
28607
28608 #. type: =head2
28609 #: ../src/guestfs-actions.pod:1446
28610 msgid "guestfs_copy_device_to_file_argv"
28611 msgstr ""
28612
28613 #. type: verbatim
28614 #: ../src/guestfs-actions.pod:1448
28615 #, no-wrap
28616 msgid ""
28617 " int\n"
28618 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
28619 "                                   const char *src,\n"
28620 "                                   const char *dest,\n"
28621 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
28622 "\n"
28623 msgstr ""
28624
28625 #. type: textblock
28626 #: ../src/guestfs-actions.pod:1454
28627 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
28628 msgstr ""
28629
28630 #. type: =head2
28631 #: ../src/guestfs-actions.pod:1458
28632 msgid "guestfs_copy_file_to_device"
28633 msgstr ""
28634
28635 #. type: verbatim
28636 #: ../src/guestfs-actions.pod:1460
28637 #, no-wrap
28638 msgid ""
28639 " int\n"
28640 " guestfs_copy_file_to_device (guestfs_h *g,\n"
28641 "                              const char *src,\n"
28642 "                              const char *dest,\n"
28643 "                              ...);\n"
28644 "\n"
28645 msgstr ""
28646
28647 #. type: verbatim
28648 #: ../src/guestfs-actions.pod:1471
28649 #, no-wrap
28650 msgid ""
28651 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
28652 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
28653 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
28654 "\n"
28655 msgstr ""
28656
28657 #. type: =head2
28658 #: ../src/guestfs-actions.pod:1487
28659 msgid "guestfs_copy_file_to_device_va"
28660 msgstr ""
28661
28662 #. type: verbatim
28663 #: ../src/guestfs-actions.pod:1489
28664 #, no-wrap
28665 msgid ""
28666 " int\n"
28667 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
28668 "                                 const char *src,\n"
28669 "                                 const char *dest,\n"
28670 "                                 va_list args);\n"
28671 "\n"
28672 msgstr ""
28673
28674 #. type: textblock
28675 #: ../src/guestfs-actions.pod:1495
28676 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
28677 msgstr ""
28678
28679 #. type: =head2
28680 #: ../src/guestfs-actions.pod:1499
28681 msgid "guestfs_copy_file_to_device_argv"
28682 msgstr ""
28683
28684 #. type: verbatim
28685 #: ../src/guestfs-actions.pod:1501
28686 #, no-wrap
28687 msgid ""
28688 " int\n"
28689 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
28690 "                                   const char *src,\n"
28691 "                                   const char *dest,\n"
28692 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
28693 "\n"
28694 msgstr ""
28695
28696 #. type: textblock
28697 #: ../src/guestfs-actions.pod:1507
28698 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
28699 msgstr ""
28700
28701 #. type: =head2
28702 #: ../src/guestfs-actions.pod:1511
28703 msgid "guestfs_copy_file_to_file"
28704 msgstr ""
28705
28706 #. type: verbatim
28707 #: ../src/guestfs-actions.pod:1513
28708 #, no-wrap
28709 msgid ""
28710 " int\n"
28711 " guestfs_copy_file_to_file (guestfs_h *g,\n"
28712 "                            const char *src,\n"
28713 "                            const char *dest,\n"
28714 "                            ...);\n"
28715 "\n"
28716 msgstr ""
28717
28718 #. type: verbatim
28719 #: ../src/guestfs-actions.pod:1524
28720 #, no-wrap
28721 msgid ""
28722 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
28723 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
28724 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
28725 "\n"
28726 msgstr ""
28727
28728 #. type: textblock
28729 #: ../src/guestfs-actions.pod:1531
28730 msgid ""
28731 "This is B<not> the function you want for copying files.  This is for copying "
28732 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
28733 "C<guestfs_mv> for general file copying and moving functions."
28734 msgstr ""
28735
28736 #. type: =head2
28737 #: ../src/guestfs-actions.pod:1545
28738 msgid "guestfs_copy_file_to_file_va"
28739 msgstr ""
28740
28741 #. type: verbatim
28742 #: ../src/guestfs-actions.pod:1547
28743 #, no-wrap
28744 msgid ""
28745 " int\n"
28746 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
28747 "                               const char *src,\n"
28748 "                               const char *dest,\n"
28749 "                               va_list args);\n"
28750 "\n"
28751 msgstr ""
28752
28753 #. type: textblock
28754 #: ../src/guestfs-actions.pod:1553
28755 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
28756 msgstr ""
28757
28758 #. type: =head2
28759 #: ../src/guestfs-actions.pod:1557
28760 msgid "guestfs_copy_file_to_file_argv"
28761 msgstr ""
28762
28763 #. type: verbatim
28764 #: ../src/guestfs-actions.pod:1559
28765 #, no-wrap
28766 msgid ""
28767 " int\n"
28768 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
28769 "                                 const char *src,\n"
28770 "                                 const char *dest,\n"
28771 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
28772 "\n"
28773 msgstr ""
28774
28775 #. type: textblock
28776 #: ../src/guestfs-actions.pod:1565
28777 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
28778 msgstr ""
28779
28780 #. type: =head2
28781 #: ../src/guestfs-actions.pod:1569
28782 msgid "guestfs_copy_size"
28783 msgstr ""
28784
28785 #. type: verbatim
28786 #: ../src/guestfs-actions.pod:1571
28787 #, no-wrap
28788 msgid ""
28789 " int\n"
28790 " guestfs_copy_size (guestfs_h *g,\n"
28791 "                    const char *src,\n"
28792 "                    const char *dest,\n"
28793 "                    int64_t size);\n"
28794 "\n"
28795 msgstr ""
28796
28797 #. type: textblock
28798 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
28799 msgid ""
28800 "I<This function is deprecated.> In new code, use the L</"
28801 "guestfs_copy_device_to_device> call instead."
28802 msgstr ""
28803
28804 #. type: textblock
28805 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4837
28806 #: ../src/guestfs-actions.pod:6378 ../src/guestfs-actions.pod:8230
28807 #: ../src/guestfs-actions.pod:8250 ../src/guestfs-actions.pod:8336
28808 msgid "(Added in 1.0.87)"
28809 msgstr "(Додано у 1.0.87)"
28810
28811 #. type: =head2
28812 #: ../src/guestfs-actions.pod:1599
28813 msgid "guestfs_cp"
28814 msgstr ""
28815
28816 #. type: verbatim
28817 #: ../src/guestfs-actions.pod:1601
28818 #, no-wrap
28819 msgid ""
28820 " int\n"
28821 " guestfs_cp (guestfs_h *g,\n"
28822 "             const char *src,\n"
28823 "             const char *dest);\n"
28824 "\n"
28825 msgstr ""
28826
28827 #. type: textblock
28828 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625
28829 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779
28830 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5730
28831 #: ../src/guestfs-actions.pod:6222
28832 msgid "(Added in 1.0.18)"
28833 msgstr "(Додано у 1.0.18)"
28834
28835 #. type: =head2
28836 #: ../src/guestfs-actions.pod:1613
28837 msgid "guestfs_cp_a"
28838 msgstr ""
28839
28840 #. type: verbatim
28841 #: ../src/guestfs-actions.pod:1615
28842 #, no-wrap
28843 msgid ""
28844 " int\n"
28845 " guestfs_cp_a (guestfs_h *g,\n"
28846 "               const char *src,\n"
28847 "               const char *dest);\n"
28848 "\n"
28849 msgstr ""
28850
28851 #. type: =head2
28852 #: ../src/guestfs-actions.pod:1627
28853 msgid "guestfs_dd"
28854 msgstr ""
28855
28856 #. type: verbatim
28857 #: ../src/guestfs-actions.pod:1629
28858 #, no-wrap
28859 msgid ""
28860 " int\n"
28861 " guestfs_dd (guestfs_h *g,\n"
28862 "             const char *src,\n"
28863 "             const char *dest);\n"
28864 "\n"
28865 msgstr ""
28866
28867 #. type: textblock
28868 #: ../src/guestfs-actions.pod:1646
28869 msgid ""
28870 "If the destination is a device, it must be as large or larger than the "
28871 "source file or device, otherwise the copy will fail.  This command cannot do "
28872 "partial copies (see C<guestfs_copy_device_to_device>)."
28873 msgstr ""
28874
28875 #. type: =head2
28876 #: ../src/guestfs-actions.pod:1655
28877 msgid "guestfs_df"
28878 msgstr ""
28879
28880 #. type: verbatim
28881 #: ../src/guestfs-actions.pod:1657
28882 #, no-wrap
28883 msgid ""
28884 " char *\n"
28885 " guestfs_df (guestfs_h *g);\n"
28886 "\n"
28887 msgstr ""
28888
28889 #. type: textblock
28890 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
28891 msgid ""
28892 "This command is mostly useful for interactive sessions.  It is I<not> "
28893 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
28894 "from programs."
28895 msgstr ""
28896
28897 #. type: textblock
28898 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686
28899 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811
28900 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903
28901 #: ../src/guestfs-actions.pod:5096 ../src/guestfs-actions.pod:5630
28902 #: ../src/guestfs-actions.pod:7611 ../src/guestfs-actions.pod:7635
28903 #: ../src/guestfs-actions.pod:8376 ../src/guestfs-actions.pod:8389
28904 #: ../src/guestfs-actions.pod:8402
28905 msgid "(Added in 1.0.54)"
28906 msgstr "(Додано у 1.0.54)"
28907
28908 #. type: =head2
28909 #: ../src/guestfs-actions.pod:1671
28910 msgid "guestfs_df_h"
28911 msgstr ""
28912
28913 #. type: verbatim
28914 #: ../src/guestfs-actions.pod:1673
28915 #, no-wrap
28916 msgid ""
28917 " char *\n"
28918 " guestfs_df_h (guestfs_h *g);\n"
28919 "\n"
28920 msgstr ""
28921
28922 #. type: =head2
28923 #: ../src/guestfs-actions.pod:1688
28924 msgid "guestfs_dmesg"
28925 msgstr ""
28926
28927 #. type: verbatim
28928 #: ../src/guestfs-actions.pod:1690
28929 #, no-wrap
28930 msgid ""
28931 " char *\n"
28932 " guestfs_dmesg (guestfs_h *g);\n"
28933 "\n"
28934 msgstr ""
28935
28936 #. type: textblock
28937 #: ../src/guestfs-actions.pod:1697
28938 msgid ""
28939 "Another way to get the same information is to enable verbose messages with "
28940 "C<guestfs_set_verbose> or by setting the environment variable "
28941 "C<LIBGUESTFS_DEBUG=1> before running the program."
28942 msgstr ""
28943
28944 #. type: =head2
28945 #: ../src/guestfs-actions.pod:1707
28946 msgid "guestfs_download"
28947 msgstr ""
28948
28949 #. type: verbatim
28950 #: ../src/guestfs-actions.pod:1709
28951 #, no-wrap
28952 msgid ""
28953 " int\n"
28954 " guestfs_download (guestfs_h *g,\n"
28955 "                   const char *remotefilename,\n"
28956 "                   const char *filename);\n"
28957 "\n"
28958 msgstr ""
28959
28960 #. type: textblock
28961 #: ../src/guestfs-actions.pod:1719
28962 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
28963 msgstr ""
28964
28965 #. type: =head2
28966 #: ../src/guestfs-actions.pod:1730
28967 msgid "guestfs_download_offset"
28968 msgstr ""
28969
28970 #. type: verbatim
28971 #: ../src/guestfs-actions.pod:1732
28972 #, no-wrap
28973 msgid ""
28974 " int\n"
28975 " guestfs_download_offset (guestfs_h *g,\n"
28976 "                          const char *remotefilename,\n"
28977 "                          const char *filename,\n"
28978 "                          int64_t offset,\n"
28979 "                          int64_t size);\n"
28980 "\n"
28981 msgstr ""
28982
28983 #. type: textblock
28984 #: ../src/guestfs-actions.pod:1745
28985 msgid ""
28986 "Note that there is no limit on the amount of data that can be downloaded "
28987 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
28988 "full amount unless an error occurs."
28989 msgstr ""
28990
28991 #. type: textblock
28992 #: ../src/guestfs-actions.pod:1750
28993 msgid "See also C<guestfs_download>, C<guestfs_pread>."
28994 msgstr ""
28995
28996 #. type: textblock
28997 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:8034
28998 msgid "(Added in 1.5.17)"
28999 msgstr "(Додано у 1.5.17)"
29000
29001 #. type: =head2
29002 #: ../src/guestfs-actions.pod:1761
29003 msgid "guestfs_drop_caches"
29004 msgstr ""
29005
29006 #. type: verbatim
29007 #: ../src/guestfs-actions.pod:1763
29008 #, no-wrap
29009 msgid ""
29010 " int\n"
29011 " guestfs_drop_caches (guestfs_h *g,\n"
29012 "                      int whattodrop);\n"
29013 "\n"
29014 msgstr ""
29015
29016 #. type: =head2
29017 #: ../src/guestfs-actions.pod:1781
29018 msgid "guestfs_du"
29019 msgstr ""
29020
29021 #. type: verbatim
29022 #: ../src/guestfs-actions.pod:1783
29023 #, no-wrap
29024 msgid ""
29025 " int64_t\n"
29026 " guestfs_du (guestfs_h *g,\n"
29027 "             const char *path);\n"
29028 "\n"
29029 msgstr ""
29030
29031 #. type: =head2
29032 #: ../src/guestfs-actions.pod:1806
29033 msgid "guestfs_e2fsck_f"
29034 msgstr ""
29035
29036 #. type: verbatim
29037 #: ../src/guestfs-actions.pod:1808
29038 #, no-wrap
29039 msgid ""
29040 " int\n"
29041 " guestfs_e2fsck_f (guestfs_h *g,\n"
29042 "                   const char *device);\n"
29043 "\n"
29044 msgstr ""
29045
29046 #. type: textblock
29047 #: ../src/guestfs-actions.pod:1816
29048 msgid ""
29049 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
29050 "Normally you should use C<guestfs_fsck>."
29051 msgstr ""
29052
29053 #. type: textblock
29054 #: ../src/guestfs-actions.pod:1821
29055 msgid "(Added in 1.0.29)"
29056 msgstr "(Додано у 1.0.29)"
29057
29058 #. type: =head2
29059 #: ../src/guestfs-actions.pod:1823
29060 msgid "guestfs_echo_daemon"
29061 msgstr "guestfs_echo_daemon"
29062
29063 #. type: verbatim
29064 #: ../src/guestfs-actions.pod:1825
29065 #, no-wrap
29066 msgid ""
29067 " char *\n"
29068 " guestfs_echo_daemon (guestfs_h *g,\n"
29069 "                      char *const *words);\n"
29070 "\n"
29071 msgstr ""
29072 " char *\n"
29073 " guestfs_echo_daemon (guestfs_h *g,\n"
29074 "                      char *const *words);\n"
29075 "\n"
29076
29077 #. type: textblock
29078 #: ../src/guestfs-actions.pod:1834
29079 msgid "See also C<guestfs_ping_daemon>."
29080 msgstr ""
29081
29082 #. type: textblock
29083 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597
29084 #: ../src/guestfs-actions.pod:7092
29085 msgid "(Added in 1.0.69)"
29086 msgstr "(Додано у 1.0.69)"
29087
29088 #. type: =head2
29089 #: ../src/guestfs-actions.pod:1841
29090 msgid "guestfs_egrep"
29091 msgstr "guestfs_egrep"
29092
29093 #. type: verbatim
29094 #: ../src/guestfs-actions.pod:1843
29095 #, no-wrap
29096 msgid ""
29097 " char **\n"
29098 " guestfs_egrep (guestfs_h *g,\n"
29099 "                const char *regex,\n"
29100 "                const char *path);\n"
29101 "\n"
29102 msgstr ""
29103 " char **\n"
29104 " guestfs_egrep (guestfs_h *g,\n"
29105 "                const char *regex,\n"
29106 "                const char *path);\n"
29107 "\n"
29108
29109 #. type: textblock
29110 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877
29111 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980
29112 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727
29113 #: ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924
29114 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952
29115 #: ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020
29116 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4336
29117 #: ../src/guestfs-actions.pod:4350 ../src/guestfs-actions.pod:4363
29118 #: ../src/guestfs-actions.pod:4377 ../src/guestfs-actions.pod:5518
29119 #: ../src/guestfs-actions.pod:6556 ../src/guestfs-actions.pod:6605
29120 #: ../src/guestfs-actions.pod:7479 ../src/guestfs-actions.pod:7491
29121 #: ../src/guestfs-actions.pod:7504 ../src/guestfs-actions.pod:7517
29122 #: ../src/guestfs-actions.pod:7539 ../src/guestfs-actions.pod:7552
29123 #: ../src/guestfs-actions.pod:7565 ../src/guestfs-actions.pod:7578
29124 #: ../src/guestfs-actions.pod:8494 ../src/guestfs-actions.pod:8513
29125 #: ../src/guestfs-actions.pod:8604 ../src/guestfs-actions.pod:8623
29126 #: ../src/guestfs-actions.pod:8669 ../src/guestfs-actions.pod:8688
29127 msgid "(Added in 1.0.66)"
29128 msgstr "(Додано у 1.0.66)"
29129
29130 #. type: =head2
29131 #: ../src/guestfs-actions.pod:1860
29132 msgid "guestfs_egrepi"
29133 msgstr "guestfs_egrepi"
29134
29135 #. type: verbatim
29136 #: ../src/guestfs-actions.pod:1862
29137 #, no-wrap
29138 msgid ""
29139 " char **\n"
29140 " guestfs_egrepi (guestfs_h *g,\n"
29141 "                 const char *regex,\n"
29142 "                 const char *path);\n"
29143 "\n"
29144 msgstr ""
29145
29146 #. type: =head2
29147 #: ../src/guestfs-actions.pod:1879
29148 msgid "guestfs_equal"
29149 msgstr ""
29150
29151 #. type: verbatim
29152 #: ../src/guestfs-actions.pod:1881
29153 #, no-wrap
29154 msgid ""
29155 " int\n"
29156 " guestfs_equal (guestfs_h *g,\n"
29157 "                const char *file1,\n"
29158 "                const char *file2);\n"
29159 "\n"
29160 msgstr ""
29161
29162 #. type: =head2
29163 #: ../src/guestfs-actions.pod:1895
29164 msgid "guestfs_exists"
29165 msgstr ""
29166
29167 #. type: verbatim
29168 #: ../src/guestfs-actions.pod:1897
29169 #, no-wrap
29170 msgid ""
29171 " int\n"
29172 " guestfs_exists (guestfs_h *g,\n"
29173 "                 const char *path);\n"
29174 "\n"
29175 msgstr ""
29176
29177 #. type: textblock
29178 #: ../src/guestfs-actions.pod:1904
29179 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
29180 msgstr ""
29181
29182 #. type: =head2
29183 #: ../src/guestfs-actions.pod:1910
29184 msgid "guestfs_fallocate"
29185 msgstr ""
29186
29187 #. type: verbatim
29188 #: ../src/guestfs-actions.pod:1912
29189 #, no-wrap
29190 msgid ""
29191 " int\n"
29192 " guestfs_fallocate (guestfs_h *g,\n"
29193 "                    const char *path,\n"
29194 "                    int len);\n"
29195 "\n"
29196 msgstr ""
29197
29198 #. type: textblock
29199 #: ../src/guestfs-actions.pod:1917
29200 msgid ""
29201 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
29202 "call instead."
29203 msgstr ""
29204
29205 #. type: =head2
29206 #: ../src/guestfs-actions.pod:1936
29207 msgid "guestfs_fallocate64"
29208 msgstr ""
29209
29210 #. type: verbatim
29211 #: ../src/guestfs-actions.pod:1938
29212 #, no-wrap
29213 msgid ""
29214 " int\n"
29215 " guestfs_fallocate64 (guestfs_h *g,\n"
29216 "                      const char *path,\n"
29217 "                      int64_t len);\n"
29218 "\n"
29219 msgstr ""
29220
29221 #. type: textblock
29222 #: ../src/guestfs-actions.pod:1947
29223 msgid ""
29224 "Note that this call allocates disk blocks for the file.  To create a sparse "
29225 "file use C<guestfs_truncate_size> instead."
29226 msgstr ""
29227
29228 #. type: textblock
29229 #: ../src/guestfs-actions.pod:1950
29230 msgid ""
29231 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
29232 "oversight it only allowed 30 bit lengths to be specified, effectively "
29233 "limiting the maximum size of files created through that call to 1GB."
29234 msgstr ""
29235
29236 #. type: textblock
29237 #: ../src/guestfs-actions.pod:1961
29238 msgid "(Added in 1.3.17)"
29239 msgstr "(Додано у 1.3.17)"
29240
29241 #. type: =head2
29242 #: ../src/guestfs-actions.pod:1963
29243 msgid "guestfs_fgrep"
29244 msgstr ""
29245
29246 #. type: verbatim
29247 #: ../src/guestfs-actions.pod:1965
29248 #, no-wrap
29249 msgid ""
29250 " char **\n"
29251 " guestfs_fgrep (guestfs_h *g,\n"
29252 "                const char *pattern,\n"
29253 "                const char *path);\n"
29254 "\n"
29255 msgstr ""
29256
29257 #. type: =head2
29258 #: ../src/guestfs-actions.pod:1982
29259 msgid "guestfs_fgrepi"
29260 msgstr ""
29261
29262 #. type: verbatim
29263 #: ../src/guestfs-actions.pod:1984
29264 #, no-wrap
29265 msgid ""
29266 " char **\n"
29267 " guestfs_fgrepi (guestfs_h *g,\n"
29268 "                 const char *pattern,\n"
29269 "                 const char *path);\n"
29270 "\n"
29271 msgstr ""
29272
29273 #. type: =head2
29274 #: ../src/guestfs-actions.pod:2001
29275 msgid "guestfs_file"
29276 msgstr ""
29277
29278 #. type: verbatim
29279 #: ../src/guestfs-actions.pod:2003
29280 #, no-wrap
29281 msgid ""
29282 " char *\n"
29283 " guestfs_file (guestfs_h *g,\n"
29284 "               const char *path);\n"
29285 "\n"
29286 msgstr ""
29287
29288 #. type: textblock
29289 #: ../src/guestfs-actions.pod:2021
29290 msgid ""
29291 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
29292 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
29293 msgstr ""
29294
29295 #. type: =head2
29296 #: ../src/guestfs-actions.pod:2029
29297 msgid "guestfs_file_architecture"
29298 msgstr ""
29299
29300 #. type: verbatim
29301 #: ../src/guestfs-actions.pod:2031
29302 #, no-wrap
29303 msgid ""
29304 " char *\n"
29305 " guestfs_file_architecture (guestfs_h *g,\n"
29306 "                            const char *filename);\n"
29307 "\n"
29308 msgstr ""
29309
29310 #. type: textblock
29311 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302
29312 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053
29313 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221
29314 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
29315 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542
29316 #: ../src/guestfs-actions.pod:3643 ../src/guestfs-actions.pod:3880
29317 #: ../src/guestfs-actions.pod:4012
29318 msgid "(Added in 1.5.3)"
29319 msgstr "(Додано у 1.5.3)"
29320
29321 #. type: =head2
29322 #: ../src/guestfs-actions.pod:2141
29323 msgid "guestfs_filesize"
29324 msgstr ""
29325
29326 #. type: verbatim
29327 #: ../src/guestfs-actions.pod:2143
29328 #, no-wrap
29329 msgid ""
29330 " int64_t\n"
29331 " guestfs_filesize (guestfs_h *g,\n"
29332 "                   const char *file);\n"
29333 "\n"
29334 msgstr ""
29335
29336 #. type: textblock
29337 #: ../src/guestfs-actions.pod:2149
29338 msgid ""
29339 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
29340 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
29341 "devices, use C<guestfs_blockdev_getsize64>."
29342 msgstr ""
29343
29344 #. type: textblock
29345 #: ../src/guestfs-actions.pod:2155
29346 msgid "(Added in 1.0.82)"
29347 msgstr "(Додано у 1.0.82)"
29348
29349 #. type: =head2
29350 #: ../src/guestfs-actions.pod:2157
29351 msgid "guestfs_fill"
29352 msgstr ""
29353
29354 #. type: verbatim
29355 #: ../src/guestfs-actions.pod:2159
29356 #, no-wrap
29357 msgid ""
29358 " int\n"
29359 " guestfs_fill (guestfs_h *g,\n"
29360 "               int c,\n"
29361 "               int len,\n"
29362 "               const char *path);\n"
29363 "\n"
29364 msgstr ""
29365
29366 #. type: textblock
29367 #: ../src/guestfs-actions.pod:2169
29368 msgid ""
29369 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
29370 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
29371 "bytes use C<guestfs_fill_pattern>."
29372 msgstr ""
29373
29374 #. type: textblock
29375 #: ../src/guestfs-actions.pod:2181
29376 msgid "(Added in 1.0.79)"
29377 msgstr "(Додано у 1.0.79)"
29378
29379 #. type: =head2
29380 #: ../src/guestfs-actions.pod:2183
29381 msgid "guestfs_fill_pattern"
29382 msgstr ""
29383
29384 #. type: verbatim
29385 #: ../src/guestfs-actions.pod:2185
29386 #, no-wrap
29387 msgid ""
29388 " int\n"
29389 " guestfs_fill_pattern (guestfs_h *g,\n"
29390 "                       const char *pattern,\n"
29391 "                       int len,\n"
29392 "                       const char *path);\n"
29393 "\n"
29394 msgstr ""
29395
29396 #. type: textblock
29397 #: ../src/guestfs-actions.pod:2191
29398 msgid ""
29399 "This function is like C<guestfs_fill> except that it creates a new file of "
29400 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
29401 "pattern is truncated if necessary to ensure the length of the file is "
29402 "exactly C<len> bytes."
29403 msgstr ""
29404
29405 #. type: textblock
29406 #: ../src/guestfs-actions.pod:2203
29407 msgid "(Added in 1.3.12)"
29408 msgstr "(Додано у 1.3.12)"
29409
29410 #. type: =head2
29411 #: ../src/guestfs-actions.pod:2205
29412 msgid "guestfs_find"
29413 msgstr ""
29414
29415 #. type: verbatim
29416 #: ../src/guestfs-actions.pod:2207
29417 #, no-wrap
29418 msgid ""
29419 " char **\n"
29420 " guestfs_find (guestfs_h *g,\n"
29421 "               const char *directory);\n"
29422 "\n"
29423 msgstr ""
29424
29425 #. type: textblock
29426 #: ../src/guestfs-actions.pod:2223
29427 msgid ""
29428 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
29429 msgstr ""
29430
29431 #. type: textblock
29432 #: ../src/guestfs-actions.pod:2236
29433 msgid "See also C<guestfs_find0>."
29434 msgstr ""
29435
29436 #. type: textblock
29437 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4774
29438 #: ../src/guestfs-actions.pod:6640
29439 msgid "(Added in 1.0.27)"
29440 msgstr "(Додано у 1.0.27)"
29441
29442 #. type: =head2
29443 #: ../src/guestfs-actions.pod:2247
29444 msgid "guestfs_find0"
29445 msgstr ""
29446
29447 #. type: verbatim
29448 #: ../src/guestfs-actions.pod:2249
29449 #, no-wrap
29450 msgid ""
29451 " int\n"
29452 " guestfs_find0 (guestfs_h *g,\n"
29453 "                const char *directory,\n"
29454 "                const char *files);\n"
29455 "\n"
29456 msgstr ""
29457
29458 #. type: textblock
29459 #: ../src/guestfs-actions.pod:2258
29460 msgid ""
29461 "This command works the same way as C<guestfs_find> with the following "
29462 "exceptions:"
29463 msgstr ""
29464
29465 #. type: textblock
29466 #: ../src/guestfs-actions.pod:2285
29467 msgid "(Added in 1.0.74)"
29468 msgstr "(Додано у 1.0.74)"
29469
29470 #. type: =head2
29471 #: ../src/guestfs-actions.pod:2287
29472 msgid "guestfs_findfs_label"
29473 msgstr ""
29474
29475 #. type: verbatim
29476 #: ../src/guestfs-actions.pod:2289
29477 #, no-wrap
29478 msgid ""
29479 " char *\n"
29480 " guestfs_findfs_label (guestfs_h *g,\n"
29481 "                       const char *label);\n"
29482 "\n"
29483 msgstr ""
29484
29485 #. type: textblock
29486 #: ../src/guestfs-actions.pod:2297
29487 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
29488 msgstr ""
29489
29490 #. type: =head2
29491 #: ../src/guestfs-actions.pod:2304
29492 msgid "guestfs_findfs_uuid"
29493 msgstr ""
29494
29495 #. type: verbatim
29496 #: ../src/guestfs-actions.pod:2306
29497 #, no-wrap
29498 msgid ""
29499 " char *\n"
29500 " guestfs_findfs_uuid (guestfs_h *g,\n"
29501 "                      const char *uuid);\n"
29502 "\n"
29503 msgstr ""
29504
29505 #. type: textblock
29506 #: ../src/guestfs-actions.pod:2314
29507 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
29508 msgstr ""
29509
29510 #. type: =head2
29511 #: ../src/guestfs-actions.pod:2321
29512 msgid "guestfs_fsck"
29513 msgstr ""
29514
29515 #. type: verbatim
29516 #: ../src/guestfs-actions.pod:2323
29517 #, no-wrap
29518 msgid ""
29519 " int\n"
29520 " guestfs_fsck (guestfs_h *g,\n"
29521 "               const char *fstype,\n"
29522 "               const char *device);\n"
29523 "\n"
29524 msgstr ""
29525
29526 #. type: textblock
29527 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8541
29528 msgid "(Added in 1.0.16)"
29529 msgstr "(Додано у 1.0.16)"
29530
29531 #. type: =head2
29532 #: ../src/guestfs-actions.pod:2360
29533 msgid "guestfs_get_append"
29534 msgstr ""
29535
29536 #. type: verbatim
29537 #: ../src/guestfs-actions.pod:2362
29538 #, no-wrap
29539 msgid ""
29540 " const char *\n"
29541 " guestfs_get_append (guestfs_h *g);\n"
29542 "\n"
29543 msgstr ""
29544
29545 #. type: textblock
29546 #: ../src/guestfs-actions.pod:2370
29547 msgid ""
29548 "This function returns a string which may be NULL.  There is no way to return "
29549 "an error from this function.  The string is owned by the guest handle and "
29550 "must I<not> be freed."
29551 msgstr ""
29552
29553 #. type: textblock
29554 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6318
29555 #: ../src/guestfs-actions.pod:6797 ../src/guestfs-actions.pod:7246
29556 #: ../src/guestfs-actions.pod:7265 ../src/guestfs-actions.pod:7281
29557 #: ../src/guestfs-actions.pod:7305 ../src/guestfs-actions.pod:8181
29558 #: ../src/guestfs-actions.pod:8196 ../src/guestfs-actions.pod:8585
29559 msgid "(Added in 1.0.26)"
29560 msgstr "(Додано у 1.0.26)"
29561
29562 #. type: =head2
29563 #: ../src/guestfs-actions.pod:2376
29564 msgid "guestfs_get_attach_method"
29565 msgstr ""
29566
29567 #. type: verbatim
29568 #: ../src/guestfs-actions.pod:2378
29569 #, no-wrap
29570 msgid ""
29571 " char *\n"
29572 " guestfs_get_attach_method (guestfs_h *g);\n"
29573 "\n"
29574 msgstr ""
29575
29576 #. type: textblock
29577 #: ../src/guestfs-actions.pod:2381
29578 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
29579 msgstr ""
29580
29581 #. type: textblock
29582 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6827
29583 msgid "(Added in 1.9.8)"
29584 msgstr "(Додано у 1.9.8)"
29585
29586 #. type: =head2
29587 #: ../src/guestfs-actions.pod:2388
29588 msgid "guestfs_get_autosync"
29589 msgstr ""
29590
29591 #. type: verbatim
29592 #: ../src/guestfs-actions.pod:2390
29593 #, no-wrap
29594 msgid ""
29595 " int\n"
29596 " guestfs_get_autosync (guestfs_h *g);\n"
29597 "\n"
29598 msgstr ""
29599
29600 #. type: =head2
29601 #: ../src/guestfs-actions.pod:2399
29602 msgid "guestfs_get_direct"
29603 msgstr ""
29604
29605 #. type: verbatim
29606 #: ../src/guestfs-actions.pod:2401
29607 #, no-wrap
29608 msgid ""
29609 " int\n"
29610 " guestfs_get_direct (guestfs_h *g);\n"
29611 "\n"
29612 msgstr ""
29613
29614 #. type: textblock
29615 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6868
29616 msgid "(Added in 1.0.72)"
29617 msgstr "(Додано у 1.0.72)"
29618
29619 #. type: =head2
29620 #: ../src/guestfs-actions.pod:2410
29621 msgid "guestfs_get_e2label"
29622 msgstr ""
29623
29624 #. type: verbatim
29625 #: ../src/guestfs-actions.pod:2412
29626 #, no-wrap
29627 msgid ""
29628 " char *\n"
29629 " guestfs_get_e2label (guestfs_h *g,\n"
29630 "                      const char *device);\n"
29631 "\n"
29632 msgstr ""
29633
29634 #. type: textblock
29635 #: ../src/guestfs-actions.pod:2416
29636 msgid ""
29637 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
29638 "call instead."
29639 msgstr ""
29640
29641 #. type: textblock
29642 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450
29643 #: ../src/guestfs-actions.pod:6886 ../src/guestfs-actions.pod:6905
29644 msgid "(Added in 1.0.15)"
29645 msgstr "(Додано у 1.0.15)"
29646
29647 #. type: =head2
29648 #: ../src/guestfs-actions.pod:2431
29649 msgid "guestfs_get_e2uuid"
29650 msgstr ""
29651
29652 #. type: verbatim
29653 #: ../src/guestfs-actions.pod:2433
29654 #, no-wrap
29655 msgid ""
29656 " char *\n"
29657 " guestfs_get_e2uuid (guestfs_h *g,\n"
29658 "                     const char *device);\n"
29659 "\n"
29660 msgstr ""
29661
29662 #. type: textblock
29663 #: ../src/guestfs-actions.pod:2437
29664 msgid ""
29665 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
29666 "call instead."
29667 msgstr ""
29668
29669 #. type: =head2
29670 #: ../src/guestfs-actions.pod:2452
29671 msgid "guestfs_get_memsize"
29672 msgstr ""
29673
29674 #. type: verbatim
29675 #: ../src/guestfs-actions.pod:2454
29676 #, no-wrap
29677 msgid ""
29678 " int\n"
29679 " guestfs_get_memsize (guestfs_h *g);\n"
29680 "\n"
29681 msgstr ""
29682
29683 #. type: textblock
29684 #: ../src/guestfs-actions.pod:2460
29685 msgid ""
29686 "If C<guestfs_set_memsize> was not called on this handle, and if "
29687 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
29688 "value for memsize."
29689 msgstr ""
29690
29691 #. type: textblock
29692 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5214
29693 #: ../src/guestfs-actions.pod:5423 ../src/guestfs-actions.pod:5442
29694 #: ../src/guestfs-actions.pod:5461 ../src/guestfs-actions.pod:5473
29695 #: ../src/guestfs-actions.pod:5490 ../src/guestfs-actions.pod:5503
29696 #: ../src/guestfs-actions.pod:6543 ../src/guestfs-actions.pod:6926
29697 #: ../src/guestfs-actions.pod:7216 ../src/guestfs-actions.pod:7950
29698 msgid "(Added in 1.0.55)"
29699 msgstr "(Додано у 1.0.55)"
29700
29701 #. type: =head2
29702 #: ../src/guestfs-actions.pod:2471
29703 msgid "guestfs_get_network"
29704 msgstr ""
29705
29706 #. type: verbatim
29707 #: ../src/guestfs-actions.pod:2473
29708 #, no-wrap
29709 msgid ""
29710 " int\n"
29711 " guestfs_get_network (guestfs_h *g);\n"
29712 "\n"
29713 msgstr ""
29714
29715 #. type: textblock
29716 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6945
29717 msgid "(Added in 1.5.4)"
29718 msgstr "(Додано у 1.5.4)"
29719
29720 #. type: =head2
29721 #: ../src/guestfs-actions.pod:2482
29722 msgid "guestfs_get_path"
29723 msgstr ""
29724
29725 #. type: verbatim
29726 #: ../src/guestfs-actions.pod:2484
29727 #, no-wrap
29728 msgid ""
29729 " const char *\n"
29730 " guestfs_get_path (guestfs_h *g);\n"
29731 "\n"
29732 msgstr ""
29733
29734 #. type: textblock
29735 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
29736 msgid ""
29737 "This function returns a string, or NULL on error.  The string is owned by "
29738 "the guest handle and must I<not> be freed."
29739 msgstr ""
29740
29741 #. type: =head2
29742 #: ../src/guestfs-actions.pod:2497
29743 msgid "guestfs_get_pgroup"
29744 msgstr ""
29745
29746 #. type: verbatim
29747 #: ../src/guestfs-actions.pod:2499
29748 #, no-wrap
29749 msgid ""
29750 " int\n"
29751 " guestfs_get_pgroup (guestfs_h *g);\n"
29752 "\n"
29753 msgstr ""
29754
29755 #. type: textblock
29756 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6981
29757 #: ../src/guestfs-actions.pod:8442
29758 msgid "(Added in 1.11.18)"
29759 msgstr "(Додано у 1.11.18)"
29760
29761 #. type: =head2
29762 #: ../src/guestfs-actions.pod:2508
29763 msgid "guestfs_get_pid"
29764 msgstr ""
29765
29766 #. type: verbatim
29767 #: ../src/guestfs-actions.pod:2510
29768 #, no-wrap
29769 msgid ""
29770 " int\n"
29771 " guestfs_get_pid (guestfs_h *g);\n"
29772 "\n"
29773 msgstr ""
29774
29775 #. type: textblock
29776 #: ../src/guestfs-actions.pod:2520
29777 msgid "(Added in 1.0.56)"
29778 msgstr "(Додано у 1.0.56)"
29779
29780 #. type: =head2
29781 #: ../src/guestfs-actions.pod:2522
29782 msgid "guestfs_get_qemu"
29783 msgstr ""
29784
29785 #. type: verbatim
29786 #: ../src/guestfs-actions.pod:2524
29787 #, no-wrap
29788 msgid ""
29789 " const char *\n"
29790 " guestfs_get_qemu (guestfs_h *g);\n"
29791 "\n"
29792 msgstr ""
29793
29794 #. type: textblock
29795 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:7009
29796 msgid "(Added in 1.0.6)"
29797 msgstr "(Додано у 1.0.6)"
29798
29799 #. type: =head2
29800 #: ../src/guestfs-actions.pod:2537
29801 msgid "guestfs_get_recovery_proc"
29802 msgstr ""
29803
29804 #. type: verbatim
29805 #: ../src/guestfs-actions.pod:2539
29806 #, no-wrap
29807 msgid ""
29808 " int\n"
29809 " guestfs_get_recovery_proc (guestfs_h *g);\n"
29810 "\n"
29811 msgstr ""
29812
29813 #. type: textblock
29814 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4134
29815 #: ../src/guestfs-actions.pod:4478 ../src/guestfs-actions.pod:4872
29816 #: ../src/guestfs-actions.pod:5053 ../src/guestfs-actions.pod:6248
29817 #: ../src/guestfs-actions.pod:6591 ../src/guestfs-actions.pod:7033
29818 #: ../src/guestfs-actions.pod:7731 ../src/guestfs-actions.pod:7751
29819 #: ../src/guestfs-actions.pod:8065
29820 msgid "(Added in 1.0.77)"
29821 msgstr "(Додано у 1.0.77)"
29822
29823 #. type: =head2
29824 #: ../src/guestfs-actions.pod:2548
29825 msgid "guestfs_get_selinux"
29826 msgstr ""
29827
29828 #. type: verbatim
29829 #: ../src/guestfs-actions.pod:2550
29830 #, no-wrap
29831 msgid ""
29832 " int\n"
29833 " guestfs_get_selinux (guestfs_h *g);\n"
29834 "\n"
29835 msgstr ""
29836
29837 #. type: textblock
29838 #: ../src/guestfs-actions.pod:2553
29839 msgid ""
29840 "This returns the current setting of the selinux flag which is passed to the "
29841 "appliance at boot time.  See C<guestfs_set_selinux>."
29842 msgstr ""
29843
29844 #. type: textblock
29845 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635
29846 #: ../src/guestfs-actions.pod:7052 ../src/guestfs-actions.pod:7126
29847 msgid "(Added in 1.0.67)"
29848 msgstr "(Додано у 1.0.67)"
29849
29850 #. type: =head2
29851 #: ../src/guestfs-actions.pod:2563
29852 msgid "guestfs_get_smp"
29853 msgstr ""
29854
29855 #. type: verbatim
29856 #: ../src/guestfs-actions.pod:2565
29857 #, no-wrap
29858 msgid ""
29859 " int\n"
29860 " guestfs_get_smp (guestfs_h *g);\n"
29861 "\n"
29862 msgstr ""
29863
29864 #. type: =head2
29865 #: ../src/guestfs-actions.pod:2574
29866 msgid "guestfs_get_state"
29867 msgstr ""
29868
29869 #. type: verbatim
29870 #: ../src/guestfs-actions.pod:2576
29871 #, no-wrap
29872 msgid ""
29873 " int\n"
29874 " guestfs_get_state (guestfs_h *g);\n"
29875 "\n"
29876 msgstr ""
29877
29878 #. type: =head2
29879 #: ../src/guestfs-actions.pod:2588
29880 msgid "guestfs_get_trace"
29881 msgstr ""
29882
29883 #. type: verbatim
29884 #: ../src/guestfs-actions.pod:2590
29885 #, no-wrap
29886 msgid ""
29887 " int\n"
29888 " guestfs_get_trace (guestfs_h *g);\n"
29889 "\n"
29890 msgstr ""
29891
29892 #. type: =head2
29893 #: ../src/guestfs-actions.pod:2599
29894 msgid "guestfs_get_umask"
29895 msgstr ""
29896
29897 #. type: verbatim
29898 #: ../src/guestfs-actions.pod:2601
29899 #, no-wrap
29900 msgid ""
29901 " int\n"
29902 " guestfs_get_umask (guestfs_h *g);\n"
29903 "\n"
29904 msgstr ""
29905
29906 #. type: textblock
29907 #: ../src/guestfs-actions.pod:2604
29908 msgid ""
29909 "Return the current umask.  By default the umask is C<022> unless it has been "
29910 "set by calling C<guestfs_umask>."
29911 msgstr ""
29912
29913 #. type: =head2
29914 #: ../src/guestfs-actions.pod:2611
29915 msgid "guestfs_get_verbose"
29916 msgstr ""
29917
29918 #. type: verbatim
29919 #: ../src/guestfs-actions.pod:2613
29920 #, no-wrap
29921 msgid ""
29922 " int\n"
29923 " guestfs_get_verbose (guestfs_h *g);\n"
29924 "\n"
29925 msgstr ""
29926
29927 #. type: =head2
29928 #: ../src/guestfs-actions.pod:2622
29929 msgid "guestfs_getcon"
29930 msgstr ""
29931
29932 #. type: verbatim
29933 #: ../src/guestfs-actions.pod:2624
29934 #, no-wrap
29935 msgid ""
29936 " char *\n"
29937 " guestfs_getcon (guestfs_h *g);\n"
29938 "\n"
29939 msgstr ""
29940
29941 #. type: textblock
29942 #: ../src/guestfs-actions.pod:2629
29943 msgid ""
29944 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
29945 msgstr ""
29946
29947 #. type: =head2
29948 #: ../src/guestfs-actions.pod:2637
29949 msgid "guestfs_getxattr"
29950 msgstr ""
29951
29952 #. type: verbatim
29953 #: ../src/guestfs-actions.pod:2639
29954 #, no-wrap
29955 msgid ""
29956 " char *\n"
29957 " guestfs_getxattr (guestfs_h *g,\n"
29958 "                   const char *path,\n"
29959 "                   const char *name,\n"
29960 "                   size_t *size_r);\n"
29961 "\n"
29962 msgstr ""
29963
29964 #. type: textblock
29965 #: ../src/guestfs-actions.pod:2645
29966 msgid ""
29967 "Get a single extended attribute from file C<path> named C<name>.  This call "
29968 "follows symlinks.  If you want to lookup an extended attribute for the "
29969 "symlink itself, use C<guestfs_lgetxattr>."
29970 msgstr ""
29971
29972 #. type: textblock
29973 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4148
29974 msgid ""
29975 "Normally it is better to get all extended attributes from a file in one go "
29976 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
29977 "implementations are buggy and do not provide a way to list out attributes.  "
29978 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
29979 "extended attributes you want in advance and call this function."
29980 msgstr ""
29981
29982 #. type: textblock
29983 #: ../src/guestfs-actions.pod:2659
29984 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
29985 msgstr ""
29986
29987 #. type: textblock
29988 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874
29989 #: ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4160
29990 #: ../src/guestfs-actions.pod:6241 ../src/guestfs-actions.pod:6267
29991 #: ../src/guestfs-actions.pod:6448
29992 msgid ""
29993 "This function returns a buffer, or NULL on error.  The size of the returned "
29994 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
29995 "after use>."
29996 msgstr ""
29997
29998 #. type: textblock
29999 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4164
30000 msgid "(Added in 1.7.24)"
30001 msgstr "(Додано у 1.7.24)"
30002
30003 #. type: =head2
30004 #: ../src/guestfs-actions.pod:2667
30005 msgid "guestfs_getxattrs"
30006 msgstr ""
30007
30008 #. type: verbatim
30009 #: ../src/guestfs-actions.pod:2669
30010 #, no-wrap
30011 msgid ""
30012 " struct guestfs_xattr_list *\n"
30013 " guestfs_getxattrs (guestfs_h *g,\n"
30014 "                    const char *path);\n"
30015 "\n"
30016 msgstr ""
30017
30018 #. type: textblock
30019 #: ../src/guestfs-actions.pod:2679
30020 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
30021 msgstr ""
30022
30023 #. type: textblock
30024 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4176
30025 #: ../src/guestfs-actions.pod:4868
30026 msgid ""
30027 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
30028 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
30029 msgstr ""
30030
30031 #. type: textblock
30032 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4180
30033 #: ../src/guestfs-actions.pod:4392 ../src/guestfs-actions.pod:4428
30034 #: ../src/guestfs-actions.pod:6621 ../src/guestfs-actions.pod:7145
30035 #: ../src/guestfs-actions.pod:8650
30036 msgid "(Added in 1.0.59)"
30037 msgstr "(Додано у 1.0.59)"
30038
30039 #. type: =head2
30040 #: ../src/guestfs-actions.pod:2687
30041 msgid "guestfs_glob_expand"
30042 msgstr ""
30043
30044 #. type: verbatim
30045 #: ../src/guestfs-actions.pod:2689
30046 #, no-wrap
30047 msgid ""
30048 " char **\n"
30049 " guestfs_glob_expand (guestfs_h *g,\n"
30050 "                      const char *pattern);\n"
30051 "\n"
30052 msgstr ""
30053
30054 #. type: textblock
30055 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7329
30056 #: ../src/guestfs-actions.pod:7346
30057 msgid "(Added in 1.0.50)"
30058 msgstr "(Додано у 1.0.50)"
30059
30060 #. type: =head2
30061 #: ../src/guestfs-actions.pod:2710
30062 msgid "guestfs_grep"
30063 msgstr ""
30064
30065 #. type: verbatim
30066 #: ../src/guestfs-actions.pod:2712
30067 #, no-wrap
30068 msgid ""
30069 " char **\n"
30070 " guestfs_grep (guestfs_h *g,\n"
30071 "               const char *regex,\n"
30072 "               const char *path);\n"
30073 "\n"
30074 msgstr ""
30075
30076 #. type: =head2
30077 #: ../src/guestfs-actions.pod:2729
30078 msgid "guestfs_grepi"
30079 msgstr ""
30080
30081 #. type: verbatim
30082 #: ../src/guestfs-actions.pod:2731
30083 #, no-wrap
30084 msgid ""
30085 " char **\n"
30086 " guestfs_grepi (guestfs_h *g,\n"
30087 "                const char *regex,\n"
30088 "                const char *path);\n"
30089 "\n"
30090 msgstr ""
30091
30092 #. type: =head2
30093 #: ../src/guestfs-actions.pod:2748
30094 msgid "guestfs_grub_install"
30095 msgstr ""
30096
30097 #. type: verbatim
30098 #: ../src/guestfs-actions.pod:2750
30099 #, no-wrap
30100 msgid ""
30101 " int\n"
30102 " guestfs_grub_install (guestfs_h *g,\n"
30103 "                       const char *root,\n"
30104 "                       const char *device);\n"
30105 "\n"
30106 msgstr ""
30107
30108 #. type: textblock
30109 #: ../src/guestfs-actions.pod:2793
30110 msgid "(Added in 1.0.17)"
30111 msgstr "(Додано у 1.0.17)"
30112
30113 #. type: =head2
30114 #: ../src/guestfs-actions.pod:2795
30115 msgid "guestfs_head"
30116 msgstr ""
30117
30118 #. type: verbatim
30119 #: ../src/guestfs-actions.pod:2797
30120 #, no-wrap
30121 msgid ""
30122 " char **\n"
30123 " guestfs_head (guestfs_h *g,\n"
30124 "               const char *path);\n"
30125 "\n"
30126 msgstr ""
30127
30128 #. type: =head2
30129 #: ../src/guestfs-actions.pod:2813
30130 msgid "guestfs_head_n"
30131 msgstr ""
30132
30133 #. type: verbatim
30134 #: ../src/guestfs-actions.pod:2815
30135 #, no-wrap
30136 msgid ""
30137 " char **\n"
30138 " guestfs_head_n (guestfs_h *g,\n"
30139 "                 int nrlines,\n"
30140 "                 const char *path);\n"
30141 "\n"
30142 msgstr ""
30143
30144 #. type: =head2
30145 #: ../src/guestfs-actions.pod:2837
30146 msgid "guestfs_hexdump"
30147 msgstr ""
30148
30149 #. type: verbatim
30150 #: ../src/guestfs-actions.pod:2839
30151 #, no-wrap
30152 msgid ""
30153 " char *\n"
30154 " guestfs_hexdump (guestfs_h *g,\n"
30155 "                  const char *path);\n"
30156 "\n"
30157 msgstr ""
30158
30159 #. type: textblock
30160 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7410
30161 #: ../src/guestfs-actions.pod:7465
30162 msgid "(Added in 1.0.22)"
30163 msgstr "(Додано у 1.0.22)"
30164
30165 #. type: =head2
30166 #: ../src/guestfs-actions.pod:2854
30167 msgid "guestfs_initrd_cat"
30168 msgstr ""
30169
30170 #. type: verbatim
30171 #: ../src/guestfs-actions.pod:2856
30172 #, no-wrap
30173 msgid ""
30174 " char *\n"
30175 " guestfs_initrd_cat (guestfs_h *g,\n"
30176 "                     const char *initrdpath,\n"
30177 "                     const char *filename,\n"
30178 "                     size_t *size_r);\n"
30179 "\n"
30180 msgstr ""
30181
30182 #. type: textblock
30183 #: ../src/guestfs-actions.pod:2872
30184 msgid "See also C<guestfs_initrd_list>."
30185 msgstr ""
30186
30187 #. type: =head2
30188 #: ../src/guestfs-actions.pod:2883
30189 msgid "guestfs_initrd_list"
30190 msgstr ""
30191
30192 #. type: verbatim
30193 #: ../src/guestfs-actions.pod:2885
30194 #, no-wrap
30195 msgid ""
30196 " char **\n"
30197 " guestfs_initrd_list (guestfs_h *g,\n"
30198 "                      const char *path);\n"
30199 "\n"
30200 msgstr ""
30201
30202 #. type: =head2
30203 #: ../src/guestfs-actions.pod:2905
30204 msgid "guestfs_inotify_add_watch"
30205 msgstr ""
30206
30207 #. type: verbatim
30208 #: ../src/guestfs-actions.pod:2907
30209 #, no-wrap
30210 msgid ""
30211 " int64_t\n"
30212 " guestfs_inotify_add_watch (guestfs_h *g,\n"
30213 "                            const char *path,\n"
30214 "                            int mask);\n"
30215 "\n"
30216 msgstr ""
30217
30218 #. type: =head2
30219 #: ../src/guestfs-actions.pod:2926
30220 msgid "guestfs_inotify_close"
30221 msgstr ""
30222
30223 #. type: verbatim
30224 #: ../src/guestfs-actions.pod:2928
30225 #, no-wrap
30226 msgid ""
30227 " int\n"
30228 " guestfs_inotify_close (guestfs_h *g);\n"
30229 "\n"
30230 msgstr ""
30231
30232 #. type: =head2
30233 #: ../src/guestfs-actions.pod:2939
30234 msgid "guestfs_inotify_files"
30235 msgstr ""
30236
30237 #. type: verbatim
30238 #: ../src/guestfs-actions.pod:2941
30239 #, no-wrap
30240 msgid ""
30241 " char **\n"
30242 " guestfs_inotify_files (guestfs_h *g);\n"
30243 "\n"
30244 msgstr ""
30245
30246 #. type: textblock
30247 #: ../src/guestfs-actions.pod:2944
30248 msgid ""
30249 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
30250 "returns a list of pathnames of objects that were touched.  The returned "
30251 "pathnames are sorted and deduplicated."
30252 msgstr ""
30253
30254 #. type: =head2
30255 #: ../src/guestfs-actions.pod:2954
30256 msgid "guestfs_inotify_init"
30257 msgstr ""
30258
30259 #. type: verbatim
30260 #: ../src/guestfs-actions.pod:2956
30261 #, no-wrap
30262 msgid ""
30263 " int\n"
30264 " guestfs_inotify_init (guestfs_h *g,\n"
30265 "                       int maxevents);\n"
30266 "\n"
30267 msgstr ""
30268
30269 #. type: textblock
30270 #: ../src/guestfs-actions.pod:2964
30271 msgid ""
30272 "C<maxevents> is the maximum number of events which will be queued up between "
30273 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
30274 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
30275 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
30276 "throws away events, but records the fact that it threw them away by setting "
30277 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
30278 "C<guestfs_inotify_read>)."
30279 msgstr ""
30280
30281 #. type: textblock
30282 #: ../src/guestfs-actions.pod:2974
30283 msgid ""
30284 "Before any events are generated, you have to add some watches to the "
30285 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
30286 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
30287 msgstr ""
30288
30289 #. type: textblock
30290 #: ../src/guestfs-actions.pod:2980
30291 msgid ""
30292 "Queued up events should be read periodically by calling "
30293 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
30294 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
30295 "often enough then you risk the internal queue overflowing."
30296 msgstr ""
30297
30298 #. type: textblock
30299 #: ../src/guestfs-actions.pod:2987
30300 msgid ""
30301 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
30302 "This also removes any watches automatically."
30303 msgstr ""
30304
30305 #. type: =head2
30306 #: ../src/guestfs-actions.pod:3000
30307 msgid "guestfs_inotify_read"
30308 msgstr ""
30309
30310 #. type: verbatim
30311 #: ../src/guestfs-actions.pod:3002
30312 #, no-wrap
30313 msgid ""
30314 " struct guestfs_inotify_event_list *\n"
30315 " guestfs_inotify_read (guestfs_h *g);\n"
30316 "\n"
30317 msgstr ""
30318
30319 #. type: textblock
30320 #: ../src/guestfs-actions.pod:3016
30321 msgid ""
30322 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
30323 "there was an error.  I<The caller must call "
30324 "C<guestfs_free_inotify_event_list> after use>."
30325 msgstr ""
30326
30327 #. type: =head2
30328 #: ../src/guestfs-actions.pod:3022
30329 msgid "guestfs_inotify_rm_watch"
30330 msgstr ""
30331
30332 #. type: verbatim
30333 #: ../src/guestfs-actions.pod:3024
30334 #, no-wrap
30335 msgid ""
30336 " int\n"
30337 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
30338 "                           int wd);\n"
30339 "\n"
30340 msgstr ""
30341
30342 #. type: textblock
30343 #: ../src/guestfs-actions.pod:3028
30344 msgid ""
30345 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
30346 msgstr ""
30347
30348 #. type: =head2
30349 #: ../src/guestfs-actions.pod:3035
30350 msgid "guestfs_inspect_get_arch"
30351 msgstr ""
30352
30353 #. type: verbatim
30354 #: ../src/guestfs-actions.pod:3037
30355 #, no-wrap
30356 msgid ""
30357 " char *\n"
30358 " guestfs_inspect_get_arch (guestfs_h *g,\n"
30359 "                           const char *root);\n"
30360 "\n"
30361 msgstr ""
30362
30363 #. type: textblock
30364 #: ../src/guestfs-actions.pod:3041
30365 msgid ""
30366 "This returns the architecture of the inspected operating system.  The "
30367 "possible return values are listed under C<guestfs_file_architecture>."
30368 msgstr ""
30369
30370 #. type: =head2
30371 #: ../src/guestfs-actions.pod:3055
30372 msgid "guestfs_inspect_get_distro"
30373 msgstr ""
30374
30375 #. type: verbatim
30376 #: ../src/guestfs-actions.pod:3057
30377 #, no-wrap
30378 msgid ""
30379 " char *\n"
30380 " guestfs_inspect_get_distro (guestfs_h *g,\n"
30381 "                             const char *root);\n"
30382 "\n"
30383 msgstr ""
30384
30385 #. type: =head2
30386 #: ../src/guestfs-actions.pod:3157
30387 msgid "guestfs_inspect_get_drive_mappings"
30388 msgstr ""
30389
30390 #. type: verbatim
30391 #: ../src/guestfs-actions.pod:3159
30392 #, no-wrap
30393 msgid ""
30394 " char **\n"
30395 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
30396 "                                     const char *root);\n"
30397 "\n"
30398 msgstr ""
30399
30400 #. type: textblock
30401 #: ../src/guestfs-actions.pod:3188
30402 msgid ""
30403 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
30404 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
30405 msgstr ""
30406
30407 #. type: textblock
30408 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460
30409 #: ../src/guestfs-actions.pod:4267 ../src/guestfs-actions.pod:5006
30410 #: ../src/guestfs-actions.pod:5692 ../src/guestfs-actions.pod:7889
30411 msgid ""
30412 "This function returns a NULL-terminated array of strings, or NULL if there "
30413 "was an error.  The array of strings will always have length C<2n+1>, where "
30414 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
30415 "caller must free the strings and the array after use>."
30416 msgstr ""
30417
30418 #. type: textblock
30419 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3663
30420 msgid "(Added in 1.9.17)"
30421 msgstr "(Додано у 1.9.17)"
30422
30423 #. type: =head2
30424 #: ../src/guestfs-actions.pod:3200
30425 msgid "guestfs_inspect_get_filesystems"
30426 msgstr ""
30427
30428 #. type: verbatim
30429 #: ../src/guestfs-actions.pod:3202
30430 #, no-wrap
30431 msgid ""
30432 " char **\n"
30433 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
30434 "                                  const char *root);\n"
30435 "\n"
30436 msgstr ""
30437
30438 #. type: textblock
30439 #: ../src/guestfs-actions.pod:3214
30440 msgid ""
30441 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
30442 "C<guestfs_inspect_get_mountpoints>."
30443 msgstr ""
30444
30445 #. type: =head2
30446 #: ../src/guestfs-actions.pod:3223
30447 msgid "guestfs_inspect_get_format"
30448 msgstr ""
30449
30450 #. type: verbatim
30451 #: ../src/guestfs-actions.pod:3225
30452 #, no-wrap
30453 msgid ""
30454 " char *\n"
30455 " guestfs_inspect_get_format (guestfs_h *g,\n"
30456 "                             const char *root);\n"
30457 "\n"
30458 msgstr ""
30459
30460 #. type: textblock
30461 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3699
30462 #: ../src/guestfs-actions.pod:3715 ../src/guestfs-actions.pod:3733
30463 #: ../src/guestfs-actions.pod:6659
30464 msgid "(Added in 1.9.4)"
30465 msgstr "(Додано у 1.9.4)"
30466
30467 #. type: =head2
30468 #: ../src/guestfs-actions.pod:3261
30469 msgid "guestfs_inspect_get_hostname"
30470 msgstr ""
30471
30472 #. type: verbatim
30473 #: ../src/guestfs-actions.pod:3263
30474 #, no-wrap
30475 msgid ""
30476 " char *\n"
30477 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
30478 "                               const char *root);\n"
30479 "\n"
30480 msgstr ""
30481
30482 #. type: textblock
30483 #: ../src/guestfs-actions.pod:3278
30484 msgid "(Added in 1.7.9)"
30485 msgstr "(Додано у 1.7.9)"
30486
30487 #. type: =head2
30488 #: ../src/guestfs-actions.pod:3280
30489 msgid "guestfs_inspect_get_icon"
30490 msgstr ""
30491
30492 #. type: verbatim
30493 #: ../src/guestfs-actions.pod:3282
30494 #, no-wrap
30495 msgid ""
30496 " char *\n"
30497 " guestfs_inspect_get_icon (guestfs_h *g,\n"
30498 "                           const char *root,\n"
30499 "                           size_t *size_r,\n"
30500 "                           ...);\n"
30501 "\n"
30502 msgstr ""
30503
30504 #. type: verbatim
30505 #: ../src/guestfs-actions.pod:3293
30506 #, no-wrap
30507 msgid ""
30508 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
30509 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
30510 "\n"
30511 msgstr ""
30512
30513 #. type: textblock
30514 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4194
30515 #: ../src/guestfs-actions.pod:5591
30516 msgid "(Added in 1.11.12)"
30517 msgstr "(Додано у 1.11.12)"
30518
30519 #. type: =head2
30520 #: ../src/guestfs-actions.pod:3362
30521 msgid "guestfs_inspect_get_icon_va"
30522 msgstr ""
30523
30524 #. type: verbatim
30525 #: ../src/guestfs-actions.pod:3364
30526 #, no-wrap
30527 msgid ""
30528 " char *\n"
30529 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
30530 "                              const char *root,\n"
30531 "                              size_t *size_r,\n"
30532 "                              va_list args);\n"
30533 "\n"
30534 msgstr ""
30535
30536 #. type: textblock
30537 #: ../src/guestfs-actions.pod:3370
30538 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
30539 msgstr ""
30540
30541 #. type: =head2
30542 #: ../src/guestfs-actions.pod:3374
30543 msgid "guestfs_inspect_get_icon_argv"
30544 msgstr ""
30545
30546 #. type: verbatim
30547 #: ../src/guestfs-actions.pod:3376
30548 #, no-wrap
30549 msgid ""
30550 " char *\n"
30551 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
30552 "                                const char *root,\n"
30553 "                                size_t *size_r,\n"
30554 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
30555 "\n"
30556 msgstr ""
30557
30558 #. type: textblock
30559 #: ../src/guestfs-actions.pod:3382
30560 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
30561 msgstr ""
30562
30563 #. type: =head2
30564 #: ../src/guestfs-actions.pod:3386
30565 msgid "guestfs_inspect_get_major_version"
30566 msgstr ""
30567
30568 #. type: verbatim
30569 #: ../src/guestfs-actions.pod:3388
30570 #, no-wrap
30571 msgid ""
30572 " int\n"
30573 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
30574 "                                    const char *root);\n"
30575 "\n"
30576 msgstr ""
30577
30578 #. type: =head2
30579 #: ../src/guestfs-actions.pod:3410
30580 msgid "guestfs_inspect_get_minor_version"
30581 msgstr ""
30582
30583 #. type: verbatim
30584 #: ../src/guestfs-actions.pod:3412
30585 #, no-wrap
30586 msgid ""
30587 " int\n"
30588 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
30589 "                                    const char *root);\n"
30590 "\n"
30591 msgstr ""
30592
30593 #. type: textblock
30594 #: ../src/guestfs-actions.pod:3421
30595 msgid ""
30596 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
30597 "C<guestfs_inspect_get_major_version>."
30598 msgstr ""
30599
30600 #. type: =head2
30601 #: ../src/guestfs-actions.pod:3428
30602 msgid "guestfs_inspect_get_mountpoints"
30603 msgstr ""
30604
30605 #. type: verbatim
30606 #: ../src/guestfs-actions.pod:3430
30607 #, no-wrap
30608 msgid ""
30609 " char **\n"
30610 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
30611 "                                  const char *root);\n"
30612 "\n"
30613 msgstr ""
30614
30615 #. type: textblock
30616 #: ../src/guestfs-actions.pod:3451
30617 msgid ""
30618 "For operating systems like Windows which still use drive letters, this call "
30619 "will only return an entry for the first drive \"mounted on\" C</>.  For "
30620 "information about the mapping of drive letters to partitions, see "
30621 "C<guestfs_inspect_get_drive_mappings>."
30622 msgstr ""
30623
30624 #. type: textblock
30625 #: ../src/guestfs-actions.pod:3457
30626 msgid ""
30627 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
30628 "C<guestfs_inspect_get_filesystems>."
30629 msgstr ""
30630
30631 #. type: =head2
30632 #: ../src/guestfs-actions.pod:3468
30633 msgid "guestfs_inspect_get_package_format"
30634 msgstr ""
30635
30636 #. type: verbatim
30637 #: ../src/guestfs-actions.pod:3470
30638 #, no-wrap
30639 msgid ""
30640 " char *\n"
30641 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
30642 "                                     const char *root);\n"
30643 "\n"
30644 msgstr ""
30645
30646 #. type: textblock
30647 #: ../src/guestfs-actions.pod:3474
30648 msgid ""
30649 "This function and C<guestfs_inspect_get_package_management> return the "
30650 "package format and package management tool used by the inspected operating "
30651 "system.  For example for Fedora these functions would return C<rpm> (package "
30652 "format) and C<yum> (package management)."
30653 msgstr ""
30654
30655 #. type: textblock
30656 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
30657 msgid "(Added in 1.7.5)"
30658 msgstr "(Додано у 1.7.5)"
30659
30660 #. type: =head2
30661 #: ../src/guestfs-actions.pod:3495
30662 msgid "guestfs_inspect_get_package_management"
30663 msgstr ""
30664
30665 #. type: verbatim
30666 #: ../src/guestfs-actions.pod:3497
30667 #, no-wrap
30668 msgid ""
30669 " char *\n"
30670 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
30671 "                                         const char *root);\n"
30672 "\n"
30673 msgstr ""
30674
30675 #. type: textblock
30676 #: ../src/guestfs-actions.pod:3501
30677 msgid ""
30678 "C<guestfs_inspect_get_package_format> and this function return the package "
30679 "format and package management tool used by the inspected operating system.  "
30680 "For example for Fedora these functions would return C<rpm> (package format) "
30681 "and C<yum> (package management)."
30682 msgstr ""
30683
30684 #. type: =head2
30685 #: ../src/guestfs-actions.pod:3523
30686 msgid "guestfs_inspect_get_product_name"
30687 msgstr ""
30688
30689 #. type: verbatim
30690 #: ../src/guestfs-actions.pod:3525
30691 #, no-wrap
30692 msgid ""
30693 " char *\n"
30694 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
30695 "                                   const char *root);\n"
30696 "\n"
30697 msgstr ""
30698
30699 #. type: =head2
30700 #: ../src/guestfs-actions.pod:3544
30701 msgid "guestfs_inspect_get_product_variant"
30702 msgstr ""
30703
30704 #. type: verbatim
30705 #: ../src/guestfs-actions.pod:3546
30706 #, no-wrap
30707 msgid ""
30708 " char *\n"
30709 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
30710 "                                      const char *root);\n"
30711 "\n"
30712 msgstr ""
30713
30714 #. type: textblock
30715 #: ../src/guestfs-actions.pod:3569
30716 msgid ""
30717 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
30718 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
30719 msgstr ""
30720
30721 #. type: textblock
30722 #: ../src/guestfs-actions.pod:3576
30723 msgid "(Added in 1.9.13)"
30724 msgstr "(Додано у 1.9.13)"
30725
30726 #. type: =head2
30727 #: ../src/guestfs-actions.pod:3578
30728 msgid "guestfs_inspect_get_roots"
30729 msgstr ""
30730
30731 #. type: verbatim
30732 #: ../src/guestfs-actions.pod:3580
30733 #, no-wrap
30734 msgid ""
30735 " char **\n"
30736 " guestfs_inspect_get_roots (guestfs_h *g);\n"
30737 "\n"
30738 msgstr ""
30739
30740 #. type: textblock
30741 #: ../src/guestfs-actions.pod:3583
30742 msgid ""
30743 "This function is a convenient way to get the list of root devices, as "
30744 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
30745 "the whole inspection process."
30746 msgstr ""
30747
30748 #. type: textblock
30749 #: ../src/guestfs-actions.pod:3587
30750 msgid ""
30751 "This returns an empty list if either no root devices were found or the "
30752 "caller has not called C<guestfs_inspect_os>."
30753 msgstr ""
30754
30755 #. type: textblock
30756 #: ../src/guestfs-actions.pod:3596
30757 msgid "(Added in 1.7.3)"
30758 msgstr "(Додано у 1.7.3)"
30759
30760 #. type: =head2
30761 #: ../src/guestfs-actions.pod:3598
30762 msgid "guestfs_inspect_get_type"
30763 msgstr ""
30764
30765 #. type: verbatim
30766 #: ../src/guestfs-actions.pod:3600
30767 #, no-wrap
30768 msgid ""
30769 " char *\n"
30770 " guestfs_inspect_get_type (guestfs_h *g,\n"
30771 "                           const char *root);\n"
30772 "\n"
30773 msgstr ""
30774
30775 #. type: =head2
30776 #: ../src/guestfs-actions.pod:3645
30777 msgid "guestfs_inspect_get_windows_current_control_set"
30778 msgstr ""
30779
30780 #. type: verbatim
30781 #: ../src/guestfs-actions.pod:3647
30782 #, no-wrap
30783 msgid ""
30784 " char *\n"
30785 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
30786 "                                                  const char *root);\n"
30787 "\n"
30788 msgstr ""
30789
30790 #. type: =head2
30791 #: ../src/guestfs-actions.pod:3665
30792 msgid "guestfs_inspect_get_windows_systemroot"
30793 msgstr ""
30794
30795 #. type: verbatim
30796 #: ../src/guestfs-actions.pod:3667
30797 #, no-wrap
30798 msgid ""
30799 " char *\n"
30800 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
30801 "                                         const char *root);\n"
30802 "\n"
30803 msgstr ""
30804
30805 #. type: textblock
30806 #: ../src/guestfs-actions.pod:3683
30807 msgid "(Added in 1.5.25)"
30808 msgstr "(Додано у 1.5.25)"
30809
30810 #. type: =head2
30811 #: ../src/guestfs-actions.pod:3685
30812 msgid "guestfs_inspect_is_live"
30813 msgstr ""
30814
30815 #. type: verbatim
30816 #: ../src/guestfs-actions.pod:3687
30817 #, no-wrap
30818 msgid ""
30819 " int\n"
30820 " guestfs_inspect_is_live (guestfs_h *g,\n"
30821 "                          const char *root);\n"
30822 "\n"
30823 msgstr ""
30824
30825 #. type: textblock
30826 #: ../src/guestfs-actions.pod:3691
30827 msgid ""
30828 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30829 "disk), then this returns true if a live image was detected on the disk."
30830 msgstr ""
30831
30832 #. type: =head2
30833 #: ../src/guestfs-actions.pod:3701
30834 msgid "guestfs_inspect_is_multipart"
30835 msgstr ""
30836
30837 #. type: verbatim
30838 #: ../src/guestfs-actions.pod:3703
30839 #, no-wrap
30840 msgid ""
30841 " int\n"
30842 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
30843 "                               const char *root);\n"
30844 "\n"
30845 msgstr ""
30846
30847 #. type: textblock
30848 #: ../src/guestfs-actions.pod:3707
30849 msgid ""
30850 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30851 "disk), then this returns true if the disk is part of a set."
30852 msgstr ""
30853
30854 #. type: =head2
30855 #: ../src/guestfs-actions.pod:3717
30856 msgid "guestfs_inspect_is_netinst"
30857 msgstr ""
30858
30859 #. type: verbatim
30860 #: ../src/guestfs-actions.pod:3719
30861 #, no-wrap
30862 msgid ""
30863 " int\n"
30864 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
30865 "                             const char *root);\n"
30866 "\n"
30867 msgstr ""
30868
30869 #. type: textblock
30870 #: ../src/guestfs-actions.pod:3723
30871 msgid ""
30872 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30873 "disk), then this returns true if the disk is a network installer, ie. not a "
30874 "self-contained install CD but one which is likely to require network access "
30875 "to complete the install."
30876 msgstr ""
30877
30878 #. type: =head2
30879 #: ../src/guestfs-actions.pod:3735
30880 msgid "guestfs_inspect_list_applications"
30881 msgstr ""
30882
30883 #. type: verbatim
30884 #: ../src/guestfs-actions.pod:3737
30885 #, no-wrap
30886 msgid ""
30887 " struct guestfs_application_list *\n"
30888 " guestfs_inspect_list_applications (guestfs_h *g,\n"
30889 "                                    const char *root);\n"
30890 "\n"
30891 msgstr ""
30892
30893 #. type: textblock
30894 #: ../src/guestfs-actions.pod:3743
30895 msgid ""
30896 "I<Note:> This call works differently from other parts of the inspection "
30897 "API.  You have to call C<guestfs_inspect_os>, then "
30898 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
30899 "this.  Listing applications is a significantly more difficult operation "
30900 "which requires access to the full filesystem.  Also note that unlike the "
30901 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
30902 "the libguestfs handle, this call actually reads parts of the mounted "
30903 "filesystems during the call."
30904 msgstr ""
30905
30906 #. type: textblock
30907 #: ../src/guestfs-actions.pod:3833
30908 msgid ""
30909 "This function returns a C<struct guestfs_application_list *>, or NULL if "
30910 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
30911 "after use>."
30912 msgstr ""
30913
30914 #. type: textblock
30915 #: ../src/guestfs-actions.pod:3837
30916 msgid "(Added in 1.7.8)"
30917 msgstr "(Додано у 1.7.8)"
30918
30919 #. type: =head2
30920 #: ../src/guestfs-actions.pod:3839
30921 msgid "guestfs_inspect_os"
30922 msgstr ""
30923
30924 #. type: verbatim
30925 #: ../src/guestfs-actions.pod:3841
30926 #, no-wrap
30927 msgid ""
30928 " char **\n"
30929 " guestfs_inspect_os (guestfs_h *g);\n"
30930 "\n"
30931 msgstr ""
30932
30933 #. type: textblock
30934 #: ../src/guestfs-actions.pod:3857
30935 msgid ""
30936 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
30937 "functions in order to query further information about each operating system, "
30938 "such as the name and version."
30939 msgstr ""
30940
30941 #. type: textblock
30942 #: ../src/guestfs-actions.pod:3862
30943 msgid ""
30944 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
30945 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
30946 "the contents.  This should be called with no disks currently mounted.  The "
30947 "function may also use Augeas, so any existing Augeas handle will be closed."
30948 msgstr ""
30949
30950 #. type: textblock
30951 #: ../src/guestfs-actions.pod:3874 ../src/guestfs-actions.pod:4205
30952 #: ../src/guestfs-actions.pod:4300
30953 msgid "See also C<guestfs_list_filesystems>."
30954 msgstr ""
30955
30956 #. type: =head2
30957 #: ../src/guestfs-actions.pod:3882
30958 msgid "guestfs_is_blockdev"
30959 msgstr ""
30960
30961 #. type: verbatim
30962 #: ../src/guestfs-actions.pod:3884
30963 #, no-wrap
30964 msgid ""
30965 " int\n"
30966 " guestfs_is_blockdev (guestfs_h *g,\n"
30967 "                      const char *path);\n"
30968 "\n"
30969 msgstr ""
30970
30971 #. type: textblock
30972 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920
30973 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3965
30974 #: ../src/guestfs-actions.pod:3981 ../src/guestfs-actions.pod:4037
30975 #: ../src/guestfs-actions.pod:4052
30976 msgid "See also C<guestfs_stat>."
30977 msgstr ""
30978
30979 #. type: textblock
30980 #: ../src/guestfs-actions.pod:3895 ../src/guestfs-actions.pod:3924
30981 #: ../src/guestfs-actions.pod:3969 ../src/guestfs-actions.pod:4041
30982 #: ../src/guestfs-actions.pod:4056
30983 msgid "(Added in 1.5.10)"
30984 msgstr "(Додано у 1.5.10)"
30985
30986 #. type: =head2
30987 #: ../src/guestfs-actions.pod:3897
30988 msgid "guestfs_is_busy"
30989 msgstr ""
30990
30991 #. type: verbatim
30992 #: ../src/guestfs-actions.pod:3899
30993 #, no-wrap
30994 msgid ""
30995 " int\n"
30996 " guestfs_is_busy (guestfs_h *g);\n"
30997 "\n"
30998 msgstr ""
30999
31000 #. type: =head2
31001 #: ../src/guestfs-actions.pod:3911
31002 msgid "guestfs_is_chardev"
31003 msgstr ""
31004
31005 #. type: verbatim
31006 #: ../src/guestfs-actions.pod:3913
31007 #, no-wrap
31008 msgid ""
31009 " int\n"
31010 " guestfs_is_chardev (guestfs_h *g,\n"
31011 "                     const char *path);\n"
31012 "\n"
31013 msgstr ""
31014
31015 #. type: =head2
31016 #: ../src/guestfs-actions.pod:3926
31017 msgid "guestfs_is_config"
31018 msgstr ""
31019
31020 #. type: verbatim
31021 #: ../src/guestfs-actions.pod:3928
31022 #, no-wrap
31023 msgid ""
31024 " int\n"
31025 " guestfs_is_config (guestfs_h *g);\n"
31026 "\n"
31027 msgstr ""
31028
31029 #. type: =head2
31030 #: ../src/guestfs-actions.pod:3940
31031 msgid "guestfs_is_dir"
31032 msgstr ""
31033
31034 #. type: verbatim
31035 #: ../src/guestfs-actions.pod:3942
31036 #, no-wrap
31037 msgid ""
31038 " int\n"
31039 " guestfs_is_dir (guestfs_h *g,\n"
31040 "                 const char *path);\n"
31041 "\n"
31042 msgstr ""
31043
31044 #. type: =head2
31045 #: ../src/guestfs-actions.pod:3956
31046 msgid "guestfs_is_fifo"
31047 msgstr ""
31048
31049 #. type: verbatim
31050 #: ../src/guestfs-actions.pod:3958
31051 #, no-wrap
31052 msgid ""
31053 " int\n"
31054 " guestfs_is_fifo (guestfs_h *g,\n"
31055 "                  const char *path);\n"
31056 "\n"
31057 msgstr ""
31058
31059 #. type: =head2
31060 #: ../src/guestfs-actions.pod:3971
31061 msgid "guestfs_is_file"
31062 msgstr ""
31063
31064 #. type: verbatim
31065 #: ../src/guestfs-actions.pod:3973
31066 #, no-wrap
31067 msgid ""
31068 " int\n"
31069 " guestfs_is_file (guestfs_h *g,\n"
31070 "                  const char *path);\n"
31071 "\n"
31072 msgstr ""
31073
31074 #. type: =head2
31075 #: ../src/guestfs-actions.pod:3987
31076 msgid "guestfs_is_launching"
31077 msgstr ""
31078
31079 #. type: verbatim
31080 #: ../src/guestfs-actions.pod:3989
31081 #, no-wrap
31082 msgid ""
31083 " int\n"
31084 " guestfs_is_launching (guestfs_h *g);\n"
31085 "\n"
31086 msgstr ""
31087
31088 #. type: =head2
31089 #: ../src/guestfs-actions.pod:4001
31090 msgid "guestfs_is_lv"
31091 msgstr ""
31092
31093 #. type: verbatim
31094 #: ../src/guestfs-actions.pod:4003
31095 #, no-wrap
31096 msgid ""
31097 " int\n"
31098 " guestfs_is_lv (guestfs_h *g,\n"
31099 "                const char *device);\n"
31100 "\n"
31101 msgstr ""
31102
31103 #. type: =head2
31104 #: ../src/guestfs-actions.pod:4014
31105 msgid "guestfs_is_ready"
31106 msgstr ""
31107
31108 #. type: verbatim
31109 #: ../src/guestfs-actions.pod:4016
31110 #, no-wrap
31111 msgid ""
31112 " int\n"
31113 " guestfs_is_ready (guestfs_h *g);\n"
31114 "\n"
31115 msgstr ""
31116
31117 #. type: =head2
31118 #: ../src/guestfs-actions.pod:4028
31119 msgid "guestfs_is_socket"
31120 msgstr ""
31121
31122 #. type: verbatim
31123 #: ../src/guestfs-actions.pod:4030
31124 #, no-wrap
31125 msgid ""
31126 " int\n"
31127 " guestfs_is_socket (guestfs_h *g,\n"
31128 "                    const char *path);\n"
31129 "\n"
31130 msgstr ""
31131
31132 #. type: =head2
31133 #: ../src/guestfs-actions.pod:4043
31134 msgid "guestfs_is_symlink"
31135 msgstr ""
31136
31137 #. type: verbatim
31138 #: ../src/guestfs-actions.pod:4045
31139 #, no-wrap
31140 msgid ""
31141 " int\n"
31142 " guestfs_is_symlink (guestfs_h *g,\n"
31143 "                     const char *path);\n"
31144 "\n"
31145 msgstr ""
31146
31147 #. type: =head2
31148 #: ../src/guestfs-actions.pod:4058
31149 msgid "guestfs_is_zero"
31150 msgstr ""
31151
31152 #. type: verbatim
31153 #: ../src/guestfs-actions.pod:4060
31154 #, no-wrap
31155 msgid ""
31156 " int\n"
31157 " guestfs_is_zero (guestfs_h *g,\n"
31158 "                  const char *path);\n"
31159 "\n"
31160 msgstr ""
31161
31162 #. type: textblock
31163 #: ../src/guestfs-actions.pod:4069 ../src/guestfs-actions.pod:4083
31164 msgid "(Added in 1.11.8)"
31165 msgstr "(Додано у 1.11.8)"
31166
31167 #. type: =head2
31168 #: ../src/guestfs-actions.pod:4071
31169 msgid "guestfs_is_zero_device"
31170 msgstr ""
31171
31172 #. type: verbatim
31173 #: ../src/guestfs-actions.pod:4073
31174 #, no-wrap
31175 msgid ""
31176 " int\n"
31177 " guestfs_is_zero_device (guestfs_h *g,\n"
31178 "                         const char *device);\n"
31179 "\n"
31180 msgstr ""
31181
31182 #. type: =head2
31183 #: ../src/guestfs-actions.pod:4085
31184 msgid "guestfs_kill_subprocess"
31185 msgstr ""
31186
31187 #. type: verbatim
31188 #: ../src/guestfs-actions.pod:4087
31189 #, no-wrap
31190 msgid ""
31191 " int\n"
31192 " guestfs_kill_subprocess (guestfs_h *g);\n"
31193 "\n"
31194 msgstr ""
31195
31196 #. type: =head2
31197 #: ../src/guestfs-actions.pod:4096
31198 msgid "guestfs_launch"
31199 msgstr ""
31200
31201 #. type: verbatim
31202 #: ../src/guestfs-actions.pod:4098
31203 #, no-wrap
31204 msgid ""
31205 " int\n"
31206 " guestfs_launch (guestfs_h *g);\n"
31207 "\n"
31208 msgstr ""
31209
31210 #. type: =head2
31211 #: ../src/guestfs-actions.pod:4116
31212 msgid "guestfs_lchown"
31213 msgstr ""
31214
31215 #. type: verbatim
31216 #: ../src/guestfs-actions.pod:4118
31217 #, no-wrap
31218 msgid ""
31219 " int\n"
31220 " guestfs_lchown (guestfs_h *g,\n"
31221 "                 int owner,\n"
31222 "                 int group,\n"
31223 "                 const char *path);\n"
31224 "\n"
31225 msgstr ""
31226
31227 #. type: textblock
31228 #: ../src/guestfs-actions.pod:4124
31229 msgid ""
31230 "Change the file owner to C<owner> and group to C<group>.  This is like "
31231 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
31232 "changed, not the target."
31233 msgstr ""
31234
31235 #. type: =head2
31236 #: ../src/guestfs-actions.pod:4136
31237 msgid "guestfs_lgetxattr"
31238 msgstr ""
31239
31240 #. type: verbatim
31241 #: ../src/guestfs-actions.pod:4138
31242 #, no-wrap
31243 msgid ""
31244 " char *\n"
31245 " guestfs_lgetxattr (guestfs_h *g,\n"
31246 "                    const char *path,\n"
31247 "                    const char *name,\n"
31248 "                    size_t *size_r);\n"
31249 "\n"
31250 msgstr ""
31251
31252 #. type: textblock
31253 #: ../src/guestfs-actions.pod:4158
31254 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
31255 msgstr ""
31256
31257 #. type: =head2
31258 #: ../src/guestfs-actions.pod:4166
31259 msgid "guestfs_lgetxattrs"
31260 msgstr ""
31261
31262 #. type: verbatim
31263 #: ../src/guestfs-actions.pod:4168
31264 #, no-wrap
31265 msgid ""
31266 " struct guestfs_xattr_list *\n"
31267 " guestfs_lgetxattrs (guestfs_h *g,\n"
31268 "                     const char *path);\n"
31269 "\n"
31270 msgstr ""
31271
31272 #. type: textblock
31273 #: ../src/guestfs-actions.pod:4172
31274 msgid ""
31275 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
31276 "then it returns the extended attributes of the link itself."
31277 msgstr ""
31278
31279 #. type: =head2
31280 #: ../src/guestfs-actions.pod:4182
31281 msgid "guestfs_list_9p"
31282 msgstr ""
31283
31284 #. type: verbatim
31285 #: ../src/guestfs-actions.pod:4184
31286 #, no-wrap
31287 msgid ""
31288 " char **\n"
31289 " guestfs_list_9p (guestfs_h *g);\n"
31290 "\n"
31291 msgstr ""
31292
31293 #. type: =head2
31294 #: ../src/guestfs-actions.pod:4196
31295 msgid "guestfs_list_devices"
31296 msgstr ""
31297
31298 #. type: verbatim
31299 #: ../src/guestfs-actions.pod:4198
31300 #, no-wrap
31301 msgid ""
31302 " char **\n"
31303 " guestfs_list_devices (guestfs_h *g);\n"
31304 "\n"
31305 msgstr ""
31306
31307 #. type: =head2
31308 #: ../src/guestfs-actions.pod:4213
31309 msgid "guestfs_list_dm_devices"
31310 msgstr ""
31311
31312 #. type: verbatim
31313 #: ../src/guestfs-actions.pod:4215
31314 #, no-wrap
31315 msgid ""
31316 " char **\n"
31317 " guestfs_list_dm_devices (guestfs_h *g);\n"
31318 "\n"
31319 msgstr ""
31320
31321 #. type: textblock
31322 #: ../src/guestfs-actions.pod:4220
31323 msgid ""
31324 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
31325 "previous call to C<guestfs_luks_open>."
31326 msgstr ""
31327
31328 #. type: textblock
31329 #: ../src/guestfs-actions.pod:4223
31330 msgid ""
31331 "Device mapper devices which correspond to logical volumes are I<not> "
31332 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
31333 "volumes."
31334 msgstr ""
31335
31336 #. type: textblock
31337 #: ../src/guestfs-actions.pod:4231 ../src/guestfs-actions.pod:5830
31338 msgid "(Added in 1.11.15)"
31339 msgstr "(Додано у 1.11.15)"
31340
31341 #. type: =head2
31342 #: ../src/guestfs-actions.pod:4233
31343 msgid "guestfs_list_filesystems"
31344 msgstr ""
31345
31346 #. type: verbatim
31347 #: ../src/guestfs-actions.pod:4235
31348 #, no-wrap
31349 msgid ""
31350 " char **\n"
31351 " guestfs_list_filesystems (guestfs_h *g);\n"
31352 "\n"
31353 msgstr ""
31354
31355 #. type: textblock
31356 #: ../src/guestfs-actions.pod:4255
31357 msgid ""
31358 "This command runs other libguestfs commands, which might include "
31359 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
31360 "soon after launch and only when nothing is mounted."
31361 msgstr ""
31362
31363 #. type: textblock
31364 #: ../src/guestfs-actions.pod:4259
31365 msgid ""
31366 "Not all of the filesystems returned will be mountable.  In particular, swap "
31367 "partitions are returned in the list.  Also this command does not check that "
31368 "each filesystem found is valid and mountable, and some filesystems might be "
31369 "mountable but require special options.  Filesystems may not all belong to a "
31370 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
31371 msgstr ""
31372
31373 #. type: textblock
31374 #: ../src/guestfs-actions.pod:4273 ../src/guestfs-actions.pod:6190
31375 msgid "(Added in 1.5.15)"
31376 msgstr "(Додано у 1.5.15)"
31377
31378 #. type: =head2
31379 #: ../src/guestfs-actions.pod:4275
31380 #, fuzzy
31381 #| msgid "guestfs_zero_device"
31382 msgid "guestfs_list_md_devices"
31383 msgstr "guestfs_zero_device"
31384
31385 #. type: verbatim
31386 #: ../src/guestfs-actions.pod:4277
31387 #, fuzzy, no-wrap
31388 #| msgid ""
31389 #| " char **\n"
31390 #| " guestfs_lvs (guestfs_h *g);\n"
31391 #| "\n"
31392 msgid ""
31393 " char **\n"
31394 " guestfs_list_md_devices (guestfs_h *g);\n"
31395 "\n"
31396 msgstr ""
31397 " char **\n"
31398 " guestfs_lvs (guestfs_h *g);\n"
31399 "\n"
31400
31401 #. type: textblock
31402 #: ../src/guestfs-actions.pod:4286 ../src/guestfs-actions.pod:7851
31403 #, fuzzy
31404 #| msgid "(Added in 1.5.4)"
31405 msgid "(Added in 1.15.4)"
31406 msgstr "(Додано у 1.5.4)"
31407
31408 #. type: =head2
31409 #: ../src/guestfs-actions.pod:4288
31410 msgid "guestfs_list_partitions"
31411 msgstr "guestfs_list_partitions"
31412
31413 #. type: verbatim
31414 #: ../src/guestfs-actions.pod:4290
31415 #, no-wrap
31416 msgid ""
31417 " char **\n"
31418 " guestfs_list_partitions (guestfs_h *g);\n"
31419 "\n"
31420 msgstr ""
31421 " char **\n"
31422 " guestfs_list_partitions (guestfs_h *g);\n"
31423 "\n"
31424
31425 #. type: textblock
31426 #: ../src/guestfs-actions.pod:4297
31427 msgid ""
31428 "This does not return logical volumes.  For that you will need to call "
31429 "C<guestfs_lvs>."
31430 msgstr ""
31431
31432 #. type: =head2
31433 #: ../src/guestfs-actions.pod:4308
31434 msgid "guestfs_ll"
31435 msgstr "guestfs_ll"
31436
31437 #. type: verbatim
31438 #: ../src/guestfs-actions.pod:4310
31439 #, no-wrap
31440 msgid ""
31441 " char *\n"
31442 " guestfs_ll (guestfs_h *g,\n"
31443 "             const char *directory);\n"
31444 "\n"
31445 msgstr ""
31446 " char *\n"
31447 " guestfs_ll (guestfs_h *g,\n"
31448 "             const char *directory);\n"
31449 "\n"
31450
31451 #. type: =head2
31452 #: ../src/guestfs-actions.pod:4325
31453 msgid "guestfs_ln"
31454 msgstr "guestfs_ln"
31455
31456 #. type: verbatim
31457 #: ../src/guestfs-actions.pod:4327
31458 #, no-wrap
31459 msgid ""
31460 " int\n"
31461 " guestfs_ln (guestfs_h *g,\n"
31462 "             const char *target,\n"
31463 "             const char *linkname);\n"
31464 "\n"
31465 msgstr ""
31466 " int\n"
31467 " guestfs_ln (guestfs_h *g,\n"
31468 "             const char *target,\n"
31469 "             const char *linkname);\n"
31470 "\n"
31471
31472 #. type: =head2
31473 #: ../src/guestfs-actions.pod:4338
31474 msgid "guestfs_ln_f"
31475 msgstr "guestfs_ln_f"
31476
31477 #. type: verbatim
31478 #: ../src/guestfs-actions.pod:4340
31479 #, no-wrap
31480 msgid ""
31481 " int\n"
31482 " guestfs_ln_f (guestfs_h *g,\n"
31483 "               const char *target,\n"
31484 "               const char *linkname);\n"
31485 "\n"
31486 msgstr ""
31487 " int\n"
31488 " guestfs_ln_f (guestfs_h *g,\n"
31489 "               const char *target,\n"
31490 "               const char *linkname);\n"
31491 "\n"
31492
31493 #. type: =head2
31494 #: ../src/guestfs-actions.pod:4352
31495 msgid "guestfs_ln_s"
31496 msgstr "guestfs_ln_s"
31497
31498 #. type: verbatim
31499 #: ../src/guestfs-actions.pod:4354
31500 #, no-wrap
31501 msgid ""
31502 " int\n"
31503 " guestfs_ln_s (guestfs_h *g,\n"
31504 "               const char *target,\n"
31505 "               const char *linkname);\n"
31506 "\n"
31507 msgstr ""
31508 " int\n"
31509 " guestfs_ln_s (guestfs_h *g,\n"
31510 "               const char *target,\n"
31511 "               const char *linkname);\n"
31512 "\n"
31513
31514 #. type: =head2
31515 #: ../src/guestfs-actions.pod:4365
31516 msgid "guestfs_ln_sf"
31517 msgstr "guestfs_ln_sf"
31518
31519 #. type: verbatim
31520 #: ../src/guestfs-actions.pod:4367
31521 #, no-wrap
31522 msgid ""
31523 " int\n"
31524 " guestfs_ln_sf (guestfs_h *g,\n"
31525 "                const char *target,\n"
31526 "                const char *linkname);\n"
31527 "\n"
31528 msgstr ""
31529 " int\n"
31530 " guestfs_ln_sf (guestfs_h *g,\n"
31531 "                const char *target,\n"
31532 "                const char *linkname);\n"
31533 "\n"
31534
31535 #. type: =head2
31536 #: ../src/guestfs-actions.pod:4379
31537 msgid "guestfs_lremovexattr"
31538 msgstr "guestfs_lremovexattr"
31539
31540 #. type: verbatim
31541 #: ../src/guestfs-actions.pod:4381
31542 #, no-wrap
31543 msgid ""
31544 " int\n"
31545 " guestfs_lremovexattr (guestfs_h *g,\n"
31546 "                       const char *xattr,\n"
31547 "                       const char *path);\n"
31548 "\n"
31549 msgstr ""
31550 " int\n"
31551 " guestfs_lremovexattr (guestfs_h *g,\n"
31552 "                       const char *xattr,\n"
31553 "                       const char *path);\n"
31554 "\n"
31555
31556 #. type: textblock
31557 #: ../src/guestfs-actions.pod:4386
31558 msgid ""
31559 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
31560 "link, then it removes an extended attribute of the link itself."
31561 msgstr ""
31562
31563 #. type: =head2
31564 #: ../src/guestfs-actions.pod:4394
31565 msgid "guestfs_ls"
31566 msgstr "guestfs_ls"
31567
31568 #. type: verbatim
31569 #: ../src/guestfs-actions.pod:4396
31570 #, no-wrap
31571 msgid ""
31572 " char **\n"
31573 " guestfs_ls (guestfs_h *g,\n"
31574 "             const char *directory);\n"
31575 "\n"
31576 msgstr ""
31577 " char **\n"
31578 " guestfs_ls (guestfs_h *g,\n"
31579 "             const char *directory);\n"
31580 "\n"
31581
31582 #. type: textblock
31583 #: ../src/guestfs-actions.pod:4404
31584 msgid ""
31585 "This command is mostly useful for interactive sessions.  Programs should "
31586 "probably use C<guestfs_readdir> instead."
31587 msgstr ""
31588
31589 #. type: =head2
31590 #: ../src/guestfs-actions.pod:4413
31591 msgid "guestfs_lsetxattr"
31592 msgstr "guestfs_lsetxattr"
31593
31594 #. type: verbatim
31595 #: ../src/guestfs-actions.pod:4415
31596 #, no-wrap
31597 msgid ""
31598 " int\n"
31599 " guestfs_lsetxattr (guestfs_h *g,\n"
31600 "                    const char *xattr,\n"
31601 "                    const char *val,\n"
31602 "                    int vallen,\n"
31603 "                    const char *path);\n"
31604 "\n"
31605 msgstr ""
31606 " int\n"
31607 " guestfs_lsetxattr (guestfs_h *g,\n"
31608 "                    const char *xattr,\n"
31609 "                    const char *val,\n"
31610 "                    int vallen,\n"
31611 "                    const char *path);\n"
31612 "\n"
31613
31614 #. type: textblock
31615 #: ../src/guestfs-actions.pod:4422
31616 msgid ""
31617 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
31618 "then it sets an extended attribute of the link itself."
31619 msgstr ""
31620
31621 #. type: =head2
31622 #: ../src/guestfs-actions.pod:4430
31623 msgid "guestfs_lstat"
31624 msgstr "guestfs_lstat"
31625
31626 #. type: verbatim
31627 #: ../src/guestfs-actions.pod:4432
31628 #, no-wrap
31629 msgid ""
31630 " struct guestfs_stat *\n"
31631 " guestfs_lstat (guestfs_h *g,\n"
31632 "                const char *path);\n"
31633 "\n"
31634 msgstr ""
31635 " struct guestfs_stat *\n"
31636 " guestfs_lstat (guestfs_h *g,\n"
31637 "                const char *path);\n"
31638 "\n"
31639
31640 #. type: textblock
31641 #: ../src/guestfs-actions.pod:4438
31642 msgid ""
31643 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
31644 "link, then the link is stat-ed, not the file it refers to."
31645 msgstr ""
31646
31647 #. type: textblock
31648 #: ../src/guestfs-actions.pod:4444 ../src/guestfs-actions.pod:7370
31649 msgid ""
31650 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
31651 "error.  I<The caller must call C<guestfs_free_stat> after use>."
31652 msgstr ""
31653
31654 #. type: textblock
31655 #: ../src/guestfs-actions.pod:4448 ../src/guestfs-actions.pod:7374
31656 #: ../src/guestfs-actions.pod:7392 ../src/guestfs-actions.pod:7895
31657 msgid "(Added in 0.9.2)"
31658 msgstr "(Додано у 0.9.2)"
31659
31660 #. type: =head2
31661 #: ../src/guestfs-actions.pod:4450
31662 msgid "guestfs_lstatlist"
31663 msgstr "guestfs_lstatlist"
31664
31665 #. type: verbatim
31666 #: ../src/guestfs-actions.pod:4452
31667 #, no-wrap
31668 msgid ""
31669 " struct guestfs_stat_list *\n"
31670 " guestfs_lstatlist (guestfs_h *g,\n"
31671 "                    const char *path,\n"
31672 "                    char *const *names);\n"
31673 "\n"
31674 msgstr ""
31675 " struct guestfs_stat_list *\n"
31676 " guestfs_lstatlist (guestfs_h *g,\n"
31677 "                    const char *path,\n"
31678 "                    char *const *names);\n"
31679 "\n"
31680
31681 #. type: textblock
31682 #: ../src/guestfs-actions.pod:4457
31683 msgid ""
31684 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
31685 "files, where all files are in the directory C<path>.  C<names> is the list "
31686 "of files from this directory."
31687 msgstr ""
31688
31689 #. type: textblock
31690 #: ../src/guestfs-actions.pod:4466
31691 msgid ""
31692 "This call is intended for programs that want to efficiently list a directory "
31693 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
31694 "for a similarly efficient call for getting extended attributes.  Very long "
31695 "directory listings might cause the protocol message size to be exceeded, "
31696 "causing this call to fail.  The caller must split up such requests into "
31697 "smaller groups of names."
31698 msgstr ""
31699
31700 #. type: textblock
31701 #: ../src/guestfs-actions.pod:4474
31702 msgid ""
31703 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
31704 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
31705 msgstr ""
31706
31707 #. type: =head2
31708 #: ../src/guestfs-actions.pod:4480
31709 msgid "guestfs_luks_add_key"
31710 msgstr "guestfs_luks_add_key"
31711
31712 #. type: verbatim
31713 #: ../src/guestfs-actions.pod:4482
31714 #, no-wrap
31715 msgid ""
31716 " int\n"
31717 " guestfs_luks_add_key (guestfs_h *g,\n"
31718 "                       const char *device,\n"
31719 "                       const char *key,\n"
31720 "                       const char *newkey,\n"
31721 "                       int keyslot);\n"
31722 "\n"
31723 msgstr ""
31724 " int\n"
31725 " guestfs_luks_add_key (guestfs_h *g,\n"
31726 "                       const char *device,\n"
31727 "                       const char *key,\n"
31728 "                       const char *newkey,\n"
31729 "                       int keyslot);\n"
31730 "\n"
31731
31732 #. type: textblock
31733 #: ../src/guestfs-actions.pod:4494
31734 msgid ""
31735 "Note that if C<keyslot> already contains a key, then this command will "
31736 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
31737 msgstr ""
31738
31739 #. type: textblock
31740 #: ../src/guestfs-actions.pod:4500 ../src/guestfs-actions.pod:4537
31741 #: ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4577
31742 #: ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4631
31743 msgid ""
31744 "This function takes a key or passphrase parameter which could contain "
31745 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
31746 "information."
31747 msgstr ""
31748
31749 #. type: textblock
31750 #: ../src/guestfs-actions.pod:4504 ../src/guestfs-actions.pod:4541
31751 #: ../src/guestfs-actions.pod:4561 ../src/guestfs-actions.pod:4581
31752 msgid "(Added in 1.5.2)"
31753 msgstr "(Додано у 1.5.2)"
31754
31755 #. type: =head2
31756 #: ../src/guestfs-actions.pod:4506
31757 msgid "guestfs_luks_close"
31758 msgstr "guestfs_luks_close"
31759
31760 #. type: verbatim
31761 #: ../src/guestfs-actions.pod:4508
31762 #, no-wrap
31763 msgid ""
31764 " int\n"
31765 " guestfs_luks_close (guestfs_h *g,\n"
31766 "                     const char *device);\n"
31767 "\n"
31768 msgstr ""
31769 " int\n"
31770 " guestfs_luks_close (guestfs_h *g,\n"
31771 "                     const char *device);\n"
31772 "\n"
31773
31774 #. type: textblock
31775 #: ../src/guestfs-actions.pod:4512
31776 msgid ""
31777 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
31778 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
31779 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
31780 "underlying block device."
31781 msgstr ""
31782
31783 #. type: textblock
31784 #: ../src/guestfs-actions.pod:4520 ../src/guestfs-actions.pod:4616
31785 #: ../src/guestfs-actions.pod:4635 ../src/guestfs-actions.pod:4685
31786 #: ../src/guestfs-actions.pod:4730
31787 msgid "(Added in 1.5.1)"
31788 msgstr "(Додано у 1.5.1)"
31789
31790 #. type: =head2
31791 #: ../src/guestfs-actions.pod:4522
31792 msgid "guestfs_luks_format"
31793 msgstr "guestfs_luks_format"
31794
31795 #. type: verbatim
31796 #: ../src/guestfs-actions.pod:4524
31797 #, no-wrap
31798 msgid ""
31799 " int\n"
31800 " guestfs_luks_format (guestfs_h *g,\n"
31801 "                      const char *device,\n"
31802 "                      const char *key,\n"
31803 "                      int keyslot);\n"
31804 "\n"
31805 msgstr ""
31806 " int\n"
31807 " guestfs_luks_format (guestfs_h *g,\n"
31808 "                      const char *device,\n"
31809 "                      const char *key,\n"
31810 "                      int keyslot);\n"
31811 "\n"
31812
31813 #. type: =head2
31814 #: ../src/guestfs-actions.pod:4543
31815 msgid "guestfs_luks_format_cipher"
31816 msgstr "guestfs_luks_format_cipher"
31817
31818 #. type: verbatim
31819 #: ../src/guestfs-actions.pod:4545
31820 #, no-wrap
31821 msgid ""
31822 " int\n"
31823 " guestfs_luks_format_cipher (guestfs_h *g,\n"
31824 "                             const char *device,\n"
31825 "                             const char *key,\n"
31826 "                             int keyslot,\n"
31827 "                             const char *cipher);\n"
31828 "\n"
31829 msgstr ""
31830 " int\n"
31831 " guestfs_luks_format_cipher (guestfs_h *g,\n"
31832 "                             const char *device,\n"
31833 "                             const char *key,\n"
31834 "                             int keyslot,\n"
31835 "                             const char *cipher);\n"
31836 "\n"
31837
31838 #. type: textblock
31839 #: ../src/guestfs-actions.pod:4552
31840 msgid ""
31841 "This command is the same as C<guestfs_luks_format> but it also allows you to "
31842 "set the C<cipher> used."
31843 msgstr ""
31844
31845 #. type: =head2
31846 #: ../src/guestfs-actions.pod:4563
31847 msgid "guestfs_luks_kill_slot"
31848 msgstr "guestfs_luks_kill_slot"
31849
31850 #. type: verbatim
31851 #: ../src/guestfs-actions.pod:4565
31852 #, no-wrap
31853 msgid ""
31854 " int\n"
31855 " guestfs_luks_kill_slot (guestfs_h *g,\n"
31856 "                         const char *device,\n"
31857 "                         const char *key,\n"
31858 "                         int keyslot);\n"
31859 "\n"
31860 msgstr ""
31861 " int\n"
31862 " guestfs_luks_kill_slot (guestfs_h *g,\n"
31863 "                         const char *device,\n"
31864 "                         const char *key,\n"
31865 "                         int keyslot);\n"
31866 "\n"
31867
31868 #. type: =head2
31869 #: ../src/guestfs-actions.pod:4583
31870 msgid "guestfs_luks_open"
31871 msgstr "guestfs_luks_open"
31872
31873 #. type: verbatim
31874 #: ../src/guestfs-actions.pod:4585
31875 #, no-wrap
31876 msgid ""
31877 " int\n"
31878 " guestfs_luks_open (guestfs_h *g,\n"
31879 "                    const char *device,\n"
31880 "                    const char *key,\n"
31881 "                    const char *mapname);\n"
31882 "\n"
31883 msgstr ""
31884 " int\n"
31885 " guestfs_luks_open (guestfs_h *g,\n"
31886 "                    const char *device,\n"
31887 "                    const char *key,\n"
31888 "                    const char *mapname);\n"
31889 "\n"
31890
31891 #. type: textblock
31892 #: ../src/guestfs-actions.pod:4603
31893 msgid ""
31894 "If this block device contains LVM volume groups, then calling "
31895 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
31896 "visible."
31897 msgstr ""
31898
31899 #. type: textblock
31900 #: ../src/guestfs-actions.pod:4607
31901 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
31902 msgstr ""
31903
31904 #. type: =head2
31905 #: ../src/guestfs-actions.pod:4618
31906 msgid "guestfs_luks_open_ro"
31907 msgstr "guestfs_luks_open_ro"
31908
31909 #. type: verbatim
31910 #: ../src/guestfs-actions.pod:4620
31911 #, no-wrap
31912 msgid ""
31913 " int\n"
31914 " guestfs_luks_open_ro (guestfs_h *g,\n"
31915 "                       const char *device,\n"
31916 "                       const char *key,\n"
31917 "                       const char *mapname);\n"
31918 "\n"
31919 msgstr ""
31920 " int\n"
31921 " guestfs_luks_open_ro (guestfs_h *g,\n"
31922 "                       const char *device,\n"
31923 "                       const char *key,\n"
31924 "                       const char *mapname);\n"
31925 "\n"
31926
31927 #. type: textblock
31928 #: ../src/guestfs-actions.pod:4626
31929 msgid ""
31930 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
31931 "created."
31932 msgstr ""
31933
31934 #. type: =head2
31935 #: ../src/guestfs-actions.pod:4637
31936 msgid "guestfs_lvcreate"
31937 msgstr "guestfs_lvcreate"
31938
31939 #. type: verbatim
31940 #: ../src/guestfs-actions.pod:4639
31941 #, no-wrap
31942 msgid ""
31943 " int\n"
31944 " guestfs_lvcreate (guestfs_h *g,\n"
31945 "                   const char *logvol,\n"
31946 "                   const char *volgroup,\n"
31947 "                   int mbytes);\n"
31948 "\n"
31949 msgstr ""
31950 " int\n"
31951 " guestfs_lvcreate (guestfs_h *g,\n"
31952 "                   const char *logvol,\n"
31953 "                   const char *volgroup,\n"
31954 "                   int mbytes);\n"
31955 "\n"
31956
31957 #. type: =head2
31958 #: ../src/guestfs-actions.pod:4652
31959 msgid "guestfs_lvm_canonical_lv_name"
31960 msgstr "guestfs_lvm_canonical_lv_name"
31961
31962 #. type: verbatim
31963 #: ../src/guestfs-actions.pod:4654
31964 #, no-wrap
31965 msgid ""
31966 " char *\n"
31967 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
31968 "                                const char *lvname);\n"
31969 "\n"
31970 msgstr ""
31971 " char *\n"
31972 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
31973 "                                const char *lvname);\n"
31974 "\n"
31975
31976 #. type: textblock
31977 #: ../src/guestfs-actions.pod:4665
31978 msgid "See also C<guestfs_is_lv>."
31979 msgstr ""
31980
31981 #. type: textblock
31982 #: ../src/guestfs-actions.pod:4670
31983 msgid "(Added in 1.5.24)"
31984 msgstr "(Додано у 1.5.24)"
31985
31986 #. type: =head2
31987 #: ../src/guestfs-actions.pod:4672
31988 msgid "guestfs_lvm_clear_filter"
31989 msgstr "guestfs_lvm_clear_filter"
31990
31991 #. type: verbatim
31992 #: ../src/guestfs-actions.pod:4674
31993 #, no-wrap
31994 msgid ""
31995 " int\n"
31996 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
31997 "\n"
31998 msgstr ""
31999 " int\n"
32000 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
32001 "\n"
32002
32003 #. type: textblock
32004 #: ../src/guestfs-actions.pod:4677
32005 msgid ""
32006 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
32007 "see every block device."
32008 msgstr ""
32009
32010 #. type: =head2
32011 #: ../src/guestfs-actions.pod:4687
32012 msgid "guestfs_lvm_remove_all"
32013 msgstr "guestfs_lvm_remove_all"
32014
32015 #. type: verbatim
32016 #: ../src/guestfs-actions.pod:4689
32017 #, no-wrap
32018 msgid ""
32019 " int\n"
32020 " guestfs_lvm_remove_all (guestfs_h *g);\n"
32021 "\n"
32022 msgstr ""
32023 " int\n"
32024 " guestfs_lvm_remove_all (guestfs_h *g);\n"
32025 "\n"
32026
32027 #. type: =head2
32028 #: ../src/guestfs-actions.pod:4699
32029 msgid "guestfs_lvm_set_filter"
32030 msgstr "guestfs_lvm_set_filter"
32031
32032 #. type: verbatim
32033 #: ../src/guestfs-actions.pod:4701
32034 #, no-wrap
32035 msgid ""
32036 " int\n"
32037 " guestfs_lvm_set_filter (guestfs_h *g,\n"
32038 "                         char *const *devices);\n"
32039 "\n"
32040 msgstr ""
32041 " int\n"
32042 " guestfs_lvm_set_filter (guestfs_h *g,\n"
32043 "                         char *const *devices);\n"
32044 "\n"
32045
32046 #. type: =head2
32047 #: ../src/guestfs-actions.pod:4732
32048 msgid "guestfs_lvremove"
32049 msgstr "guestfs_lvremove"
32050
32051 #. type: verbatim
32052 #: ../src/guestfs-actions.pod:4734
32053 #, no-wrap
32054 msgid ""
32055 " int\n"
32056 " guestfs_lvremove (guestfs_h *g,\n"
32057 "                   const char *device);\n"
32058 "\n"
32059 msgstr ""
32060 " int\n"
32061 " guestfs_lvremove (guestfs_h *g,\n"
32062 "                   const char *device);\n"
32063 "\n"
32064
32065 #. type: textblock
32066 #: ../src/guestfs-actions.pod:4746 ../src/guestfs-actions.pod:6305
32067 #: ../src/guestfs-actions.pod:8265
32068 msgid "(Added in 1.0.13)"
32069 msgstr "(Додано у 1.0.13)"
32070
32071 #. type: =head2
32072 #: ../src/guestfs-actions.pod:4748
32073 msgid "guestfs_lvrename"
32074 msgstr "guestfs_lvrename"
32075
32076 #. type: verbatim
32077 #: ../src/guestfs-actions.pod:4750
32078 #, no-wrap
32079 msgid ""
32080 " int\n"
32081 " guestfs_lvrename (guestfs_h *g,\n"
32082 "                   const char *logvol,\n"
32083 "                   const char *newlogvol);\n"
32084 "\n"
32085 msgstr ""
32086 " int\n"
32087 " guestfs_lvrename (guestfs_h *g,\n"
32088 "                   const char *logvol,\n"
32089 "                   const char *newlogvol);\n"
32090 "\n"
32091
32092 #. type: textblock
32093 #: ../src/guestfs-actions.pod:4759 ../src/guestfs-actions.pod:8278
32094 msgid "(Added in 1.0.83)"
32095 msgstr "(Додано у 1.0.83)"
32096
32097 #. type: =head2
32098 #: ../src/guestfs-actions.pod:4761
32099 msgid "guestfs_lvresize"
32100 msgstr "guestfs_lvresize"
32101
32102 #. type: verbatim
32103 #: ../src/guestfs-actions.pod:4763
32104 #, no-wrap
32105 msgid ""
32106 " int\n"
32107 " guestfs_lvresize (guestfs_h *g,\n"
32108 "                   const char *device,\n"
32109 "                   int mbytes);\n"
32110 "\n"
32111 msgstr ""
32112 " int\n"
32113 " guestfs_lvresize (guestfs_h *g,\n"
32114 "                   const char *device,\n"
32115 "                   int mbytes);\n"
32116 "\n"
32117
32118 #. type: =head2
32119 #: ../src/guestfs-actions.pod:4776
32120 msgid "guestfs_lvresize_free"
32121 msgstr "guestfs_lvresize_free"
32122
32123 #. type: verbatim
32124 #: ../src/guestfs-actions.pod:4778
32125 #, no-wrap
32126 msgid ""
32127 " int\n"
32128 " guestfs_lvresize_free (guestfs_h *g,\n"
32129 "                        const char *lv,\n"
32130 "                        int percent);\n"
32131 "\n"
32132 msgstr ""
32133 " int\n"
32134 " guestfs_lvresize_free (guestfs_h *g,\n"
32135 "                        const char *lv,\n"
32136 "                        int percent);\n"
32137 "\n"
32138
32139 #. type: textblock
32140 #: ../src/guestfs-actions.pod:4791
32141 msgid "(Added in 1.3.3)"
32142 msgstr "(Додано у 1.3.3)"
32143
32144 #. type: =head2
32145 #: ../src/guestfs-actions.pod:4793
32146 msgid "guestfs_lvs"
32147 msgstr "guestfs_lvs"
32148
32149 #. type: verbatim
32150 #: ../src/guestfs-actions.pod:4795
32151 #, no-wrap
32152 msgid ""
32153 " char **\n"
32154 " guestfs_lvs (guestfs_h *g);\n"
32155 "\n"
32156 msgstr ""
32157 " char **\n"
32158 " guestfs_lvs (guestfs_h *g);\n"
32159 "\n"
32160
32161 #. type: textblock
32162 #: ../src/guestfs-actions.pod:4804
32163 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
32164 msgstr ""
32165
32166 #. type: =head2
32167 #: ../src/guestfs-actions.pod:4812
32168 msgid "guestfs_lvs_full"
32169 msgstr "guestfs_lvs_full"
32170
32171 #. type: verbatim
32172 #: ../src/guestfs-actions.pod:4814
32173 #, no-wrap
32174 msgid ""
32175 " struct guestfs_lvm_lv_list *\n"
32176 " guestfs_lvs_full (guestfs_h *g);\n"
32177 "\n"
32178 msgstr ""
32179 " struct guestfs_lvm_lv_list *\n"
32180 " guestfs_lvs_full (guestfs_h *g);\n"
32181 "\n"
32182
32183 #. type: textblock
32184 #: ../src/guestfs-actions.pod:4820
32185 msgid ""
32186 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
32187 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
32188 msgstr ""
32189
32190 #. type: =head2
32191 #: ../src/guestfs-actions.pod:4826
32192 msgid "guestfs_lvuuid"
32193 msgstr "guestfs_lvuuid"
32194
32195 #. type: verbatim
32196 #: ../src/guestfs-actions.pod:4828
32197 #, no-wrap
32198 msgid ""
32199 " char *\n"
32200 " guestfs_lvuuid (guestfs_h *g,\n"
32201 "                 const char *device);\n"
32202 "\n"
32203 msgstr ""
32204 " char *\n"
32205 " guestfs_lvuuid (guestfs_h *g,\n"
32206 "                 const char *device);\n"
32207 "\n"
32208
32209 #. type: =head2
32210 #: ../src/guestfs-actions.pod:4839
32211 msgid "guestfs_lxattrlist"
32212 msgstr "guestfs_lxattrlist"
32213
32214 #. type: verbatim
32215 #: ../src/guestfs-actions.pod:4841
32216 #, no-wrap
32217 msgid ""
32218 " struct guestfs_xattr_list *\n"
32219 " guestfs_lxattrlist (guestfs_h *g,\n"
32220 "                     const char *path,\n"
32221 "                     char *const *names);\n"
32222 "\n"
32223 msgstr ""
32224 " struct guestfs_xattr_list *\n"
32225 " guestfs_lxattrlist (guestfs_h *g,\n"
32226 "                     const char *path,\n"
32227 "                     char *const *names);\n"
32228 "\n"
32229
32230 #. type: textblock
32231 #: ../src/guestfs-actions.pod:4860
32232 msgid ""
32233 "This call is intended for programs that want to efficiently list a directory "
32234 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
32235 "a similarly efficient call for getting standard stats.  Very long directory "
32236 "listings might cause the protocol message size to be exceeded, causing this "
32237 "call to fail.  The caller must split up such requests into smaller groups of "
32238 "names."
32239 msgstr ""
32240
32241 #. type: =head2
32242 #: ../src/guestfs-actions.pod:4874
32243 #, fuzzy
32244 #| msgid "guestfs_create"
32245 msgid "guestfs_md_create"
32246 msgstr "guestfs_create"
32247
32248 #. type: verbatim
32249 #: ../src/guestfs-actions.pod:4876
32250 #, fuzzy, no-wrap
32251 #| msgid ""
32252 #| " int\n"
32253 #| " guestfs_mkfs_opts (guestfs_h *g,\n"
32254 #| "                    const char *fstype,\n"
32255 #| "                    const char *device,\n"
32256 #| "                    ...);\n"
32257 #| "\n"
32258 msgid ""
32259 " int\n"
32260 " guestfs_md_create (guestfs_h *g,\n"
32261 "                    const char *name,\n"
32262 "                    char *const *devices,\n"
32263 "                    ...);\n"
32264 "\n"
32265 msgstr ""
32266 " int\n"
32267 " guestfs_mkfs_opts (guestfs_h *g,\n"
32268 "                    const char *fstype,\n"
32269 "                    const char *device,\n"
32270 "                    ...);\n"
32271 "\n"
32272
32273 #. type: verbatim
32274 #: ../src/guestfs-actions.pod:4887
32275 #, no-wrap
32276 msgid ""
32277 " GUESTFS_MD_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
32278 " GUESTFS_MD_CREATE_NRDEVICES, int nrdevices,\n"
32279 " GUESTFS_MD_CREATE_SPARE, int spare,\n"
32280 " GUESTFS_MD_CREATE_CHUNK, int64_t chunk,\n"
32281 " GUESTFS_MD_CREATE_LEVEL, const char *level,\n"
32282 "\n"
32283 msgstr ""
32284
32285 #. type: =head2
32286 #: ../src/guestfs-actions.pod:4949
32287 #, fuzzy
32288 #| msgid "guestfs_create"
32289 msgid "guestfs_md_create_va"
32290 msgstr "guestfs_create"
32291
32292 #. type: verbatim
32293 #: ../src/guestfs-actions.pod:4951
32294 #, fuzzy, no-wrap
32295 #| msgid ""
32296 #| " int\n"
32297 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32298 #| "                       const char *fstype,\n"
32299 #| "                       const char *device,\n"
32300 #| "                       va_list args);\n"
32301 #| "\n"
32302 msgid ""
32303 " int\n"
32304 " guestfs_md_create_va (guestfs_h *g,\n"
32305 "                       const char *name,\n"
32306 "                       char *const *devices,\n"
32307 "                       va_list args);\n"
32308 "\n"
32309 msgstr ""
32310 " int\n"
32311 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32312 "                       const char *fstype,\n"
32313 "                       const char *device,\n"
32314 "                       va_list args);\n"
32315 "\n"
32316
32317 #. type: textblock
32318 #: ../src/guestfs-actions.pod:4957
32319 msgid "This is the \"va_list variant\" of L</guestfs_md_create>."
32320 msgstr ""
32321
32322 #. type: =head2
32323 #: ../src/guestfs-actions.pod:4961
32324 #, fuzzy
32325 #| msgid "guestfs_create"
32326 msgid "guestfs_md_create_argv"
32327 msgstr "guestfs_create"
32328
32329 #. type: verbatim
32330 #: ../src/guestfs-actions.pod:4963
32331 #, fuzzy, no-wrap
32332 #| msgid ""
32333 #| " int\n"
32334 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32335 #| "                         const char *fstype,\n"
32336 #| "                         const char *device,\n"
32337 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
32338 #| "\n"
32339 msgid ""
32340 " int\n"
32341 " guestfs_md_create_argv (guestfs_h *g,\n"
32342 "                         const char *name,\n"
32343 "                         char *const *devices,\n"
32344 "                         const struct guestfs_md_create_argv *optargs);\n"
32345 "\n"
32346 msgstr ""
32347 " int\n"
32348 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32349 "                         const char *fstype,\n"
32350 "                         const char *device,\n"
32351 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
32352 "\n"
32353
32354 #. type: textblock
32355 #: ../src/guestfs-actions.pod:4969
32356 msgid "This is the \"argv variant\" of L</guestfs_md_create>."
32357 msgstr ""
32358
32359 #. type: =head2
32360 #: ../src/guestfs-actions.pod:4973
32361 #, fuzzy
32362 #| msgid "guestfs_aug_get"
32363 msgid "guestfs_md_detail"
32364 msgstr "guestfs_aug_get"
32365
32366 #. type: verbatim
32367 #: ../src/guestfs-actions.pod:4975
32368 #, fuzzy, no-wrap
32369 #| msgid ""
32370 #| " char *\n"
32371 #| " guestfs_aug_get (guestfs_h *g,\n"
32372 #| "                  const char *augpath);\n"
32373 #| "\n"
32374 msgid ""
32375 " char **\n"
32376 " guestfs_md_detail (guestfs_h *g,\n"
32377 "                    const char *md);\n"
32378 "\n"
32379 msgstr ""
32380 " char *\n"
32381 " guestfs_aug_get (guestfs_h *g,\n"
32382 "                  const char *augpath);\n"
32383 "\n"
32384
32385 #. type: =head2
32386 #: ../src/guestfs-actions.pod:5012
32387 #, fuzzy
32388 #| msgid "guestfs_mkdir_p"
32389 msgid "guestfs_md_stop"
32390 msgstr "guestfs_mkdir_p"
32391
32392 #. type: verbatim
32393 #: ../src/guestfs-actions.pod:5014
32394 #, fuzzy, no-wrap
32395 #| msgid ""
32396 #| " int\n"
32397 #| " guestfs_mkdir_p (guestfs_h *g,\n"
32398 #| "                  const char *path);\n"
32399 #| "\n"
32400 msgid ""
32401 " int\n"
32402 " guestfs_md_stop (guestfs_h *g,\n"
32403 "                  const char *md);\n"
32404 "\n"
32405 msgstr ""
32406 " int\n"
32407 " guestfs_mkdir_p (guestfs_h *g,\n"
32408 "                  const char *path);\n"
32409 "\n"
32410
32411 #. type: =head2
32412 #: ../src/guestfs-actions.pod:5023
32413 msgid "guestfs_mkdir"
32414 msgstr "guestfs_mkdir"
32415
32416 #. type: verbatim
32417 #: ../src/guestfs-actions.pod:5025
32418 #, no-wrap
32419 msgid ""
32420 " int\n"
32421 " guestfs_mkdir (guestfs_h *g,\n"
32422 "                const char *path);\n"
32423 "\n"
32424 msgstr ""
32425 " int\n"
32426 " guestfs_mkdir (guestfs_h *g,\n"
32427 "                const char *path);\n"
32428 "\n"
32429
32430 #. type: =head2
32431 #: ../src/guestfs-actions.pod:5035
32432 msgid "guestfs_mkdir_mode"
32433 msgstr "guestfs_mkdir_mode"
32434
32435 #. type: verbatim
32436 #: ../src/guestfs-actions.pod:5037
32437 #, no-wrap
32438 msgid ""
32439 " int\n"
32440 " guestfs_mkdir_mode (guestfs_h *g,\n"
32441 "                     const char *path,\n"
32442 "                     int mode);\n"
32443 "\n"
32444 msgstr ""
32445 " int\n"
32446 " guestfs_mkdir_mode (guestfs_h *g,\n"
32447 "                     const char *path,\n"
32448 "                     int mode);\n"
32449 "\n"
32450
32451 #. type: textblock
32452 #: ../src/guestfs-actions.pod:5049
32453 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
32454 msgstr ""
32455
32456 #. type: =head2
32457 #: ../src/guestfs-actions.pod:5055
32458 msgid "guestfs_mkdir_p"
32459 msgstr "guestfs_mkdir_p"
32460
32461 #. type: verbatim
32462 #: ../src/guestfs-actions.pod:5057
32463 #, no-wrap
32464 msgid ""
32465 " int\n"
32466 " guestfs_mkdir_p (guestfs_h *g,\n"
32467 "                  const char *path);\n"
32468 "\n"
32469 msgstr ""
32470 " int\n"
32471 " guestfs_mkdir_p (guestfs_h *g,\n"
32472 "                  const char *path);\n"
32473 "\n"
32474
32475 #. type: =head2
32476 #: ../src/guestfs-actions.pod:5068
32477 msgid "guestfs_mkdtemp"
32478 msgstr "guestfs_mkdtemp"
32479
32480 #. type: verbatim
32481 #: ../src/guestfs-actions.pod:5070
32482 #, no-wrap
32483 msgid ""
32484 " char *\n"
32485 " guestfs_mkdtemp (guestfs_h *g,\n"
32486 "                  const char *template);\n"
32487 "\n"
32488 msgstr ""
32489 " char *\n"
32490 " guestfs_mkdtemp (guestfs_h *g,\n"
32491 "                  const char *template);\n"
32492 "\n"
32493
32494 #. type: =head2
32495 #: ../src/guestfs-actions.pod:5098
32496 msgid "guestfs_mke2fs_J"
32497 msgstr "guestfs_mke2fs_J"
32498
32499 #. type: verbatim
32500 #: ../src/guestfs-actions.pod:5100
32501 #, no-wrap
32502 msgid ""
32503 " int\n"
32504 " guestfs_mke2fs_J (guestfs_h *g,\n"
32505 "                   const char *fstype,\n"
32506 "                   int blocksize,\n"
32507 "                   const char *device,\n"
32508 "                   const char *journal);\n"
32509 "\n"
32510 msgstr ""
32511 " int\n"
32512 " guestfs_mke2fs_J (guestfs_h *g,\n"
32513 "                   const char *fstype,\n"
32514 "                   int blocksize,\n"
32515 "                   const char *device,\n"
32516 "                   const char *journal);\n"
32517 "\n"
32518
32519 #. type: textblock
32520 #: ../src/guestfs-actions.pod:5113
32521 msgid "See also C<guestfs_mke2journal>."
32522 msgstr ""
32523
32524 #. type: textblock
32525 #: ../src/guestfs-actions.pod:5117 ../src/guestfs-actions.pod:5135
32526 #: ../src/guestfs-actions.pod:5153 ../src/guestfs-actions.pod:5169
32527 #: ../src/guestfs-actions.pod:5183 ../src/guestfs-actions.pod:5197
32528 #: ../src/guestfs-actions.pod:5256 ../src/guestfs-actions.pod:5533
32529 msgid "(Added in 1.0.68)"
32530 msgstr "(Додано у 1.0.68)"
32531
32532 #. type: =head2
32533 #: ../src/guestfs-actions.pod:5119
32534 msgid "guestfs_mke2fs_JL"
32535 msgstr "guestfs_mke2fs_JL"
32536
32537 #. type: verbatim
32538 #: ../src/guestfs-actions.pod:5121
32539 #, no-wrap
32540 msgid ""
32541 " int\n"
32542 " guestfs_mke2fs_JL (guestfs_h *g,\n"
32543 "                    const char *fstype,\n"
32544 "                    int blocksize,\n"
32545 "                    const char *device,\n"
32546 "                    const char *label);\n"
32547 "\n"
32548 msgstr ""
32549 " int\n"
32550 " guestfs_mke2fs_JL (guestfs_h *g,\n"
32551 "                    const char *fstype,\n"
32552 "                    int blocksize,\n"
32553 "                    const char *device,\n"
32554 "                    const char *label);\n"
32555 "\n"
32556
32557 #. type: textblock
32558 #: ../src/guestfs-actions.pod:5131
32559 msgid "See also C<guestfs_mke2journal_L>."
32560 msgstr ""
32561
32562 #. type: =head2
32563 #: ../src/guestfs-actions.pod:5137
32564 msgid "guestfs_mke2fs_JU"
32565 msgstr "guestfs_mke2fs_JU"
32566
32567 #. type: verbatim
32568 #: ../src/guestfs-actions.pod:5139
32569 #, no-wrap
32570 msgid ""
32571 " int\n"
32572 " guestfs_mke2fs_JU (guestfs_h *g,\n"
32573 "                    const char *fstype,\n"
32574 "                    int blocksize,\n"
32575 "                    const char *device,\n"
32576 "                    const char *uuid);\n"
32577 "\n"
32578 msgstr ""
32579 " int\n"
32580 " guestfs_mke2fs_JU (guestfs_h *g,\n"
32581 "                    const char *fstype,\n"
32582 "                    int blocksize,\n"
32583 "                    const char *device,\n"
32584 "                    const char *uuid);\n"
32585 "\n"
32586
32587 #. type: textblock
32588 #: ../src/guestfs-actions.pod:5149
32589 msgid "See also C<guestfs_mke2journal_U>."
32590 msgstr ""
32591
32592 #. type: =head2
32593 #: ../src/guestfs-actions.pod:5155
32594 msgid "guestfs_mke2journal"
32595 msgstr "guestfs_mke2journal"
32596
32597 #. type: verbatim
32598 #: ../src/guestfs-actions.pod:5157
32599 #, no-wrap
32600 msgid ""
32601 " int\n"
32602 " guestfs_mke2journal (guestfs_h *g,\n"
32603 "                      int blocksize,\n"
32604 "                      const char *device);\n"
32605 "\n"
32606 msgstr ""
32607 " int\n"
32608 " guestfs_mke2journal (guestfs_h *g,\n"
32609 "                      int blocksize,\n"
32610 "                      const char *device);\n"
32611 "\n"
32612
32613 #. type: =head2
32614 #: ../src/guestfs-actions.pod:5171
32615 msgid "guestfs_mke2journal_L"
32616 msgstr "guestfs_mke2journal_L"
32617
32618 #. type: verbatim
32619 #: ../src/guestfs-actions.pod:5173
32620 #, no-wrap
32621 msgid ""
32622 " int\n"
32623 " guestfs_mke2journal_L (guestfs_h *g,\n"
32624 "                        int blocksize,\n"
32625 "                        const char *label,\n"
32626 "                        const char *device);\n"
32627 "\n"
32628 msgstr ""
32629 " int\n"
32630 " guestfs_mke2journal_L (guestfs_h *g,\n"
32631 "                        int blocksize,\n"
32632 "                        const char *label,\n"
32633 "                        const char *device);\n"
32634 "\n"
32635
32636 #. type: =head2
32637 #: ../src/guestfs-actions.pod:5185
32638 msgid "guestfs_mke2journal_U"
32639 msgstr "guestfs_mke2journal_U"
32640
32641 #. type: verbatim
32642 #: ../src/guestfs-actions.pod:5187
32643 #, no-wrap
32644 msgid ""
32645 " int\n"
32646 " guestfs_mke2journal_U (guestfs_h *g,\n"
32647 "                        int blocksize,\n"
32648 "                        const char *uuid,\n"
32649 "                        const char *device);\n"
32650 "\n"
32651 msgstr ""
32652 " int\n"
32653 " guestfs_mke2journal_U (guestfs_h *g,\n"
32654 "                        int blocksize,\n"
32655 "                        const char *uuid,\n"
32656 "                        const char *device);\n"
32657 "\n"
32658
32659 #. type: =head2
32660 #: ../src/guestfs-actions.pod:5199
32661 msgid "guestfs_mkfifo"
32662 msgstr "guestfs_mkfifo"
32663
32664 #. type: verbatim
32665 #: ../src/guestfs-actions.pod:5201
32666 #, no-wrap
32667 msgid ""
32668 " int\n"
32669 " guestfs_mkfifo (guestfs_h *g,\n"
32670 "                 int mode,\n"
32671 "                 const char *path);\n"
32672 "\n"
32673 msgstr ""
32674 " int\n"
32675 " guestfs_mkfifo (guestfs_h *g,\n"
32676 "                 int mode,\n"
32677 "                 const char *path);\n"
32678 "\n"
32679
32680 #. type: textblock
32681 #: ../src/guestfs-actions.pod:5206
32682 msgid ""
32683 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
32684 "is just a convenient wrapper around C<guestfs_mknod>."
32685 msgstr ""
32686
32687 #. type: =head2
32688 #: ../src/guestfs-actions.pod:5216
32689 msgid "guestfs_mkfs"
32690 msgstr "guestfs_mkfs"
32691
32692 #. type: verbatim
32693 #: ../src/guestfs-actions.pod:5218
32694 #, no-wrap
32695 msgid ""
32696 " int\n"
32697 " guestfs_mkfs (guestfs_h *g,\n"
32698 "               const char *fstype,\n"
32699 "               const char *device);\n"
32700 "\n"
32701 msgstr ""
32702 " int\n"
32703 " guestfs_mkfs (guestfs_h *g,\n"
32704 "               const char *fstype,\n"
32705 "               const char *device);\n"
32706 "\n"
32707
32708 #. type: =head2
32709 #: ../src/guestfs-actions.pod:5231
32710 msgid "guestfs_mkfs_b"
32711 msgstr "guestfs_mkfs_b"
32712
32713 #. type: verbatim
32714 #: ../src/guestfs-actions.pod:5233
32715 #, no-wrap
32716 msgid ""
32717 " int\n"
32718 " guestfs_mkfs_b (guestfs_h *g,\n"
32719 "                 const char *fstype,\n"
32720 "                 int blocksize,\n"
32721 "                 const char *device);\n"
32722 "\n"
32723 msgstr ""
32724 " int\n"
32725 " guestfs_mkfs_b (guestfs_h *g,\n"
32726 "                 const char *fstype,\n"
32727 "                 int blocksize,\n"
32728 "                 const char *device);\n"
32729 "\n"
32730
32731 #. type: textblock
32732 #: ../src/guestfs-actions.pod:5239
32733 msgid ""
32734 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
32735 "call instead."
32736 msgstr ""
32737
32738 #. type: textblock
32739 #: ../src/guestfs-actions.pod:5246
32740 msgid ""
32741 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
32742 "block size of the resulting filesystem.  Supported block sizes depend on the "
32743 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
32744 msgstr ""
32745
32746 #. type: =head2
32747 #: ../src/guestfs-actions.pod:5258
32748 msgid "guestfs_mkfs_opts"
32749 msgstr "guestfs_mkfs_opts"
32750
32751 #. type: verbatim
32752 #: ../src/guestfs-actions.pod:5260
32753 #, no-wrap
32754 msgid ""
32755 " int\n"
32756 " guestfs_mkfs_opts (guestfs_h *g,\n"
32757 "                    const char *fstype,\n"
32758 "                    const char *device,\n"
32759 "                    ...);\n"
32760 "\n"
32761 msgstr ""
32762 " int\n"
32763 " guestfs_mkfs_opts (guestfs_h *g,\n"
32764 "                    const char *fstype,\n"
32765 "                    const char *device,\n"
32766 "                    ...);\n"
32767 "\n"
32768
32769 #. type: verbatim
32770 #: ../src/guestfs-actions.pod:5271
32771 #, no-wrap
32772 msgid ""
32773 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
32774 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
32775 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
32776 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
32777 "\n"
32778 msgstr ""
32779
32780 #. type: textblock
32781 #: ../src/guestfs-actions.pod:5319
32782 msgid "(Added in 1.7.19)"
32783 msgstr "(Додано у 1.7.19)"
32784
32785 #. type: =head2
32786 #: ../src/guestfs-actions.pod:5321
32787 msgid "guestfs_mkfs_opts_va"
32788 msgstr "guestfs_mkfs_opts_va"
32789
32790 #. type: verbatim
32791 #: ../src/guestfs-actions.pod:5323
32792 #, no-wrap
32793 msgid ""
32794 " int\n"
32795 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32796 "                       const char *fstype,\n"
32797 "                       const char *device,\n"
32798 "                       va_list args);\n"
32799 "\n"
32800 msgstr ""
32801 " int\n"
32802 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32803 "                       const char *fstype,\n"
32804 "                       const char *device,\n"
32805 "                       va_list args);\n"
32806 "\n"
32807
32808 #. type: textblock
32809 #: ../src/guestfs-actions.pod:5329
32810 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
32811 msgstr ""
32812
32813 #. type: =head2
32814 #: ../src/guestfs-actions.pod:5333
32815 msgid "guestfs_mkfs_opts_argv"
32816 msgstr "guestfs_mkfs_opts_argv"
32817
32818 #. type: verbatim
32819 #: ../src/guestfs-actions.pod:5335
32820 #, no-wrap
32821 msgid ""
32822 " int\n"
32823 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32824 "                         const char *fstype,\n"
32825 "                         const char *device,\n"
32826 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
32827 "\n"
32828 msgstr ""
32829 " int\n"
32830 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32831 "                         const char *fstype,\n"
32832 "                         const char *device,\n"
32833 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
32834 "\n"
32835
32836 #. type: textblock
32837 #: ../src/guestfs-actions.pod:5341
32838 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
32839 msgstr ""
32840
32841 #. type: =head2
32842 #: ../src/guestfs-actions.pod:5345
32843 msgid "guestfs_mkmountpoint"
32844 msgstr "guestfs_mkmountpoint"
32845
32846 #. type: verbatim
32847 #: ../src/guestfs-actions.pod:5347
32848 #, no-wrap
32849 msgid ""
32850 " int\n"
32851 " guestfs_mkmountpoint (guestfs_h *g,\n"
32852 "                       const char *exemptpath);\n"
32853 "\n"
32854 msgstr ""
32855 " int\n"
32856 " guestfs_mkmountpoint (guestfs_h *g,\n"
32857 "                       const char *exemptpath);\n"
32858 "\n"
32859
32860 #. type: textblock
32861 #: ../src/guestfs-actions.pod:5351
32862 msgid ""
32863 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
32864 "that can be used to create extra mountpoints before mounting the first "
32865 "filesystem."
32866 msgstr ""
32867
32868 #. type: textblock
32869 #: ../src/guestfs-actions.pod:5375
32870 msgid ""
32871 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
32872 "may get unexpected errors if you try to mix these calls.  It is safest to "
32873 "manually unmount filesystems and remove mountpoints after use."
32874 msgstr ""
32875
32876 #. type: textblock
32877 #: ../src/guestfs-actions.pod:5379
32878 msgid ""
32879 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
32880 "first, so for this to work for manual mountpoints, you must ensure that the "
32881 "innermost mountpoints have the longest pathnames, as in the example code "
32882 "above."
32883 msgstr ""
32884
32885 #. type: textblock
32886 #: ../src/guestfs-actions.pod:5386
32887 msgid ""
32888 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
32889 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
32890 "can also trigger these issues."
32891 msgstr ""
32892
32893 #. type: textblock
32894 #: ../src/guestfs-actions.pod:5392 ../src/guestfs-actions.pod:5698
32895 #: ../src/guestfs-actions.pod:6725
32896 msgid "(Added in 1.0.62)"
32897 msgstr "(Додано у 1.0.62)"
32898
32899 #. type: =head2
32900 #: ../src/guestfs-actions.pod:5394
32901 msgid "guestfs_mknod"
32902 msgstr ""
32903
32904 #. type: verbatim
32905 #: ../src/guestfs-actions.pod:5396
32906 #, no-wrap
32907 msgid ""
32908 " int\n"
32909 " guestfs_mknod (guestfs_h *g,\n"
32910 "                int mode,\n"
32911 "                int devmajor,\n"
32912 "                int devminor,\n"
32913 "                const char *path);\n"
32914 "\n"
32915 msgstr ""
32916
32917 #. type: textblock
32918 #: ../src/guestfs-actions.pod:5411
32919 msgid ""
32920 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
32921 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
32922 "regular file).  These constants are available in the standard Linux header "
32923 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
32924 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
32925 "the appropriate constant for you."
32926 msgstr ""
32927
32928 #. type: =head2
32929 #: ../src/guestfs-actions.pod:5425
32930 msgid "guestfs_mknod_b"
32931 msgstr ""
32932
32933 #. type: verbatim
32934 #: ../src/guestfs-actions.pod:5427
32935 #, no-wrap
32936 msgid ""
32937 " int\n"
32938 " guestfs_mknod_b (guestfs_h *g,\n"
32939 "                  int mode,\n"
32940 "                  int devmajor,\n"
32941 "                  int devminor,\n"
32942 "                  const char *path);\n"
32943 "\n"
32944 msgstr ""
32945
32946 #. type: textblock
32947 #: ../src/guestfs-actions.pod:5434
32948 msgid ""
32949 "This call creates a block device node called C<path> with mode C<mode> and "
32950 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
32951 "wrapper around C<guestfs_mknod>."
32952 msgstr ""
32953
32954 #. type: =head2
32955 #: ../src/guestfs-actions.pod:5444
32956 msgid "guestfs_mknod_c"
32957 msgstr ""
32958
32959 #. type: verbatim
32960 #: ../src/guestfs-actions.pod:5446
32961 #, no-wrap
32962 msgid ""
32963 " int\n"
32964 " guestfs_mknod_c (guestfs_h *g,\n"
32965 "                  int mode,\n"
32966 "                  int devmajor,\n"
32967 "                  int devminor,\n"
32968 "                  const char *path);\n"
32969 "\n"
32970 msgstr ""
32971
32972 #. type: textblock
32973 #: ../src/guestfs-actions.pod:5453
32974 msgid ""
32975 "This call creates a char device node called C<path> with mode C<mode> and "
32976 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
32977 "wrapper around C<guestfs_mknod>."
32978 msgstr ""
32979
32980 #. type: =head2
32981 #: ../src/guestfs-actions.pod:5463
32982 msgid "guestfs_mkswap"
32983 msgstr ""
32984
32985 #. type: verbatim
32986 #: ../src/guestfs-actions.pod:5465
32987 #, no-wrap
32988 msgid ""
32989 " int\n"
32990 " guestfs_mkswap (guestfs_h *g,\n"
32991 "                 const char *device);\n"
32992 "\n"
32993 msgstr ""
32994
32995 #. type: =head2
32996 #: ../src/guestfs-actions.pod:5475
32997 msgid "guestfs_mkswap_L"
32998 msgstr ""
32999
33000 #. type: verbatim
33001 #: ../src/guestfs-actions.pod:5477
33002 #, no-wrap
33003 msgid ""
33004 " int\n"
33005 " guestfs_mkswap_L (guestfs_h *g,\n"
33006 "                   const char *label,\n"
33007 "                   const char *device);\n"
33008 "\n"
33009 msgstr ""
33010
33011 #. type: =head2
33012 #: ../src/guestfs-actions.pod:5492
33013 msgid "guestfs_mkswap_U"
33014 msgstr ""
33015
33016 #. type: verbatim
33017 #: ../src/guestfs-actions.pod:5494
33018 #, no-wrap
33019 msgid ""
33020 " int\n"
33021 " guestfs_mkswap_U (guestfs_h *g,\n"
33022 "                   const char *uuid,\n"
33023 "                   const char *device);\n"
33024 "\n"
33025 msgstr ""
33026
33027 #. type: =head2
33028 #: ../src/guestfs-actions.pod:5505
33029 msgid "guestfs_mkswap_file"
33030 msgstr ""
33031
33032 #. type: verbatim
33033 #: ../src/guestfs-actions.pod:5507
33034 #, no-wrap
33035 msgid ""
33036 " int\n"
33037 " guestfs_mkswap_file (guestfs_h *g,\n"
33038 "                      const char *path);\n"
33039 "\n"
33040 msgstr ""
33041
33042 #. type: textblock
33043 #: ../src/guestfs-actions.pod:5513
33044 msgid ""
33045 "This command just writes a swap file signature to an existing file.  To "
33046 "create the file itself, use something like C<guestfs_fallocate>."
33047 msgstr ""
33048
33049 #. type: =head2
33050 #: ../src/guestfs-actions.pod:5520
33051 msgid "guestfs_modprobe"
33052 msgstr ""
33053
33054 #. type: verbatim
33055 #: ../src/guestfs-actions.pod:5522
33056 #, no-wrap
33057 msgid ""
33058 " int\n"
33059 " guestfs_modprobe (guestfs_h *g,\n"
33060 "                   const char *modulename);\n"
33061 "\n"
33062 msgstr ""
33063
33064 #. type: =head2
33065 #: ../src/guestfs-actions.pod:5535
33066 msgid "guestfs_mount"
33067 msgstr ""
33068
33069 #. type: verbatim
33070 #: ../src/guestfs-actions.pod:5537
33071 #, no-wrap
33072 msgid ""
33073 " int\n"
33074 " guestfs_mount (guestfs_h *g,\n"
33075 "                const char *device,\n"
33076 "                const char *mountpoint);\n"
33077 "\n"
33078 msgstr ""
33079
33080 #. type: textblock
33081 #: ../src/guestfs-actions.pod:5556
33082 msgid ""
33083 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
33084 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
33085 "problems for users.  If your program might need to work with older versions "
33086 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
33087 "for the first parameter if you don't want any options)."
33088 msgstr ""
33089
33090 #. type: =head2
33091 #: ../src/guestfs-actions.pod:5567
33092 msgid "guestfs_mount_9p"
33093 msgstr ""
33094
33095 #. type: verbatim
33096 #: ../src/guestfs-actions.pod:5569
33097 #, no-wrap
33098 msgid ""
33099 " int\n"
33100 " guestfs_mount_9p (guestfs_h *g,\n"
33101 "                   const char *mounttag,\n"
33102 "                   const char *mountpoint,\n"
33103 "                   ...);\n"
33104 "\n"
33105 msgstr ""
33106
33107 #. type: verbatim
33108 #: ../src/guestfs-actions.pod:5580
33109 #, no-wrap
33110 msgid ""
33111 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
33112 "\n"
33113 msgstr ""
33114
33115 #. type: =head2
33116 #: ../src/guestfs-actions.pod:5593
33117 msgid "guestfs_mount_9p_va"
33118 msgstr ""
33119
33120 #. type: verbatim
33121 #: ../src/guestfs-actions.pod:5595
33122 #, no-wrap
33123 msgid ""
33124 " int\n"
33125 " guestfs_mount_9p_va (guestfs_h *g,\n"
33126 "                      const char *mounttag,\n"
33127 "                      const char *mountpoint,\n"
33128 "                      va_list args);\n"
33129 "\n"
33130 msgstr ""
33131
33132 #. type: textblock
33133 #: ../src/guestfs-actions.pod:5601
33134 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
33135 msgstr ""
33136
33137 #. type: =head2
33138 #: ../src/guestfs-actions.pod:5605
33139 msgid "guestfs_mount_9p_argv"
33140 msgstr ""
33141
33142 #. type: verbatim
33143 #: ../src/guestfs-actions.pod:5607
33144 #, no-wrap
33145 msgid ""
33146 " int\n"
33147 " guestfs_mount_9p_argv (guestfs_h *g,\n"
33148 "                        const char *mounttag,\n"
33149 "                        const char *mountpoint,\n"
33150 "                        const struct guestfs_mount_9p_argv *optargs);\n"
33151 "\n"
33152 msgstr ""
33153
33154 #. type: textblock
33155 #: ../src/guestfs-actions.pod:5613
33156 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
33157 msgstr ""
33158
33159 #. type: =head2
33160 #: ../src/guestfs-actions.pod:5617
33161 msgid "guestfs_mount_loop"
33162 msgstr ""
33163
33164 #. type: verbatim
33165 #: ../src/guestfs-actions.pod:5619
33166 #, no-wrap
33167 msgid ""
33168 " int\n"
33169 " guestfs_mount_loop (guestfs_h *g,\n"
33170 "                     const char *file,\n"
33171 "                     const char *mountpoint);\n"
33172 "\n"
33173 msgstr ""
33174
33175 #. type: =head2
33176 #: ../src/guestfs-actions.pod:5632
33177 msgid "guestfs_mount_options"
33178 msgstr ""
33179
33180 #. type: verbatim
33181 #: ../src/guestfs-actions.pod:5634
33182 #, no-wrap
33183 msgid ""
33184 " int\n"
33185 " guestfs_mount_options (guestfs_h *g,\n"
33186 "                        const char *options,\n"
33187 "                        const char *device,\n"
33188 "                        const char *mountpoint);\n"
33189 "\n"
33190 msgstr ""
33191
33192 #. type: textblock
33193 #: ../src/guestfs-actions.pod:5640
33194 msgid ""
33195 "This is the same as the C<guestfs_mount> command, but it allows you to set "
33196 "the mount options as for the L<mount(8)> I<-o> flag."
33197 msgstr ""
33198
33199 #. type: textblock
33200 #: ../src/guestfs-actions.pod:5650 ../src/guestfs-actions.pod:5664
33201 #: ../src/guestfs-actions.pod:5681
33202 msgid "(Added in 1.0.10)"
33203 msgstr "(Додано у 1.0.10)"
33204
33205 #. type: =head2
33206 #: ../src/guestfs-actions.pod:5652
33207 msgid "guestfs_mount_ro"
33208 msgstr ""
33209
33210 #. type: verbatim
33211 #: ../src/guestfs-actions.pod:5654
33212 #, no-wrap
33213 msgid ""
33214 " int\n"
33215 " guestfs_mount_ro (guestfs_h *g,\n"
33216 "                   const char *device,\n"
33217 "                   const char *mountpoint);\n"
33218 "\n"
33219 msgstr ""
33220
33221 #. type: textblock
33222 #: ../src/guestfs-actions.pod:5659
33223 msgid ""
33224 "This is the same as the C<guestfs_mount> command, but it mounts the "
33225 "filesystem with the read-only (I<-o ro>) flag."
33226 msgstr ""
33227
33228 #. type: =head2
33229 #: ../src/guestfs-actions.pod:5666
33230 msgid "guestfs_mount_vfs"
33231 msgstr ""
33232
33233 #. type: verbatim
33234 #: ../src/guestfs-actions.pod:5668
33235 #, no-wrap
33236 msgid ""
33237 " int\n"
33238 " guestfs_mount_vfs (guestfs_h *g,\n"
33239 "                    const char *options,\n"
33240 "                    const char *vfstype,\n"
33241 "                    const char *device,\n"
33242 "                    const char *mountpoint);\n"
33243 "\n"
33244 msgstr ""
33245
33246 #. type: textblock
33247 #: ../src/guestfs-actions.pod:5675
33248 msgid ""
33249 "This is the same as the C<guestfs_mount> command, but it allows you to set "
33250 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
33251 "t> flags."
33252 msgstr ""
33253
33254 #. type: =head2
33255 #: ../src/guestfs-actions.pod:5683
33256 msgid "guestfs_mountpoints"
33257 msgstr ""
33258
33259 #. type: verbatim
33260 #: ../src/guestfs-actions.pod:5685
33261 #, no-wrap
33262 msgid ""
33263 " char **\n"
33264 " guestfs_mountpoints (guestfs_h *g);\n"
33265 "\n"
33266 msgstr ""
33267
33268 #. type: textblock
33269 #: ../src/guestfs-actions.pod:5688
33270 msgid ""
33271 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
33272 "devices.  This one returns a hash table (map) of device name to directory "
33273 "where the device is mounted."
33274 msgstr ""
33275
33276 #. type: =head2
33277 #: ../src/guestfs-actions.pod:5700
33278 msgid "guestfs_mounts"
33279 msgstr ""
33280
33281 #. type: verbatim
33282 #: ../src/guestfs-actions.pod:5702
33283 #, no-wrap
33284 msgid ""
33285 " char **\n"
33286 " guestfs_mounts (guestfs_h *g);\n"
33287 "\n"
33288 msgstr ""
33289
33290 #. type: textblock
33291 #: ../src/guestfs-actions.pod:5710
33292 msgid "See also: C<guestfs_mountpoints>"
33293 msgstr ""
33294
33295 #. type: =head2
33296 #: ../src/guestfs-actions.pod:5718
33297 msgid "guestfs_mv"
33298 msgstr ""
33299
33300 #. type: verbatim
33301 #: ../src/guestfs-actions.pod:5720
33302 #, no-wrap
33303 msgid ""
33304 " int\n"
33305 " guestfs_mv (guestfs_h *g,\n"
33306 "             const char *src,\n"
33307 "             const char *dest);\n"
33308 "\n"
33309 msgstr ""
33310
33311 #. type: =head2
33312 #: ../src/guestfs-actions.pod:5732
33313 msgid "guestfs_ntfs_3g_probe"
33314 msgstr ""
33315
33316 #. type: verbatim
33317 #: ../src/guestfs-actions.pod:5734
33318 #, no-wrap
33319 msgid ""
33320 " int\n"
33321 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
33322 "                        int rw,\n"
33323 "                        const char *device);\n"
33324 "\n"
33325 msgstr ""
33326
33327 #. type: textblock
33328 #: ../src/guestfs-actions.pod:5753
33329 msgid "(Added in 1.0.43)"
33330 msgstr "(Додано у 1.0.43)"
33331
33332 #. type: =head2
33333 #: ../src/guestfs-actions.pod:5755
33334 msgid "guestfs_ntfsresize"
33335 msgstr ""
33336
33337 #. type: verbatim
33338 #: ../src/guestfs-actions.pod:5757
33339 #, no-wrap
33340 msgid ""
33341 " int\n"
33342 " guestfs_ntfsresize (guestfs_h *g,\n"
33343 "                     const char *device);\n"
33344 "\n"
33345 msgstr ""
33346
33347 #. type: textblock
33348 #: ../src/guestfs-actions.pod:5761 ../src/guestfs-actions.pod:5861
33349 msgid ""
33350 "I<This function is deprecated.> In new code, use the L</"
33351 "guestfs_ntfsresize_opts> call instead."
33352 msgstr ""
33353
33354 #. type: =head2
33355 #: ../src/guestfs-actions.pod:5785
33356 msgid "guestfs_ntfsresize_opts"
33357 msgstr ""
33358
33359 #. type: verbatim
33360 #: ../src/guestfs-actions.pod:5787
33361 #, no-wrap
33362 msgid ""
33363 " int\n"
33364 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
33365 "                          const char *device,\n"
33366 "                          ...);\n"
33367 "\n"
33368 msgstr ""
33369
33370 #. type: verbatim
33371 #: ../src/guestfs-actions.pod:5797
33372 #, no-wrap
33373 msgid ""
33374 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
33375 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
33376 "\n"
33377 msgstr ""
33378
33379 #. type: textblock
33380 #: ../src/guestfs-actions.pod:5817
33381 msgid ""
33382 "After the resize operation, the filesystem is always marked as requiring a "
33383 "consistency check (for safety).  You have to boot into Windows to perform "
33384 "this check and clear this condition.  If you I<don't> set the C<force> "
33385 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
33386 "times on a single filesystem without booting into Windows between each "
33387 "resize."
33388 msgstr ""
33389
33390 #. type: =head2
33391 #: ../src/guestfs-actions.pod:5832
33392 msgid "guestfs_ntfsresize_opts_va"
33393 msgstr ""
33394
33395 #. type: verbatim
33396 #: ../src/guestfs-actions.pod:5834
33397 #, no-wrap
33398 msgid ""
33399 " int\n"
33400 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
33401 "                             const char *device,\n"
33402 "                             va_list args);\n"
33403 "\n"
33404 msgstr ""
33405
33406 #. type: textblock
33407 #: ../src/guestfs-actions.pod:5839
33408 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
33409 msgstr ""
33410
33411 #. type: =head2
33412 #: ../src/guestfs-actions.pod:5843
33413 msgid "guestfs_ntfsresize_opts_argv"
33414 msgstr ""
33415
33416 #. type: verbatim
33417 #: ../src/guestfs-actions.pod:5845
33418 #, no-wrap
33419 msgid ""
33420 " int\n"
33421 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
33422 "                               const char *device,\n"
33423 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
33424 "\n"
33425 msgstr ""
33426
33427 #. type: textblock
33428 #: ../src/guestfs-actions.pod:5850
33429 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
33430 msgstr ""
33431
33432 #. type: =head2
33433 #: ../src/guestfs-actions.pod:5854
33434 msgid "guestfs_ntfsresize_size"
33435 msgstr ""
33436
33437 #. type: verbatim
33438 #: ../src/guestfs-actions.pod:5856
33439 #, no-wrap
33440 msgid ""
33441 " int\n"
33442 " guestfs_ntfsresize_size (guestfs_h *g,\n"
33443 "                          const char *device,\n"
33444 "                          int64_t size);\n"
33445 "\n"
33446 msgstr ""
33447
33448 #. type: textblock
33449 #: ../src/guestfs-actions.pod:5868
33450 msgid ""
33451 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
33452 "to specify the new size (in bytes) explicitly."
33453 msgstr ""
33454
33455 #. type: textblock
33456 #: ../src/guestfs-actions.pod:5873 ../src/guestfs-actions.pod:6332
33457 #: ../src/guestfs-actions.pod:6405 ../src/guestfs-actions.pod:6673
33458 #: ../src/guestfs-actions.pod:8422
33459 msgid "(Added in 1.3.14)"
33460 msgstr "(Додано у 1.3.14)"
33461
33462 #. type: =head2
33463 #: ../src/guestfs-actions.pod:5875
33464 msgid "guestfs_part_add"
33465 msgstr ""
33466
33467 #. type: verbatim
33468 #: ../src/guestfs-actions.pod:5877
33469 #, no-wrap
33470 msgid ""
33471 " int\n"
33472 " guestfs_part_add (guestfs_h *g,\n"
33473 "                   const char *device,\n"
33474 "                   const char *prlogex,\n"
33475 "                   int64_t startsect,\n"
33476 "                   int64_t endsect);\n"
33477 "\n"
33478 msgstr ""
33479
33480 #. type: textblock
33481 #: ../src/guestfs-actions.pod:5884
33482 msgid ""
33483 "This command adds a partition to C<device>.  If there is no partition table "
33484 "on the device, call C<guestfs_part_init> first."
33485 msgstr ""
33486
33487 #. type: textblock
33488 #: ../src/guestfs-actions.pod:5896
33489 msgid ""
33490 "Creating a partition which covers the whole disk is not so easy.  Use "
33491 "C<guestfs_part_disk> to do that."
33492 msgstr ""
33493
33494 #. type: textblock
33495 #: ../src/guestfs-actions.pod:5901 ../src/guestfs-actions.pod:5936
33496 #: ../src/guestfs-actions.pod:5989 ../src/guestfs-actions.pod:6073
33497 #: ../src/guestfs-actions.pod:6111 ../src/guestfs-actions.pod:6130
33498 #: ../src/guestfs-actions.pod:6170
33499 msgid "(Added in 1.0.78)"
33500 msgstr "(Додано у 1.0.78)"
33501
33502 #. type: =head2
33503 #: ../src/guestfs-actions.pod:5903
33504 msgid "guestfs_part_del"
33505 msgstr ""
33506
33507 #. type: verbatim
33508 #: ../src/guestfs-actions.pod:5905
33509 #, no-wrap
33510 msgid ""
33511 " int\n"
33512 " guestfs_part_del (guestfs_h *g,\n"
33513 "                   const char *device,\n"
33514 "                   int partnum);\n"
33515 "\n"
33516 msgstr ""
33517
33518 #. type: =head2
33519 #: ../src/guestfs-actions.pod:5920
33520 msgid "guestfs_part_disk"
33521 msgstr ""
33522
33523 #. type: verbatim
33524 #: ../src/guestfs-actions.pod:5922
33525 #, no-wrap
33526 msgid ""
33527 " int\n"
33528 " guestfs_part_disk (guestfs_h *g,\n"
33529 "                    const char *device,\n"
33530 "                    const char *parttype);\n"
33531 "\n"
33532 msgstr ""
33533
33534 #. type: textblock
33535 #: ../src/guestfs-actions.pod:5927
33536 msgid ""
33537 "This command is simply a combination of C<guestfs_part_init> followed by "
33538 "C<guestfs_part_add> to create a single primary partition covering the whole "
33539 "disk."
33540 msgstr ""
33541
33542 #. type: textblock
33543 #: ../src/guestfs-actions.pod:5931
33544 msgid ""
33545 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
33546 "possible values are described in C<guestfs_part_init>."
33547 msgstr ""
33548
33549 #. type: =head2
33550 #: ../src/guestfs-actions.pod:5938
33551 msgid "guestfs_part_get_bootable"
33552 msgstr ""
33553
33554 #. type: verbatim
33555 #: ../src/guestfs-actions.pod:5940
33556 #, no-wrap
33557 msgid ""
33558 " int\n"
33559 " guestfs_part_get_bootable (guestfs_h *g,\n"
33560 "                            const char *device,\n"
33561 "                            int partnum);\n"
33562 "\n"
33563 msgstr ""
33564
33565 #. type: textblock
33566 #: ../src/guestfs-actions.pod:5948
33567 msgid "See also C<guestfs_part_set_bootable>."
33568 msgstr ""
33569
33570 #. type: =head2
33571 #: ../src/guestfs-actions.pod:5954
33572 msgid "guestfs_part_get_mbr_id"
33573 msgstr ""
33574
33575 #. type: verbatim
33576 #: ../src/guestfs-actions.pod:5956
33577 #, no-wrap
33578 msgid ""
33579 " int\n"
33580 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
33581 "                          const char *device,\n"
33582 "                          int partnum);\n"
33583 "\n"
33584 msgstr ""
33585
33586 #. type: textblock
33587 #: ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:6146
33588 msgid ""
33589 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
33590 "undefined results for other partition table types (see "
33591 "C<guestfs_part_get_parttype>)."
33592 msgstr ""
33593
33594 #. type: =head2
33595 #: ../src/guestfs-actions.pod:5972
33596 msgid "guestfs_part_get_parttype"
33597 msgstr ""
33598
33599 #. type: verbatim
33600 #: ../src/guestfs-actions.pod:5974
33601 #, no-wrap
33602 msgid ""
33603 " char *\n"
33604 " guestfs_part_get_parttype (guestfs_h *g,\n"
33605 "                            const char *device);\n"
33606 "\n"
33607 msgstr ""
33608
33609 #. type: textblock
33610 #: ../src/guestfs-actions.pod:5981
33611 msgid ""
33612 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
33613 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
33614 "possible, although unusual.  See C<guestfs_part_init> for a full list."
33615 msgstr ""
33616
33617 #. type: =head2
33618 #: ../src/guestfs-actions.pod:5991
33619 msgid "guestfs_part_init"
33620 msgstr ""
33621
33622 #. type: verbatim
33623 #: ../src/guestfs-actions.pod:5993
33624 #, no-wrap
33625 msgid ""
33626 " int\n"
33627 " guestfs_part_init (guestfs_h *g,\n"
33628 "                    const char *device,\n"
33629 "                    const char *parttype);\n"
33630 "\n"
33631 msgstr ""
33632
33633 #. type: textblock
33634 #: ../src/guestfs-actions.pod:6002
33635 msgid ""
33636 "Initially there are no partitions.  Following this, you should call "
33637 "C<guestfs_part_add> for each partition required."
33638 msgstr ""
33639
33640 #. type: =head2
33641 #: ../src/guestfs-actions.pod:6075
33642 msgid "guestfs_part_list"
33643 msgstr "guestfs_part_list"
33644
33645 #. type: verbatim
33646 #: ../src/guestfs-actions.pod:6077
33647 #, no-wrap
33648 msgid ""
33649 " struct guestfs_partition_list *\n"
33650 " guestfs_part_list (guestfs_h *g,\n"
33651 "                    const char *device);\n"
33652 "\n"
33653 msgstr ""
33654 " struct guestfs_partition_list *\n"
33655 " guestfs_part_list (guestfs_h *g,\n"
33656 "                    const char *device);\n"
33657 "\n"
33658
33659 #. type: textblock
33660 #: ../src/guestfs-actions.pod:6094
33661 msgid ""
33662 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
33663 "the device's sector size, see C<guestfs_blockdev_getss>."
33664 msgstr ""
33665
33666 #. type: textblock
33667 #: ../src/guestfs-actions.pod:6107
33668 msgid ""
33669 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
33670 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
33671 "use>."
33672 msgstr ""
33673
33674 #. type: =head2
33675 #: ../src/guestfs-actions.pod:6113
33676 msgid "guestfs_part_set_bootable"
33677 msgstr ""
33678
33679 #. type: verbatim
33680 #: ../src/guestfs-actions.pod:6115
33681 #, no-wrap
33682 msgid ""
33683 " int\n"
33684 " guestfs_part_set_bootable (guestfs_h *g,\n"
33685 "                            const char *device,\n"
33686 "                            int partnum,\n"
33687 "                            int bootable);\n"
33688 "\n"
33689 msgstr ""
33690
33691 #. type: =head2
33692 #: ../src/guestfs-actions.pod:6132
33693 msgid "guestfs_part_set_mbr_id"
33694 msgstr ""
33695
33696 #. type: verbatim
33697 #: ../src/guestfs-actions.pod:6134
33698 #, no-wrap
33699 msgid ""
33700 " int\n"
33701 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
33702 "                          const char *device,\n"
33703 "                          int partnum,\n"
33704 "                          int idbyte);\n"
33705 "\n"
33706 msgstr ""
33707
33708 #. type: =head2
33709 #: ../src/guestfs-actions.pod:6154
33710 msgid "guestfs_part_set_name"
33711 msgstr ""
33712
33713 #. type: verbatim
33714 #: ../src/guestfs-actions.pod:6156
33715 #, no-wrap
33716 msgid ""
33717 " int\n"
33718 " guestfs_part_set_name (guestfs_h *g,\n"
33719 "                        const char *device,\n"
33720 "                        int partnum,\n"
33721 "                        const char *name);\n"
33722 "\n"
33723 msgstr ""
33724
33725 #. type: =head2
33726 #: ../src/guestfs-actions.pod:6172
33727 msgid "guestfs_part_to_dev"
33728 msgstr ""
33729
33730 #. type: verbatim
33731 #: ../src/guestfs-actions.pod:6174
33732 #, no-wrap
33733 msgid ""
33734 " char *\n"
33735 " guestfs_part_to_dev (guestfs_h *g,\n"
33736 "                      const char *partition);\n"
33737 "\n"
33738 msgstr ""
33739
33740 #. type: textblock
33741 #: ../src/guestfs-actions.pod:6182 ../src/guestfs-actions.pod:6201
33742 msgid ""
33743 "The named partition must exist, for example as a string returned from "
33744 "C<guestfs_list_partitions>."
33745 msgstr ""
33746
33747 #. type: textblock
33748 #: ../src/guestfs-actions.pod:6185
33749 msgid "See also C<guestfs_part_to_partnum>."
33750 msgstr ""
33751
33752 #. type: =head2
33753 #: ../src/guestfs-actions.pod:6192
33754 msgid "guestfs_part_to_partnum"
33755 msgstr ""
33756
33757 #. type: verbatim
33758 #: ../src/guestfs-actions.pod:6194
33759 #, no-wrap
33760 msgid ""
33761 " int\n"
33762 " guestfs_part_to_partnum (guestfs_h *g,\n"
33763 "                          const char *partition);\n"
33764 "\n"
33765 msgstr ""
33766
33767 #. type: textblock
33768 #: ../src/guestfs-actions.pod:6204
33769 msgid "See also C<guestfs_part_to_dev>."
33770 msgstr ""
33771
33772 #. type: =head2
33773 #: ../src/guestfs-actions.pod:6210
33774 msgid "guestfs_ping_daemon"
33775 msgstr ""
33776
33777 #. type: verbatim
33778 #: ../src/guestfs-actions.pod:6212
33779 #, no-wrap
33780 msgid ""
33781 " int\n"
33782 " guestfs_ping_daemon (guestfs_h *g);\n"
33783 "\n"
33784 msgstr ""
33785
33786 #. type: =head2
33787 #: ../src/guestfs-actions.pod:6224
33788 msgid "guestfs_pread"
33789 msgstr ""
33790
33791 #. type: verbatim
33792 #: ../src/guestfs-actions.pod:6226
33793 #, no-wrap
33794 msgid ""
33795 " char *\n"
33796 " guestfs_pread (guestfs_h *g,\n"
33797 "                const char *path,\n"
33798 "                int count,\n"
33799 "                int64_t offset,\n"
33800 "                size_t *size_r);\n"
33801 "\n"
33802 msgstr ""
33803
33804 #. type: textblock
33805 #: ../src/guestfs-actions.pod:6239
33806 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
33807 msgstr ""
33808
33809 #. type: =head2
33810 #: ../src/guestfs-actions.pod:6250
33811 msgid "guestfs_pread_device"
33812 msgstr ""
33813
33814 #. type: verbatim
33815 #: ../src/guestfs-actions.pod:6252
33816 #, no-wrap
33817 msgid ""
33818 " char *\n"
33819 " guestfs_pread_device (guestfs_h *g,\n"
33820 "                       const char *device,\n"
33821 "                       int count,\n"
33822 "                       int64_t offset,\n"
33823 "                       size_t *size_r);\n"
33824 "\n"
33825 msgstr ""
33826
33827 #. type: textblock
33828 #: ../src/guestfs-actions.pod:6265
33829 msgid "See also C<guestfs_pread>."
33830 msgstr ""
33831
33832 #. type: textblock
33833 #: ../src/guestfs-actions.pod:6274
33834 msgid "(Added in 1.5.21)"
33835 msgstr "(Додано у 1.5.21)"
33836
33837 #. type: =head2
33838 #: ../src/guestfs-actions.pod:6276
33839 msgid "guestfs_pvcreate"
33840 msgstr ""
33841
33842 #. type: verbatim
33843 #: ../src/guestfs-actions.pod:6278
33844 #, no-wrap
33845 msgid ""
33846 " int\n"
33847 " guestfs_pvcreate (guestfs_h *g,\n"
33848 "                   const char *device);\n"
33849 "\n"
33850 msgstr ""
33851
33852 #. type: =head2
33853 #: ../src/guestfs-actions.pod:6290
33854 msgid "guestfs_pvremove"
33855 msgstr ""
33856
33857 #. type: verbatim
33858 #: ../src/guestfs-actions.pod:6292
33859 #, no-wrap
33860 msgid ""
33861 " int\n"
33862 " guestfs_pvremove (guestfs_h *g,\n"
33863 "                   const char *device);\n"
33864 "\n"
33865 msgstr ""
33866
33867 #. type: =head2
33868 #: ../src/guestfs-actions.pod:6307
33869 msgid "guestfs_pvresize"
33870 msgstr ""
33871
33872 #. type: verbatim
33873 #: ../src/guestfs-actions.pod:6309
33874 #, no-wrap
33875 msgid ""
33876 " int\n"
33877 " guestfs_pvresize (guestfs_h *g,\n"
33878 "                   const char *device);\n"
33879 "\n"
33880 msgstr ""
33881
33882 #. type: =head2
33883 #: ../src/guestfs-actions.pod:6320
33884 msgid "guestfs_pvresize_size"
33885 msgstr ""
33886
33887 #. type: verbatim
33888 #: ../src/guestfs-actions.pod:6322
33889 #, no-wrap
33890 msgid ""
33891 " int\n"
33892 " guestfs_pvresize_size (guestfs_h *g,\n"
33893 "                        const char *device,\n"
33894 "                        int64_t size);\n"
33895 "\n"
33896 msgstr ""
33897
33898 #. type: textblock
33899 #: ../src/guestfs-actions.pod:6327
33900 msgid ""
33901 "This command is the same as C<guestfs_pvresize> except that it allows you to "
33902 "specify the new size (in bytes) explicitly."
33903 msgstr ""
33904
33905 #. type: =head2
33906 #: ../src/guestfs-actions.pod:6334
33907 msgid "guestfs_pvs"
33908 msgstr ""
33909
33910 #. type: verbatim
33911 #: ../src/guestfs-actions.pod:6336
33912 #, no-wrap
33913 msgid ""
33914 " char **\n"
33915 " guestfs_pvs (guestfs_h *g);\n"
33916 "\n"
33917 msgstr ""
33918
33919 #. type: textblock
33920 #: ../src/guestfs-actions.pod:6345
33921 msgid "See also C<guestfs_pvs_full>."
33922 msgstr ""
33923
33924 #. type: =head2
33925 #: ../src/guestfs-actions.pod:6353
33926 msgid "guestfs_pvs_full"
33927 msgstr ""
33928
33929 #. type: verbatim
33930 #: ../src/guestfs-actions.pod:6355
33931 #, no-wrap
33932 msgid ""
33933 " struct guestfs_lvm_pv_list *\n"
33934 " guestfs_pvs_full (guestfs_h *g);\n"
33935 "\n"
33936 msgstr ""
33937
33938 #. type: textblock
33939 #: ../src/guestfs-actions.pod:6361
33940 msgid ""
33941 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
33942 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
33943 msgstr ""
33944
33945 #. type: =head2
33946 #: ../src/guestfs-actions.pod:6367
33947 msgid "guestfs_pvuuid"
33948 msgstr ""
33949
33950 #. type: verbatim
33951 #: ../src/guestfs-actions.pod:6369
33952 #, no-wrap
33953 msgid ""
33954 " char *\n"
33955 " guestfs_pvuuid (guestfs_h *g,\n"
33956 "                 const char *device);\n"
33957 "\n"
33958 msgstr ""
33959
33960 #. type: =head2
33961 #: ../src/guestfs-actions.pod:6380
33962 msgid "guestfs_pwrite"
33963 msgstr ""
33964
33965 #. type: verbatim
33966 #: ../src/guestfs-actions.pod:6382
33967 #, no-wrap
33968 msgid ""
33969 " int\n"
33970 " guestfs_pwrite (guestfs_h *g,\n"
33971 "                 const char *path,\n"
33972 "                 const char *content,\n"
33973 "                 size_t content_size,\n"
33974 "                 int64_t offset);\n"
33975 "\n"
33976 msgstr ""
33977
33978 #. type: textblock
33979 #: ../src/guestfs-actions.pod:6398
33980 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
33981 msgstr ""
33982
33983 #. type: =head2
33984 #: ../src/guestfs-actions.pod:6407
33985 msgid "guestfs_pwrite_device"
33986 msgstr ""
33987
33988 #. type: verbatim
33989 #: ../src/guestfs-actions.pod:6409
33990 #, no-wrap
33991 msgid ""
33992 " int\n"
33993 " guestfs_pwrite_device (guestfs_h *g,\n"
33994 "                        const char *device,\n"
33995 "                        const char *content,\n"
33996 "                        size_t content_size,\n"
33997 "                        int64_t offset);\n"
33998 "\n"
33999 msgstr ""
34000
34001 #. type: textblock
34002 #: ../src/guestfs-actions.pod:6424
34003 msgid "See also C<guestfs_pwrite>."
34004 msgstr ""
34005
34006 #. type: textblock
34007 #: ../src/guestfs-actions.pod:6431
34008 msgid "(Added in 1.5.20)"
34009 msgstr "(Додано у 1.5.20)"
34010
34011 #. type: =head2
34012 #: ../src/guestfs-actions.pod:6433
34013 msgid "guestfs_read_file"
34014 msgstr ""
34015
34016 #. type: verbatim
34017 #: ../src/guestfs-actions.pod:6435
34018 #, no-wrap
34019 msgid ""
34020 " char *\n"
34021 " guestfs_read_file (guestfs_h *g,\n"
34022 "                    const char *path,\n"
34023 "                    size_t *size_r);\n"
34024 "\n"
34025 msgstr ""
34026
34027 #. type: textblock
34028 #: ../src/guestfs-actions.pod:6443
34029 msgid ""
34030 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
34031 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
34032 "function is limited in the total size of file that can be handled."
34033 msgstr ""
34034
34035 #. type: textblock
34036 #: ../src/guestfs-actions.pod:6455
34037 msgid "(Added in 1.0.63)"
34038 msgstr "(Додано у 1.0.63)"
34039
34040 #. type: =head2
34041 #: ../src/guestfs-actions.pod:6457
34042 msgid "guestfs_read_lines"
34043 msgstr ""
34044
34045 #. type: verbatim
34046 #: ../src/guestfs-actions.pod:6459
34047 #, no-wrap
34048 msgid ""
34049 " char **\n"
34050 " guestfs_read_lines (guestfs_h *g,\n"
34051 "                     const char *path);\n"
34052 "\n"
34053 msgstr ""
34054
34055 #. type: textblock
34056 #: ../src/guestfs-actions.pod:6468
34057 msgid ""
34058 "Note that this function cannot correctly handle binary files (specifically, "
34059 "files containing C<\\0> character which is treated as end of line).  For "
34060 "those you need to use the C<guestfs_read_file> function which has a more "
34061 "complex interface."
34062 msgstr ""
34063
34064 #. type: =head2
34065 #: ../src/guestfs-actions.pod:6479
34066 msgid "guestfs_readdir"
34067 msgstr ""
34068
34069 #. type: verbatim
34070 #: ../src/guestfs-actions.pod:6481
34071 #, no-wrap
34072 msgid ""
34073 " struct guestfs_dirent_list *\n"
34074 " guestfs_readdir (guestfs_h *g,\n"
34075 "                  const char *dir);\n"
34076 "\n"
34077 msgstr ""
34078
34079 #. type: textblock
34080 #: ../src/guestfs-actions.pod:6535
34081 msgid ""
34082 "This function is primarily intended for use by programs.  To get a simple "
34083 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
34084 "consumption, use C<guestfs_ll>."
34085 msgstr ""
34086
34087 #. type: textblock
34088 #: ../src/guestfs-actions.pod:6539
34089 msgid ""
34090 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
34091 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
34092 msgstr ""
34093
34094 #. type: =head2
34095 #: ../src/guestfs-actions.pod:6545
34096 msgid "guestfs_readlink"
34097 msgstr ""
34098
34099 #. type: verbatim
34100 #: ../src/guestfs-actions.pod:6547
34101 #, no-wrap
34102 msgid ""
34103 " char *\n"
34104 " guestfs_readlink (guestfs_h *g,\n"
34105 "                   const char *path);\n"
34106 "\n"
34107 msgstr ""
34108
34109 #. type: =head2
34110 #: ../src/guestfs-actions.pod:6558
34111 msgid "guestfs_readlinklist"
34112 msgstr ""
34113
34114 #. type: verbatim
34115 #: ../src/guestfs-actions.pod:6560
34116 #, no-wrap
34117 msgid ""
34118 " char **\n"
34119 " guestfs_readlinklist (guestfs_h *g,\n"
34120 "                       const char *path,\n"
34121 "                       char *const *names);\n"
34122 "\n"
34123 msgstr ""
34124
34125 #. type: =head2
34126 #: ../src/guestfs-actions.pod:6593
34127 msgid "guestfs_realpath"
34128 msgstr ""
34129
34130 #. type: verbatim
34131 #: ../src/guestfs-actions.pod:6595
34132 #, no-wrap
34133 msgid ""
34134 " char *\n"
34135 " guestfs_realpath (guestfs_h *g,\n"
34136 "                   const char *path);\n"
34137 "\n"
34138 msgstr ""
34139
34140 #. type: =head2
34141 #: ../src/guestfs-actions.pod:6607
34142 msgid "guestfs_removexattr"
34143 msgstr ""
34144
34145 #. type: verbatim
34146 #: ../src/guestfs-actions.pod:6609
34147 #, no-wrap
34148 msgid ""
34149 " int\n"
34150 " guestfs_removexattr (guestfs_h *g,\n"
34151 "                      const char *xattr,\n"
34152 "                      const char *path);\n"
34153 "\n"
34154 msgstr ""
34155
34156 #. type: textblock
34157 #: ../src/guestfs-actions.pod:6617
34158 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
34159 msgstr ""
34160
34161 #. type: =head2
34162 #: ../src/guestfs-actions.pod:6623
34163 msgid "guestfs_resize2fs"
34164 msgstr ""
34165
34166 #. type: verbatim
34167 #: ../src/guestfs-actions.pod:6625
34168 #, no-wrap
34169 msgid ""
34170 " int\n"
34171 " guestfs_resize2fs (guestfs_h *g,\n"
34172 "                    const char *device);\n"
34173 "\n"
34174 msgstr ""
34175
34176 #. type: textblock
34177 #: ../src/guestfs-actions.pod:6632
34178 msgid ""
34179 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
34180 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
34181 "sometimes gives an error about this and sometimes not.  In any case, it is "
34182 "always safe to call C<guestfs_e2fsck_f> before calling this function."
34183 msgstr ""
34184
34185 #. type: =head2
34186 #: ../src/guestfs-actions.pod:6642
34187 msgid "guestfs_resize2fs_M"
34188 msgstr ""
34189
34190 #. type: verbatim
34191 #: ../src/guestfs-actions.pod:6644
34192 #, no-wrap
34193 msgid ""
34194 " int\n"
34195 " guestfs_resize2fs_M (guestfs_h *g,\n"
34196 "                      const char *device);\n"
34197 "\n"
34198 msgstr ""
34199
34200 #. type: textblock
34201 #: ../src/guestfs-actions.pod:6648
34202 msgid ""
34203 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
34204 "resized to its minimum size.  This works like the I<-M> option to the "
34205 "C<resize2fs> command."
34206 msgstr ""
34207
34208 #. type: textblock
34209 #: ../src/guestfs-actions.pod:6652
34210 msgid ""
34211 "To get the resulting size of the filesystem you should call "
34212 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
34213 "These two numbers, multiplied together, give the resulting size of the "
34214 "minimal filesystem in bytes."
34215 msgstr ""
34216
34217 #. type: =head2
34218 #: ../src/guestfs-actions.pod:6661
34219 msgid "guestfs_resize2fs_size"
34220 msgstr ""
34221
34222 #. type: verbatim
34223 #: ../src/guestfs-actions.pod:6663
34224 #, no-wrap
34225 msgid ""
34226 " int\n"
34227 " guestfs_resize2fs_size (guestfs_h *g,\n"
34228 "                         const char *device,\n"
34229 "                         int64_t size);\n"
34230 "\n"
34231 msgstr ""
34232
34233 #. type: textblock
34234 #: ../src/guestfs-actions.pod:6668
34235 msgid ""
34236 "This command is the same as C<guestfs_resize2fs> except that it allows you "
34237 "to specify the new size (in bytes) explicitly."
34238 msgstr ""
34239
34240 #. type: =head2
34241 #: ../src/guestfs-actions.pod:6675
34242 msgid "guestfs_rm"
34243 msgstr ""
34244
34245 #. type: verbatim
34246 #: ../src/guestfs-actions.pod:6677
34247 #, no-wrap
34248 msgid ""
34249 " int\n"
34250 " guestfs_rm (guestfs_h *g,\n"
34251 "             const char *path);\n"
34252 "\n"
34253 msgstr ""
34254
34255 #. type: =head2
34256 #: ../src/guestfs-actions.pod:6687
34257 msgid "guestfs_rm_rf"
34258 msgstr ""
34259
34260 #. type: verbatim
34261 #: ../src/guestfs-actions.pod:6689
34262 #, no-wrap
34263 msgid ""
34264 " int\n"
34265 " guestfs_rm_rf (guestfs_h *g,\n"
34266 "                const char *path);\n"
34267 "\n"
34268 msgstr ""
34269
34270 #. type: =head2
34271 #: ../src/guestfs-actions.pod:6701
34272 msgid "guestfs_rmdir"
34273 msgstr ""
34274
34275 #. type: verbatim
34276 #: ../src/guestfs-actions.pod:6703
34277 #, no-wrap
34278 msgid ""
34279 " int\n"
34280 " guestfs_rmdir (guestfs_h *g,\n"
34281 "                const char *path);\n"
34282 "\n"
34283 msgstr ""
34284
34285 #. type: =head2
34286 #: ../src/guestfs-actions.pod:6713
34287 msgid "guestfs_rmmountpoint"
34288 msgstr ""
34289
34290 #. type: verbatim
34291 #: ../src/guestfs-actions.pod:6715
34292 #, no-wrap
34293 msgid ""
34294 " int\n"
34295 " guestfs_rmmountpoint (guestfs_h *g,\n"
34296 "                       const char *exemptpath);\n"
34297 "\n"
34298 msgstr ""
34299
34300 #. type: textblock
34301 #: ../src/guestfs-actions.pod:6719
34302 msgid ""
34303 "This calls removes a mountpoint that was previously created with "
34304 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
34305 msgstr ""
34306
34307 #. type: =head2
34308 #: ../src/guestfs-actions.pod:6727
34309 msgid "guestfs_scrub_device"
34310 msgstr ""
34311
34312 #. type: verbatim
34313 #: ../src/guestfs-actions.pod:6729
34314 #, no-wrap
34315 msgid ""
34316 " int\n"
34317 " guestfs_scrub_device (guestfs_h *g,\n"
34318 "                       const char *device);\n"
34319 "\n"
34320 msgstr ""
34321
34322 #. type: textblock
34323 #: ../src/guestfs-actions.pod:6741 ../src/guestfs-actions.pod:6759
34324 #: ../src/guestfs-actions.pod:6778
34325 msgid "(Added in 1.0.52)"
34326 msgstr "(Додано у 1.0.52)"
34327
34328 #. type: =head2
34329 #: ../src/guestfs-actions.pod:6743
34330 msgid "guestfs_scrub_file"
34331 msgstr ""
34332
34333 #. type: verbatim
34334 #: ../src/guestfs-actions.pod:6745
34335 #, no-wrap
34336 msgid ""
34337 " int\n"
34338 " guestfs_scrub_file (guestfs_h *g,\n"
34339 "                     const char *file);\n"
34340 "\n"
34341 msgstr ""
34342
34343 #. type: =head2
34344 #: ../src/guestfs-actions.pod:6761
34345 msgid "guestfs_scrub_freespace"
34346 msgstr ""
34347
34348 #. type: verbatim
34349 #: ../src/guestfs-actions.pod:6763
34350 #, no-wrap
34351 msgid ""
34352 " int\n"
34353 " guestfs_scrub_freespace (guestfs_h *g,\n"
34354 "                          const char *dir);\n"
34355 "\n"
34356 msgstr ""
34357
34358 #. type: textblock
34359 #: ../src/guestfs-actions.pod:6767
34360 msgid ""
34361 "This command creates the directory C<dir> and then fills it with files until "
34362 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
34363 "and deletes them.  The intention is to scrub any free space on the partition "
34364 "containing C<dir>."
34365 msgstr ""
34366
34367 #. type: =head2
34368 #: ../src/guestfs-actions.pod:6780
34369 msgid "guestfs_set_append"
34370 msgstr ""
34371
34372 #. type: verbatim
34373 #: ../src/guestfs-actions.pod:6782
34374 #, no-wrap
34375 msgid ""
34376 " int\n"
34377 " guestfs_set_append (guestfs_h *g,\n"
34378 "                     const char *append);\n"
34379 "\n"
34380 msgstr ""
34381
34382 #. type: =head2
34383 #: ../src/guestfs-actions.pod:6799
34384 msgid "guestfs_set_attach_method"
34385 msgstr ""
34386
34387 #. type: verbatim
34388 #: ../src/guestfs-actions.pod:6801
34389 #, no-wrap
34390 msgid ""
34391 " int\n"
34392 " guestfs_set_attach_method (guestfs_h *g,\n"
34393 "                            const char *attachmethod);\n"
34394 "\n"
34395 msgstr ""
34396
34397 #. type: =head2
34398 #: ../src/guestfs-actions.pod:6829
34399 msgid "guestfs_set_autosync"
34400 msgstr ""
34401
34402 #. type: verbatim
34403 #: ../src/guestfs-actions.pod:6831
34404 #, no-wrap
34405 msgid ""
34406 " int\n"
34407 " guestfs_set_autosync (guestfs_h *g,\n"
34408 "                       int autosync);\n"
34409 "\n"
34410 msgstr ""
34411
34412 #. type: =head2
34413 #: ../src/guestfs-actions.pod:6847
34414 msgid "guestfs_set_direct"
34415 msgstr ""
34416
34417 #. type: verbatim
34418 #: ../src/guestfs-actions.pod:6849
34419 #, no-wrap
34420 msgid ""
34421 " int\n"
34422 " guestfs_set_direct (guestfs_h *g,\n"
34423 "                     int direct);\n"
34424 "\n"
34425 msgstr ""
34426
34427 #. type: textblock
34428 #: ../src/guestfs-actions.pod:6857
34429 msgid ""
34430 "One consequence of this is that log messages aren't caught by the library "
34431 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
34432 "stdout."
34433 msgstr ""
34434
34435 #. type: =head2
34436 #: ../src/guestfs-actions.pod:6870
34437 msgid "guestfs_set_e2label"
34438 msgstr ""
34439
34440 #. type: verbatim
34441 #: ../src/guestfs-actions.pod:6872
34442 #, no-wrap
34443 msgid ""
34444 " int\n"
34445 " guestfs_set_e2label (guestfs_h *g,\n"
34446 "                      const char *device,\n"
34447 "                      const char *label);\n"
34448 "\n"
34449 msgstr ""
34450
34451 #. type: textblock
34452 #: ../src/guestfs-actions.pod:6881
34453 msgid ""
34454 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
34455 "the existing label on a filesystem."
34456 msgstr ""
34457
34458 #. type: =head2
34459 #: ../src/guestfs-actions.pod:6888
34460 msgid "guestfs_set_e2uuid"
34461 msgstr ""
34462
34463 #. type: verbatim
34464 #: ../src/guestfs-actions.pod:6890
34465 #, no-wrap
34466 msgid ""
34467 " int\n"
34468 " guestfs_set_e2uuid (guestfs_h *g,\n"
34469 "                     const char *device,\n"
34470 "                     const char *uuid);\n"
34471 "\n"
34472 msgstr ""
34473
34474 #. type: textblock
34475 #: ../src/guestfs-actions.pod:6900
34476 msgid ""
34477 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
34478 "the existing UUID of a filesystem."
34479 msgstr ""
34480
34481 #. type: =head2
34482 #: ../src/guestfs-actions.pod:6907
34483 msgid "guestfs_set_memsize"
34484 msgstr ""
34485
34486 #. type: verbatim
34487 #: ../src/guestfs-actions.pod:6909
34488 #, no-wrap
34489 msgid ""
34490 " int\n"
34491 " guestfs_set_memsize (guestfs_h *g,\n"
34492 "                      int memsize);\n"
34493 "\n"
34494 msgstr ""
34495
34496 #. type: textblock
34497 #: ../src/guestfs-actions.pod:6913
34498 msgid ""
34499 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
34500 "This only has any effect if called before C<guestfs_launch>."
34501 msgstr ""
34502
34503 #. type: =head2
34504 #: ../src/guestfs-actions.pod:6928
34505 msgid "guestfs_set_network"
34506 msgstr ""
34507
34508 #. type: verbatim
34509 #: ../src/guestfs-actions.pod:6930
34510 #, no-wrap
34511 msgid ""
34512 " int\n"
34513 " guestfs_set_network (guestfs_h *g,\n"
34514 "                      int network);\n"
34515 "\n"
34516 msgstr ""
34517
34518 #. type: textblock
34519 #: ../src/guestfs-actions.pod:6940
34520 msgid ""
34521 "You must call this before calling C<guestfs_launch>, otherwise it has no "
34522 "effect."
34523 msgstr ""
34524
34525 #. type: =head2
34526 #: ../src/guestfs-actions.pod:6947
34527 msgid "guestfs_set_path"
34528 msgstr ""
34529
34530 #. type: verbatim
34531 #: ../src/guestfs-actions.pod:6949
34532 #, no-wrap
34533 msgid ""
34534 " int\n"
34535 " guestfs_set_path (guestfs_h *g,\n"
34536 "                   const char *searchpath);\n"
34537 "\n"
34538 msgstr ""
34539
34540 #. type: =head2
34541 #: ../src/guestfs-actions.pod:6964
34542 msgid "guestfs_set_pgroup"
34543 msgstr ""
34544
34545 #. type: verbatim
34546 #: ../src/guestfs-actions.pod:6966
34547 #, no-wrap
34548 msgid ""
34549 " int\n"
34550 " guestfs_set_pgroup (guestfs_h *g,\n"
34551 "                     int pgroup);\n"
34552 "\n"
34553 msgstr ""
34554
34555 #. type: =head2
34556 #: ../src/guestfs-actions.pod:6983
34557 msgid "guestfs_set_qemu"
34558 msgstr ""
34559
34560 #. type: verbatim
34561 #: ../src/guestfs-actions.pod:6985
34562 #, no-wrap
34563 msgid ""
34564 " int\n"
34565 " guestfs_set_qemu (guestfs_h *g,\n"
34566 "                   const char *qemu);\n"
34567 "\n"
34568 msgstr ""
34569
34570 #. type: =head2
34571 #: ../src/guestfs-actions.pod:7011
34572 msgid "guestfs_set_recovery_proc"
34573 msgstr ""
34574
34575 #. type: verbatim
34576 #: ../src/guestfs-actions.pod:7013
34577 #, no-wrap
34578 msgid ""
34579 " int\n"
34580 " guestfs_set_recovery_proc (guestfs_h *g,\n"
34581 "                            int recoveryproc);\n"
34582 "\n"
34583 msgstr ""
34584
34585 #. type: textblock
34586 #: ../src/guestfs-actions.pod:7017
34587 msgid ""
34588 "If this is called with the parameter C<false> then C<guestfs_launch> does "
34589 "not create a recovery process.  The purpose of the recovery process is to "
34590 "stop runaway qemu processes in the case where the main program aborts "
34591 "abruptly."
34592 msgstr ""
34593
34594 #. type: textblock
34595 #: ../src/guestfs-actions.pod:7022
34596 msgid ""
34597 "This only has any effect if called before C<guestfs_launch>, and the default "
34598 "is true."
34599 msgstr ""
34600
34601 #. type: =head2
34602 #: ../src/guestfs-actions.pod:7035
34603 msgid "guestfs_set_selinux"
34604 msgstr ""
34605
34606 #. type: verbatim
34607 #: ../src/guestfs-actions.pod:7037
34608 #, no-wrap
34609 msgid ""
34610 " int\n"
34611 " guestfs_set_selinux (guestfs_h *g,\n"
34612 "                      int selinux);\n"
34613 "\n"
34614 msgstr ""
34615
34616 #. type: =head2
34617 #: ../src/guestfs-actions.pod:7054
34618 msgid "guestfs_set_smp"
34619 msgstr ""
34620
34621 #. type: verbatim
34622 #: ../src/guestfs-actions.pod:7056
34623 #, no-wrap
34624 msgid ""
34625 " int\n"
34626 " guestfs_set_smp (guestfs_h *g,\n"
34627 "                  int smp);\n"
34628 "\n"
34629 msgstr ""
34630
34631 #. type: textblock
34632 #: ../src/guestfs-actions.pod:7064
34633 msgid "This function must be called before C<guestfs_launch>."
34634 msgstr ""
34635
34636 #. type: =head2
34637 #: ../src/guestfs-actions.pod:7070
34638 msgid "guestfs_set_trace"
34639 msgstr ""
34640
34641 #. type: verbatim
34642 #: ../src/guestfs-actions.pod:7072
34643 #, no-wrap
34644 msgid ""
34645 " int\n"
34646 " guestfs_set_trace (guestfs_h *g,\n"
34647 "                    int trace);\n"
34648 "\n"
34649 msgstr ""
34650
34651 #. type: textblock
34652 #: ../src/guestfs-actions.pod:7086
34653 msgid ""
34654 "Trace messages are normally sent to C<stderr>, unless you register a "
34655 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
34656 msgstr ""
34657
34658 #. type: =head2
34659 #: ../src/guestfs-actions.pod:7094
34660 msgid "guestfs_set_verbose"
34661 msgstr ""
34662
34663 #. type: verbatim
34664 #: ../src/guestfs-actions.pod:7096
34665 #, no-wrap
34666 msgid ""
34667 " int\n"
34668 " guestfs_set_verbose (guestfs_h *g,\n"
34669 "                      int verbose);\n"
34670 "\n"
34671 msgstr ""
34672
34673 #. type: textblock
34674 #: ../src/guestfs-actions.pod:7105
34675 msgid ""
34676 "Verbose messages are normally sent to C<stderr>, unless you register a "
34677 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
34678 msgstr ""
34679
34680 #. type: =head2
34681 #: ../src/guestfs-actions.pod:7113
34682 msgid "guestfs_setcon"
34683 msgstr ""
34684
34685 #. type: verbatim
34686 #: ../src/guestfs-actions.pod:7115
34687 #, no-wrap
34688 msgid ""
34689 " int\n"
34690 " guestfs_setcon (guestfs_h *g,\n"
34691 "                 const char *context);\n"
34692 "\n"
34693 msgstr ""
34694
34695 #. type: =head2
34696 #: ../src/guestfs-actions.pod:7128
34697 msgid "guestfs_setxattr"
34698 msgstr ""
34699
34700 #. type: verbatim
34701 #: ../src/guestfs-actions.pod:7130
34702 #, no-wrap
34703 msgid ""
34704 " int\n"
34705 " guestfs_setxattr (guestfs_h *g,\n"
34706 "                   const char *xattr,\n"
34707 "                   const char *val,\n"
34708 "                   int vallen,\n"
34709 "                   const char *path);\n"
34710 "\n"
34711 msgstr ""
34712
34713 #. type: textblock
34714 #: ../src/guestfs-actions.pod:7141
34715 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
34716 msgstr ""
34717
34718 #. type: =head2
34719 #: ../src/guestfs-actions.pod:7147
34720 msgid "guestfs_sfdisk"
34721 msgstr ""
34722
34723 #. type: verbatim
34724 #: ../src/guestfs-actions.pod:7149
34725 #, no-wrap
34726 msgid ""
34727 " int\n"
34728 " guestfs_sfdisk (guestfs_h *g,\n"
34729 "                 const char *device,\n"
34730 "                 int cyls,\n"
34731 "                 int heads,\n"
34732 "                 int sectors,\n"
34733 "                 char *const *lines);\n"
34734 "\n"
34735 msgstr ""
34736
34737 #. type: textblock
34738 #: ../src/guestfs-actions.pod:7157 ../src/guestfs-actions.pod:7198
34739 #: ../src/guestfs-actions.pod:7229
34740 msgid ""
34741 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
34742 "call instead."
34743 msgstr ""
34744
34745 #. type: textblock
34746 #: ../src/guestfs-actions.pod:7184
34747 msgid ""
34748 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
34749 msgstr ""
34750
34751 #. type: =head2
34752 #: ../src/guestfs-actions.pod:7191
34753 msgid "guestfs_sfdiskM"
34754 msgstr ""
34755
34756 #. type: verbatim
34757 #: ../src/guestfs-actions.pod:7193
34758 #, no-wrap
34759 msgid ""
34760 " int\n"
34761 " guestfs_sfdiskM (guestfs_h *g,\n"
34762 "                  const char *device,\n"
34763 "                  char *const *lines);\n"
34764 "\n"
34765 msgstr ""
34766
34767 #. type: textblock
34768 #: ../src/guestfs-actions.pod:7205
34769 msgid ""
34770 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
34771 "partition sizes are specified in megabytes only (rounded to the nearest "
34772 "cylinder) and you don't need to specify the cyls, heads and sectors "
34773 "parameters which were rarely if ever used anyway."
34774 msgstr ""
34775
34776 #. type: textblock
34777 #: ../src/guestfs-actions.pod:7211
34778 msgid ""
34779 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
34780 "C<guestfs_part_disk>"
34781 msgstr ""
34782
34783 #. type: =head2
34784 #: ../src/guestfs-actions.pod:7218
34785 msgid "guestfs_sfdisk_N"
34786 msgstr ""
34787
34788 #. type: verbatim
34789 #: ../src/guestfs-actions.pod:7220
34790 #, no-wrap
34791 msgid ""
34792 " int\n"
34793 " guestfs_sfdisk_N (guestfs_h *g,\n"
34794 "                   const char *device,\n"
34795 "                   int partnum,\n"
34796 "                   int cyls,\n"
34797 "                   int heads,\n"
34798 "                   int sectors,\n"
34799 "                   const char *line);\n"
34800 "\n"
34801 msgstr ""
34802
34803 #. type: textblock
34804 #: ../src/guestfs-actions.pod:7239
34805 msgid ""
34806 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
34807 "for the cyls/heads/sectors parameters."
34808 msgstr ""
34809
34810 #. type: textblock
34811 #: ../src/guestfs-actions.pod:7242
34812 msgid "See also: C<guestfs_part_add>"
34813 msgstr ""
34814
34815 #. type: =head2
34816 #: ../src/guestfs-actions.pod:7248
34817 msgid "guestfs_sfdisk_disk_geometry"
34818 msgstr ""
34819
34820 #. type: verbatim
34821 #: ../src/guestfs-actions.pod:7250
34822 #, no-wrap
34823 msgid ""
34824 " char *\n"
34825 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
34826 "                               const char *device);\n"
34827 "\n"
34828 msgstr ""
34829
34830 #. type: textblock
34831 #: ../src/guestfs-actions.pod:7254
34832 msgid ""
34833 "This displays the disk geometry of C<device> read from the partition table.  "
34834 "Especially in the case where the underlying block device has been resized, "
34835 "this can be different from the kernel's idea of the geometry (see "
34836 "C<guestfs_sfdisk_kernel_geometry>)."
34837 msgstr ""
34838
34839 #. type: =head2
34840 #: ../src/guestfs-actions.pod:7267
34841 msgid "guestfs_sfdisk_kernel_geometry"
34842 msgstr ""
34843
34844 #. type: verbatim
34845 #: ../src/guestfs-actions.pod:7269
34846 #, no-wrap
34847 msgid ""
34848 " char *\n"
34849 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
34850 "                                 const char *device);\n"
34851 "\n"
34852 msgstr ""
34853
34854 #. type: =head2
34855 #: ../src/guestfs-actions.pod:7283
34856 msgid "guestfs_sfdisk_l"
34857 msgstr ""
34858
34859 #. type: verbatim
34860 #: ../src/guestfs-actions.pod:7285
34861 #, no-wrap
34862 msgid ""
34863 " char *\n"
34864 " guestfs_sfdisk_l (guestfs_h *g,\n"
34865 "                   const char *device);\n"
34866 "\n"
34867 msgstr ""
34868
34869 #. type: textblock
34870 #: ../src/guestfs-actions.pod:7289
34871 msgid ""
34872 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
34873 "call instead."
34874 msgstr ""
34875
34876 #. type: textblock
34877 #: ../src/guestfs-actions.pod:7300
34878 msgid "See also: C<guestfs_part_list>"
34879 msgstr ""
34880
34881 #. type: =head2
34882 #: ../src/guestfs-actions.pod:7307
34883 msgid "guestfs_sh"
34884 msgstr ""
34885
34886 #. type: verbatim
34887 #: ../src/guestfs-actions.pod:7309
34888 #, no-wrap
34889 msgid ""
34890 " char *\n"
34891 " guestfs_sh (guestfs_h *g,\n"
34892 "             const char *command);\n"
34893 "\n"
34894 msgstr ""
34895
34896 #. type: textblock
34897 #: ../src/guestfs-actions.pod:7316
34898 msgid "This is like C<guestfs_command>, but passes the command to:"
34899 msgstr ""
34900
34901 #. type: textblock
34902 #: ../src/guestfs-actions.pod:7324
34903 msgid "All the provisos about C<guestfs_command> apply to this call."
34904 msgstr ""
34905
34906 #. type: =head2
34907 #: ../src/guestfs-actions.pod:7331
34908 msgid "guestfs_sh_lines"
34909 msgstr ""
34910
34911 #. type: verbatim
34912 #: ../src/guestfs-actions.pod:7333
34913 #, no-wrap
34914 msgid ""
34915 " char **\n"
34916 " guestfs_sh_lines (guestfs_h *g,\n"
34917 "                   const char *command);\n"
34918 "\n"
34919 msgstr ""
34920
34921 #. type: textblock
34922 #: ../src/guestfs-actions.pod:7337
34923 msgid ""
34924 "This is the same as C<guestfs_sh>, but splits the result into a list of "
34925 "lines."
34926 msgstr ""
34927
34928 #. type: textblock
34929 #: ../src/guestfs-actions.pod:7340
34930 msgid "See also: C<guestfs_command_lines>"
34931 msgstr ""
34932
34933 #. type: =head2
34934 #: ../src/guestfs-actions.pod:7348
34935 msgid "guestfs_sleep"
34936 msgstr ""
34937
34938 #. type: verbatim
34939 #: ../src/guestfs-actions.pod:7350
34940 #, no-wrap
34941 msgid ""
34942 " int\n"
34943 " guestfs_sleep (guestfs_h *g,\n"
34944 "                int secs);\n"
34945 "\n"
34946 msgstr ""
34947
34948 #. type: textblock
34949 #: ../src/guestfs-actions.pod:7358
34950 msgid "(Added in 1.0.41)"
34951 msgstr "(Додано у 1.0.41)"
34952
34953 #. type: =head2
34954 #: ../src/guestfs-actions.pod:7360 ../src/guestfs-structs.pod:109
34955 msgid "guestfs_stat"
34956 msgstr ""
34957
34958 #. type: verbatim
34959 #: ../src/guestfs-actions.pod:7362
34960 #, no-wrap
34961 msgid ""
34962 " struct guestfs_stat *\n"
34963 " guestfs_stat (guestfs_h *g,\n"
34964 "               const char *path);\n"
34965 "\n"
34966 msgstr ""
34967
34968 #. type: =head2
34969 #: ../src/guestfs-actions.pod:7376 ../src/guestfs-structs.pod:135
34970 msgid "guestfs_statvfs"
34971 msgstr ""
34972
34973 #. type: verbatim
34974 #: ../src/guestfs-actions.pod:7378
34975 #, no-wrap
34976 msgid ""
34977 " struct guestfs_statvfs *\n"
34978 " guestfs_statvfs (guestfs_h *g,\n"
34979 "                  const char *path);\n"
34980 "\n"
34981 msgstr ""
34982
34983 #. type: textblock
34984 #: ../src/guestfs-actions.pod:7388
34985 msgid ""
34986 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
34987 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
34988 msgstr ""
34989
34990 #. type: =head2
34991 #: ../src/guestfs-actions.pod:7394
34992 msgid "guestfs_strings"
34993 msgstr ""
34994
34995 #. type: verbatim
34996 #: ../src/guestfs-actions.pod:7396
34997 #, no-wrap
34998 msgid ""
34999 " char **\n"
35000 " guestfs_strings (guestfs_h *g,\n"
35001 "                  const char *path);\n"
35002 "\n"
35003 msgstr ""
35004
35005 #. type: =head2
35006 #: ../src/guestfs-actions.pod:7412
35007 msgid "guestfs_strings_e"
35008 msgstr ""
35009
35010 #. type: verbatim
35011 #: ../src/guestfs-actions.pod:7414
35012 #, no-wrap
35013 msgid ""
35014 " char **\n"
35015 " guestfs_strings_e (guestfs_h *g,\n"
35016 "                    const char *encoding,\n"
35017 "                    const char *path);\n"
35018 "\n"
35019 msgstr ""
35020
35021 #. type: textblock
35022 #: ../src/guestfs-actions.pod:7419
35023 msgid ""
35024 "This is like the C<guestfs_strings> command, but allows you to specify the "
35025 "encoding of strings that are looked for in the source file C<path>."
35026 msgstr ""
35027
35028 #. type: textblock
35029 #: ../src/guestfs-actions.pod:7429
35030 msgid ""
35031 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
35032 "ISO-8859-X (this is what C<guestfs_strings> uses)."
35033 msgstr ""
35034
35035 #. type: =head2
35036 #: ../src/guestfs-actions.pod:7467
35037 msgid "guestfs_swapoff_device"
35038 msgstr ""
35039
35040 #. type: verbatim
35041 #: ../src/guestfs-actions.pod:7469
35042 #, no-wrap
35043 msgid ""
35044 " int\n"
35045 " guestfs_swapoff_device (guestfs_h *g,\n"
35046 "                         const char *device);\n"
35047 "\n"
35048 msgstr ""
35049
35050 #. type: textblock
35051 #: ../src/guestfs-actions.pod:7473
35052 msgid ""
35053 "This command disables the libguestfs appliance swap device or partition "
35054 "named C<device>.  See C<guestfs_swapon_device>."
35055 msgstr ""
35056
35057 #. type: =head2
35058 #: ../src/guestfs-actions.pod:7481
35059 msgid "guestfs_swapoff_file"
35060 msgstr ""
35061
35062 #. type: verbatim
35063 #: ../src/guestfs-actions.pod:7483
35064 #, no-wrap
35065 msgid ""
35066 " int\n"
35067 " guestfs_swapoff_file (guestfs_h *g,\n"
35068 "                       const char *file);\n"
35069 "\n"
35070 msgstr ""
35071
35072 #. type: =head2
35073 #: ../src/guestfs-actions.pod:7493
35074 msgid "guestfs_swapoff_label"
35075 msgstr ""
35076
35077 #. type: verbatim
35078 #: ../src/guestfs-actions.pod:7495
35079 #, no-wrap
35080 msgid ""
35081 " int\n"
35082 " guestfs_swapoff_label (guestfs_h *g,\n"
35083 "                        const char *label);\n"
35084 "\n"
35085 msgstr ""
35086
35087 #. type: =head2
35088 #: ../src/guestfs-actions.pod:7506
35089 msgid "guestfs_swapoff_uuid"
35090 msgstr ""
35091
35092 #. type: verbatim
35093 #: ../src/guestfs-actions.pod:7508
35094 #, no-wrap
35095 msgid ""
35096 " int\n"
35097 " guestfs_swapoff_uuid (guestfs_h *g,\n"
35098 "                       const char *uuid);\n"
35099 "\n"
35100 msgstr ""
35101
35102 #. type: =head2
35103 #: ../src/guestfs-actions.pod:7519
35104 msgid "guestfs_swapon_device"
35105 msgstr ""
35106
35107 #. type: verbatim
35108 #: ../src/guestfs-actions.pod:7521
35109 #, no-wrap
35110 msgid ""
35111 " int\n"
35112 " guestfs_swapon_device (guestfs_h *g,\n"
35113 "                        const char *device);\n"
35114 "\n"
35115 msgstr ""
35116
35117 #. type: textblock
35118 #: ../src/guestfs-actions.pod:7525
35119 msgid ""
35120 "This command enables the libguestfs appliance to use the swap device or "
35121 "partition named C<device>.  The increased memory is made available for all "
35122 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
35123 msgstr ""
35124
35125 #. type: =head2
35126 #: ../src/guestfs-actions.pod:7541
35127 msgid "guestfs_swapon_file"
35128 msgstr ""
35129
35130 #. type: verbatim
35131 #: ../src/guestfs-actions.pod:7543
35132 #, no-wrap
35133 msgid ""
35134 " int\n"
35135 " guestfs_swapon_file (guestfs_h *g,\n"
35136 "                      const char *file);\n"
35137 "\n"
35138 msgstr ""
35139
35140 #. type: textblock
35141 #: ../src/guestfs-actions.pod:7547
35142 msgid ""
35143 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
35144 "notes."
35145 msgstr ""
35146
35147 #. type: =head2
35148 #: ../src/guestfs-actions.pod:7554
35149 msgid "guestfs_swapon_label"
35150 msgstr ""
35151
35152 #. type: verbatim
35153 #: ../src/guestfs-actions.pod:7556
35154 #, no-wrap
35155 msgid ""
35156 " int\n"
35157 " guestfs_swapon_label (guestfs_h *g,\n"
35158 "                       const char *label);\n"
35159 "\n"
35160 msgstr ""
35161
35162 #. type: textblock
35163 #: ../src/guestfs-actions.pod:7560
35164 msgid ""
35165 "This command enables swap to a labeled swap partition.  See "
35166 "C<guestfs_swapon_device> for other notes."
35167 msgstr ""
35168
35169 #. type: =head2
35170 #: ../src/guestfs-actions.pod:7567
35171 msgid "guestfs_swapon_uuid"
35172 msgstr ""
35173
35174 #. type: verbatim
35175 #: ../src/guestfs-actions.pod:7569
35176 #, no-wrap
35177 msgid ""
35178 " int\n"
35179 " guestfs_swapon_uuid (guestfs_h *g,\n"
35180 "                      const char *uuid);\n"
35181 "\n"
35182 msgstr ""
35183
35184 #. type: textblock
35185 #: ../src/guestfs-actions.pod:7573
35186 msgid ""
35187 "This command enables swap to a swap partition with the given UUID.  See "
35188 "C<guestfs_swapon_device> for other notes."
35189 msgstr ""
35190
35191 #. type: =head2
35192 #: ../src/guestfs-actions.pod:7580
35193 msgid "guestfs_sync"
35194 msgstr ""
35195
35196 #. type: verbatim
35197 #: ../src/guestfs-actions.pod:7582
35198 #, no-wrap
35199 msgid ""
35200 " int\n"
35201 " guestfs_sync (guestfs_h *g);\n"
35202 "\n"
35203 msgstr ""
35204
35205 #. type: =head2
35206 #: ../src/guestfs-actions.pod:7595
35207 msgid "guestfs_tail"
35208 msgstr ""
35209
35210 #. type: verbatim
35211 #: ../src/guestfs-actions.pod:7597
35212 #, no-wrap
35213 msgid ""
35214 " char **\n"
35215 " guestfs_tail (guestfs_h *g,\n"
35216 "               const char *path);\n"
35217 "\n"
35218 msgstr ""
35219
35220 #. type: =head2
35221 #: ../src/guestfs-actions.pod:7613
35222 msgid "guestfs_tail_n"
35223 msgstr ""
35224
35225 #. type: verbatim
35226 #: ../src/guestfs-actions.pod:7615
35227 #, no-wrap
35228 msgid ""
35229 " char **\n"
35230 " guestfs_tail_n (guestfs_h *g,\n"
35231 "                 int nrlines,\n"
35232 "                 const char *path);\n"
35233 "\n"
35234 msgstr ""
35235
35236 #. type: =head2
35237 #: ../src/guestfs-actions.pod:7637
35238 msgid "guestfs_tar_in"
35239 msgstr ""
35240
35241 #. type: verbatim
35242 #: ../src/guestfs-actions.pod:7639
35243 #, no-wrap
35244 msgid ""
35245 " int\n"
35246 " guestfs_tar_in (guestfs_h *g,\n"
35247 "                 const char *tarfile,\n"
35248 "                 const char *directory);\n"
35249 "\n"
35250 msgstr ""
35251
35252 #. type: textblock
35253 #: ../src/guestfs-actions.pod:7647
35254 msgid ""
35255 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
35256 msgstr ""
35257
35258 #. type: textblock
35259 #: ../src/guestfs-actions.pod:7652 ../src/guestfs-actions.pod:7669
35260 #: ../src/guestfs-actions.pod:7685 ../src/guestfs-actions.pod:7701
35261 msgid "(Added in 1.0.3)"
35262 msgstr "(Додано у 1.0.3)"
35263
35264 #. type: =head2
35265 #: ../src/guestfs-actions.pod:7654
35266 msgid "guestfs_tar_out"
35267 msgstr ""
35268
35269 #. type: verbatim
35270 #: ../src/guestfs-actions.pod:7656
35271 #, no-wrap
35272 msgid ""
35273 " int\n"
35274 " guestfs_tar_out (guestfs_h *g,\n"
35275 "                  const char *directory,\n"
35276 "                  const char *tarfile);\n"
35277 "\n"
35278 msgstr ""
35279
35280 #. type: textblock
35281 #: ../src/guestfs-actions.pod:7664
35282 msgid ""
35283 "To download a compressed tarball, use C<guestfs_tgz_out> or "
35284 "C<guestfs_txz_out>."
35285 msgstr ""
35286
35287 #. type: =head2
35288 #: ../src/guestfs-actions.pod:7671
35289 msgid "guestfs_tgz_in"
35290 msgstr ""
35291
35292 #. type: verbatim
35293 #: ../src/guestfs-actions.pod:7673
35294 #, no-wrap
35295 msgid ""
35296 " int\n"
35297 " guestfs_tgz_in (guestfs_h *g,\n"
35298 "                 const char *tarball,\n"
35299 "                 const char *directory);\n"
35300 "\n"
35301 msgstr ""
35302
35303 #. type: textblock
35304 #: ../src/guestfs-actions.pod:7681
35305 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
35306 msgstr ""
35307
35308 #. type: =head2
35309 #: ../src/guestfs-actions.pod:7687
35310 msgid "guestfs_tgz_out"
35311 msgstr ""
35312
35313 #. type: verbatim
35314 #: ../src/guestfs-actions.pod:7689
35315 #, no-wrap
35316 msgid ""
35317 " int\n"
35318 " guestfs_tgz_out (guestfs_h *g,\n"
35319 "                  const char *directory,\n"
35320 "                  const char *tarball);\n"
35321 "\n"
35322 msgstr ""
35323
35324 #. type: textblock
35325 #: ../src/guestfs-actions.pod:7697
35326 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
35327 msgstr ""
35328
35329 #. type: =head2
35330 #: ../src/guestfs-actions.pod:7703
35331 msgid "guestfs_touch"
35332 msgstr ""
35333
35334 #. type: verbatim
35335 #: ../src/guestfs-actions.pod:7705
35336 #, no-wrap
35337 msgid ""
35338 " int\n"
35339 " guestfs_touch (guestfs_h *g,\n"
35340 "                const char *path);\n"
35341 "\n"
35342 msgstr ""
35343
35344 #. type: =head2
35345 #: ../src/guestfs-actions.pod:7720
35346 msgid "guestfs_truncate"
35347 msgstr ""
35348
35349 #. type: verbatim
35350 #: ../src/guestfs-actions.pod:7722
35351 #, no-wrap
35352 msgid ""
35353 " int\n"
35354 " guestfs_truncate (guestfs_h *g,\n"
35355 "                   const char *path);\n"
35356 "\n"
35357 msgstr ""
35358
35359 #. type: =head2
35360 #: ../src/guestfs-actions.pod:7733
35361 msgid "guestfs_truncate_size"
35362 msgstr ""
35363
35364 #. type: verbatim
35365 #: ../src/guestfs-actions.pod:7735
35366 #, no-wrap
35367 msgid ""
35368 " int\n"
35369 " guestfs_truncate_size (guestfs_h *g,\n"
35370 "                        const char *path,\n"
35371 "                        int64_t size);\n"
35372 "\n"
35373 msgstr ""
35374
35375 #. type: textblock
35376 #: ../src/guestfs-actions.pod:7743
35377 msgid ""
35378 "If the current file size is less than C<size> then the file is extended to "
35379 "the required size with zero bytes.  This creates a sparse file (ie. disk "
35380 "blocks are not allocated for the file until you write to it).  To create a "
35381 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
35382 msgstr ""
35383
35384 #. type: =head2
35385 #: ../src/guestfs-actions.pod:7753
35386 #, fuzzy
35387 #| msgid "guestfs_mke2fs_J"
35388 msgid "guestfs_tune2fs"
35389 msgstr "guestfs_mke2fs_J"
35390
35391 #. type: verbatim
35392 #: ../src/guestfs-actions.pod:7755
35393 #, fuzzy, no-wrap
35394 #| msgid ""
35395 #| " int\n"
35396 #| " guestfs_lvresize (guestfs_h *g,\n"
35397 #| "                   const char *device,\n"
35398 #| "                   int mbytes);\n"
35399 #| "\n"
35400 msgid ""
35401 " int\n"
35402 " guestfs_tune2fs (guestfs_h *g,\n"
35403 "                  const char *device,\n"
35404 "                  ...);\n"
35405 "\n"
35406 msgstr ""
35407 " int\n"
35408 " guestfs_lvresize (guestfs_h *g,\n"
35409 "                   const char *device,\n"
35410 "                   int mbytes);\n"
35411 "\n"
35412
35413 #. type: verbatim
35414 #: ../src/guestfs-actions.pod:7765
35415 #, no-wrap
35416 msgid ""
35417 " GUESTFS_TUNE2FS_FORCE, int force,\n"
35418 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
35419 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
35420 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
35421 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
35422 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
35423 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
35424 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
35425 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
35426 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
35427 "\n"
35428 msgstr ""
35429
35430 #. type: textblock
35431 #: ../src/guestfs-actions.pod:7845
35432 msgid ""
35433 "To get the current values of filesystem parameters, see "
35434 "C<guestfs_tune2fs_l>.  For precise details of how tune2fs works, see the "
35435 "L<tune2fs(8)> man page."
35436 msgstr ""
35437
35438 #. type: =head2
35439 #: ../src/guestfs-actions.pod:7853
35440 #, fuzzy
35441 #| msgid "guestfs_mke2fs_J"
35442 msgid "guestfs_tune2fs_va"
35443 msgstr "guestfs_mke2fs_J"
35444
35445 #. type: verbatim
35446 #: ../src/guestfs-actions.pod:7855
35447 #, fuzzy, no-wrap
35448 #| msgid ""
35449 #| " int\n"
35450 #| " guestfs_lvresize (guestfs_h *g,\n"
35451 #| "                   const char *device,\n"
35452 #| "                   int mbytes);\n"
35453 #| "\n"
35454 msgid ""
35455 " int\n"
35456 " guestfs_tune2fs_va (guestfs_h *g,\n"
35457 "                     const char *device,\n"
35458 "                     va_list args);\n"
35459 "\n"
35460 msgstr ""
35461 " int\n"
35462 " guestfs_lvresize (guestfs_h *g,\n"
35463 "                   const char *device,\n"
35464 "                   int mbytes);\n"
35465 "\n"
35466
35467 #. type: textblock
35468 #: ../src/guestfs-actions.pod:7860
35469 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
35470 msgstr ""
35471
35472 #. type: =head2
35473 #: ../src/guestfs-actions.pod:7864
35474 #, fuzzy
35475 #| msgid "guestfs_mke2fs_J"
35476 msgid "guestfs_tune2fs_argv"
35477 msgstr "guestfs_mke2fs_J"
35478
35479 #. type: verbatim
35480 #: ../src/guestfs-actions.pod:7866
35481 #, fuzzy, no-wrap
35482 #| msgid ""
35483 #| " int\n"
35484 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
35485 #| "                         const char *fstype,\n"
35486 #| "                         const char *device,\n"
35487 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
35488 #| "\n"
35489 msgid ""
35490 " int\n"
35491 " guestfs_tune2fs_argv (guestfs_h *g,\n"
35492 "                       const char *device,\n"
35493 "                       const struct guestfs_tune2fs_argv *optargs);\n"
35494 "\n"
35495 msgstr ""
35496 " int\n"
35497 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
35498 "                         const char *fstype,\n"
35499 "                         const char *device,\n"
35500 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
35501 "\n"
35502
35503 #. type: textblock
35504 #: ../src/guestfs-actions.pod:7871
35505 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
35506 msgstr ""
35507
35508 #. type: =head2
35509 #: ../src/guestfs-actions.pod:7875
35510 msgid "guestfs_tune2fs_l"
35511 msgstr ""
35512
35513 #. type: verbatim
35514 #: ../src/guestfs-actions.pod:7877
35515 #, no-wrap
35516 msgid ""
35517 " char **\n"
35518 " guestfs_tune2fs_l (guestfs_h *g,\n"
35519 "                    const char *device);\n"
35520 "\n"
35521 msgstr ""
35522
35523 #. type: =head2
35524 #: ../src/guestfs-actions.pod:7897
35525 msgid "guestfs_txz_in"
35526 msgstr ""
35527
35528 #. type: verbatim
35529 #: ../src/guestfs-actions.pod:7899
35530 #, no-wrap
35531 msgid ""
35532 " int\n"
35533 " guestfs_txz_in (guestfs_h *g,\n"
35534 "                 const char *tarball,\n"
35535 "                 const char *directory);\n"
35536 "\n"
35537 msgstr ""
35538
35539 #. type: =head2
35540 #: ../src/guestfs-actions.pod:7911
35541 msgid "guestfs_txz_out"
35542 msgstr ""
35543
35544 #. type: verbatim
35545 #: ../src/guestfs-actions.pod:7913
35546 #, no-wrap
35547 msgid ""
35548 " int\n"
35549 " guestfs_txz_out (guestfs_h *g,\n"
35550 "                  const char *directory,\n"
35551 "                  const char *tarball);\n"
35552 "\n"
35553 msgstr ""
35554
35555 #. type: =head2
35556 #: ../src/guestfs-actions.pod:7925
35557 msgid "guestfs_umask"
35558 msgstr ""
35559
35560 #. type: verbatim
35561 #: ../src/guestfs-actions.pod:7927
35562 #, no-wrap
35563 msgid ""
35564 " int\n"
35565 " guestfs_umask (guestfs_h *g,\n"
35566 "                int mask);\n"
35567 "\n"
35568 msgstr ""
35569
35570 #. type: textblock
35571 #: ../src/guestfs-actions.pod:7943
35572 msgid ""
35573 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
35574 "C<guestfs_mkdir>."
35575 msgstr ""
35576
35577 #. type: =head2
35578 #: ../src/guestfs-actions.pod:7952
35579 msgid "guestfs_umount"
35580 msgstr ""
35581
35582 #. type: verbatim
35583 #: ../src/guestfs-actions.pod:7954
35584 #, no-wrap
35585 msgid ""
35586 " int\n"
35587 " guestfs_umount (guestfs_h *g,\n"
35588 "                 const char *pathordevice);\n"
35589 "\n"
35590 msgstr ""
35591
35592 #. type: =head2
35593 #: ../src/guestfs-actions.pod:7966
35594 msgid "guestfs_umount_all"
35595 msgstr ""
35596
35597 #. type: verbatim
35598 #: ../src/guestfs-actions.pod:7968
35599 #, no-wrap
35600 msgid ""
35601 " int\n"
35602 " guestfs_umount_all (guestfs_h *g);\n"
35603 "\n"
35604 msgstr ""
35605
35606 #. type: =head2
35607 #: ../src/guestfs-actions.pod:7979
35608 msgid "guestfs_upload"
35609 msgstr ""
35610
35611 #. type: verbatim
35612 #: ../src/guestfs-actions.pod:7981
35613 #, no-wrap
35614 msgid ""
35615 " int\n"
35616 " guestfs_upload (guestfs_h *g,\n"
35617 "                 const char *filename,\n"
35618 "                 const char *remotefilename);\n"
35619 "\n"
35620 msgstr ""
35621
35622 #. type: textblock
35623 #: ../src/guestfs-actions.pod:7991
35624 msgid "See also C<guestfs_download>."
35625 msgstr ""
35626
35627 #. type: =head2
35628 #: ../src/guestfs-actions.pod:8002
35629 msgid "guestfs_upload_offset"
35630 msgstr ""
35631
35632 #. type: verbatim
35633 #: ../src/guestfs-actions.pod:8004
35634 #, no-wrap
35635 msgid ""
35636 " int\n"
35637 " guestfs_upload_offset (guestfs_h *g,\n"
35638 "                        const char *filename,\n"
35639 "                        const char *remotefilename,\n"
35640 "                        int64_t offset);\n"
35641 "\n"
35642 msgstr ""
35643
35644 #. type: textblock
35645 #: ../src/guestfs-actions.pod:8020
35646 msgid ""
35647 "Note that there is no limit on the amount of data that can be uploaded with "
35648 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
35649 "full amount unless an error occurs."
35650 msgstr ""
35651
35652 #. type: textblock
35653 #: ../src/guestfs-actions.pod:8025
35654 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
35655 msgstr ""
35656
35657 #. type: =head2
35658 #: ../src/guestfs-actions.pod:8036
35659 msgid "guestfs_utimens"
35660 msgstr ""
35661
35662 #. type: verbatim
35663 #: ../src/guestfs-actions.pod:8038
35664 #, no-wrap
35665 msgid ""
35666 " int\n"
35667 " guestfs_utimens (guestfs_h *g,\n"
35668 "                  const char *path,\n"
35669 "                  int64_t atsecs,\n"
35670 "                  int64_t atnsecs,\n"
35671 "                  int64_t mtsecs,\n"
35672 "                  int64_t mtnsecs);\n"
35673 "\n"
35674 msgstr ""
35675
35676 #. type: =head2
35677 #: ../src/guestfs-actions.pod:8067 ../src/guestfs-structs.pod:175
35678 msgid "guestfs_version"
35679 msgstr ""
35680
35681 #. type: verbatim
35682 #: ../src/guestfs-actions.pod:8069
35683 #, no-wrap
35684 msgid ""
35685 " struct guestfs_version *\n"
35686 " guestfs_version (guestfs_h *g);\n"
35687 "\n"
35688 msgstr ""
35689
35690 #. type: textblock
35691 #: ../src/guestfs-actions.pod:8097
35692 msgid ""
35693 "I<Note:> Don't use this call to test for availability of features.  In "
35694 "enterprise distributions we backport features from later versions into "
35695 "earlier versions, making this an unreliable way to test for features.  Use "
35696 "C<guestfs_available> instead."
35697 msgstr ""
35698
35699 #. type: textblock
35700 #: ../src/guestfs-actions.pod:8103
35701 msgid ""
35702 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
35703 "error.  I<The caller must call C<guestfs_free_version> after use>."
35704 msgstr ""
35705
35706 #. type: textblock
35707 #: ../src/guestfs-actions.pod:8107
35708 msgid "(Added in 1.0.58)"
35709 msgstr "(Додано у 1.0.58)"
35710
35711 #. type: =head2
35712 #: ../src/guestfs-actions.pod:8109
35713 msgid "guestfs_vfs_label"
35714 msgstr ""
35715
35716 #. type: verbatim
35717 #: ../src/guestfs-actions.pod:8111
35718 #, no-wrap
35719 msgid ""
35720 " char *\n"
35721 " guestfs_vfs_label (guestfs_h *g,\n"
35722 "                    const char *device);\n"
35723 "\n"
35724 msgstr ""
35725
35726 #. type: textblock
35727 #: ../src/guestfs-actions.pod:8120
35728 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
35729 msgstr ""
35730
35731 #. type: textblock
35732 #: ../src/guestfs-actions.pod:8125 ../src/guestfs-actions.pod:8162
35733 msgid "(Added in 1.3.18)"
35734 msgstr "(Додано у 1.3.18)"
35735
35736 #. type: =head2
35737 #: ../src/guestfs-actions.pod:8127
35738 msgid "guestfs_vfs_type"
35739 msgstr ""
35740
35741 #. type: verbatim
35742 #: ../src/guestfs-actions.pod:8129
35743 #, no-wrap
35744 msgid ""
35745 " char *\n"
35746 " guestfs_vfs_type (guestfs_h *g,\n"
35747 "                   const char *device);\n"
35748 "\n"
35749 msgstr ""
35750
35751 #. type: =head2
35752 #: ../src/guestfs-actions.pod:8146
35753 msgid "guestfs_vfs_uuid"
35754 msgstr ""
35755
35756 #. type: verbatim
35757 #: ../src/guestfs-actions.pod:8148
35758 #, no-wrap
35759 msgid ""
35760 " char *\n"
35761 " guestfs_vfs_uuid (guestfs_h *g,\n"
35762 "                   const char *device);\n"
35763 "\n"
35764 msgstr ""
35765
35766 #. type: textblock
35767 #: ../src/guestfs-actions.pod:8157
35768 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
35769 msgstr ""
35770
35771 #. type: =head2
35772 #: ../src/guestfs-actions.pod:8164
35773 msgid "guestfs_vg_activate"
35774 msgstr ""
35775
35776 #. type: verbatim
35777 #: ../src/guestfs-actions.pod:8166
35778 #, no-wrap
35779 msgid ""
35780 " int\n"
35781 " guestfs_vg_activate (guestfs_h *g,\n"
35782 "                      int activate,\n"
35783 "                      char *const *volgroups);\n"
35784 "\n"
35785 msgstr ""
35786
35787 #. type: =head2
35788 #: ../src/guestfs-actions.pod:8183
35789 msgid "guestfs_vg_activate_all"
35790 msgstr ""
35791
35792 #. type: verbatim
35793 #: ../src/guestfs-actions.pod:8185
35794 #, no-wrap
35795 msgid ""
35796 " int\n"
35797 " guestfs_vg_activate_all (guestfs_h *g,\n"
35798 "                          int activate);\n"
35799 "\n"
35800 msgstr ""
35801
35802 #. type: =head2
35803 #: ../src/guestfs-actions.pod:8198
35804 msgid "guestfs_vgcreate"
35805 msgstr ""
35806
35807 #. type: verbatim
35808 #: ../src/guestfs-actions.pod:8200
35809 #, no-wrap
35810 msgid ""
35811 " int\n"
35812 " guestfs_vgcreate (guestfs_h *g,\n"
35813 "                   const char *volgroup,\n"
35814 "                   char *const *physvols);\n"
35815 "\n"
35816 msgstr ""
35817
35818 #. type: =head2
35819 #: ../src/guestfs-actions.pod:8212
35820 msgid "guestfs_vglvuuids"
35821 msgstr ""
35822
35823 #. type: verbatim
35824 #: ../src/guestfs-actions.pod:8214
35825 #, no-wrap
35826 msgid ""
35827 " char **\n"
35828 " guestfs_vglvuuids (guestfs_h *g,\n"
35829 "                    const char *vgname);\n"
35830 "\n"
35831 msgstr ""
35832
35833 #. type: textblock
35834 #: ../src/guestfs-actions.pod:8221
35835 msgid ""
35836 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
35837 "associate logical volumes and volume groups."
35838 msgstr ""
35839
35840 #. type: textblock
35841 #: ../src/guestfs-actions.pod:8224
35842 msgid "See also C<guestfs_vgpvuuids>."
35843 msgstr ""
35844
35845 #. type: =head2
35846 #: ../src/guestfs-actions.pod:8232
35847 msgid "guestfs_vgpvuuids"
35848 msgstr ""
35849
35850 #. type: verbatim
35851 #: ../src/guestfs-actions.pod:8234
35852 #, no-wrap
35853 msgid ""
35854 " char **\n"
35855 " guestfs_vgpvuuids (guestfs_h *g,\n"
35856 "                    const char *vgname);\n"
35857 "\n"
35858 msgstr ""
35859
35860 #. type: textblock
35861 #: ../src/guestfs-actions.pod:8241
35862 msgid ""
35863 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
35864 "associate physical volumes and volume groups."
35865 msgstr ""
35866
35867 #. type: textblock
35868 #: ../src/guestfs-actions.pod:8244
35869 msgid "See also C<guestfs_vglvuuids>."
35870 msgstr ""
35871
35872 #. type: =head2
35873 #: ../src/guestfs-actions.pod:8252
35874 msgid "guestfs_vgremove"
35875 msgstr ""
35876
35877 #. type: verbatim
35878 #: ../src/guestfs-actions.pod:8254
35879 #, no-wrap
35880 msgid ""
35881 " int\n"
35882 " guestfs_vgremove (guestfs_h *g,\n"
35883 "                   const char *vgname);\n"
35884 "\n"
35885 msgstr ""
35886
35887 #. type: =head2
35888 #: ../src/guestfs-actions.pod:8267
35889 msgid "guestfs_vgrename"
35890 msgstr ""
35891
35892 #. type: verbatim
35893 #: ../src/guestfs-actions.pod:8269
35894 #, no-wrap
35895 msgid ""
35896 " int\n"
35897 " guestfs_vgrename (guestfs_h *g,\n"
35898 "                   const char *volgroup,\n"
35899 "                   const char *newvolgroup);\n"
35900 "\n"
35901 msgstr ""
35902
35903 #. type: =head2
35904 #: ../src/guestfs-actions.pod:8280
35905 msgid "guestfs_vgs"
35906 msgstr ""
35907
35908 #. type: verbatim
35909 #: ../src/guestfs-actions.pod:8282
35910 #, no-wrap
35911 msgid ""
35912 " char **\n"
35913 " guestfs_vgs (guestfs_h *g);\n"
35914 "\n"
35915 msgstr ""
35916
35917 #. type: textblock
35918 #: ../src/guestfs-actions.pod:8291
35919 msgid "See also C<guestfs_vgs_full>."
35920 msgstr ""
35921
35922 #. type: =head2
35923 #: ../src/guestfs-actions.pod:8299
35924 msgid "guestfs_vgs_full"
35925 msgstr ""
35926
35927 #. type: verbatim
35928 #: ../src/guestfs-actions.pod:8301
35929 #, no-wrap
35930 msgid ""
35931 " struct guestfs_lvm_vg_list *\n"
35932 " guestfs_vgs_full (guestfs_h *g);\n"
35933 "\n"
35934 msgstr ""
35935
35936 #. type: textblock
35937 #: ../src/guestfs-actions.pod:8307
35938 msgid ""
35939 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
35940 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
35941 msgstr ""
35942
35943 #. type: =head2
35944 #: ../src/guestfs-actions.pod:8313
35945 msgid "guestfs_vgscan"
35946 msgstr ""
35947
35948 #. type: verbatim
35949 #: ../src/guestfs-actions.pod:8315
35950 #, no-wrap
35951 msgid ""
35952 " int\n"
35953 " guestfs_vgscan (guestfs_h *g);\n"
35954 "\n"
35955 msgstr ""
35956
35957 #. type: =head2
35958 #: ../src/guestfs-actions.pod:8325
35959 msgid "guestfs_vguuid"
35960 msgstr ""
35961
35962 #. type: verbatim
35963 #: ../src/guestfs-actions.pod:8327
35964 #, no-wrap
35965 msgid ""
35966 " char *\n"
35967 " guestfs_vguuid (guestfs_h *g,\n"
35968 "                 const char *vgname);\n"
35969 "\n"
35970 msgstr ""
35971
35972 #. type: =head2
35973 #: ../src/guestfs-actions.pod:8338
35974 msgid "guestfs_wait_ready"
35975 msgstr ""
35976
35977 #. type: verbatim
35978 #: ../src/guestfs-actions.pod:8340
35979 #, no-wrap
35980 msgid ""
35981 " int\n"
35982 " guestfs_wait_ready (guestfs_h *g);\n"
35983 "\n"
35984 msgstr ""
35985
35986 #. type: textblock
35987 #: ../src/guestfs-actions.pod:8343
35988 msgid ""
35989 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
35990 "instead."
35991 msgstr ""
35992
35993 #. type: textblock
35994 #: ../src/guestfs-actions.pod:8350
35995 msgid "This function is a no op."
35996 msgstr ""
35997
35998 #. type: textblock
35999 #: ../src/guestfs-actions.pod:8352
36000 msgid ""
36001 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
36002 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
36003 "is no longer necessary because C<guestfs_launch> now does the waiting."
36004 msgstr ""
36005
36006 #. type: textblock
36007 #: ../src/guestfs-actions.pod:8357
36008 msgid ""
36009 "If you see any calls to this function in code then you can just remove them, "
36010 "unless you want to retain compatibility with older versions of the API."
36011 msgstr ""
36012
36013 #. type: =head2
36014 #: ../src/guestfs-actions.pod:8365
36015 msgid "guestfs_wc_c"
36016 msgstr ""
36017
36018 #. type: verbatim
36019 #: ../src/guestfs-actions.pod:8367
36020 #, no-wrap
36021 msgid ""
36022 " int\n"
36023 " guestfs_wc_c (guestfs_h *g,\n"
36024 "               const char *path);\n"
36025 "\n"
36026 msgstr ""
36027
36028 #. type: =head2
36029 #: ../src/guestfs-actions.pod:8378
36030 msgid "guestfs_wc_l"
36031 msgstr ""
36032
36033 #. type: verbatim
36034 #: ../src/guestfs-actions.pod:8380
36035 #, no-wrap
36036 msgid ""
36037 " int\n"
36038 " guestfs_wc_l (guestfs_h *g,\n"
36039 "               const char *path);\n"
36040 "\n"
36041 msgstr ""
36042
36043 #. type: =head2
36044 #: ../src/guestfs-actions.pod:8391
36045 msgid "guestfs_wc_w"
36046 msgstr ""
36047
36048 #. type: verbatim
36049 #: ../src/guestfs-actions.pod:8393
36050 #, no-wrap
36051 msgid ""
36052 " int\n"
36053 " guestfs_wc_w (guestfs_h *g,\n"
36054 "               const char *path);\n"
36055 "\n"
36056 msgstr ""
36057
36058 #. type: =head2
36059 #: ../src/guestfs-actions.pod:8404
36060 msgid "guestfs_write"
36061 msgstr ""
36062
36063 #. type: verbatim
36064 #: ../src/guestfs-actions.pod:8406
36065 #, no-wrap
36066 msgid ""
36067 " int\n"
36068 " guestfs_write (guestfs_h *g,\n"
36069 "                const char *path,\n"
36070 "                const char *content,\n"
36071 "                size_t content_size);\n"
36072 "\n"
36073 msgstr ""
36074
36075 #. type: textblock
36076 #: ../src/guestfs-actions.pod:8415
36077 msgid "See also C<guestfs_write_append>."
36078 msgstr ""
36079
36080 #. type: =head2
36081 #: ../src/guestfs-actions.pod:8424
36082 msgid "guestfs_write_append"
36083 msgstr ""
36084
36085 #. type: verbatim
36086 #: ../src/guestfs-actions.pod:8426
36087 #, no-wrap
36088 msgid ""
36089 " int\n"
36090 " guestfs_write_append (guestfs_h *g,\n"
36091 "                       const char *path,\n"
36092 "                       const char *content,\n"
36093 "                       size_t content_size);\n"
36094 "\n"
36095 msgstr ""
36096
36097 #. type: textblock
36098 #: ../src/guestfs-actions.pod:8435
36099 msgid "See also C<guestfs_write>."
36100 msgstr ""
36101
36102 #. type: =head2
36103 #: ../src/guestfs-actions.pod:8444
36104 msgid "guestfs_write_file"
36105 msgstr "guestfs_write_file"
36106
36107 #. type: verbatim
36108 #: ../src/guestfs-actions.pod:8446
36109 #, no-wrap
36110 msgid ""
36111 " int\n"
36112 " guestfs_write_file (guestfs_h *g,\n"
36113 "                     const char *path,\n"
36114 "                     const char *content,\n"
36115 "                     int size);\n"
36116 "\n"
36117 msgstr ""
36118 " int\n"
36119 " guestfs_write_file (guestfs_h *g,\n"
36120 "                     const char *path,\n"
36121 "                     const char *content,\n"
36122 "                     int size);\n"
36123 "\n"
36124
36125 #. type: textblock
36126 #: ../src/guestfs-actions.pod:8452
36127 msgid ""
36128 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
36129 "instead."
36130 msgstr ""
36131
36132 #. type: =head2
36133 #: ../src/guestfs-actions.pod:8477
36134 msgid "guestfs_zegrep"
36135 msgstr "guestfs_zegrep"
36136
36137 #. type: verbatim
36138 #: ../src/guestfs-actions.pod:8479
36139 #, no-wrap
36140 msgid ""
36141 " char **\n"
36142 " guestfs_zegrep (guestfs_h *g,\n"
36143 "                 const char *regex,\n"
36144 "                 const char *path);\n"
36145 "\n"
36146 msgstr ""
36147 " char **\n"
36148 " guestfs_zegrep (guestfs_h *g,\n"
36149 "                 const char *regex,\n"
36150 "                 const char *path);\n"
36151 "\n"
36152
36153 #. type: =head2
36154 #: ../src/guestfs-actions.pod:8496
36155 msgid "guestfs_zegrepi"
36156 msgstr "guestfs_zegrepi"
36157
36158 #. type: verbatim
36159 #: ../src/guestfs-actions.pod:8498
36160 #, no-wrap
36161 msgid ""
36162 " char **\n"
36163 " guestfs_zegrepi (guestfs_h *g,\n"
36164 "                  const char *regex,\n"
36165 "                  const char *path);\n"
36166 "\n"
36167 msgstr ""
36168 " char **\n"
36169 " guestfs_zegrepi (guestfs_h *g,\n"
36170 "                  const char *regex,\n"
36171 "                  const char *path);\n"
36172 "\n"
36173
36174 #. type: =head2
36175 #: ../src/guestfs-actions.pod:8515
36176 msgid "guestfs_zero"
36177 msgstr "guestfs_zero"
36178
36179 #. type: verbatim
36180 #: ../src/guestfs-actions.pod:8517
36181 #, no-wrap
36182 msgid ""
36183 " int\n"
36184 " guestfs_zero (guestfs_h *g,\n"
36185 "               const char *device);\n"
36186 "\n"
36187 msgstr ""
36188 " int\n"
36189 " guestfs_zero (guestfs_h *g,\n"
36190 "               const char *device);\n"
36191 "\n"
36192
36193 #. type: textblock
36194 #: ../src/guestfs-actions.pod:8531
36195 msgid ""
36196 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
36197 "C<guestfs_is_zero_device>"
36198 msgstr ""
36199
36200 #. type: =head2
36201 #: ../src/guestfs-actions.pod:8543
36202 msgid "guestfs_zero_device"
36203 msgstr "guestfs_zero_device"
36204
36205 #. type: verbatim
36206 #: ../src/guestfs-actions.pod:8545
36207 #, no-wrap
36208 msgid ""
36209 " int\n"
36210 " guestfs_zero_device (guestfs_h *g,\n"
36211 "                      const char *device);\n"
36212 "\n"
36213 msgstr ""
36214 " int\n"
36215 " guestfs_zero_device (guestfs_h *g,\n"
36216 "                      const char *device);\n"
36217 "\n"
36218
36219 #. type: textblock
36220 #: ../src/guestfs-actions.pod:8549
36221 msgid ""
36222 "This command writes zeroes over the entire C<device>.  Compare with "
36223 "C<guestfs_zero> which just zeroes the first few blocks of a device."
36224 msgstr ""
36225
36226 #. type: textblock
36227 #: ../src/guestfs-actions.pod:8564
36228 msgid "(Added in 1.3.1)"
36229 msgstr "(Додано у 1.3.1)"
36230
36231 #. type: =head2
36232 #: ../src/guestfs-actions.pod:8566
36233 msgid "guestfs_zerofree"
36234 msgstr "guestfs_zerofree"
36235
36236 #. type: verbatim
36237 #: ../src/guestfs-actions.pod:8568
36238 #, no-wrap
36239 msgid ""
36240 " int\n"
36241 " guestfs_zerofree (guestfs_h *g,\n"
36242 "                   const char *device);\n"
36243 "\n"
36244 msgstr ""
36245 " int\n"
36246 " guestfs_zerofree (guestfs_h *g,\n"
36247 "                   const char *device);\n"
36248 "\n"
36249
36250 #. type: =head2
36251 #: ../src/guestfs-actions.pod:8587
36252 msgid "guestfs_zfgrep"
36253 msgstr "guestfs_zfgrep"
36254
36255 #. type: verbatim
36256 #: ../src/guestfs-actions.pod:8589
36257 #, no-wrap
36258 msgid ""
36259 " char **\n"
36260 " guestfs_zfgrep (guestfs_h *g,\n"
36261 "                 const char *pattern,\n"
36262 "                 const char *path);\n"
36263 "\n"
36264 msgstr ""
36265 " char **\n"
36266 " guestfs_zfgrep (guestfs_h *g,\n"
36267 "                 const char *pattern,\n"
36268 "                 const char *path);\n"
36269 "\n"
36270
36271 #. type: =head2
36272 #: ../src/guestfs-actions.pod:8606
36273 msgid "guestfs_zfgrepi"
36274 msgstr "guestfs_zfgrepi"
36275
36276 #. type: verbatim
36277 #: ../src/guestfs-actions.pod:8608
36278 #, no-wrap
36279 msgid ""
36280 " char **\n"
36281 " guestfs_zfgrepi (guestfs_h *g,\n"
36282 "                  const char *pattern,\n"
36283 "                  const char *path);\n"
36284 "\n"
36285 msgstr ""
36286 " char **\n"
36287 " guestfs_zfgrepi (guestfs_h *g,\n"
36288 "                  const char *pattern,\n"
36289 "                  const char *path);\n"
36290 "\n"
36291
36292 #. type: =head2
36293 #: ../src/guestfs-actions.pod:8625
36294 msgid "guestfs_zfile"
36295 msgstr "guestfs_zfile"
36296
36297 #. type: verbatim
36298 #: ../src/guestfs-actions.pod:8627
36299 #, no-wrap
36300 msgid ""
36301 " char *\n"
36302 " guestfs_zfile (guestfs_h *g,\n"
36303 "                const char *meth,\n"
36304 "                const char *path);\n"
36305 "\n"
36306 msgstr ""
36307 " char *\n"
36308 " guestfs_zfile (guestfs_h *g,\n"
36309 "                const char *meth,\n"
36310 "                const char *path);\n"
36311 "\n"
36312
36313 #. type: textblock
36314 #: ../src/guestfs-actions.pod:8632
36315 msgid ""
36316 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
36317 "instead."
36318 msgstr ""
36319
36320 #. type: textblock
36321 #: ../src/guestfs-actions.pod:8644
36322 msgid ""
36323 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
36324 "files."
36325 msgstr ""
36326
36327 #. type: =head2
36328 #: ../src/guestfs-actions.pod:8652
36329 msgid "guestfs_zgrep"
36330 msgstr "guestfs_zgrep"
36331
36332 #. type: verbatim
36333 #: ../src/guestfs-actions.pod:8654
36334 #, no-wrap
36335 msgid ""
36336 " char **\n"
36337 " guestfs_zgrep (guestfs_h *g,\n"
36338 "                const char *regex,\n"
36339 "                const char *path);\n"
36340 "\n"
36341 msgstr ""
36342 " char **\n"
36343 " guestfs_zgrep (guestfs_h *g,\n"
36344 "                const char *regex,\n"
36345 "                const char *path);\n"
36346 "\n"
36347
36348 #. type: =head2
36349 #: ../src/guestfs-actions.pod:8671
36350 msgid "guestfs_zgrepi"
36351 msgstr "guestfs_zgrepi"
36352
36353 #. type: verbatim
36354 #: ../src/guestfs-actions.pod:8673
36355 #, no-wrap
36356 msgid ""
36357 " char **\n"
36358 " guestfs_zgrepi (guestfs_h *g,\n"
36359 "                 const char *regex,\n"
36360 "                 const char *path);\n"
36361 "\n"
36362 msgstr ""
36363 " char **\n"
36364 " guestfs_zgrepi (guestfs_h *g,\n"
36365 "                 const char *regex,\n"
36366 "                 const char *path);\n"
36367 "\n"
36368
36369 #. type: =item
36370 #: ../src/guestfs-availability.pod:3
36371 msgid "B<augeas>"
36372 msgstr "B<augeas>"
36373
36374 #. type: textblock
36375 #: ../src/guestfs-availability.pod:5
36376 msgid ""
36377 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
36378 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
36379 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
36380 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
36381 "L</guestfs_aug_save> L</guestfs_aug_set>"
36382 msgstr ""
36383
36384 #. type: =item
36385 #: ../src/guestfs-availability.pod:21
36386 msgid "B<btrfs>"
36387 msgstr "B<btrfs>"
36388
36389 #. type: textblock
36390 #: ../src/guestfs-availability.pod:23
36391 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
36392 msgstr ""
36393
36394 #. type: =item
36395 #: ../src/guestfs-availability.pod:26
36396 msgid "B<grub>"
36397 msgstr ""
36398
36399 #. type: textblock
36400 #: ../src/guestfs-availability.pod:28
36401 msgid "The following functions: L</guestfs_grub_install>"
36402 msgstr ""
36403
36404 #. type: =item
36405 #: ../src/guestfs-availability.pod:31
36406 msgid "B<inotify>"
36407 msgstr "B<inotify>"
36408
36409 #. type: textblock
36410 #: ../src/guestfs-availability.pod:33
36411 msgid ""
36412 "The following functions: L</guestfs_inotify_add_watch> L</"
36413 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
36414 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
36415 msgstr ""
36416
36417 #. type: =item
36418 #: ../src/guestfs-availability.pod:41
36419 msgid "B<linuxfsuuid>"
36420 msgstr "B<linuxfsuuid>"
36421
36422 #. type: textblock
36423 #: ../src/guestfs-availability.pod:43
36424 msgid ""
36425 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
36426 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
36427 msgstr ""
36428
36429 #. type: =item
36430 #: ../src/guestfs-availability.pod:50
36431 msgid "B<linuxmodules>"
36432 msgstr "B<linuxmodules>"
36433
36434 #. type: textblock
36435 #: ../src/guestfs-availability.pod:52
36436 msgid "The following functions: L</guestfs_modprobe>"
36437 msgstr ""
36438
36439 #. type: =item
36440 #: ../src/guestfs-availability.pod:55
36441 msgid "B<linuxxattrs>"
36442 msgstr "B<linuxxattrs>"
36443
36444 #. type: textblock
36445 #: ../src/guestfs-availability.pod:57
36446 msgid ""
36447 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
36448 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
36449 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
36450 "guestfs_setxattr>"
36451 msgstr ""
36452
36453 #. type: =item
36454 #: ../src/guestfs-availability.pod:68
36455 msgid "B<luks>"
36456 msgstr "B<luks>"
36457
36458 #. type: textblock
36459 #: ../src/guestfs-availability.pod:70
36460 msgid ""
36461 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
36462 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
36463 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
36464 msgstr ""
36465
36466 #. type: =item
36467 #: ../src/guestfs-availability.pod:79
36468 msgid "B<lvm2>"
36469 msgstr "B<lvm2>"
36470
36471 #. type: textblock
36472 #: ../src/guestfs-availability.pod:81
36473 msgid ""
36474 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
36475 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
36476 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
36477 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
36478 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
36479 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
36480 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
36481 msgstr ""
36482
36483 #. type: =item
36484 #: ../src/guestfs-availability.pod:104
36485 msgid "B<mdadm>"
36486 msgstr ""
36487
36488 #. type: textblock
36489 #: ../src/guestfs-availability.pod:106
36490 msgid ""
36491 "The following functions: L</guestfs_md_create> L</guestfs_md_detail> L</"
36492 "guestfs_md_stop>"
36493 msgstr ""
36494
36495 #. type: =item
36496 #: ../src/guestfs-availability.pod:111
36497 msgid "B<mknod>"
36498 msgstr "B<mknod>"
36499
36500 #. type: textblock
36501 #: ../src/guestfs-availability.pod:113
36502 msgid ""
36503 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
36504 "guestfs_mknod_b> L</guestfs_mknod_c>"
36505 msgstr ""
36506
36507 #. type: =item
36508 #: ../src/guestfs-availability.pod:119
36509 msgid "B<ntfs3g>"
36510 msgstr "B<ntfs3g>"
36511
36512 #. type: textblock
36513 #: ../src/guestfs-availability.pod:121
36514 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
36515 msgstr ""
36516
36517 #. type: =item
36518 #: ../src/guestfs-availability.pod:124
36519 msgid "B<ntfsprogs>"
36520 msgstr "B<ntfsprogs>"
36521
36522 #. type: textblock
36523 #: ../src/guestfs-availability.pod:126
36524 msgid ""
36525 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
36526 "L</guestfs_ntfsresize_size>"
36527 msgstr ""
36528
36529 #. type: =item
36530 #: ../src/guestfs-availability.pod:131
36531 msgid "B<realpath>"
36532 msgstr "B<realpath>"
36533
36534 #. type: textblock
36535 #: ../src/guestfs-availability.pod:133
36536 msgid "The following functions: L</guestfs_realpath>"
36537 msgstr ""
36538
36539 #. type: =item
36540 #: ../src/guestfs-availability.pod:136
36541 msgid "B<scrub>"
36542 msgstr "B<scrub>"
36543
36544 #. type: textblock
36545 #: ../src/guestfs-availability.pod:138
36546 msgid ""
36547 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
36548 "guestfs_scrub_freespace>"
36549 msgstr ""
36550
36551 #. type: =item
36552 #: ../src/guestfs-availability.pod:143
36553 msgid "B<selinux>"
36554 msgstr "B<selinux>"
36555
36556 #. type: textblock
36557 #: ../src/guestfs-availability.pod:145
36558 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
36559 msgstr ""
36560
36561 #. type: =item
36562 #: ../src/guestfs-availability.pod:149
36563 msgid "B<xz>"
36564 msgstr "B<xz>"
36565
36566 #. type: textblock
36567 #: ../src/guestfs-availability.pod:151
36568 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
36569 msgstr ""
36570
36571 #. type: =item
36572 #: ../src/guestfs-availability.pod:155
36573 msgid "B<zerofree>"
36574 msgstr "B<zerofree>"
36575
36576 #. type: textblock
36577 #: ../src/guestfs-availability.pod:157
36578 msgid "The following functions: L</guestfs_zerofree>"
36579 msgstr ""
36580
36581 #. type: =head2
36582 #: ../src/guestfs-structs.pod:1
36583 msgid "guestfs_int_bool"
36584 msgstr ""
36585
36586 #. type: verbatim
36587 #: ../src/guestfs-structs.pod:3
36588 #, no-wrap
36589 msgid ""
36590 " struct guestfs_int_bool {\n"
36591 "   int32_t i;\n"
36592 "   int32_t b;\n"
36593 " };\n"
36594 " \n"
36595 msgstr ""
36596
36597 #. type: verbatim
36598 #: ../src/guestfs-structs.pod:8
36599 #, no-wrap
36600 msgid ""
36601 " struct guestfs_int_bool_list {\n"
36602 "   uint32_t len; /* Number of elements in list. */\n"
36603 "   struct guestfs_int_bool *val; /* Elements. */\n"
36604 " };\n"
36605 " \n"
36606 msgstr ""
36607
36608 #. type: verbatim
36609 #: ../src/guestfs-structs.pod:13
36610 #, no-wrap
36611 msgid ""
36612 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
36613 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
36614 "\n"
36615 msgstr ""
36616
36617 #. type: =head2
36618 #: ../src/guestfs-structs.pod:16
36619 msgid "guestfs_lvm_pv"
36620 msgstr ""
36621
36622 #. type: verbatim
36623 #: ../src/guestfs-structs.pod:18
36624 #, no-wrap
36625 msgid ""
36626 " struct guestfs_lvm_pv {\n"
36627 "   char *pv_name;\n"
36628 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
36629 "   char pv_uuid[32];\n"
36630 "   char *pv_fmt;\n"
36631 "   uint64_t pv_size;\n"
36632 "   uint64_t dev_size;\n"
36633 "   uint64_t pv_free;\n"
36634 "   uint64_t pv_used;\n"
36635 "   char *pv_attr;\n"
36636 "   int64_t pv_pe_count;\n"
36637 "   int64_t pv_pe_alloc_count;\n"
36638 "   char *pv_tags;\n"
36639 "   uint64_t pe_start;\n"
36640 "   int64_t pv_mda_count;\n"
36641 "   uint64_t pv_mda_free;\n"
36642 " };\n"
36643 " \n"
36644 msgstr ""
36645
36646 #. type: verbatim
36647 #: ../src/guestfs-structs.pod:36
36648 #, no-wrap
36649 msgid ""
36650 " struct guestfs_lvm_pv_list {\n"
36651 "   uint32_t len; /* Number of elements in list. */\n"
36652 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
36653 " };\n"
36654 " \n"
36655 msgstr ""
36656
36657 #. type: verbatim
36658 #: ../src/guestfs-structs.pod:41
36659 #, no-wrap
36660 msgid ""
36661 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
36662 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
36663 "\n"
36664 msgstr ""
36665
36666 #. type: =head2
36667 #: ../src/guestfs-structs.pod:44
36668 msgid "guestfs_lvm_vg"
36669 msgstr ""
36670
36671 #. type: verbatim
36672 #: ../src/guestfs-structs.pod:46
36673 #, no-wrap
36674 msgid ""
36675 " struct guestfs_lvm_vg {\n"
36676 "   char *vg_name;\n"
36677 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
36678 "   char vg_uuid[32];\n"
36679 "   char *vg_fmt;\n"
36680 "   char *vg_attr;\n"
36681 "   uint64_t vg_size;\n"
36682 "   uint64_t vg_free;\n"
36683 "   char *vg_sysid;\n"
36684 "   uint64_t vg_extent_size;\n"
36685 "   int64_t vg_extent_count;\n"
36686 "   int64_t vg_free_count;\n"
36687 "   int64_t max_lv;\n"
36688 "   int64_t max_pv;\n"
36689 "   int64_t pv_count;\n"
36690 "   int64_t lv_count;\n"
36691 "   int64_t snap_count;\n"
36692 "   int64_t vg_seqno;\n"
36693 "   char *vg_tags;\n"
36694 "   int64_t vg_mda_count;\n"
36695 "   uint64_t vg_mda_free;\n"
36696 " };\n"
36697 " \n"
36698 msgstr ""
36699
36700 #. type: verbatim
36701 #: ../src/guestfs-structs.pod:69
36702 #, no-wrap
36703 msgid ""
36704 " struct guestfs_lvm_vg_list {\n"
36705 "   uint32_t len; /* Number of elements in list. */\n"
36706 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
36707 " };\n"
36708 " \n"
36709 msgstr ""
36710
36711 #. type: verbatim
36712 #: ../src/guestfs-structs.pod:74
36713 #, no-wrap
36714 msgid ""
36715 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
36716 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
36717 "\n"
36718 msgstr ""
36719
36720 #. type: =head2
36721 #: ../src/guestfs-structs.pod:77
36722 msgid "guestfs_lvm_lv"
36723 msgstr ""
36724
36725 #. type: verbatim
36726 #: ../src/guestfs-structs.pod:79
36727 #, no-wrap
36728 msgid ""
36729 " struct guestfs_lvm_lv {\n"
36730 "   char *lv_name;\n"
36731 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
36732 "   char lv_uuid[32];\n"
36733 "   char *lv_attr;\n"
36734 "   int64_t lv_major;\n"
36735 "   int64_t lv_minor;\n"
36736 "   int64_t lv_kernel_major;\n"
36737 "   int64_t lv_kernel_minor;\n"
36738 "   uint64_t lv_size;\n"
36739 "   int64_t seg_count;\n"
36740 "   char *origin;\n"
36741 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
36742 "   float snap_percent;\n"
36743 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
36744 "   float copy_percent;\n"
36745 "   char *move_pv;\n"
36746 "   char *lv_tags;\n"
36747 "   char *mirror_log;\n"
36748 "   char *modules;\n"
36749 " };\n"
36750 " \n"
36751 msgstr ""
36752
36753 #. type: verbatim
36754 #: ../src/guestfs-structs.pod:101
36755 #, no-wrap
36756 msgid ""
36757 " struct guestfs_lvm_lv_list {\n"
36758 "   uint32_t len; /* Number of elements in list. */\n"
36759 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
36760 " };\n"
36761 " \n"
36762 msgstr ""
36763
36764 #. type: verbatim
36765 #: ../src/guestfs-structs.pod:106
36766 #, no-wrap
36767 msgid ""
36768 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
36769 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
36770 "\n"
36771 msgstr ""
36772
36773 #. type: verbatim
36774 #: ../src/guestfs-structs.pod:111
36775 #, no-wrap
36776 msgid ""
36777 " struct guestfs_stat {\n"
36778 "   int64_t dev;\n"
36779 "   int64_t ino;\n"
36780 "   int64_t mode;\n"
36781 "   int64_t nlink;\n"
36782 "   int64_t uid;\n"
36783 "   int64_t gid;\n"
36784 "   int64_t rdev;\n"
36785 "   int64_t size;\n"
36786 "   int64_t blksize;\n"
36787 "   int64_t blocks;\n"
36788 "   int64_t atime;\n"
36789 "   int64_t mtime;\n"
36790 "   int64_t ctime;\n"
36791 " };\n"
36792 " \n"
36793 msgstr ""
36794
36795 #. type: verbatim
36796 #: ../src/guestfs-structs.pod:127
36797 #, no-wrap
36798 msgid ""
36799 " struct guestfs_stat_list {\n"
36800 "   uint32_t len; /* Number of elements in list. */\n"
36801 "   struct guestfs_stat *val; /* Elements. */\n"
36802 " };\n"
36803 " \n"
36804 msgstr ""
36805
36806 #. type: verbatim
36807 #: ../src/guestfs-structs.pod:132
36808 #, no-wrap
36809 msgid ""
36810 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
36811 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
36812 "\n"
36813 msgstr ""
36814
36815 #. type: verbatim
36816 #: ../src/guestfs-structs.pod:137
36817 #, no-wrap
36818 msgid ""
36819 " struct guestfs_statvfs {\n"
36820 "   int64_t bsize;\n"
36821 "   int64_t frsize;\n"
36822 "   int64_t blocks;\n"
36823 "   int64_t bfree;\n"
36824 "   int64_t bavail;\n"
36825 "   int64_t files;\n"
36826 "   int64_t ffree;\n"
36827 "   int64_t favail;\n"
36828 "   int64_t fsid;\n"
36829 "   int64_t flag;\n"
36830 "   int64_t namemax;\n"
36831 " };\n"
36832 " \n"
36833 msgstr ""
36834
36835 #. type: verbatim
36836 #: ../src/guestfs-structs.pod:151
36837 #, no-wrap
36838 msgid ""
36839 " struct guestfs_statvfs_list {\n"
36840 "   uint32_t len; /* Number of elements in list. */\n"
36841 "   struct guestfs_statvfs *val; /* Elements. */\n"
36842 " };\n"
36843 " \n"
36844 msgstr ""
36845
36846 #. type: verbatim
36847 #: ../src/guestfs-structs.pod:156
36848 #, no-wrap
36849 msgid ""
36850 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
36851 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
36852 "\n"
36853 msgstr ""
36854
36855 #. type: =head2
36856 #: ../src/guestfs-structs.pod:159
36857 msgid "guestfs_dirent"
36858 msgstr ""
36859
36860 #. type: verbatim
36861 #: ../src/guestfs-structs.pod:161
36862 #, no-wrap
36863 msgid ""
36864 " struct guestfs_dirent {\n"
36865 "   int64_t ino;\n"
36866 "   char ftyp;\n"
36867 "   char *name;\n"
36868 " };\n"
36869 " \n"
36870 msgstr ""
36871
36872 #. type: verbatim
36873 #: ../src/guestfs-structs.pod:167
36874 #, no-wrap
36875 msgid ""
36876 " struct guestfs_dirent_list {\n"
36877 "   uint32_t len; /* Number of elements in list. */\n"
36878 "   struct guestfs_dirent *val; /* Elements. */\n"
36879 " };\n"
36880 " \n"
36881 msgstr ""
36882
36883 #. type: verbatim
36884 #: ../src/guestfs-structs.pod:172
36885 #, no-wrap
36886 msgid ""
36887 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
36888 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
36889 "\n"
36890 msgstr ""
36891
36892 #. type: verbatim
36893 #: ../src/guestfs-structs.pod:177
36894 #, no-wrap
36895 msgid ""
36896 " struct guestfs_version {\n"
36897 "   int64_t major;\n"
36898 "   int64_t minor;\n"
36899 "   int64_t release;\n"
36900 "   char *extra;\n"
36901 " };\n"
36902 " \n"
36903 msgstr ""
36904
36905 #. type: verbatim
36906 #: ../src/guestfs-structs.pod:184
36907 #, no-wrap
36908 msgid ""
36909 " struct guestfs_version_list {\n"
36910 "   uint32_t len; /* Number of elements in list. */\n"
36911 "   struct guestfs_version *val; /* Elements. */\n"
36912 " };\n"
36913 " \n"
36914 msgstr ""
36915
36916 #. type: verbatim
36917 #: ../src/guestfs-structs.pod:189
36918 #, no-wrap
36919 msgid ""
36920 " void guestfs_free_version (struct guestfs_free_version *);\n"
36921 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
36922 "\n"
36923 msgstr ""
36924
36925 #. type: =head2
36926 #: ../src/guestfs-structs.pod:192
36927 msgid "guestfs_xattr"
36928 msgstr ""
36929
36930 #. type: verbatim
36931 #: ../src/guestfs-structs.pod:194
36932 #, no-wrap
36933 msgid ""
36934 " struct guestfs_xattr {\n"
36935 "   char *attrname;\n"
36936 "   /* The next two fields describe a byte array. */\n"
36937 "   uint32_t attrval_len;\n"
36938 "   char *attrval;\n"
36939 " };\n"
36940 " \n"
36941 msgstr ""
36942
36943 #. type: verbatim
36944 #: ../src/guestfs-structs.pod:201
36945 #, no-wrap
36946 msgid ""
36947 " struct guestfs_xattr_list {\n"
36948 "   uint32_t len; /* Number of elements in list. */\n"
36949 "   struct guestfs_xattr *val; /* Elements. */\n"
36950 " };\n"
36951 " \n"
36952 msgstr ""
36953
36954 #. type: verbatim
36955 #: ../src/guestfs-structs.pod:206
36956 #, no-wrap
36957 msgid ""
36958 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
36959 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
36960 "\n"
36961 msgstr ""
36962
36963 #. type: =head2
36964 #: ../src/guestfs-structs.pod:209
36965 msgid "guestfs_inotify_event"
36966 msgstr ""
36967
36968 #. type: verbatim
36969 #: ../src/guestfs-structs.pod:211
36970 #, no-wrap
36971 msgid ""
36972 " struct guestfs_inotify_event {\n"
36973 "   int64_t in_wd;\n"
36974 "   uint32_t in_mask;\n"
36975 "   uint32_t in_cookie;\n"
36976 "   char *in_name;\n"
36977 " };\n"
36978 " \n"
36979 msgstr ""
36980
36981 #. type: verbatim
36982 #: ../src/guestfs-structs.pod:218
36983 #, no-wrap
36984 msgid ""
36985 " struct guestfs_inotify_event_list {\n"
36986 "   uint32_t len; /* Number of elements in list. */\n"
36987 "   struct guestfs_inotify_event *val; /* Elements. */\n"
36988 " };\n"
36989 " \n"
36990 msgstr ""
36991
36992 #. type: verbatim
36993 #: ../src/guestfs-structs.pod:223
36994 #, no-wrap
36995 msgid ""
36996 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
36997 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
36998 "\n"
36999 msgstr ""
37000
37001 #. type: =head2
37002 #: ../src/guestfs-structs.pod:226
37003 msgid "guestfs_partition"
37004 msgstr ""
37005
37006 #. type: verbatim
37007 #: ../src/guestfs-structs.pod:228
37008 #, no-wrap
37009 msgid ""
37010 " struct guestfs_partition {\n"
37011 "   int32_t part_num;\n"
37012 "   uint64_t part_start;\n"
37013 "   uint64_t part_end;\n"
37014 "   uint64_t part_size;\n"
37015 " };\n"
37016 " \n"
37017 msgstr ""
37018
37019 #. type: verbatim
37020 #: ../src/guestfs-structs.pod:235
37021 #, no-wrap
37022 msgid ""
37023 " struct guestfs_partition_list {\n"
37024 "   uint32_t len; /* Number of elements in list. */\n"
37025 "   struct guestfs_partition *val; /* Elements. */\n"
37026 " };\n"
37027 " \n"
37028 msgstr ""
37029
37030 #. type: verbatim
37031 #: ../src/guestfs-structs.pod:240
37032 #, no-wrap
37033 msgid ""
37034 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
37035 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
37036 "\n"
37037 msgstr ""
37038
37039 #. type: =head2
37040 #: ../src/guestfs-structs.pod:243
37041 msgid "guestfs_application"
37042 msgstr ""
37043
37044 #. type: verbatim
37045 #: ../src/guestfs-structs.pod:245
37046 #, no-wrap
37047 msgid ""
37048 " struct guestfs_application {\n"
37049 "   char *app_name;\n"
37050 "   char *app_display_name;\n"
37051 "   int32_t app_epoch;\n"
37052 "   char *app_version;\n"
37053 "   char *app_release;\n"
37054 "   char *app_install_path;\n"
37055 "   char *app_trans_path;\n"
37056 "   char *app_publisher;\n"
37057 "   char *app_url;\n"
37058 "   char *app_source_package;\n"
37059 "   char *app_summary;\n"
37060 "   char *app_description;\n"
37061 " };\n"
37062 " \n"
37063 msgstr ""
37064
37065 #. type: verbatim
37066 #: ../src/guestfs-structs.pod:260
37067 #, no-wrap
37068 msgid ""
37069 " struct guestfs_application_list {\n"
37070 "   uint32_t len; /* Number of elements in list. */\n"
37071 "   struct guestfs_application *val; /* Elements. */\n"
37072 " };\n"
37073 " \n"
37074 msgstr ""
37075
37076 #. type: verbatim
37077 #: ../src/guestfs-structs.pod:265
37078 #, no-wrap
37079 msgid ""
37080 " void guestfs_free_application (struct guestfs_free_application *);\n"
37081 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
37082 "\n"
37083 msgstr ""
37084
37085 #. type: textblock
37086 #: ../src/guestfs.pod:5
37087 msgid "guestfs - Library for accessing and modifying virtual machine images"
37088 msgstr ""
37089 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
37090 "машин"
37091
37092 #. type: verbatim
37093 #: ../src/guestfs.pod:11
37094 #, no-wrap
37095 msgid ""
37096 " guestfs_h *g = guestfs_create ();\n"
37097 " guestfs_add_drive (g, \"guest.img\");\n"
37098 " guestfs_launch (g);\n"
37099 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37100 " guestfs_touch (g, \"/hello\");\n"
37101 " guestfs_umount (g, \"/\");\n"
37102 " guestfs_close (g);\n"
37103 "\n"
37104 msgstr ""
37105 " guestfs_h *g = guestfs_create ();\n"
37106 " guestfs_add_drive (g, \"guest.img\");\n"
37107 " guestfs_launch (g);\n"
37108 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37109 " guestfs_touch (g, \"/hello\");\n"
37110 " guestfs_umount (g, \"/\");\n"
37111 " guestfs_close (g);\n"
37112 "\n"
37113
37114 #. type: textblock
37115 #: ../src/guestfs.pod:25
37116 msgid ""
37117 "Libguestfs is a library for accessing and modifying guest disk images.  "
37118 "Amongst the things this is good for: making batch configuration changes to "
37119 "guests, getting disk used/free statistics (see also: virt-df), migrating "
37120 "between virtualization systems (see also: virt-p2v), performing partial "
37121 "backups, performing partial guest clones, cloning guests and changing "
37122 "registry/UUID/hostname info, and much else besides."
37123 msgstr ""
37124
37125 #. type: textblock
37126 #: ../src/guestfs.pod:33
37127 msgid ""
37128 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
37129 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
37130 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
37131 "qcow2, vmdk."
37132 msgstr ""
37133
37134 #. type: textblock
37135 #: ../src/guestfs.pod:38
37136 msgid ""
37137 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
37138 "what filesystem is in each LV, etc.).  It can also run commands in the "
37139 "context of the guest.  Also you can access filesystems over FUSE."
37140 msgstr ""
37141
37142 #. type: textblock
37143 #: ../src/guestfs.pod:43
37144 msgid ""
37145 "Libguestfs is a library that can be linked with C and C++ management "
37146 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
37147 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
37148 "command line."
37149 msgstr ""
37150
37151 #. type: textblock
37152 #: ../src/guestfs.pod:48
37153 msgid ""
37154 "You don't need to be root to use libguestfs, although obviously you do need "
37155 "enough permissions to access the disk images."
37156 msgstr ""
37157
37158 #. type: textblock
37159 #: ../src/guestfs.pod:51
37160 msgid ""
37161 "Libguestfs is a large API because it can do many things.  For a gentle "
37162 "introduction, please read the L</API OVERVIEW> section next."
37163 msgstr ""
37164
37165 #. type: textblock
37166 #: ../src/guestfs.pod:54
37167 msgid ""
37168 "There are also some example programs in the L<guestfs-examples(3)> manual "
37169 "page."
37170 msgstr ""
37171
37172 #. type: =head1
37173 #: ../src/guestfs.pod:57
37174 msgid "API OVERVIEW"
37175 msgstr "ОГЛЯД API"
37176
37177 #. type: textblock
37178 #: ../src/guestfs.pod:59
37179 msgid ""
37180 "This section provides a gentler overview of the libguestfs API.  We also try "
37181 "to group API calls together, where that may not be obvious from reading "
37182 "about the individual calls in the main section of this manual."
37183 msgstr ""
37184
37185 #. type: =head2
37186 #: ../src/guestfs.pod:64
37187 msgid "HANDLES"
37188 msgstr "ОБРОБНИКИ"
37189
37190 #. type: textblock
37191 #: ../src/guestfs.pod:66
37192 msgid ""
37193 "Before you can use libguestfs calls, you have to create a handle.  Then you "
37194 "must add at least one disk image to the handle, followed by launching the "
37195 "handle, then performing whatever operations you want, and finally closing "
37196 "the handle.  By convention we use the single letter C<g> for the name of the "
37197 "handle variable, although of course you can use any name you want."
37198 msgstr ""
37199
37200 #. type: textblock
37201 #: ../src/guestfs.pod:73
37202 msgid "The general structure of all libguestfs-using programs looks like this:"
37203 msgstr ""
37204
37205 #. type: verbatim
37206 #: ../src/guestfs.pod:76
37207 #, no-wrap
37208 msgid ""
37209 " guestfs_h *g = guestfs_create ();\n"
37210 " \n"
37211 msgstr ""
37212 " guestfs_h *g = guestfs_create ();\n"
37213 " \n"
37214
37215 #. type: verbatim
37216 #: ../src/guestfs.pod:78
37217 #, no-wrap
37218 msgid ""
37219 " /* Call guestfs_add_drive additional times if there are\n"
37220 "  * multiple disk images.\n"
37221 "  */\n"
37222 " guestfs_add_drive (g, \"guest.img\");\n"
37223 " \n"
37224 msgstr ""
37225
37226 #. type: verbatim
37227 #: ../src/guestfs.pod:83
37228 #, no-wrap
37229 msgid ""
37230 " /* Most manipulation calls won't work until you've launched\n"
37231 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
37232 "  * and _before_ other commands.\n"
37233 "  */\n"
37234 " guestfs_launch (g);\n"
37235 " \n"
37236 msgstr ""
37237
37238 #. type: verbatim
37239 #: ../src/guestfs.pod:89
37240 #, no-wrap
37241 msgid ""
37242 " /* Now you can examine what partitions, LVs etc are available.\n"
37243 "  */\n"
37244 " char **partitions = guestfs_list_partitions (g);\n"
37245 " char **logvols = guestfs_lvs (g);\n"
37246 " \n"
37247 msgstr ""
37248 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
37249 "  */\n"
37250 " char **partitions = guestfs_list_partitions (g);\n"
37251 " char **logvols = guestfs_lvs (g);\n"
37252 " \n"
37253
37254 #. type: verbatim
37255 #: ../src/guestfs.pod:94
37256 #, no-wrap
37257 msgid ""
37258 " /* To access a filesystem in the image, you must mount it.\n"
37259 "  */\n"
37260 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37261 " \n"
37262 msgstr ""
37263 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
37264 "  */\n"
37265 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37266 " \n"
37267
37268 #. type: verbatim
37269 #: ../src/guestfs.pod:98
37270 #, no-wrap
37271 msgid ""
37272 " /* Now you can perform filesystem actions on the guest\n"
37273 "  * disk image.\n"
37274 "  */\n"
37275 " guestfs_touch (g, \"/hello\");\n"
37276 " \n"
37277 msgstr ""
37278 " /* Тепер ви можете виконувати дії з файловою системою на\n"
37279 "  * образі диска операційної системи.\n"
37280 "  */\n"
37281 " guestfs_touch (g, \"/hello\");\n"
37282 " \n"
37283
37284 #. type: verbatim
37285 #: ../src/guestfs.pod:103
37286 #, no-wrap
37287 msgid ""
37288 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
37289 "  * it is done automatically when you close the handle.  See\n"
37290 "  * discussion of autosync in this page.\n"
37291 "  */\n"
37292 " guestfs_sync (g);\n"
37293 " \n"
37294 msgstr ""
37295
37296 #. type: verbatim
37297 #: ../src/guestfs.pod:109
37298 #, no-wrap
37299 msgid ""
37300 " /* Close the handle 'g'. */\n"
37301 " guestfs_close (g);\n"
37302 "\n"
37303 msgstr ""
37304 " /* Закрити дескриптор 'g'. */\n"
37305 " guestfs_close (g);\n"
37306 "\n"
37307
37308 #. type: textblock
37309 #: ../src/guestfs.pod:112
37310 msgid ""
37311 "The code above doesn't include any error checking.  In real code you should "
37312 "check return values carefully for errors.  In general all functions that "
37313 "return integers return C<-1> on error, and all functions that return "
37314 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
37315 "how to handle errors, and consult the documentation for each function call "
37316 "below to see precisely how they return error indications.  See L<guestfs-"
37317 "examples(3)> for fully worked examples."
37318 msgstr ""
37319
37320 #. type: =head2
37321 #: ../src/guestfs.pod:121
37322 msgid "DISK IMAGES"
37323 msgstr "ОБРАЗИ ДИСКІВ"
37324
37325 #. type: textblock
37326 #: ../src/guestfs.pod:123
37327 msgid ""
37328 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
37329 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
37330 "actual block device, or simply an empty file of zeroes that you have created "
37331 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
37332 "of these."
37333 msgstr ""
37334
37335 #. type: textblock
37336 #: ../src/guestfs.pod:129
37337 msgid ""
37338 "The call you should use in modern code for adding drives is L</"
37339 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
37340 "specifying that the format is raw, do:"
37341 msgstr ""
37342
37343 #. type: verbatim
37344 #: ../src/guestfs.pod:133
37345 #, no-wrap
37346 msgid ""
37347 " guestfs_add_drive_opts (g, filename,\n"
37348 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37349 "                         -1);\n"
37350 "\n"
37351 msgstr ""
37352 " guestfs_add_drive_opts (g, filename,\n"
37353 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37354 "                         -1);\n"
37355 "\n"
37356
37357 #. type: textblock
37358 #: ../src/guestfs.pod:137
37359 msgid "You can add a disk read-only using:"
37360 msgstr "Ви можете додати диск у режимі лише читання:"
37361
37362 #. type: verbatim
37363 #: ../src/guestfs.pod:139
37364 #, no-wrap
37365 msgid ""
37366 " guestfs_add_drive_opts (g, filename,\n"
37367 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37368 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37369 "                         -1);\n"
37370 "\n"
37371 msgstr ""
37372 " guestfs_add_drive_opts (g, filename,\n"
37373 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37374 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37375 "                         -1);\n"
37376 "\n"
37377
37378 #. type: textblock
37379 #: ../src/guestfs.pod:144
37380 msgid ""
37381 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
37382 "libguestfs won't modify the file."
37383 msgstr ""
37384
37385 #. type: textblock
37386 #: ../src/guestfs.pod:147
37387 msgid ""
37388 "Be extremely cautious if the disk image is in use, eg. if it is being used "
37389 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
37390 "corruption, but adding it read-only is safe."
37391 msgstr ""
37392
37393 #. type: textblock
37394 #: ../src/guestfs.pod:151
37395 msgid ""
37396 "You must add at least one disk image, and you may add multiple disk images.  "
37397 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
37398 "first one you added), C</dev/sdb> (for the second one you added), etc."
37399 msgstr ""
37400
37401 #. type: textblock
37402 #: ../src/guestfs.pod:156
37403 msgid ""
37404 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
37405 "can call L</guestfs_list_devices> to get a list of the device names, in the "
37406 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
37407 msgstr ""
37408
37409 #. type: =head2
37410 #: ../src/guestfs.pod:161
37411 msgid "MOUNTING"
37412 msgstr "МОНТУВАННЯ"
37413
37414 #. type: textblock
37415 #: ../src/guestfs.pod:163
37416 msgid ""
37417 "Before you can read or write files, create directories and so on in a disk "
37418 "image that contains filesystems, you have to mount those filesystems using "
37419 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
37420 "a disk image contains (for example) one partition with a filesystem on that "
37421 "partition, then you can mount it directly:"
37422 msgstr ""
37423
37424 #. type: verbatim
37425 #: ../src/guestfs.pod:170
37426 #, no-wrap
37427 msgid ""
37428 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
37429 "\n"
37430 msgstr ""
37431 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
37432 "\n"
37433
37434 #. type: textblock
37435 #: ../src/guestfs.pod:172
37436 msgid ""
37437 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
37438 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
37439 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
37440 "that these are libguestfs virtual devices, and are nothing to do with host "
37441 "devices."
37442 msgstr ""
37443
37444 #. type: textblock
37445 #: ../src/guestfs.pod:178
37446 msgid ""
37447 "If you are given a disk image and you don't know what it contains then you "
37448 "have to find out.  Libguestfs can do that too: use L</"
37449 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
37450 "LVs, and either try mounting each to see what is mountable, or else examine "
37451 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
37452 "filesystems, use L</guestfs_list_filesystems>."
37453 msgstr ""
37454
37455 #. type: textblock
37456 #: ../src/guestfs.pod:186
37457 msgid ""
37458 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
37459 "L</INSPECTION> below).  But you might find it easier to look at higher level "
37460 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
37461 msgstr ""
37462
37463 #. type: textblock
37464 #: ../src/guestfs.pod:191
37465 msgid ""
37466 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
37467 "several other variations of the C<guestfs_mount_*> call."
37468 msgstr ""
37469
37470 #. type: =head2
37471 #: ../src/guestfs.pod:194
37472 msgid "FILESYSTEM ACCESS AND MODIFICATION"
37473 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
37474
37475 #. type: textblock
37476 #: ../src/guestfs.pod:196
37477 msgid ""
37478 "The majority of the libguestfs API consists of fairly low-level calls for "
37479 "accessing and modifying the files, directories, symlinks etc on mounted "
37480 "filesystems.  There are over a hundred such calls which you can find listed "
37481 "in detail below in this man page, and we don't even pretend to cover them "
37482 "all in this overview."
37483 msgstr ""
37484
37485 #. type: textblock
37486 #: ../src/guestfs.pod:202
37487 msgid ""
37488 "Specify filenames as full paths, starting with C<\"/\"> and including the "
37489 "mount point."
37490 msgstr ""
37491 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
37492 "точкою монтування."
37493
37494 #. type: textblock
37495 #: ../src/guestfs.pod:205
37496 msgid ""
37497 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
37498 "the file called C<\"etc/passwd\"> then you could do:"
37499 msgstr ""
37500 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
37501 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
37502 "таким кодом:"
37503
37504 #. type: verbatim
37505 #: ../src/guestfs.pod:208
37506 #, no-wrap
37507 msgid ""
37508 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
37509 "\n"
37510 msgstr ""
37511 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
37512 "\n"
37513
37514 #. type: textblock
37515 #: ../src/guestfs.pod:210
37516 msgid ""
37517 "This would return C<data> as a newly allocated buffer containing the full "
37518 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
37519 "or C<NULL> if there was an error."
37520 msgstr ""
37521
37522 #. type: textblock
37523 #: ../src/guestfs.pod:214
37524 msgid ""
37525 "As another example, to create a top-level directory on that filesystem "
37526 "called C<\"var\"> you would do:"
37527 msgstr ""
37528
37529 #. type: verbatim
37530 #: ../src/guestfs.pod:217
37531 #, no-wrap
37532 msgid ""
37533 " guestfs_mkdir (g, \"/var\");\n"
37534 "\n"
37535 msgstr ""
37536 " guestfs_mkdir (g, \"/var\");\n"
37537 "\n"
37538
37539 #. type: textblock
37540 #: ../src/guestfs.pod:219
37541 msgid "To create a symlink you could do:"
37542 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
37543
37544 #. type: verbatim
37545 #: ../src/guestfs.pod:221
37546 #, no-wrap
37547 msgid ""
37548 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
37549 "               \"/etc/rc3.d/S30portmap\");\n"
37550 "\n"
37551 msgstr ""
37552 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
37553 "               \"/etc/rc3.d/S30portmap\");\n"
37554 "\n"
37555
37556 #. type: textblock
37557 #: ../src/guestfs.pod:224
37558 msgid ""
37559 "Libguestfs will reject attempts to use relative paths and there is no "
37560 "concept of a current working directory."
37561 msgstr ""
37562
37563 #. type: textblock
37564 #: ../src/guestfs.pod:227
37565 msgid ""
37566 "Libguestfs can return errors in many situations: for example if the "
37567 "filesystem isn't writable, or if a file or directory that you requested "
37568 "doesn't exist.  If you are using the C API (documented here)  you have to "
37569 "check for those error conditions after each call.  (Other language bindings "
37570 "turn these errors into exceptions)."
37571 msgstr ""
37572
37573 #. type: textblock
37574 #: ../src/guestfs.pod:233
37575 msgid ""
37576 "File writes are affected by the per-handle umask, set by calling L</"
37577 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
37578 msgstr ""
37579
37580 #. type: =head2
37581 #: ../src/guestfs.pod:236
37582 msgid "PARTITIONING"
37583 msgstr "ПОДІЛ НА РОЗДІЛИ"
37584
37585 #. type: textblock
37586 #: ../src/guestfs.pod:238
37587 msgid ""
37588 "Libguestfs contains API calls to read, create and modify partition tables on "
37589 "disk images."
37590 msgstr ""
37591
37592 #. type: textblock
37593 #: ../src/guestfs.pod:241
37594 msgid ""
37595 "In the common case where you want to create a single partition covering the "
37596 "whole disk, you should use the L</guestfs_part_disk> call:"
37597 msgstr ""
37598
37599 #. type: verbatim
37600 #: ../src/guestfs.pod:245
37601 #, no-wrap
37602 msgid ""
37603 " const char *parttype = \"mbr\";\n"
37604 " if (disk_is_larger_than_2TB)\n"
37605 "   parttype = \"gpt\";\n"
37606 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
37607 "\n"
37608 msgstr ""
37609 " const char *parttype = \"mbr\";\n"
37610 " if (disk_is_larger_than_2TB)\n"
37611 "   parttype = \"gpt\";\n"
37612 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
37613 "\n"
37614
37615 #. type: textblock
37616 #: ../src/guestfs.pod:250
37617 msgid ""
37618 "Obviously this effectively wipes anything that was on that disk image before."
37619 msgstr ""
37620
37621 #. type: =head2
37622 #: ../src/guestfs.pod:253
37623 msgid "LVM2"
37624 msgstr "LVM2"
37625
37626 #. type: textblock
37627 #: ../src/guestfs.pod:255
37628 msgid ""
37629 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
37630 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
37631 "you familiarize yourself with the concepts of physical volumes, volume "
37632 "groups and logical volumes."
37633 msgstr ""
37634
37635 #. type: textblock
37636 #: ../src/guestfs.pod:260
37637 msgid ""
37638 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
37639 "tldp.org/HOWTO/LVM-HOWTO/>."
37640 msgstr ""
37641
37642 #. type: =head2
37643 #: ../src/guestfs.pod:263
37644 msgid "DOWNLOADING"
37645 msgstr "ОТРИМАННЯ ДАНИХ"
37646
37647 #. type: textblock
37648 #: ../src/guestfs.pod:265
37649 msgid ""
37650 "Use L</guestfs_cat> to download small, text only files.  This call is "
37651 "limited to files which are less than 2 MB and which cannot contain any ASCII "
37652 "NUL (C<\\0>) characters.  However the API is very simple to use."
37653 msgstr ""
37654
37655 #. type: textblock
37656 #: ../src/guestfs.pod:269
37657 msgid ""
37658 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
37659 "bit data, since it returns a (pointer, size) pair.  However it is still "
37660 "limited to \"small\" files, less than 2 MB."
37661 msgstr ""
37662
37663 #. type: textblock
37664 #: ../src/guestfs.pod:273
37665 msgid ""
37666 "L</guestfs_download> can be used to download any file, with no limits on "
37667 "content or size (even files larger than 4 GB)."
37668 msgstr ""
37669
37670 #. type: textblock
37671 #: ../src/guestfs.pod:276
37672 msgid ""
37673 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
37674 msgstr ""
37675
37676 #. type: =head2
37677 #: ../src/guestfs.pod:279
37678 msgid "UPLOADING"
37679 msgstr "ВИВАНТАЖЕННЯ"
37680
37681 #. type: textblock
37682 #: ../src/guestfs.pod:281
37683 msgid ""
37684 "It's often the case that you want to write a file or files to the disk image."
37685 msgstr ""
37686
37687 #. type: textblock
37688 #: ../src/guestfs.pod:284
37689 msgid ""
37690 "To write a small file with fixed content, use L</guestfs_write>.  To create "
37691 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
37692 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
37693 "of other functions for creating test files, for example L</guestfs_fill> and "
37694 "L</guestfs_fill_pattern>."
37695 msgstr ""
37696
37697 #. type: textblock
37698 #: ../src/guestfs.pod:290
37699 msgid ""
37700 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
37701 "file content or size (even files larger than 4 GB)."
37702 msgstr ""
37703
37704 #. type: textblock
37705 #: ../src/guestfs.pod:293
37706 msgid ""
37707 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
37708 msgstr ""
37709
37710 #. type: textblock
37711 #: ../src/guestfs.pod:295
37712 msgid ""
37713 "However the fastest way to upload I<large numbers of arbitrary files> is to "
37714 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
37715 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
37716 "in a predictable way (eg. adding it last after all other drives) then you "
37717 "can get the device name from L</guestfs_list_devices> and mount it directly "
37718 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
37719 "portable between kernel versions, and they don't support labels or UUIDs.  "
37720 "If you want to pre-build an image or you need to mount it using a label or "
37721 "UUID, use an ISO image instead."
37722 msgstr ""
37723
37724 #. type: =head2
37725 #: ../src/guestfs.pod:306
37726 msgid "COPYING"
37727 msgstr "КОПІЮВАННЯ"
37728
37729 #. type: textblock
37730 #: ../src/guestfs.pod:308
37731 msgid ""
37732 "There are various different commands for copying between files and devices "
37733 "and in and out of the guest filesystem.  These are summarised in the table "
37734 "below."
37735 msgstr ""
37736
37737 #. type: =item
37738 #: ../src/guestfs.pod:314
37739 msgid "B<file> to B<file>"
37740 msgstr "B<файл> у B<файл>"
37741
37742 #. type: textblock
37743 #: ../src/guestfs.pod:316
37744 msgid ""
37745 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
37746 "directories recursively."
37747 msgstr ""
37748
37749 #. type: textblock
37750 #: ../src/guestfs.pod:319
37751 msgid ""
37752 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
37753 msgstr ""
37754
37755 #. type: =item
37756 #: ../src/guestfs.pod:322
37757 msgid "B<file> to B<device>"
37758 msgstr ""
37759
37760 #. type: =item
37761 #: ../src/guestfs.pod:324
37762 msgid "B<device> to B<file>"
37763 msgstr ""
37764
37765 #. type: =item
37766 #: ../src/guestfs.pod:326
37767 msgid "B<device> to B<device>"
37768 msgstr ""
37769
37770 #. type: textblock
37771 #: ../src/guestfs.pod:328
37772 msgid ""
37773 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
37774 "guestfs_copy_device_to_device>."
37775 msgstr ""
37776
37777 #. type: textblock
37778 #: ../src/guestfs.pod:331
37779 msgid "Example: duplicate the contents of an LV:"
37780 msgstr ""
37781
37782 #. type: verbatim
37783 #: ../src/guestfs.pod:333
37784 #, no-wrap
37785 msgid ""
37786 " guestfs_copy_device_to_device (g,\n"
37787 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
37788 "         /* -1 marks the end of the list of optional parameters */\n"
37789 "         -1);\n"
37790 "\n"
37791 msgstr ""
37792
37793 #. type: textblock
37794 #: ../src/guestfs.pod:338
37795 msgid ""
37796 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
37797 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
37798 "optional C<size> parameter:"
37799 msgstr ""
37800
37801 #. type: verbatim
37802 #: ../src/guestfs.pod:342
37803 #, no-wrap
37804 msgid ""
37805 " guestfs_copy_device_to_device (g,\n"
37806 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
37807 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
37808 "         -1);\n"
37809 "\n"
37810 msgstr ""
37811
37812 #. type: =item
37813 #: ../src/guestfs.pod:347
37814 msgid "B<file on the host> to B<file or device>"
37815 msgstr ""
37816
37817 #. type: textblock
37818 #: ../src/guestfs.pod:349
37819 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
37820 msgstr ""
37821
37822 #. type: =item
37823 #: ../src/guestfs.pod:351
37824 msgid "B<file or device> to B<file on the host>"
37825 msgstr ""
37826
37827 #. type: textblock
37828 #: ../src/guestfs.pod:353
37829 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
37830 msgstr ""
37831
37832 #. type: =head2
37833 #: ../src/guestfs.pod:357
37834 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
37835 msgstr ""
37836
37837 #. type: textblock
37838 #: ../src/guestfs.pod:359
37839 msgid ""
37840 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
37841 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
37842 "appears you can only upload and download to files.  However many Un*x-like "
37843 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
37844 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
37845 "and arbitrary file descriptor N."
37846 msgstr ""
37847
37848 #. type: textblock
37849 #: ../src/guestfs.pod:367
37850 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
37851 msgstr ""
37852
37853 #. type: verbatim
37854 #: ../src/guestfs.pod:370
37855 #, no-wrap
37856 msgid ""
37857 " guestfs_download (g, filename, \"/dev/stdout\");\n"
37858 "\n"
37859 msgstr ""
37860 " guestfs_download (g, filename, \"/dev/stdout\");\n"
37861 "\n"
37862
37863 #. type: textblock
37864 #: ../src/guestfs.pod:372
37865 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
37866 msgstr ""
37867
37868 #. type: verbatim
37869 #: ../src/guestfs.pod:374
37870 #, no-wrap
37871 msgid ""
37872 " char devfd[64];\n"
37873 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
37874 " guestfs_tar_out (g, \"/\", devfd);\n"
37875 "\n"
37876 msgstr ""
37877 " char devfd[64];\n"
37878 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
37879 " guestfs_tar_out (g, \"/\", devfd);\n"
37880 "\n"
37881
37882 #. type: =head2
37883 #: ../src/guestfs.pod:378
37884 msgid "LISTING FILES"
37885 msgstr "СПИСКИ ФАЙЛІВ"
37886
37887 #. type: textblock
37888 #: ../src/guestfs.pod:380
37889 msgid ""
37890 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
37891 "L<guestfish(1)>-equivalent command C<ll>)."
37892 msgstr ""
37893
37894 #. type: textblock
37895 #: ../src/guestfs.pod:383
37896 msgid ""
37897 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
37898 "programs, as a flat list of strings."
37899 msgstr ""
37900
37901 #. type: textblock
37902 #: ../src/guestfs.pod:386
37903 msgid ""
37904 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
37905 "directory, plus additional information about each one.  It is more "
37906 "equivalent to using the L<readdir(3)> call on a local filesystem."
37907 msgstr ""
37908
37909 #. type: textblock
37910 #: ../src/guestfs.pod:390
37911 msgid ""
37912 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
37913 msgstr ""
37914
37915 #. type: =head2
37916 #: ../src/guestfs.pod:393
37917 msgid "RUNNING COMMANDS"
37918 msgstr "ВИКОНАННЯ КОМАНД"
37919
37920 #. type: textblock
37921 #: ../src/guestfs.pod:395
37922 msgid ""
37923 "Although libguestfs is primarily an API for manipulating files inside guest "
37924 "images, we also provide some limited facilities for running commands inside "
37925 "guests."
37926 msgstr ""
37927
37928 #. type: textblock
37929 #: ../src/guestfs.pod:399
37930 msgid "There are many limitations to this:"
37931 msgstr ""
37932
37933 #. type: textblock
37934 #: ../src/guestfs.pod:405
37935 msgid ""
37936 "The kernel version that the command runs under will be different from what "
37937 "it expects."
37938 msgstr ""
37939
37940 #. type: textblock
37941 #: ../src/guestfs.pod:410
37942 msgid ""
37943 "If the command needs to communicate with daemons, then most likely they "
37944 "won't be running."
37945 msgstr ""
37946
37947 #. type: textblock
37948 #: ../src/guestfs.pod:415
37949 msgid "The command will be running in limited memory."
37950 msgstr ""
37951
37952 #. type: textblock
37953 #: ../src/guestfs.pod:419
37954 msgid ""
37955 "The network may not be available unless you enable it (see L</"
37956 "guestfs_set_network>)."
37957 msgstr ""
37958
37959 #. type: textblock
37960 #: ../src/guestfs.pod:424
37961 msgid "Only supports Linux guests (not Windows, BSD, etc)."
37962 msgstr ""
37963
37964 #. type: textblock
37965 #: ../src/guestfs.pod:428
37966 msgid ""
37967 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
37968 msgstr ""
37969
37970 #. type: textblock
37971 #: ../src/guestfs.pod:433
37972 msgid ""
37973 "For SELinux guests, you may need to enable SELinux and load policy first.  "
37974 "See L</SELINUX> in this manpage."
37975 msgstr ""
37976
37977 #. type: textblock
37978 #: ../src/guestfs.pod:438
37979 msgid ""
37980 "I<Security:> It is not safe to run commands from untrusted, possibly "
37981 "malicious guests.  These commands may attempt to exploit your program by "
37982 "sending unexpected output.  They could also try to exploit the Linux kernel "
37983 "or qemu provided by the libguestfs appliance.  They could use the network "
37984 "provided by the libguestfs appliance to bypass ordinary network partitions "
37985 "and firewalls.  They could use the elevated privileges or different SELinux "
37986 "context of your program to their advantage."
37987 msgstr ""
37988
37989 #. type: textblock
37990 #: ../src/guestfs.pod:447
37991 msgid ""
37992 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
37993 "(a script which runs when the guest next boots normally), and to have this "
37994 "script run the commands you want in the normal context of the running guest, "
37995 "network security and so on.  For information about other security issues, "
37996 "see L</SECURITY>."
37997 msgstr ""
37998
37999 #. type: textblock
38000 #: ../src/guestfs.pod:455
38001 msgid ""
38002 "The two main API calls to run commands are L</guestfs_command> and L</"
38003 "guestfs_sh> (there are also variations)."
38004 msgstr ""
38005
38006 #. type: textblock
38007 #: ../src/guestfs.pod:458
38008 msgid ""
38009 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
38010 "shell globs, redirections, etc will work."
38011 msgstr ""
38012
38013 #. type: =head2
38014 #: ../src/guestfs.pod:461
38015 msgid "CONFIGURATION FILES"
38016 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
38017
38018 #. type: textblock
38019 #: ../src/guestfs.pod:463
38020 msgid ""
38021 "To read and write configuration files in Linux guest filesystems, we "
38022 "strongly recommend using Augeas.  For example, Augeas understands how to "
38023 "read and write, say, a Linux shadow password file or X.org configuration "
38024 "file, and so avoids you having to write that code."
38025 msgstr ""
38026
38027 #. type: textblock
38028 #: ../src/guestfs.pod:468
38029 msgid ""
38030 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
38031 "document Augeas itself here because there is excellent documentation on the "
38032 "L<http://augeas.net/> website."
38033 msgstr ""
38034
38035 #. type: textblock
38036 #: ../src/guestfs.pod:472
38037 msgid ""
38038 "If you don't want to use Augeas (you fool!) then try calling L</"
38039 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
38040 "over."
38041 msgstr ""
38042
38043 #. type: =head2
38044 #: ../src/guestfs.pod:476
38045 msgid "SELINUX"
38046 msgstr "SELINUX"
38047
38048 #. type: textblock
38049 #: ../src/guestfs.pod:478
38050 msgid ""
38051 "We support SELinux guests.  To ensure that labeling happens correctly in "
38052 "SELinux guests, you need to enable SELinux and load the guest's policy:"
38053 msgstr ""
38054
38055 #. type: textblock
38056 #: ../src/guestfs.pod:486
38057 msgid "Before launching, do:"
38058 msgstr ""
38059
38060 #. type: verbatim
38061 #: ../src/guestfs.pod:488
38062 #, no-wrap
38063 msgid ""
38064 " guestfs_set_selinux (g, 1);\n"
38065 "\n"
38066 msgstr ""
38067 " guestfs_set_selinux (g, 1);\n"
38068 "\n"
38069
38070 #. type: textblock
38071 #: ../src/guestfs.pod:492
38072 msgid ""
38073 "After mounting the guest's filesystem(s), load the policy.  This is best "
38074 "done by running the L<load_policy(8)> command in the guest itself:"
38075 msgstr ""
38076
38077 #. type: verbatim
38078 #: ../src/guestfs.pod:496
38079 #, no-wrap
38080 msgid ""
38081 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
38082 "\n"
38083 msgstr ""
38084 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
38085 "\n"
38086
38087 #. type: textblock
38088 #: ../src/guestfs.pod:498
38089 msgid ""
38090 "(Older versions of C<load_policy> require you to specify the name of the "
38091 "policy file)."
38092 msgstr ""
38093
38094 #. type: textblock
38095 #: ../src/guestfs.pod:503
38096 msgid ""
38097 "Optionally, set the security context for the API.  The correct security "
38098 "context to use can only be known by inspecting the guest.  As an example:"
38099 msgstr ""
38100
38101 #. type: verbatim
38102 #: ../src/guestfs.pod:507
38103 #, no-wrap
38104 msgid ""
38105 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
38106 "\n"
38107 msgstr ""
38108 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
38109 "\n"
38110
38111 #. type: textblock
38112 #: ../src/guestfs.pod:511
38113 msgid "This will work for running commands and editing existing files."
38114 msgstr ""
38115
38116 #. type: textblock
38117 #: ../src/guestfs.pod:513
38118 msgid ""
38119 "When new files are created, you may need to label them explicitly, for "
38120 "example by running the external command C<restorecon pathname>."
38121 msgstr ""
38122
38123 #. type: =head2
38124 #: ../src/guestfs.pod:517
38125 msgid "UMASK"
38126 msgstr "UMASK"
38127
38128 #. type: textblock
38129 #: ../src/guestfs.pod:519
38130 msgid ""
38131 "Certain calls are affected by the current file mode creation mask (the "
38132 "\"umask\").  In particular ones which create files or directories, such as "
38133 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
38134 "either the default mode that the file is created with or modifies the mode "
38135 "that you supply."
38136 msgstr ""
38137
38138 #. type: textblock
38139 #: ../src/guestfs.pod:525
38140 msgid ""
38141 "The default umask is C<022>, so files are created with modes such as C<0644> "
38142 "and directories with C<0755>."
38143 msgstr ""
38144
38145 #. type: textblock
38146 #: ../src/guestfs.pod:528
38147 msgid ""
38148 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
38149 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
38150 "guestfs_chmod> after creating each file or directory."
38151 msgstr ""
38152
38153 #. type: textblock
38154 #: ../src/guestfs.pod:532
38155 msgid "For more information about umask, see L<umask(2)>."
38156 msgstr ""
38157
38158 #. type: textblock
38159 #: ../src/guestfs.pod:536
38160 msgid ""
38161 "Libguestfs allows you to access Linux guests which have been encrypted using "
38162 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
38163 "standard.  This includes nearly all whole disk encryption systems used by "
38164 "modern Linux guests."
38165 msgstr ""
38166
38167 #. type: textblock
38168 #: ../src/guestfs.pod:542
38169 msgid ""
38170 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
38171 "returns the string C<crypto_LUKS>)."
38172 msgstr ""
38173
38174 #. type: textblock
38175 #: ../src/guestfs.pod:545
38176 msgid ""
38177 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
38178 "will require the passphrase!"
38179 msgstr ""
38180
38181 #. type: textblock
38182 #: ../src/guestfs.pod:548
38183 msgid ""
38184 "Opening a LUKS device creates a new device mapper device called C</dev/"
38185 "mapper/mapname> (where C<mapname> is the string you supply to L</"
38186 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
38187 "from and encrypted to the underlying block device respectively."
38188 msgstr ""
38189
38190 #. type: textblock
38191 #: ../src/guestfs.pod:554
38192 msgid ""
38193 "LVM volume groups on the device can be made visible by calling L</"
38194 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
38195 "(s) can now be mounted in the usual way."
38196 msgstr ""
38197
38198 #. type: textblock
38199 #: ../src/guestfs.pod:558
38200 msgid ""
38201 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
38202 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
38203 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
38204 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
38205 "underlying encrypted block device)."
38206 msgstr ""
38207
38208 #. type: =head2
38209 #: ../src/guestfs.pod:565
38210 msgid "INSPECTION"
38211 msgstr "ПЕРЕВІРКА"
38212
38213 #. type: textblock
38214 #: ../src/guestfs.pod:567
38215 msgid ""
38216 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
38217 "contains operating systems, an install CD or a live CD.  (These APIs used to "
38218 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
38219 "version 1.5.3 the most frequently used part of this library has been "
38220 "rewritten in C and moved into the core code)."
38221 msgstr ""
38222
38223 #. type: textblock
38224 #: ../src/guestfs.pod:574
38225 msgid ""
38226 "Add all disks belonging to the unknown virtual machine and call L</"
38227 "guestfs_launch> in the usual way."
38228 msgstr ""
38229
38230 #. type: textblock
38231 #: ../src/guestfs.pod:577
38232 msgid ""
38233 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
38234 "and certain heuristics, and returns a list of operating systems that were "
38235 "found.  An empty list means none were found.  A single element is the root "
38236 "filesystem of the operating system.  For dual- or multi-boot guests, "
38237 "multiple roots can be returned, each one corresponding to a separate "
38238 "operating system.  (Multi-boot virtual machines are extremely rare in the "
38239 "world of virtualization, but since this scenario can happen, we have built "
38240 "libguestfs to deal with it.)"
38241 msgstr ""
38242
38243 #. type: textblock
38244 #: ../src/guestfs.pod:586
38245 msgid ""
38246 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
38247 "to get additional details about that operating system.  For example, call L</"
38248 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
38249 "Windows and Linux-based operating systems respectively."
38250 msgstr ""
38251
38252 #. type: textblock
38253 #: ../src/guestfs.pod:592
38254 msgid ""
38255 "Un*x-like and Linux-based operating systems usually consist of several "
38256 "filesystems which are mounted at boot time (for example, a separate boot "
38257 "partition mounted on C</boot>).  The inspection rules are able to detect how "
38258 "filesystems correspond to mount points.  Call "
38259 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
38260 "hash table like this example:"
38261 msgstr ""
38262
38263 #. type: verbatim
38264 #: ../src/guestfs.pod:599
38265 #, no-wrap
38266 msgid ""
38267 " /boot => /dev/sda1\n"
38268 " /     => /dev/vg_guest/lv_root\n"
38269 " /usr  => /dev/vg_guest/lv_usr\n"
38270 "\n"
38271 msgstr ""
38272 " /boot => /dev/sda1\n"
38273 " /     => /dev/vg_guest/lv_root\n"
38274 " /usr  => /dev/vg_guest/lv_usr\n"
38275 "\n"
38276
38277 #. type: textblock
38278 #: ../src/guestfs.pod:603
38279 msgid ""
38280 "The caller can then make calls to L</guestfs_mount_options> to mount the "
38281 "filesystems as suggested."
38282 msgstr ""
38283
38284 #. type: textblock
38285 #: ../src/guestfs.pod:606
38286 msgid ""
38287 "Be careful to mount filesystems in the right order (eg. C</> before C</"
38288 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
38289 msgstr ""
38290
38291 #. type: textblock
38292 #: ../src/guestfs.pod:610
38293 msgid ""
38294 "Inspection currently only works for some common operating systems.  "
38295 "Contributors are welcome to send patches for other operating systems that we "
38296 "currently cannot detect."
38297 msgstr ""
38298
38299 #. type: textblock
38300 #: ../src/guestfs.pod:614
38301 msgid ""
38302 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
38303 "for more details.  The L</guestfs_inspect_os> function just ignores any "
38304 "encrypted devices."
38305 msgstr ""
38306
38307 #. type: textblock
38308 #: ../src/guestfs.pod:618
38309 msgid ""
38310 "A note on the implementation: The call L</guestfs_inspect_os> performs "
38311 "inspection and caches the results in the guest handle.  Subsequent calls to "
38312 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
38313 "read the disks.  If you change the content of the guest disks, you can redo "
38314 "inspection by calling L</guestfs_inspect_os> again.  (L</"
38315 "guestfs_inspect_list_applications> works a little differently from the other "
38316 "calls and does read the disks.  See documentation for that function for "
38317 "details)."
38318 msgstr ""
38319
38320 #. type: =head3
38321 #: ../src/guestfs.pod:627
38322 msgid "INSPECTING INSTALL DISKS"
38323 msgstr ""
38324
38325 #. type: textblock
38326 #: ../src/guestfs.pod:629
38327 msgid ""
38328 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
38329 "CDs and more."
38330 msgstr ""
38331
38332 #. type: textblock
38333 #: ../src/guestfs.pod:632
38334 msgid ""
38335 "Call L</guestfs_inspect_get_format> to return the format of the operating "
38336 "system, which currently can be C<installed> (a regular operating system) or "
38337 "C<installer> (some sort of install disk)."
38338 msgstr ""
38339
38340 #. type: textblock
38341 #: ../src/guestfs.pod:636
38342 msgid ""
38343 "Further information is available about the operating system that can be "
38344 "installed using the regular inspection APIs like L</"
38345 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
38346 msgstr ""
38347
38348 #. type: textblock
38349 #: ../src/guestfs.pod:641
38350 msgid ""
38351 "Some additional information specific to installer disks is also available "
38352 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
38353 "guestfs_inspect_is_multipart> calls."
38354 msgstr ""
38355
38356 #. type: =head2
38357 #: ../src/guestfs.pod:646
38358 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
38359 msgstr ""
38360
38361 #. type: textblock
38362 #: ../src/guestfs.pod:648
38363 msgid ""
38364 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
38365 "ntfs-3g.org/> driver."
38366 msgstr ""
38367
38368 #. type: =head3
38369 #: ../src/guestfs.pod:651
38370 msgid "DRIVE LETTERS AND PATHS"
38371 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
38372
38373 #. type: textblock
38374 #: ../src/guestfs.pod:653
38375 msgid ""
38376 "DOS and Windows still use drive letters, and the filesystems are always "
38377 "treated as case insensitive by Windows itself, and therefore you might find "
38378 "a Windows configuration file referring to a path like C<c:\\windows"
38379 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
38380 "might be referred to as C</WINDOWS/System32>."
38381 msgstr ""
38382
38383 #. type: textblock
38384 #: ../src/guestfs.pod:659
38385 msgid ""
38386 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
38387 "L</guestfs_inspect_get_drive_mappings>)"
38388 msgstr ""
38389
38390 #. type: textblock
38391 #: ../src/guestfs.pod:662
38392 msgid ""
38393 "Dealing with separator characters (backslash vs forward slash) is outside "
38394 "the scope of libguestfs, but usually a simple character replacement will "
38395 "work."
38396 msgstr ""
38397
38398 #. type: textblock
38399 #: ../src/guestfs.pod:666
38400 msgid ""
38401 "To resolve the case insensitivity of paths, call L</"
38402 "guestfs_case_sensitive_path>."
38403 msgstr ""
38404
38405 #. type: =head3
38406 #: ../src/guestfs.pod:669
38407 msgid "ACCESSING THE WINDOWS REGISTRY"
38408 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
38409
38410 #. type: textblock
38411 #: ../src/guestfs.pod:671
38412 msgid ""
38413 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
38414 "files, through the library C<hivex> which is part of the libguestfs project "
38415 "although ships as a separate tarball.  You have to locate and download the "
38416 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
38417 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
38418 "reg(1)> for more help on this issue."
38419 msgstr ""
38420
38421 #. type: =head3
38422 #: ../src/guestfs.pod:679
38423 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
38424 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
38425
38426 #. type: textblock
38427 #: ../src/guestfs.pod:681
38428 msgid ""
38429 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
38430 "provide something which looks like a Linux symlink.  The way it tries to do "
38431 "the rewriting is described here:"
38432 msgstr ""
38433
38434 #. type: textblock
38435 #: ../src/guestfs.pod:685
38436 msgid ""
38437 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
38438 "symbolic-links/>"
38439 msgstr ""
38440 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
38441 "symbolic-links/>"
38442
38443 #. type: textblock
38444 #: ../src/guestfs.pod:687
38445 msgid ""
38446 "The essential problem is that ntfs-3g simply does not have enough "
38447 "information to do a correct job.  NTFS links can contain drive letters and "
38448 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
38449 "It is almost certainly the case that libguestfs callers should ignore what "
38450 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
38451 msgstr ""
38452
38453 #. type: textblock
38454 #: ../src/guestfs.pod:694
38455 msgid ""
38456 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
38457 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
38458 "attribute, and read the raw reparse data from that (you can find the format "
38459 "documented in various places around the web)."
38460 msgstr ""
38461
38462 #. type: =head3
38463 #: ../src/guestfs.pod:699
38464 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
38465 msgstr ""
38466
38467 #. type: textblock
38468 #: ../src/guestfs.pod:701
38469 msgid ""
38470 "There are other useful extended attributes that can be read from ntfs-3g "
38471 "filesystems (using L</guestfs_getxattr>).  See:"
38472 msgstr ""
38473
38474 #. type: textblock
38475 #: ../src/guestfs.pod:704
38476 msgid ""
38477 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
38478 msgstr ""
38479 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
38480
38481 #. type: =head2
38482 #: ../src/guestfs.pod:706
38483 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
38484 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
38485
38486 #. type: textblock
38487 #: ../src/guestfs.pod:708
38488 msgid ""
38489 "Although we don't want to discourage you from using the C API, we will "
38490 "mention here that the same API is also available in other languages."
38491 msgstr ""
38492
38493 #. type: textblock
38494 #: ../src/guestfs.pod:711
38495 msgid ""
38496 "The API is broadly identical in all supported languages.  This means that "
38497 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
38498 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
38499 "OCaml.  In other words, a straightforward, predictable isomorphism between "
38500 "each language."
38501 msgstr ""
38502
38503 #. type: textblock
38504 #: ../src/guestfs.pod:717
38505 msgid ""
38506 "Error messages are automatically transformed into exceptions if the language "
38507 "supports it."
38508 msgstr ""
38509
38510 #. type: textblock
38511 #: ../src/guestfs.pod:720
38512 msgid ""
38513 "We don't try to \"object orientify\" parts of the API in OO languages, "
38514 "although contributors are welcome to write higher level APIs above what we "
38515 "provide in their favourite languages if they wish."
38516 msgstr ""
38517
38518 #. type: =item
38519 #: ../src/guestfs.pod:726
38520 msgid "B<C++>"
38521 msgstr "B<C++>"
38522
38523 #. type: textblock
38524 #: ../src/guestfs.pod:728
38525 msgid ""
38526 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
38527 "identical to the C API.  C++ classes and exceptions are not used."
38528 msgstr ""
38529
38530 #. type: =item
38531 #: ../src/guestfs.pod:732
38532 msgid "B<C#>"
38533 msgstr "B<C#>"
38534
38535 #. type: textblock
38536 #: ../src/guestfs.pod:734
38537 msgid ""
38538 "The C# bindings are highly experimental.  Please read the warnings at the "
38539 "top of C<csharp/Libguestfs.cs>."
38540 msgstr ""
38541
38542 #. type: =item
38543 #: ../src/guestfs.pod:737
38544 msgid "B<Erlang>"
38545 msgstr ""
38546
38547 #. type: textblock
38548 #: ../src/guestfs.pod:739
38549 msgid "See L<guestfs-erlang(3)>."
38550 msgstr ""
38551
38552 #. type: =item
38553 #: ../src/guestfs.pod:741
38554 msgid "B<Haskell>"
38555 msgstr "B<Haskell>"
38556
38557 #. type: textblock
38558 #: ../src/guestfs.pod:743
38559 msgid ""
38560 "This is the only language binding that is working but incomplete.  Only "
38561 "calls which return simple integers have been bound in Haskell, and we are "
38562 "looking for help to complete this binding."
38563 msgstr ""
38564
38565 #. type: =item
38566 #: ../src/guestfs.pod:747
38567 msgid "B<Java>"
38568 msgstr "B<Java>"
38569
38570 #. type: textblock
38571 #: ../src/guestfs.pod:749
38572 msgid ""
38573 "Full documentation is contained in the Javadoc which is distributed with "
38574 "libguestfs.  For examples, see L<guestfs-java(3)>."
38575 msgstr ""
38576
38577 #. type: =item
38578 #: ../src/guestfs.pod:752
38579 msgid "B<OCaml>"
38580 msgstr "B<OCaml>"
38581
38582 #. type: textblock
38583 #: ../src/guestfs.pod:754
38584 msgid "See L<guestfs-ocaml(3)>."
38585 msgstr "Див. L<guestfs-ocaml(3)>."
38586
38587 #. type: =item
38588 #: ../src/guestfs.pod:756
38589 msgid "B<Perl>"
38590 msgstr "B<Perl>"
38591
38592 #. type: textblock
38593 #: ../src/guestfs.pod:758
38594 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
38595 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
38596
38597 #. type: =item
38598 #: ../src/guestfs.pod:760
38599 msgid "B<PHP>"
38600 msgstr "B<PHP>"
38601
38602 #. type: textblock
38603 #: ../src/guestfs.pod:762
38604 msgid ""
38605 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
38606 "the php-libguestfs package for your distribution."
38607 msgstr ""
38608
38609 #. type: textblock
38610 #: ../src/guestfs.pod:765
38611 msgid "The PHP binding only works correctly on 64 bit machines."
38612 msgstr ""
38613
38614 #. type: =item
38615 #: ../src/guestfs.pod:767
38616 msgid "B<Python>"
38617 msgstr "B<Python>"
38618
38619 #. type: textblock
38620 #: ../src/guestfs.pod:769
38621 msgid "See L<guestfs-python(3)>."
38622 msgstr "Див. L<guestfs-python(3)>."
38623
38624 #. type: =item
38625 #: ../src/guestfs.pod:771
38626 msgid "B<Ruby>"
38627 msgstr "B<Ruby>"
38628
38629 #. type: textblock
38630 #: ../src/guestfs.pod:773
38631 msgid "See L<guestfs-ruby(3)>."
38632 msgstr "Див. L<guestfs-ruby(3)>."
38633
38634 #. type: =item
38635 #: ../src/guestfs.pod:775
38636 msgid "B<shell scripts>"
38637 msgstr "B<скрипти оболонки>"
38638
38639 #. type: textblock
38640 #: ../src/guestfs.pod:777
38641 msgid "See L<guestfish(1)>."
38642 msgstr "Див. L<guestfish(1)>."
38643
38644 #. type: =head2
38645 #: ../src/guestfs.pod:781
38646 msgid "LIBGUESTFS GOTCHAS"
38647 msgstr ""
38648
38649 #. type: textblock
38650 #: ../src/guestfs.pod:783
38651 msgid ""
38652 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
38653 "system [...] that works in the way it is documented but is counterintuitive "
38654 "and almost invites mistakes.\""
38655 msgstr ""
38656
38657 #. type: textblock
38658 #: ../src/guestfs.pod:787
38659 msgid ""
38660 "Since we developed libguestfs and the associated tools, there are several "
38661 "things we would have designed differently, but are now stuck with for "
38662 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
38663 "release, you can expect these to change.  Beware of them."
38664 msgstr ""
38665
38666 #. type: =item
38667 #: ../src/guestfs.pod:795
38668 msgid "Autosync / forgetting to sync."
38669 msgstr ""
38670
38671 #. type: textblock
38672 #: ../src/guestfs.pod:797
38673 msgid ""
38674 "I<Update:> Autosync is enabled by default for all API users starting from "
38675 "libguestfs 1.5.24.  This section only applies to older versions."
38676 msgstr ""
38677
38678 #. type: textblock
38679 #: ../src/guestfs.pod:800
38680 msgid ""
38681 "When modifying a filesystem from C or another language, you B<must> unmount "
38682 "all filesystems and call L</guestfs_sync> explicitly before you close the "
38683 "libguestfs handle.  You can also call:"
38684 msgstr ""
38685
38686 #. type: verbatim
38687 #: ../src/guestfs.pod:804
38688 #, no-wrap
38689 msgid ""
38690 " guestfs_set_autosync (g, 1);\n"
38691 "\n"
38692 msgstr ""
38693 " guestfs_set_autosync (g, 1);\n"
38694 "\n"
38695
38696 #. type: textblock
38697 #: ../src/guestfs.pod:806
38698 msgid ""
38699 "to have the unmount/sync done automatically for you when the handle 'g' is "
38700 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
38701 msgstr ""
38702
38703 #. type: textblock
38704 #: ../src/guestfs.pod:810
38705 msgid ""
38706 "If you forget to do this, then it is entirely possible that your changes "
38707 "won't be written out, or will be partially written, or (very rarely) that "
38708 "you'll get disk corruption."
38709 msgstr ""
38710
38711 #. type: textblock
38712 #: ../src/guestfs.pod:814
38713 msgid ""
38714 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
38715 "guestfish scripts that forget to sync will work just fine, which can make "
38716 "this very puzzling if you are trying to debug a problem."
38717 msgstr ""
38718
38719 #. type: =item
38720 #: ../src/guestfs.pod:818
38721 msgid "Mount option C<-o sync> should not be the default."
38722 msgstr ""
38723
38724 #. type: textblock
38725 #: ../src/guestfs.pod:820
38726 msgid ""
38727 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
38728 "libguestfs 1.13.16.  This section only applies to older versions."
38729 msgstr ""
38730
38731 #. type: textblock
38732 #: ../src/guestfs.pod:823
38733 msgid ""
38734 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
38735 "However C<-o sync> does not add any reliability benefit, but does have a "
38736 "very large performance impact."
38737 msgstr ""
38738
38739 #. type: textblock
38740 #: ../src/guestfs.pod:827
38741 msgid ""
38742 "The work around is to use L</guestfs_mount_options> and set the mount "
38743 "options that you actually want to use."
38744 msgstr ""
38745
38746 #. type: =item
38747 #: ../src/guestfs.pod:830
38748 msgid "Read-only should be the default."
38749 msgstr ""
38750
38751 #. type: textblock
38752 #: ../src/guestfs.pod:832
38753 msgid ""
38754 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
38755 "specify I<--rw> if you want to make changes to the image."
38756 msgstr ""
38757
38758 #. type: textblock
38759 #: ../src/guestfs.pod:835
38760 msgid "This would reduce the potential to corrupt live VM images."
38761 msgstr ""
38762
38763 #. type: textblock
38764 #: ../src/guestfs.pod:837
38765 msgid ""
38766 "Note that many filesystems change the disk when you just mount and unmount, "
38767 "even if you didn't perform any writes.  You need to use L</"
38768 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
38769 msgstr ""
38770
38771 #. type: =item
38772 #: ../src/guestfs.pod:841
38773 msgid "guestfish command line is hard to use."
38774 msgstr ""
38775
38776 #. type: textblock
38777 #: ../src/guestfs.pod:843
38778 msgid ""
38779 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
38780 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
38781 "exist, so it fails.  In earlier versions of guestfish the error message was "
38782 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
38783 "we should have used C<guestfish -c command> to run commands."
38784 msgstr ""
38785
38786 #. type: =item
38787 #: ../src/guestfs.pod:850
38788 msgid "guestfish megabyte modifiers don't work right on all commands"
38789 msgstr ""
38790
38791 #. type: textblock
38792 #: ../src/guestfs.pod:852
38793 msgid ""
38794 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
38795 "other modifiers).  What guestfish actually does is to multiply the number "
38796 "part by the modifier part and pass the result to the C API.  However this "
38797 "doesn't work for a few APIs which aren't expecting bytes, but are already "
38798 "expecting some other unit (eg. megabytes)."
38799 msgstr ""
38800
38801 #. type: textblock
38802 #: ../src/guestfs.pod:859
38803 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
38804 msgstr ""
38805
38806 #. type: verbatim
38807 #: ../src/guestfs.pod:861
38808 #, no-wrap
38809 msgid ""
38810 " lvcreate LV VG 100M\n"
38811 "\n"
38812 msgstr ""
38813 " lvcreate LV VG 100M\n"
38814 "\n"
38815
38816 #. type: textblock
38817 #: ../src/guestfs.pod:863
38818 msgid ""
38819 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
38820 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
38821 "megabytes * megabytes) logical volume.  The error message you get from this "
38822 "is also a little obscure."
38823 msgstr ""
38824
38825 #. type: textblock
38826 #: ../src/guestfs.pod:868
38827 msgid ""
38828 "This could be fixed in the generator by specially marking parameters and "
38829 "return values which take bytes or other units."
38830 msgstr ""
38831
38832 #. type: =item
38833 #: ../src/guestfs.pod:871
38834 msgid "Ambiguity between devices and paths"
38835 msgstr ""
38836
38837 #. type: textblock
38838 #: ../src/guestfs.pod:873
38839 msgid ""
38840 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
38841 "sdb2>) and a similar pathname.  A file might just happen to be called "
38842 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
38843 msgstr ""
38844
38845 #. type: textblock
38846 #: ../src/guestfs.pod:878
38847 msgid ""
38848 "In the current API we usually resolve this ambiguity by having two separate "
38849 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
38850 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
38851 "detecting if the path supplied begins with C</dev/>."
38852 msgstr ""
38853
38854 #. type: textblock
38855 #: ../src/guestfs.pod:884
38856 msgid ""
38857 "To avoid both the ambiguity and the need to duplicate some calls, we could "
38858 "make paths/devices into structured names.  One way to do this would be to "
38859 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
38860 "aspect of grub.  Another way would be to use a structured type, equivalent "
38861 "to this OCaml type:"
38862 msgstr ""
38863
38864 #. type: verbatim
38865 #: ../src/guestfs.pod:890
38866 #, no-wrap
38867 msgid ""
38868 " type path = Path of string | Device of int | Partition of int * int\n"
38869 "\n"
38870 msgstr ""
38871
38872 #. type: textblock
38873 #: ../src/guestfs.pod:892
38874 msgid "which would allow you to pass arguments like:"
38875 msgstr ""
38876
38877 #. type: verbatim
38878 #: ../src/guestfs.pod:894
38879 #, no-wrap
38880 msgid ""
38881 " Path \"/foo/bar\"\n"
38882 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
38883 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
38884 " Path \"/dev/sdb2\"    (* not a device *)\n"
38885 "\n"
38886 msgstr ""
38887
38888 #. type: textblock
38889 #: ../src/guestfs.pod:899
38890 msgid ""
38891 "As you can see there are still problems to resolve even with this "
38892 "representation.  Also consider how it might work in guestfish."
38893 msgstr ""
38894
38895 #. type: =head2
38896 #: ../src/guestfs.pod:904
38897 msgid "KEYS AND PASSPHRASES"
38898 msgstr "КЛЮЧІ І ПАРОЛІ"
38899
38900 #. type: textblock
38901 #: ../src/guestfs.pod:906
38902 msgid ""
38903 "Certain libguestfs calls take a parameter that contains sensitive key "
38904 "material, passed in as a C string."
38905 msgstr ""
38906
38907 #. type: textblock
38908 #: ../src/guestfs.pod:909
38909 msgid ""
38910 "In the future we would hope to change the libguestfs implementation so that "
38911 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
38912 "swap.  However this is I<not> done at the moment, because of the complexity "
38913 "of such an implementation."
38914 msgstr ""
38915
38916 #. type: textblock
38917 #: ../src/guestfs.pod:914
38918 msgid ""
38919 "Therefore you should be aware that any key parameter you pass to libguestfs "
38920 "might end up being written out to the swap partition.  If this is a concern, "
38921 "scrub the swap partition or don't use libguestfs on encrypted devices."
38922 msgstr ""
38923
38924 #. type: =head2
38925 #: ../src/guestfs.pod:919
38926 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
38927 msgstr ""
38928
38929 #. type: textblock
38930 #: ../src/guestfs.pod:921
38931 msgid ""
38932 "All high-level libguestfs actions are synchronous.  If you want to use "
38933 "libguestfs asynchronously then you must create a thread."
38934 msgstr ""
38935
38936 #. type: textblock
38937 #: ../src/guestfs.pod:924
38938 msgid ""
38939 "Only use the handle from a single thread.  Either use the handle exclusively "
38940 "from one thread, or provide your own mutex so that two threads cannot issue "
38941 "calls on the same handle at the same time."
38942 msgstr ""
38943
38944 #. type: textblock
38945 #: ../src/guestfs.pod:928
38946 msgid ""
38947 "See the graphical program guestfs-browser for one possible architecture for "
38948 "multithreaded programs using libvirt and libguestfs."
38949 msgstr ""
38950
38951 #. type: =head2
38952 #: ../src/guestfs.pod:931
38953 msgid "PATH"
38954 msgstr "ШЛЯХ"
38955
38956 #. type: textblock
38957 #: ../src/guestfs.pod:933
38958 msgid ""
38959 "Libguestfs needs a supermin appliance, which it finds by looking along an "
38960 "internal path."
38961 msgstr ""
38962
38963 #. type: textblock
38964 #: ../src/guestfs.pod:936
38965 msgid ""
38966 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
38967 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
38968 msgstr ""
38969
38970 #. type: textblock
38971 #: ../src/guestfs.pod:939
38972 msgid ""
38973 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
38974 "to change the directories that libguestfs will search in.  The value is a "
38975 "colon-separated list of paths.  The current directory is I<not> searched "
38976 "unless the path contains an empty element or C<.>.  For example "
38977 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
38978 "then C</usr/lib/guestfs>."
38979 msgstr ""
38980
38981 #. type: =head2
38982 #: ../src/guestfs.pod:946
38983 msgid "QEMU WRAPPERS"
38984 msgstr ""
38985
38986 #. type: textblock
38987 #: ../src/guestfs.pod:948
38988 msgid ""
38989 "If you want to compile your own qemu, run qemu from a non-standard location, "
38990 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
38991 "around qemu."
38992 msgstr ""
38993
38994 #. type: textblock
38995 #: ../src/guestfs.pod:952
38996 msgid ""
38997 "There is one important rule to remember: you I<must C<exec qemu>> as the "
38998 "last command in the shell script (so that qemu replaces the shell and "
38999 "becomes the direct child of the libguestfs-using program).  If you don't do "
39000 "this, then the qemu process won't be cleaned up correctly."
39001 msgstr ""
39002
39003 #. type: textblock
39004 #: ../src/guestfs.pod:957
39005 msgid ""
39006 "Here is an example of a wrapper, where I have built my own copy of qemu from "
39007 "source:"
39008 msgstr ""
39009
39010 #. type: verbatim
39011 #: ../src/guestfs.pod:960
39012 #, no-wrap
39013 msgid ""
39014 " #!/bin/sh -\n"
39015 " qemudir=/home/rjones/d/qemu\n"
39016 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
39017 "\n"
39018 msgstr ""
39019 " #!/bin/sh -\n"
39020 " qemudir=/home/rjones/d/qemu\n"
39021 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
39022 "\n"
39023
39024 #. type: textblock
39025 #: ../src/guestfs.pod:964
39026 msgid ""
39027 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
39028 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
39029 "example:"
39030 msgstr ""
39031
39032 #. type: verbatim
39033 #: ../src/guestfs.pod:968
39034 #, no-wrap
39035 msgid ""
39036 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
39037 "\n"
39038 msgstr ""
39039 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
39040 "\n"
39041
39042 #. type: textblock
39043 #: ../src/guestfs.pod:970
39044 msgid ""
39045 "Note that libguestfs also calls qemu with the -help and -version options in "
39046 "order to determine features."
39047 msgstr ""
39048
39049 #. type: textblock
39050 #: ../src/guestfs.pod:973
39051 msgid ""
39052 "Wrappers can also be used to edit the options passed to qemu.  In the "
39053 "following example, the C<-machine ...> option (C<-machine> and the following "
39054 "argument) are removed from the command line and replaced with C<-machine pc,"
39055 "accel=tcg>.  The while loop iterates over the options until it finds the "
39056 "right one to remove, putting the remaining options into the C<args> array."
39057 msgstr ""
39058
39059 #. type: verbatim
39060 #: ../src/guestfs.pod:982
39061 #, no-wrap
39062 msgid ""
39063 " i=0\n"
39064 " while [ $# -gt 0 ]; do\n"
39065 "     case \"$1\" in\n"
39066 "     -machine)\n"
39067 "         shift 2;;\n"
39068 "     *)\n"
39069 "         args[i]=\"$1\"\n"
39070 "         (( i++ ))\n"
39071 "         shift ;;\n"
39072 "     esac\n"
39073 " done\n"
39074 " \n"
39075 msgstr ""
39076
39077 #. type: verbatim
39078 #: ../src/guestfs.pod:994
39079 #, no-wrap
39080 msgid ""
39081 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
39082 "\n"
39083 msgstr ""
39084
39085 #. type: =head2
39086 #: ../src/guestfs.pod:996
39087 msgid "ATTACHING TO RUNNING DAEMONS"
39088 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
39089
39090 #. type: textblock
39091 #: ../src/guestfs.pod:998
39092 msgid ""
39093 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
39094 "babies.  Use with caution."
39095 msgstr ""
39096
39097 #. type: textblock
39098 #: ../src/guestfs.pod:1001
39099 msgid ""
39100 "I<Note (2):> This section explains how to attach to a running daemon from a "
39101 "low level perspective.  For most users, simply using virt tools such as "
39102 "L<guestfish(1)> with the I<--live> option will \"just work\"."
39103 msgstr ""
39104
39105 #. type: =head3
39106 #: ../src/guestfs.pod:1005
39107 msgid "Using guestfs_set_attach_method"
39108 msgstr "За допомогою guestfs_set_attach_method"
39109
39110 #. type: textblock
39111 #: ../src/guestfs.pod:1007
39112 msgid ""
39113 "By calling L</guestfs_set_attach_method> you can change how the library "
39114 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
39115 "ARCHITECTURE> for some background)."
39116 msgstr ""
39117
39118 #. type: textblock
39119 #: ../src/guestfs.pod:1011
39120 msgid ""
39121 "The normal attach method is C<appliance>, where a small appliance is created "
39122 "containing the daemon, and then the library connects to this."
39123 msgstr ""
39124
39125 #. type: textblock
39126 #: ../src/guestfs.pod:1014
39127 msgid ""
39128 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
39129 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
39130 "daemon over the Unix domain socket."
39131 msgstr ""
39132
39133 #. type: textblock
39134 #: ../src/guestfs.pod:1018
39135 msgid ""
39136 "The normal use for this is to connect to a running virtual machine that "
39137 "contains a C<guestfsd> daemon, and send commands so you can read and write "
39138 "files inside the live virtual machine."
39139 msgstr ""
39140
39141 #. type: =head3
39142 #: ../src/guestfs.pod:1022
39143 msgid "Using guestfs_add_domain with live flag"
39144 msgstr "За допомогою guestfs_add_domain з прапорцем live"
39145
39146 #. type: textblock
39147 #: ../src/guestfs.pod:1024
39148 msgid ""
39149 "L</guestfs_add_domain> provides some help for getting the correct attach "
39150 "method.  If you pass the C<live> option to this function, then (if the "
39151 "virtual machine is running) it will examine the libvirt XML looking for a "
39152 "virtio-serial channel to connect to:"
39153 msgstr ""
39154
39155 #. type: verbatim
39156 #: ../src/guestfs.pod:1030
39157 #, no-wrap
39158 msgid ""
39159 " <domain>\n"
39160 "   ...\n"
39161 "   <devices>\n"
39162 "     ...\n"
39163 "     <channel type='unix'>\n"
39164 "       <source mode='bind' path='/path/to/socket'/>\n"
39165 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
39166 "     </channel>\n"
39167 "     ...\n"
39168 "   </devices>\n"
39169 " </domain>\n"
39170 "\n"
39171 msgstr ""
39172 " <domain>\n"
39173 "   ...\n"
39174 "   <devices>\n"
39175 "     ...\n"
39176 "     <channel type='unix'>\n"
39177 "       <source mode='bind' path='/path/to/socket'/>\n"
39178 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
39179 "     </channel>\n"
39180 "     ...\n"
39181 "   </devices>\n"
39182 " </domain>\n"
39183 "\n"
39184
39185 #. type: textblock
39186 #: ../src/guestfs.pod:1042
39187 msgid ""
39188 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
39189 "method to C<unix:/path/to/socket>."
39190 msgstr ""
39191
39192 #. type: textblock
39193 #: ../src/guestfs.pod:1045
39194 msgid ""
39195 "Some of the libguestfs tools (including guestfish) support a I<--live> "
39196 "option which is passed through to L</guestfs_add_domain> thus allowing you "
39197 "to attach to and modify live virtual machines."
39198 msgstr ""
39199
39200 #. type: textblock
39201 #: ../src/guestfs.pod:1049
39202 msgid ""
39203 "The virtual machine needs to have been set up beforehand so that it has the "
39204 "virtio-serial channel and so that guestfsd is running inside it."
39205 msgstr ""
39206
39207 #. type: =head2
39208 #: ../src/guestfs.pod:1053
39209 msgid "ABI GUARANTEE"
39210 msgstr "ГАРАНТІЯ ЩОДО ABI"
39211
39212 #. type: textblock
39213 #: ../src/guestfs.pod:1055
39214 msgid ""
39215 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
39216 "actions as outlined in this section.  Although we will deprecate some "
39217 "actions, for example if they get replaced by newer calls, we will keep the "
39218 "old actions forever.  This allows you the developer to program in confidence "
39219 "against the libguestfs API."
39220 msgstr ""
39221
39222 #. type: =head2
39223 #: ../src/guestfs.pod:1061
39224 msgid "BLOCK DEVICE NAMING"
39225 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
39226
39227 #. type: textblock
39228 #: ../src/guestfs.pod:1063
39229 msgid ""
39230 "In the kernel there is now quite a profusion of schemata for naming block "
39231 "devices (in this context, by I<block device> I mean a physical or virtual "
39232 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
39233 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
39234 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
39235 "for the old IDE driver (particularly for SATA devices) those devices also "
39236 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
39237 "paravirtualized drivers.  This has created several different naming systems, "
39238 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
39239 msgstr ""
39240
39241 #. type: textblock
39242 #: ../src/guestfs.pod:1075
39243 msgid ""
39244 "As discussed above, libguestfs uses a qemu appliance running an embedded "
39245 "Linux kernel to access block devices.  We can run a variety of appliances "
39246 "based on a variety of Linux kernels."
39247 msgstr ""
39248
39249 #. type: textblock
39250 #: ../src/guestfs.pod:1079
39251 msgid ""
39252 "This causes a problem for libguestfs because many API calls use device or "
39253 "partition names.  Working scripts and the recipe (example) scripts that we "
39254 "make available over the internet could fail if the naming scheme changes."
39255 msgstr ""
39256
39257 #. type: textblock
39258 #: ../src/guestfs.pod:1084
39259 msgid ""
39260 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
39261 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
39262 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
39263 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
39264 msgstr ""
39265
39266 #. type: textblock
39267 #: ../src/guestfs.pod:1090
39268 msgid ""
39269 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
39270 "L</guestfs_list_partitions> and similar calls return the true names of the "
39271 "devices and partitions as known to the appliance."
39272 msgstr ""
39273
39274 #. type: =head3
39275 #: ../src/guestfs.pod:1095
39276 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
39277 msgstr ""
39278
39279 #. type: textblock
39280 #: ../src/guestfs.pod:1097
39281 msgid ""
39282 "Usually this translation is transparent.  However in some (very rare)  cases "
39283 "you may need to know the exact algorithm.  Such cases include where you use "
39284 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
39285 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
39286 msgstr ""
39287
39288 #. type: textblock
39289 #: ../src/guestfs.pod:1103
39290 msgid ""
39291 "The algorithm is applied only to I<parameters> which are known to be either "
39292 "device or partition names.  Return values from functions such as L</"
39293 "guestfs_list_devices> are never changed."
39294 msgstr ""
39295
39296 #. type: textblock
39297 #: ../src/guestfs.pod:1111
39298 msgid "Is the string a parameter which is a device or partition name?"
39299 msgstr ""
39300
39301 #. type: textblock
39302 #: ../src/guestfs.pod:1115
39303 msgid "Does the string begin with C</dev/sd>?"
39304 msgstr "Чи починається рядок з C</dev/sd>?"
39305
39306 #. type: textblock
39307 #: ../src/guestfs.pod:1119
39308 msgid ""
39309 "Does the named device exist? If so, we use that device.  However if I<not> "
39310 "then we continue with this algorithm."
39311 msgstr ""
39312
39313 #. type: textblock
39314 #: ../src/guestfs.pod:1124
39315 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
39316 msgstr ""
39317
39318 #. type: textblock
39319 #: ../src/guestfs.pod:1126
39320 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
39321 msgstr ""
39322
39323 #. type: textblock
39324 #: ../src/guestfs.pod:1128
39325 msgid "If that named device exists, use it.  If not, continue."
39326 msgstr ""
39327
39328 #. type: textblock
39329 #: ../src/guestfs.pod:1132
39330 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
39331 msgstr ""
39332
39333 #. type: textblock
39334 #: ../src/guestfs.pod:1134
39335 msgid "If that named device exists, use it.  If not, return an error."
39336 msgstr ""
39337
39338 #. type: =head3
39339 #: ../src/guestfs.pod:1138
39340 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
39341 msgstr ""
39342
39343 #. type: textblock
39344 #: ../src/guestfs.pod:1140
39345 msgid ""
39346 "Although the standard naming scheme and automatic translation is useful for "
39347 "simple programs and guestfish scripts, for larger programs it is best not to "
39348 "rely on this mechanism."
39349 msgstr ""
39350
39351 #. type: textblock
39352 #: ../src/guestfs.pod:1144
39353 msgid ""
39354 "Where possible for maximum future portability programs using libguestfs "
39355 "should use these future-proof techniques:"
39356 msgstr ""
39357
39358 #. type: textblock
39359 #: ../src/guestfs.pod:1151
39360 msgid ""
39361 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
39362 "device names, and then use those names directly."
39363 msgstr ""
39364
39365 #. type: textblock
39366 #: ../src/guestfs.pod:1154
39367 msgid ""
39368 "Since those device names exist by definition, they will never be translated."
39369 msgstr ""
39370
39371 #. type: textblock
39372 #: ../src/guestfs.pod:1159
39373 msgid ""
39374 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
39375 "filesystem labels."
39376 msgstr ""
39377
39378 #. type: textblock
39379 #: ../src/guestfs.pod:1166
39380 msgid ""
39381 "This section discusses security implications of using libguestfs, "
39382 "particularly with untrusted or malicious guests or disk images."
39383 msgstr ""
39384
39385 #. type: =head2
39386 #: ../src/guestfs.pod:1169
39387 msgid "GENERAL SECURITY CONSIDERATIONS"
39388 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
39389
39390 #. type: textblock
39391 #: ../src/guestfs.pod:1171
39392 msgid ""
39393 "Be careful with any files or data that you download from a guest (by "
39394 "\"download\" we mean not just the L</guestfs_download> command but any "
39395 "command that reads files, filenames, directories or anything else from a "
39396 "disk image).  An attacker could manipulate the data to fool your program "
39397 "into doing the wrong thing.  Consider cases such as:"
39398 msgstr ""
39399
39400 #. type: textblock
39401 #: ../src/guestfs.pod:1181
39402 msgid "the data (file etc) not being present"
39403 msgstr ""
39404
39405 #. type: textblock
39406 #: ../src/guestfs.pod:1185
39407 msgid "being present but empty"
39408 msgstr ""
39409
39410 #. type: textblock
39411 #: ../src/guestfs.pod:1189
39412 msgid "being much larger than normal"
39413 msgstr ""
39414
39415 #. type: textblock
39416 #: ../src/guestfs.pod:1193
39417 msgid "containing arbitrary 8 bit data"
39418 msgstr ""
39419
39420 #. type: textblock
39421 #: ../src/guestfs.pod:1197
39422 msgid "being in an unexpected character encoding"
39423 msgstr ""
39424
39425 #. type: textblock
39426 #: ../src/guestfs.pod:1201
39427 msgid "containing homoglyphs."
39428 msgstr ""
39429
39430 #. type: =head2
39431 #: ../src/guestfs.pod:1205
39432 msgid "SECURITY OF MOUNTING FILESYSTEMS"
39433 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
39434
39435 #. type: textblock
39436 #: ../src/guestfs.pod:1207
39437 msgid ""
39438 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
39439 "(VFS) module can sometimes be escalated into exploits by deliberately "
39440 "creating a malicious, malformed filesystem.  These exploits are very severe "
39441 "for two reasons.  Firstly there are very many filesystem drivers in the "
39442 "kernel, and many of them are infrequently used and not much developer "
39443 "attention has been paid to the code.  Linux userspace helps potential "
39444 "crackers by detecting the filesystem type and automatically choosing the "
39445 "right VFS driver, even if that filesystem type is obscure or unexpected for "
39446 "the administrator.  Secondly, a kernel-level exploit is like a local root "
39447 "exploit (worse in some ways), giving immediate and total access to the "
39448 "system right down to the hardware level."
39449 msgstr ""
39450
39451 #. type: textblock
39452 #: ../src/guestfs.pod:1220
39453 msgid ""
39454 "That explains why you should never mount a filesystem from an untrusted "
39455 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
39456 "inside a qemu virtual machine, usually running as a non-root user.  The "
39457 "attacker would need to write a filesystem which first exploited the kernel, "
39458 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
39459 "the libguestfs protocol, and finally to be as serious as the host kernel "
39460 "exploit it would need to escalate its privileges to root.  This multi-step "
39461 "escalation, performed by a static piece of data, is thought to be extremely "
39462 "hard to do, although we never say 'never' about security issues."
39463 msgstr ""
39464
39465 #. type: textblock
39466 #: ../src/guestfs.pod:1231
39467 msgid ""
39468 "In any case callers can reduce the attack surface by forcing the filesystem "
39469 "type when mounting (use L</guestfs_mount_vfs>)."
39470 msgstr ""
39471
39472 #. type: =head2
39473 #: ../src/guestfs.pod:1234
39474 msgid "PROTOCOL SECURITY"
39475 msgstr "ЗАХИСТ ПРОТОКОЛУ"
39476
39477 #. type: textblock
39478 #: ../src/guestfs.pod:1236
39479 msgid ""
39480 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
39481 "defined upper message size.  However a program that uses libguestfs must "
39482 "also take care - for example you can write a program that downloads a binary "
39483 "from a disk image and executes it locally, and no amount of protocol "
39484 "security will save you from the consequences."
39485 msgstr ""
39486
39487 #. type: =head2
39488 #: ../src/guestfs.pod:1242
39489 msgid "INSPECTION SECURITY"
39490 msgstr ""
39491
39492 #. type: textblock
39493 #: ../src/guestfs.pod:1244
39494 msgid ""
39495 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
39496 "directly from the guest, and these could contain any 8 bit data.  Callers "
39497 "should be careful to escape these before printing them to a structured file "
39498 "(for example, use HTML escaping if creating a web page)."
39499 msgstr ""
39500
39501 #. type: textblock
39502 #: ../src/guestfs.pod:1250
39503 msgid ""
39504 "Guest configuration may be altered in unusual ways by the administrator of "
39505 "the virtual machine, and may not reflect reality (particularly for untrusted "
39506 "or actively malicious guests).  For example we parse the hostname from "
39507 "configuration files like C</etc/sysconfig/network> that we find in the "
39508 "guest, but the guest administrator can easily manipulate these files to "
39509 "provide the wrong hostname."
39510 msgstr ""
39511
39512 #. type: textblock
39513 #: ../src/guestfs.pod:1258
39514 msgid ""
39515 "The inspection API parses guest configuration using two external libraries: "
39516 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
39517 "designed to be robust in the face of malicious data, although denial of "
39518 "service attacks are still possible, for example with oversized configuration "
39519 "files."
39520 msgstr ""
39521
39522 #. type: =head2
39523 #: ../src/guestfs.pod:1264
39524 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
39525 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
39526
39527 #. type: textblock
39528 #: ../src/guestfs.pod:1266
39529 msgid ""
39530 "Be very cautious about running commands from the guest.  By running a "
39531 "command in the guest, you are giving CPU time to a binary that you do not "
39532 "control, under the same user account as the library, albeit wrapped in qemu "
39533 "virtualization.  More information and alternatives can be found in the "
39534 "section L</RUNNING COMMANDS>."
39535 msgstr ""
39536
39537 #. type: =head2
39538 #: ../src/guestfs.pod:1272
39539 msgid "CVE-2010-3851"
39540 msgstr "CVE-2010-3851"
39541
39542 #. type: textblock
39543 #: ../src/guestfs.pod:1274
39544 msgid "https://bugzilla.redhat.com/642934"
39545 msgstr "https://bugzilla.redhat.com/642934"
39546
39547 #. type: textblock
39548 #: ../src/guestfs.pod:1276
39549 msgid ""
39550 "This security bug concerns the automatic disk format detection that qemu "
39551 "does on disk images."
39552 msgstr ""
39553
39554 #. type: textblock
39555 #: ../src/guestfs.pod:1279
39556 msgid ""
39557 "A raw disk image is just the raw bytes, there is no header.  Other disk "
39558 "images like qcow2 contain a special header.  Qemu deals with this by looking "
39559 "for one of the known headers, and if none is found then assuming the disk "
39560 "image must be raw."
39561 msgstr ""
39562
39563 #. type: textblock
39564 #: ../src/guestfs.pod:1284
39565 msgid ""
39566 "This allows a guest which has been given a raw disk image to write some "
39567 "other header.  At next boot (or when the disk image is accessed by "
39568 "libguestfs) qemu would do autodetection and think the disk image format was, "
39569 "say, qcow2 based on the header written by the guest."
39570 msgstr ""
39571
39572 #. type: textblock
39573 #: ../src/guestfs.pod:1289
39574 msgid ""
39575 "This in itself would not be a problem, but qcow2 offers many features, one "
39576 "of which is to allow a disk image to refer to another image (called the "
39577 "\"backing disk\").  It does this by placing the path to the backing disk "
39578 "into the qcow2 header.  This path is not validated and could point to any "
39579 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
39580 "\"holes\" in the qcow2 disk image, which of course is completely under the "
39581 "control of the attacker."
39582 msgstr ""
39583
39584 #. type: textblock
39585 #: ../src/guestfs.pod:1297
39586 msgid ""
39587 "In libguestfs this is rather hard to exploit except under two circumstances:"
39588 msgstr ""
39589
39590 #. type: textblock
39591 #: ../src/guestfs.pod:1304
39592 msgid "You have enabled the network or have opened the disk in write mode."
39593 msgstr ""
39594
39595 #. type: textblock
39596 #: ../src/guestfs.pod:1308
39597 msgid ""
39598 "You are also running untrusted code from the guest (see L</RUNNING "
39599 "COMMANDS>)."
39600 msgstr ""
39601
39602 #. type: textblock
39603 #: ../src/guestfs.pod:1313
39604 msgid ""
39605 "The way to avoid this is to specify the expected disk format when adding "
39606 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
39607 "should always do this if the disk is raw format, and it's a good idea for "
39608 "other cases too."
39609 msgstr ""
39610
39611 #. type: textblock
39612 #: ../src/guestfs.pod:1318
39613 msgid ""
39614 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
39615 "format is fetched from libvirt and passed through."
39616 msgstr ""
39617
39618 #. type: textblock
39619 #: ../src/guestfs.pod:1321
39620 msgid ""
39621 "For libguestfs tools, use the I<--format> command line parameter as "
39622 "appropriate."
39623 msgstr ""
39624
39625 #. type: =head1
39626 #: ../src/guestfs.pod:1324
39627 msgid "CONNECTION MANAGEMENT"
39628 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
39629
39630 #. type: =head2
39631 #: ../src/guestfs.pod:1326
39632 msgid "guestfs_h *"
39633 msgstr "guestfs_h *"
39634
39635 #. type: textblock
39636 #: ../src/guestfs.pod:1328
39637 msgid ""
39638 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
39639 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
39640 "handle and release all resources used."
39641 msgstr ""
39642
39643 #. type: textblock
39644 #: ../src/guestfs.pod:1332
39645 msgid ""
39646 "For information on using multiple handles and threads, see the section L</"
39647 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
39648 msgstr ""
39649
39650 #. type: =head2
39651 #: ../src/guestfs.pod:1335
39652 msgid "guestfs_create"
39653 msgstr "guestfs_create"
39654
39655 #. type: verbatim
39656 #: ../src/guestfs.pod:1337
39657 #, no-wrap
39658 msgid ""
39659 " guestfs_h *guestfs_create (void);\n"
39660 "\n"
39661 msgstr ""
39662 " guestfs_h *guestfs_create (void);\n"
39663 "\n"
39664
39665 #. type: textblock
39666 #: ../src/guestfs.pod:1339
39667 msgid "Create a connection handle."
39668 msgstr "Створити дескриптор з’єднання."
39669
39670 #. type: textblock
39671 #: ../src/guestfs.pod:1341
39672 msgid ""
39673 "On success this returns a non-NULL pointer to a handle.  On error it returns "
39674 "NULL."
39675 msgstr ""
39676
39677 #. type: textblock
39678 #: ../src/guestfs.pod:1344
39679 msgid ""
39680 "You have to \"configure\" the handle after creating it.  This includes "
39681 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
39682 "handle at least once."
39683 msgstr ""
39684
39685 #. type: textblock
39686 #: ../src/guestfs.pod:1348
39687 msgid "After configuring the handle, you have to call L</guestfs_launch>."
39688 msgstr ""
39689
39690 #. type: textblock
39691 #: ../src/guestfs.pod:1350
39692 msgid ""
39693 "You may also want to configure error handling for the handle.  See the L</"
39694 "ERROR HANDLING> section below."
39695 msgstr ""
39696
39697 #. type: =head2
39698 #: ../src/guestfs.pod:1353
39699 msgid "guestfs_close"
39700 msgstr "guestfs_close"
39701
39702 #. type: verbatim
39703 #: ../src/guestfs.pod:1355
39704 #, no-wrap
39705 msgid ""
39706 " void guestfs_close (guestfs_h *g);\n"
39707 "\n"
39708 msgstr ""
39709 " void guestfs_close (guestfs_h *g);\n"
39710 "\n"
39711
39712 #. type: textblock
39713 #: ../src/guestfs.pod:1357
39714 msgid "This closes the connection handle and frees up all resources used."
39715 msgstr ""
39716
39717 #. type: textblock
39718 #: ../src/guestfs.pod:1359
39719 msgid ""
39720 "If autosync was set on the handle and the handle was launched, then this "
39721 "implicitly calls various functions to unmount filesystems and sync the "
39722 "disk.  See L</guestfs_set_autosync> for more details."
39723 msgstr ""
39724
39725 #. type: textblock
39726 #: ../src/guestfs.pod:1363
39727 msgid "If a close callback was set on the handle, then it is called."
39728 msgstr ""
39729
39730 #. type: =head1
39731 #: ../src/guestfs.pod:1365
39732 msgid "ERROR HANDLING"
39733 msgstr "ОБРОБКА ПОМИЛОК"
39734
39735 #. type: textblock
39736 #: ../src/guestfs.pod:1367
39737 msgid ""
39738 "API functions can return errors.  For example, almost all functions that "
39739 "return C<int> will return C<-1> to indicate an error."
39740 msgstr ""
39741
39742 #. type: textblock
39743 #: ../src/guestfs.pod:1370
39744 msgid ""
39745 "Additional information is available for errors: an error message string and "
39746 "optionally an error number (errno) if the thing that failed was a system "
39747 "call."
39748 msgstr ""
39749
39750 #. type: textblock
39751 #: ../src/guestfs.pod:1374
39752 msgid ""
39753 "You can get at the additional information about the last error on the handle "
39754 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
39755 "up an error handler with L</guestfs_set_error_handler>."
39756 msgstr ""
39757
39758 #. type: textblock
39759 #: ../src/guestfs.pod:1379
39760 msgid ""
39761 "When the handle is created, a default error handler is installed which "
39762 "prints the error message string to C<stderr>.  For small short-running "
39763 "command line programs it is sufficient to do:"
39764 msgstr ""
39765
39766 #. type: verbatim
39767 #: ../src/guestfs.pod:1383
39768 #, no-wrap
39769 msgid ""
39770 " if (guestfs_launch (g) == -1)\n"
39771 "   exit (EXIT_FAILURE);\n"
39772 "\n"
39773 msgstr ""
39774 " if (guestfs_launch (g) == -1)\n"
39775 "   exit (EXIT_FAILURE);\n"
39776 "\n"
39777
39778 #. type: textblock
39779 #: ../src/guestfs.pod:1386
39780 msgid ""
39781 "since the default error handler will ensure that an error message has been "
39782 "printed to C<stderr> before the program exits."
39783 msgstr ""
39784
39785 #. type: textblock
39786 #: ../src/guestfs.pod:1389
39787 msgid ""
39788 "For other programs the caller will almost certainly want to install an "
39789 "alternate error handler or do error handling in-line like this:"
39790 msgstr ""
39791
39792 #. type: verbatim
39793 #: ../src/guestfs.pod:1392
39794 #, no-wrap
39795 msgid ""
39796 " /* This disables the default behaviour of printing errors\n"
39797 "    on stderr. */\n"
39798 " guestfs_set_error_handler (g, NULL, NULL);\n"
39799 " \n"
39800 msgstr ""
39801
39802 #. type: verbatim
39803 #: ../src/guestfs.pod:1396
39804 #, no-wrap
39805 msgid ""
39806 " if (guestfs_launch (g) == -1) {\n"
39807 "   /* Examine the error message and print it etc. */\n"
39808 "   char *msg = guestfs_last_error (g);\n"
39809 "   int errnum = guestfs_last_errno (g);\n"
39810 "   fprintf (stderr, \"%s\", msg);\n"
39811 "   if (errnum != 0)\n"
39812 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
39813 "   fprintf (stderr, \"\\n\");\n"
39814 "   /* ... */\n"
39815 " }\n"
39816 "\n"
39817 msgstr ""
39818
39819 #. type: textblock
39820 #: ../src/guestfs.pod:1407
39821 msgid ""
39822 "Out of memory errors are handled differently.  The default action is to call "
39823 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
39824 "guestfs_set_out_of_memory_handler>."
39825 msgstr ""
39826
39827 #. type: textblock
39828 #: ../src/guestfs.pod:1411
39829 msgid ""
39830 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
39831 "because there is no handle if this happens there is no way to get additional "
39832 "error information.  However L</guestfs_create> is supposed to be a "
39833 "lightweight operation which can only fail because of insufficient memory (it "
39834 "returns NULL in this case)."
39835 msgstr ""
39836
39837 #. type: =head2
39838 #: ../src/guestfs.pod:1417
39839 msgid "guestfs_last_error"
39840 msgstr "guestfs_last_error"
39841
39842 #. type: verbatim
39843 #: ../src/guestfs.pod:1419
39844 #, no-wrap
39845 msgid ""
39846 " const char *guestfs_last_error (guestfs_h *g);\n"
39847 "\n"
39848 msgstr ""
39849 " const char *guestfs_last_error (guestfs_h *g);\n"
39850 "\n"
39851
39852 #. type: textblock
39853 #: ../src/guestfs.pod:1421
39854 msgid ""
39855 "This returns the last error message that happened on C<g>.  If there has not "
39856 "been an error since the handle was created, then this returns C<NULL>."
39857 msgstr ""
39858
39859 #. type: textblock
39860 #: ../src/guestfs.pod:1425
39861 msgid ""
39862 "The lifetime of the returned string is until the next error occurs, or L</"
39863 "guestfs_close> is called."
39864 msgstr ""
39865
39866 #. type: =head2
39867 #: ../src/guestfs.pod:1428
39868 msgid "guestfs_last_errno"
39869 msgstr "guestfs_last_errno"
39870
39871 #. type: verbatim
39872 #: ../src/guestfs.pod:1430
39873 #, no-wrap
39874 msgid ""
39875 " int guestfs_last_errno (guestfs_h *g);\n"
39876 "\n"
39877 msgstr ""
39878 " int guestfs_last_errno (guestfs_h *g);\n"
39879 "\n"
39880
39881 #. type: textblock
39882 #: ../src/guestfs.pod:1432
39883 msgid "This returns the last error number (errno) that happened on C<g>."
39884 msgstr ""
39885
39886 #. type: textblock
39887 #: ../src/guestfs.pod:1434
39888 msgid "If successful, an errno integer not equal to zero is returned."
39889 msgstr ""
39890
39891 #. type: textblock
39892 #: ../src/guestfs.pod:1436
39893 msgid ""
39894 "If no error, this returns 0.  This call can return 0 in three situations:"
39895 msgstr ""
39896
39897 #. type: textblock
39898 #: ../src/guestfs.pod:1443
39899 msgid "There has not been any error on the handle."
39900 msgstr ""
39901
39902 #. type: textblock
39903 #: ../src/guestfs.pod:1447
39904 msgid ""
39905 "There has been an error but the errno was meaningless.  This corresponds to "
39906 "the case where the error did not come from a failed system call, but for "
39907 "some other reason."
39908 msgstr ""
39909
39910 #. type: textblock
39911 #: ../src/guestfs.pod:1453
39912 msgid ""
39913 "There was an error from a failed system call, but for some reason the errno "
39914 "was not captured and returned.  This usually indicates a bug in libguestfs."
39915 msgstr ""
39916
39917 #. type: textblock
39918 #: ../src/guestfs.pod:1459
39919 msgid ""
39920 "Libguestfs tries to convert the errno from inside the applicance into a "
39921 "corresponding errno for the caller (not entirely trivial: the appliance "
39922 "might be running a completely different operating system from the library "
39923 "and error numbers are not standardized across Un*xen).  If this could not be "
39924 "done, then the error is translated to C<EINVAL>.  In practice this should "
39925 "only happen in very rare circumstances."
39926 msgstr ""
39927
39928 #. type: =head2
39929 #: ../src/guestfs.pod:1467
39930 msgid "guestfs_set_error_handler"
39931 msgstr "guestfs_set_error_handler"
39932
39933 #. type: verbatim
39934 #: ../src/guestfs.pod:1469
39935 #, no-wrap
39936 msgid ""
39937 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
39938 "                                           void *opaque,\n"
39939 "                                           const char *msg);\n"
39940 " void guestfs_set_error_handler (guestfs_h *g,\n"
39941 "                                 guestfs_error_handler_cb cb,\n"
39942 "                                 void *opaque);\n"
39943 "\n"
39944 msgstr ""
39945 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
39946 "                                           void *opaque,\n"
39947 "                                           const char *msg);\n"
39948 " void guestfs_set_error_handler (guestfs_h *g,\n"
39949 "                                 guestfs_error_handler_cb cb,\n"
39950 "                                 void *opaque);\n"
39951 "\n"
39952
39953 #. type: textblock
39954 #: ../src/guestfs.pod:1476
39955 msgid ""
39956 "The callback C<cb> will be called if there is an error.  The parameters "
39957 "passed to the callback are an opaque data pointer and the error message "
39958 "string."
39959 msgstr ""
39960
39961 #. type: textblock
39962 #: ../src/guestfs.pod:1480
39963 msgid ""
39964 "C<errno> is not passed to the callback.  To get that the callback must call "
39965 "L</guestfs_last_errno>."
39966 msgstr ""
39967
39968 #. type: textblock
39969 #: ../src/guestfs.pod:1483
39970 msgid ""
39971 "Note that the message string C<msg> is freed as soon as the callback "
39972 "function returns, so if you want to stash it somewhere you must make your "
39973 "own copy."
39974 msgstr ""
39975
39976 #. type: textblock
39977 #: ../src/guestfs.pod:1487
39978 msgid "The default handler prints messages on C<stderr>."
39979 msgstr ""
39980
39981 #. type: textblock
39982 #: ../src/guestfs.pod:1489
39983 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
39984 msgstr ""
39985
39986 #. type: =head2
39987 #: ../src/guestfs.pod:1491
39988 msgid "guestfs_get_error_handler"
39989 msgstr "guestfs_get_error_handler"
39990
39991 #. type: verbatim
39992 #: ../src/guestfs.pod:1493
39993 #, no-wrap
39994 msgid ""
39995 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
39996 "                                                     void **opaque_rtn);\n"
39997 "\n"
39998 msgstr ""
39999 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
40000 "                                                     void **opaque_rtn);\n"
40001 "\n"
40002
40003 #. type: textblock
40004 #: ../src/guestfs.pod:1496
40005 msgid "Returns the current error handler callback."
40006 msgstr ""
40007
40008 #. type: =head2
40009 #: ../src/guestfs.pod:1498
40010 msgid "guestfs_set_out_of_memory_handler"
40011 msgstr "guestfs_set_out_of_memory_handler"
40012
40013 #. type: verbatim
40014 #: ../src/guestfs.pod:1500
40015 #, no-wrap
40016 msgid ""
40017 " typedef void (*guestfs_abort_cb) (void);\n"
40018 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
40019 "                                         guestfs_abort_cb);\n"
40020 "\n"
40021 msgstr ""
40022
40023 #. type: textblock
40024 #: ../src/guestfs.pod:1504
40025 msgid ""
40026 "The callback C<cb> will be called if there is an out of memory situation.  "
40027 "I<Note this callback must not return>."
40028 msgstr ""
40029
40030 #. type: textblock
40031 #: ../src/guestfs.pod:1507
40032 msgid "The default is to call L<abort(3)>."
40033 msgstr ""
40034
40035 #. type: textblock
40036 #: ../src/guestfs.pod:1509
40037 msgid ""
40038 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
40039 msgstr ""
40040
40041 #. type: =head2
40042 #: ../src/guestfs.pod:1512
40043 msgid "guestfs_get_out_of_memory_handler"
40044 msgstr "guestfs_get_out_of_memory_handler"
40045
40046 #. type: verbatim
40047 #: ../src/guestfs.pod:1514
40048 #, no-wrap
40049 msgid ""
40050 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
40051 "\n"
40052 msgstr ""
40053 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
40054 "\n"
40055
40056 #. type: textblock
40057 #: ../src/guestfs.pod:1516
40058 msgid "This returns the current out of memory handler."
40059 msgstr ""
40060
40061 #. type: =head1
40062 #: ../src/guestfs.pod:1518
40063 msgid "API CALLS"
40064 msgstr "ВИКЛИКИ API"
40065
40066 #. type: =head1
40067 #: ../src/guestfs.pod:1522
40068 msgid "STRUCTURES"
40069 msgstr "СТРУКТУРИ"
40070
40071 #. type: textblock
40072 #: ../src/guestfs.pod:1524
40073 msgid "@STRUCTS@"
40074 msgstr "@STRUCTS@"
40075
40076 #. type: =head1
40077 #: ../src/guestfs.pod:1526
40078 msgid "AVAILABILITY"
40079 msgstr "ДОСТУПНІСТЬ"
40080
40081 #. type: =head2
40082 #: ../src/guestfs.pod:1528
40083 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
40084 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
40085
40086 #. type: textblock
40087 #: ../src/guestfs.pod:1530
40088 msgid ""
40089 "Using L</guestfs_available> you can test availability of the following "
40090 "groups of functions.  This test queries the appliance to see if the "
40091 "appliance you are currently using supports the functionality."
40092 msgstr ""
40093
40094 #. type: textblock
40095 #: ../src/guestfs.pod:1535
40096 msgid "@AVAILABILITY@"
40097 msgstr "@AVAILABILITY@"
40098
40099 #. type: =head2
40100 #: ../src/guestfs.pod:1537
40101 msgid "GUESTFISH supported COMMAND"
40102 msgstr ""
40103
40104 #. type: textblock
40105 #: ../src/guestfs.pod:1539
40106 msgid ""
40107 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
40108 "prints out the available groups and whether they are supported by this build "
40109 "of libguestfs.  Note however that you have to do C<run> first."
40110 msgstr ""
40111
40112 #. type: =head2
40113 #: ../src/guestfs.pod:1544
40114 msgid "SINGLE CALLS AT COMPILE TIME"
40115 msgstr ""
40116
40117 #. type: textblock
40118 #: ../src/guestfs.pod:1546
40119 msgid ""
40120 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
40121 "function, such as:"
40122 msgstr ""
40123
40124 #. type: verbatim
40125 #: ../src/guestfs.pod:1549
40126 #, no-wrap
40127 msgid ""
40128 " #define LIBGUESTFS_HAVE_DD 1\n"
40129 "\n"
40130 msgstr ""
40131 " #define LIBGUESTFS_HAVE_DD 1\n"
40132 "\n"
40133
40134 #. type: textblock
40135 #: ../src/guestfs.pod:1551
40136 msgid "if L</guestfs_dd> is available."
40137 msgstr ""
40138
40139 #. type: textblock
40140 #: ../src/guestfs.pod:1553
40141 msgid ""
40142 "Before version 1.5.8, if you needed to test whether a single libguestfs "
40143 "function is available at compile time, we recommended using build tools such "
40144 "as autoconf or cmake.  For example in autotools you could use:"
40145 msgstr ""
40146
40147 #. type: verbatim
40148 #: ../src/guestfs.pod:1558
40149 #, no-wrap
40150 msgid ""
40151 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
40152 " AC_CHECK_FUNCS([guestfs_dd])\n"
40153 "\n"
40154 msgstr ""
40155 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
40156 " AC_CHECK_FUNCS([guestfs_dd])\n"
40157 "\n"
40158
40159 #. type: textblock
40160 #: ../src/guestfs.pod:1561
40161 msgid ""
40162 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
40163 "in your program."
40164 msgstr ""
40165
40166 #. type: =head2
40167 #: ../src/guestfs.pod:1564
40168 msgid "SINGLE CALLS AT RUN TIME"
40169 msgstr ""
40170
40171 #. type: textblock
40172 #: ../src/guestfs.pod:1566
40173 msgid ""
40174 "Testing at compile time doesn't guarantee that a function really exists in "
40175 "the library.  The reason is that you might be dynamically linked against a "
40176 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
40177 "This situation unfortunately results in a segmentation fault, which is a "
40178 "shortcoming of the C dynamic linking system itself."
40179 msgstr ""
40180
40181 #. type: textblock
40182 #: ../src/guestfs.pod:1573
40183 msgid ""
40184 "You can use L<dlopen(3)> to test if a function is available at run time, as "
40185 "in this example program (note that you still need the compile time check as "
40186 "well):"
40187 msgstr ""
40188
40189 #. type: verbatim
40190 #: ../src/guestfs.pod:1577
40191 #, no-wrap
40192 msgid ""
40193 " #include <stdio.h>\n"
40194 " #include <stdlib.h>\n"
40195 " #include <unistd.h>\n"
40196 " #include <dlfcn.h>\n"
40197 " #include <guestfs.h>\n"
40198 " \n"
40199 msgstr ""
40200 " #include <stdio.h>\n"
40201 " #include <stdlib.h>\n"
40202 " #include <unistd.h>\n"
40203 " #include <dlfcn.h>\n"
40204 " #include <guestfs.h>\n"
40205 " \n"
40206
40207 #. type: verbatim
40208 #: ../src/guestfs.pod:1583
40209 #, no-wrap
40210 msgid ""
40211 " main ()\n"
40212 " {\n"
40213 " #ifdef LIBGUESTFS_HAVE_DD\n"
40214 "   void *dl;\n"
40215 "   int has_function;\n"
40216 " \n"
40217 msgstr ""
40218 " main ()\n"
40219 " {\n"
40220 " #ifdef LIBGUESTFS_HAVE_DD\n"
40221 "   void *dl;\n"
40222 "   int has_function;\n"
40223 " \n"
40224
40225 #. type: verbatim
40226 #: ../src/guestfs.pod:1589
40227 #, no-wrap
40228 msgid ""
40229 "   /* Test if the function guestfs_dd is really available. */\n"
40230 "   dl = dlopen (NULL, RTLD_LAZY);\n"
40231 "   if (!dl) {\n"
40232 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
40233 "     exit (EXIT_FAILURE);\n"
40234 "   }\n"
40235 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
40236 "   dlclose (dl);\n"
40237 " \n"
40238 msgstr ""
40239
40240 #. type: verbatim
40241 #: ../src/guestfs.pod:1598
40242 #, no-wrap
40243 msgid ""
40244 "   if (!has_function)\n"
40245 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
40246 "   else {\n"
40247 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
40248 "     /* Now it's safe to call\n"
40249 "     guestfs_dd (g, \"foo\", \"bar\");\n"
40250 "     */\n"
40251 "   }\n"
40252 " #else\n"
40253 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
40254 " #endif\n"
40255 "  }\n"
40256 "\n"
40257 msgstr ""
40258
40259 #. type: textblock
40260 #: ../src/guestfs.pod:1611
40261 msgid ""
40262 "You may think the above is an awful lot of hassle, and it is.  There are "
40263 "other ways outside of the C linking system to ensure that this kind of "
40264 "incompatibility never arises, such as using package versioning:"
40265 msgstr ""
40266
40267 #. type: verbatim
40268 #: ../src/guestfs.pod:1616
40269 #, no-wrap
40270 msgid ""
40271 " Requires: libguestfs >= 1.0.80\n"
40272 "\n"
40273 msgstr ""
40274
40275 #. type: =head1
40276 #: ../src/guestfs.pod:1618
40277 msgid "CALLS WITH OPTIONAL ARGUMENTS"
40278 msgstr ""
40279
40280 #. type: textblock
40281 #: ../src/guestfs.pod:1620
40282 msgid ""
40283 "A recent feature of the API is the introduction of calls which take optional "
40284 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
40285 "takes variable arguments (ie. C<...>), as in this example:"
40286 msgstr ""
40287
40288 #. type: verbatim
40289 #: ../src/guestfs.pod:1625
40290 #, no-wrap
40291 msgid ""
40292 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
40293 "\n"
40294 msgstr ""
40295 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
40296 "\n"
40297
40298 #. type: textblock
40299 #: ../src/guestfs.pod:1627
40300 msgid ""
40301 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
40302 "call with no optional arguments specified:"
40303 msgstr ""
40304
40305 #. type: verbatim
40306 #: ../src/guestfs.pod:1630
40307 #, no-wrap
40308 msgid ""
40309 " guestfs_add_drive_opts (g, filename, -1);\n"
40310 "\n"
40311 msgstr ""
40312 " guestfs_add_drive_opts (g, filename, -1);\n"
40313 "\n"
40314
40315 #. type: textblock
40316 #: ../src/guestfs.pod:1632
40317 msgid "With a single optional argument:"
40318 msgstr ""
40319
40320 #. type: verbatim
40321 #: ../src/guestfs.pod:1634
40322 #, no-wrap
40323 msgid ""
40324 " guestfs_add_drive_opts (g, filename,\n"
40325 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40326 "                         -1);\n"
40327 "\n"
40328 msgstr ""
40329 " guestfs_add_drive_opts (g, filename,\n"
40330 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40331 "                         -1);\n"
40332 "\n"
40333
40334 #. type: textblock
40335 #: ../src/guestfs.pod:1638
40336 msgid "With two:"
40337 msgstr ""
40338
40339 #. type: verbatim
40340 #: ../src/guestfs.pod:1640
40341 #, no-wrap
40342 msgid ""
40343 " guestfs_add_drive_opts (g, filename,\n"
40344 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40345 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
40346 "                         -1);\n"
40347 "\n"
40348 msgstr ""
40349 " guestfs_add_drive_opts (g, filename,\n"
40350 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40351 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
40352 "                         -1);\n"
40353 "\n"
40354
40355 #. type: textblock
40356 #: ../src/guestfs.pod:1645
40357 msgid ""
40358 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
40359 "happen!"
40360 msgstr ""
40361
40362 #. type: =head2
40363 #: ../src/guestfs.pod:1648
40364 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
40365 msgstr ""
40366
40367 #. type: textblock
40368 #: ../src/guestfs.pod:1650
40369 msgid ""
40370 "The second variant has the same name with the suffix C<_va>, which works the "
40371 "same way but takes a C<va_list>.  See the C manual for details.  For the "
40372 "example function, this is declared:"
40373 msgstr ""
40374
40375 #. type: verbatim
40376 #: ../src/guestfs.pod:1654
40377 #, no-wrap
40378 msgid ""
40379 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
40380 "                                va_list args);\n"
40381 "\n"
40382 msgstr ""
40383 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
40384 "                                va_list args);\n"
40385 "\n"
40386
40387 #. type: =head2
40388 #: ../src/guestfs.pod:1657
40389 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
40390 msgstr ""
40391
40392 #. type: textblock
40393 #: ../src/guestfs.pod:1659
40394 msgid ""
40395 "The third variant is useful where you need to construct these calls.  You "
40396 "pass in a structure where you fill in the optional fields.  The structure "
40397 "has a bitmask as the first element which you must set to indicate which "
40398 "fields you have filled in.  For our example function the structure and call "
40399 "are declared:"
40400 msgstr ""
40401
40402 #. type: verbatim
40403 #: ../src/guestfs.pod:1665
40404 #, no-wrap
40405 msgid ""
40406 " struct guestfs_add_drive_opts_argv {\n"
40407 "   uint64_t bitmask;\n"
40408 "   int readonly;\n"
40409 "   const char *format;\n"
40410 "   /* ... */\n"
40411 " };\n"
40412 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
40413 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
40414 "\n"
40415 msgstr ""
40416 " struct guestfs_add_drive_opts_argv {\n"
40417 "   uint64_t bitmask;\n"
40418 "   int readonly;\n"
40419 "   const char *format;\n"
40420 "   /* ... */\n"
40421 " };\n"
40422 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
40423 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
40424 "\n"
40425
40426 #. type: textblock
40427 #: ../src/guestfs.pod:1674
40428 msgid "You could call it like this:"
40429 msgstr ""
40430
40431 #. type: verbatim
40432 #: ../src/guestfs.pod:1676
40433 #, no-wrap
40434 msgid ""
40435 " struct guestfs_add_drive_opts_argv optargs = {\n"
40436 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
40437 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
40438 "   .readonly = 1,\n"
40439 "   .format = \"qcow2\"\n"
40440 " };\n"
40441 " \n"
40442 msgstr ""
40443 " struct guestfs_add_drive_opts_argv optargs = {\n"
40444 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
40445 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
40446 "   .readonly = 1,\n"
40447 "   .format = \"qcow2\"\n"
40448 " };\n"
40449 " \n"
40450
40451 #. type: verbatim
40452 #: ../src/guestfs.pod:1683
40453 #, no-wrap
40454 msgid ""
40455 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
40456 "\n"
40457 msgstr ""
40458 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
40459 "\n"
40460
40461 #. type: textblock
40462 #: ../src/guestfs.pod:1691
40463 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
40464 msgstr ""
40465
40466 #. type: textblock
40467 #: ../src/guestfs.pod:1696
40468 msgid "You do not need to fill in all fields of the structure."
40469 msgstr ""
40470
40471 #. type: textblock
40472 #: ../src/guestfs.pod:1700
40473 msgid ""
40474 "There must be a one-to-one correspondence between fields of the structure "
40475 "that are filled in, and bits set in the bitmask."
40476 msgstr ""
40477
40478 #. type: =head2
40479 #: ../src/guestfs.pod:1705
40480 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
40481 msgstr ""
40482
40483 #. type: textblock
40484 #: ../src/guestfs.pod:1707
40485 msgid ""
40486 "In other languages, optional arguments are expressed in the way that is "
40487 "natural for that language.  We refer you to the language-specific "
40488 "documentation for more details on that."
40489 msgstr ""
40490
40491 #. type: textblock
40492 #: ../src/guestfs.pod:1711
40493 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
40494 msgstr ""
40495
40496 #. type: =head2
40497 #: ../src/guestfs.pod:1713
40498 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
40499 msgstr ""
40500
40501 #. type: textblock
40502 #: ../src/guestfs.pod:1715
40503 msgid ""
40504 "B<Note:> This section documents the generic event mechanism introduced in "
40505 "libguestfs 1.10, which you should use in new code if possible.  The old "
40506 "functions C<guestfs_set_log_message_callback>, "
40507 "C<guestfs_set_subprocess_quit_callback>, "
40508 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
40509 "C<guestfs_set_progress_callback> are no longer documented in this manual "
40510 "page.  Because of the ABI guarantee, the old functions continue to work."
40511 msgstr ""
40512
40513 #. type: textblock
40514 #: ../src/guestfs.pod:1724
40515 msgid ""
40516 "Handles generate events when certain things happen, such as log messages "
40517 "being generated, progress messages during long-running operations, or the "
40518 "handle being closed.  The API calls described below let you register a "
40519 "callback to be called when events happen.  You can register multiple "
40520 "callbacks (for the same, different or overlapping sets of events), and "
40521 "individually remove callbacks.  If callbacks are not removed, then they "
40522 "remain in force until the handle is closed."
40523 msgstr ""
40524
40525 #. type: textblock
40526 #: ../src/guestfs.pod:1732
40527 msgid ""
40528 "In the current implementation, events are only generated synchronously: that "
40529 "means that events (and hence callbacks) can only happen while you are in the "
40530 "middle of making another libguestfs call.  The callback is called in the "
40531 "same thread."
40532 msgstr ""
40533
40534 #. type: textblock
40535 #: ../src/guestfs.pod:1737
40536 msgid ""
40537 "Events may contain a payload, usually nothing (void), an array of 64 bit "
40538 "unsigned integers, or a message buffer.  Payloads are discussed later on."
40539 msgstr ""
40540
40541 #. type: =head3
40542 #: ../src/guestfs.pod:1741
40543 msgid "CLASSES OF EVENTS"
40544 msgstr ""
40545
40546 #. type: =item
40547 #: ../src/guestfs.pod:1745
40548 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
40549 msgstr ""
40550
40551 #. type: textblock
40552 #: ../src/guestfs.pod:1748
40553 msgid ""
40554 "The callback function will be called while the handle is being closed "
40555 "(synchronously from L</guestfs_close>)."
40556 msgstr ""
40557
40558 #. type: textblock
40559 #: ../src/guestfs.pod:1751
40560 msgid ""
40561 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
40562 "handles that are open when the program exits.  This means that this callback "
40563 "might be called indirectly from L<exit(3)>, which can cause unexpected "
40564 "problems in higher-level languages (eg. if your HLL interpreter has already "
40565 "been cleaned up by the time this is called, and if your callback then jumps "
40566 "into some HLL function)."
40567 msgstr ""
40568
40569 #. type: textblock
40570 #: ../src/guestfs.pod:1758
40571 msgid ""
40572 "If no callback is registered: the handle is closed without any callback "
40573 "being invoked."
40574 msgstr ""
40575
40576 #. type: =item
40577 #: ../src/guestfs.pod:1761
40578 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
40579 msgstr ""
40580
40581 #. type: textblock
40582 #: ../src/guestfs.pod:1764
40583 msgid ""
40584 "The callback function will be called when the child process quits, either "
40585 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
40586 "corresponds to a transition from any state to the CONFIG state)."
40587 msgstr ""
40588
40589 #. type: textblock
40590 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
40591 msgid "If no callback is registered: the event is ignored."
40592 msgstr ""
40593
40594 #. type: =item
40595 #: ../src/guestfs.pod:1770
40596 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
40597 msgstr ""
40598
40599 #. type: textblock
40600 #: ../src/guestfs.pod:1773
40601 msgid ""
40602 "The callback function will be called when the child process becomes ready "
40603 "first time after it has been launched.  (This corresponds to a transition "
40604 "from LAUNCHING to the READY state)."
40605 msgstr ""
40606
40607 #. type: =item
40608 #: ../src/guestfs.pod:1779
40609 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
40610 msgstr ""
40611
40612 #. type: textblock
40613 #: ../src/guestfs.pod:1782
40614 msgid ""
40615 "Some long-running operations can generate progress messages.  If this "
40616 "callback is registered, then it will be called each time a progress message "
40617 "is generated (usually two seconds after the operation started, and three "
40618 "times per second thereafter until it completes, although the frequency may "
40619 "change in future versions)."
40620 msgstr ""
40621
40622 #. type: textblock
40623 #: ../src/guestfs.pod:1788
40624 msgid ""
40625 "The callback receives in the payload four unsigned 64 bit numbers which are "
40626 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
40627 msgstr ""
40628
40629 #. type: textblock
40630 #: ../src/guestfs.pod:1791
40631 msgid ""
40632 "The units of C<total> are not defined, although for some operations C<total> "
40633 "may relate in some way to the amount of data to be transferred (eg. in bytes "
40634 "or megabytes), and C<position> may be the portion which has been transferred."
40635 msgstr ""
40636
40637 #. type: textblock
40638 #: ../src/guestfs.pod:1796
40639 msgid "The only defined and stable parts of the API are:"
40640 msgstr ""
40641
40642 #. type: textblock
40643 #: ../src/guestfs.pod:1802
40644 msgid ""
40645 "The callback can display to the user some type of progress bar or indicator "
40646 "which shows the ratio of C<position>:C<total>."
40647 msgstr ""
40648
40649 #. type: textblock
40650 #: ../src/guestfs.pod:1807
40651 msgid "0 E<lt>= C<position> E<lt>= C<total>"
40652 msgstr ""
40653
40654 #. type: textblock
40655 #: ../src/guestfs.pod:1811
40656 msgid ""
40657 "If any progress notification is sent during a call, then a final progress "
40658 "notification is always sent when C<position> = C<total> (I<unless> the call "
40659 "fails with an error)."
40660 msgstr ""
40661
40662 #. type: textblock
40663 #: ../src/guestfs.pod:1815
40664 msgid ""
40665 "This is to simplify caller code, so callers can easily set the progress "
40666 "indicator to \"100%\" at the end of the operation, without requiring special "
40667 "code to detect this case."
40668 msgstr ""
40669
40670 #. type: textblock
40671 #: ../src/guestfs.pod:1821
40672 msgid ""
40673 "For some calls we are unable to estimate the progress of the call, but we "
40674 "can still generate progress messages to indicate activity.  This is known as "
40675 "\"pulse mode\", and is directly supported by certain progress bar "
40676 "implementations (eg. GtkProgressBar)."
40677 msgstr ""
40678
40679 #. type: textblock
40680 #: ../src/guestfs.pod:1826
40681 msgid ""
40682 "For these calls, zero or more progress messages are generated with "
40683 "C<position = 0> and C<total = 1>, followed by a final message with "
40684 "C<position = total = 1>."
40685 msgstr ""
40686
40687 #. type: textblock
40688 #: ../src/guestfs.pod:1830
40689 msgid ""
40690 "As noted above, if the call fails with an error then the final message may "
40691 "not be generated."
40692 msgstr ""
40693
40694 #. type: textblock
40695 #: ../src/guestfs.pod:1835
40696 msgid ""
40697 "The callback also receives the procedure number (C<proc_nr>) and serial "
40698 "number (C<serial>) of the call.  These are only useful for debugging "
40699 "protocol issues, and the callback can normally ignore them.  The callback "
40700 "may want to print these numbers in error messages or debugging messages."
40701 msgstr ""
40702
40703 #. type: textblock
40704 #: ../src/guestfs.pod:1841
40705 msgid "If no callback is registered: progress messages are discarded."
40706 msgstr ""
40707
40708 #. type: =item
40709 #: ../src/guestfs.pod:1843
40710 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
40711 msgstr ""
40712
40713 #. type: textblock
40714 #: ../src/guestfs.pod:1846
40715 msgid ""
40716 "The callback function is called whenever a log message is generated by qemu, "
40717 "the appliance kernel, guestfsd (daemon), or utility programs."
40718 msgstr ""
40719
40720 #. type: textblock
40721 #: ../src/guestfs.pod:1849
40722 msgid ""
40723 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
40724 "guestfs_launch>) then additional debug messages are generated."
40725 msgstr ""
40726
40727 #. type: textblock
40728 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
40729 msgid ""
40730 "If no callback is registered: the messages are discarded unless the verbose "
40731 "flag is set in which case they are sent to stderr.  You can override the "
40732 "printing of verbose messages to stderr by setting up a callback."
40733 msgstr ""
40734
40735 #. type: =item
40736 #: ../src/guestfs.pod:1857
40737 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
40738 msgstr ""
40739
40740 #. type: textblock
40741 #: ../src/guestfs.pod:1860
40742 msgid ""
40743 "The callback function is called whenever a log message is generated by the "
40744 "library part of libguestfs."
40745 msgstr ""
40746
40747 #. type: textblock
40748 #: ../src/guestfs.pod:1863
40749 msgid ""
40750 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
40751 "messages are generated."
40752 msgstr ""
40753
40754 #. type: =item
40755 #: ../src/guestfs.pod:1871
40756 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
40757 msgstr ""
40758
40759 #. type: textblock
40760 #: ../src/guestfs.pod:1874
40761 msgid ""
40762 "The callback function is called whenever a trace message is generated.  This "
40763 "only applies if the trace flag (L</guestfs_set_trace>) is set."
40764 msgstr ""
40765
40766 #. type: textblock
40767 #: ../src/guestfs.pod:1877
40768 msgid ""
40769 "If no callback is registered: the messages are sent to stderr.  You can "
40770 "override the printing of trace messages to stderr by setting up a callback."
40771 msgstr ""
40772
40773 #. type: =item
40774 #: ../src/guestfs.pod:1881
40775 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
40776 msgstr ""
40777
40778 #. type: textblock
40779 #: ../src/guestfs.pod:1884
40780 msgid ""
40781 "The callback function is called whenever a libguestfs function is entered."
40782 msgstr ""
40783
40784 #. type: textblock
40785 #: ../src/guestfs.pod:1887
40786 msgid ""
40787 "The payload is a string which contains the name of the function that we are "
40788 "entering (not including C<guestfs_> prefix)."
40789 msgstr ""
40790
40791 #. type: textblock
40792 #: ../src/guestfs.pod:1890
40793 msgid ""
40794 "Note that libguestfs functions can call themselves, so you may see many "
40795 "events from a single call.  A few libguestfs functions do not generate this "
40796 "event."
40797 msgstr ""
40798
40799 #. type: =head3
40800 #: ../src/guestfs.pod:1898
40801 msgid "guestfs_set_event_callback"
40802 msgstr ""
40803
40804 #. type: verbatim
40805 #: ../src/guestfs.pod:1900
40806 #, no-wrap
40807 msgid ""
40808 " int guestfs_set_event_callback (guestfs_h *g,\n"
40809 "                                 guestfs_event_callback cb,\n"
40810 "                                 uint64_t event_bitmask,\n"
40811 "                                 int flags,\n"
40812 "                                 void *opaque);\n"
40813 "\n"
40814 msgstr ""
40815
40816 #. type: textblock
40817 #: ../src/guestfs.pod:1906
40818 msgid ""
40819 "This function registers a callback (C<cb>) for all event classes in the "
40820 "C<event_bitmask>."
40821 msgstr ""
40822
40823 #. type: textblock
40824 #: ../src/guestfs.pod:1909
40825 msgid ""
40826 "For example, to register for all log message events, you could call this "
40827 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
40828 "To register a single callback for all possible classes of events, use "
40829 "C<GUESTFS_EVENT_ALL>."
40830 msgstr ""
40831
40832 #. type: textblock
40833 #: ../src/guestfs.pod:1915
40834 msgid "C<flags> should always be passed as 0."
40835 msgstr ""
40836
40837 #. type: textblock
40838 #: ../src/guestfs.pod:1917
40839 msgid ""
40840 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
40841 "it for any purpose."
40842 msgstr ""
40843
40844 #. type: textblock
40845 #: ../src/guestfs.pod:1920
40846 msgid ""
40847 "The return value is the event handle (an integer) which you can use to "
40848 "delete the callback (see below)."
40849 msgstr ""
40850
40851 #. type: textblock
40852 #: ../src/guestfs.pod:1923
40853 msgid ""
40854 "If there is an error, this function returns C<-1>, and sets the error in the "
40855 "handle in the usual way (see L</guestfs_last_error> etc.)"
40856 msgstr ""
40857
40858 #. type: textblock
40859 #: ../src/guestfs.pod:1926
40860 msgid ""
40861 "Callbacks remain in effect until they are deleted, or until the handle is "
40862 "closed."
40863 msgstr ""
40864
40865 #. type: textblock
40866 #: ../src/guestfs.pod:1929
40867 msgid ""
40868 "In the case where multiple callbacks are registered for a particular event "
40869 "class, all of the callbacks are called.  The order in which multiple "
40870 "callbacks are called is not defined."
40871 msgstr ""
40872
40873 #. type: =head3
40874 #: ../src/guestfs.pod:1933
40875 msgid "guestfs_delete_event_callback"
40876 msgstr ""
40877
40878 #. type: verbatim
40879 #: ../src/guestfs.pod:1935
40880 #, no-wrap
40881 msgid ""
40882 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
40883 "\n"
40884 msgstr ""
40885
40886 #. type: textblock
40887 #: ../src/guestfs.pod:1937
40888 msgid ""
40889 "Delete a callback that was previously registered.  C<event_handle> should be "
40890 "the integer that was returned by a previous call to "
40891 "C<guestfs_set_event_callback> on the same handle."
40892 msgstr ""
40893
40894 #. type: =head3
40895 #: ../src/guestfs.pod:1941
40896 msgid "guestfs_event_callback"
40897 msgstr ""
40898
40899 #. type: verbatim
40900 #: ../src/guestfs.pod:1943
40901 #, no-wrap
40902 msgid ""
40903 " typedef void (*guestfs_event_callback) (\n"
40904 "                  guestfs_h *g,\n"
40905 "                  void *opaque,\n"
40906 "                  uint64_t event,\n"
40907 "                  int event_handle,\n"
40908 "                  int flags,\n"
40909 "                  const char *buf, size_t buf_len,\n"
40910 "                  const uint64_t *array, size_t array_len);\n"
40911 "\n"
40912 msgstr ""
40913
40914 #. type: textblock
40915 #: ../src/guestfs.pod:1952
40916 msgid ""
40917 "This is the type of the event callback function that you have to provide."
40918 msgstr ""
40919
40920 #. type: textblock
40921 #: ../src/guestfs.pod:1955
40922 msgid ""
40923 "The basic parameters are: the handle (C<g>), the opaque user pointer "
40924 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
40925 "handle, and C<flags> which in the current API you should ignore."
40926 msgstr ""
40927
40928 #. type: textblock
40929 #: ../src/guestfs.pod:1959
40930 msgid ""
40931 "The remaining parameters contain the event payload (if any).  Each event may "
40932 "contain a payload, which usually relates to the event class, but for future "
40933 "proofing your code should be written to handle any payload for any event "
40934 "class."
40935 msgstr ""
40936
40937 #. type: textblock
40938 #: ../src/guestfs.pod:1964
40939 msgid ""
40940 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
40941 "there is no message buffer).  Note that this message buffer can contain "
40942 "arbitrary 8 bit data, including NUL bytes."
40943 msgstr ""
40944
40945 #. type: textblock
40946 #: ../src/guestfs.pod:1968
40947 msgid ""
40948 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
40949 "moment this is only used for progress messages."
40950 msgstr ""
40951
40952 #. type: =head3
40953 #: ../src/guestfs.pod:1971
40954 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
40955 msgstr ""
40956
40957 #. type: textblock
40958 #: ../src/guestfs.pod:1973
40959 msgid ""
40960 "One motivation for the generic event API was to allow GUI programs to "
40961 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
40962 "unconditionally to C<stderr>."
40963 msgstr ""
40964
40965 #. type: textblock
40966 #: ../src/guestfs.pod:1977
40967 msgid ""
40968 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
40969 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
40970 "messages are not events; you must capture error messages separately)."
40971 msgstr ""
40972
40973 #. type: textblock
40974 #: ../src/guestfs.pod:1982
40975 msgid ""
40976 "Programs have to set up a callback to capture the classes of events of "
40977 "interest:"
40978 msgstr ""
40979
40980 #. type: verbatim
40981 #: ../src/guestfs.pod:1985
40982 #, no-wrap
40983 msgid ""
40984 " int eh =\n"
40985 "   guestfs_set_event_callback\n"
40986 "     (g, message_callback,\n"
40987 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
40988 "      GUESTFS_EVENT_TRACE,\n"
40989 "      0, NULL) == -1)\n"
40990 " if (eh == -1) {\n"
40991 "   // handle error in the usual way\n"
40992 " }\n"
40993 "\n"
40994 msgstr ""
40995
40996 #. type: textblock
40997 #: ../src/guestfs.pod:1995
40998 msgid ""
40999 "The callback can then direct messages to the appropriate place.  In this "
41000 "example, messages are directed to syslog:"
41001 msgstr ""
41002
41003 #. type: verbatim
41004 #: ../src/guestfs.pod:1998
41005 #, no-wrap
41006 msgid ""
41007 " static void\n"
41008 " message_callback (\n"
41009 "         guestfs_h *g,\n"
41010 "         void *opaque,\n"
41011 "         uint64_t event,\n"
41012 "         int event_handle,\n"
41013 "         int flags,\n"
41014 "         const char *buf, size_t buf_len,\n"
41015 "         const uint64_t *array, size_t array_len)\n"
41016 " {\n"
41017 "   const int priority = LOG_USER|LOG_INFO;\n"
41018 "   if (buf_len > 0)\n"
41019 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
41020 " }\n"
41021 "\n"
41022 msgstr ""
41023
41024 #. type: =head1
41025 #: ../src/guestfs.pod:2013
41026 msgid "CANCELLING LONG TRANSFERS"
41027 msgstr ""
41028
41029 #. type: textblock
41030 #: ../src/guestfs.pod:2015
41031 msgid ""
41032 "Some operations can be cancelled by the caller while they are in progress.  "
41033 "Currently only operations that involve uploading or downloading data can be "
41034 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
41035 "parameters in the generator)."
41036 msgstr ""
41037
41038 #. type: =head2
41039 #: ../src/guestfs.pod:2020
41040 msgid "guestfs_user_cancel"
41041 msgstr ""
41042
41043 #. type: verbatim
41044 #: ../src/guestfs.pod:2022
41045 #, no-wrap
41046 msgid ""
41047 " void guestfs_user_cancel (guestfs_h *g);\n"
41048 "\n"
41049 msgstr ""
41050
41051 #. type: textblock
41052 #: ../src/guestfs.pod:2024
41053 msgid ""
41054 "C<guestfs_user_cancel> cancels the current upload or download operation."
41055 msgstr ""
41056
41057 #. type: textblock
41058 #: ../src/guestfs.pod:2027
41059 msgid ""
41060 "Unlike most other libguestfs calls, this function is signal safe and thread "
41061 "safe.  You can call it from a signal handler or from another thread, without "
41062 "needing to do any locking."
41063 msgstr ""
41064
41065 #. type: textblock
41066 #: ../src/guestfs.pod:2031
41067 msgid ""
41068 "The transfer that was in progress (if there is one) will stop shortly "
41069 "afterwards, and will return an error.  The errno (see L</"
41070 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
41071 "out if the operation was cancelled or failed because of another error."
41072 msgstr ""
41073
41074 #. type: textblock
41075 #: ../src/guestfs.pod:2037
41076 msgid ""
41077 "No cleanup is performed: for example, if a file was being uploaded then "
41078 "after cancellation there may be a partially uploaded file.  It is the "
41079 "caller's responsibility to clean up if necessary."
41080 msgstr ""
41081
41082 #. type: textblock
41083 #: ../src/guestfs.pod:2041
41084 msgid "There are two common places that you might call C<guestfs_user_cancel>."
41085 msgstr ""
41086
41087 #. type: textblock
41088 #: ../src/guestfs.pod:2043
41089 msgid ""
41090 "In an interactive text-based program, you might call it from a C<SIGINT> "
41091 "signal handler so that pressing C<^C> cancels the current operation.  (You "
41092 "also need to call L</guestfs_set_pgroup> so that child processes don't "
41093 "receive the C<^C> signal)."
41094 msgstr ""
41095
41096 #. type: textblock
41097 #: ../src/guestfs.pod:2048
41098 msgid ""
41099 "In a graphical program, when the main thread is displaying a progress bar "
41100 "with a cancel button, wire up the cancel button to call this function."
41101 msgstr ""
41102
41103 #. type: =head1
41104 #: ../src/guestfs.pod:2052
41105 msgid "PRIVATE DATA AREA"
41106 msgstr ""
41107
41108 #. type: textblock
41109 #: ../src/guestfs.pod:2054
41110 msgid ""
41111 "You can attach named pieces of private data to the libguestfs handle, fetch "
41112 "them by name, and walk over them, for the lifetime of the handle.  This is "
41113 "called the private data area and is only available from the C API."
41114 msgstr ""
41115
41116 #. type: textblock
41117 #: ../src/guestfs.pod:2059
41118 msgid "To attach a named piece of data, use the following call:"
41119 msgstr ""
41120
41121 #. type: verbatim
41122 #: ../src/guestfs.pod:2061
41123 #, no-wrap
41124 msgid ""
41125 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
41126 "\n"
41127 msgstr ""
41128 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
41129 "\n"
41130
41131 #. type: textblock
41132 #: ../src/guestfs.pod:2063
41133 msgid ""
41134 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
41135 "pointer (which can be C<NULL>).  Any previous item with the same key is "
41136 "overwritten."
41137 msgstr ""
41138
41139 #. type: textblock
41140 #: ../src/guestfs.pod:2067
41141 msgid ""
41142 "You can use any C<key> you want, but your key should I<not> start with an "
41143 "underscore character.  Keys beginning with an underscore character are "
41144 "reserved for internal libguestfs purposes (eg. for implementing language "
41145 "bindings).  It is recommended that you prefix the key with some unique "
41146 "string to avoid collisions with other users."
41147 msgstr ""
41148
41149 #. type: textblock
41150 #: ../src/guestfs.pod:2073
41151 msgid "To retrieve the pointer, use:"
41152 msgstr ""
41153
41154 #. type: verbatim
41155 #: ../src/guestfs.pod:2075
41156 #, no-wrap
41157 msgid ""
41158 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
41159 "\n"
41160 msgstr ""
41161 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
41162 "\n"
41163
41164 #. type: textblock
41165 #: ../src/guestfs.pod:2077
41166 msgid ""
41167 "This function returns C<NULL> if either no data is found associated with "
41168 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
41169 "C<NULL>."
41170 msgstr ""
41171
41172 #. type: textblock
41173 #: ../src/guestfs.pod:2081
41174 msgid ""
41175 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
41176 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
41177 "all.  In particular, libguestfs does I<not> try to free the data when the "
41178 "handle is closed.  If the data must be freed, then the caller must either "
41179 "free it before calling L</guestfs_close> or must set up a close callback to "
41180 "do it (see L</GUESTFS_EVENT_CLOSE>)."
41181 msgstr ""
41182
41183 #. type: textblock
41184 #: ../src/guestfs.pod:2088
41185 msgid "To walk over all entries, use these two functions:"
41186 msgstr ""
41187
41188 #. type: verbatim
41189 #: ../src/guestfs.pod:2090
41190 #, no-wrap
41191 msgid ""
41192 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
41193 "\n"
41194 msgstr ""
41195
41196 #. type: verbatim
41197 #: ../src/guestfs.pod:2092
41198 #, no-wrap
41199 msgid ""
41200 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
41201 "\n"
41202 msgstr ""
41203
41204 #. type: textblock
41205 #: ../src/guestfs.pod:2094
41206 msgid ""
41207 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
41208 "not have any particular meaning -- keys are not returned in any defined "
41209 "order).  A pointer to the key is returned in C<*key_rtn> and the "
41210 "corresponding data pointer is returned from the function.  C<NULL> is "
41211 "returned if there are no keys stored in the handle."
41212 msgstr ""
41213
41214 #. type: textblock
41215 #: ../src/guestfs.pod:2100
41216 msgid ""
41217 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
41218 "value of this function is also C<NULL> is there are no further entries to "
41219 "return."
41220 msgstr ""
41221
41222 #. type: textblock
41223 #: ../src/guestfs.pod:2104
41224 msgid "Notes about walking over entries:"
41225 msgstr ""
41226
41227 #. type: textblock
41228 #: ../src/guestfs.pod:2110
41229 msgid ""
41230 "You must not call C<guestfs_set_private> while walking over the entries."
41231 msgstr ""
41232
41233 #. type: textblock
41234 #: ../src/guestfs.pod:2115
41235 msgid ""
41236 "The handle maintains an internal iterator which is reset when you call "
41237 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
41238 "call C<guestfs_set_private>."
41239 msgstr ""
41240
41241 #. type: textblock
41242 #: ../src/guestfs.pod:2121
41243 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
41244 msgstr ""
41245
41246 #. type: verbatim
41247 #: ../src/guestfs.pod:2123
41248 #, no-wrap
41249 msgid ""
41250 " guestfs_set_private (g, key, NULL);\n"
41251 "\n"
41252 msgstr ""
41253
41254 #. type: textblock
41255 #: ../src/guestfs.pod:2125
41256 msgid "then that C<key> is not returned when walking."
41257 msgstr ""
41258
41259 #. type: textblock
41260 #: ../src/guestfs.pod:2129
41261 msgid ""
41262 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
41263 "C<guestfs_next_private> or C<guestfs_set_private>."
41264 msgstr ""
41265
41266 #. type: textblock
41267 #: ../src/guestfs.pod:2135
41268 msgid ""
41269 "The following example code shows how to print all keys and data pointers "
41270 "that are associated with the handle C<g>:"
41271 msgstr ""
41272
41273 #. type: verbatim
41274 #: ../src/guestfs.pod:2138
41275 #, no-wrap
41276 msgid ""
41277 " const char *key;\n"
41278 " void *data = guestfs_first_private (g, &key);\n"
41279 " while (data != NULL)\n"
41280 "   {\n"
41281 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
41282 "     data = guestfs_next_private (g, &key);\n"
41283 "   }\n"
41284 "\n"
41285 msgstr ""
41286
41287 #. type: textblock
41288 #: ../src/guestfs.pod:2146
41289 msgid ""
41290 "More commonly you are only interested in keys that begin with an application-"
41291 "specific prefix C<foo_>.  Modify the loop like so:"
41292 msgstr ""
41293
41294 #. type: verbatim
41295 #: ../src/guestfs.pod:2149
41296 #, no-wrap
41297 msgid ""
41298 " const char *key;\n"
41299 " void *data = guestfs_first_private (g, &key);\n"
41300 " while (data != NULL)\n"
41301 "   {\n"
41302 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
41303 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
41304 "     data = guestfs_next_private (g, &key);\n"
41305 "   }\n"
41306 "\n"
41307 msgstr ""
41308
41309 #. type: textblock
41310 #: ../src/guestfs.pod:2158
41311 msgid ""
41312 "If you need to modify keys while walking, then you have to jump back to the "
41313 "beginning of the loop.  For example, to delete all keys prefixed with "
41314 "C<foo_>:"
41315 msgstr ""
41316
41317 #. type: verbatim
41318 #: ../src/guestfs.pod:2162
41319 #, no-wrap
41320 msgid ""
41321 "  const char *key;\n"
41322 "  void *data;\n"
41323 " again:\n"
41324 "  data = guestfs_first_private (g, &key);\n"
41325 "  while (data != NULL)\n"
41326 "    {\n"
41327 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
41328 "        {\n"
41329 "          guestfs_set_private (g, key, NULL);\n"
41330 "          /* note that 'key' pointer is now invalid, and so is\n"
41331 "             the internal iterator */\n"
41332 "          goto again;\n"
41333 "        }\n"
41334 "      data = guestfs_next_private (g, &key);\n"
41335 "    }\n"
41336 "\n"
41337 msgstr ""
41338
41339 #. type: textblock
41340 #: ../src/guestfs.pod:2178
41341 msgid ""
41342 "Note that the above loop is guaranteed to terminate because the keys are "
41343 "being deleted, but other manipulations of keys within the loop might not "
41344 "terminate unless you also maintain an indication of which keys have been "
41345 "visited."
41346 msgstr ""
41347
41348 #. type: =head1
41349 #: ../src/guestfs.pod:2183
41350 msgid "SYSTEMTAP"
41351 msgstr ""
41352
41353 #. type: textblock
41354 #: ../src/guestfs.pod:2185
41355 msgid ""
41356 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
41357 "true of any library, not just libguestfs.  However libguestfs also contains "
41358 "static markers to help in probing internal operations."
41359 msgstr ""
41360
41361 #. type: textblock
41362 #: ../src/guestfs.pod:2189
41363 msgid "You can list all the static markers by doing:"
41364 msgstr ""
41365
41366 #. type: verbatim
41367 #: ../src/guestfs.pod:2191
41368 #, no-wrap
41369 msgid ""
41370 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
41371 "              .provider(\"guestfs\").mark(\"*\")'\n"
41372 "\n"
41373 msgstr ""
41374
41375 #. type: textblock
41376 #: ../src/guestfs.pod:2194
41377 msgid ""
41378 "B<Note:> These static markers are I<not> part of the stable API and may "
41379 "change in future versions."
41380 msgstr ""
41381
41382 #. type: =head2
41383 #: ../src/guestfs.pod:2197
41384 msgid "SYSTEMTAP SCRIPT EXAMPLE"
41385 msgstr ""
41386
41387 #. type: textblock
41388 #: ../src/guestfs.pod:2199
41389 msgid ""
41390 "This script contains examples of displaying both the static markers and some "
41391 "ordinary C entry points:"
41392 msgstr ""
41393
41394 #. type: verbatim
41395 #: ../src/guestfs.pod:2202
41396 #, no-wrap
41397 msgid ""
41398 " global last;\n"
41399 " \n"
41400 msgstr ""
41401
41402 #. type: verbatim
41403 #: ../src/guestfs.pod:2204
41404 #, no-wrap
41405 msgid ""
41406 " function display_time () {\n"
41407 "       now = gettimeofday_us ();\n"
41408 "       delta = 0;\n"
41409 "       if (last > 0)\n"
41410 "             delta = now - last;\n"
41411 "       last = now;\n"
41412 " \n"
41413 msgstr ""
41414
41415 #. type: verbatim
41416 #: ../src/guestfs.pod:2211
41417 #, no-wrap
41418 msgid ""
41419 "       printf (\"%d (+%d):\", now, delta);\n"
41420 " }\n"
41421 " \n"
41422 msgstr ""
41423
41424 #. type: verbatim
41425 #: ../src/guestfs.pod:2214
41426 #, no-wrap
41427 msgid ""
41428 " probe begin {\n"
41429 "       last = 0;\n"
41430 "       printf (\"ready\\n\");\n"
41431 " }\n"
41432 " \n"
41433 msgstr ""
41434
41435 #. type: verbatim
41436 #: ../src/guestfs.pod:2219
41437 #, no-wrap
41438 msgid ""
41439 " /* Display all calls to static markers. */\n"
41440 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
41441 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
41442 "       display_time();\n"
41443 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
41444 " }\n"
41445 " \n"
41446 msgstr ""
41447
41448 #. type: verbatim
41449 #: ../src/guestfs.pod:2226
41450 #, no-wrap
41451 msgid ""
41452 " /* Display all calls to guestfs_mkfs* functions. */\n"
41453 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
41454 "           .function(\"guestfs_mkfs*\") ? {\n"
41455 "       display_time();\n"
41456 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
41457 " }\n"
41458 "\n"
41459 msgstr ""
41460
41461 #. type: textblock
41462 #: ../src/guestfs.pod:2233
41463 msgid ""
41464 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
41465 "program.  Note that you either have to be root, or you have to add yourself "
41466 "to several special stap groups.  Consult the systemtap documentation for "
41467 "more information."
41468 msgstr ""
41469
41470 #. type: verbatim
41471 #: ../src/guestfs.pod:2238
41472 #, no-wrap
41473 msgid ""
41474 " # stap /tmp/test.stap\n"
41475 " ready\n"
41476 "\n"
41477 msgstr ""
41478
41479 #. type: textblock
41480 #: ../src/guestfs.pod:2241
41481 msgid "In another terminal, run a guestfish command such as this:"
41482 msgstr ""
41483
41484 #. type: textblock
41485 #: ../src/guestfs.pod:2245
41486 msgid "In the first terminal, stap trace output similar to this is shown:"
41487 msgstr ""
41488
41489 #. type: verbatim
41490 #: ../src/guestfs.pod:2247
41491 #, no-wrap
41492 msgid ""
41493 " 1318248056692655 (+0):\tlaunch_start\n"
41494 " 1318248056692850 (+195):       launch_build_appliance_start\n"
41495 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
41496 " 1318248056838059 (+19774):     launch_run_qemu\n"
41497 " 1318248061071167 (+4233108):   launch_end\n"
41498 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
41499 "\n"
41500 msgstr ""
41501
41502 #. type: =end
41503 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
41504 msgid "html"
41505 msgstr "html"
41506
41507 #. type: textblock
41508 #: ../src/guestfs.pod:2256
41509 msgid ""
41510 "<!-- old anchor for the next section --> <a name="
41511 "\"state_machine_and_low_level_event_api\"/>"
41512 msgstr ""
41513 "<!-- old anchor for the next section --> <a name="
41514 "\"state_machine_and_low_level_event_api\"/>"
41515
41516 #. type: =head1
41517 #: ../src/guestfs.pod:2261
41518 msgid "ARCHITECTURE"
41519 msgstr "АРХІТЕКТУРА"
41520
41521 #. type: textblock
41522 #: ../src/guestfs.pod:2263
41523 msgid ""
41524 "Internally, libguestfs is implemented by running an appliance (a special "
41525 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
41526 "process of the main program."
41527 msgstr ""
41528
41529 #. type: verbatim
41530 #: ../src/guestfs.pod:2267
41531 #, no-wrap
41532 msgid ""
41533 "  ___________________\n"
41534 " /                   \\\n"
41535 " | main program      |\n"
41536 " |                   |\n"
41537 " |                   |           child process / appliance\n"
41538 " |                   |           __________________________\n"
41539 " |                   |          / qemu                     \\\n"
41540 " +-------------------+   RPC    |      +-----------------+ |\n"
41541 " | libguestfs     <--------------------> guestfsd        | |\n"
41542 " |                   |          |      +-----------------+ |\n"
41543 " \\___________________/          |      | Linux kernel    | |\n"
41544 "                                |      +--^--------------+ |\n"
41545 "                                \\_________|________________/\n"
41546 "                                          |\n"
41547 "                                   _______v______\n"
41548 "                                  /              \\\n"
41549 "                                  | Device or    |\n"
41550 "                                  | disk image   |\n"
41551 "                                  \\______________/\n"
41552 "\n"
41553 msgstr ""
41554
41555 #. type: textblock
41556 #: ../src/guestfs.pod:2287
41557 msgid ""
41558 "The library, linked to the main program, creates the child process and hence "
41559 "the appliance in the L</guestfs_launch> function."
41560 msgstr ""
41561
41562 #. type: textblock
41563 #: ../src/guestfs.pod:2290
41564 msgid ""
41565 "Inside the appliance is a Linux kernel and a complete stack of userspace "
41566 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
41567 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
41568 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
41569 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
41570 "attached to the qemu process which translates device access by the "
41571 "appliance's Linux kernel into accesses to the image."
41572 msgstr ""
41573
41574 #. type: textblock
41575 #: ../src/guestfs.pod:2299
41576 msgid ""
41577 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
41578 "Although the disk image you are attached to might also be used by some "
41579 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
41580 "care if both libguestfs's qemu process and your virtual machine are trying "
41581 "to update the disk image at the same time, since these usually results in "
41582 "massive disk corruption)."
41583 msgstr ""
41584
41585 #. type: =head1
41586 #: ../src/guestfs.pod:2306
41587 msgid "STATE MACHINE"
41588 msgstr "СКІНЧЕННИЙ АВТОМАТ"
41589
41590 #. type: textblock
41591 #: ../src/guestfs.pod:2308
41592 msgid "libguestfs uses a state machine to model the child process:"
41593 msgstr ""
41594
41595 #. type: verbatim
41596 #: ../src/guestfs.pod:2310
41597 #, no-wrap
41598 msgid ""
41599 "                         |\n"
41600 "                    guestfs_create\n"
41601 "                         |\n"
41602 "                         |\n"
41603 "                     ____V_____\n"
41604 "                    /          \\\n"
41605 "                    |  CONFIG  |\n"
41606 "                    \\__________/\n"
41607 "                     ^ ^   ^  \\\n"
41608 "                    /  |    \\  \\ guestfs_launch\n"
41609 "                   /   |    _\\__V______\n"
41610 "                  /    |   /           \\\n"
41611 "                 /     |   | LAUNCHING |\n"
41612 "                /      |   \\___________/\n"
41613 "               /       |       /\n"
41614 "              /        |  guestfs_launch\n"
41615 "             /         |     /\n"
41616 "    ______  /        __|____V\n"
41617 "   /      \\ ------> /        \\\n"
41618 "   | BUSY |         | READY  |\n"
41619 "   \\______/ <------ \\________/\n"
41620 "\n"
41621 msgstr ""
41622
41623 #. type: textblock
41624 #: ../src/guestfs.pod:2332
41625 msgid ""
41626 "The normal transitions are (1) CONFIG (when the handle is created, but there "
41627 "is no child process), (2) LAUNCHING (when the child process is booting up), "
41628 "(3) alternating between READY and BUSY as commands are issued to, and "
41629 "carried out by, the child process."
41630 msgstr ""
41631
41632 #. type: textblock
41633 #: ../src/guestfs.pod:2337
41634 msgid ""
41635 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
41636 "asynchronously at any time (eg. due to some internal error), and that causes "
41637 "the state to transition back to CONFIG."
41638 msgstr ""
41639
41640 #. type: textblock
41641 #: ../src/guestfs.pod:2341
41642 msgid ""
41643 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
41644 "issued when in the CONFIG state."
41645 msgstr ""
41646
41647 #. type: textblock
41648 #: ../src/guestfs.pod:2344
41649 msgid ""
41650 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
41651 "L</guestfs_launch> blocks until the child process is READY to accept "
41652 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
41653 "moves the state from CONFIG to LAUNCHING while it is running."
41654 msgstr ""
41655
41656 #. type: textblock
41657 #: ../src/guestfs.pod:2350
41658 msgid ""
41659 "API actions such as L</guestfs_mount> can only be issued when in the READY "
41660 "state.  These API calls block waiting for the command to be carried out (ie. "
41661 "the state to transition to BUSY and then back to READY).  There are no non-"
41662 "blocking versions, and no way to issue more than one command per handle at "
41663 "the same time."
41664 msgstr ""
41665
41666 #. type: textblock
41667 #: ../src/guestfs.pod:2356
41668 msgid ""
41669 "Finally, the child process sends asynchronous messages back to the main "
41670 "program, such as kernel log messages.  You can register a callback to "
41671 "receive these messages."
41672 msgstr ""
41673
41674 #. type: =head1
41675 #: ../src/guestfs.pod:2360
41676 msgid "INTERNALS"
41677 msgstr ""
41678
41679 #. type: =head2
41680 #: ../src/guestfs.pod:2362
41681 msgid "APPLIANCE BOOT PROCESS"
41682 msgstr ""
41683
41684 #. type: textblock
41685 #: ../src/guestfs.pod:2364
41686 msgid ""
41687 "This process has evolved and continues to evolve.  The description here "
41688 "corresponds only to the current version of libguestfs and is provided for "
41689 "information only."
41690 msgstr ""
41691
41692 #. type: textblock
41693 #: ../src/guestfs.pod:2368
41694 msgid ""
41695 "In order to follow the stages involved below, enable libguestfs debugging "
41696 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
41697 msgstr ""
41698
41699 #. type: =item
41700 #: ../src/guestfs.pod:2373
41701 msgid "Create the appliance"
41702 msgstr ""
41703
41704 #. type: textblock
41705 #: ../src/guestfs.pod:2375
41706 msgid ""
41707 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
41708 "initrd and the appliance."
41709 msgstr ""
41710
41711 #. type: textblock
41712 #: ../src/guestfs.pod:2378
41713 msgid ""
41714 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
41715 "directory if C<TMPDIR> is set)."
41716 msgstr ""
41717
41718 #. type: textblock
41719 #: ../src/guestfs.pod:2381
41720 msgid ""
41721 "For a complete description of how the appliance is created and cached, read "
41722 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
41723 msgstr ""
41724
41725 #. type: =item
41726 #: ../src/guestfs.pod:2385
41727 msgid "Start qemu and boot the kernel"
41728 msgstr ""
41729
41730 #. type: textblock
41731 #: ../src/guestfs.pod:2387
41732 msgid "qemu is invoked to boot the kernel."
41733 msgstr ""
41734
41735 #. type: =item
41736 #: ../src/guestfs.pod:2389
41737 msgid "Run the initrd"
41738 msgstr ""
41739
41740 #. type: textblock
41741 #: ../src/guestfs.pod:2391
41742 msgid ""
41743 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
41744 "appliance.  The purpose of the initrd is to load enough kernel modules in "
41745 "order that the appliance itself can be mounted and started."
41746 msgstr ""
41747
41748 #. type: textblock
41749 #: ../src/guestfs.pod:2395
41750 msgid ""
41751 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
41752 "initrd>."
41753 msgstr ""
41754
41755 #. type: textblock
41756 #: ../src/guestfs.pod:2398
41757 msgid ""
41758 "When the initrd has started you will see messages showing that kernel "
41759 "modules are being loaded, similar to this:"
41760 msgstr ""
41761
41762 #. type: verbatim
41763 #: ../src/guestfs.pod:2401
41764 #, no-wrap
41765 msgid ""
41766 " febootstrap: ext2 mini initrd starting up\n"
41767 " febootstrap: mounting /sys\n"
41768 " febootstrap: internal insmod libcrc32c.ko\n"
41769 " febootstrap: internal insmod crc32c-intel.ko\n"
41770 "\n"
41771 msgstr ""
41772
41773 #. type: =item
41774 #: ../src/guestfs.pod:2406
41775 msgid "Find and mount the appliance device"
41776 msgstr ""
41777
41778 #. type: textblock
41779 #: ../src/guestfs.pod:2408
41780 msgid ""
41781 "The appliance is a sparse file containing an ext2 filesystem which contains "
41782 "a familiar (although reduced in size) Linux operating system.  It would "
41783 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
41784 msgstr ""
41785
41786 #. type: textblock
41787 #: ../src/guestfs.pod:2412
41788 msgid ""
41789 "The regular disks being inspected by libguestfs are the first devices "
41790 "exposed by qemu (eg. as C</dev/vda>)."
41791 msgstr ""
41792
41793 #. type: textblock
41794 #: ../src/guestfs.pod:2415
41795 msgid ""
41796 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
41797 "there was only one regular disk)."
41798 msgstr ""
41799
41800 #. type: textblock
41801 #: ../src/guestfs.pod:2418
41802 msgid ""
41803 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
41804 "and switch root into the appliance, and run C</init> from the appliance."
41805 msgstr ""
41806
41807 #. type: textblock
41808 #: ../src/guestfs.pod:2422
41809 msgid "If this works successfully you will see messages such as:"
41810 msgstr ""
41811
41812 #. type: verbatim
41813 #: ../src/guestfs.pod:2424
41814 #, no-wrap
41815 msgid ""
41816 " febootstrap: picked /sys/block/vdb/dev as root device\n"
41817 " febootstrap: creating /dev/root as block special 252:16\n"
41818 " febootstrap: mounting new root on /root\n"
41819 " febootstrap: chroot\n"
41820 " Starting /init script ...\n"
41821 "\n"
41822 msgstr ""
41823
41824 #. type: textblock
41825 #: ../src/guestfs.pod:2430
41826 msgid ""
41827 "Note that C<Starting /init script ...> indicates that the appliance's init "
41828 "script is now running."
41829 msgstr ""
41830
41831 #. type: =item
41832 #: ../src/guestfs.pod:2433
41833 msgid "Initialize the appliance"
41834 msgstr ""
41835
41836 #. type: textblock
41837 #: ../src/guestfs.pod:2435
41838 msgid ""
41839 "The appliance itself now initializes itself.  This involves starting certain "
41840 "processes like C<udev>, possibly printing some debug information, and "
41841 "finally running the daemon (C<guestfsd>)."
41842 msgstr ""
41843
41844 #. type: =item
41845 #: ../src/guestfs.pod:2439
41846 msgid "The daemon"
41847 msgstr ""
41848
41849 #. type: textblock
41850 #: ../src/guestfs.pod:2441
41851 msgid ""
41852 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
41853 "should see:"
41854 msgstr ""
41855
41856 #. type: verbatim
41857 #: ../src/guestfs.pod:2444
41858 #, no-wrap
41859 msgid ""
41860 " verbose daemon enabled\n"
41861 "\n"
41862 msgstr ""
41863
41864 #. type: textblock
41865 #: ../src/guestfs.pod:2446
41866 msgid ""
41867 "The daemon expects to see a named virtio-serial port exposed by qemu and "
41868 "connected on the other end to the library."
41869 msgstr ""
41870
41871 #. type: textblock
41872 #: ../src/guestfs.pod:2449
41873 msgid ""
41874 "The daemon connects to this port (and hence to the library) and sends a four "
41875 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
41876 "protocol (see below)."
41877 msgstr ""
41878
41879 #. type: =head2
41880 #: ../src/guestfs.pod:2455
41881 msgid "COMMUNICATION PROTOCOL"
41882 msgstr ""
41883
41884 #. type: textblock
41885 #: ../src/guestfs.pod:2457
41886 msgid ""
41887 "Don't rely on using this protocol directly.  This section documents how it "
41888 "currently works, but it may change at any time."
41889 msgstr ""
41890
41891 #. type: textblock
41892 #: ../src/guestfs.pod:2460
41893 msgid ""
41894 "The protocol used to talk between the library and the daemon running inside "
41895 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
41896 "1014, RFC 1832, RFC 4506)."
41897 msgstr ""
41898
41899 #. type: textblock
41900 #: ../src/guestfs.pod:2464
41901 msgid ""
41902 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
41903 "this file is automatically generated)."
41904 msgstr ""
41905
41906 #. type: textblock
41907 #: ../src/guestfs.pod:2467
41908 msgid ""
41909 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
41910 "and C<FileOut> parameters, which are handled with very simple request/reply "
41911 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
41912 "parameters, which use the same request and reply messages, but they may also "
41913 "be followed by files sent using a chunked encoding."
41914 msgstr ""
41915
41916 #. type: =head3
41917 #: ../src/guestfs.pod:2474
41918 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
41919 msgstr ""
41920
41921 #. type: textblock
41922 #: ../src/guestfs.pod:2476
41923 msgid "For ordinary functions, the request message is:"
41924 msgstr ""
41925
41926 #. type: verbatim
41927 #: ../src/guestfs.pod:2478
41928 #, no-wrap
41929 msgid ""
41930 " total length (header + arguments,\n"
41931 "      but not including the length word itself)\n"
41932 " struct guestfs_message_header (encoded as XDR)\n"
41933 " struct guestfs_<foo>_args (encoded as XDR)\n"
41934 "\n"
41935 msgstr ""
41936
41937 #. type: textblock
41938 #: ../src/guestfs.pod:2483
41939 msgid ""
41940 "The total length field allows the daemon to allocate a fixed size buffer "
41941 "into which it slurps the rest of the message.  As a result, the total length "
41942 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
41943 "effective size of any request is limited to somewhere under this size."
41944 msgstr ""
41945
41946 #. type: textblock
41947 #: ../src/guestfs.pod:2489
41948 msgid ""
41949 "Note also that many functions don't take any arguments, in which case the "
41950 "C<guestfs_I<foo>_args> is completely omitted."
41951 msgstr ""
41952
41953 #. type: textblock
41954 #: ../src/guestfs.pod:2492
41955 msgid ""
41956 "The header contains the procedure number (C<guestfs_proc>) which is how the "
41957 "receiver knows what type of args structure to expect, or none at all."
41958 msgstr ""
41959
41960 #. type: textblock
41961 #: ../src/guestfs.pod:2496
41962 msgid ""
41963 "For functions that take optional arguments, the optional arguments are "
41964 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
41965 "arguments.  A bitmask in the header indicates which optional arguments are "
41966 "meaningful.  The bitmask is also checked to see if it contains bits set "
41967 "which the daemon does not know about (eg. if more optional arguments were "
41968 "added in a later version of the library), and this causes the call to be "
41969 "rejected."
41970 msgstr ""
41971
41972 #. type: textblock
41973 #: ../src/guestfs.pod:2504
41974 msgid "The reply message for ordinary functions is:"
41975 msgstr ""
41976
41977 #. type: verbatim
41978 #: ../src/guestfs.pod:2506
41979 #, no-wrap
41980 msgid ""
41981 " total length (header + ret,\n"
41982 "      but not including the length word itself)\n"
41983 " struct guestfs_message_header (encoded as XDR)\n"
41984 " struct guestfs_<foo>_ret (encoded as XDR)\n"
41985 "\n"
41986 msgstr ""
41987
41988 #. type: textblock
41989 #: ../src/guestfs.pod:2511
41990 msgid ""
41991 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
41992 "functions that return no formal return values."
41993 msgstr ""
41994
41995 #. type: textblock
41996 #: ../src/guestfs.pod:2514
41997 msgid ""
41998 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
41999 msgstr ""
42000
42001 #. type: textblock
42002 #: ../src/guestfs.pod:2517
42003 msgid ""
42004 "In the case of an error, a flag is set in the header, and the reply message "
42005 "is slightly changed:"
42006 msgstr ""
42007
42008 #. type: verbatim
42009 #: ../src/guestfs.pod:2520
42010 #, no-wrap
42011 msgid ""
42012 " total length (header + error,\n"
42013 "      but not including the length word itself)\n"
42014 " struct guestfs_message_header (encoded as XDR)\n"
42015 " struct guestfs_message_error (encoded as XDR)\n"
42016 "\n"
42017 msgstr ""
42018
42019 #. type: textblock
42020 #: ../src/guestfs.pod:2525
42021 msgid ""
42022 "The C<guestfs_message_error> structure contains the error message as a "
42023 "string."
42024 msgstr ""
42025
42026 #. type: =head3
42027 #: ../src/guestfs.pod:2528
42028 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
42029 msgstr ""
42030
42031 #. type: textblock
42032 #: ../src/guestfs.pod:2530
42033 msgid ""
42034 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
42035 "The normal request message is sent (see above).  However this is followed by "
42036 "a sequence of file chunks."
42037 msgstr ""
42038
42039 #. type: verbatim
42040 #: ../src/guestfs.pod:2534
42041 #, no-wrap
42042 msgid ""
42043 " total length (header + arguments,\n"
42044 "      but not including the length word itself,\n"
42045 "      and not including the chunks)\n"
42046 " struct guestfs_message_header (encoded as XDR)\n"
42047 " struct guestfs_<foo>_args (encoded as XDR)\n"
42048 " sequence of chunks for FileIn param #0\n"
42049 " sequence of chunks for FileIn param #1 etc.\n"
42050 "\n"
42051 msgstr ""
42052
42053 #. type: textblock
42054 #: ../src/guestfs.pod:2542
42055 msgid "The \"sequence of chunks\" is:"
42056 msgstr ""
42057
42058 #. type: verbatim
42059 #: ../src/guestfs.pod:2544
42060 #, no-wrap
42061 msgid ""
42062 " length of chunk (not including length word itself)\n"
42063 " struct guestfs_chunk (encoded as XDR)\n"
42064 " length of chunk\n"
42065 " struct guestfs_chunk (encoded as XDR)\n"
42066 "   ...\n"
42067 " length of chunk\n"
42068 " struct guestfs_chunk (with data.data_len == 0)\n"
42069 "\n"
42070 msgstr ""
42071
42072 #. type: textblock
42073 #: ../src/guestfs.pod:2552
42074 msgid ""
42075 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
42076 "is set in the final chunk to indicate either successful completion or early "
42077 "cancellation."
42078 msgstr ""
42079
42080 #. type: textblock
42081 #: ../src/guestfs.pod:2556
42082 msgid ""
42083 "At time of writing there are no functions that have more than one FileIn "
42084 "parameter.  However this is (theoretically) supported, by sending the "
42085 "sequence of chunks for each FileIn parameter one after another (from left to "
42086 "right)."
42087 msgstr ""
42088
42089 #. type: textblock
42090 #: ../src/guestfs.pod:2561
42091 msgid ""
42092 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
42093 "transfer.  The library does this by sending a chunk with a special flag set "
42094 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
42095 "RPC, does I<not> send any reply, and goes back to reading the next request."
42096 msgstr ""
42097
42098 #. type: textblock
42099 #: ../src/guestfs.pod:2567
42100 msgid ""
42101 "The daemon may also cancel.  It does this by writing a special word "
42102 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
42103 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
42104 "cancel chunk).  The special word is chosen so that even if cancellation "
42105 "happens right at the end of the transfer (after the library has finished "
42106 "writing and has started listening for the reply), the \"spurious\" cancel "
42107 "flag will not be confused with the reply message."
42108 msgstr ""
42109
42110 #. type: textblock
42111 #: ../src/guestfs.pod:2576
42112 msgid ""
42113 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
42114 "limit), and also files where the size is not known in advance (eg. from "
42115 "pipes or sockets).  However the chunks are rather small "
42116 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
42117 "to keep much in memory."
42118 msgstr ""
42119
42120 #. type: =head3
42121 #: ../src/guestfs.pod:2582
42122 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
42123 msgstr ""
42124
42125 #. type: textblock
42126 #: ../src/guestfs.pod:2584
42127 msgid ""
42128 "The protocol for FileOut parameters is exactly the same as for FileIn "
42129 "parameters, but with the roles of daemon and library reversed."
42130 msgstr ""
42131
42132 #. type: verbatim
42133 #: ../src/guestfs.pod:2587
42134 #, no-wrap
42135 msgid ""
42136 " total length (header + ret,\n"
42137 "      but not including the length word itself,\n"
42138 "      and not including the chunks)\n"
42139 " struct guestfs_message_header (encoded as XDR)\n"
42140 " struct guestfs_<foo>_ret (encoded as XDR)\n"
42141 " sequence of chunks for FileOut param #0\n"
42142 " sequence of chunks for FileOut param #1 etc.\n"
42143 "\n"
42144 msgstr ""
42145
42146 #. type: =head3
42147 #: ../src/guestfs.pod:2595
42148 msgid "INITIAL MESSAGE"
42149 msgstr ""
42150
42151 #. type: textblock
42152 #: ../src/guestfs.pod:2597
42153 msgid ""
42154 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
42155 "which indicates that the guest and daemon is alive.  This is what L</"
42156 "guestfs_launch> waits for."
42157 msgstr ""
42158
42159 #. type: =head3
42160 #: ../src/guestfs.pod:2601
42161 msgid "PROGRESS NOTIFICATION MESSAGES"
42162 msgstr ""
42163
42164 #. type: textblock
42165 #: ../src/guestfs.pod:2603
42166 msgid ""
42167 "The daemon may send progress notification messages at any time.  These are "
42168 "distinguished by the normal length word being replaced by "
42169 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
42170 msgstr ""
42171
42172 #. type: textblock
42173 #: ../src/guestfs.pod:2607
42174 msgid ""
42175 "The library turns them into progress callbacks (see L</"
42176 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
42177 "if not."
42178 msgstr ""
42179
42180 #. type: textblock
42181 #: ../src/guestfs.pod:2611
42182 msgid ""
42183 "The daemon self-limits the frequency of progress messages it sends (see "
42184 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
42185 "messages."
42186 msgstr ""
42187
42188 #. type: =head1
42189 #: ../src/guestfs.pod:2615
42190 msgid "LIBGUESTFS VERSION NUMBERS"
42191 msgstr ""
42192
42193 #. type: textblock
42194 #: ../src/guestfs.pod:2617
42195 msgid ""
42196 "Since April 2010, libguestfs has started to make separate development and "
42197 "stable releases, along with corresponding branches in our git repository.  "
42198 "These separate releases can be identified by version number:"
42199 msgstr ""
42200
42201 #. type: verbatim
42202 #: ../src/guestfs.pod:2622
42203 #, no-wrap
42204 msgid ""
42205 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
42206 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
42207 "       |\n"
42208 "       v\n"
42209 " 1  .  3  .  5\n"
42210 " ^           ^\n"
42211 " |           |\n"
42212 " |           `-------- sub-version\n"
42213 " |\n"
42214 " `------ always '1' because we don't change the ABI\n"
42215 "\n"
42216 msgstr ""
42217
42218 #. type: textblock
42219 #: ../src/guestfs.pod:2633
42220 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
42221 msgstr ""
42222
42223 #. type: textblock
42224 #: ../src/guestfs.pod:2635
42225 msgid ""
42226 "As time passes we cherry pick fixes from the development branch and backport "
42227 "those into the stable branch, the effect being that the stable branch should "
42228 "get more stable and less buggy over time.  So the stable releases are ideal "
42229 "for people who don't need new features but would just like the software to "
42230 "work."
42231 msgstr ""
42232
42233 #. type: textblock
42234 #: ../src/guestfs.pod:2641
42235 msgid "Our criteria for backporting changes are:"
42236 msgstr ""
42237
42238 #. type: textblock
42239 #: ../src/guestfs.pod:2647
42240 msgid ""
42241 "Documentation changes which don't affect any code are backported unless the "
42242 "documentation refers to a future feature which is not in stable."
42243 msgstr ""
42244
42245 #. type: textblock
42246 #: ../src/guestfs.pod:2653
42247 msgid ""
42248 "Bug fixes which are not controversial, fix obvious problems, and have been "
42249 "well tested are backported."
42250 msgstr ""
42251
42252 #. type: textblock
42253 #: ../src/guestfs.pod:2658
42254 msgid ""
42255 "Simple rearrangements of code which shouldn't affect how it works get "
42256 "backported.  This is so that the code in the two branches doesn't get too "
42257 "far out of step, allowing us to backport future fixes more easily."
42258 msgstr ""
42259
42260 #. type: textblock
42261 #: ../src/guestfs.pod:2664
42262 msgid ""
42263 "We I<don't> backport new features, new APIs, new tools etc, except in one "
42264 "exceptional case: the new feature is required in order to implement an "
42265 "important bug fix."
42266 msgstr ""
42267
42268 #. type: textblock
42269 #: ../src/guestfs.pod:2670
42270 msgid ""
42271 "A new stable branch starts when we think the new features in development are "
42272 "substantial and compelling enough over the current stable branch to warrant "
42273 "it.  When that happens we create new stable and development versions 1.N.0 "
42274 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
42275 "stable at this point, but by backporting fixes from development, that branch "
42276 "will stabilize over time."
42277 msgstr ""
42278
42279 #. type: =head1
42280 #: ../src/guestfs.pod:2678
42281 msgid "EXTENDING LIBGUESTFS"
42282 msgstr ""
42283
42284 #. type: =head2
42285 #: ../src/guestfs.pod:2680
42286 msgid "ADDING A NEW API ACTION"
42287 msgstr ""
42288
42289 #. type: textblock
42290 #: ../src/guestfs.pod:2682
42291 msgid ""
42292 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
42293 "documentation) are generated, and this makes it easy to extend the "
42294 "libguestfs API."
42295 msgstr ""
42296
42297 #. type: textblock
42298 #: ../src/guestfs.pod:2686
42299 msgid "To add a new API action there are two changes:"
42300 msgstr ""
42301
42302 #. type: textblock
42303 #: ../src/guestfs.pod:2692
42304 msgid ""
42305 "You need to add a description of the call (name, parameters, return type, "
42306 "tests, documentation) to C<generator/generator_actions.ml>."
42307 msgstr ""
42308
42309 #. type: textblock
42310 #: ../src/guestfs.pod:2695
42311 msgid ""
42312 "There are two sorts of API action, depending on whether the call goes "
42313 "through to the daemon in the appliance, or is serviced entirely by the "
42314 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
42315 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
42316 "an example of the latter, since a trace flag is maintained in the handle and "
42317 "all tracing is done on the library side."
42318 msgstr ""
42319
42320 #. type: textblock
42321 #: ../src/guestfs.pod:2703
42322 msgid ""
42323 "Most new actions are of the first type, and get added to the "
42324 "C<daemon_functions> list.  Each function has a unique procedure number used "
42325 "in the RPC protocol which is assigned to that action when we publish "
42326 "libguestfs and cannot be reused.  Take the latest procedure number and "
42327 "increment it."
42328 msgstr ""
42329
42330 #. type: textblock
42331 #: ../src/guestfs.pod:2709
42332 msgid ""
42333 "For library-only actions of the second type, add to the "
42334 "C<non_daemon_functions> list.  Since these functions are serviced by the "
42335 "library and do not travel over the RPC mechanism to the daemon, these "
42336 "functions do not need a procedure number, and so the procedure number is set "
42337 "to C<-1>."
42338 msgstr ""
42339
42340 #. type: textblock
42341 #: ../src/guestfs.pod:2717
42342 msgid "Implement the action (in C):"
42343 msgstr ""
42344
42345 #. type: textblock
42346 #: ../src/guestfs.pod:2719
42347 msgid ""
42348 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
42349 "C<daemon/> directory."
42350 msgstr ""
42351
42352 #. type: textblock
42353 #: ../src/guestfs.pod:2722
42354 msgid ""
42355 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
42356 "(note: double underscore) in the C<src/> directory."
42357 msgstr ""
42358
42359 #. type: textblock
42360 #: ../src/guestfs.pod:2725
42361 msgid "In either case, use another function as an example of what to do."
42362 msgstr ""
42363
42364 #. type: textblock
42365 #: ../src/guestfs.pod:2729
42366 msgid "After making these changes, use C<make> to compile."
42367 msgstr ""
42368
42369 #. type: textblock
42370 #: ../src/guestfs.pod:2731
42371 msgid ""
42372 "Note that you don't need to implement the RPC, language bindings, manual "
42373 "pages or anything else.  It's all automatically generated from the OCaml "
42374 "description."
42375 msgstr ""
42376
42377 #. type: =head2
42378 #: ../src/guestfs.pod:2735
42379 msgid "ADDING TESTS FOR AN API ACTION"
42380 msgstr ""
42381
42382 #. type: textblock
42383 #: ../src/guestfs.pod:2737
42384 msgid ""
42385 "You can supply zero or as many tests as you want per API call.  The tests "
42386 "can either be added as part of the API description (C<generator/"
42387 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
42388 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
42389 "slower, so if possible use the first method."
42390 msgstr ""
42391
42392 #. type: textblock
42393 #: ../src/guestfs.pod:2743
42394 msgid ""
42395 "The following describes the test environment used when you add an API test "
42396 "in C<generator_actions.ml>."
42397 msgstr ""
42398
42399 #. type: textblock
42400 #: ../src/guestfs.pod:2746
42401 msgid "The test environment has 4 block devices:"
42402 msgstr ""
42403
42404 #. type: =item
42405 #: ../src/guestfs.pod:2750
42406 msgid "C</dev/sda> 500MB"
42407 msgstr "C</dev/sda> 500 МБ"
42408
42409 #. type: textblock
42410 #: ../src/guestfs.pod:2752
42411 msgid "General block device for testing."
42412 msgstr ""
42413
42414 #. type: =item
42415 #: ../src/guestfs.pod:2754
42416 msgid "C</dev/sdb> 50MB"
42417 msgstr "C</dev/sdb> 50 МБ"
42418
42419 #. type: textblock
42420 #: ../src/guestfs.pod:2756
42421 msgid ""
42422 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
42423 "operations."
42424 msgstr ""
42425
42426 #. type: =item
42427 #: ../src/guestfs.pod:2759
42428 msgid "C</dev/sdc> 10MB"
42429 msgstr "C</dev/sdc> 10 МБ"
42430
42431 #. type: textblock
42432 #: ../src/guestfs.pod:2761
42433 msgid "Used in a few tests where two block devices are needed."
42434 msgstr ""
42435
42436 #. type: =item
42437 #: ../src/guestfs.pod:2763
42438 msgid "C</dev/sdd>"
42439 msgstr "C</dev/sdd>"
42440
42441 #. type: textblock
42442 #: ../src/guestfs.pod:2765
42443 msgid "ISO with fixed content (see C<images/test.iso>)."
42444 msgstr ""
42445
42446 #. type: textblock
42447 #: ../src/guestfs.pod:2769
42448 msgid ""
42449 "To be able to run the tests in a reasonable amount of time, the libguestfs "
42450 "appliance and block devices are reused between tests.  So don't try testing "
42451 "L</guestfs_kill_subprocess> :-x"
42452 msgstr ""
42453
42454 #. type: textblock
42455 #: ../src/guestfs.pod:2773
42456 msgid ""
42457 "Each test starts with an initial scenario, selected using one of the "
42458 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
42459 "initialize the disks mentioned above in a particular way as documented in "
42460 "C<generator_types.ml>.  You should not assume anything about the previous "
42461 "contents of other disks that are not initialized."
42462 msgstr ""
42463
42464 #. type: textblock
42465 #: ../src/guestfs.pod:2779
42466 msgid ""
42467 "You can add a prerequisite clause to any individual test.  This is a run-"
42468 "time check, which, if it fails, causes the test to be skipped.  Useful if "
42469 "testing a command which might not work on all variations of libguestfs "
42470 "builds.  A test that has prerequisite of C<Always> means to run "
42471 "unconditionally."
42472 msgstr ""
42473
42474 #. type: textblock
42475 #: ../src/guestfs.pod:2785
42476 msgid ""
42477 "In addition, packagers can skip individual tests by setting environment "
42478 "variables before running C<make check>."
42479 msgstr ""
42480
42481 #. type: verbatim
42482 #: ../src/guestfs.pod:2788
42483 #, no-wrap
42484 msgid ""
42485 " SKIP_TEST_<CMD>_<NUM>=1\n"
42486 "\n"
42487 msgstr ""
42488
42489 #. type: textblock
42490 #: ../src/guestfs.pod:2790
42491 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
42492 msgstr ""
42493
42494 #. type: verbatim
42495 #: ../src/guestfs.pod:2794
42496 #, no-wrap
42497 msgid ""
42498 " SKIP_TEST_<CMD>=1\n"
42499 "\n"
42500 msgstr ""
42501
42502 #. type: textblock
42503 #: ../src/guestfs.pod:2796
42504 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
42505 msgstr ""
42506
42507 #. type: textblock
42508 #: ../src/guestfs.pod:2798
42509 msgid "Packagers can run only certain tests by setting for example:"
42510 msgstr ""
42511
42512 #. type: verbatim
42513 #: ../src/guestfs.pod:2800
42514 #, no-wrap
42515 msgid ""
42516 " TEST_ONLY=\"vfs_type zerofree\"\n"
42517 "\n"
42518 msgstr ""
42519
42520 #. type: textblock
42521 #: ../src/guestfs.pod:2802
42522 msgid ""
42523 "See C<capitests/tests.c> for more details of how these environment variables "
42524 "work."
42525 msgstr ""
42526
42527 #. type: =head2
42528 #: ../src/guestfs.pod:2805
42529 msgid "DEBUGGING NEW API ACTIONS"
42530 msgstr ""
42531
42532 #. type: textblock
42533 #: ../src/guestfs.pod:2807
42534 msgid "Test new actions work before submitting them."
42535 msgstr ""
42536
42537 #. type: textblock
42538 #: ../src/guestfs.pod:2809
42539 msgid "You can use guestfish to try out new commands."
42540 msgstr ""
42541
42542 #. type: textblock
42543 #: ../src/guestfs.pod:2811
42544 msgid ""
42545 "Debugging the daemon is a problem because it runs inside a minimal "
42546 "environment.  However you can fprintf messages in the daemon to stderr, and "
42547 "they will show up if you use C<guestfish -v>."
42548 msgstr ""
42549
42550 #. type: =head2
42551 #: ../src/guestfs.pod:2815
42552 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
42553 msgstr ""
42554
42555 #. type: textblock
42556 #: ../src/guestfs.pod:2817
42557 msgid ""
42558 "Our C source code generally adheres to some basic code-formatting "
42559 "conventions.  The existing code base is not totally consistent on this "
42560 "front, but we do prefer that contributed code be formatted similarly.  In "
42561 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
42562 "indentation level, and other than that, follow the K&R style."
42563 msgstr ""
42564
42565 #. type: textblock
42566 #: ../src/guestfs.pod:2823
42567 msgid ""
42568 "If you use Emacs, add the following to one of one of your start-up files (e."
42569 "g., ~/.emacs), to help ensure that you get indentation right:"
42570 msgstr ""
42571
42572 #. type: verbatim
42573 #: ../src/guestfs.pod:2826
42574 #, no-wrap
42575 msgid ""
42576 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
42577 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
42578 " (add-hook 'find-file-hook\n"
42579 "     '(lambda () (if (and buffer-file-name\n"
42580 "                          (string-match \"/libguestfs\\\\>\"\n"
42581 "                              (buffer-file-name))\n"
42582 "                          (not (string-equal mode-name \"Change Log\"))\n"
42583 "                          (not (string-equal mode-name \"Makefile\")))\n"
42584 "                     (setq indent-tabs-mode nil))))\n"
42585 " \n"
42586 msgstr ""
42587
42588 #. type: verbatim
42589 #: ../src/guestfs.pod:2836
42590 #, no-wrap
42591 msgid ""
42592 " ;;; When editing C sources in libguestfs, use this style.\n"
42593 " (defun libguestfs-c-mode ()\n"
42594 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
42595 "   (interactive)\n"
42596 "   (c-set-style \"K&R\")\n"
42597 "   (setq c-indent-level 2)\n"
42598 "   (setq c-basic-offset 2))\n"
42599 " (add-hook 'c-mode-hook\n"
42600 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
42601 "                               (buffer-file-name))\n"
42602 "                           (libguestfs-c-mode))))\n"
42603 "\n"
42604 msgstr ""
42605
42606 #. type: textblock
42607 #: ../src/guestfs.pod:2848
42608 msgid "Enable warnings when compiling (and fix any problems this finds):"
42609 msgstr ""
42610
42611 #. type: verbatim
42612 #: ../src/guestfs.pod:2851
42613 #, no-wrap
42614 msgid ""
42615 " ./configure --enable-gcc-warnings\n"
42616 "\n"
42617 msgstr ""
42618 " ./configure --enable-gcc-warnings\n"
42619 "\n"
42620
42621 #. type: textblock
42622 #: ../src/guestfs.pod:2853
42623 msgid "Useful targets are:"
42624 msgstr ""
42625
42626 #. type: verbatim
42627 #: ../src/guestfs.pod:2855
42628 #, no-wrap
42629 msgid ""
42630 " make syntax-check  # checks the syntax of the C code\n"
42631 " make check         # runs the test suite\n"
42632 "\n"
42633 msgstr ""
42634
42635 #. type: =head2
42636 #: ../src/guestfs.pod:2858
42637 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
42638 msgstr ""
42639
42640 #. type: textblock
42641 #: ../src/guestfs.pod:2860
42642 msgid ""
42643 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
42644 "which are used to do shell quoting."
42645 msgstr ""
42646
42647 #. type: =item
42648 #: ../src/guestfs.pod:2865
42649 msgid "%Q"
42650 msgstr "%Q"
42651
42652 #. type: textblock
42653 #: ../src/guestfs.pod:2867
42654 msgid ""
42655 "Simple shell quoted string.  Any spaces or other shell characters are "
42656 "escaped for you."
42657 msgstr ""
42658
42659 #. type: =item
42660 #: ../src/guestfs.pod:2870
42661 msgid "%R"
42662 msgstr "%R"
42663
42664 #. type: textblock
42665 #: ../src/guestfs.pod:2872
42666 msgid ""
42667 "Same as C<%Q> except the string is treated as a path which is prefixed by "
42668 "the sysroot."
42669 msgstr ""
42670
42671 #. type: verbatim
42672 #: ../src/guestfs.pod:2879
42673 #, no-wrap
42674 msgid ""
42675 " asprintf (&cmd, \"cat %R\", path);\n"
42676 "\n"
42677 msgstr ""
42678 " asprintf (&cmd, \"cat %R\", path);\n"
42679 "\n"
42680
42681 #. type: textblock
42682 #: ../src/guestfs.pod:2881
42683 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
42684 msgstr ""
42685
42686 #. type: textblock
42687 #: ../src/guestfs.pod:2883
42688 msgid ""
42689 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
42690 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
42691 "they are not passed via the shell (instead, straight to exec).  You probably "
42692 "want to use the C<sysroot_path()> function however."
42693 msgstr ""
42694
42695 #. type: =head2
42696 #: ../src/guestfs.pod:2889
42697 msgid "SUBMITTING YOUR NEW API ACTIONS"
42698 msgstr ""
42699
42700 #. type: textblock
42701 #: ../src/guestfs.pod:2891
42702 msgid ""
42703 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
42704 "libguestfs> and CC to L<rjones@redhat.com>."
42705 msgstr ""
42706
42707 #. type: =head2
42708 #: ../src/guestfs.pod:2895
42709 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
42710 msgstr ""
42711
42712 #. type: textblock
42713 #: ../src/guestfs.pod:2897
42714 msgid "We support i18n (gettext anyhow) in the library."
42715 msgstr ""
42716
42717 #. type: textblock
42718 #: ../src/guestfs.pod:2899
42719 msgid ""
42720 "However many messages come from the daemon, and we don't translate those at "
42721 "the moment.  One reason is that the appliance generally has all locale files "
42722 "removed from it, because they take up a lot of space.  So we'd have to readd "
42723 "some of those, as well as copying our PO files into the appliance."
42724 msgstr ""
42725
42726 #. type: textblock
42727 #: ../src/guestfs.pod:2905
42728 msgid ""
42729 "Debugging messages are never translated, since they are intended for the "
42730 "programmers."
42731 msgstr ""
42732
42733 #. type: =head2
42734 #: ../src/guestfs.pod:2908
42735 msgid "SOURCE CODE SUBDIRECTORIES"
42736 msgstr ""
42737
42738 #. type: =item
42739 #: ../src/guestfs.pod:2912
42740 msgid "C<align>"
42741 msgstr ""
42742
42743 #. type: textblock
42744 #: ../src/guestfs.pod:2914
42745 msgid "L<virt-alignment-scan(1)> command and documentation."
42746 msgstr ""
42747
42748 #. type: textblock
42749 #: ../src/guestfs.pod:2918
42750 msgid "The libguestfs appliance, build scripts and so on."
42751 msgstr ""
42752
42753 #. type: =item
42754 #: ../src/guestfs.pod:2920
42755 msgid "C<capitests>"
42756 msgstr "C<capitests>"
42757
42758 #. type: textblock
42759 #: ../src/guestfs.pod:2922
42760 msgid "Automated tests of the C API."
42761 msgstr ""
42762
42763 #. type: =item
42764 #: ../src/guestfs.pod:2924
42765 msgid "C<cat>"
42766 msgstr "C<cat>"
42767
42768 #. type: textblock
42769 #: ../src/guestfs.pod:2926
42770 msgid ""
42771 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
42772 "documentation."
42773 msgstr ""
42774
42775 #. type: =item
42776 #: ../src/guestfs.pod:2929
42777 msgid "C<caution>"
42778 msgstr "C<caution>"
42779
42780 #. type: textblock
42781 #: ../src/guestfs.pod:2931
42782 msgid ""
42783 "Safety and liveness tests of components that libguestfs depends upon (not of "
42784 "libguestfs itself).  Mainly this is for qemu and the kernel."
42785 msgstr ""
42786
42787 #. type: =item
42788 #: ../src/guestfs.pod:2934
42789 msgid "C<clone>"
42790 msgstr ""
42791
42792 #. type: textblock
42793 #: ../src/guestfs.pod:2936
42794 msgid ""
42795 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
42796 "command and documentation."
42797 msgstr ""
42798
42799 #. type: =item
42800 #: ../src/guestfs.pod:2939
42801 msgid "C<contrib>"
42802 msgstr "C<contrib>"
42803
42804 #. type: textblock
42805 #: ../src/guestfs.pod:2941
42806 msgid "Outside contributions, experimental parts."
42807 msgstr ""
42808
42809 #. type: =item
42810 #: ../src/guestfs.pod:2943
42811 msgid "C<daemon>"
42812 msgstr "C<daemon>"
42813
42814 #. type: textblock
42815 #: ../src/guestfs.pod:2945
42816 msgid ""
42817 "The daemon that runs inside the libguestfs appliance and carries out actions."
42818 msgstr ""
42819
42820 #. type: =item
42821 #: ../src/guestfs.pod:2948
42822 msgid "C<df>"
42823 msgstr "C<df>"
42824
42825 #. type: textblock
42826 #: ../src/guestfs.pod:2950
42827 msgid "L<virt-df(1)> command and documentation."
42828 msgstr ""
42829
42830 #. type: =item
42831 #: ../src/guestfs.pod:2952
42832 msgid "C<edit>"
42833 msgstr "C<edit>"
42834
42835 #. type: textblock
42836 #: ../src/guestfs.pod:2954
42837 msgid "L<virt-edit(1)> command and documentation."
42838 msgstr ""
42839
42840 #. type: =item
42841 #: ../src/guestfs.pod:2956
42842 msgid "C<examples>"
42843 msgstr "C<examples>"
42844
42845 #. type: textblock
42846 #: ../src/guestfs.pod:2958
42847 msgid "C API example code."
42848 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
42849
42850 #. type: =item
42851 #: ../src/guestfs.pod:2960
42852 #, fuzzy
42853 #| msgid "C<capitests>"
42854 msgid "C<extratests>"
42855 msgstr "C<capitests>"
42856
42857 #. type: textblock
42858 #: ../src/guestfs.pod:2962
42859 msgid ""
42860 "Extra tests.  These are not run by default because they require special "
42861 "tools or configuration."
42862 msgstr ""
42863
42864 #. type: =item
42865 #: ../src/guestfs.pod:2965
42866 msgid "C<fish>"
42867 msgstr "C<fish>"
42868
42869 #. type: textblock
42870 #: ../src/guestfs.pod:2967
42871 msgid ""
42872 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
42873 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
42874 "L<virt-tar-out(1)>."
42875 msgstr ""
42876
42877 #. type: =item
42878 #: ../src/guestfs.pod:2971
42879 msgid "C<fuse>"
42880 msgstr "C<fuse>"
42881
42882 #. type: textblock
42883 #: ../src/guestfs.pod:2973
42884 msgid ""
42885 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
42886 msgstr ""
42887
42888 #. type: =item
42889 #: ../src/guestfs.pod:2975
42890 msgid "C<generator>"
42891 msgstr "C<generator>"
42892
42893 #. type: textblock
42894 #: ../src/guestfs.pod:2977
42895 msgid ""
42896 "The crucially important generator, used to automatically generate large "
42897 "amounts of boilerplate C code for things like RPC and bindings."
42898 msgstr ""
42899
42900 #. type: =item
42901 #: ../src/guestfs.pod:2980
42902 msgid "C<images>"
42903 msgstr "C<images>"
42904
42905 #. type: textblock
42906 #: ../src/guestfs.pod:2982
42907 msgid "Files used by the test suite."
42908 msgstr ""
42909
42910 #. type: textblock
42911 #: ../src/guestfs.pod:2984
42912 msgid "Some \"phony\" guest images which we test against."
42913 msgstr ""
42914
42915 #. type: =item
42916 #: ../src/guestfs.pod:2986
42917 msgid "C<inspector>"
42918 msgstr "C<inspector>"
42919
42920 #. type: textblock
42921 #: ../src/guestfs.pod:2988
42922 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
42923 msgstr ""
42924
42925 #. type: =item
42926 #: ../src/guestfs.pod:2990
42927 msgid "C<logo>"
42928 msgstr "C<logo>"
42929
42930 #. type: textblock
42931 #: ../src/guestfs.pod:2992
42932 msgid "Logo used on the website.  The fish is called Arthur by the way."
42933 msgstr ""
42934
42935 #. type: =item
42936 #: ../src/guestfs.pod:2994
42937 msgid "C<m4>"
42938 msgstr "C<m4>"
42939
42940 #. type: textblock
42941 #: ../src/guestfs.pod:2996
42942 msgid "M4 macros used by autoconf."
42943 msgstr ""
42944
42945 #. type: =item
42946 #: ../src/guestfs.pod:2998
42947 msgid "C<po>"
42948 msgstr "C<po>"
42949
42950 #. type: textblock
42951 #: ../src/guestfs.pod:3000
42952 msgid "Translations of simple gettext strings."
42953 msgstr "Переклади простих рядків gettext."
42954
42955 #. type: =item
42956 #: ../src/guestfs.pod:3002
42957 msgid "C<po-docs>"
42958 msgstr "C<po-docs>"
42959
42960 #. type: textblock
42961 #: ../src/guestfs.pod:3004
42962 msgid ""
42963 "The build infrastructure and PO files for translations of manpages and POD "
42964 "files.  Eventually this will be combined with the C<po> directory, but that "
42965 "is rather complicated."
42966 msgstr ""
42967
42968 #. type: =item
42969 #: ../src/guestfs.pod:3008
42970 msgid "C<regressions>"
42971 msgstr "C<regressions>"
42972
42973 #. type: textblock
42974 #: ../src/guestfs.pod:3010
42975 msgid "Regression tests."
42976 msgstr "Тести на регресії."
42977
42978 #. type: =item
42979 #: ../src/guestfs.pod:3012
42980 msgid "C<rescue>"
42981 msgstr "C<rescue>"
42982
42983 #. type: textblock
42984 #: ../src/guestfs.pod:3014
42985 msgid "L<virt-rescue(1)> command and documentation."
42986 msgstr ""
42987
42988 #. type: =item
42989 #: ../src/guestfs.pod:3016
42990 msgid "C<resize>"
42991 msgstr ""
42992
42993 #. type: textblock
42994 #: ../src/guestfs.pod:3018
42995 msgid "L<virt-resize(1)> command and documentation."
42996 msgstr ""
42997
42998 #. type: =item
42999 #: ../src/guestfs.pod:3020
43000 msgid "C<sparsify>"
43001 msgstr ""
43002
43003 #. type: textblock
43004 #: ../src/guestfs.pod:3022
43005 msgid "L<virt-sparsify(1)> command and documentation."
43006 msgstr ""
43007
43008 #. type: =item
43009 #: ../src/guestfs.pod:3024
43010 msgid "C<src>"
43011 msgstr "C<src>"
43012
43013 #. type: textblock
43014 #: ../src/guestfs.pod:3026
43015 msgid "Source code to the C library."
43016 msgstr ""
43017
43018 #. type: =item
43019 #: ../src/guestfs.pod:3028
43020 msgid "C<tools>"
43021 msgstr "C<tools>"
43022
43023 #. type: textblock
43024 #: ../src/guestfs.pod:3030
43025 msgid ""
43026 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
43027 msgstr ""
43028
43029 #. type: =item
43030 #: ../src/guestfs.pod:3032
43031 msgid "C<test-tool>"
43032 msgstr "C<test-tool>"
43033
43034 #. type: textblock
43035 #: ../src/guestfs.pod:3034
43036 msgid ""
43037 "Test tool for end users to test if their qemu/kernel combination will work "
43038 "with libguestfs."
43039 msgstr ""
43040
43041 #. type: =item
43042 #: ../src/guestfs.pod:3037
43043 msgid "C<csharp>"
43044 msgstr "C<csharp>"
43045
43046 #. type: =item
43047 #: ../src/guestfs.pod:3039
43048 msgid "C<erlang>"
43049 msgstr ""
43050
43051 #. type: =item
43052 #: ../src/guestfs.pod:3041
43053 msgid "C<haskell>"
43054 msgstr "C<haskell>"
43055
43056 #. type: =item
43057 #: ../src/guestfs.pod:3043
43058 msgid "C<java>"
43059 msgstr "C<java>"
43060
43061 #. type: =item
43062 #: ../src/guestfs.pod:3045
43063 msgid "C<ocaml>"
43064 msgstr "C<ocaml>"
43065
43066 #. type: =item
43067 #: ../src/guestfs.pod:3047
43068 msgid "C<php>"
43069 msgstr "C<php>"
43070
43071 #. type: =item
43072 #: ../src/guestfs.pod:3049
43073 msgid "C<perl>"
43074 msgstr "C<perl>"
43075
43076 #. type: =item
43077 #: ../src/guestfs.pod:3051
43078 msgid "C<python>"
43079 msgstr "C<python>"
43080
43081 #. type: =item
43082 #: ../src/guestfs.pod:3053
43083 msgid "C<ruby>"
43084 msgstr "C<ruby>"
43085
43086 #. type: textblock
43087 #: ../src/guestfs.pod:3055
43088 msgid "Language bindings."
43089 msgstr "Прив’язки до мов програмування."
43090
43091 #. type: =head2
43092 #: ../src/guestfs.pod:3059
43093 msgid "MAKING A STABLE RELEASE"
43094 msgstr ""
43095
43096 #. type: textblock
43097 #: ../src/guestfs.pod:3061
43098 msgid ""
43099 "When we make a stable release, there are several steps documented here.  See "
43100 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
43101 "branch policy."
43102 msgstr ""
43103
43104 #. type: textblock
43105 #: ../src/guestfs.pod:3069
43106 msgid ""
43107 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
43108 msgstr ""
43109
43110 #. type: textblock
43111 #: ../src/guestfs.pod:3074
43112 msgid "Finalize RELEASE-NOTES."
43113 msgstr ""
43114
43115 #. type: textblock
43116 #: ../src/guestfs.pod:3078
43117 msgid "Update ROADMAP."
43118 msgstr ""
43119
43120 #. type: textblock
43121 #: ../src/guestfs.pod:3082
43122 msgid "Run C<src/api-support/update-from-tarballs.sh>."
43123 msgstr ""
43124
43125 #. type: textblock
43126 #: ../src/guestfs.pod:3086
43127 msgid "Push and pull from Transifex."
43128 msgstr ""
43129
43130 #. type: verbatim
43131 #: ../src/guestfs.pod:3090
43132 #, no-wrap
43133 msgid ""
43134 " tx push -s\n"
43135 "\n"
43136 msgstr ""
43137
43138 #. type: textblock
43139 #: ../src/guestfs.pod:3092
43140 msgid "to push the latest POT files to Transifex.  Then run:"
43141 msgstr ""
43142
43143 #. type: verbatim
43144 #: ../src/guestfs.pod:3094
43145 #, no-wrap
43146 msgid ""
43147 " ./tx-pull.sh\n"
43148 "\n"
43149 msgstr ""
43150
43151 #. type: textblock
43152 #: ../src/guestfs.pod:3096
43153 msgid "which is a wrapper to pull the latest translated C<*.po> files."
43154 msgstr ""
43155
43156 #. type: textblock
43157 #: ../src/guestfs.pod:3100
43158 msgid ""
43159 "Create new stable and development directories under L<http://libguestfs.org/"
43160 "download>."
43161 msgstr ""
43162
43163 #. type: textblock
43164 #: ../src/guestfs.pod:3105
43165 msgid "Create the branch in git:"
43166 msgstr ""
43167
43168 #. type: verbatim
43169 #: ../src/guestfs.pod:3107
43170 #, no-wrap
43171 msgid ""
43172 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
43173 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
43174 " git branch stable-1.XX\n"
43175 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
43176 "\n"
43177 msgstr ""
43178
43179 #. type: =head1
43180 #: ../src/guestfs.pod:3114
43181 msgid "LIMITS"
43182 msgstr "ОБМЕЖЕННЯ"
43183
43184 #. type: =head2
43185 #: ../src/guestfs.pod:3116
43186 msgid "PROTOCOL LIMITS"
43187 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
43188
43189 #. type: textblock
43190 #: ../src/guestfs.pod:3118
43191 msgid ""
43192 "Internally libguestfs uses a message-based protocol to pass API calls and "
43193 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
43194 "plenty more detail about this).  The maximum message size used by the "
43195 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
43196 "aware of this limit.  The API calls which may be affected are individually "
43197 "documented, with a link back to this section of the documentation."
43198 msgstr ""
43199
43200 #. type: textblock
43201 #: ../src/guestfs.pod:3126
43202 msgid ""
43203 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
43204 "a simple string.  Because this string is at some point internally encoded as "
43205 "a message, the maximum size that it can return is slightly under 4 MB.  If "
43206 "the requested file is larger than this then you will get an error."
43207 msgstr ""
43208
43209 #. type: textblock
43210 #: ../src/guestfs.pod:3132
43211 msgid ""
43212 "In order to transfer large files into and out of the guest filesystem, you "
43213 "need to use particular calls that support this.  The sections L</UPLOADING> "
43214 "and L</DOWNLOADING> document how to do this."
43215 msgstr ""
43216
43217 #. type: textblock
43218 #: ../src/guestfs.pod:3136
43219 msgid ""
43220 "You might also consider mounting the disk image using our FUSE filesystem "
43221 "support (L<guestmount(1)>)."
43222 msgstr ""
43223
43224 #. type: =head2
43225 #: ../src/guestfs.pod:3139
43226 msgid "MAXIMUM NUMBER OF DISKS"
43227 msgstr ""
43228
43229 #. type: textblock
43230 #: ../src/guestfs.pod:3141
43231 msgid "When using virtio disks (the default) the current limit is B<25> disks."
43232 msgstr ""
43233
43234 #. type: textblock
43235 #: ../src/guestfs.pod:3144
43236 msgid ""
43237 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
43238 "slots.  However febootstrap only understands disks with names C</dev/vda> "
43239 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
43240 "purposes."
43241 msgstr ""
43242
43243 #. type: textblock
43244 #: ../src/guestfs.pod:3149
43245 msgid ""
43246 "We are working to substantially raise this limit in future versions but it "
43247 "requires complex changes to qemu."
43248 msgstr ""
43249
43250 #. type: textblock
43251 #: ../src/guestfs.pod:3152
43252 msgid ""
43253 "In future versions of libguestfs it should also be possible to \"hot plug\" "
43254 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
43255 "requires changes to qemu."
43256 msgstr ""
43257
43258 #. type: =head2
43259 #: ../src/guestfs.pod:3156
43260 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
43261 msgstr ""
43262
43263 #. type: textblock
43264 #: ../src/guestfs.pod:3158
43265 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
43266 msgstr ""
43267
43268 #. type: textblock
43269 #: ../src/guestfs.pod:3160
43270 msgid ""
43271 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
43272 "vda>, and C</dev/vda1> through C</dev/vda15>)."
43273 msgstr ""
43274
43275 #. type: textblock
43276 #: ../src/guestfs.pod:3163
43277 msgid ""
43278 "If you attach a disk with more than 15 partitions, the extra partitions are "
43279 "ignored by libguestfs."
43280 msgstr ""
43281
43282 #. type: =head2
43283 #: ../src/guestfs.pod:3166
43284 msgid "MAXIMUM SIZE OF A DISK"
43285 msgstr ""
43286
43287 #. type: textblock
43288 #: ../src/guestfs.pod:3168
43289 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
43290 msgstr ""
43291
43292 #. type: textblock
43293 #: ../src/guestfs.pod:3170
43294 msgid ""
43295 "We have tested block devices up to 1 exabyte (2**60 or "
43296 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
43297 "filesystem."
43298 msgstr ""
43299
43300 #. type: textblock
43301 #: ../src/guestfs.pod:3174
43302 msgid ""
43303 "Although libguestfs probably does not impose any limit, the underlying host "
43304 "storage will.  If you store disk images on a host ext4 filesystem, then the "
43305 "maximum size will be limited by the maximum ext4 file size (currently 16 "
43306 "TB).  If you store disk images as host logical volumes then you are limited "
43307 "by the maximum size of an LV."
43308 msgstr ""
43309
43310 #. type: textblock
43311 #: ../src/guestfs.pod:3180
43312 msgid ""
43313 "For the hugest disk image files, we recommend using XFS on the host for "
43314 "storage."
43315 msgstr ""
43316
43317 #. type: =head2
43318 #: ../src/guestfs.pod:3183
43319 msgid "MAXIMUM SIZE OF A PARTITION"
43320 msgstr ""
43321
43322 #. type: textblock
43323 #: ../src/guestfs.pod:3185
43324 msgid ""
43325 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
43326 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
43327 "address a partition located beyond 2 TB on the disk."
43328 msgstr ""
43329
43330 #. type: textblock
43331 #: ../src/guestfs.pod:3189
43332 msgid ""
43333 "It is recommended that you use GPT partitions on disks which are larger than "
43334 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
43335 "which are theoretically larger than the largest disk we could support."
43336 msgstr ""
43337
43338 #. type: =head2
43339 #: ../src/guestfs.pod:3194
43340 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
43341 msgstr ""
43342
43343 #. type: textblock
43344 #: ../src/guestfs.pod:3196
43345 msgid ""
43346 "This depends on the filesystem type.  libguestfs itself does not impose any "
43347 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
43348 "what these limits are."
43349 msgstr ""
43350
43351 #. type: =head2
43352 #: ../src/guestfs.pod:3200
43353 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
43354 msgstr ""
43355
43356 #. type: textblock
43357 #: ../src/guestfs.pod:3202
43358 msgid ""
43359 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
43360 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
43361 "uploads and downloads."
43362 msgstr ""
43363
43364 #. type: =head2
43365 #: ../src/guestfs.pod:3206
43366 msgid "INSPECTION LIMITS"
43367 msgstr ""
43368
43369 #. type: textblock
43370 #: ../src/guestfs.pod:3208
43371 msgid ""
43372 "The inspection code has several arbitrary limits on things like the size of "
43373 "Windows Registry hive it will read, and the length of product name.  These "
43374 "are intended to stop a malicious guest from consuming arbitrary amounts of "
43375 "memory and disk space on the host, and should not be reached in practice.  "
43376 "See the source code for more information."
43377 msgstr ""
43378
43379 #. type: textblock
43380 #: ../src/guestfs.pod:3234
43381 msgid ""
43382 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
43383 "effect as calling C<guestfs_set_verbose (g, 1)>."
43384 msgstr ""
43385
43386 #. type: textblock
43387 #: ../src/guestfs.pod:3246
43388 msgid ""
43389 "Set the path that libguestfs uses to search for a supermin appliance.  See "
43390 "the discussion of paths in section L</PATH> above."
43391 msgstr ""
43392
43393 #. type: textblock
43394 #: ../src/guestfs.pod:3255
43395 msgid "See also L</QEMU WRAPPERS> above."
43396 msgstr ""
43397
43398 #. type: textblock
43399 #: ../src/guestfs.pod:3259
43400 msgid ""
43401 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
43402 "effect as calling C<guestfs_set_trace (g, 1)>."
43403 msgstr ""
43404
43405 #. type: textblock
43406 #: ../src/guestfs.pod:3277
43407 msgid ""
43408 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
43409 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
43410 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
43411 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
43412 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
43413 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
43414 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
43415 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<guestfs-"
43416 "testing(1)>, L<qemu(1)>, L<febootstrap(1)>, L<febootstrap-supermin-helper(8)"
43417 ">, L<hivex(3)>, L<stap(1)>, L<http://libguestfs.org/>."
43418 msgstr ""
43419
43420 #. type: textblock
43421 #: ../src/guestfs.pod:3314
43422 msgid ""
43423 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
43424 "(8)>, L<disktype(1)>."
43425 msgstr ""
43426
43427 #. type: =head1
43428 #: ../src/guestfs.pod:3321 ../tools/virt-make-fs.pl:571
43429 #: ../tools/virt-win-reg.pl:772
43430 msgid "BUGS"
43431 msgstr "ВАДИ"
43432
43433 #. type: textblock
43434 #: ../src/guestfs.pod:3323
43435 msgid "To get a list of bugs against libguestfs use this link:"
43436 msgstr ""
43437 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
43438 "посиланням:"
43439
43440 #. type: textblock
43441 #: ../src/guestfs.pod:3325
43442 msgid ""
43443 "L<https://bugzilla.redhat.com/buglist.cgi?"
43444 "component=libguestfs&product=Virtualization+Tools>"
43445 msgstr ""
43446 "L<https://bugzilla.redhat.com/buglist.cgi?"
43447 "component=libguestfs&product=Virtualization+Tools>"
43448
43449 #. type: textblock
43450 #: ../src/guestfs.pod:3327
43451 msgid "To report a new bug against libguestfs use this link:"
43452 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
43453
43454 #. type: textblock
43455 #: ../src/guestfs.pod:3329
43456 msgid ""
43457 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
43458 "component=libguestfs&product=Virtualization+Tools>"
43459 msgstr ""
43460 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
43461 "component=libguestfs&product=Virtualization+Tools>"
43462
43463 #. type: textblock
43464 #: ../src/guestfs.pod:3331
43465 msgid "When reporting a bug, please check:"
43466 msgstr ""
43467
43468 #. type: textblock
43469 #: ../src/guestfs.pod:3337
43470 msgid "That the bug hasn't been reported already."
43471 msgstr ""
43472
43473 #. type: textblock
43474 #: ../src/guestfs.pod:3341
43475 msgid "That you are testing a recent version."
43476 msgstr ""
43477
43478 #. type: textblock
43479 #: ../src/guestfs.pod:3345
43480 msgid "Describe the bug accurately, and give a way to reproduce it."
43481 msgstr ""
43482
43483 #. type: textblock
43484 #: ../src/guestfs.pod:3349
43485 msgid ""
43486 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
43487 "bug report."
43488 msgstr ""
43489
43490 #. type: textblock
43491 #: ../test-tool/libguestfs-test-tool.pod:5
43492 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
43493 msgstr ""
43494
43495 #. type: verbatim
43496 #: ../test-tool/libguestfs-test-tool.pod:9
43497 #, no-wrap
43498 msgid ""
43499 " libguestfs-test-tool [--options]\n"
43500 "\n"
43501 msgstr ""
43502
43503 #. type: textblock
43504 #: ../test-tool/libguestfs-test-tool.pod:13
43505 msgid ""
43506 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
43507 "to check basic libguestfs functionality is working.  This is needed because "
43508 "libguestfs occasionally breaks for reasons beyond our control: usually "
43509 "because of changes in the underlying qemu or kernel packages, or the host "
43510 "environment."
43511 msgstr ""
43512
43513 #. type: textblock
43514 #: ../test-tool/libguestfs-test-tool.pod:19
43515 msgid "If you suspect a problem in libguestfs, then just run:"
43516 msgstr ""
43517
43518 #. type: verbatim
43519 #: ../test-tool/libguestfs-test-tool.pod:21
43520 #, no-wrap
43521 msgid ""
43522 " libguestfs-test-tool\n"
43523 "\n"
43524 msgstr ""
43525
43526 #. type: textblock
43527 #: ../test-tool/libguestfs-test-tool.pod:23
43528 msgid "It will print lots of diagnostic messages."
43529 msgstr ""
43530
43531 #. type: textblock
43532 #: ../test-tool/libguestfs-test-tool.pod:25
43533 msgid "If it runs to completion successfully, you will see this near the end:"
43534 msgstr ""
43535
43536 #. type: verbatim
43537 #: ../test-tool/libguestfs-test-tool.pod:27
43538 #, no-wrap
43539 msgid ""
43540 " ===== TEST FINISHED OK =====\n"
43541 "\n"
43542 msgstr ""
43543
43544 #. type: textblock
43545 #: ../test-tool/libguestfs-test-tool.pod:29
43546 msgid "and the test tool will exit with code 0."
43547 msgstr ""
43548
43549 #. type: textblock
43550 #: ../test-tool/libguestfs-test-tool.pod:31
43551 msgid ""
43552 "If it fails (and/or exits with non-zero error code), please paste the "
43553 "I<complete, unedited> output of the test tool into a bug report.  More "
43554 "information about reporting bugs can be found on the L<http://libguestfs.org/"
43555 "> website."
43556 msgstr ""
43557
43558 #. type: textblock
43559 #: ../test-tool/libguestfs-test-tool.pod:42
43560 msgid "Display short usage information and exit."
43561 msgstr ""
43562
43563 #. type: =item
43564 #: ../test-tool/libguestfs-test-tool.pod:44
43565 msgid "B<--qemu qemu_binary>"
43566 msgstr ""
43567
43568 #. type: textblock
43569 #: ../test-tool/libguestfs-test-tool.pod:46
43570 msgid ""
43571 "If you have downloaded another qemu binary, point this option at the full "
43572 "path of the binary to try it."
43573 msgstr ""
43574
43575 #. type: =item
43576 #: ../test-tool/libguestfs-test-tool.pod:49
43577 msgid "B<--qemudir qemu_source_dir>"
43578 msgstr ""
43579
43580 #. type: textblock
43581 #: ../test-tool/libguestfs-test-tool.pod:51
43582 msgid ""
43583 "If you have compiled qemu from source, point this option at the source "
43584 "directory to try it."
43585 msgstr ""
43586
43587 #. type: =item
43588 #: ../test-tool/libguestfs-test-tool.pod:54
43589 msgid "B<-t N>"
43590 msgstr ""
43591
43592 #. type: =item
43593 #: ../test-tool/libguestfs-test-tool.pod:56
43594 msgid "B<--timeout N>"
43595 msgstr ""
43596
43597 #. type: textblock
43598 #: ../test-tool/libguestfs-test-tool.pod:58
43599 msgid ""
43600 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
43601 "minutes) which does not usually need to be adjusted."
43602 msgstr ""
43603
43604 #. type: =head1
43605 #: ../test-tool/libguestfs-test-tool.pod:63
43606 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
43607 msgstr ""
43608
43609 #. type: textblock
43610 #: ../test-tool/libguestfs-test-tool.pod:65
43611 msgid ""
43612 "If you have compiled another version of qemu from source and would like to "
43613 "try that, then you can use the I<--qemudir> option to point to the qemu "
43614 "source directory."
43615 msgstr ""
43616
43617 #. type: textblock
43618 #: ../test-tool/libguestfs-test-tool.pod:69
43619 msgid ""
43620 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
43621 "option to point to the binary."
43622 msgstr ""
43623
43624 #. type: textblock
43625 #: ../test-tool/libguestfs-test-tool.pod:72
43626 msgid ""
43627 "Note when using these options, you can ignore the business of qemu wrapper "
43628 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
43629 "wrapper script for you if one is needed."
43630 msgstr ""
43631
43632 #. type: =head1
43633 #: ../test-tool/libguestfs-test-tool.pod:76
43634 msgid "TRYING OUT A DIFFERENT KERNEL"
43635 msgstr ""
43636
43637 #. type: textblock
43638 #: ../test-tool/libguestfs-test-tool.pod:78
43639 msgid ""
43640 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
43641 "libguestfs tries.  You do this by setting the environment variables "
43642 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
43643 msgstr ""
43644
43645 #. type: textblock
43646 #: ../test-tool/libguestfs-test-tool.pod:82
43647 msgid ""
43648 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
43649 "information."
43650 msgstr ""
43651
43652 #. type: =head1
43653 #: ../test-tool/libguestfs-test-tool.pod:85
43654 msgid "SELF-DIAGNOSIS"
43655 msgstr ""
43656
43657 #. type: textblock
43658 #: ../test-tool/libguestfs-test-tool.pod:87
43659 msgid ""
43660 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
43661 "produced by libguestfs-test-tool and/or possible errors."
43662 msgstr ""
43663
43664 #. type: textblock
43665 #: ../test-tool/libguestfs-test-tool.pod:92
43666 msgid ""
43667 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
43668 "I<1> if there was an error."
43669 msgstr ""
43670
43671 #. type: textblock
43672 #: ../test-tool/libguestfs-test-tool.pod:97
43673 msgid ""
43674 "For the full list of environment variables which may affect libguestfs, "
43675 "please see the L<guestfs(3)> manual page."
43676 msgstr ""
43677
43678 #. type: textblock
43679 #: ../test-tool/libguestfs-test-tool.pod:102
43680 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
43681 msgstr ""
43682
43683 #. type: textblock
43684 #: ../tools/virt-list-filesystems.pl:32
43685 msgid ""
43686 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
43687 msgstr ""
43688
43689 #. type: verbatim
43690 #: ../tools/virt-list-filesystems.pl:36
43691 #, no-wrap
43692 msgid ""
43693 " virt-list-filesystems [--options] domname\n"
43694 "\n"
43695 msgstr ""
43696
43697 #. type: verbatim
43698 #: ../tools/virt-list-filesystems.pl:38
43699 #, no-wrap
43700 msgid ""
43701 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
43702 "\n"
43703 msgstr ""
43704
43705 #. type: textblock
43706 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
43707 msgid ""
43708 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
43709 "replacement."
43710 msgstr ""
43711
43712 #. type: textblock
43713 #: ../tools/virt-list-filesystems.pl:45
43714 msgid ""
43715 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
43716 "are contained in a virtual machine or disk image."
43717 msgstr ""
43718
43719 #. type: textblock
43720 #: ../tools/virt-list-filesystems.pl:49
43721 msgid ""
43722 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
43723 "functionality.  For more complex cases you should look at the L<guestfish(1)"
43724 "> tool."
43725 msgstr ""
43726
43727 #. type: textblock
43728 #: ../tools/virt-list-filesystems.pl:112
43729 msgid ""
43730 "With this option, C<virt-list-filesystems> displays the type of each "
43731 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
43732 msgstr ""
43733
43734 #. type: =item
43735 #: ../tools/virt-list-filesystems.pl:119
43736 msgid "B<-a>"
43737 msgstr "B<-a>"
43738
43739 #. type: textblock
43740 #: ../tools/virt-list-filesystems.pl:123
43741 msgid ""
43742 "Normally we only show mountable filesystems.  If this option is given then "
43743 "swap devices are shown too."
43744 msgstr ""
43745
43746 #. type: textblock
43747 #: ../tools/virt-list-filesystems.pl:197
43748 msgid ""
43749 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
43750 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
43751 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43752 msgstr ""
43753 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
43754 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
43755 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43756
43757 #. type: textblock
43758 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
43759 msgid "Copyright (C) 2009 Red Hat Inc."
43760 msgstr "© Red Hat Inc., 2009"
43761
43762 #. type: textblock
43763 #: ../tools/virt-list-partitions.pl:32
43764 msgid ""
43765 "virt-list-partitions - List partitions in a virtual machine or disk image"
43766 msgstr ""
43767
43768 #. type: verbatim
43769 #: ../tools/virt-list-partitions.pl:36
43770 #, no-wrap
43771 msgid ""
43772 " virt-list-partitions [--options] domname\n"
43773 "\n"
43774 msgstr ""
43775 " virt-list-partitions [--параметри] назва_домену\n"
43776 "\n"
43777
43778 #. type: verbatim
43779 #: ../tools/virt-list-partitions.pl:38
43780 #, no-wrap
43781 msgid ""
43782 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
43783 "\n"
43784 msgstr ""
43785 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
43786 "\n"
43787
43788 #. type: textblock
43789 #: ../tools/virt-list-partitions.pl:45
43790 msgid ""
43791 "C<virt-list-partitions> is a command line tool to list the partitions that "
43792 "are contained in a virtual machine or disk image.  It is mainly useful as a "
43793 "first step to using L<virt-resize(1)>."
43794 msgstr ""
43795
43796 #. type: textblock
43797 #: ../tools/virt-list-partitions.pl:50
43798 msgid ""
43799 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
43800 "functionality.  For more complex cases you should look at the L<guestfish(1)"
43801 "> tool."
43802 msgstr ""
43803
43804 #. type: textblock
43805 #: ../tools/virt-list-partitions.pl:113
43806 msgid "Show sizes in human-readable form (eg. \"1G\")."
43807 msgstr ""
43808
43809 #. type: textblock
43810 #: ../tools/virt-list-partitions.pl:123
43811 msgid ""
43812 "With this option, C<virt-list-partitions> displays the type and size of each "
43813 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
43814 msgstr ""
43815
43816 #. type: =item
43817 #: ../tools/virt-list-partitions.pl:130
43818 msgid "B<-t>"
43819 msgstr "B<-t>"
43820
43821 #. type: =item
43822 #: ../tools/virt-list-partitions.pl:132
43823 msgid "B<--total>"
43824 msgstr "B<--total>"
43825
43826 #. type: textblock
43827 #: ../tools/virt-list-partitions.pl:134
43828 msgid ""
43829 "Display the total size of each block device (as a separate row or rows)."
43830 msgstr ""
43831
43832 #. type: textblock
43833 #: ../tools/virt-list-partitions.pl:267
43834 msgid ""
43835 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
43836 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
43837 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43838 msgstr ""
43839 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
43840 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
43841 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43842
43843 #. type: textblock
43844 #: ../tools/virt-list-partitions.pl:283
43845 msgid "Copyright (C) 2009-2010 Red Hat Inc."
43846 msgstr "© Red Hat Inc., 2009–2010"
43847
43848 #. type: textblock
43849 #: ../tools/virt-make-fs.pl:37
43850 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
43851 msgstr ""
43852
43853 #. type: verbatim
43854 #: ../tools/virt-make-fs.pl:41
43855 #, no-wrap
43856 msgid ""
43857 " virt-make-fs [--options] input.tar output.img\n"
43858 "\n"
43859 msgstr ""
43860
43861 #. type: verbatim
43862 #: ../tools/virt-make-fs.pl:43
43863 #, no-wrap
43864 msgid ""
43865 " virt-make-fs [--options] input.tar.gz output.img\n"
43866 "\n"
43867 msgstr ""
43868
43869 #. type: verbatim
43870 #: ../tools/virt-make-fs.pl:45
43871 #, no-wrap
43872 msgid ""
43873 " virt-make-fs [--options] directory output.img\n"
43874 "\n"
43875 msgstr ""
43876
43877 #. type: textblock
43878 #: ../tools/virt-make-fs.pl:49
43879 msgid ""
43880 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
43881 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
43882 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
43883 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
43884 "you want to attach these filesystems to existing virtual machines (eg. to "
43885 "import large amounts of read-only data to a VM)."
43886 msgstr ""
43887
43888 #. type: textblock
43889 #: ../tools/virt-make-fs.pl:57
43890 msgid "Basic usage is:"
43891 msgstr ""
43892
43893 #. type: verbatim
43894 #: ../tools/virt-make-fs.pl:59
43895 #, no-wrap
43896 msgid ""
43897 " virt-make-fs input output.img\n"
43898 "\n"
43899 msgstr ""
43900
43901 #. type: textblock
43902 #: ../tools/virt-make-fs.pl:61
43903 msgid ""
43904 "where C<input> is either a directory containing files that you want to add, "
43905 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
43906 "C<output.img> is a disk image.  The input type is detected automatically.  "
43907 "The output disk image defaults to a raw ext2 sparse image unless you specify "
43908 "extra flags (see L</OPTIONS> below)."
43909 msgstr ""
43910
43911 #. type: =head2
43912 #: ../tools/virt-make-fs.pl:67
43913 msgid "FILESYSTEM TYPE"
43914 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
43915
43916 #. type: textblock
43917 #: ../tools/virt-make-fs.pl:69
43918 msgid ""
43919 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
43920 "libguestfs supports can be used (but I<not> read-only formats like "
43921 "ISO9660).  Here are some of the more common choices:"
43922 msgstr ""
43923
43924 #. type: =item
43925 #: ../tools/virt-make-fs.pl:75
43926 msgid "I<ext3>"
43927 msgstr "I<ext3>"
43928
43929 #. type: textblock
43930 #: ../tools/virt-make-fs.pl:77
43931 msgid ""
43932 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
43933 "you are not going to use the filesystem in a way that requires the journal, "
43934 "then this is just wasted overhead."
43935 msgstr ""
43936
43937 #. type: =item
43938 #: ../tools/virt-make-fs.pl:81
43939 msgid "I<ntfs> or I<vfat>"
43940 msgstr "I<ntfs> або I<vfat>"
43941
43942 #. type: textblock
43943 #: ../tools/virt-make-fs.pl:83
43944 msgid "Useful if exporting data to a Windows guest."
43945 msgstr ""
43946
43947 #. type: textblock
43948 #: ../tools/virt-make-fs.pl:85
43949 msgid ""
43950 "I<Note for vfat>: The tar archive or local directory must only contain files "
43951 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
43952 "program running within libguestfs is unable to change the ownership of non-"
43953 "root files, since vfat itself does not support this."
43954 msgstr ""
43955
43956 #. type: =item
43957 #: ../tools/virt-make-fs.pl:90
43958 msgid "I<minix>"
43959 msgstr "I<minix>"
43960
43961 #. type: textblock
43962 #: ../tools/virt-make-fs.pl:92
43963 msgid ""
43964 "Lower overhead than C<ext2>, but certain limitations on filename length and "
43965 "total filesystem size."
43966 msgstr ""
43967
43968 #. type: =head3
43969 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
43970 #: ../tools/virt-make-fs.pl:149
43971 msgid "EXAMPLE"
43972 msgstr "ПРИКЛАД"
43973
43974 #. type: verbatim
43975 #: ../tools/virt-make-fs.pl:99
43976 #, no-wrap
43977 msgid ""
43978 " virt-make-fs --type=minix input minixfs.img\n"
43979 "\n"
43980 msgstr ""
43981
43982 #. type: =head2
43983 #: ../tools/virt-make-fs.pl:101
43984 msgid "TO PARTITION OR NOT TO PARTITION"
43985 msgstr ""
43986
43987 #. type: textblock
43988 #: ../tools/virt-make-fs.pl:103
43989 msgid "Optionally virt-make-fs can add a partition table to the output disk."
43990 msgstr ""
43991
43992 #. type: textblock
43993 #: ../tools/virt-make-fs.pl:105
43994 msgid ""
43995 "Adding a partition can make the disk image more compatible with certain "
43996 "virtualized operating systems which don't expect to see a filesystem "
43997 "directly located on a block device (Linux doesn't care and will happily "
43998 "handle both types)."
43999 msgstr ""
44000
44001 #. type: textblock
44002 #: ../tools/virt-make-fs.pl:110
44003 msgid ""
44004 "On the other hand, if you have a partition table then the output image is no "
44005 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
44006 "directly on a partitioned disk image.  (However libguestfs tools such as "
44007 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
44008 msgstr ""
44009
44010 #. type: textblock
44011 #: ../tools/virt-make-fs.pl:118
44012 msgid "Add an MBR partition:"
44013 msgstr ""
44014
44015 #. type: verbatim
44016 #: ../tools/virt-make-fs.pl:120
44017 #, no-wrap
44018 msgid ""
44019 " virt-make-fs --partition -- input disk.img\n"
44020 "\n"
44021 msgstr ""
44022
44023 #. type: textblock
44024 #: ../tools/virt-make-fs.pl:122
44025 msgid ""
44026 "If the output disk image could be terabyte-sized or larger, it's better to "
44027 "use an EFI/GPT-compatible partition table:"
44028 msgstr ""
44029
44030 #. type: verbatim
44031 #: ../tools/virt-make-fs.pl:125
44032 #, no-wrap
44033 msgid ""
44034 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
44035 "\n"
44036 msgstr ""
44037
44038 #. type: =head2
44039 #: ../tools/virt-make-fs.pl:127
44040 msgid "EXTRA SPACE"
44041 msgstr ""
44042
44043 #. type: textblock
44044 #: ../tools/virt-make-fs.pl:129
44045 msgid ""
44046 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
44047 "the files that it contains, but might have extra space.  Depending on how "
44048 "you are going to use the output, you might think this extra space is wasted "
44049 "and want to minimize it, or you might want to leave space so that more files "
44050 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
44051 "but you can use the I<--size> flag to leave space in the filesystem if you "
44052 "want it."
44053 msgstr ""
44054
44055 #. type: textblock
44056 #: ../tools/virt-make-fs.pl:137
44057 msgid ""
44058 "An alternative way to leave extra space but not make the output image any "
44059 "bigger is to use an alternative disk image format (instead of the default "
44060 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
44061 "image format (check your hypervisor supports this before using it).  This "
44062 "allows you to choose a large I<--size> but the extra space won't actually be "
44063 "allocated in the image until you try to store something in it."
44064 msgstr ""
44065
44066 #. type: textblock
44067 #: ../tools/virt-make-fs.pl:145
44068 msgid ""
44069 "Don't forget that you can also use local commands including L<resize2fs(8)> "
44070 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
44071 "to build another image from scratch."
44072 msgstr ""
44073
44074 #. type: verbatim
44075 #: ../tools/virt-make-fs.pl:151
44076 #, no-wrap
44077 msgid ""
44078 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
44079 "\n"
44080 msgstr ""
44081 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
44082 "\n"
44083
44084 #. type: textblock
44085 #: ../tools/virt-make-fs.pl:179
44086 msgid "Enable debugging information."
44087 msgstr "Увімкнути виведення діагностичних даних."
44088
44089 #. type: =item
44090 #: ../tools/virt-make-fs.pl:185
44091 msgid "B<--size=E<lt>NE<gt>>"
44092 msgstr "B<--size=E<lt>NE<gt>>"
44093
44094 #. type: =item
44095 #: ../tools/virt-make-fs.pl:187
44096 msgid "B<--size=+E<lt>NE<gt>>"
44097 msgstr "B<--size=+E<lt>NE<gt>>"
44098
44099 #. type: =item
44100 #: ../tools/virt-make-fs.pl:189
44101 msgid "B<-s E<lt>NE<gt>>"
44102 msgstr "B<-s E<lt>NE<gt>>"
44103
44104 #. type: =item
44105 #: ../tools/virt-make-fs.pl:191
44106 msgid "B<-s +E<lt>NE<gt>>"
44107 msgstr "B<-s +E<lt>NE<gt>>"
44108
44109 #. type: textblock
44110 #: ../tools/virt-make-fs.pl:193
44111 msgid ""
44112 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
44113 msgstr ""
44114
44115 #. type: textblock
44116 #: ../tools/virt-make-fs.pl:196
44117 msgid ""
44118 "If this option is I<not> given, then the output image will be just large "
44119 "enough to contain all the files, with not much wasted space."
44120 msgstr ""
44121
44122 #. type: textblock
44123 #: ../tools/virt-make-fs.pl:199
44124 msgid ""
44125 "To choose a fixed size output disk, specify an absolute number followed by b/"
44126 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
44127 "Petabytes or Exabytes.  This must be large enough to contain all the input "
44128 "files, else you will get an error."
44129 msgstr ""
44130
44131 #. type: textblock
44132 #: ../tools/virt-make-fs.pl:204
44133 msgid ""
44134 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
44135 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
44136 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
44137 "the input files, and (approximately) an extra 200 MB free space."
44138 msgstr ""
44139
44140 #. type: textblock
44141 #: ../tools/virt-make-fs.pl:210
44142 msgid ""
44143 "Note that virt-make-fs estimates free space, and therefore will not produce "
44144 "filesystems containing precisely the free space requested.  (It is much more "
44145 "expensive and time-consuming to produce a filesystem which has precisely the "
44146 "desired free space)."
44147 msgstr ""
44148
44149 #. type: =item
44150 #: ../tools/virt-make-fs.pl:219
44151 msgid "B<--format=E<lt>fmtE<gt>>"
44152 msgstr ""
44153
44154 #. type: =item
44155 #: ../tools/virt-make-fs.pl:221
44156 msgid "B<-F E<lt>fmtE<gt>>"
44157 msgstr ""
44158
44159 #. type: textblock
44160 #: ../tools/virt-make-fs.pl:223
44161 msgid "Choose the output disk image format."
44162 msgstr ""
44163
44164 #. type: textblock
44165 #: ../tools/virt-make-fs.pl:225
44166 msgid "The default is C<raw> (raw sparse disk image)."
44167 msgstr ""
44168
44169 #. type: textblock
44170 #: ../tools/virt-make-fs.pl:227
44171 msgid ""
44172 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
44173 "that would really make sense here is C<qcow2>."
44174 msgstr ""
44175
44176 #. type: =item
44177 #: ../tools/virt-make-fs.pl:234
44178 msgid "B<--type=E<lt>fsE<gt>>"
44179 msgstr ""
44180
44181 #. type: =item
44182 #: ../tools/virt-make-fs.pl:236
44183 msgid "B<-t E<lt>fsE<gt>>"
44184 msgstr ""
44185
44186 #. type: textblock
44187 #: ../tools/virt-make-fs.pl:238
44188 msgid "Choose the output filesystem type."
44189 msgstr ""
44190
44191 #. type: textblock
44192 #: ../tools/virt-make-fs.pl:240
44193 msgid "The default is C<ext2>."
44194 msgstr "Типовим значенням є C<ext2>."
44195
44196 #. type: textblock
44197 #: ../tools/virt-make-fs.pl:242
44198 msgid ""
44199 "Any filesystem which is supported read-write by libguestfs can be used here."
44200 msgstr ""
44201
44202 #. type: =item
44203 #: ../tools/virt-make-fs.pl:249
44204 msgid "B<--partition>"
44205 msgstr "B<--partition>"
44206
44207 #. type: =item
44208 #: ../tools/virt-make-fs.pl:251
44209 msgid "B<--partition=E<lt>parttypeE<gt>>"
44210 msgstr ""
44211
44212 #. type: textblock
44213 #: ../tools/virt-make-fs.pl:253
44214 msgid ""
44215 "If specified, this flag adds an MBR partition table to the output disk image."
44216 msgstr ""
44217
44218 #. type: textblock
44219 #: ../tools/virt-make-fs.pl:256
44220 msgid ""
44221 "You can change the partition table type, eg. I<--partition=gpt> for large "
44222 "disks."
44223 msgstr ""
44224
44225 #. type: textblock
44226 #: ../tools/virt-make-fs.pl:259
44227 msgid ""
44228 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
44229 "might consider the next parameter to be the partition type.  For example:"
44230 msgstr ""
44231
44232 #. type: verbatim
44233 #: ../tools/virt-make-fs.pl:263
44234 #, no-wrap
44235 msgid ""
44236 " virt-make-fs --partition input.tar output.img\n"
44237 "\n"
44238 msgstr ""
44239
44240 #. type: textblock
44241 #: ../tools/virt-make-fs.pl:265
44242 msgid ""
44243 "would cause virt-make-fs to think you wanted to use a partition type of "
44244 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
44245 "dash) between options and the input and output arguments:"
44246 msgstr ""
44247
44248 #. type: verbatim
44249 #: ../tools/virt-make-fs.pl:269
44250 #, no-wrap
44251 msgid ""
44252 " virt-make-fs --partition -- input.tar output.img\n"
44253 "\n"
44254 msgstr ""
44255
44256 #. type: textblock
44257 #: ../tools/virt-make-fs.pl:271
44258 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
44259 msgstr ""
44260
44261 #. type: textblock
44262 #: ../tools/virt-make-fs.pl:559
44263 msgid ""
44264 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
44265 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
44266 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
44267 msgstr ""
44268 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
44269 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
44270 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
44271
44272 #. type: textblock
44273 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
44274 msgid ""
44275 "When reporting bugs, please enable debugging and capture the I<complete> "
44276 "output:"
44277 msgstr ""
44278
44279 #. type: verbatim
44280 #: ../tools/virt-make-fs.pl:576
44281 #, no-wrap
44282 msgid ""
44283 " export LIBGUESTFS_DEBUG=1\n"
44284 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
44285 "\n"
44286 msgstr ""
44287 " export LIBGUESTFS_DEBUG=1\n"
44288 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
44289 "\n"
44290
44291 #. type: textblock
44292 #: ../tools/virt-make-fs.pl:579
44293 msgid ""
44294 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
44295 "redhat.com/>"
44296 msgstr ""
44297
44298 #. type: textblock
44299 #: ../tools/virt-tar.pl:33
44300 msgid "virt-tar - Extract or upload files to a virtual machine"
44301 msgstr ""
44302
44303 #. type: verbatim
44304 #: ../tools/virt-tar.pl:37
44305 #, no-wrap
44306 msgid ""
44307 " virt-tar [--options] -x domname directory tarball\n"
44308 "\n"
44309 msgstr ""
44310
44311 #. type: verbatim
44312 #: ../tools/virt-tar.pl:39
44313 #, no-wrap
44314 msgid ""
44315 " virt-tar [--options] -u domname tarball directory\n"
44316 "\n"
44317 msgstr ""
44318
44319 #. type: verbatim
44320 #: ../tools/virt-tar.pl:41
44321 #, no-wrap
44322 msgid ""
44323 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
44324 "\n"
44325 msgstr ""
44326
44327 #. type: verbatim
44328 #: ../tools/virt-tar.pl:43
44329 #, no-wrap
44330 msgid ""
44331 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
44332 "\n"
44333 msgstr ""
44334
44335 #. type: =head2
44336 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
44337 msgid "NOTE"
44338 msgstr "ПРИМІТКА"
44339
44340 #. type: textblock
44341 #: ../tools/virt-tar.pl:47
44342 msgid ""
44343 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
44344 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
44345 msgstr ""
44346
44347 #. type: textblock
44348 #: ../tools/virt-tar.pl:52
44349 msgid "Download C</home> from the VM into a local tarball:"
44350 msgstr ""
44351
44352 #. type: verbatim
44353 #: ../tools/virt-tar.pl:54
44354 #, no-wrap
44355 msgid ""
44356 " virt-tar -x domname /home home.tar\n"
44357 "\n"
44358 msgstr ""
44359
44360 #. type: verbatim
44361 #: ../tools/virt-tar.pl:56
44362 #, no-wrap
44363 msgid ""
44364 " virt-tar -zx domname /home home.tar.gz\n"
44365 "\n"
44366 msgstr ""
44367
44368 #. type: textblock
44369 #: ../tools/virt-tar.pl:58
44370 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
44371 msgstr ""
44372
44373 #. type: verbatim
44374 #: ../tools/virt-tar.pl:60
44375 #, no-wrap
44376 msgid ""
44377 " virt-tar -u domname uploadstuff.tar /tmp\n"
44378 "\n"
44379 msgstr ""
44380
44381 #. type: verbatim
44382 #: ../tools/virt-tar.pl:62
44383 #, no-wrap
44384 msgid ""
44385 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
44386 "\n"
44387 msgstr ""
44388
44389 #. type: textblock
44390 #: ../tools/virt-tar.pl:66
44391 msgid ""
44392 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
44393 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
44394 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
44395 msgstr ""
44396
44397 #. type: textblock
44398 #: ../tools/virt-tar.pl:71
44399 msgid ""
44400 "You can use I<-x> (extract) on live virtual machines, but you might get "
44401 "inconsistent results or errors if there is filesystem activity inside the "
44402 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
44403 "work, but the only way to guarantee consistent results is if the virtual "
44404 "machine is shut down."
44405 msgstr ""
44406
44407 #. type: textblock
44408 #: ../tools/virt-tar.pl:79
44409 msgid ""
44410 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
44411 "parts of a guest filesystem.  There are many possibilities: making backups, "
44412 "uploading data files, snooping on guest activity, fixing or customizing "
44413 "guests, etc."
44414 msgstr ""
44415
44416 #. type: textblock
44417 #: ../tools/virt-tar.pl:84
44418 msgid ""
44419 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
44420 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
44421 "should look at the L<guestfish(1)> tool."
44422 msgstr ""
44423
44424 #. type: textblock
44425 #: ../tools/virt-tar.pl:88
44426 msgid ""
44427 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
44428 "its contents (recursively) from the virtual machine into a local tarball.  "
44429 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
44430 "virtual machine.  You cannot use these two options together."
44431 msgstr ""
44432
44433 #. type: textblock
44434 #: ../tools/virt-tar.pl:94
44435 msgid ""
44436 "In addition, you may need to use the I<-z> (gZip) option to enable "
44437 "compression.  When uploading, you have to specify I<-z> if the upload file "
44438 "is compressed because virt-tar won't detect this on its own."
44439 msgstr ""
44440
44441 #. type: textblock
44442 #: ../tools/virt-tar.pl:98
44443 msgid ""
44444 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
44445 "example it cannot do PKZip files or bzip2 compression.  If you want that "
44446 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
44447 "the L<libguestfs(3)> API)."
44448 msgstr ""
44449
44450 #. type: =item
44451 #: ../tools/virt-tar.pl:160
44452 msgid "B<--extract>"
44453 msgstr "B<--extract>"
44454
44455 #. type: =item
44456 #: ../tools/virt-tar.pl:162
44457 msgid "B<--download>"
44458 msgstr "B<--download>"
44459
44460 #. type: =item
44461 #: ../tools/virt-tar.pl:164
44462 msgid "B<-u>"
44463 msgstr "B<-u>"
44464
44465 #. type: =item
44466 #: ../tools/virt-tar.pl:166
44467 msgid "B<--upload>"
44468 msgstr "B<--upload>"
44469
44470 #. type: textblock
44471 #: ../tools/virt-tar.pl:168
44472 msgid ""
44473 "Use I<-x> to extract (download) a directory from a virtual machine to a "
44474 "local tarball."
44475 msgstr ""
44476
44477 #. type: textblock
44478 #: ../tools/virt-tar.pl:171
44479 msgid ""
44480 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
44481 "Please read the L</WARNING> section above before using this option."
44482 msgstr ""
44483
44484 #. type: textblock
44485 #: ../tools/virt-tar.pl:175
44486 msgid "You must specify exactly one of these options."
44487 msgstr ""
44488
44489 #. type: =item
44490 #: ../tools/virt-tar.pl:181
44491 msgid "B<-z>"
44492 msgstr "B<-z>"
44493
44494 #. type: =item
44495 #: ../tools/virt-tar.pl:183
44496 msgid "B<--gzip>"
44497 msgstr "B<--gzip>"
44498
44499 #. type: textblock
44500 #: ../tools/virt-tar.pl:185
44501 msgid "Specify that the input or output tarball is gzip-compressed."
44502 msgstr ""
44503
44504 #. type: textblock
44505 #: ../tools/virt-tar.pl:298
44506 msgid ""
44507 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
44508 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
44509 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
44510 "org/>."
44511 msgstr ""
44512 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
44513 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
44514 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
44515 "org/>."
44516
44517 #. type: textblock
44518 #: ../tools/virt-win-reg.pl:37
44519 msgid ""
44520 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
44521 msgstr ""
44522
44523 #. type: verbatim
44524 #: ../tools/virt-win-reg.pl:41
44525 #, no-wrap
44526 msgid ""
44527 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
44528 "\n"
44529 msgstr ""
44530
44531 #. type: verbatim
44532 #: ../tools/virt-win-reg.pl:43
44533 #, no-wrap
44534 msgid ""
44535 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
44536 "\n"
44537 msgstr ""
44538
44539 #. type: verbatim
44540 #: ../tools/virt-win-reg.pl:45
44541 #, no-wrap
44542 msgid ""
44543 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
44544 "\n"
44545 msgstr ""
44546
44547 #. type: verbatim
44548 #: ../tools/virt-win-reg.pl:47
44549 #, no-wrap
44550 msgid ""
44551 " virt-win-reg --merge domname [input.reg ...]\n"
44552 "\n"
44553 msgstr ""
44554
44555 #. type: verbatim
44556 #: ../tools/virt-win-reg.pl:49
44557 #, no-wrap
44558 msgid ""
44559 " virt-win-reg [--options] disk.img ... # instead of domname\n"
44560 "\n"
44561 msgstr ""
44562
44563 #. type: textblock
44564 #: ../tools/virt-win-reg.pl:53
44565 msgid ""
44566 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
44567 "virtual machines.  If you do this, you I<will> get irreversible disk "
44568 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
44569 "but doesn't catch all cases."
44570 msgstr ""
44571
44572 #. type: textblock
44573 #: ../tools/virt-win-reg.pl:58
44574 msgid ""
44575 "Modifying the Windows Registry is an inherently risky operation.  The format "
44576 "is deliberately obscure and undocumented, and Registry changes can leave the "
44577 "system unbootable.  Therefore when using the I<--merge> option, make sure "
44578 "you have a reliable backup first."
44579 msgstr ""
44580
44581 #. type: textblock
44582 #: ../tools/virt-win-reg.pl:65
44583 msgid ""
44584 "This program can export and merge Windows Registry entries from a Windows "
44585 "guest."
44586 msgstr ""
44587
44588 #. type: textblock
44589 #: ../tools/virt-win-reg.pl:68
44590 msgid ""
44591 "The first parameter is the libvirt guest name or the raw disk image of a "
44592 "Windows guest."
44593 msgstr ""
44594
44595 #. type: textblock
44596 #: ../tools/virt-win-reg.pl:71
44597 msgid ""
44598 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
44599 "exported (recursively).  For example:"
44600 msgstr ""
44601
44602 #. type: verbatim
44603 #: ../tools/virt-win-reg.pl:74
44604 #, no-wrap
44605 msgid ""
44606 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
44607 "\n"
44608 msgstr ""
44609 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
44610 "\n"
44611
44612 #. type: textblock
44613 #: ../tools/virt-win-reg.pl:76
44614 msgid ""
44615 "You can also display single values from within registry keys, for example:"
44616 msgstr ""
44617
44618 #. type: verbatim
44619 #: ../tools/virt-win-reg.pl:79
44620 #, no-wrap
44621 msgid ""
44622 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
44623 " $ virt-win-reg Windows7 $cvkey ProductName\n"
44624 " Windows 7 Enterprise\n"
44625 "\n"
44626 msgstr ""
44627 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
44628 " $ virt-win-reg Windows7 $cvkey ProductName\n"
44629 " Windows 7 Enterprise\n"
44630 "\n"
44631
44632 #. type: textblock
44633 #: ../tools/virt-win-reg.pl:83
44634 msgid ""
44635 "With I<--merge>, you can merge a textual regedit file into the Windows "
44636 "Registry:"
44637 msgstr ""
44638
44639 #. type: verbatim
44640 #: ../tools/virt-win-reg.pl:86
44641 #, no-wrap
44642 msgid ""
44643 " $ virt-win-reg --merge Windows7 changes.reg\n"
44644 "\n"
44645 msgstr ""
44646 " $ virt-win-reg --merge Windows7 changes.reg\n"
44647 "\n"
44648
44649 #. type: textblock
44650 #: ../tools/virt-win-reg.pl:90
44651 msgid ""
44652 "This program is only meant for simple access to the registry.  If you want "
44653 "to do complicated things with the registry, we suggest you download the "
44654 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
44655 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
44656 "L<hivexregedit(1)>."
44657 msgstr ""
44658
44659 #. type: =item
44660 #: ../tools/virt-win-reg.pl:159
44661 msgid "B<--merge>"
44662 msgstr "B<--merge>"
44663
44664 #. type: textblock
44665 #: ../tools/virt-win-reg.pl:161
44666 msgid ""
44667 "In merge mode, this merges a textual regedit file into the Windows Registry "
44668 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
44669 "displays or exports Registry entries instead."
44670 msgstr ""
44671
44672 #. type: textblock
44673 #: ../tools/virt-win-reg.pl:165
44674 msgid ""
44675 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
44676 "result in disk corruption.  However exporting (without this flag)  is always "
44677 "safe."
44678 msgstr ""
44679
44680 #. type: =item
44681 #: ../tools/virt-win-reg.pl:173
44682 msgid "B<--encoding> UTF-16LE|ASCII"
44683 msgstr "B<--encoding> UTF-16LE|ASCII"
44684
44685 #. type: textblock
44686 #: ../tools/virt-win-reg.pl:175
44687 msgid ""
44688 "When merging (only), you may need to specify the encoding for strings to be "
44689 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
44690 "(3)/ENCODING STRINGS>."
44691 msgstr ""
44692
44693 #. type: textblock
44694 #: ../tools/virt-win-reg.pl:179
44695 msgid ""
44696 "The default is to use UTF-16LE, which should work with recent versions of "
44697 "Windows."
44698 msgstr ""
44699
44700 #. type: =item
44701 #: ../tools/virt-win-reg.pl:186
44702 msgid "B<--unsafe-printable-strings>"
44703 msgstr "B<--unsafe-printable-strings>"
44704
44705 #. type: textblock
44706 #: ../tools/virt-win-reg.pl:188
44707 msgid ""
44708 "When exporting (only), assume strings are UTF-16LE and print them as strings "
44709 "instead of hex sequences.  Remove the final zero codepoint from strings if "
44710 "present."
44711 msgstr ""
44712
44713 #. type: textblock
44714 #: ../tools/virt-win-reg.pl:192
44715 msgid ""
44716 "This is unsafe and does not preserve the fidelity of strings in the original "
44717 "Registry for various reasons:"
44718 msgstr ""
44719
44720 #. type: textblock
44721 #: ../tools/virt-win-reg.pl:199
44722 msgid ""
44723 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
44724 "other encodings will be corrupted by this transformation."
44725 msgstr ""
44726
44727 #. type: textblock
44728 #: ../tools/virt-win-reg.pl:204
44729 msgid ""
44730 "Assumes that everything which has type 1 or 2 is really a string and that "
44731 "everything else is not a string, but the type field in real Registries is "
44732 "not reliable."
44733 msgstr ""
44734
44735 #. type: textblock
44736 #: ../tools/virt-win-reg.pl:210
44737 msgid ""
44738 "Loses information about whether a zero codepoint followed the string in the "
44739 "Registry or not."
44740 msgstr ""
44741
44742 #. type: textblock
44743 #: ../tools/virt-win-reg.pl:215
44744 msgid ""
44745 "This all happens because the Registry itself contains no information about "
44746 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
44747 msgstr ""
44748
44749 #. type: textblock
44750 #: ../tools/virt-win-reg.pl:219
44751 msgid ""
44752 "You should only use this option for quick hacking and debugging of the "
44753 "Registry contents, and I<never> use it if the output is going to be passed "
44754 "into another program or stored in another Registry."
44755 msgstr ""
44756
44757 #. type: =head1
44758 #: ../tools/virt-win-reg.pl:556
44759 msgid "SUPPORTED SYSTEMS"
44760 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
44761
44762 #. type: textblock
44763 #: ../tools/virt-win-reg.pl:558
44764 msgid ""
44765 "The program currently supports Windows NT-derived guests starting with "
44766 "Windows XP through to at least Windows 7."
44767 msgstr ""
44768
44769 #. type: textblock
44770 #: ../tools/virt-win-reg.pl:561
44771 msgid "The following Registry keys are supported:"
44772 msgstr ""
44773
44774 #. type: =item
44775 #: ../tools/virt-win-reg.pl:565
44776 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
44777 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
44778
44779 #. type: =item
44780 #: ../tools/virt-win-reg.pl:567
44781 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
44782 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
44783
44784 #. type: =item
44785 #: ../tools/virt-win-reg.pl:569
44786 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
44787 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
44788
44789 #. type: =item
44790 #: ../tools/virt-win-reg.pl:571
44791 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
44792 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
44793
44794 #. type: =item
44795 #: ../tools/virt-win-reg.pl:573
44796 msgid "C<HKEY_USERS\\.DEFAULT>"
44797 msgstr "C<HKEY_USERS\\.DEFAULT>"
44798
44799 #. type: =item
44800 #: ../tools/virt-win-reg.pl:575
44801 msgid "C<HKEY_USERS\\I<SID>>"
44802 msgstr "C<HKEY_USERS\\I<SID>>"
44803
44804 #. type: textblock
44805 #: ../tools/virt-win-reg.pl:577
44806 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
44807 msgstr ""
44808
44809 #. type: =item
44810 #: ../tools/virt-win-reg.pl:579
44811 msgid "C<HKEY_USERS\\I<username>>"
44812 msgstr "C<HKEY_USERS\\I<користувач>>"
44813
44814 #. type: textblock
44815 #: ../tools/virt-win-reg.pl:581
44816 msgid ""
44817 "where I<username> is a local user name (this is a libguestfs extension)."
44818 msgstr ""
44819
44820 #. type: textblock
44821 #: ../tools/virt-win-reg.pl:585
44822 msgid ""
44823 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
44824 "C<HKEY_USERS>."
44825 msgstr ""
44826
44827 #. type: textblock
44828 #: ../tools/virt-win-reg.pl:588
44829 msgid ""
44830 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
44831 "supported (there is no \"current user\")."
44832 msgstr ""
44833
44834 #. type: =head1
44835 #: ../tools/virt-win-reg.pl:591
44836 msgid "ENCODING"
44837 msgstr "КОДУВАННЯ"
44838
44839 #. type: textblock
44840 #: ../tools/virt-win-reg.pl:593
44841 msgid ""
44842 "C<virt-win-reg> expects that regedit files have already been reencoded in "
44843 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
44844 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
44845 "Windows-style line endings, you may need to reencode the whole file before "
44846 "or after processing."
44847 msgstr ""
44848
44849 #. type: textblock
44850 #: ../tools/virt-win-reg.pl:599
44851 msgid ""
44852 "To reencode a file from Windows format to Linux (before processing it with "
44853 "the I<--merge> option), you would do something like this:"
44854 msgstr ""
44855
44856 #. type: verbatim
44857 #: ../tools/virt-win-reg.pl:602
44858 #, no-wrap
44859 msgid ""
44860 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
44861 "\n"
44862 msgstr ""
44863 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
44864 "\n"
44865
44866 #. type: textblock
44867 #: ../tools/virt-win-reg.pl:604
44868 msgid ""
44869 "To go in the opposite direction, after exporting and before sending the file "
44870 "to a Windows user, do something like this:"
44871 msgstr ""
44872
44873 #. type: verbatim
44874 #: ../tools/virt-win-reg.pl:607
44875 #, no-wrap
44876 msgid ""
44877 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
44878 "\n"
44879 msgstr ""
44880 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
44881 "\n"
44882
44883 #. type: textblock
44884 #: ../tools/virt-win-reg.pl:609
44885 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
44886 msgstr ""
44887
44888 #. type: textblock
44889 #: ../tools/virt-win-reg.pl:611
44890 msgid ""
44891 "If you are unsure about the current encoding, use the L<file(1)> command.  "
44892 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
44893 "style (CRLF) line endings, like this:"
44894 msgstr ""
44895
44896 #. type: verbatim
44897 #: ../tools/virt-win-reg.pl:615
44898 #, no-wrap
44899 msgid ""
44900 " $ file software.reg\n"
44901 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
44902 " with CRLF line terminators\n"
44903 "\n"
44904 msgstr ""
44905
44906 #. type: textblock
44907 #: ../tools/virt-win-reg.pl:619
44908 msgid "This file would need conversion before you could I<--merge> it."
44909 msgstr ""
44910
44911 #. type: =head1
44912 #: ../tools/virt-win-reg.pl:621
44913 msgid "CurrentControlSet etc."
44914 msgstr ""
44915
44916 #. type: textblock
44917 #: ../tools/virt-win-reg.pl:623
44918 msgid ""
44919 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
44920 "Registry at the level of the hive file, and therefore you cannot modify "
44921 "these."
44922 msgstr ""
44923
44924 #. type: textblock
44925 #: ../tools/virt-win-reg.pl:627
44926 msgid ""
44927 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
44928 "circumstances it might refer to another control set.  The way to find out is "
44929 "to look at the C<HKLM\\SYSTEM\\Select> key:"
44930 msgstr ""
44931
44932 #. type: verbatim
44933 #: ../tools/virt-win-reg.pl:631
44934 #, no-wrap
44935 msgid ""
44936 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
44937 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
44938 " \"Current\"=dword:00000001\n"
44939 " \"Default\"=dword:00000001\n"
44940 " \"Failed\"=dword:00000000\n"
44941 " \"LastKnownGood\"=dword:00000002\n"
44942 "\n"
44943 msgstr ""
44944 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
44945 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
44946 " \"Current\"=dword:00000001\n"
44947 " \"Default\"=dword:00000001\n"
44948 " \"Failed\"=dword:00000000\n"
44949 " \"LastKnownGood\"=dword:00000002\n"
44950 "\n"
44951
44952 #. type: textblock
44953 #: ../tools/virt-win-reg.pl:638
44954 msgid "\"Current\" is the one which Windows will choose when it boots."
44955 msgstr ""
44956
44957 #. type: textblock
44958 #: ../tools/virt-win-reg.pl:640
44959 msgid ""
44960 "Similarly, other C<Current...> keys in the path may need to be replaced."
44961 msgstr ""
44962
44963 #. type: =head1
44964 #: ../tools/virt-win-reg.pl:643
44965 msgid "DELETING REGISTRY KEYS AND VALUES"
44966 msgstr ""
44967
44968 #. type: textblock
44969 #: ../tools/virt-win-reg.pl:645
44970 msgid "To delete a whole registry key, use the syntax:"
44971 msgstr ""
44972
44973 #. type: verbatim
44974 #: ../tools/virt-win-reg.pl:647
44975 #, no-wrap
44976 msgid ""
44977 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
44978 "\n"
44979 msgstr ""
44980
44981 #. type: textblock
44982 #: ../tools/virt-win-reg.pl:649
44983 msgid "To delete a single value within a key, use the syntax:"
44984 msgstr ""
44985
44986 #. type: verbatim
44987 #: ../tools/virt-win-reg.pl:651
44988 #, no-wrap
44989 msgid ""
44990 " [HKEY_LOCAL_MACHINE\\Foo]\n"
44991 " \"Value\"=-\n"
44992 "\n"
44993 msgstr ""
44994
44995 #. type: =head1
44996 #: ../tools/virt-win-reg.pl:654
44997 msgid "WINDOWS TIPS"
44998 msgstr ""
44999
45000 #. type: textblock
45001 #: ../tools/virt-win-reg.pl:656
45002 msgid ""
45003 "Note that some of these tips modify the guest disk image.  The guest I<must> "
45004 "be shut off, else you will get disk corruption."
45005 msgstr ""
45006
45007 #. type: =head2
45008 #: ../tools/virt-win-reg.pl:659
45009 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
45010 msgstr ""
45011
45012 #. type: textblock
45013 #: ../tools/virt-win-reg.pl:661
45014 msgid ""
45015 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
45016 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
45017 "is uploaded into C<C:\\>:"
45018 msgstr ""
45019
45020 #. type: verbatim
45021 #: ../tools/virt-win-reg.pl:665
45022 #, no-wrap
45023 msgid ""
45024 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
45025 "\n"
45026 msgstr ""
45027 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
45028 "\n"
45029
45030 #. type: textblock
45031 #: ../tools/virt-win-reg.pl:667
45032 msgid "Prepare a regedit file containing the registry change:"
45033 msgstr ""
45034
45035 #. type: verbatim
45036 #: ../tools/virt-win-reg.pl:669
45037 #, no-wrap
45038 msgid ""
45039 " cat > test.reg <<'EOF'\n"
45040 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
45041 " \"Test\"=\"c:\\\\test.bat\"\n"
45042 " EOF\n"
45043 "\n"
45044 msgstr ""
45045 " cat > test.reg <<'EOF'\n"
45046 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
45047 " \"Test\"=\"c:\\\\test.bat\"\n"
45048 " EOF\n"
45049 "\n"
45050
45051 #. type: textblock
45052 #: ../tools/virt-win-reg.pl:674
45053 msgid ""
45054 "In this example we use the key C<RunOnce> which means that the script will "
45055 "run precisely once when the first user logs in.  If you want it to run every "
45056 "time a user logs in, replace C<RunOnce> with C<Run>."
45057 msgstr ""
45058
45059 #. type: textblock
45060 #: ../tools/virt-win-reg.pl:678
45061 msgid "Now update the registry:"
45062 msgstr "Оновіть регістр:"
45063
45064 #. type: verbatim
45065 #: ../tools/virt-win-reg.pl:680
45066 #, no-wrap
45067 msgid ""
45068 " virt-win-reg --merge WindowsGuest test.reg\n"
45069 "\n"
45070 msgstr ""
45071
45072 #. type: =head2
45073 #: ../tools/virt-win-reg.pl:682
45074 msgid "INSTALLING A SERVICE"
45075 msgstr ""
45076
45077 #. type: textblock
45078 #: ../tools/virt-win-reg.pl:684
45079 msgid ""
45080 "This section assumes you are familiar with Windows services, and you either "
45081 "have a program which handles the Windows Service Control Protocol directly "
45082 "or you want to run any program using a service wrapper like SrvAny or the "
45083 "free RHSrvAny."
45084 msgstr ""
45085
45086 #. type: textblock
45087 #: ../tools/virt-win-reg.pl:689
45088 msgid ""
45089 "First upload the program and optionally the service wrapper.  In this case "
45090 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
45091 msgstr ""
45092
45093 #. type: verbatim
45094 #: ../tools/virt-win-reg.pl:693
45095 #, no-wrap
45096 msgid ""
45097 " guestfish -i -d WindowsGuest <<EOF\n"
45098 "   upload rhsrvany.exe /rhsrvany.exe\n"
45099 "   upload test.exe /test.exe\n"
45100 " EOF\n"
45101 "\n"
45102 msgstr ""
45103 " guestfish -i -d WindowsGuest <<EOF\n"
45104 "   upload rhsrvany.exe /rhsrvany.exe\n"
45105 "   upload test.exe /test.exe\n"
45106 " EOF\n"
45107 "\n"
45108
45109 #. type: textblock
45110 #: ../tools/virt-win-reg.pl:698
45111 msgid ""
45112 "Prepare a regedit file containing the registry changes.  In this example, "
45113 "the first registry change is needed for the service itself or the service "
45114 "wrapper (if used).  The second registry change is only needed because I am "
45115 "using the RHSrvAny service wrapper."
45116 msgstr ""
45117
45118 #. type: verbatim
45119 #: ../tools/virt-win-reg.pl:703
45120 #, no-wrap
45121 msgid ""
45122 " cat > service.reg <<'EOF'\n"
45123 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
45124 " \"Type\"=dword:00000010\n"
45125 " \"Start\"=dword:00000002\n"
45126 " \"ErrorControl\"=dword:00000001\n"
45127 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
45128 " \"DisplayName\"=\"RHSrvAny\"\n"
45129 " \"ObjectName\"=\"NetworkService\"\n"
45130 " \n"
45131 msgstr ""
45132 " cat > service.reg <<'EOF'\n"
45133 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
45134 " \"Type\"=dword:00000010\n"
45135 " \"Start\"=dword:00000002\n"
45136 " \"ErrorControl\"=dword:00000001\n"
45137 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
45138 " \"DisplayName\"=\"RHSrvAny\"\n"
45139 " \"ObjectName\"=\"NetworkService\"\n"
45140 " \n"
45141
45142 #. type: verbatim
45143 #: ../tools/virt-win-reg.pl:712
45144 #, no-wrap
45145 msgid ""
45146 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
45147 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
45148 " \"PWD\"=\"c:\\\\Temp\"\n"
45149 " EOF\n"
45150 "\n"
45151 msgstr ""
45152 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
45153 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
45154 " \"PWD\"=\"c:\\\\Temp\"\n"
45155 " EOF\n"
45156 "\n"
45157
45158 #. type: textblock
45159 #: ../tools/virt-win-reg.pl:723
45160 msgid ""
45161 "For use of C<ControlSet001> see the section above in this manual page.  You "
45162 "may need to adjust this according to the control set that is in use by the "
45163 "guest."
45164 msgstr ""
45165
45166 #. type: textblock
45167 #: ../tools/virt-win-reg.pl:729
45168 msgid ""
45169 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
45170 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
45171 "privileged account."
45172 msgstr ""
45173
45174 #. type: textblock
45175 #: ../tools/virt-win-reg.pl:735
45176 msgid ""
45177 "For the meaning of the magic numbers, see this Microsoft KB article: "
45178 "L<http://support.microsoft.com/kb/103000>."
45179 msgstr ""
45180
45181 #. type: textblock
45182 #: ../tools/virt-win-reg.pl:740
45183 msgid "Update the registry:"
45184 msgstr "Оновіть регістр:"
45185
45186 #. type: verbatim
45187 #: ../tools/virt-win-reg.pl:742
45188 #, no-wrap
45189 msgid ""
45190 " virt-win-reg --merge WindowsGuest service.reg\n"
45191 "\n"
45192 msgstr ""
45193
45194 #. type: textblock
45195 #: ../tools/virt-win-reg.pl:746
45196 msgid ""
45197 "Be careful when passing parameters containing C<\\> (backslash) in the "
45198 "shell.  Usually you will have to use 'single quotes' or double backslashes "
45199 "(but not both) to protect them from the shell."
45200 msgstr ""
45201
45202 #. type: textblock
45203 #: ../tools/virt-win-reg.pl:750
45204 msgid "Paths and value names are case-insensitive."
45205 msgstr ""
45206
45207 #. type: textblock
45208 #: ../tools/virt-win-reg.pl:759
45209 msgid ""
45210 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
45211 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
45212 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
45213 msgstr ""
45214 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
45215 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
45216 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
45217
45218 #. type: verbatim
45219 #: ../tools/virt-win-reg.pl:777
45220 #, no-wrap
45221 msgid ""
45222 " export LIBGUESTFS_DEBUG=1\n"
45223 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
45224 "\n"
45225 msgstr ""
45226
45227 #. type: textblock
45228 #: ../tools/virt-win-reg.pl:780
45229 msgid ""
45230 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
45231 "redhat.com/>"
45232 msgstr ""
45233
45234 #, fuzzy
45235 #~| msgid "C<md5>"
45236 #~ msgid "C<md>"
45237 #~ msgstr "C<md5>"