d3802a27d6ce82bc0817c976c5ece40ad9ddc5ed
[libguestfs.git] / po-docs / uk.po
1 # SOME DESCRIPTIVE TITLE
2 # Copyright (C) YEAR Red Hat Inc.
3 # This file is distributed under the same license as the libguestfs package.
4 #
5 # Translators:
6 # Yuri Chornoivan <yurchor@ukr.net>, 2011.
7 msgid ""
8 msgstr ""
9 "Project-Id-Version: libguestfs\n"
10 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
11 "POT-Creation-Date: 2011-11-24 20:18+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:491
492 #: ../sparsify/virt-sparsify.pod:171
493 msgid "B<-q>"
494 msgstr "B<-q>"
495
496 #. type: =item
497 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:493
498 #: ../sparsify/virt-sparsify.pod:173
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:177
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:179
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:181
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:561
545 #: ../sparsify/virt-sparsify.pod:183
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:563
556 #: ../sparsify/virt-sparsify.pod:185 ../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:565
568 #: ../sparsify/virt-sparsify.pod:187 ../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:189
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:191
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:676
867 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
868 #: ../tools/virt-make-fs.pl:550 ../tools/virt-tar.pl:289
869 #: ../tools/virt-win-reg.pl:744
870 msgid "SHELL QUOTING"
871 msgstr ""
872
873 #. type: textblock
874 #: ../align/virt-alignment-scan.pod:313 ../cat/virt-cat.pod:233
875 #: ../cat/virt-filesystems.pod:375 ../cat/virt-ls.pod:485
876 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:243
877 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:369
878 #: ../rescue/virt-rescue.pod:305 ../resize/virt-resize.pod:678
879 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
880 #: ../tools/virt-make-fs.pl:552 ../tools/virt-tar.pl:291
881 #: ../tools/virt-win-reg.pl:752
882 msgid ""
883 "Libvirt guest names can contain arbitrary characters, some of which have "
884 "meaning to the shell such as C<#> and space.  You may need to quote or "
885 "escape these characters on the command line.  See the shell manual page L<sh"
886 "(1)> for details."
887 msgstr ""
888
889 #. type: =head1
890 #: ../align/virt-alignment-scan.pod:318 ../cat/virt-cat.pod:238
891 #: ../cat/virt-filesystems.pod:380 ../cat/virt-ls.pod:490
892 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:248
893 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
894 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:390
895 #: ../resize/virt-resize.pod:683 ../sparsify/virt-sparsify.pod:245
896 #: ../test-tool/libguestfs-test-tool.pod:90
897 msgid "EXIT STATUS"
898 msgstr ""
899
900 #. type: textblock
901 #: ../align/virt-alignment-scan.pod:320
902 msgid "This program returns:"
903 msgstr ""
904
905 #. type: =item
906 #: ../align/virt-alignment-scan.pod:324 ../align/virt-alignment-scan.pod:330
907 #: ../align/virt-alignment-scan.pod:336 ../align/virt-alignment-scan.pod:343
908 #: ../cat/virt-cat.pod:177 ../cat/virt-cat.pod:182 ../cat/virt-cat.pod:187
909 #: ../cat/virt-cat.pod:198 ../cat/virt-cat.pod:202
910 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
911 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
912 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
913 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
914 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
915 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
916 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
917 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
918 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
919 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
920 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
921 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
922 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
923 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
924 #: ../examples/guestfs-testing.pod:110 ../examples/guestfs-testing.pod:114
925 #: ../examples/guestfs-testing.pod:118 ../fish/guestfish-actions.pod:13
926 #: ../fish/guestfish-actions.pod:20 ../fish/guestfish-actions.pod:441
927 #: ../fish/guestfish-actions.pod:449 ../fish/guestfish-actions.pod:456
928 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:1262
929 #: ../fish/guestfish-actions.pod:1266 ../fish/guestfish-actions.pod:1270
930 #: ../fish/guestfish-actions.pod:1274 ../fish/guestfish-actions.pod:1282
931 #: ../fish/guestfish-actions.pod:1286 ../fish/guestfish-actions.pod:1290
932 #: ../fish/guestfish-actions.pod:1300 ../fish/guestfish-actions.pod:1304
933 #: ../fish/guestfish-actions.pod:1308 ../fish/guestfish-actions.pod:1398
934 #: ../fish/guestfish-actions.pod:1402 ../fish/guestfish-actions.pod:1407
935 #: ../fish/guestfish-actions.pod:1412 ../fish/guestfish-actions.pod:1454
936 #: ../fish/guestfish-actions.pod:1458 ../fish/guestfish-actions.pod:1463
937 #: ../fish/guestfish-actions.pod:1719 ../fish/guestfish-actions.pod:1726
938 #: ../fish/guestfish-actions.pod:1733 ../fish/guestfish-actions.pod:2136
939 #: ../fish/guestfish-actions.pod:2142 ../fish/guestfish-actions.pod:2150
940 #: ../fish/guestfish-actions.pod:2157 ../fish/guestfish-actions.pod:2164
941 #: ../fish/guestfish.pod:445 ../fish/guestfish.pod:449
942 #: ../fish/guestfish.pod:453 ../fish/guestfish.pod:457
943 #: ../inspector/virt-inspector.pod:408 ../inspector/virt-inspector.pod:412
944 #: ../resize/virt-resize.pod:359 ../resize/virt-resize.pod:363
945 #: ../resize/virt-resize.pod:372 ../resize/virt-resize.pod:378
946 #: ../sparsify/virt-sparsify.pod:32 ../sparsify/virt-sparsify.pod:39
947 #: ../sparsify/virt-sparsify.pod:43 ../sparsify/virt-sparsify.pod:49
948 #: ../sparsify/virt-sparsify.pod:54 ../sparsify/virt-sparsify.pod:58
949 #: ../sparsify/virt-sparsify.pod:64 ../src/guestfs-actions.pod:22
950 #: ../src/guestfs-actions.pod:29 ../src/guestfs-actions.pod:641
951 #: ../src/guestfs-actions.pod:649 ../src/guestfs-actions.pod:656
952 #: ../src/guestfs-actions.pod:663 ../src/guestfs-actions.pod:2079
953 #: ../src/guestfs-actions.pod:2083 ../src/guestfs-actions.pod:2087
954 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:2099
955 #: ../src/guestfs-actions.pod:2103 ../src/guestfs-actions.pod:2107
956 #: ../src/guestfs-actions.pod:2117 ../src/guestfs-actions.pod:2121
957 #: ../src/guestfs-actions.pod:2125 ../src/guestfs-actions.pod:2263
958 #: ../src/guestfs-actions.pod:2267 ../src/guestfs-actions.pod:2272
959 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:2338
960 #: ../src/guestfs-actions.pod:2342 ../src/guestfs-actions.pod:2347
961 #: ../src/guestfs-actions.pod:2762 ../src/guestfs-actions.pod:2769
962 #: ../src/guestfs-actions.pod:2776 ../src/guestfs-actions.pod:3321
963 #: ../src/guestfs-actions.pod:3327 ../src/guestfs-actions.pod:3335
964 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3349
965 #: ../src/guestfs.pod:403 ../src/guestfs.pod:408 ../src/guestfs.pod:413
966 #: ../src/guestfs.pod:417 ../src/guestfs.pod:422 ../src/guestfs.pod:426
967 #: ../src/guestfs.pod:431 ../src/guestfs.pod:436 ../src/guestfs.pod:1109
968 #: ../src/guestfs.pod:1113 ../src/guestfs.pod:1117 ../src/guestfs.pod:1122
969 #: ../src/guestfs.pod:1130 ../src/guestfs.pod:1149 ../src/guestfs.pod:1157
970 #: ../src/guestfs.pod:1179 ../src/guestfs.pod:1183 ../src/guestfs.pod:1187
971 #: ../src/guestfs.pod:1191 ../src/guestfs.pod:1195 ../src/guestfs.pod:1199
972 #: ../src/guestfs.pod:1689 ../src/guestfs.pod:1694 ../src/guestfs.pod:1698
973 #: ../src/guestfs.pod:1800 ../src/guestfs.pod:1805 ../src/guestfs.pod:1809
974 #: ../src/guestfs.pod:1819 ../src/guestfs.pod:2108 ../src/guestfs.pod:2113
975 #: ../src/guestfs.pod:2119 ../src/guestfs.pod:2127 ../src/guestfs.pod:2645
976 #: ../src/guestfs.pod:2651 ../src/guestfs.pod:2656 ../src/guestfs.pod:2662
977 #: ../src/guestfs.pod:3067 ../src/guestfs.pod:3072 ../src/guestfs.pod:3076
978 #: ../src/guestfs.pod:3080 ../src/guestfs.pod:3084 ../src/guestfs.pod:3098
979 #: ../src/guestfs.pod:3103 ../src/guestfs.pod:3335 ../src/guestfs.pod:3339
980 #: ../src/guestfs.pod:3343 ../src/guestfs.pod:3347
981 #: ../tools/virt-win-reg.pl:197 ../tools/virt-win-reg.pl:202
982 #: ../tools/virt-win-reg.pl:208 ../tools/virt-win-reg.pl:721
983 #: ../tools/virt-win-reg.pl:727 ../tools/virt-win-reg.pl:733
984 msgid "*"
985 msgstr "*"
986
987 #. type: textblock
988 #: ../align/virt-alignment-scan.pod:326
989 msgid "0"
990 msgstr ""
991
992 #. type: textblock
993 #: ../align/virt-alignment-scan.pod:328
994 msgid ""
995 "successful exit, all partitions are aligned E<ge> 64K for best performance"
996 msgstr ""
997
998 #. type: textblock
999 #: ../align/virt-alignment-scan.pod:332
1000 msgid "1"
1001 msgstr ""
1002
1003 #. type: textblock
1004 #: ../align/virt-alignment-scan.pod:334
1005 msgid "an error scanning the disk image or guest"
1006 msgstr ""
1007
1008 #. type: textblock
1009 #: ../align/virt-alignment-scan.pod:338
1010 msgid "2"
1011 msgstr ""
1012
1013 #. type: textblock
1014 #: ../align/virt-alignment-scan.pod:340
1015 msgid ""
1016 "successful exit, some partitions have alignment E<lt> 64K which can result "
1017 "in poor performance on high end network storage"
1018 msgstr ""
1019
1020 #. type: textblock
1021 #: ../align/virt-alignment-scan.pod:345
1022 msgid "3"
1023 msgstr ""
1024
1025 #. type: textblock
1026 #: ../align/virt-alignment-scan.pod:347
1027 msgid ""
1028 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1029 "poor performance on most hypervisors"
1030 msgstr ""
1031
1032 #. type: =head1
1033 #: ../align/virt-alignment-scan.pod:352 ../cat/virt-cat.pod:243
1034 #: ../cat/virt-filesystems.pod:385 ../cat/virt-ls.pod:495
1035 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:253
1036 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1037 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1038 #: ../examples/guestfs-testing.pod:291 ../fish/guestfish.pod:1268
1039 #: ../fish/virt-copy-in.pod:50 ../fish/virt-copy-out.pod:39
1040 #: ../fish/virt-tar-in.pod:47 ../fish/virt-tar-out.pod:41
1041 #: ../fuse/guestmount.pod:317 ../inspector/virt-inspector.pod:395
1042 #: ../java/examples/guestfs-java.pod:45 ../ocaml/examples/guestfs-ocaml.pod:78
1043 #: ../perl/examples/guestfs-perl.pod:39
1044 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:325
1045 #: ../resize/virt-resize.pod:688 ../ruby/examples/guestfs-ruby.pod:36
1046 #: ../sparsify/virt-sparsify.pod:269 ../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:711 ../sparsify/virt-sparsify.pod:282
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:713
1079 #: ../sparsify/virt-sparsify.pod:284 ../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:715 ../ruby/examples/guestfs-ruby.pod:52
1099 #: ../sparsify/virt-sparsify.pod:286 ../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:288
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:719
1122 #: ../sparsify/virt-sparsify.pod:290 ../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:724
1142 #: ../sparsify/virt-sparsify.pod:295 ../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:729
1166 #: ../sparsify/virt-sparsify.pod:300 ../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:685 ../sparsify/virt-sparsify.pod:247
1595 msgid ""
1596 "This program returns 0 if successful, or non-zero if there was an error."
1597 msgstr ""
1598
1599 #. type: textblock
1600 #: ../cat/virt-cat.pod:245
1601 msgid ""
1602 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1603 "tar-out(1)>, L<http://libguestfs.org/>."
1604 msgstr ""
1605 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1606 "tar-out(1)>, L<http://libguestfs.org/>."
1607
1608 #. type: textblock
1609 #: ../cat/virt-cat.pod:258 ../inspector/virt-inspector.pod:420
1610 #: ../resize/virt-resize.pod:717 ../tools/virt-make-fs.pl:588
1611 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1612 msgstr "©Red Hat Inc., 2010–2011"
1613
1614 #. type: textblock
1615 #: ../cat/virt-filesystems.pod:5
1616 msgid ""
1617 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1618 "virtual machine or disk image"
1619 msgstr ""
1620
1621 #. type: verbatim
1622 #: ../cat/virt-filesystems.pod:9
1623 #, no-wrap
1624 msgid ""
1625 " virt-filesystems [--options] -d domname\n"
1626 "\n"
1627 msgstr ""
1628 " virt-filesystems [--параметри] -d назва_домену\n"
1629 "\n"
1630
1631 #. type: verbatim
1632 #: ../cat/virt-filesystems.pod:11
1633 #, no-wrap
1634 msgid ""
1635 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1636 "\n"
1637 msgstr ""
1638
1639 #. type: textblock
1640 #: ../cat/virt-filesystems.pod:15
1641 msgid ""
1642 "This tool allows you to discover filesystems, partitions, logical volumes, "
1643 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1644 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1645 msgstr ""
1646
1647 #. type: textblock
1648 #: ../cat/virt-filesystems.pod:20
1649 msgid ""
1650 "One use for this tool is from shell scripts to iterate over all filesystems "
1651 "from a disk image:"
1652 msgstr ""
1653
1654 #. type: verbatim
1655 #: ../cat/virt-filesystems.pod:23
1656 #, no-wrap
1657 msgid ""
1658 " for fs in $(virt-filesystems -a disk.img); do\n"
1659 "   # ...\n"
1660 " done\n"
1661 "\n"
1662 msgstr ""
1663 " for fs in $(virt-filesystems -a disk.img); do\n"
1664 "   # ...\n"
1665 " done\n"
1666 "\n"
1667
1668 #. type: textblock
1669 #: ../cat/virt-filesystems.pod:27
1670 msgid ""
1671 "Another use is to list partitions before using another tool to modify those "
1672 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1673 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1674 msgstr ""
1675
1676 #. type: textblock
1677 #: ../cat/virt-filesystems.pod:32
1678 msgid ""
1679 "Various command line options control what this program displays.  You need "
1680 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1681 "guest respectively.  If you just specify that then the program shows "
1682 "filesystems found, one per line, like this:"
1683 msgstr ""
1684
1685 #. type: verbatim
1686 #: ../cat/virt-filesystems.pod:37
1687 #, no-wrap
1688 msgid ""
1689 " $ virt-filesystems -a disk.img\n"
1690 " /dev/sda1\n"
1691 " /dev/vg_guest/lv_root\n"
1692 "\n"
1693 msgstr ""
1694 " $ virt-filesystems -a disk.img\n"
1695 " /dev/sda1\n"
1696 " /dev/vg_guest/lv_root\n"
1697 "\n"
1698
1699 #. type: textblock
1700 #: ../cat/virt-filesystems.pod:41
1701 msgid ""
1702 "If you add I<-l> or I<--long> then the output includes extra information:"
1703 msgstr ""
1704
1705 #. type: verbatim
1706 #: ../cat/virt-filesystems.pod:44
1707 #, no-wrap
1708 msgid ""
1709 " $ virt-filesystems -a disk.img -l\n"
1710 " Name                   Type         VFS   Label  Size\n"
1711 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1712 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1713 "\n"
1714 msgstr ""
1715
1716 #. type: textblock
1717 #: ../cat/virt-filesystems.pod:49
1718 msgid ""
1719 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1720 "shown as well:"
1721 msgstr ""
1722
1723 #. type: verbatim
1724 #: ../cat/virt-filesystems.pod:52
1725 #, no-wrap
1726 msgid ""
1727 " $ virt-filesystems -a disk.img --extra\n"
1728 " /dev/sda1\n"
1729 " /dev/vg_guest/lv_root\n"
1730 " /dev/vg_guest/lv_swap\n"
1731 " /dev/vg_guest/lv_data\n"
1732 "\n"
1733 msgstr ""
1734 " $ virt-filesystems -a disk.img --extra\n"
1735 " /dev/sda1\n"
1736 " /dev/vg_guest/lv_root\n"
1737 " /dev/vg_guest/lv_swap\n"
1738 " /dev/vg_guest/lv_data\n"
1739 "\n"
1740
1741 #. type: textblock
1742 #: ../cat/virt-filesystems.pod:58
1743 msgid ""
1744 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1745 msgstr ""
1746
1747 #. type: verbatim
1748 #: ../cat/virt-filesystems.pod:60
1749 #, no-wrap
1750 msgid ""
1751 " $ virt-filesystems -a disk.img --partitions\n"
1752 " /dev/sda1\n"
1753 " /dev/sda2\n"
1754 "\n"
1755 msgstr ""
1756 " $ virt-filesystems -a disk.img --partitions\n"
1757 " /dev/sda1\n"
1758 " /dev/sda2\n"
1759 "\n"
1760
1761 #. type: textblock
1762 #: ../cat/virt-filesystems.pod:64
1763 msgid ""
1764 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1765 "volumes>, I<--block-devices> to list those items."
1766 msgstr ""
1767
1768 #. type: textblock
1769 #: ../cat/virt-filesystems.pod:67
1770 msgid ""
1771 "You can use these options in combination as well (if you want a combination "
1772 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1773 "items fall into several categories (eg. C</dev/sda1> might be both a "
1774 "partition and a filesystem).  These items are listed several times.  To get "
1775 "a list which includes absolutely everything that virt-filesystems knows "
1776 "about, use the I<--all> option."
1777 msgstr ""
1778
1779 #. type: textblock
1780 #: ../cat/virt-filesystems.pod:74
1781 msgid ""
1782 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1783 "uuid> option to display device and filesystem UUIDs in the long output."
1784 msgstr ""
1785
1786 #. type: textblock
1787 #: ../cat/virt-filesystems.pod:78
1788 msgid ""
1789 "I<--all --long --uuid> is a useful combination to display all possible "
1790 "information about everything."
1791 msgstr ""
1792
1793 #. type: verbatim
1794 #: ../cat/virt-filesystems.pod:81
1795 #, no-wrap
1796 msgid ""
1797 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1798 " Name      Type       VFS  Label           Size Parent   UUID\n"
1799 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1800 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1801 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1802 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1803 " /dev/sda  device     -    -               20G  -        -\n"
1804 "\n"
1805 msgstr ""
1806
1807 #. type: textblock
1808 #: ../cat/virt-filesystems.pod:89
1809 msgid ""
1810 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1811 msgstr ""
1812
1813 #. type: =item
1814 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1815 msgid "B<--all>"
1816 msgstr "B<--all>"
1817
1818 #. type: textblock
1819 #: ../cat/virt-filesystems.pod:112
1820 msgid ""
1821 "Display everything.  This is currently the same as specifying these options: "
1822 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1823 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1824 "added to this list in future)."
1825 msgstr ""
1826
1827 #. type: textblock
1828 #: ../cat/virt-filesystems.pod:117
1829 msgid "See also I<--long>."
1830 msgstr "Див. також I<--long>."
1831
1832 #. type: =item
1833 #: ../cat/virt-filesystems.pod:119
1834 msgid "B<--blkdevs>"
1835 msgstr "B<--blkdevs>"
1836
1837 #. type: =item
1838 #: ../cat/virt-filesystems.pod:121
1839 msgid "B<--block-devices>"
1840 msgstr "B<--block-devices>"
1841
1842 #. type: textblock
1843 #: ../cat/virt-filesystems.pod:123
1844 msgid "Display block devices."
1845 msgstr "Показати список блокових пристроїв."
1846
1847 #. type: =item
1848 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1849 msgid "B<--csv>"
1850 msgstr "B<--csv>"
1851
1852 #. type: textblock
1853 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1854 msgid ""
1855 "Write out the results in CSV format (comma-separated values).  This format "
1856 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1857 "ABOUT CSV FORMAT> below."
1858 msgstr ""
1859
1860 #. type: textblock
1861 #: ../cat/virt-filesystems.pod:150
1862 msgid ""
1863 "When prompting for keys and passphrases, virt-filesystems normally turns "
1864 "echoing off so you cannot see what you are typing.  If you are not worried "
1865 "about Tempest attacks and there is no one else in the room you can specify "
1866 "this flag to see what you are typing."
1867 msgstr ""
1868
1869 #. type: =item
1870 #: ../cat/virt-filesystems.pod:155
1871 msgid "B<--extra>"
1872 msgstr "B<--extra>"
1873
1874 #. type: textblock
1875 #: ../cat/virt-filesystems.pod:157
1876 msgid ""
1877 "This causes filesystems that are not ordinary, mountable filesystems to be "
1878 "displayed.  This category includes swapspace, and filesystems that are empty "
1879 "or contain unknown data."
1880 msgstr ""
1881
1882 #. type: textblock
1883 #: ../cat/virt-filesystems.pod:161
1884 msgid "This option implies I<--filesystems>."
1885 msgstr ""
1886
1887 #. type: =item
1888 #: ../cat/virt-filesystems.pod:163
1889 msgid "B<--filesystems>"
1890 msgstr "B<--filesystems>"
1891
1892 #. type: textblock
1893 #: ../cat/virt-filesystems.pod:165
1894 msgid ""
1895 "Display mountable filesystems.  If no display option was selected then this "
1896 "option is implied."
1897 msgstr ""
1898
1899 #. type: textblock
1900 #: ../cat/virt-filesystems.pod:168
1901 msgid "With I<--extra>, non-mountable filesystems are shown too."
1902 msgstr ""
1903
1904 #. type: verbatim
1905 #: ../cat/virt-filesystems.pod:181
1906 #, no-wrap
1907 msgid ""
1908 " virt-filesystems --format=raw -a disk.img\n"
1909 "\n"
1910 msgstr ""
1911 " virt-filesystems --format=raw -a диск.img\n"
1912 "\n"
1913
1914 #. type: verbatim
1915 #: ../cat/virt-filesystems.pod:185
1916 #, no-wrap
1917 msgid ""
1918 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1919 "\n"
1920 msgstr ""
1921
1922 #. type: =item
1923 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1924 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1925 #: ../tools/virt-list-partitions.pl:109
1926 msgid "B<-h>"
1927 msgstr "B<-h>"
1928
1929 #. type: =item
1930 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1931 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1932 msgid "B<--human-readable>"
1933 msgstr "B<--human-readable>"
1934
1935 #. type: textblock
1936 #: ../cat/virt-filesystems.pod:198
1937 msgid "In I<--long> mode, display sizes in human-readable format."
1938 msgstr ""
1939
1940 #. type: =item
1941 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1942 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1943 msgid "B<-l>"
1944 msgstr "B<-l>"
1945
1946 #. type: =item
1947 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1948 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1949 msgid "B<--long>"
1950 msgstr "B<--long>"
1951
1952 #. type: textblock
1953 #: ../cat/virt-filesystems.pod:209
1954 msgid "Display extra columns of data (\"long format\")."
1955 msgstr ""
1956
1957 #. type: textblock
1958 #: ../cat/virt-filesystems.pod:211
1959 msgid "A title row is added unless you also specify I<--no-title>."
1960 msgstr ""
1961
1962 #. type: textblock
1963 #: ../cat/virt-filesystems.pod:213
1964 msgid ""
1965 "The extra columns displayed depend on what output you select, and the "
1966 "ordering of columns may change in future versions.  Use the title row, I<--"
1967 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1968 "programs."
1969 msgstr ""
1970
1971 #. type: textblock
1972 #: ../cat/virt-filesystems.pod:218
1973 msgid ""
1974 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1975 "default is to show raw numbers of I<bytes>."
1976 msgstr ""
1977
1978 #. type: textblock
1979 #: ../cat/virt-filesystems.pod:221
1980 msgid "Use I<--uuid> to display UUIDs too."
1981 msgstr ""
1982
1983 #. type: =item
1984 #: ../cat/virt-filesystems.pod:223
1985 msgid "B<--lvs>"
1986 msgstr "B<--lvs>"
1987
1988 #. type: =item
1989 #: ../cat/virt-filesystems.pod:225
1990 msgid "B<--logvols>"
1991 msgstr "B<--logvols>"
1992
1993 #. type: =item
1994 #: ../cat/virt-filesystems.pod:227
1995 msgid "B<--logical-volumes>"
1996 msgstr "B<--logical-volumes>"
1997
1998 #. type: textblock
1999 #: ../cat/virt-filesystems.pod:229
2000 msgid ""
2001 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
2002 "of whether the LVs contain filesystems."
2003 msgstr ""
2004
2005 #. type: =item
2006 #: ../cat/virt-filesystems.pod:232
2007 msgid "B<--no-title>"
2008 msgstr "B<--no-title>"
2009
2010 #. type: textblock
2011 #: ../cat/virt-filesystems.pod:234
2012 msgid "In I<--long> mode, don't add a title row."
2013 msgstr ""
2014
2015 #. type: textblock
2016 #: ../cat/virt-filesystems.pod:236
2017 msgid ""
2018 "Note that the order of the columns is not fixed, and may change in future "
2019 "versions of virt-filesystems, so using this option may give you unexpected "
2020 "surprises."
2021 msgstr ""
2022
2023 #. type: =item
2024 #: ../cat/virt-filesystems.pod:240
2025 msgid "B<--parts>"
2026 msgstr "B<--parts>"
2027
2028 #. type: =item
2029 #: ../cat/virt-filesystems.pod:242
2030 msgid "B<--partitions>"
2031 msgstr "B<--partitions>"
2032
2033 #. type: textblock
2034 #: ../cat/virt-filesystems.pod:244
2035 msgid ""
2036 "Display partitions.  In this mode, these are displayed irrespective of "
2037 "whether the partitions contain filesystems."
2038 msgstr ""
2039
2040 #. type: =item
2041 #: ../cat/virt-filesystems.pod:247
2042 msgid "B<--pvs>"
2043 msgstr "B<--pvs>"
2044
2045 #. type: =item
2046 #: ../cat/virt-filesystems.pod:249
2047 msgid "B<--physvols>"
2048 msgstr "B<--physvols>"
2049
2050 #. type: =item
2051 #: ../cat/virt-filesystems.pod:251
2052 msgid "B<--physical-volumes>"
2053 msgstr "B<--physical-volumes>"
2054
2055 #. type: textblock
2056 #: ../cat/virt-filesystems.pod:253
2057 msgid "Display LVM physical volumes."
2058 msgstr ""
2059
2060 #. type: =item
2061 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
2062 msgid "B<--uuid>"
2063 msgstr "B<--uuid>"
2064
2065 #. type: =item
2066 #: ../cat/virt-filesystems.pod:257
2067 msgid "B<--uuids>"
2068 msgstr "B<--uuids>"
2069
2070 #. type: textblock
2071 #: ../cat/virt-filesystems.pod:259
2072 msgid "In I<--long> mode, display UUIDs as well."
2073 msgstr ""
2074
2075 #. type: =item
2076 #: ../cat/virt-filesystems.pod:273
2077 msgid "B<--vgs>"
2078 msgstr "B<--vgs>"
2079
2080 #. type: =item
2081 #: ../cat/virt-filesystems.pod:275
2082 msgid "B<--volgroups>"
2083 msgstr "B<--volgroups>"
2084
2085 #. type: =item
2086 #: ../cat/virt-filesystems.pod:277
2087 msgid "B<--volume-groups>"
2088 msgstr "B<--volume-groups>"
2089
2090 #. type: textblock
2091 #: ../cat/virt-filesystems.pod:279
2092 msgid "Display LVM volume groups."
2093 msgstr ""
2094
2095 #. type: =head1
2096 #: ../cat/virt-filesystems.pod:287
2097 msgid "COLUMNS"
2098 msgstr "СТОВПЧИКИ"
2099
2100 #. type: textblock
2101 #: ../cat/virt-filesystems.pod:289
2102 msgid ""
2103 "Note that columns in the output are subject to reordering and change in "
2104 "future versions of this tool."
2105 msgstr ""
2106
2107 #. type: =item
2108 #: ../cat/virt-filesystems.pod:294
2109 msgid "B<Name>"
2110 msgstr ""
2111
2112 #. type: textblock
2113 #: ../cat/virt-filesystems.pod:296
2114 msgid "The filesystem, partition, block device or LVM name."
2115 msgstr ""
2116
2117 #. type: textblock
2118 #: ../cat/virt-filesystems.pod:298
2119 msgid ""
2120 "For device and partition names these are displayed as canonical libguestfs "
2121 "names, so that for example C</dev/sda2> is the second partition on the first "
2122 "device."
2123 msgstr ""
2124
2125 #. type: textblock
2126 #: ../cat/virt-filesystems.pod:302
2127 msgid ""
2128 "If the I<--long> option is B<not> specified, then only the name column is "
2129 "shown in the output."
2130 msgstr ""
2131
2132 #. type: =item
2133 #: ../cat/virt-filesystems.pod:305
2134 msgid "B<Type>"
2135 msgstr ""
2136
2137 #. type: textblock
2138 #: ../cat/virt-filesystems.pod:307
2139 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2140 msgstr ""
2141
2142 #. type: =item
2143 #: ../cat/virt-filesystems.pod:309
2144 msgid "B<VFS>"
2145 msgstr "B<VFS>"
2146
2147 #. type: textblock
2148 #: ../cat/virt-filesystems.pod:311
2149 msgid ""
2150 "If there is a filesystem, then this column displays the filesystem type if "
2151 "one could be detected, eg. C<ext4>."
2152 msgstr ""
2153
2154 #. type: =item
2155 #: ../cat/virt-filesystems.pod:314
2156 msgid "B<Label>"
2157 msgstr ""
2158
2159 #. type: textblock
2160 #: ../cat/virt-filesystems.pod:316
2161 msgid ""
2162 "If the object has a label (used for identifying and mounting filesystems) "
2163 "then this column contains the label."
2164 msgstr ""
2165
2166 #. type: =item
2167 #: ../cat/virt-filesystems.pod:319
2168 msgid "B<MBR>"
2169 msgstr ""
2170
2171 #. type: textblock
2172 #: ../cat/virt-filesystems.pod:321
2173 msgid ""
2174 "The partition type byte, displayed as a two digit hexadecimal number.  A "
2175 "comprehensive list of partition types can be found here: L<http://www.win."
2176 "tue.nl/~aeb/partitions/partition_types-1.html>"
2177 msgstr ""
2178
2179 #. type: textblock
2180 #: ../cat/virt-filesystems.pod:325
2181 msgid "This is only applicable for DOS (MBR) partitions."
2182 msgstr ""
2183
2184 #. type: =item
2185 #: ../cat/virt-filesystems.pod:327
2186 msgid "B<Size>"
2187 msgstr ""
2188
2189 #. type: textblock
2190 #: ../cat/virt-filesystems.pod:329
2191 msgid ""
2192 "The size of the object in bytes.  If the I<--human> option is used then the "
2193 "size is displayed in a human-readable form."
2194 msgstr ""
2195
2196 #. type: =item
2197 #: ../cat/virt-filesystems.pod:332
2198 msgid "B<Parent>"
2199 msgstr ""
2200
2201 #. type: textblock
2202 #: ../cat/virt-filesystems.pod:334
2203 msgid ""
2204 "The parent column records the parent relationship between objects.  For "
2205 "example, if the object is a partition, then this column contains the name of "
2206 "the containing device.  If the object is a logical volume, then this column "
2207 "is the name of the volume group."
2208 msgstr ""
2209
2210 #. type: =item
2211 #: ../cat/virt-filesystems.pod:339
2212 msgid "B<UUID>"
2213 msgstr "B<UUID>"
2214
2215 #. type: textblock
2216 #: ../cat/virt-filesystems.pod:341
2217 msgid ""
2218 "If the object has a UUID (used for identifying and mounting filesystems and "
2219 "block devices) then this column contains the UUID as a string."
2220 msgstr ""
2221
2222 #. type: textblock
2223 #: ../cat/virt-filesystems.pod:345
2224 msgid "The UUID is only displayed if the I<--uuid> option is given."
2225 msgstr ""
2226
2227 #. type: =head1
2228 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:459
2229 #: ../df/virt-df.pod:217
2230 msgid "NOTE ABOUT CSV FORMAT"
2231 msgstr ""
2232
2233 #. type: textblock
2234 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:461
2235 #: ../df/virt-df.pod:219
2236 msgid ""
2237 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2238 "should be easy to parse, but it is definitely not easy to parse."
2239 msgstr ""
2240
2241 #. type: textblock
2242 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:464
2243 #: ../df/virt-df.pod:222
2244 msgid ""
2245 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2246 "reliably.  This example has two columns:"
2247 msgstr ""
2248
2249 #. type: verbatim
2250 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:467
2251 #: ../df/virt-df.pod:225
2252 #, no-wrap
2253 msgid ""
2254 " \"foo,bar\",baz\n"
2255 "\n"
2256 msgstr ""
2257
2258 #. type: textblock
2259 #: ../cat/virt-filesystems.pod:359 ../cat/virt-ls.pod:469
2260 #: ../df/virt-df.pod:227
2261 msgid ""
2262 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2263 "reliably.  This example has one row:"
2264 msgstr ""
2265
2266 #. type: verbatim
2267 #: ../cat/virt-filesystems.pod:362 ../cat/virt-ls.pod:472
2268 #: ../df/virt-df.pod:230
2269 #, no-wrap
2270 msgid ""
2271 " \"foo\n"
2272 " bar\",baz\n"
2273 "\n"
2274 msgstr ""
2275
2276 #. type: textblock
2277 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:475
2278 #: ../df/virt-df.pod:233
2279 msgid ""
2280 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2281 "packaged in major Linux distributions)."
2282 msgstr ""
2283
2284 #. type: textblock
2285 #: ../cat/virt-filesystems.pod:368 ../cat/virt-ls.pod:478
2286 #: ../df/virt-df.pod:236
2287 msgid ""
2288 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2289 "or Python's built-in csv library)."
2290 msgstr ""
2291
2292 #. type: textblock
2293 #: ../cat/virt-filesystems.pod:371 ../cat/virt-ls.pod:481
2294 #: ../df/virt-df.pod:239
2295 msgid "Most spreadsheets and databases can import CSV directly."
2296 msgstr ""
2297
2298 #. type: textblock
2299 #: ../cat/virt-filesystems.pod:387
2300 msgid ""
2301 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2302 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2303 "libguestfs.org/>."
2304 msgstr ""
2305 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2306 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2307 "libguestfs.org/>."
2308
2309 #. type: textblock
2310 #: ../cat/virt-filesystems.pod:402 ../tools/virt-win-reg.pl:789
2311 msgid "Copyright (C) 2010 Red Hat Inc."
2312 msgstr "©Red Hat Inc., 2010"
2313
2314 #. type: textblock
2315 #: ../cat/virt-ls.pod:5
2316 msgid "virt-ls - List files in a virtual machine"
2317 msgstr ""
2318
2319 #. type: verbatim
2320 #: ../cat/virt-ls.pod:9
2321 #, no-wrap
2322 msgid ""
2323 " virt-ls [--options] -d domname directory [directory ...]\n"
2324 "\n"
2325 msgstr ""
2326
2327 #. type: verbatim
2328 #: ../cat/virt-ls.pod:11
2329 #, no-wrap
2330 msgid ""
2331 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2332 "\n"
2333 msgstr ""
2334
2335 #. type: textblock
2336 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod: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:4494
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:250
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:3398 ../fish/guestfish-actions.pod:3709
6798 #: ../fish/guestfish-actions.pod:3757 ../fish/guestfish-actions.pod:4675
6799 #: ../fish/guestfish-actions.pod:4695 ../fish/guestfish-actions.pod:4714
6800 #: ../fish/guestfish-actions.pod:4752 ../fish/guestfish-actions.pod:5480
6801 #: ../fish/guestfish-actions.pod:5583 ../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:5248
6806 #: ../src/guestfs-actions.pod:5770 ../src/guestfs-actions.pod:5870
6807 #: ../src/guestfs-actions.pod:7166 ../src/guestfs-actions.pod:7207
6808 #: ../src/guestfs-actions.pod:7238 ../src/guestfs-actions.pod:7298
6809 #: ../src/guestfs-actions.pod:8352 ../src/guestfs-actions.pod:8461
6810 #: ../src/guestfs-actions.pod:8641
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:3215 ../fish/guestfish-actions.pod:3447
6985 #: ../fish/guestfish-actions.pod:3610 ../fish/guestfish-actions.pod:3745
6986 #: ../fish/guestfish-actions.pod:5116
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:3409
7066 #: ../src/guestfs-actions.pod:221 ../src/guestfs-actions.pod:5285
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:3242
7118 #: ../src/guestfs-actions.pod:247 ../src/guestfs-actions.pod:4996
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:4972 ../fish/guestfish-actions.pod:4984
7770 #: ../fish/guestfish-actions.pod:4995 ../fish/guestfish-actions.pod:5006
7771 #: ../fish/guestfish-actions.pod:5137 ../fish/guestfish-actions.pod:5146
7772 #: ../fish/guestfish-actions.pod:5200 ../fish/guestfish-actions.pod:5223
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:3164
8051 #: ../fish/guestfish-actions.pod:3720 ../fish/guestfish-actions.pod:5046
8052 #: ../src/guestfs-actions.pod:903 ../src/guestfs-actions.pod:4892
8053 #: ../src/guestfs-actions.pod:5809 ../src/guestfs-actions.pod:7785
8054 msgid "The optional parameters are:"
8055 msgstr ""
8056
8057 #. type: =item
8058 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3724
8059 #: ../src/guestfs-actions.pod:907 ../src/guestfs-actions.pod:5813
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:4151
8163 #: ../src/guestfs-actions.pod:991 ../src/guestfs-actions.pod:6469
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:4021 ../fish/guestfish-actions.pod:4036
8185 #: ../fish/guestfish-actions.pod:4112 ../fish/guestfish-actions.pod:4129
8186 #: ../fish/guestfish-actions.pod:4144 ../fish/guestfish-actions.pod:4813
8187 #: ../fish/guestfish-actions.pod:4859 ../fish/guestfish-actions.pod:4944
8188 #: ../fish/guestfish-actions.pod:4959 ../fish/guestfish-actions.pod:5444
8189 #: ../fish/guestfish-actions.pod:5456 ../fish/guestfish-actions.pod:5474
8190 #: ../fish/guestfish-actions.pod:5491 ../fish/guestfish-actions.pod:5501
8191 #: ../fish/guestfish-actions.pod:5555 ../fish/guestfish-actions.pod:5565
8192 #: ../fish/guestfish-actions.pod:5594 ../fish/guestfish-actions.pod:5604
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:6251 ../src/guestfs-actions.pod:6277
8201 #: ../src/guestfs-actions.pod:6408 ../src/guestfs-actions.pod:6434
8202 #: ../src/guestfs-actions.pod:6458 ../src/guestfs-actions.pod:7413
8203 #: ../src/guestfs-actions.pod:7468 ../src/guestfs-actions.pod:7614
8204 #: ../src/guestfs-actions.pod:7638 ../src/guestfs-actions.pod:8425
8205 #: ../src/guestfs-actions.pod:8445 ../src/guestfs-actions.pod:8478
8206 #: ../src/guestfs-actions.pod:8497 ../src/guestfs-actions.pod:8516
8207 #: ../src/guestfs-actions.pod:8607 ../src/guestfs-actions.pod:8626
8208 #: ../src/guestfs-actions.pod:8672 ../src/guestfs-actions.pod:8691
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:3373
8408 #: ../fish/guestfish-actions.pod:3512 ../fish/guestfish-actions.pod:3522
8409 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:1117
8410 #: ../src/guestfs-actions.pod:5216 ../src/guestfs-actions.pod:5425
8411 #: ../src/guestfs-actions.pod:5444 ../src/guestfs-actions.pod:5463
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:2703
8435 #: ../src/guestfs-actions.pod:1133 ../src/guestfs-actions.pod:4124
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:5196
8925 #: ../src/guestfs-actions.pod:1717 ../src/guestfs-actions.pod:7995
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:4474 ../fish/guestfish-actions.pod:4576
10018 #: ../src/guestfs-actions.pod:2464 ../src/guestfs-actions.pod:2556
10019 #: ../src/guestfs-actions.pod:6927 ../src/guestfs-actions.pod:7053
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:2570
10232 #: ../fish/guestfish-actions.pod:2588 ../fish/guestfish-actions.pod:2626
10233 #: ../fish/guestfish-actions.pod:2642 ../src/guestfs-actions.pod:2582
10234 #: ../src/guestfs-actions.pod:3901 ../src/guestfs-actions.pod:3930
10235 #: ../src/guestfs-actions.pod:3991 ../src/guestfs-actions.pod:4018
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:2715
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:2722
10361 #: ../src/guestfs-actions.pod:2656 ../src/guestfs-actions.pod:4151
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:4957
10592 #: ../src/guestfs-actions.pod:2826 ../src/guestfs-actions.pod:7632
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:2362
10930 #: ../fish/guestfish-actions.pod:2375 ../fish/guestfish-actions.pod:2388
10931 #: ../fish/guestfish-actions.pod:2398 ../fish/guestfish-actions.pod:2408
10932 #: ../fish/guestfish-actions.pod:2420 ../fish/guestfish-actions.pod:2516
10933 #: ../fish/guestfish-actions.pod:2550 ../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:3634 ../src/guestfs-actions.pod:3654
10939 #: ../src/guestfs-actions.pod:3674 ../src/guestfs-actions.pod:3691
10940 #: ../src/guestfs-actions.pod:3707 ../src/guestfs-actions.pod:3725
10941 #: ../src/guestfs-actions.pod:3827 ../src/guestfs-actions.pod:3868
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:2353 ../src/guestfs-actions.pod:3136
11144 #: ../src/guestfs-actions.pod:3245 ../src/guestfs-actions.pod:3625
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:2359 ../src/guestfs-actions.pod:3147
11169 #: ../src/guestfs-actions.pod:3251 ../src/guestfs-actions.pod:3631
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: textblock
11829 #: ../fish/guestfish-actions.pod:2355 ../src/guestfs-actions.pod:3627
11830 msgid "The operating system type could not be determined."
11831 msgstr ""
11832
11833 #. type: =head2
11834 #: ../fish/guestfish-actions.pod:2364
11835 msgid "inspect-get-windows-current-control-set"
11836 msgstr ""
11837
11838 #. type: verbatim
11839 #: ../fish/guestfish-actions.pod:2366
11840 #, no-wrap
11841 msgid ""
11842 " inspect-get-windows-current-control-set root\n"
11843 "\n"
11844 msgstr ""
11845
11846 #. type: textblock
11847 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3647
11848 msgid ""
11849 "This returns the Windows CurrentControlSet of the inspected guest.  The "
11850 "CurrentControlSet is a registry key name such as C<ControlSet001>."
11851 msgstr ""
11852
11853 #. type: textblock
11854 #: ../fish/guestfish-actions.pod:2371 ../src/guestfs-actions.pod:3650
11855 msgid ""
11856 "This call assumes that the guest is Windows and that the Registry could be "
11857 "examined by inspection.  If this is not the case then an error is returned."
11858 msgstr ""
11859
11860 #. type: =head2
11861 #: ../fish/guestfish-actions.pod:2377
11862 msgid "inspect-get-windows-systemroot"
11863 msgstr "inspect-get-windows-systemroot"
11864
11865 #. type: verbatim
11866 #: ../fish/guestfish-actions.pod:2379
11867 #, no-wrap
11868 msgid ""
11869 " inspect-get-windows-systemroot root\n"
11870 "\n"
11871 msgstr ""
11872 " inspect-get-windows-systemroot корінь\n"
11873 "\n"
11874
11875 #. type: textblock
11876 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3667
11877 msgid ""
11878 "This returns the Windows systemroot of the inspected guest.  The systemroot "
11879 "is a directory path such as C</WINDOWS>."
11880 msgstr ""
11881
11882 #. type: textblock
11883 #: ../fish/guestfish-actions.pod:2384 ../src/guestfs-actions.pod:3670
11884 msgid ""
11885 "This call assumes that the guest is Windows and that the systemroot could be "
11886 "determined by inspection.  If this is not the case then an error is returned."
11887 msgstr ""
11888
11889 #. type: =head2
11890 #: ../fish/guestfish-actions.pod:2390
11891 msgid "inspect-is-live"
11892 msgstr "inspect-is-live"
11893
11894 #. type: verbatim
11895 #: ../fish/guestfish-actions.pod:2392
11896 #, no-wrap
11897 msgid ""
11898 " inspect-is-live root\n"
11899 "\n"
11900 msgstr ""
11901 " inspect-is-live корінь\n"
11902 "\n"
11903
11904 #. type: textblock
11905 #: ../fish/guestfish-actions.pod:2394
11906 msgid ""
11907 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11908 "then this returns true if a live image was detected on the disk."
11909 msgstr ""
11910
11911 #. type: =head2
11912 #: ../fish/guestfish-actions.pod:2400
11913 msgid "inspect-is-multipart"
11914 msgstr "inspect-is-multipart"
11915
11916 #. type: verbatim
11917 #: ../fish/guestfish-actions.pod:2402
11918 #, no-wrap
11919 msgid ""
11920 " inspect-is-multipart root\n"
11921 "\n"
11922 msgstr ""
11923 " inspect-is-multipart корінь\n"
11924 "\n"
11925
11926 #. type: textblock
11927 #: ../fish/guestfish-actions.pod:2404
11928 msgid ""
11929 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11930 "then this returns true if the disk is part of a set."
11931 msgstr ""
11932
11933 #. type: =head2
11934 #: ../fish/guestfish-actions.pod:2410
11935 msgid "inspect-is-netinst"
11936 msgstr "inspect-is-netinst"
11937
11938 #. type: verbatim
11939 #: ../fish/guestfish-actions.pod:2412
11940 #, no-wrap
11941 msgid ""
11942 " inspect-is-netinst root\n"
11943 "\n"
11944 msgstr ""
11945 " inspect-is-netinst корінь\n"
11946 "\n"
11947
11948 #. type: textblock
11949 #: ../fish/guestfish-actions.pod:2414
11950 msgid ""
11951 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
11952 "then this returns true if the disk is a network installer, ie. not a self-"
11953 "contained install CD but one which is likely to require network access to "
11954 "complete the install."
11955 msgstr ""
11956
11957 #. type: =head2
11958 #: ../fish/guestfish-actions.pod:2422
11959 msgid "inspect-list-applications"
11960 msgstr "inspect-list-applications"
11961
11962 #. type: verbatim
11963 #: ../fish/guestfish-actions.pod:2424
11964 #, no-wrap
11965 msgid ""
11966 " inspect-list-applications root\n"
11967 "\n"
11968 msgstr ""
11969 " inspect-list-applications кореневий_каталог\n"
11970 "\n"
11971
11972 #. type: textblock
11973 #: ../fish/guestfish-actions.pod:2426 ../src/guestfs-actions.pod:3737
11974 msgid "Return the list of applications installed in the operating system."
11975 msgstr ""
11976
11977 #. type: textblock
11978 #: ../fish/guestfish-actions.pod:2428
11979 msgid ""
11980 "I<Note:> This call works differently from other parts of the inspection "
11981 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
11982 "then mount up the disks, before calling this.  Listing applications is a "
11983 "significantly more difficult operation which requires access to the full "
11984 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
11985 "are just returning data cached in the libguestfs handle, this call actually "
11986 "reads parts of the mounted filesystems during the call."
11987 msgstr ""
11988
11989 #. type: textblock
11990 #: ../fish/guestfish-actions.pod:2438 ../src/guestfs-actions.pod:3749
11991 msgid ""
11992 "This returns an empty list if the inspection code was not able to determine "
11993 "the list of applications."
11994 msgstr ""
11995
11996 #. type: textblock
11997 #: ../fish/guestfish-actions.pod:2441 ../src/guestfs-actions.pod:3752
11998 msgid "The application structure contains the following fields:"
11999 msgstr ""
12000
12001 #. type: =item
12002 #: ../fish/guestfish-actions.pod:2445 ../src/guestfs-actions.pod:3756
12003 msgid "C<app_name>"
12004 msgstr "C<app_name>"
12005
12006 #. type: textblock
12007 #: ../fish/guestfish-actions.pod:2447 ../src/guestfs-actions.pod:3758
12008 msgid ""
12009 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
12010 "guests, this is the package name."
12011 msgstr ""
12012
12013 #. type: =item
12014 #: ../fish/guestfish-actions.pod:2450 ../src/guestfs-actions.pod:3761
12015 msgid "C<app_display_name>"
12016 msgstr "C<app_display_name>"
12017
12018 #. type: textblock
12019 #: ../fish/guestfish-actions.pod:2452 ../src/guestfs-actions.pod:3763
12020 msgid ""
12021 "The display name of the application, sometimes localized to the install "
12022 "language of the guest operating system."
12023 msgstr ""
12024
12025 #. type: textblock
12026 #: ../fish/guestfish-actions.pod:2455 ../src/guestfs-actions.pod:3766
12027 msgid ""
12028 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
12029 "to display something can use C<app_name> instead."
12030 msgstr ""
12031
12032 #. type: =item
12033 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3769
12034 msgid "C<app_epoch>"
12035 msgstr "C<app_epoch>"
12036
12037 #. type: textblock
12038 #: ../fish/guestfish-actions.pod:2460 ../src/guestfs-actions.pod:3771
12039 msgid ""
12040 "For package managers which use epochs, this contains the epoch of the "
12041 "package (an integer).  If unavailable, this is returned as C<0>."
12042 msgstr ""
12043
12044 #. type: =item
12045 #: ../fish/guestfish-actions.pod:2463 ../src/guestfs-actions.pod:3774
12046 msgid "C<app_version>"
12047 msgstr "C<app_version>"
12048
12049 #. type: textblock
12050 #: ../fish/guestfish-actions.pod:2465 ../src/guestfs-actions.pod:3776
12051 msgid ""
12052 "The version string of the application or package.  If unavailable this is "
12053 "returned as an empty string C<\"\">."
12054 msgstr ""
12055
12056 #. type: =item
12057 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3779
12058 msgid "C<app_release>"
12059 msgstr "C<app_release>"
12060
12061 #. type: textblock
12062 #: ../fish/guestfish-actions.pod:2470 ../src/guestfs-actions.pod:3781
12063 msgid ""
12064 "The release string of the application or package, for package managers that "
12065 "use this.  If unavailable this is returned as an empty string C<\"\">."
12066 msgstr ""
12067
12068 #. type: =item
12069 #: ../fish/guestfish-actions.pod:2474 ../src/guestfs-actions.pod:3785
12070 msgid "C<app_install_path>"
12071 msgstr "C<app_install_path>"
12072
12073 #. type: textblock
12074 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3787
12075 msgid ""
12076 "The installation path of the application (on operating systems such as "
12077 "Windows which use installation paths).  This path is in the format used by "
12078 "the guest operating system, it is not a libguestfs path."
12079 msgstr ""
12080
12081 #. type: textblock
12082 #: ../fish/guestfish-actions.pod:2481 ../src/guestfs-actions.pod:3792
12083 msgid "If unavailable this is returned as an empty string C<\"\">."
12084 msgstr ""
12085
12086 #. type: =item
12087 #: ../fish/guestfish-actions.pod:2483 ../src/guestfs-actions.pod:3794
12088 msgid "C<app_trans_path>"
12089 msgstr "C<app_trans_path>"
12090
12091 #. type: textblock
12092 #: ../fish/guestfish-actions.pod:2485 ../src/guestfs-actions.pod:3796
12093 msgid ""
12094 "The install path translated into a libguestfs path.  If unavailable this is "
12095 "returned as an empty string C<\"\">."
12096 msgstr ""
12097
12098 #. type: =item
12099 #: ../fish/guestfish-actions.pod:2488 ../src/guestfs-actions.pod:3799
12100 msgid "C<app_publisher>"
12101 msgstr "C<app_publisher>"
12102
12103 #. type: textblock
12104 #: ../fish/guestfish-actions.pod:2490 ../src/guestfs-actions.pod:3801
12105 msgid ""
12106 "The name of the publisher of the application, for package managers that use "
12107 "this.  If unavailable this is returned as an empty string C<\"\">."
12108 msgstr ""
12109
12110 #. type: =item
12111 #: ../fish/guestfish-actions.pod:2494 ../src/guestfs-actions.pod:3805
12112 msgid "C<app_url>"
12113 msgstr "C<app_url>"
12114
12115 #. type: textblock
12116 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3807
12117 msgid ""
12118 "The URL (eg. upstream URL) of the application.  If unavailable this is "
12119 "returned as an empty string C<\"\">."
12120 msgstr ""
12121
12122 #. type: =item
12123 #: ../fish/guestfish-actions.pod:2499 ../src/guestfs-actions.pod:3810
12124 msgid "C<app_source_package>"
12125 msgstr "C<app_source_package>"
12126
12127 #. type: textblock
12128 #: ../fish/guestfish-actions.pod:2501 ../src/guestfs-actions.pod:3812
12129 msgid ""
12130 "For packaging systems which support this, the name of the source package.  "
12131 "If unavailable this is returned as an empty string C<\"\">."
12132 msgstr ""
12133
12134 #. type: =item
12135 #: ../fish/guestfish-actions.pod:2504 ../src/guestfs-actions.pod:3815
12136 msgid "C<app_summary>"
12137 msgstr "C<app_summary>"
12138
12139 #. type: textblock
12140 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:3817
12141 msgid ""
12142 "A short (usually one line) description of the application or package.  If "
12143 "unavailable this is returned as an empty string C<\"\">."
12144 msgstr ""
12145
12146 #. type: =item
12147 #: ../fish/guestfish-actions.pod:2509 ../src/guestfs-actions.pod:3820
12148 msgid "C<app_description>"
12149 msgstr "C<app_description>"
12150
12151 #. type: textblock
12152 #: ../fish/guestfish-actions.pod:2511 ../src/guestfs-actions.pod:3822
12153 msgid ""
12154 "A longer description of the application or package.  If unavailable this is "
12155 "returned as an empty string C<\"\">."
12156 msgstr ""
12157
12158 #. type: =head2
12159 #: ../fish/guestfish-actions.pod:2518
12160 msgid "inspect-os"
12161 msgstr "inspect-os"
12162
12163 #. type: verbatim
12164 #: ../fish/guestfish-actions.pod:2520
12165 #, no-wrap
12166 msgid ""
12167 " inspect-os\n"
12168 "\n"
12169 msgstr ""
12170 " inspect-os\n"
12171 "\n"
12172
12173 #. type: textblock
12174 #: ../fish/guestfish-actions.pod:2522 ../src/guestfs-actions.pod:3840
12175 msgid ""
12176 "This function uses other libguestfs functions and certain heuristics to "
12177 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
12178 "for operating systems."
12179 msgstr ""
12180
12181 #. type: textblock
12182 #: ../fish/guestfish-actions.pod:2526 ../src/guestfs-actions.pod:3844
12183 msgid "The list returned is empty if no operating systems were found."
12184 msgstr ""
12185
12186 #. type: textblock
12187 #: ../fish/guestfish-actions.pod:2528 ../src/guestfs-actions.pod:3846
12188 msgid ""
12189 "If one operating system was found, then this returns a list with a single "
12190 "element, which is the name of the root filesystem of this operating system.  "
12191 "It is also possible for this function to return a list containing more than "
12192 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
12193 "element being the root filesystem of one of the operating systems."
12194 msgstr ""
12195
12196 #. type: textblock
12197 #: ../fish/guestfish-actions.pod:2535
12198 msgid ""
12199 "You can pass the root string(s) returned to other L</inspect-get-*> "
12200 "functions in order to query further information about each operating system, "
12201 "such as the name and version."
12202 msgstr ""
12203
12204 #. type: textblock
12205 #: ../fish/guestfish-actions.pod:2540
12206 msgid ""
12207 "This function uses other libguestfs features such as L</mount-ro> and L</"
12208 "umount-all> in order to mount and unmount filesystems and look at the "
12209 "contents.  This should be called with no disks currently mounted.  The "
12210 "function may also use Augeas, so any existing Augeas handle will be closed."
12211 msgstr ""
12212
12213 #. type: textblock
12214 #: ../fish/guestfish-actions.pod:2546 ../src/guestfs-actions.pod:3864
12215 msgid ""
12216 "This function cannot decrypt encrypted disks.  The caller must do that first "
12217 "(supplying the necessary keys) if the disk is encrypted."
12218 msgstr ""
12219
12220 #. type: textblock
12221 #: ../fish/guestfish-actions.pod:2552 ../fish/guestfish-actions.pod:2750
12222 #: ../fish/guestfish-actions.pod:2815
12223 msgid "See also L</list-filesystems>."
12224 msgstr "Див. також L</list-filesystems>."
12225
12226 #. type: =head2
12227 #: ../fish/guestfish-actions.pod:2554
12228 msgid "is-blockdev"
12229 msgstr "is-blockdev"
12230
12231 #. type: verbatim
12232 #: ../fish/guestfish-actions.pod:2556
12233 #, no-wrap
12234 msgid ""
12235 " is-blockdev path\n"
12236 "\n"
12237 msgstr ""
12238 " is-blockdev шлях\n"
12239 "\n"
12240
12241 #. type: textblock
12242 #: ../fish/guestfish-actions.pod:2558 ../src/guestfs-actions.pod:3884
12243 msgid ""
12244 "This returns C<true> if and only if there is a block device with the given "
12245 "C<path> name."
12246 msgstr ""
12247
12248 #. type: textblock
12249 #: ../fish/guestfish-actions.pod:2561 ../fish/guestfish-actions.pod:2579
12250 #: ../fish/guestfish-actions.pod:2598 ../fish/guestfish-actions.pod:2607
12251 #: ../fish/guestfish-actions.pod:2617 ../fish/guestfish-actions.pod:2651
12252 #: ../fish/guestfish-actions.pod:2660
12253 msgid "See also L</stat>."
12254 msgstr "Див. також L</stat>."
12255
12256 #. type: =head2
12257 #: ../fish/guestfish-actions.pod:2563
12258 msgid "is-busy"
12259 msgstr "is-busy"
12260
12261 #. type: verbatim
12262 #: ../fish/guestfish-actions.pod:2565
12263 #, no-wrap
12264 msgid ""
12265 " is-busy\n"
12266 "\n"
12267 msgstr ""
12268 " is-busy\n"
12269 "\n"
12270
12271 #. type: textblock
12272 #: ../fish/guestfish-actions.pod:2567 ../src/guestfs-actions.pod:3898
12273 msgid ""
12274 "This returns true iff this handle is busy processing a command (in the "
12275 "C<BUSY> state)."
12276 msgstr ""
12277
12278 #. type: =head2
12279 #: ../fish/guestfish-actions.pod:2572
12280 msgid "is-chardev"
12281 msgstr "is-chardev"
12282
12283 #. type: verbatim
12284 #: ../fish/guestfish-actions.pod:2574
12285 #, no-wrap
12286 msgid ""
12287 " is-chardev path\n"
12288 "\n"
12289 msgstr ""
12290 " is-chardev шлях\n"
12291 "\n"
12292
12293 #. type: textblock
12294 #: ../fish/guestfish-actions.pod:2576 ../src/guestfs-actions.pod:3913
12295 msgid ""
12296 "This returns C<true> if and only if there is a character device with the "
12297 "given C<path> name."
12298 msgstr ""
12299
12300 #. type: =head2
12301 #: ../fish/guestfish-actions.pod:2581
12302 msgid "is-config"
12303 msgstr "is-config"
12304
12305 #. type: verbatim
12306 #: ../fish/guestfish-actions.pod:2583
12307 #, no-wrap
12308 msgid ""
12309 " is-config\n"
12310 "\n"
12311 msgstr ""
12312 " is-config\n"
12313 "\n"
12314
12315 #. type: textblock
12316 #: ../fish/guestfish-actions.pod:2585 ../src/guestfs-actions.pod:3927
12317 msgid ""
12318 "This returns true iff this handle is being configured (in the C<CONFIG> "
12319 "state)."
12320 msgstr ""
12321
12322 #. type: =head2
12323 #: ../fish/guestfish-actions.pod:2590
12324 msgid "is-dir"
12325 msgstr "is-dir"
12326
12327 #. type: verbatim
12328 #: ../fish/guestfish-actions.pod:2592
12329 #, no-wrap
12330 msgid ""
12331 " is-dir path\n"
12332 "\n"
12333 msgstr ""
12334 " is-dir шлях\n"
12335 "\n"
12336
12337 #. type: textblock
12338 #: ../fish/guestfish-actions.pod:2594 ../src/guestfs-actions.pod:3942
12339 msgid ""
12340 "This returns C<true> if and only if there is a directory with the given "
12341 "C<path> name.  Note that it returns false for other objects like files."
12342 msgstr ""
12343
12344 #. type: =head2
12345 #: ../fish/guestfish-actions.pod:2600
12346 msgid "is-fifo"
12347 msgstr "is-fifo"
12348
12349 #. type: verbatim
12350 #: ../fish/guestfish-actions.pod:2602
12351 #, no-wrap
12352 msgid ""
12353 " is-fifo path\n"
12354 "\n"
12355 msgstr ""
12356 " is-fifo шлях\n"
12357 "\n"
12358
12359 #. type: textblock
12360 #: ../fish/guestfish-actions.pod:2604 ../src/guestfs-actions.pod:3958
12361 msgid ""
12362 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
12363 "given C<path> name."
12364 msgstr ""
12365
12366 #. type: =head2
12367 #: ../fish/guestfish-actions.pod:2609
12368 msgid "is-file"
12369 msgstr "is-file"
12370
12371 #. type: verbatim
12372 #: ../fish/guestfish-actions.pod:2611
12373 #, no-wrap
12374 msgid ""
12375 " is-file path\n"
12376 "\n"
12377 msgstr ""
12378 " is-file шлях\n"
12379 "\n"
12380
12381 #. type: textblock
12382 #: ../fish/guestfish-actions.pod:2613 ../src/guestfs-actions.pod:3973
12383 msgid ""
12384 "This returns C<true> if and only if there is a regular file with the given "
12385 "C<path> name.  Note that it returns false for other objects like directories."
12386 msgstr ""
12387
12388 #. type: =head2
12389 #: ../fish/guestfish-actions.pod:2619
12390 msgid "is-launching"
12391 msgstr "is-launching"
12392
12393 #. type: verbatim
12394 #: ../fish/guestfish-actions.pod:2621
12395 #, no-wrap
12396 msgid ""
12397 " is-launching\n"
12398 "\n"
12399 msgstr ""
12400 " is-launching\n"
12401 "\n"
12402
12403 #. type: textblock
12404 #: ../fish/guestfish-actions.pod:2623 ../src/guestfs-actions.pod:3988
12405 msgid ""
12406 "This returns true iff this handle is launching the subprocess (in the "
12407 "C<LAUNCHING> state)."
12408 msgstr ""
12409
12410 #. type: =head2
12411 #: ../fish/guestfish-actions.pod:2628
12412 msgid "is-lv"
12413 msgstr "is-lv"
12414
12415 #. type: verbatim
12416 #: ../fish/guestfish-actions.pod:2630
12417 #, no-wrap
12418 msgid ""
12419 " is-lv device\n"
12420 "\n"
12421 msgstr ""
12422 " is-lv пристрій\n"
12423 "\n"
12424
12425 #. type: textblock
12426 #: ../fish/guestfish-actions.pod:2632 ../src/guestfs-actions.pod:4003
12427 msgid ""
12428 "This command tests whether C<device> is a logical volume, and returns true "
12429 "iff this is the case."
12430 msgstr ""
12431
12432 #. type: =head2
12433 #: ../fish/guestfish-actions.pod:2635
12434 msgid "is-ready"
12435 msgstr "is-ready"
12436
12437 #. type: verbatim
12438 #: ../fish/guestfish-actions.pod:2637
12439 #, no-wrap
12440 msgid ""
12441 " is-ready\n"
12442 "\n"
12443 msgstr ""
12444 " is-ready\n"
12445 "\n"
12446
12447 #. type: textblock
12448 #: ../fish/guestfish-actions.pod:2639 ../src/guestfs-actions.pod:4015
12449 msgid ""
12450 "This returns true iff this handle is ready to accept commands (in the "
12451 "C<READY> state)."
12452 msgstr ""
12453
12454 #. type: =head2
12455 #: ../fish/guestfish-actions.pod:2644
12456 msgid "is-socket"
12457 msgstr "is-socket"
12458
12459 #. type: verbatim
12460 #: ../fish/guestfish-actions.pod:2646
12461 #, no-wrap
12462 msgid ""
12463 " is-socket path\n"
12464 "\n"
12465 msgstr ""
12466 " is-socket шлях\n"
12467 "\n"
12468
12469 #. type: textblock
12470 #: ../fish/guestfish-actions.pod:2648 ../src/guestfs-actions.pod:4030
12471 msgid ""
12472 "This returns C<true> if and only if there is a Unix domain socket with the "
12473 "given C<path> name."
12474 msgstr ""
12475
12476 #. type: =head2
12477 #: ../fish/guestfish-actions.pod:2653
12478 msgid "is-symlink"
12479 msgstr "is-symlink"
12480
12481 #. type: verbatim
12482 #: ../fish/guestfish-actions.pod:2655
12483 #, no-wrap
12484 msgid ""
12485 " is-symlink path\n"
12486 "\n"
12487 msgstr ""
12488 " is-symlink шлях\n"
12489 "\n"
12490
12491 #. type: textblock
12492 #: ../fish/guestfish-actions.pod:2657 ../src/guestfs-actions.pod:4045
12493 msgid ""
12494 "This returns C<true> if and only if there is a symbolic link with the given "
12495 "C<path> name."
12496 msgstr ""
12497
12498 #. type: =head2
12499 #: ../fish/guestfish-actions.pod:2662
12500 msgid "is-zero"
12501 msgstr ""
12502
12503 #. type: verbatim
12504 #: ../fish/guestfish-actions.pod:2664
12505 #, no-wrap
12506 msgid ""
12507 " is-zero path\n"
12508 "\n"
12509 msgstr ""
12510
12511 #. type: textblock
12512 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:4060
12513 msgid ""
12514 "This returns true iff the file exists and the file is empty or it contains "
12515 "all zero bytes."
12516 msgstr ""
12517
12518 #. type: =head2
12519 #: ../fish/guestfish-actions.pod:2669
12520 msgid "is-zero-device"
12521 msgstr ""
12522
12523 #. type: verbatim
12524 #: ../fish/guestfish-actions.pod:2671
12525 #, no-wrap
12526 msgid ""
12527 " is-zero-device device\n"
12528 "\n"
12529 msgstr ""
12530
12531 #. type: textblock
12532 #: ../fish/guestfish-actions.pod:2673 ../src/guestfs-actions.pod:4073
12533 msgid "This returns true iff the device exists and contains all zero bytes."
12534 msgstr ""
12535
12536 #. type: textblock
12537 #: ../fish/guestfish-actions.pod:2675 ../src/guestfs-actions.pod:4075
12538 msgid "Note that for large devices this can take a long time to run."
12539 msgstr ""
12540
12541 #. type: =head2
12542 #: ../fish/guestfish-actions.pod:2677
12543 msgid "kill-subprocess"
12544 msgstr "kill-subprocess"
12545
12546 #. type: verbatim
12547 #: ../fish/guestfish-actions.pod:2679
12548 #, no-wrap
12549 msgid ""
12550 " kill-subprocess\n"
12551 "\n"
12552 msgstr ""
12553 " kill-subprocess\n"
12554 "\n"
12555
12556 #. type: textblock
12557 #: ../fish/guestfish-actions.pod:2681 ../src/guestfs-actions.pod:4086
12558 msgid "This kills the qemu subprocess.  You should never need to call this."
12559 msgstr ""
12560
12561 #. type: =head2
12562 #: ../fish/guestfish-actions.pod:2683
12563 msgid "launch"
12564 msgstr "launch"
12565
12566 #. type: =head2
12567 #: ../fish/guestfish-actions.pod:2685
12568 msgid "run"
12569 msgstr ""
12570
12571 #. type: verbatim
12572 #: ../fish/guestfish-actions.pod:2687
12573 #, no-wrap
12574 msgid ""
12575 " launch\n"
12576 "\n"
12577 msgstr ""
12578 " launch\n"
12579 "\n"
12580
12581 #. type: textblock
12582 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4097
12583 msgid ""
12584 "Internally libguestfs is implemented by running a virtual machine using "
12585 "L<qemu(1)>."
12586 msgstr ""
12587
12588 #. type: textblock
12589 #: ../fish/guestfish-actions.pod:2692 ../src/guestfs-actions.pod:4100
12590 msgid ""
12591 "You should call this after configuring the handle (eg. adding drives) but "
12592 "before performing any actions."
12593 msgstr ""
12594
12595 #. type: =head2
12596 #: ../fish/guestfish-actions.pod:2695
12597 msgid "lchown"
12598 msgstr "lchown"
12599
12600 #. type: verbatim
12601 #: ../fish/guestfish-actions.pod:2697
12602 #, no-wrap
12603 msgid ""
12604 " lchown owner group path\n"
12605 "\n"
12606 msgstr ""
12607 " lchown власник група шлях\n"
12608 "\n"
12609
12610 #. type: textblock
12611 #: ../fish/guestfish-actions.pod:2699
12612 msgid ""
12613 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
12614 "chown> but if C<path> is a symlink then the link itself is changed, not the "
12615 "target."
12616 msgstr ""
12617
12618 #. type: =head2
12619 #: ../fish/guestfish-actions.pod:2707
12620 msgid "lgetxattr"
12621 msgstr "lgetxattr"
12622
12623 #. type: verbatim
12624 #: ../fish/guestfish-actions.pod:2709
12625 #, no-wrap
12626 msgid ""
12627 " lgetxattr path name\n"
12628 "\n"
12629 msgstr ""
12630 " lgetxattr шлях назва\n"
12631 "\n"
12632
12633 #. type: textblock
12634 #: ../fish/guestfish-actions.pod:2711 ../src/guestfs-actions.pod:4140
12635 msgid ""
12636 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
12637 "is a symlink, then this call returns an extended attribute from the symlink."
12638 msgstr ""
12639
12640 #. type: textblock
12641 #: ../fish/guestfish-actions.pod:2725
12642 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12643 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
12644
12645 #. type: =head2
12646 #: ../fish/guestfish-actions.pod:2727
12647 msgid "lgetxattrs"
12648 msgstr "lgetxattrs"
12649
12650 #. type: verbatim
12651 #: ../fish/guestfish-actions.pod:2729
12652 #, no-wrap
12653 msgid ""
12654 " lgetxattrs path\n"
12655 "\n"
12656 msgstr ""
12657 " lgetxattrs шлях\n"
12658 "\n"
12659
12660 #. type: textblock
12661 #: ../fish/guestfish-actions.pod:2731
12662 msgid ""
12663 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
12664 "it returns the extended attributes of the link itself."
12665 msgstr ""
12666
12667 #. type: =head2
12668 #: ../fish/guestfish-actions.pod:2735
12669 msgid "list-9p"
12670 msgstr ""
12671
12672 #. type: verbatim
12673 #: ../fish/guestfish-actions.pod:2737
12674 #, no-wrap
12675 msgid ""
12676 " list-9p\n"
12677 "\n"
12678 msgstr ""
12679
12680 #. type: textblock
12681 #: ../fish/guestfish-actions.pod:2739 ../src/guestfs-actions.pod:4183
12682 msgid ""
12683 "List all 9p filesystems attached to the guest.  A list of mount tags is "
12684 "returned."
12685 msgstr ""
12686
12687 #. type: =head2
12688 #: ../fish/guestfish-actions.pod:2742
12689 msgid "list-devices"
12690 msgstr "list-devices"
12691
12692 #. type: verbatim
12693 #: ../fish/guestfish-actions.pod:2744
12694 #, no-wrap
12695 msgid ""
12696 " list-devices\n"
12697 "\n"
12698 msgstr ""
12699 " list-devices\n"
12700 "\n"
12701
12702 #. type: textblock
12703 #: ../fish/guestfish-actions.pod:2746 ../src/guestfs-actions.pod:4197
12704 msgid "List all the block devices."
12705 msgstr ""
12706
12707 #. type: textblock
12708 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4199
12709 msgid "The full block device names are returned, eg. C</dev/sda>."
12710 msgstr ""
12711
12712 #. type: =head2
12713 #: ../fish/guestfish-actions.pod:2752
12714 msgid "list-dm-devices"
12715 msgstr ""
12716
12717 #. type: verbatim
12718 #: ../fish/guestfish-actions.pod:2754
12719 #, no-wrap
12720 msgid ""
12721 " list-dm-devices\n"
12722 "\n"
12723 msgstr ""
12724
12725 #. type: textblock
12726 #: ../fish/guestfish-actions.pod:2756 ../src/guestfs-actions.pod:4214
12727 msgid "List all device mapper devices."
12728 msgstr ""
12729
12730 #. type: textblock
12731 #: ../fish/guestfish-actions.pod:2758
12732 msgid ""
12733 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
12734 "previous call to L</luks-open>."
12735 msgstr ""
12736
12737 #. type: textblock
12738 #: ../fish/guestfish-actions.pod:2761
12739 msgid ""
12740 "Device mapper devices which correspond to logical volumes are I<not> "
12741 "returned in this list.  Call L</lvs> if you want to list logical volumes."
12742 msgstr ""
12743
12744 #. type: =head2
12745 #: ../fish/guestfish-actions.pod:2765
12746 msgid "list-filesystems"
12747 msgstr "list-filesystems"
12748
12749 #. type: verbatim
12750 #: ../fish/guestfish-actions.pod:2767
12751 #, no-wrap
12752 msgid ""
12753 " list-filesystems\n"
12754 "\n"
12755 msgstr ""
12756 " list-filesystems\n"
12757 "\n"
12758
12759 #. type: textblock
12760 #: ../fish/guestfish-actions.pod:2769 ../src/guestfs-actions.pod:4234
12761 msgid ""
12762 "This inspection command looks for filesystems on partitions, block devices "
12763 "and logical volumes, returning a list of devices containing filesystems and "
12764 "their type."
12765 msgstr ""
12766
12767 #. type: textblock
12768 #: ../fish/guestfish-actions.pod:2773 ../src/guestfs-actions.pod:4238
12769 msgid ""
12770 "The return value is a hash, where the keys are the devices containing "
12771 "filesystems, and the values are the filesystem types.  For example:"
12772 msgstr ""
12773
12774 #. type: verbatim
12775 #: ../fish/guestfish-actions.pod:2777 ../src/guestfs-actions.pod:4242
12776 #, no-wrap
12777 msgid ""
12778 " \"/dev/sda1\" => \"ntfs\"\n"
12779 " \"/dev/sda2\" => \"ext2\"\n"
12780 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
12781 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
12782 "\n"
12783 msgstr ""
12784
12785 #. type: textblock
12786 #: ../fish/guestfish-actions.pod:2782 ../src/guestfs-actions.pod:4247
12787 msgid ""
12788 "The value can have the special value \"unknown\", meaning the content of the "
12789 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
12790 msgstr ""
12791
12792 #. type: textblock
12793 #: ../fish/guestfish-actions.pod:2786
12794 msgid ""
12795 "This command runs other libguestfs commands, which might include L</mount> "
12796 "and L</umount>, and therefore you should use this soon after launch and only "
12797 "when nothing is mounted."
12798 msgstr ""
12799
12800 #. type: textblock
12801 #: ../fish/guestfish-actions.pod:2790
12802 msgid ""
12803 "Not all of the filesystems returned will be mountable.  In particular, swap "
12804 "partitions are returned in the list.  Also this command does not check that "
12805 "each filesystem found is valid and mountable, and some filesystems might be "
12806 "mountable but require special options.  Filesystems may not all belong to a "
12807 "single logical operating system (use L</inspect-os> to look for OSes)."
12808 msgstr ""
12809
12810 #. type: =head2
12811 #: ../fish/guestfish-actions.pod:2798
12812 #, fuzzy
12813 #| msgid "list-devices"
12814 msgid "list-md-devices"
12815 msgstr "list-devices"
12816
12817 #. type: verbatim
12818 #: ../fish/guestfish-actions.pod:2800
12819 #, fuzzy, no-wrap
12820 #| msgid ""
12821 #| " list-devices\n"
12822 #| "\n"
12823 msgid ""
12824 " list-md-devices\n"
12825 "\n"
12826 msgstr ""
12827 " list-devices\n"
12828 "\n"
12829
12830 #. type: textblock
12831 #: ../fish/guestfish-actions.pod:2802 ../src/guestfs-actions.pod:4276
12832 msgid "List all Linux md devices."
12833 msgstr ""
12834
12835 #. type: =head2
12836 #: ../fish/guestfish-actions.pod:2804
12837 msgid "list-partitions"
12838 msgstr "list-partitions"
12839
12840 #. type: verbatim
12841 #: ../fish/guestfish-actions.pod:2806
12842 #, no-wrap
12843 msgid ""
12844 " list-partitions\n"
12845 "\n"
12846 msgstr ""
12847 " list-partitions\n"
12848 "\n"
12849
12850 #. type: textblock
12851 #: ../fish/guestfish-actions.pod:2808 ../src/guestfs-actions.pod:4289
12852 msgid "List all the partitions detected on all block devices."
12853 msgstr ""
12854
12855 #. type: textblock
12856 #: ../fish/guestfish-actions.pod:2810 ../src/guestfs-actions.pod:4291
12857 msgid "The full partition device names are returned, eg. C</dev/sda1>"
12858 msgstr ""
12859
12860 #. type: textblock
12861 #: ../fish/guestfish-actions.pod:2812
12862 msgid ""
12863 "This does not return logical volumes.  For that you will need to call L</"
12864 "lvs>."
12865 msgstr ""
12866
12867 #. type: =head2
12868 #: ../fish/guestfish-actions.pod:2817
12869 msgid "ll"
12870 msgstr "ll"
12871
12872 #. type: verbatim
12873 #: ../fish/guestfish-actions.pod:2819
12874 #, no-wrap
12875 msgid ""
12876 " ll directory\n"
12877 "\n"
12878 msgstr ""
12879 " ll каталог\n"
12880 "\n"
12881
12882 #. type: textblock
12883 #: ../fish/guestfish-actions.pod:2821 ../src/guestfs-actions.pod:4310
12884 msgid ""
12885 "List the files in C<directory> (relative to the root directory, there is no "
12886 "cwd) in the format of 'ls -la'."
12887 msgstr ""
12888
12889 #. type: textblock
12890 #: ../fish/guestfish-actions.pod:2824 ../src/guestfs-actions.pod:4313
12891 msgid ""
12892 "This command is mostly useful for interactive sessions.  It is I<not> "
12893 "intended that you try to parse the output string."
12894 msgstr ""
12895
12896 #. type: =head2
12897 #: ../fish/guestfish-actions.pod:2827
12898 msgid "ln"
12899 msgstr "ln"
12900
12901 #. type: verbatim
12902 #: ../fish/guestfish-actions.pod:2829
12903 #, no-wrap
12904 msgid ""
12905 " ln target linkname\n"
12906 "\n"
12907 msgstr ""
12908 " ln призначення назва_посилання\n"
12909 "\n"
12910
12911 #. type: textblock
12912 #: ../fish/guestfish-actions.pod:2831 ../src/guestfs-actions.pod:4328
12913 msgid "This command creates a hard link using the C<ln> command."
12914 msgstr ""
12915
12916 #. type: =head2
12917 #: ../fish/guestfish-actions.pod:2833
12918 msgid "ln-f"
12919 msgstr "ln-f"
12920
12921 #. type: verbatim
12922 #: ../fish/guestfish-actions.pod:2835
12923 #, no-wrap
12924 msgid ""
12925 " ln-f target linkname\n"
12926 "\n"
12927 msgstr ""
12928 " ln-f призначення назва_посилання\n"
12929 "\n"
12930
12931 #. type: textblock
12932 #: ../fish/guestfish-actions.pod:2837 ../src/guestfs-actions.pod:4341
12933 msgid ""
12934 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
12935 "option removes the link (C<linkname>) if it exists already."
12936 msgstr ""
12937
12938 #. type: =head2
12939 #: ../fish/guestfish-actions.pod:2840
12940 msgid "ln-s"
12941 msgstr "ln-s"
12942
12943 #. type: verbatim
12944 #: ../fish/guestfish-actions.pod:2842
12945 #, no-wrap
12946 msgid ""
12947 " ln-s target linkname\n"
12948 "\n"
12949 msgstr ""
12950 " ln-s призначення назва_посилання\n"
12951 "\n"
12952
12953 #. type: textblock
12954 #: ../fish/guestfish-actions.pod:2844 ../src/guestfs-actions.pod:4355
12955 msgid "This command creates a symbolic link using the C<ln -s> command."
12956 msgstr ""
12957
12958 #. type: =head2
12959 #: ../fish/guestfish-actions.pod:2846
12960 msgid "ln-sf"
12961 msgstr "ln-sf"
12962
12963 #. type: verbatim
12964 #: ../fish/guestfish-actions.pod:2848
12965 #, no-wrap
12966 msgid ""
12967 " ln-sf target linkname\n"
12968 "\n"
12969 msgstr ""
12970 " ln-sf призначення назва_посилання\n"
12971 "\n"
12972
12973 #. type: textblock
12974 #: ../fish/guestfish-actions.pod:2850 ../src/guestfs-actions.pod:4368
12975 msgid ""
12976 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
12977 "option removes the link (C<linkname>) if it exists already."
12978 msgstr ""
12979
12980 #. type: =head2
12981 #: ../fish/guestfish-actions.pod:2853
12982 msgid "lremovexattr"
12983 msgstr "lremovexattr"
12984
12985 #. type: verbatim
12986 #: ../fish/guestfish-actions.pod:2855
12987 #, no-wrap
12988 msgid ""
12989 " lremovexattr xattr path\n"
12990 "\n"
12991 msgstr ""
12992
12993 #. type: textblock
12994 #: ../fish/guestfish-actions.pod:2857
12995 msgid ""
12996 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
12997 "it removes an extended attribute of the link itself."
12998 msgstr ""
12999
13000 #. type: =head2
13001 #: ../fish/guestfish-actions.pod:2861
13002 msgid "ls"
13003 msgstr "ls"
13004
13005 #. type: verbatim
13006 #: ../fish/guestfish-actions.pod:2863
13007 #, no-wrap
13008 msgid ""
13009 " ls directory\n"
13010 "\n"
13011 msgstr ""
13012 " ls каталог\n"
13013 "\n"
13014
13015 #. type: textblock
13016 #: ../fish/guestfish-actions.pod:2865 ../src/guestfs-actions.pod:4396
13017 msgid ""
13018 "List the files in C<directory> (relative to the root directory, there is no "
13019 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
13020 msgstr ""
13021
13022 #. type: textblock
13023 #: ../fish/guestfish-actions.pod:2869
13024 msgid ""
13025 "This command is mostly useful for interactive sessions.  Programs should "
13026 "probably use L</readdir> instead."
13027 msgstr ""
13028
13029 #. type: =head2
13030 #: ../fish/guestfish-actions.pod:2872
13031 msgid "lsetxattr"
13032 msgstr "lsetxattr"
13033
13034 #. type: verbatim
13035 #: ../fish/guestfish-actions.pod:2874
13036 #, no-wrap
13037 msgid ""
13038 " lsetxattr xattr val vallen path\n"
13039 "\n"
13040 msgstr ""
13041
13042 #. type: textblock
13043 #: ../fish/guestfish-actions.pod:2876
13044 msgid ""
13045 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
13046 "sets an extended attribute of the link itself."
13047 msgstr ""
13048
13049 #. type: =head2
13050 #: ../fish/guestfish-actions.pod:2880
13051 msgid "lstat"
13052 msgstr "lstat"
13053
13054 #. type: verbatim
13055 #: ../fish/guestfish-actions.pod:2882
13056 #, no-wrap
13057 msgid ""
13058 " lstat path\n"
13059 "\n"
13060 msgstr ""
13061 " lstat шлях\n"
13062 "\n"
13063
13064 #. type: textblock
13065 #: ../fish/guestfish-actions.pod:2884 ../fish/guestfish-actions.pod:4792
13066 #: ../src/guestfs-actions.pod:4432 ../src/guestfs-actions.pod:7372
13067 msgid "Returns file information for the given C<path>."
13068 msgstr ""
13069
13070 #. type: textblock
13071 #: ../fish/guestfish-actions.pod:2886
13072 msgid ""
13073 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
13074 "the link is stat-ed, not the file it refers to."
13075 msgstr ""
13076
13077 #. type: textblock
13078 #: ../fish/guestfish-actions.pod:2890 ../src/guestfs-actions.pod:4438
13079 msgid "This is the same as the C<lstat(2)> system call."
13080 msgstr ""
13081
13082 #. type: =head2
13083 #: ../fish/guestfish-actions.pod:2892
13084 msgid "lstatlist"
13085 msgstr "lstatlist"
13086
13087 #. type: verbatim
13088 #: ../fish/guestfish-actions.pod:2894
13089 #, no-wrap
13090 msgid ""
13091 " lstatlist path 'names ...'\n"
13092 "\n"
13093 msgstr ""
13094
13095 #. type: textblock
13096 #: ../fish/guestfish-actions.pod:2896
13097 msgid ""
13098 "This call allows you to perform the L</lstat> operation on multiple files, "
13099 "where all files are in the directory C<path>.  C<names> is the list of files "
13100 "from this directory."
13101 msgstr ""
13102
13103 #. type: textblock
13104 #: ../fish/guestfish-actions.pod:2900 ../src/guestfs-actions.pod:4457
13105 msgid ""
13106 "On return you get a list of stat structs, with a one-to-one correspondence "
13107 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
13108 "then the C<ino> field of that structure is set to C<-1>."
13109 msgstr ""
13110
13111 #. type: textblock
13112 #: ../fish/guestfish-actions.pod:2905
13113 msgid ""
13114 "This call is intended for programs that want to efficiently list a directory "
13115 "contents without making many round-trips.  See also L</lxattrlist> for a "
13116 "similarly efficient call for getting extended attributes.  Very long "
13117 "directory listings might cause the protocol message size to be exceeded, "
13118 "causing this call to fail.  The caller must split up such requests into "
13119 "smaller groups of names."
13120 msgstr ""
13121
13122 #. type: =head2
13123 #: ../fish/guestfish-actions.pod:2913
13124 msgid "luks-add-key"
13125 msgstr "luks-add-key"
13126
13127 #. type: verbatim
13128 #: ../fish/guestfish-actions.pod:2915
13129 #, no-wrap
13130 msgid ""
13131 " luks-add-key device keyslot\n"
13132 "\n"
13133 msgstr ""
13134
13135 #. type: textblock
13136 #: ../fish/guestfish-actions.pod:2917 ../src/guestfs-actions.pod:4485
13137 msgid ""
13138 "This command adds a new key on LUKS device C<device>.  C<key> is any "
13139 "existing key, and is used to access the device.  C<newkey> is the new key to "
13140 "add.  C<keyslot> is the key slot that will be replaced."
13141 msgstr ""
13142
13143 #. type: textblock
13144 #: ../fish/guestfish-actions.pod:2922
13145 msgid ""
13146 "Note that if C<keyslot> already contains a key, then this command will "
13147 "fail.  You have to use L</luks-kill-slot> first to remove that key."
13148 msgstr ""
13149
13150 #. type: textblock
13151 #: ../fish/guestfish-actions.pod:2926 ../fish/guestfish-actions.pod:2948
13152 #: ../fish/guestfish-actions.pod:2958 ../fish/guestfish-actions.pod:2969
13153 #: ../fish/guestfish-actions.pod:2995 ../fish/guestfish-actions.pod:3005
13154 msgid ""
13155 "This command has one or more key or passphrase parameters.  Guestfish will "
13156 "prompt for these separately."
13157 msgstr ""
13158
13159 #. type: =head2
13160 #: ../fish/guestfish-actions.pod:2929
13161 msgid "luks-close"
13162 msgstr "luks-close"
13163
13164 #. type: verbatim
13165 #: ../fish/guestfish-actions.pod:2931
13166 #, no-wrap
13167 msgid ""
13168 " luks-close device\n"
13169 "\n"
13170 msgstr ""
13171 " luks-close пристрій\n"
13172 "\n"
13173
13174 #. type: textblock
13175 #: ../fish/guestfish-actions.pod:2933
13176 msgid ""
13177 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
13178 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
13179 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
13180 "block device."
13181 msgstr ""
13182
13183 #. type: =head2
13184 #: ../fish/guestfish-actions.pod:2939
13185 msgid "luks-format"
13186 msgstr "luks-format"
13187
13188 #. type: verbatim
13189 #: ../fish/guestfish-actions.pod:2941
13190 #, no-wrap
13191 msgid ""
13192 " luks-format device keyslot\n"
13193 "\n"
13194 msgstr ""
13195
13196 #. type: textblock
13197 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4526
13198 msgid ""
13199 "This command erases existing data on C<device> and formats the device as a "
13200 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
13201 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
13202 msgstr ""
13203
13204 #. type: =head2
13205 #: ../fish/guestfish-actions.pod:2951
13206 msgid "luks-format-cipher"
13207 msgstr "luks-format-cipher"
13208
13209 #. type: verbatim
13210 #: ../fish/guestfish-actions.pod:2953
13211 #, no-wrap
13212 msgid ""
13213 " luks-format-cipher device keyslot cipher\n"
13214 "\n"
13215 msgstr ""
13216
13217 #. type: textblock
13218 #: ../fish/guestfish-actions.pod:2955
13219 msgid ""
13220 "This command is the same as L</luks-format> but it also allows you to set "
13221 "the C<cipher> used."
13222 msgstr ""
13223
13224 #. type: =head2
13225 #: ../fish/guestfish-actions.pod:2961
13226 msgid "luks-kill-slot"
13227 msgstr "luks-kill-slot"
13228
13229 #. type: verbatim
13230 #: ../fish/guestfish-actions.pod:2963
13231 #, no-wrap
13232 msgid ""
13233 " luks-kill-slot device keyslot\n"
13234 "\n"
13235 msgstr ""
13236
13237 #. type: textblock
13238 #: ../fish/guestfish-actions.pod:2965 ../src/guestfs-actions.pod:4567
13239 msgid ""
13240 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
13241 "device C<device>.  C<key> must be one of the I<other> keys."
13242 msgstr ""
13243
13244 #. type: =head2
13245 #: ../fish/guestfish-actions.pod:2972
13246 msgid "luks-open"
13247 msgstr "luks-open"
13248
13249 #. type: verbatim
13250 #: ../fish/guestfish-actions.pod:2974
13251 #, no-wrap
13252 msgid ""
13253 " luks-open device mapname\n"
13254 "\n"
13255 msgstr ""
13256
13257 #. type: textblock
13258 #: ../fish/guestfish-actions.pod:2976 ../src/guestfs-actions.pod:4587
13259 msgid ""
13260 "This command opens a block device which has been encrypted according to the "
13261 "Linux Unified Key Setup (LUKS) standard."
13262 msgstr ""
13263
13264 #. type: textblock
13265 #: ../fish/guestfish-actions.pod:2979 ../src/guestfs-actions.pod:4590
13266 msgid "C<device> is the encrypted block device or partition."
13267 msgstr ""
13268
13269 #. type: textblock
13270 #: ../fish/guestfish-actions.pod:2981 ../src/guestfs-actions.pod:4592
13271 msgid ""
13272 "The caller must supply one of the keys associated with the LUKS block "
13273 "device, in the C<key> parameter."
13274 msgstr ""
13275
13276 #. type: textblock
13277 #: ../fish/guestfish-actions.pod:2984 ../src/guestfs-actions.pod:4595
13278 msgid ""
13279 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
13280 "writes to this block device are decrypted from and encrypted to the "
13281 "underlying C<device> respectively."
13282 msgstr ""
13283
13284 #. type: textblock
13285 #: ../fish/guestfish-actions.pod:2988
13286 msgid ""
13287 "If this block device contains LVM volume groups, then calling L</vgscan> "
13288 "followed by L</vg-activate-all> will make them visible."
13289 msgstr ""
13290
13291 #. type: textblock
13292 #: ../fish/guestfish-actions.pod:2992
13293 msgid "Use L</list-dm-devices> to list all device mapper devices."
13294 msgstr ""
13295
13296 #. type: =head2
13297 #: ../fish/guestfish-actions.pod:2998
13298 msgid "luks-open-ro"
13299 msgstr "luks-open-ro"
13300
13301 #. type: verbatim
13302 #: ../fish/guestfish-actions.pod:3000
13303 #, no-wrap
13304 msgid ""
13305 " luks-open-ro device mapname\n"
13306 "\n"
13307 msgstr ""
13308
13309 #. type: textblock
13310 #: ../fish/guestfish-actions.pod:3002
13311 msgid ""
13312 "This is the same as L</luks-open> except that a read-only mapping is created."
13313 msgstr ""
13314
13315 #. type: =head2
13316 #: ../fish/guestfish-actions.pod:3008
13317 msgid "lvcreate"
13318 msgstr "lvcreate"
13319
13320 #. type: verbatim
13321 #: ../fish/guestfish-actions.pod:3010
13322 #, no-wrap
13323 msgid ""
13324 " lvcreate logvol volgroup mbytes\n"
13325 "\n"
13326 msgstr ""
13327
13328 #. type: textblock
13329 #: ../fish/guestfish-actions.pod:3012 ../src/guestfs-actions.pod:4641
13330 msgid ""
13331 "This creates an LVM logical volume called C<logvol> on the volume group "
13332 "C<volgroup>, with C<size> megabytes."
13333 msgstr ""
13334
13335 #. type: =head2
13336 #: ../fish/guestfish-actions.pod:3015
13337 msgid "lvm-canonical-lv-name"
13338 msgstr "lvm-canonical-lv-name"
13339
13340 #. type: verbatim
13341 #: ../fish/guestfish-actions.pod:3017
13342 #, no-wrap
13343 msgid ""
13344 " lvm-canonical-lv-name lvname\n"
13345 "\n"
13346 msgstr ""
13347
13348 #. type: textblock
13349 #: ../fish/guestfish-actions.pod:3019 ../src/guestfs-actions.pod:4654
13350 msgid ""
13351 "This converts alternative naming schemes for LVs that you might find to the "
13352 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
13353 "LV>."
13354 msgstr ""
13355
13356 #. type: textblock
13357 #: ../fish/guestfish-actions.pod:3023 ../src/guestfs-actions.pod:4658
13358 msgid ""
13359 "This command returns an error if the C<lvname> parameter does not refer to a "
13360 "logical volume."
13361 msgstr ""
13362
13363 #. type: textblock
13364 #: ../fish/guestfish-actions.pod:3026
13365 msgid "See also L</is-lv>."
13366 msgstr "Див. також L</is-lv>."
13367
13368 #. type: =head2
13369 #: ../fish/guestfish-actions.pod:3028
13370 msgid "lvm-clear-filter"
13371 msgstr "lvm-clear-filter"
13372
13373 #. type: verbatim
13374 #: ../fish/guestfish-actions.pod:3030
13375 #, no-wrap
13376 msgid ""
13377 " lvm-clear-filter\n"
13378 "\n"
13379 msgstr ""
13380 " lvm-clear-filter\n"
13381 "\n"
13382
13383 #. type: textblock
13384 #: ../fish/guestfish-actions.pod:3032
13385 msgid ""
13386 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
13387 "block device."
13388 msgstr ""
13389
13390 #. type: textblock
13391 #: ../fish/guestfish-actions.pod:3035 ../fish/guestfish-actions.pod:3063
13392 #: ../src/guestfs-actions.pod:4676 ../src/guestfs-actions.pod:4715
13393 msgid ""
13394 "This command also clears the LVM cache and performs a volume group scan."
13395 msgstr ""
13396
13397 #. type: =head2
13398 #: ../fish/guestfish-actions.pod:3038
13399 msgid "lvm-remove-all"
13400 msgstr "lvm-remove-all"
13401
13402 #. type: verbatim
13403 #: ../fish/guestfish-actions.pod:3040
13404 #, no-wrap
13405 msgid ""
13406 " lvm-remove-all\n"
13407 "\n"
13408 msgstr ""
13409 " lvm-remove-all\n"
13410 "\n"
13411
13412 #. type: textblock
13413 #: ../fish/guestfish-actions.pod:3042 ../src/guestfs-actions.pod:4688
13414 msgid ""
13415 "This command removes all LVM logical volumes, volume groups and physical "
13416 "volumes."
13417 msgstr ""
13418
13419 #. type: =head2
13420 #: ../fish/guestfish-actions.pod:3045
13421 msgid "lvm-set-filter"
13422 msgstr "lvm-set-filter"
13423
13424 #. type: verbatim
13425 #: ../fish/guestfish-actions.pod:3047
13426 #, no-wrap
13427 msgid ""
13428 " lvm-set-filter 'devices ...'\n"
13429 "\n"
13430 msgstr ""
13431 " lvm-set-filter 'пристрої...'\n"
13432 "\n"
13433
13434 #. type: textblock
13435 #: ../fish/guestfish-actions.pod:3049 ../src/guestfs-actions.pod:4701
13436 msgid ""
13437 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
13438 "block devices in the list C<devices>, and will ignore all other attached "
13439 "block devices."
13440 msgstr ""
13441
13442 #. type: textblock
13443 #: ../fish/guestfish-actions.pod:3053 ../src/guestfs-actions.pod:4705
13444 msgid ""
13445 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
13446 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
13447 "there are two types of duplication possible: either cloned PVs/VGs which "
13448 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
13449 "same name.  In normal operation you cannot create this situation, but you "
13450 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
13451 "inside the LVM metadata."
13452 msgstr ""
13453
13454 #. type: textblock
13455 #: ../fish/guestfish-actions.pod:3066 ../src/guestfs-actions.pod:4718
13456 msgid "You can filter whole block devices or individual partitions."
13457 msgstr ""
13458
13459 #. type: textblock
13460 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4720
13461 msgid ""
13462 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
13463 "filesystem), even if you are not filtering out that VG."
13464 msgstr ""
13465
13466 #. type: =head2
13467 #: ../fish/guestfish-actions.pod:3072
13468 msgid "lvremove"
13469 msgstr "lvremove"
13470
13471 #. type: verbatim
13472 #: ../fish/guestfish-actions.pod:3074
13473 #, no-wrap
13474 msgid ""
13475 " lvremove device\n"
13476 "\n"
13477 msgstr ""
13478 " lvremove пристрій\n"
13479 "\n"
13480
13481 #. type: textblock
13482 #: ../fish/guestfish-actions.pod:3076 ../src/guestfs-actions.pod:4734
13483 msgid ""
13484 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
13485 "LV, such as C</dev/VG/LV>."
13486 msgstr ""
13487
13488 #. type: textblock
13489 #: ../fish/guestfish-actions.pod:3079 ../src/guestfs-actions.pod:4737
13490 msgid ""
13491 "You can also remove all LVs in a volume group by specifying the VG name, C</"
13492 "dev/VG>."
13493 msgstr ""
13494
13495 #. type: =head2
13496 #: ../fish/guestfish-actions.pod:3082
13497 msgid "lvrename"
13498 msgstr "lvrename"
13499
13500 #. type: verbatim
13501 #: ../fish/guestfish-actions.pod:3084
13502 #, no-wrap
13503 msgid ""
13504 " lvrename logvol newlogvol\n"
13505 "\n"
13506 msgstr ""
13507
13508 #. type: textblock
13509 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4751
13510 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
13511 msgstr ""
13512
13513 #. type: =head2
13514 #: ../fish/guestfish-actions.pod:3088
13515 msgid "lvresize"
13516 msgstr "lvresize"
13517
13518 #. type: verbatim
13519 #: ../fish/guestfish-actions.pod:3090
13520 #, no-wrap
13521 msgid ""
13522 " lvresize device mbytes\n"
13523 "\n"
13524 msgstr ""
13525
13526 #. type: textblock
13527 #: ../fish/guestfish-actions.pod:3092 ../src/guestfs-actions.pod:4764
13528 msgid ""
13529 "This resizes (expands or shrinks) an existing LVM logical volume to "
13530 "C<mbytes>.  When reducing, data in the reduced part is lost."
13531 msgstr ""
13532
13533 #. type: =head2
13534 #: ../fish/guestfish-actions.pod:3096
13535 msgid "lvresize-free"
13536 msgstr "lvresize-free"
13537
13538 #. type: verbatim
13539 #: ../fish/guestfish-actions.pod:3098
13540 #, no-wrap
13541 msgid ""
13542 " lvresize-free lv percent\n"
13543 "\n"
13544 msgstr ""
13545
13546 #. type: textblock
13547 #: ../fish/guestfish-actions.pod:3100 ../src/guestfs-actions.pod:4779
13548 msgid ""
13549 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
13550 "remaining free space in the volume group.  Commonly you would call this with "
13551 "pc = 100 which expands the logical volume as much as possible, using all "
13552 "remaining free space in the volume group."
13553 msgstr ""
13554
13555 #. type: =head2
13556 #: ../fish/guestfish-actions.pod:3106
13557 msgid "lvs"
13558 msgstr "lvs"
13559
13560 #. type: verbatim
13561 #: ../fish/guestfish-actions.pod:3108
13562 #, no-wrap
13563 msgid ""
13564 " lvs\n"
13565 "\n"
13566 msgstr ""
13567 " lvs\n"
13568 "\n"
13569
13570 #. type: textblock
13571 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4794
13572 msgid ""
13573 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13574 "(8)> command."
13575 msgstr ""
13576
13577 #. type: textblock
13578 #: ../fish/guestfish-actions.pod:3113 ../src/guestfs-actions.pod:4797
13579 msgid ""
13580 "This returns a list of the logical volume device names (eg. C</dev/"
13581 "VolGroup00/LogVol00>)."
13582 msgstr ""
13583
13584 #. type: textblock
13585 #: ../fish/guestfish-actions.pod:3116
13586 msgid "See also L</lvs-full>, L</list-filesystems>."
13587 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
13588
13589 #. type: =head2
13590 #: ../fish/guestfish-actions.pod:3118
13591 msgid "lvs-full"
13592 msgstr "lvs-full"
13593
13594 #. type: verbatim
13595 #: ../fish/guestfish-actions.pod:3120
13596 #, no-wrap
13597 msgid ""
13598 " lvs-full\n"
13599 "\n"
13600 msgstr ""
13601 " lvs-full\n"
13602 "\n"
13603
13604 #. type: textblock
13605 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4813
13606 msgid ""
13607 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
13608 "(8)> command.  The \"full\" version includes all fields."
13609 msgstr ""
13610
13611 #. type: =head2
13612 #: ../fish/guestfish-actions.pod:3125
13613 msgid "lvuuid"
13614 msgstr "lvuuid"
13615
13616 #. type: verbatim
13617 #: ../fish/guestfish-actions.pod:3127
13618 #, no-wrap
13619 msgid ""
13620 " lvuuid device\n"
13621 "\n"
13622 msgstr ""
13623 " lvuuid пристрій\n"
13624 "\n"
13625
13626 #. type: textblock
13627 #: ../fish/guestfish-actions.pod:3129 ../src/guestfs-actions.pod:4828
13628 msgid "This command returns the UUID of the LVM LV C<device>."
13629 msgstr ""
13630
13631 #. type: =head2
13632 #: ../fish/guestfish-actions.pod:3131
13633 msgid "lxattrlist"
13634 msgstr "lxattrlist"
13635
13636 #. type: verbatim
13637 #: ../fish/guestfish-actions.pod:3133
13638 #, no-wrap
13639 msgid ""
13640 " lxattrlist path 'names ...'\n"
13641 "\n"
13642 msgstr ""
13643
13644 #. type: textblock
13645 #: ../fish/guestfish-actions.pod:3135 ../src/guestfs-actions.pod:4842
13646 msgid ""
13647 "This call allows you to get the extended attributes of multiple files, where "
13648 "all files are in the directory C<path>.  C<names> is the list of files from "
13649 "this directory."
13650 msgstr ""
13651
13652 #. type: textblock
13653 #: ../fish/guestfish-actions.pod:3139 ../src/guestfs-actions.pod:4846
13654 msgid ""
13655 "On return you get a flat list of xattr structs which must be interpreted "
13656 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
13657 "C<attrval> in this struct is zero-length to indicate there was an error "
13658 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
13659 "number (the number of following attributes for this file, which could be C<"
13660 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
13661 "for the first named file.  This repeats for the second and subsequent files."
13662 msgstr ""
13663
13664 #. type: textblock
13665 #: ../fish/guestfish-actions.pod:3149
13666 msgid ""
13667 "This call is intended for programs that want to efficiently list a directory "
13668 "contents without making many round-trips.  See also L</lstatlist> for a "
13669 "similarly efficient call for getting standard stats.  Very long directory "
13670 "listings might cause the protocol message size to be exceeded, causing this "
13671 "call to fail.  The caller must split up such requests into smaller groups of "
13672 "names."
13673 msgstr ""
13674
13675 #. type: =head2
13676 #: ../fish/guestfish-actions.pod:3157
13677 #, fuzzy
13678 #| msgid "lvcreate"
13679 msgid "md-create"
13680 msgstr "lvcreate"
13681
13682 #. type: verbatim
13683 #: ../fish/guestfish-actions.pod:3159
13684 #, no-wrap
13685 msgid ""
13686 " md-create name 'devices ...' [missingbitmap:N] [nrdevices:N] [spare:N] [chunk:N] [level:..]\n"
13687 "\n"
13688 msgstr ""
13689
13690 #. type: textblock
13691 #: ../fish/guestfish-actions.pod:3161 ../src/guestfs-actions.pod:4889
13692 msgid ""
13693 "Create a Linux md (RAID) device named C<name> on the devices in the list "
13694 "C<devices>."
13695 msgstr ""
13696
13697 #. type: =item
13698 #: ../fish/guestfish-actions.pod:3168 ../src/guestfs-actions.pod:4896
13699 msgid "C<missingbitmap>"
13700 msgstr ""
13701
13702 #. type: textblock
13703 #: ../fish/guestfish-actions.pod:3170 ../src/guestfs-actions.pod:4898
13704 msgid ""
13705 "A bitmap of missing devices.  If a bit is set it means that a missing device "
13706 "is added to the array.  The least significant bit corresponds to the first "
13707 "device in the array."
13708 msgstr ""
13709
13710 #. type: textblock
13711 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4902
13712 #, fuzzy
13713 #| msgid "For example:"
13714 msgid "As examples:"
13715 msgstr "Приклад:"
13716
13717 #. type: textblock
13718 #: ../fish/guestfish-actions.pod:3176 ../src/guestfs-actions.pod:4904
13719 msgid ""
13720 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x1> then the resulting "
13721 "array would be C<[E<lt>missingE<gt>, \"/dev/sda\"]>."
13722 msgstr ""
13723
13724 #. type: textblock
13725 #: ../fish/guestfish-actions.pod:3179 ../src/guestfs-actions.pod:4907
13726 msgid ""
13727 "If C<devices = [\"/dev/sda\"]> and C<missingbitmap = 0x2> then the resulting "
13728 "array would be C<[\"/dev/sda\", E<lt>missingE<gt>]>."
13729 msgstr ""
13730
13731 #. type: textblock
13732 #: ../fish/guestfish-actions.pod:3182 ../src/guestfs-actions.pod:4910
13733 msgid "This defaults to C<0> (no missing devices)."
13734 msgstr ""
13735
13736 #. type: textblock
13737 #: ../fish/guestfish-actions.pod:3184 ../src/guestfs-actions.pod:4912
13738 msgid ""
13739 "The length of C<devices> + the number of bits set in C<missingbitmap> must "
13740 "equal C<nrdevices> + C<spare>."
13741 msgstr ""
13742
13743 #. type: =item
13744 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4915
13745 #, fuzzy
13746 #| msgid "device"
13747 msgid "C<nrdevices>"
13748 msgstr "пристрій"
13749
13750 #. type: textblock
13751 #: ../fish/guestfish-actions.pod:3189 ../src/guestfs-actions.pod:4917
13752 #, fuzzy
13753 #| msgid "The number of hard links."
13754 msgid "The number of active RAID devices."
13755 msgstr "Кількість жорстких посилань."
13756
13757 #. type: textblock
13758 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4919
13759 msgid ""
13760 "If not set, this defaults to the length of C<devices> plus the number of "
13761 "bits set in C<missingbitmap>."
13762 msgstr ""
13763
13764 #. type: =item
13765 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4922
13766 #, fuzzy
13767 #| msgid "sparse"
13768 msgid "C<spare>"
13769 msgstr "sparse"
13770
13771 #. type: textblock
13772 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4924
13773 #, fuzzy
13774 #| msgid "The number of hard links."
13775 msgid "The number of spare devices."
13776 msgstr "Кількість жорстких посилань."
13777
13778 #. type: textblock
13779 #: ../fish/guestfish-actions.pod:3198 ../src/guestfs-actions.pod:4926
13780 msgid "If not set, this defaults to C<0>."
13781 msgstr ""
13782
13783 #. type: =item
13784 #: ../fish/guestfish-actions.pod:3200 ../src/guestfs-actions.pod:4928
13785 msgid "C<chunk>"
13786 msgstr ""
13787
13788 #. type: textblock
13789 #: ../fish/guestfish-actions.pod:3202 ../src/guestfs-actions.pod:4930
13790 #, fuzzy
13791 #| msgid "The size in SI 1000 byte units."
13792 msgid "The chunk size in bytes."
13793 msgstr "Розмір у одиницях СІ: 1000 байтів."
13794
13795 #. type: =item
13796 #: ../fish/guestfish-actions.pod:3204 ../fish/guestfish-actions.pod:3226
13797 #: ../src/guestfs-actions.pod:4932 ../src/guestfs-actions.pod:4980
13798 msgid "C<level>"
13799 msgstr ""
13800
13801 #. type: textblock
13802 #: ../fish/guestfish-actions.pod:3206 ../src/guestfs-actions.pod:4934
13803 msgid ""
13804 "The RAID level, which can be one of: I<linear>, I<raid0>, I<0>, I<stripe>, "
13805 "I<raid1>, I<1>, I<mirror>, I<raid4>, I<4>, I<raid5>, I<5>, I<raid6>, I<6>, "
13806 "I<raid10>, I<10>.  Some of these are synonymous, and more levels may be "
13807 "added in future."
13808 msgstr ""
13809
13810 #. type: textblock
13811 #: ../fish/guestfish-actions.pod:3211 ../src/guestfs-actions.pod:4939
13812 msgid "If not set, this defaults to C<raid1>."
13813 msgstr ""
13814
13815 #. type: =head2
13816 #: ../fish/guestfish-actions.pod:3217
13817 #, fuzzy
13818 #| msgid "tail"
13819 msgid "md-detail"
13820 msgstr "tail"
13821
13822 #. type: verbatim
13823 #: ../fish/guestfish-actions.pod:3219
13824 #, no-wrap
13825 msgid ""
13826 " md-detail md\n"
13827 "\n"
13828 msgstr ""
13829
13830 #. type: textblock
13831 #: ../fish/guestfish-actions.pod:3221 ../src/guestfs-actions.pod:4975
13832 msgid ""
13833 "This command exposes the output of 'mdadm -DY <md>'. The following fields "
13834 "are usually present in the returned hash. Other fields may also be present."
13835 msgstr ""
13836
13837 #. type: textblock
13838 #: ../fish/guestfish-actions.pod:3228 ../src/guestfs-actions.pod:4982
13839 msgid "The raid level of the MD device."
13840 msgstr ""
13841
13842 #. type: =item
13843 #: ../fish/guestfish-actions.pod:3230 ../src/guestfs-actions.pod:4984
13844 #, fuzzy
13845 #| msgid "device"
13846 msgid "C<devices>"
13847 msgstr "пристрій"
13848
13849 #. type: textblock
13850 #: ../fish/guestfish-actions.pod:3232 ../src/guestfs-actions.pod:4986
13851 msgid "The number of underlying devices in the MD device."
13852 msgstr ""
13853
13854 #. type: =item
13855 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4988
13856 msgid "C<metadata>"
13857 msgstr ""
13858
13859 #. type: textblock
13860 #: ../fish/guestfish-actions.pod:3236 ../src/guestfs-actions.pod:4990
13861 msgid "The metadata version used."
13862 msgstr ""
13863
13864 #. type: =item
13865 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4992
13866 #, fuzzy
13867 #| msgid "B<--uuid>"
13868 msgid "C<uuid>"
13869 msgstr "B<--uuid>"
13870
13871 #. type: textblock
13872 #: ../fish/guestfish-actions.pod:3240 ../src/guestfs-actions.pod:4994
13873 msgid "The UUID of the MD device."
13874 msgstr ""
13875
13876 #. type: textblock
13877 #: ../fish/guestfish-actions.pod:3244 ../src/guestfs-actions.pod:4998
13878 #, fuzzy
13879 #| msgid "The time of last access."
13880 msgid "The name of the MD device."
13881 msgstr "Час останнього доступу."
13882
13883 #. type: =head2
13884 #: ../fish/guestfish-actions.pod:3248
13885 msgid "md-stop"
13886 msgstr ""
13887
13888 #. type: verbatim
13889 #: ../fish/guestfish-actions.pod:3250
13890 #, no-wrap
13891 msgid ""
13892 " md-stop md\n"
13893 "\n"
13894 msgstr ""
13895
13896 #. type: textblock
13897 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:5014
13898 msgid ""
13899 "This command deactivates the MD array named C<md>.  The device is stopped, "
13900 "but it is not destroyed or zeroed."
13901 msgstr ""
13902
13903 #. type: textblock
13904 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:5017
13905 msgid "The parameter is:"
13906 msgstr ""
13907
13908 #. type: =item
13909 #: ../fish/guestfish-actions.pod:3259 ../src/guestfs-actions.pod:5021
13910 #, fuzzy
13911 #| msgid "C<md5>"
13912 msgid "C<md>"
13913 msgstr "C<md5>"
13914
13915 #. type: textblock
13916 #: ../fish/guestfish-actions.pod:3261 ../src/guestfs-actions.pod:5023
13917 msgid "The md (RAID) device which to be deactivated."
13918 msgstr ""
13919
13920 #. type: =head2
13921 #: ../fish/guestfish-actions.pod:3265
13922 msgid "mkdir"
13923 msgstr "mkdir"
13924
13925 #. type: verbatim
13926 #: ../fish/guestfish-actions.pod:3267
13927 #, no-wrap
13928 msgid ""
13929 " mkdir path\n"
13930 "\n"
13931 msgstr ""
13932 " mkdir шлях\n"
13933 "\n"
13934
13935 #. type: textblock
13936 #: ../fish/guestfish-actions.pod:3269 ../src/guestfs-actions.pod:5035
13937 msgid "Create a directory named C<path>."
13938 msgstr ""
13939
13940 #. type: =head2
13941 #: ../fish/guestfish-actions.pod:3271
13942 msgid "mkdir-mode"
13943 msgstr "mkdir-mode"
13944
13945 #. type: verbatim
13946 #: ../fish/guestfish-actions.pod:3273
13947 #, no-wrap
13948 msgid ""
13949 " mkdir-mode path mode\n"
13950 "\n"
13951 msgstr ""
13952 " mkdir-mode шлях режим\n"
13953 "\n"
13954
13955 #. type: textblock
13956 #: ../fish/guestfish-actions.pod:3275 ../src/guestfs-actions.pod:5048
13957 msgid ""
13958 "This command creates a directory, setting the initial permissions of the "
13959 "directory to C<mode>."
13960 msgstr ""
13961
13962 #. type: textblock
13963 #: ../fish/guestfish-actions.pod:3278 ../src/guestfs-actions.pod:5051
13964 msgid ""
13965 "For common Linux filesystems, the actual mode which is set will be C<mode & "
13966 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
13967 "other ways."
13968 msgstr ""
13969
13970 #. type: textblock
13971 #: ../fish/guestfish-actions.pod:3282
13972 msgid "See also L</mkdir>, L</umask>"
13973 msgstr "Див. також L</mkdir>, L</umask>"
13974
13975 #. type: =head2
13976 #: ../fish/guestfish-actions.pod:3284
13977 msgid "mkdir-p"
13978 msgstr "mkdir-p"
13979
13980 #. type: verbatim
13981 #: ../fish/guestfish-actions.pod:3286
13982 #, no-wrap
13983 msgid ""
13984 " mkdir-p path\n"
13985 "\n"
13986 msgstr ""
13987 " mkdir-p шлях\n"
13988 "\n"
13989
13990 #. type: textblock
13991 #: ../fish/guestfish-actions.pod:3288 ../src/guestfs-actions.pod:5067
13992 msgid ""
13993 "Create a directory named C<path>, creating any parent directories as "
13994 "necessary.  This is like the C<mkdir -p> shell command."
13995 msgstr ""
13996
13997 #. type: =head2
13998 #: ../fish/guestfish-actions.pod:3291
13999 msgid "mkdtemp"
14000 msgstr "mkdtemp"
14001
14002 #. type: verbatim
14003 #: ../fish/guestfish-actions.pod:3293
14004 #, no-wrap
14005 msgid ""
14006 " mkdtemp template\n"
14007 "\n"
14008 msgstr ""
14009 " mkdtemp шаблон\n"
14010 "\n"
14011
14012 #. type: textblock
14013 #: ../fish/guestfish-actions.pod:3295 ../src/guestfs-actions.pod:5080
14014 msgid ""
14015 "This command creates a temporary directory.  The C<template> parameter "
14016 "should be a full pathname for the temporary directory name with the final "
14017 "six characters being \"XXXXXX\"."
14018 msgstr ""
14019
14020 #. type: textblock
14021 #: ../fish/guestfish-actions.pod:3300 ../src/guestfs-actions.pod:5085
14022 msgid ""
14023 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
14024 "being suitable for Windows filesystems."
14025 msgstr ""
14026
14027 #. type: textblock
14028 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5088
14029 msgid "The name of the temporary directory that was created is returned."
14030 msgstr ""
14031
14032 #. type: textblock
14033 #: ../fish/guestfish-actions.pod:3306 ../src/guestfs-actions.pod:5091
14034 msgid "The temporary directory is created with mode 0700 and is owned by root."
14035 msgstr ""
14036
14037 #. type: textblock
14038 #: ../fish/guestfish-actions.pod:3309 ../src/guestfs-actions.pod:5094
14039 msgid ""
14040 "The caller is responsible for deleting the temporary directory and its "
14041 "contents after use."
14042 msgstr ""
14043
14044 #. type: textblock
14045 #: ../fish/guestfish-actions.pod:3312 ../src/guestfs-actions.pod:5097
14046 msgid "See also: L<mkdtemp(3)>"
14047 msgstr "Див. також L<mkdtemp(3)>"
14048
14049 #. type: =head2
14050 #: ../fish/guestfish-actions.pod:3314
14051 msgid "mke2fs-J"
14052 msgstr "mke2fs-J"
14053
14054 #. type: verbatim
14055 #: ../fish/guestfish-actions.pod:3316
14056 #, no-wrap
14057 msgid ""
14058 " mke2fs-J fstype blocksize device journal\n"
14059 "\n"
14060 msgstr ""
14061
14062 #. type: textblock
14063 #: ../fish/guestfish-actions.pod:3318 ../src/guestfs-actions.pod:5113
14064 msgid ""
14065 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14066 "C<journal>.  It is equivalent to the command:"
14067 msgstr ""
14068
14069 #. type: verbatim
14070 #: ../fish/guestfish-actions.pod:3322 ../src/guestfs-actions.pod:5117
14071 #, no-wrap
14072 msgid ""
14073 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
14074 "\n"
14075 msgstr ""
14076 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
14077 "\n"
14078
14079 #. type: textblock
14080 #: ../fish/guestfish-actions.pod:3324
14081 msgid "See also L</mke2journal>."
14082 msgstr "Див. також L</mke2journal>."
14083
14084 #. type: =head2
14085 #: ../fish/guestfish-actions.pod:3326
14086 msgid "mke2fs-JL"
14087 msgstr "mke2fs-JL"
14088
14089 #. type: verbatim
14090 #: ../fish/guestfish-actions.pod:3328
14091 #, no-wrap
14092 msgid ""
14093 " mke2fs-JL fstype blocksize device label\n"
14094 "\n"
14095 msgstr ""
14096
14097 #. type: textblock
14098 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5134
14099 msgid ""
14100 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14101 "the journal labeled C<label>."
14102 msgstr ""
14103
14104 #. type: textblock
14105 #: ../fish/guestfish-actions.pod:3333
14106 msgid "See also L</mke2journal-L>."
14107 msgstr "Див. також L</mke2journal-L>."
14108
14109 #. type: =head2
14110 #: ../fish/guestfish-actions.pod:3335
14111 msgid "mke2fs-JU"
14112 msgstr "mke2fs-JU"
14113
14114 #. type: verbatim
14115 #: ../fish/guestfish-actions.pod:3337
14116 #, no-wrap
14117 msgid ""
14118 " mke2fs-JU fstype blocksize device uuid\n"
14119 "\n"
14120 msgstr ""
14121
14122 #. type: textblock
14123 #: ../fish/guestfish-actions.pod:3339 ../src/guestfs-actions.pod:5152
14124 msgid ""
14125 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
14126 "the journal with UUID C<uuid>."
14127 msgstr ""
14128
14129 #. type: textblock
14130 #: ../fish/guestfish-actions.pod:3342
14131 msgid "See also L</mke2journal-U>."
14132 msgstr "Див. також L</mke2journal-U>."
14133
14134 #. type: =head2
14135 #: ../fish/guestfish-actions.pod:3344
14136 msgid "mke2journal"
14137 msgstr "mke2journal"
14138
14139 #. type: verbatim
14140 #: ../fish/guestfish-actions.pod:3346
14141 #, no-wrap
14142 msgid ""
14143 " mke2journal blocksize device\n"
14144 "\n"
14145 msgstr ""
14146
14147 #. type: textblock
14148 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5168
14149 msgid ""
14150 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
14151 "command:"
14152 msgstr ""
14153
14154 #. type: verbatim
14155 #: ../fish/guestfish-actions.pod:3351 ../src/guestfs-actions.pod:5171
14156 #, no-wrap
14157 msgid ""
14158 " mke2fs -O journal_dev -b blocksize device\n"
14159 "\n"
14160 msgstr ""
14161
14162 #. type: =head2
14163 #: ../fish/guestfish-actions.pod:3353
14164 msgid "mke2journal-L"
14165 msgstr "mke2journal-L"
14166
14167 #. type: verbatim
14168 #: ../fish/guestfish-actions.pod:3355
14169 #, no-wrap
14170 msgid ""
14171 " mke2journal-L blocksize label device\n"
14172 "\n"
14173 msgstr ""
14174
14175 #. type: textblock
14176 #: ../fish/guestfish-actions.pod:3357 ../src/guestfs-actions.pod:5185
14177 msgid "This creates an ext2 external journal on C<device> with label C<label>."
14178 msgstr ""
14179
14180 #. type: =head2
14181 #: ../fish/guestfish-actions.pod:3359
14182 msgid "mke2journal-U"
14183 msgstr "mke2journal-U"
14184
14185 #. type: verbatim
14186 #: ../fish/guestfish-actions.pod:3361
14187 #, no-wrap
14188 msgid ""
14189 " mke2journal-U blocksize uuid device\n"
14190 "\n"
14191 msgstr ""
14192
14193 #. type: textblock
14194 #: ../fish/guestfish-actions.pod:3363 ../src/guestfs-actions.pod:5199
14195 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
14196 msgstr ""
14197
14198 #. type: =head2
14199 #: ../fish/guestfish-actions.pod:3365
14200 msgid "mkfifo"
14201 msgstr "mkfifo"
14202
14203 #. type: verbatim
14204 #: ../fish/guestfish-actions.pod:3367
14205 #, no-wrap
14206 msgid ""
14207 " mkfifo mode path\n"
14208 "\n"
14209 msgstr ""
14210 " mkfifo режим шлях\n"
14211 "\n"
14212
14213 #. type: textblock
14214 #: ../fish/guestfish-actions.pod:3369
14215 msgid ""
14216 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
14217 "is just a convenient wrapper around L</mknod>."
14218 msgstr ""
14219
14220 #. type: =head2
14221 #: ../fish/guestfish-actions.pod:3375
14222 msgid "mkfs"
14223 msgstr "mkfs"
14224
14225 #. type: verbatim
14226 #: ../fish/guestfish-actions.pod:3377
14227 #, no-wrap
14228 msgid ""
14229 " mkfs fstype device\n"
14230 "\n"
14231 msgstr ""
14232 " mkfs тип_файлової_системи пристрій\n"
14233 "\n"
14234
14235 #. type: textblock
14236 #: ../fish/guestfish-actions.pod:3379 ../src/guestfs-actions.pod:5229
14237 msgid ""
14238 "This creates a filesystem on C<device> (usually a partition or LVM logical "
14239 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
14240 msgstr ""
14241
14242 #. type: =head2
14243 #: ../fish/guestfish-actions.pod:3383
14244 msgid "mkfs-b"
14245 msgstr "mkfs-b"
14246
14247 #. type: verbatim
14248 #: ../fish/guestfish-actions.pod:3385
14249 #, no-wrap
14250 msgid ""
14251 " mkfs-b fstype blocksize device\n"
14252 "\n"
14253 msgstr ""
14254
14255 #. type: textblock
14256 #: ../fish/guestfish-actions.pod:3387
14257 msgid ""
14258 "This call is similar to L</mkfs>, but it allows you to control the block "
14259 "size of the resulting filesystem.  Supported block sizes depend on the "
14260 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
14261 msgstr ""
14262
14263 #. type: textblock
14264 #: ../fish/guestfish-actions.pod:3392 ../fish/guestfish-actions.pod:3419
14265 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5295
14266 msgid ""
14267 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
14268 "cluster size."
14269 msgstr ""
14270
14271 #. type: textblock
14272 #: ../fish/guestfish-actions.pod:3395
14273 msgid ""
14274 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
14275 "instead."
14276 msgstr ""
14277
14278 #. type: =head2
14279 #: ../fish/guestfish-actions.pod:3402
14280 msgid "mkfs-opts"
14281 msgstr "mkfs-opts"
14282
14283 #. type: verbatim
14284 #: ../fish/guestfish-actions.pod:3404
14285 #, no-wrap
14286 msgid ""
14287 " mkfs-opts fstype device [blocksize:N] [features:..] [inode:N] [sectorsize:N]\n"
14288 "\n"
14289 msgstr ""
14290
14291 #. type: textblock
14292 #: ../fish/guestfish-actions.pod:3406 ../src/guestfs-actions.pod:5282
14293 msgid ""
14294 "This function creates a filesystem on C<device>.  The filesystem type is "
14295 "C<fstype>, for example C<ext3>."
14296 msgstr ""
14297
14298 #. type: =item
14299 #: ../fish/guestfish-actions.pod:3413 ../src/guestfs-actions.pod:5289
14300 msgid "C<blocksize>"
14301 msgstr "C<blocksize>"
14302
14303 #. type: textblock
14304 #: ../fish/guestfish-actions.pod:3415 ../src/guestfs-actions.pod:5291
14305 msgid ""
14306 "The filesystem block size.  Supported block sizes depend on the filesystem "
14307 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
14308 "filesystems."
14309 msgstr ""
14310
14311 #. type: textblock
14312 #: ../fish/guestfish-actions.pod:3422 ../src/guestfs-actions.pod:5298
14313 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
14314 msgstr ""
14315
14316 #. type: =item
14317 #: ../fish/guestfish-actions.pod:3424 ../src/guestfs-actions.pod:5300
14318 msgid "C<features>"
14319 msgstr "C<features>"
14320
14321 #. type: textblock
14322 #: ../fish/guestfish-actions.pod:3426 ../src/guestfs-actions.pod:5302
14323 msgid "This passes the I<-O> parameter to the external mkfs program."
14324 msgstr ""
14325
14326 #. type: textblock
14327 #: ../fish/guestfish-actions.pod:3428 ../src/guestfs-actions.pod:5304
14328 msgid ""
14329 "For certain filesystem types, this allows extra filesystem features to be "
14330 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
14331 msgstr ""
14332
14333 #. type: textblock
14334 #: ../fish/guestfish-actions.pod:3432 ../src/guestfs-actions.pod:5308
14335 msgid ""
14336 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
14337 "type."
14338 msgstr ""
14339
14340 #. type: =item
14341 #: ../fish/guestfish-actions.pod:3435 ../src/guestfs-actions.pod:5311
14342 msgid "C<inode>"
14343 msgstr "C<inode>"
14344
14345 #. type: textblock
14346 #: ../fish/guestfish-actions.pod:3437 ../src/guestfs-actions.pod:5313
14347 msgid ""
14348 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
14349 "sets the inode size (only for ext2/3/4 filesystems at present)."
14350 msgstr ""
14351
14352 #. type: =item
14353 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5316
14354 msgid "C<sectorsize>"
14355 msgstr "C<sectorsize>"
14356
14357 #. type: textblock
14358 #: ../fish/guestfish-actions.pod:3442 ../src/guestfs-actions.pod:5318
14359 msgid ""
14360 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
14361 "sets sector size for ufs filesystem."
14362 msgstr ""
14363
14364 #. type: =head2
14365 #: ../fish/guestfish-actions.pod:3449
14366 msgid "mkmountpoint"
14367 msgstr "mkmountpoint"
14368
14369 #. type: verbatim
14370 #: ../fish/guestfish-actions.pod:3451
14371 #, no-wrap
14372 msgid ""
14373 " mkmountpoint exemptpath\n"
14374 "\n"
14375 msgstr ""
14376
14377 #. type: textblock
14378 #: ../fish/guestfish-actions.pod:3453
14379 msgid ""
14380 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
14381 "to create extra mountpoints before mounting the first filesystem."
14382 msgstr ""
14383
14384 #. type: textblock
14385 #: ../fish/guestfish-actions.pod:3457 ../src/guestfs-actions.pod:5361
14386 msgid ""
14387 "These calls are I<only> necessary in some very limited circumstances, mainly "
14388 "the case where you want to mount a mix of unrelated and/or read-only "
14389 "filesystems together."
14390 msgstr ""
14391
14392 #. type: textblock
14393 #: ../fish/guestfish-actions.pod:3461 ../src/guestfs-actions.pod:5365
14394 msgid ""
14395 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
14396 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
14397 "inside that.  You can unpack this as follows in guestfish:"
14398 msgstr ""
14399
14400 #. type: verbatim
14401 #: ../fish/guestfish-actions.pod:3466 ../src/guestfs-actions.pod:5370
14402 #, no-wrap
14403 msgid ""
14404 " add-ro Fedora-11-i686-Live.iso\n"
14405 " run\n"
14406 " mkmountpoint /cd\n"
14407 " mkmountpoint /sqsh\n"
14408 " mkmountpoint /ext3fs\n"
14409 " mount /dev/sda /cd\n"
14410 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14411 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14412 "\n"
14413 msgstr ""
14414 " add-ro Fedora-11-i686-Live.iso\n"
14415 " run\n"
14416 " mkmountpoint /cd\n"
14417 " mkmountpoint /sqsh\n"
14418 " mkmountpoint /ext3fs\n"
14419 " mount /dev/sda /cd\n"
14420 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
14421 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
14422 "\n"
14423
14424 #. type: textblock
14425 #: ../fish/guestfish-actions.pod:3475 ../src/guestfs-actions.pod:5379
14426 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
14427 msgstr ""
14428
14429 #. type: textblock
14430 #: ../fish/guestfish-actions.pod:3477
14431 msgid ""
14432 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
14433 "unexpected errors if you try to mix these calls.  It is safest to manually "
14434 "unmount filesystems and remove mountpoints after use."
14435 msgstr ""
14436
14437 #. type: textblock
14438 #: ../fish/guestfish-actions.pod:3481
14439 msgid ""
14440 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
14441 "for this to work for manual mountpoints, you must ensure that the innermost "
14442 "mountpoints have the longest pathnames, as in the example code above."
14443 msgstr ""
14444
14445 #. type: textblock
14446 #: ../fish/guestfish-actions.pod:3486 ../src/guestfs-actions.pod:5390
14447 msgid ""
14448 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
14449 msgstr ""
14450
14451 #. type: textblock
14452 #: ../fish/guestfish-actions.pod:3488
14453 msgid ""
14454 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
14455 "L</umount-all> to be called when the handle is closed which can also trigger "
14456 "these issues."
14457 msgstr ""
14458
14459 #. type: =head2
14460 #: ../fish/guestfish-actions.pod:3492
14461 msgid "mknod"
14462 msgstr "mknod"
14463
14464 #. type: verbatim
14465 #: ../fish/guestfish-actions.pod:3494
14466 #, no-wrap
14467 msgid ""
14468 " mknod mode devmajor devminor path\n"
14469 "\n"
14470 msgstr ""
14471
14472 #. type: textblock
14473 #: ../fish/guestfish-actions.pod:3496 ../src/guestfs-actions.pod:5409
14474 msgid ""
14475 "This call creates block or character special devices, or named pipes (FIFOs)."
14476 msgstr ""
14477
14478 #. type: textblock
14479 #: ../fish/guestfish-actions.pod:3499 ../src/guestfs-actions.pod:5412
14480 msgid ""
14481 "The C<mode> parameter should be the mode, using the standard constants.  "
14482 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
14483 "used when creating block and character special devices."
14484 msgstr ""
14485
14486 #. type: textblock
14487 #: ../fish/guestfish-actions.pod:3504
14488 msgid ""
14489 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
14490 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
14491 "regular file).  These constants are available in the standard Linux header "
14492 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
14493 "wrappers around this command which bitwise OR in the appropriate constant "
14494 "for you."
14495 msgstr ""
14496
14497 #. type: =head2
14498 #: ../fish/guestfish-actions.pod:3514
14499 msgid "mknod-b"
14500 msgstr "mknod-b"
14501
14502 #. type: verbatim
14503 #: ../fish/guestfish-actions.pod:3516
14504 #, no-wrap
14505 msgid ""
14506 " mknod-b mode devmajor devminor path\n"
14507 "\n"
14508 msgstr ""
14509
14510 #. type: textblock
14511 #: ../fish/guestfish-actions.pod:3518
14512 msgid ""
14513 "This call creates a block device node called C<path> with mode C<mode> and "
14514 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14515 "wrapper around L</mknod>."
14516 msgstr ""
14517
14518 #. type: =head2
14519 #: ../fish/guestfish-actions.pod:3524
14520 msgid "mknod-c"
14521 msgstr "mknod-c"
14522
14523 #. type: verbatim
14524 #: ../fish/guestfish-actions.pod:3526
14525 #, no-wrap
14526 msgid ""
14527 " mknod-c mode devmajor devminor path\n"
14528 "\n"
14529 msgstr ""
14530
14531 #. type: textblock
14532 #: ../fish/guestfish-actions.pod:3528
14533 msgid ""
14534 "This call creates a char device node called C<path> with mode C<mode> and "
14535 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
14536 "wrapper around L</mknod>."
14537 msgstr ""
14538
14539 #. type: =head2
14540 #: ../fish/guestfish-actions.pod:3534
14541 msgid "mkswap"
14542 msgstr "mkswap"
14543
14544 #. type: verbatim
14545 #: ../fish/guestfish-actions.pod:3536
14546 #, no-wrap
14547 msgid ""
14548 " mkswap device\n"
14549 "\n"
14550 msgstr ""
14551 " mkswap пристрій\n"
14552 "\n"
14553
14554 #. type: textblock
14555 #: ../fish/guestfish-actions.pod:3538 ../src/guestfs-actions.pod:5475
14556 msgid "Create a swap partition on C<device>."
14557 msgstr ""
14558
14559 #. type: =head2
14560 #: ../fish/guestfish-actions.pod:3540
14561 msgid "mkswap-L"
14562 msgstr "mkswap-L"
14563
14564 #. type: verbatim
14565 #: ../fish/guestfish-actions.pod:3542
14566 #, no-wrap
14567 msgid ""
14568 " mkswap-L label device\n"
14569 "\n"
14570 msgstr ""
14571 " mkswap-L мітка пристрій\n"
14572 "\n"
14573
14574 #. type: textblock
14575 #: ../fish/guestfish-actions.pod:3544 ../src/guestfs-actions.pod:5488
14576 msgid "Create a swap partition on C<device> with label C<label>."
14577 msgstr ""
14578
14579 #. type: textblock
14580 #: ../fish/guestfish-actions.pod:3546 ../src/guestfs-actions.pod:5490
14581 msgid ""
14582 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
14583 "sda>), just to a partition.  This appears to be a limitation of the kernel "
14584 "or swap tools."
14585 msgstr ""
14586
14587 #. type: =head2
14588 #: ../fish/guestfish-actions.pod:3550
14589 msgid "mkswap-U"
14590 msgstr "mkswap-U"
14591
14592 #. type: verbatim
14593 #: ../fish/guestfish-actions.pod:3552
14594 #, no-wrap
14595 msgid ""
14596 " mkswap-U uuid device\n"
14597 "\n"
14598 msgstr ""
14599 " mkswap-U uuid пристрій\n"
14600 "\n"
14601
14602 #. type: textblock
14603 #: ../fish/guestfish-actions.pod:3554 ../src/guestfs-actions.pod:5505
14604 msgid "Create a swap partition on C<device> with UUID C<uuid>."
14605 msgstr ""
14606
14607 #. type: =head2
14608 #: ../fish/guestfish-actions.pod:3556
14609 msgid "mkswap-file"
14610 msgstr "mkswap-file"
14611
14612 #. type: verbatim
14613 #: ../fish/guestfish-actions.pod:3558
14614 #, no-wrap
14615 msgid ""
14616 " mkswap-file path\n"
14617 "\n"
14618 msgstr ""
14619 " mkswap-file шлях\n"
14620 "\n"
14621
14622 #. type: textblock
14623 #: ../fish/guestfish-actions.pod:3560 ../src/guestfs-actions.pod:5517
14624 msgid "Create a swap file."
14625 msgstr "Створити файл резервної пам’яті."
14626
14627 #. type: textblock
14628 #: ../fish/guestfish-actions.pod:3562
14629 msgid ""
14630 "This command just writes a swap file signature to an existing file.  To "
14631 "create the file itself, use something like L</fallocate>."
14632 msgstr ""
14633
14634 #. type: =head2
14635 #: ../fish/guestfish-actions.pod:3565
14636 msgid "modprobe"
14637 msgstr "modprobe"
14638
14639 #. type: verbatim
14640 #: ../fish/guestfish-actions.pod:3567
14641 #, no-wrap
14642 msgid ""
14643 " modprobe modulename\n"
14644 "\n"
14645 msgstr ""
14646 " modprobe назва_модуля\n"
14647 "\n"
14648
14649 #. type: textblock
14650 #: ../fish/guestfish-actions.pod:3569 ../src/guestfs-actions.pod:5532
14651 msgid "This loads a kernel module in the appliance."
14652 msgstr ""
14653
14654 #. type: textblock
14655 #: ../fish/guestfish-actions.pod:3571 ../src/guestfs-actions.pod:5534
14656 msgid ""
14657 "The kernel module must have been whitelisted when libguestfs was built (see "
14658 "C<appliance/kmod.whitelist.in> in the source)."
14659 msgstr ""
14660
14661 #. type: =head2
14662 #: ../fish/guestfish-actions.pod:3574
14663 msgid "mount"
14664 msgstr "mount"
14665
14666 #. type: verbatim
14667 #: ../fish/guestfish-actions.pod:3576
14668 #, no-wrap
14669 msgid ""
14670 " mount device mountpoint\n"
14671 "\n"
14672 msgstr ""
14673 " mount пристрій точка_монтування\n"
14674 "\n"
14675
14676 #. type: textblock
14677 #: ../fish/guestfish-actions.pod:3578 ../src/guestfs-actions.pod:5548
14678 msgid ""
14679 "Mount a guest disk at a position in the filesystem.  Block devices are named "
14680 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
14681 "those block devices contain partitions, they will have the usual names (eg. "
14682 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
14683 msgstr ""
14684
14685 #. type: textblock
14686 #: ../fish/guestfish-actions.pod:3584 ../src/guestfs-actions.pod:5554
14687 msgid ""
14688 "The rules are the same as for L<mount(2)>: A filesystem must first be "
14689 "mounted on C</> before others can be mounted.  Other filesystems can only be "
14690 "mounted on directories which already exist."
14691 msgstr ""
14692
14693 #. type: textblock
14694 #: ../fish/guestfish-actions.pod:3589 ../src/guestfs-actions.pod:5559
14695 msgid ""
14696 "The mounted filesystem is writable, if we have sufficient permissions on the "
14697 "underlying device."
14698 msgstr ""
14699
14700 #. type: textblock
14701 #: ../fish/guestfish-actions.pod:3592
14702 msgid ""
14703 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
14704 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
14705 "problems for users.  If your program might need to work with older versions "
14706 "of libguestfs, use L</mount-options> instead (using an empty string for the "
14707 "first parameter if you don't want any options)."
14708 msgstr ""
14709
14710 #. type: =head2
14711 #: ../fish/guestfish-actions.pod:3599
14712 msgid "mount-9p"
14713 msgstr ""
14714
14715 #. type: verbatim
14716 #: ../fish/guestfish-actions.pod:3601
14717 #, no-wrap
14718 msgid ""
14719 " mount-9p mounttag mountpoint [options:..]\n"
14720 "\n"
14721 msgstr ""
14722
14723 #. type: textblock
14724 #: ../fish/guestfish-actions.pod:3603 ../src/guestfs-actions.pod:5588
14725 msgid ""
14726 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
14727 "C<mountpoint>."
14728 msgstr ""
14729
14730 #. type: textblock
14731 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5591
14732 msgid ""
14733 "If required, C<trans=virtio> will be automatically added to the options.  "
14734 "Any other options required can be passed in the optional C<options> "
14735 "parameter."
14736 msgstr ""
14737
14738 #. type: =head2
14739 #: ../fish/guestfish-actions.pod:3612
14740 msgid "mount-loop"
14741 msgstr "mount-loop"
14742
14743 #. type: verbatim
14744 #: ../fish/guestfish-actions.pod:3614
14745 #, no-wrap
14746 msgid ""
14747 " mount-loop file mountpoint\n"
14748 "\n"
14749 msgstr ""
14750
14751 #. type: textblock
14752 #: ../fish/guestfish-actions.pod:3616 ../src/guestfs-actions.pod:5630
14753 msgid ""
14754 "This command lets you mount C<file> (a filesystem image in a file) on a "
14755 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
14756 "mountpoint>."
14757 msgstr ""
14758
14759 #. type: =head2
14760 #: ../fish/guestfish-actions.pod:3620
14761 msgid "mount-options"
14762 msgstr "mount-options"
14763
14764 #. type: verbatim
14765 #: ../fish/guestfish-actions.pod:3622
14766 #, no-wrap
14767 msgid ""
14768 " mount-options options device mountpoint\n"
14769 "\n"
14770 msgstr ""
14771
14772 #. type: textblock
14773 #: ../fish/guestfish-actions.pod:3624
14774 msgid ""
14775 "This is the same as the L</mount> command, but it allows you to set the "
14776 "mount options as for the L<mount(8)> I<-o> flag."
14777 msgstr ""
14778
14779 #. type: textblock
14780 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5650
14781 msgid ""
14782 "If the C<options> parameter is an empty string, then no options are passed "
14783 "(all options default to whatever the filesystem uses)."
14784 msgstr ""
14785
14786 #. type: =head2
14787 #: ../fish/guestfish-actions.pod:3632
14788 msgid "mount-ro"
14789 msgstr "mount-ro"
14790
14791 #. type: verbatim
14792 #: ../fish/guestfish-actions.pod:3634
14793 #, no-wrap
14794 msgid ""
14795 " mount-ro device mountpoint\n"
14796 "\n"
14797 msgstr ""
14798 " mount-ro пристрій точка_монтування\n"
14799 "\n"
14800
14801 #. type: textblock
14802 #: ../fish/guestfish-actions.pod:3636
14803 msgid ""
14804 "This is the same as the L</mount> command, but it mounts the filesystem with "
14805 "the read-only (I<-o ro>) flag."
14806 msgstr ""
14807
14808 #. type: =head2
14809 #: ../fish/guestfish-actions.pod:3639
14810 msgid "mount-vfs"
14811 msgstr "mount-vfs"
14812
14813 #. type: verbatim
14814 #: ../fish/guestfish-actions.pod:3641
14815 #, no-wrap
14816 msgid ""
14817 " mount-vfs options vfstype device mountpoint\n"
14818 "\n"
14819 msgstr ""
14820
14821 #. type: textblock
14822 #: ../fish/guestfish-actions.pod:3643
14823 msgid ""
14824 "This is the same as the L</mount> command, but it allows you to set both the "
14825 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
14826 msgstr ""
14827
14828 #. type: =head2
14829 #: ../fish/guestfish-actions.pod:3647
14830 msgid "mountpoints"
14831 msgstr "mountpoints"
14832
14833 #. type: verbatim
14834 #: ../fish/guestfish-actions.pod:3649
14835 #, no-wrap
14836 msgid ""
14837 " mountpoints\n"
14838 "\n"
14839 msgstr ""
14840 " mountpoints\n"
14841 "\n"
14842
14843 #. type: textblock
14844 #: ../fish/guestfish-actions.pod:3651
14845 msgid ""
14846 "This call is similar to L</mounts>.  That call returns a list of devices.  "
14847 "This one returns a hash table (map) of device name to directory where the "
14848 "device is mounted."
14849 msgstr ""
14850
14851 #. type: =head2
14852 #: ../fish/guestfish-actions.pod:3655
14853 msgid "mounts"
14854 msgstr "mounts"
14855
14856 #. type: verbatim
14857 #: ../fish/guestfish-actions.pod:3657
14858 #, no-wrap
14859 msgid ""
14860 " mounts\n"
14861 "\n"
14862 msgstr ""
14863 " mounts\n"
14864 "\n"
14865
14866 #. type: textblock
14867 #: ../fish/guestfish-actions.pod:3659 ../src/guestfs-actions.pod:5711
14868 msgid ""
14869 "This returns the list of currently mounted filesystems.  It returns the list "
14870 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
14871 msgstr ""
14872
14873 #. type: textblock
14874 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5714
14875 msgid "Some internal mounts are not shown."
14876 msgstr ""
14877
14878 #. type: textblock
14879 #: ../fish/guestfish-actions.pod:3664
14880 msgid "See also: L</mountpoints>"
14881 msgstr "Див. також L</mountpoints>"
14882
14883 #. type: =head2
14884 #: ../fish/guestfish-actions.pod:3666
14885 msgid "mv"
14886 msgstr "mv"
14887
14888 #. type: verbatim
14889 #: ../fish/guestfish-actions.pod:3668
14890 #, no-wrap
14891 msgid ""
14892 " mv src dest\n"
14893 "\n"
14894 msgstr ""
14895 " mv джерело призначення\n"
14896 "\n"
14897
14898 #. type: textblock
14899 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5731
14900 msgid ""
14901 "This moves a file from C<src> to C<dest> where C<dest> is either a "
14902 "destination filename or destination directory."
14903 msgstr ""
14904
14905 #. type: =head2
14906 #: ../fish/guestfish-actions.pod:3673
14907 msgid "ntfs-3g-probe"
14908 msgstr "ntfs-3g-probe"
14909
14910 #. type: verbatim
14911 #: ../fish/guestfish-actions.pod:3675
14912 #, no-wrap
14913 msgid ""
14914 " ntfs-3g-probe true|false device\n"
14915 "\n"
14916 msgstr ""
14917
14918 #. type: textblock
14919 #: ../fish/guestfish-actions.pod:3677 ../src/guestfs-actions.pod:5745
14920 msgid ""
14921 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
14922 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
14923 "write, and some cannot be mounted at all)."
14924 msgstr ""
14925
14926 #. type: textblock
14927 #: ../fish/guestfish-actions.pod:3681 ../src/guestfs-actions.pod:5749
14928 msgid ""
14929 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
14930 "can be mounted read-write.  Set it to false if you want to test if the "
14931 "volume can be mounted read-only."
14932 msgstr ""
14933
14934 #. type: textblock
14935 #: ../fish/guestfish-actions.pod:3685 ../src/guestfs-actions.pod:5753
14936 msgid ""
14937 "The return value is an integer which C<0> if the operation would succeed, or "
14938 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
14939 msgstr ""
14940
14941 #. type: =head2
14942 #: ../fish/guestfish-actions.pod:3689
14943 msgid "ntfsresize"
14944 msgstr "ntfsresize"
14945
14946 #. type: verbatim
14947 #: ../fish/guestfish-actions.pod:3691
14948 #, no-wrap
14949 msgid ""
14950 " ntfsresize device\n"
14951 "\n"
14952 msgstr ""
14953 " ntfsresize пристрій\n"
14954 "\n"
14955
14956 #. type: textblock
14957 #: ../fish/guestfish-actions.pod:3693 ../fish/guestfish-actions.pod:3717
14958 #: ../src/guestfs-actions.pod:5774 ../src/guestfs-actions.pod:5806
14959 msgid ""
14960 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
14961 "size of the underlying device."
14962 msgstr ""
14963
14964 #. type: textblock
14965 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5777
14966 msgid ""
14967 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
14968 "consistency check (for safety).  You have to boot into Windows to perform "
14969 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
14970 "resize filesystems which have been marked in this way.  So in effect it is "
14971 "not possible to call ntfsresize multiple times on a single filesystem "
14972 "without booting into Windows between each resize."
14973 msgstr ""
14974
14975 #. type: textblock
14976 #: ../fish/guestfish-actions.pod:3704 ../fish/guestfish-actions.pod:3743
14977 #: ../src/guestfs-actions.pod:5785 ../src/guestfs-actions.pod:5832
14978 msgid "See also L<ntfsresize(8)>."
14979 msgstr "Див. також L<ntfsresize(8)>."
14980
14981 #. type: textblock
14982 #: ../fish/guestfish-actions.pod:3706 ../fish/guestfish-actions.pod:3754
14983 msgid ""
14984 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
14985 "call instead."
14986 msgstr ""
14987
14988 #. type: =head2
14989 #: ../fish/guestfish-actions.pod:3713
14990 msgid "ntfsresize-opts"
14991 msgstr ""
14992
14993 #. type: verbatim
14994 #: ../fish/guestfish-actions.pod:3715
14995 #, no-wrap
14996 msgid ""
14997 " ntfsresize-opts device [size:N] [force:true|false]\n"
14998 "\n"
14999 msgstr ""
15000
15001 #. type: textblock
15002 #: ../fish/guestfish-actions.pod:3726 ../src/guestfs-actions.pod:5815
15003 msgid ""
15004 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
15005 "resized to fit the container (eg. partition)."
15006 msgstr ""
15007
15008 #. type: =item
15009 #: ../fish/guestfish-actions.pod:3729 ../fish/guestfish-actions.pod:5050
15010 #: ../src/guestfs-actions.pod:5818 ../src/guestfs-actions.pod:7789
15011 msgid "C<force>"
15012 msgstr "C<force>"
15013
15014 #. type: textblock
15015 #: ../fish/guestfish-actions.pod:3731 ../src/guestfs-actions.pod:5820
15016 msgid ""
15017 "If this option is true, then force the resize of the filesystem even if the "
15018 "filesystem is marked as requiring a consistency check."
15019 msgstr ""
15020
15021 #. type: textblock
15022 #: ../fish/guestfish-actions.pod:3734
15023 msgid ""
15024 "After the resize operation, the filesystem is always marked as requiring a "
15025 "consistency check (for safety).  You have to boot into Windows to perform "
15026 "this check and clear this condition.  If you I<don't> set the C<force> "
15027 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
15028 "a single filesystem without booting into Windows between each resize."
15029 msgstr ""
15030
15031 #. type: =head2
15032 #: ../fish/guestfish-actions.pod:3747
15033 msgid "ntfsresize-size"
15034 msgstr "ntfsresize-size"
15035
15036 #. type: verbatim
15037 #: ../fish/guestfish-actions.pod:3749
15038 #, no-wrap
15039 msgid ""
15040 " ntfsresize-size device size\n"
15041 "\n"
15042 msgstr ""
15043
15044 #. type: textblock
15045 #: ../fish/guestfish-actions.pod:3751
15046 msgid ""
15047 "This command is the same as L</ntfsresize> except that it allows you to "
15048 "specify the new size (in bytes) explicitly."
15049 msgstr ""
15050
15051 #. type: =head2
15052 #: ../fish/guestfish-actions.pod:3761
15053 msgid "part-add"
15054 msgstr "part-add"
15055
15056 #. type: verbatim
15057 #: ../fish/guestfish-actions.pod:3763
15058 #, no-wrap
15059 msgid ""
15060 " part-add device prlogex startsect endsect\n"
15061 "\n"
15062 msgstr ""
15063
15064 #. type: textblock
15065 #: ../fish/guestfish-actions.pod:3765
15066 msgid ""
15067 "This command adds a partition to C<device>.  If there is no partition table "
15068 "on the device, call L</part-init> first."
15069 msgstr ""
15070
15071 #. type: textblock
15072 #: ../fish/guestfish-actions.pod:3768 ../src/guestfs-actions.pod:5893
15073 msgid ""
15074 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
15075 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
15076 "C<logical>) and C<e> (or C<extended>) partition types."
15077 msgstr ""
15078
15079 #. type: textblock
15080 #: ../fish/guestfish-actions.pod:3773 ../src/guestfs-actions.pod:5898
15081 msgid ""
15082 "C<startsect> and C<endsect> are the start and end of the partition in "
15083 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
15084 "from the end of the disk (C<-1> is the last sector)."
15085 msgstr ""
15086
15087 #. type: textblock
15088 #: ../fish/guestfish-actions.pod:3777
15089 msgid ""
15090 "Creating a partition which covers the whole disk is not so easy.  Use L</"
15091 "part-disk> to do that."
15092 msgstr ""
15093
15094 #. type: =head2
15095 #: ../fish/guestfish-actions.pod:3780
15096 msgid "part-del"
15097 msgstr "part-del"
15098
15099 #. type: verbatim
15100 #: ../fish/guestfish-actions.pod:3782
15101 #, no-wrap
15102 msgid ""
15103 " part-del device partnum\n"
15104 "\n"
15105 msgstr ""
15106
15107 #. type: textblock
15108 #: ../fish/guestfish-actions.pod:3784 ../src/guestfs-actions.pod:5916
15109 msgid "This command deletes the partition numbered C<partnum> on C<device>."
15110 msgstr ""
15111
15112 #. type: textblock
15113 #: ../fish/guestfish-actions.pod:3786 ../src/guestfs-actions.pod:5918
15114 msgid ""
15115 "Note that in the case of MBR partitioning, deleting an extended partition "
15116 "also deletes any logical partitions it contains."
15117 msgstr ""
15118
15119 #. type: =head2
15120 #: ../fish/guestfish-actions.pod:3790
15121 msgid "part-disk"
15122 msgstr "part-disk"
15123
15124 #. type: verbatim
15125 #: ../fish/guestfish-actions.pod:3792
15126 #, no-wrap
15127 msgid ""
15128 " part-disk device parttype\n"
15129 "\n"
15130 msgstr ""
15131 " part-disk пристрій тип_розділу\n"
15132 "\n"
15133
15134 #. type: textblock
15135 #: ../fish/guestfish-actions.pod:3794
15136 msgid ""
15137 "This command is simply a combination of L</part-init> followed by L</part-"
15138 "add> to create a single primary partition covering the whole disk."
15139 msgstr ""
15140
15141 #. type: textblock
15142 #: ../fish/guestfish-actions.pod:3798
15143 msgid ""
15144 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
15145 "possible values are described in L</part-init>."
15146 msgstr ""
15147
15148 #. type: =head2
15149 #: ../fish/guestfish-actions.pod:3801
15150 msgid "part-get-bootable"
15151 msgstr "part-get-bootable"
15152
15153 #. type: verbatim
15154 #: ../fish/guestfish-actions.pod:3803
15155 #, no-wrap
15156 msgid ""
15157 " part-get-bootable device partnum\n"
15158 "\n"
15159 msgstr ""
15160
15161 #. type: textblock
15162 #: ../fish/guestfish-actions.pod:3805 ../src/guestfs-actions.pod:5951
15163 msgid ""
15164 "This command returns true if the partition C<partnum> on C<device> has the "
15165 "bootable flag set."
15166 msgstr ""
15167
15168 #. type: textblock
15169 #: ../fish/guestfish-actions.pod:3808
15170 msgid "See also L</part-set-bootable>."
15171 msgstr "Див. також L</part-set-bootable>."
15172
15173 #. type: =head2
15174 #: ../fish/guestfish-actions.pod:3810
15175 msgid "part-get-mbr-id"
15176 msgstr "part-get-mbr-id"
15177
15178 #. type: verbatim
15179 #: ../fish/guestfish-actions.pod:3812
15180 #, no-wrap
15181 msgid ""
15182 " part-get-mbr-id device partnum\n"
15183 "\n"
15184 msgstr ""
15185
15186 #. type: textblock
15187 #: ../fish/guestfish-actions.pod:3814 ../src/guestfs-actions.pod:5967
15188 msgid ""
15189 "Returns the MBR type byte (also known as the ID byte) from the numbered "
15190 "partition C<partnum>."
15191 msgstr ""
15192
15193 #. type: textblock
15194 #: ../fish/guestfish-actions.pod:3817 ../fish/guestfish-actions.pod:3961
15195 msgid ""
15196 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
15197 "undefined results for other partition table types (see L</part-get-"
15198 "parttype>)."
15199 msgstr ""
15200
15201 #. type: =head2
15202 #: ../fish/guestfish-actions.pod:3821
15203 msgid "part-get-parttype"
15204 msgstr "part-get-parttype"
15205
15206 #. type: verbatim
15207 #: ../fish/guestfish-actions.pod:3823
15208 #, no-wrap
15209 msgid ""
15210 " part-get-parttype device\n"
15211 "\n"
15212 msgstr ""
15213 " part-get-parttype пристрій\n"
15214 "\n"
15215
15216 #. type: textblock
15217 #: ../fish/guestfish-actions.pod:3825 ../src/guestfs-actions.pod:5984
15218 msgid ""
15219 "This command examines the partition table on C<device> and returns the "
15220 "partition table type (format) being used."
15221 msgstr ""
15222
15223 #. type: textblock
15224 #: ../fish/guestfish-actions.pod:3828
15225 msgid ""
15226 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
15227 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
15228 "possible, although unusual.  See L</part-init> for a full list."
15229 msgstr ""
15230
15231 #. type: =head2
15232 #: ../fish/guestfish-actions.pod:3833
15233 msgid "part-init"
15234 msgstr "part-init"
15235
15236 #. type: verbatim
15237 #: ../fish/guestfish-actions.pod:3835
15238 #, no-wrap
15239 msgid ""
15240 " part-init device parttype\n"
15241 "\n"
15242 msgstr ""
15243
15244 #. type: textblock
15245 #: ../fish/guestfish-actions.pod:3837 ../src/guestfs-actions.pod:6004
15246 msgid ""
15247 "This creates an empty partition table on C<device> of one of the partition "
15248 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
15249 "(for large disks)."
15250 msgstr ""
15251
15252 #. type: textblock
15253 #: ../fish/guestfish-actions.pod:3841
15254 msgid ""
15255 "Initially there are no partitions.  Following this, you should call L</part-"
15256 "add> for each partition required."
15257 msgstr ""
15258
15259 #. type: textblock
15260 #: ../fish/guestfish-actions.pod:3844 ../src/guestfs-actions.pod:6011
15261 msgid "Possible values for C<parttype> are:"
15262 msgstr ""
15263
15264 #. type: =item
15265 #: ../fish/guestfish-actions.pod:3848 ../src/guestfs-actions.pod:6015
15266 msgid "B<efi>"
15267 msgstr "B<efi>"
15268
15269 #. type: =item
15270 #: ../fish/guestfish-actions.pod:3850 ../src/guestfs-actions.pod:6017
15271 msgid "B<gpt>"
15272 msgstr "B<gpt>"
15273
15274 #. type: textblock
15275 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:6019
15276 msgid "Intel EFI / GPT partition table."
15277 msgstr ""
15278
15279 #. type: textblock
15280 #: ../fish/guestfish-actions.pod:3854 ../src/guestfs-actions.pod:6021
15281 msgid ""
15282 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
15283 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
15284 "the C<mbr> format."
15285 msgstr ""
15286
15287 #. type: =item
15288 #: ../fish/guestfish-actions.pod:3858 ../src/guestfs-actions.pod:6025
15289 msgid "B<mbr>"
15290 msgstr "B<mbr>"
15291
15292 #. type: =item
15293 #: ../fish/guestfish-actions.pod:3860 ../src/guestfs-actions.pod:6027
15294 msgid "B<msdos>"
15295 msgstr "B<msdos>"
15296
15297 #. type: textblock
15298 #: ../fish/guestfish-actions.pod:3862 ../src/guestfs-actions.pod:6029
15299 msgid ""
15300 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
15301 "Windows.  This partition type will B<only> work for device sizes up to 2 "
15302 "TB.  For large disks we recommend using C<gpt>."
15303 msgstr ""
15304
15305 #. type: textblock
15306 #: ../fish/guestfish-actions.pod:3869 ../src/guestfs-actions.pod:6036
15307 msgid ""
15308 "Other partition table types that may work but are not supported include:"
15309 msgstr ""
15310
15311 #. type: =item
15312 #: ../fish/guestfish-actions.pod:3874 ../src/guestfs-actions.pod:6041
15313 msgid "B<aix>"
15314 msgstr "B<aix>"
15315
15316 #. type: textblock
15317 #: ../fish/guestfish-actions.pod:3876 ../src/guestfs-actions.pod:6043
15318 msgid "AIX disk labels."
15319 msgstr "Мітки дисків AIX."
15320
15321 #. type: =item
15322 #: ../fish/guestfish-actions.pod:3878 ../src/guestfs-actions.pod:6045
15323 msgid "B<amiga>"
15324 msgstr "B<amiga>"
15325
15326 #. type: =item
15327 #: ../fish/guestfish-actions.pod:3880 ../src/guestfs-actions.pod:6047
15328 msgid "B<rdb>"
15329 msgstr "B<rdb>"
15330
15331 #. type: textblock
15332 #: ../fish/guestfish-actions.pod:3882 ../src/guestfs-actions.pod:6049
15333 msgid "Amiga \"Rigid Disk Block\" format."
15334 msgstr "Формат \"Rigid Disk Block\" Amiga."
15335
15336 #. type: =item
15337 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:6051
15338 msgid "B<bsd>"
15339 msgstr "B<bsd>"
15340
15341 #. type: textblock
15342 #: ../fish/guestfish-actions.pod:3886 ../src/guestfs-actions.pod:6053
15343 msgid "BSD disk labels."
15344 msgstr "Мітки дисків BSD."
15345
15346 #. type: =item
15347 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:6055
15348 msgid "B<dasd>"
15349 msgstr "B<dasd>"
15350
15351 #. type: textblock
15352 #: ../fish/guestfish-actions.pod:3890 ../src/guestfs-actions.pod:6057
15353 msgid "DASD, used on IBM mainframes."
15354 msgstr "DASD, використовувалися у мейнфреймах IBM."
15355
15356 #. type: =item
15357 #: ../fish/guestfish-actions.pod:3892 ../src/guestfs-actions.pod:6059
15358 msgid "B<dvh>"
15359 msgstr "B<dvh>"
15360
15361 #. type: textblock
15362 #: ../fish/guestfish-actions.pod:3894 ../src/guestfs-actions.pod:6061
15363 msgid "MIPS/SGI volumes."
15364 msgstr "Томи MIPS/SGI."
15365
15366 #. type: =item
15367 #: ../fish/guestfish-actions.pod:3896 ../src/guestfs-actions.pod:6063
15368 msgid "B<mac>"
15369 msgstr "B<mac>"
15370
15371 #. type: textblock
15372 #: ../fish/guestfish-actions.pod:3898 ../src/guestfs-actions.pod:6065
15373 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
15374 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
15375
15376 #. type: =item
15377 #: ../fish/guestfish-actions.pod:3900 ../src/guestfs-actions.pod:6067
15378 msgid "B<pc98>"
15379 msgstr "B<pc98>"
15380
15381 #. type: textblock
15382 #: ../fish/guestfish-actions.pod:3902 ../src/guestfs-actions.pod:6069
15383 msgid "NEC PC-98 format, common in Japan apparently."
15384 msgstr "Формат NEC PC-98, поширений у Японії."
15385
15386 #. type: =item
15387 #: ../fish/guestfish-actions.pod:3904 ../src/guestfs-actions.pod:6071
15388 msgid "B<sun>"
15389 msgstr "B<sun>"
15390
15391 #. type: textblock
15392 #: ../fish/guestfish-actions.pod:3906 ../src/guestfs-actions.pod:6073
15393 msgid "Sun disk labels."
15394 msgstr "Мітки дисків Sun."
15395
15396 #. type: =head2
15397 #: ../fish/guestfish-actions.pod:3910
15398 msgid "part-list"
15399 msgstr "part-list"
15400
15401 #. type: verbatim
15402 #: ../fish/guestfish-actions.pod:3912
15403 #, no-wrap
15404 msgid ""
15405 " part-list device\n"
15406 "\n"
15407 msgstr ""
15408 " part-list device\n"
15409 "\n"
15410
15411 #. type: textblock
15412 #: ../fish/guestfish-actions.pod:3914 ../src/guestfs-actions.pod:6087
15413 msgid ""
15414 "This command parses the partition table on C<device> and returns the list of "
15415 "partitions found."
15416 msgstr ""
15417
15418 #. type: textblock
15419 #: ../fish/guestfish-actions.pod:3917 ../src/guestfs-actions.pod:6090
15420 msgid "The fields in the returned structure are:"
15421 msgstr ""
15422
15423 #. type: =item
15424 #: ../fish/guestfish-actions.pod:3921 ../src/guestfs-actions.pod:6094
15425 msgid "B<part_num>"
15426 msgstr "B<part_num>"
15427
15428 #. type: textblock
15429 #: ../fish/guestfish-actions.pod:3923 ../src/guestfs-actions.pod:6096
15430 msgid "Partition number, counting from 1."
15431 msgstr ""
15432
15433 #. type: =item
15434 #: ../fish/guestfish-actions.pod:3925 ../src/guestfs-actions.pod:6098
15435 msgid "B<part_start>"
15436 msgstr "B<part_start>"
15437
15438 #. type: textblock
15439 #: ../fish/guestfish-actions.pod:3927
15440 msgid ""
15441 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
15442 "the device's sector size, see L</blockdev-getss>."
15443 msgstr ""
15444
15445 #. type: =item
15446 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6103
15447 msgid "B<part_end>"
15448 msgstr "B<part_end>"
15449
15450 #. type: textblock
15451 #: ../fish/guestfish-actions.pod:3932 ../src/guestfs-actions.pod:6105
15452 msgid "End of the partition in bytes."
15453 msgstr ""
15454
15455 #. type: =item
15456 #: ../fish/guestfish-actions.pod:3934 ../src/guestfs-actions.pod:6107
15457 msgid "B<part_size>"
15458 msgstr "B<part_size>"
15459
15460 #. type: textblock
15461 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:6109
15462 msgid "Size of the partition in bytes."
15463 msgstr ""
15464
15465 #. type: =head2
15466 #: ../fish/guestfish-actions.pod:3940
15467 msgid "part-set-bootable"
15468 msgstr "part-set-bootable"
15469
15470 #. type: verbatim
15471 #: ../fish/guestfish-actions.pod:3942
15472 #, no-wrap
15473 msgid ""
15474 " part-set-bootable device partnum true|false\n"
15475 "\n"
15476 msgstr ""
15477
15478 #. type: textblock
15479 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6127
15480 msgid ""
15481 "This sets the bootable flag on partition numbered C<partnum> on device "
15482 "C<device>.  Note that partitions are numbered from 1."
15483 msgstr ""
15484
15485 #. type: textblock
15486 #: ../fish/guestfish-actions.pod:3947 ../src/guestfs-actions.pod:6130
15487 msgid ""
15488 "The bootable flag is used by some operating systems (notably Windows) to "
15489 "determine which partition to boot from.  It is by no means universally "
15490 "recognized."
15491 msgstr ""
15492
15493 #. type: =head2
15494 #: ../fish/guestfish-actions.pod:3951
15495 msgid "part-set-mbr-id"
15496 msgstr "part-set-mbr-id"
15497
15498 #. type: verbatim
15499 #: ../fish/guestfish-actions.pod:3953
15500 #, no-wrap
15501 msgid ""
15502 " part-set-mbr-id device partnum idbyte\n"
15503 "\n"
15504 msgstr ""
15505
15506 #. type: textblock
15507 #: ../fish/guestfish-actions.pod:3955 ../src/guestfs-actions.pod:6146
15508 msgid ""
15509 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
15510 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
15511 "documentation are in fact hexadecimal numbers, but usually documented "
15512 "without any leading \"0x\" which might be confusing."
15513 msgstr ""
15514
15515 #. type: =head2
15516 #: ../fish/guestfish-actions.pod:3965
15517 msgid "part-set-name"
15518 msgstr "part-set-name"
15519
15520 #. type: verbatim
15521 #: ../fish/guestfish-actions.pod:3967
15522 #, no-wrap
15523 msgid ""
15524 " part-set-name device partnum name\n"
15525 "\n"
15526 msgstr ""
15527
15528 #. type: textblock
15529 #: ../fish/guestfish-actions.pod:3969 ../src/guestfs-actions.pod:6168
15530 msgid ""
15531 "This sets the partition name on partition numbered C<partnum> on device "
15532 "C<device>.  Note that partitions are numbered from 1."
15533 msgstr ""
15534
15535 #. type: textblock
15536 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:6171
15537 msgid ""
15538 "The partition name can only be set on certain types of partition table.  "
15539 "This works on C<gpt> but not on C<mbr> partitions."
15540 msgstr ""
15541
15542 #. type: =head2
15543 #: ../fish/guestfish-actions.pod:3975
15544 msgid "part-to-dev"
15545 msgstr "part-to-dev"
15546
15547 #. type: verbatim
15548 #: ../fish/guestfish-actions.pod:3977
15549 #, no-wrap
15550 msgid ""
15551 " part-to-dev partition\n"
15552 "\n"
15553 msgstr ""
15554 " part-to-dev розділ\n"
15555 "\n"
15556
15557 #. type: textblock
15558 #: ../fish/guestfish-actions.pod:3979 ../src/guestfs-actions.pod:6184
15559 msgid ""
15560 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
15561 "partition number, returning the device name (eg. \"/dev/sdb\")."
15562 msgstr ""
15563
15564 #. type: textblock
15565 #: ../fish/guestfish-actions.pod:3983 ../fish/guestfish-actions.pod:3995
15566 msgid ""
15567 "The named partition must exist, for example as a string returned from L</"
15568 "list-partitions>."
15569 msgstr ""
15570
15571 #. type: textblock
15572 #: ../fish/guestfish-actions.pod:3986
15573 msgid "See also L</part-to-partnum>."
15574 msgstr ""
15575
15576 #. type: =head2
15577 #: ../fish/guestfish-actions.pod:3988
15578 msgid "part-to-partnum"
15579 msgstr ""
15580
15581 #. type: verbatim
15582 #: ../fish/guestfish-actions.pod:3990
15583 #, no-wrap
15584 msgid ""
15585 " part-to-partnum partition\n"
15586 "\n"
15587 msgstr ""
15588
15589 #. type: textblock
15590 #: ../fish/guestfish-actions.pod:3992 ../src/guestfs-actions.pod:6204
15591 msgid ""
15592 "This function takes a partition name (eg. \"/dev/sdb1\") and returns the "
15593 "partition number (eg. C<1>)."
15594 msgstr ""
15595
15596 #. type: textblock
15597 #: ../fish/guestfish-actions.pod:3998
15598 msgid "See also L</part-to-dev>."
15599 msgstr ""
15600
15601 #. type: =head2
15602 #: ../fish/guestfish-actions.pod:4000
15603 msgid "ping-daemon"
15604 msgstr "ping-daemon"
15605
15606 #. type: verbatim
15607 #: ../fish/guestfish-actions.pod:4002
15608 #, no-wrap
15609 msgid ""
15610 " ping-daemon\n"
15611 "\n"
15612 msgstr ""
15613 " ping-daemon\n"
15614 "\n"
15615
15616 #. type: textblock
15617 #: ../fish/guestfish-actions.pod:4004 ../src/guestfs-actions.pod:6221
15618 msgid ""
15619 "This is a test probe into the guestfs daemon running inside the qemu "
15620 "subprocess.  Calling this function checks that the daemon responds to the "
15621 "ping message, without affecting the daemon or attached block device(s) in "
15622 "any other way."
15623 msgstr ""
15624
15625 #. type: =head2
15626 #: ../fish/guestfish-actions.pod:4009
15627 msgid "pread"
15628 msgstr "pread"
15629
15630 #. type: verbatim
15631 #: ../fish/guestfish-actions.pod:4011
15632 #, no-wrap
15633 msgid ""
15634 " pread path count offset\n"
15635 "\n"
15636 msgstr ""
15637
15638 #. type: textblock
15639 #: ../fish/guestfish-actions.pod:4013 ../src/guestfs-actions.pod:6239
15640 msgid ""
15641 "This command lets you read part of a file.  It reads C<count> bytes of the "
15642 "file, starting at C<offset>, from file C<path>."
15643 msgstr ""
15644
15645 #. type: textblock
15646 #: ../fish/guestfish-actions.pod:4016 ../fish/guestfish-actions.pod:4031
15647 #: ../src/guestfs-actions.pod:6242 ../src/guestfs-actions.pod:6268
15648 msgid ""
15649 "This may read fewer bytes than requested.  For further details see the "
15650 "L<pread(2)> system call."
15651 msgstr ""
15652
15653 #. type: textblock
15654 #: ../fish/guestfish-actions.pod:4019
15655 msgid "See also L</pwrite>, L</pread-device>."
15656 msgstr "Див. також L</pwrite>, L</pread-device>."
15657
15658 #. type: =head2
15659 #: ../fish/guestfish-actions.pod:4024
15660 msgid "pread-device"
15661 msgstr "pread-device"
15662
15663 #. type: verbatim
15664 #: ../fish/guestfish-actions.pod:4026
15665 #, no-wrap
15666 msgid ""
15667 " pread-device device count offset\n"
15668 "\n"
15669 msgstr ""
15670
15671 #. type: textblock
15672 #: ../fish/guestfish-actions.pod:4028 ../src/guestfs-actions.pod:6265
15673 msgid ""
15674 "This command lets you read part of a file.  It reads C<count> bytes of "
15675 "C<device>, starting at C<offset>."
15676 msgstr ""
15677
15678 #. type: textblock
15679 #: ../fish/guestfish-actions.pod:4034
15680 msgid "See also L</pread>."
15681 msgstr "Див. також L</pread>."
15682
15683 #. type: =head2
15684 #: ../fish/guestfish-actions.pod:4039
15685 msgid "pvcreate"
15686 msgstr "pvcreate"
15687
15688 #. type: verbatim
15689 #: ../fish/guestfish-actions.pod:4041
15690 #, no-wrap
15691 msgid ""
15692 " pvcreate device\n"
15693 "\n"
15694 msgstr ""
15695 " pvcreate пристрій\n"
15696 "\n"
15697
15698 #. type: textblock
15699 #: ../fish/guestfish-actions.pod:4043 ../src/guestfs-actions.pod:6288
15700 msgid ""
15701 "This creates an LVM physical volume on the named C<device>, where C<device> "
15702 "should usually be a partition name such as C</dev/sda1>."
15703 msgstr ""
15704
15705 #. type: =head2
15706 #: ../fish/guestfish-actions.pod:4047
15707 msgid "pvremove"
15708 msgstr "pvremove"
15709
15710 #. type: verbatim
15711 #: ../fish/guestfish-actions.pod:4049
15712 #, no-wrap
15713 msgid ""
15714 " pvremove device\n"
15715 "\n"
15716 msgstr ""
15717 " pvremove пристрій\n"
15718 "\n"
15719
15720 #. type: textblock
15721 #: ../fish/guestfish-actions.pod:4051 ../src/guestfs-actions.pod:6302
15722 msgid ""
15723 "This wipes a physical volume C<device> so that LVM will no longer recognise "
15724 "it."
15725 msgstr ""
15726
15727 #. type: textblock
15728 #: ../fish/guestfish-actions.pod:4054 ../src/guestfs-actions.pod:6305
15729 msgid ""
15730 "The implementation uses the C<pvremove> command which refuses to wipe "
15731 "physical volumes that contain any volume groups, so you have to remove those "
15732 "first."
15733 msgstr ""
15734
15735 #. type: =head2
15736 #: ../fish/guestfish-actions.pod:4058
15737 msgid "pvresize"
15738 msgstr "pvresize"
15739
15740 #. type: verbatim
15741 #: ../fish/guestfish-actions.pod:4060
15742 #, no-wrap
15743 msgid ""
15744 " pvresize device\n"
15745 "\n"
15746 msgstr ""
15747 " pvresize пристрій\n"
15748 "\n"
15749
15750 #. type: textblock
15751 #: ../fish/guestfish-actions.pod:4062 ../src/guestfs-actions.pod:6319
15752 msgid ""
15753 "This resizes (expands or shrinks) an existing LVM physical volume to match "
15754 "the new size of the underlying device."
15755 msgstr ""
15756
15757 #. type: =head2
15758 #: ../fish/guestfish-actions.pod:4065
15759 msgid "pvresize-size"
15760 msgstr "pvresize-size"
15761
15762 #. type: verbatim
15763 #: ../fish/guestfish-actions.pod:4067
15764 #, no-wrap
15765 msgid ""
15766 " pvresize-size device size\n"
15767 "\n"
15768 msgstr ""
15769
15770 #. type: textblock
15771 #: ../fish/guestfish-actions.pod:4069
15772 msgid ""
15773 "This command is the same as L</pvresize> except that it allows you to "
15774 "specify the new size (in bytes) explicitly."
15775 msgstr ""
15776
15777 #. type: =head2
15778 #: ../fish/guestfish-actions.pod:4072
15779 msgid "pvs"
15780 msgstr "pvs"
15781
15782 #. type: verbatim
15783 #: ../fish/guestfish-actions.pod:4074
15784 #, no-wrap
15785 msgid ""
15786 " pvs\n"
15787 "\n"
15788 msgstr ""
15789 " pvs\n"
15790 "\n"
15791
15792 #. type: textblock
15793 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6345
15794 msgid ""
15795 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15796 "(8)> command."
15797 msgstr ""
15798
15799 #. type: textblock
15800 #: ../fish/guestfish-actions.pod:4079 ../src/guestfs-actions.pod:6348
15801 msgid ""
15802 "This returns a list of just the device names that contain PVs (eg. C</dev/"
15803 "sda2>)."
15804 msgstr ""
15805
15806 #. type: textblock
15807 #: ../fish/guestfish-actions.pod:4082
15808 msgid "See also L</pvs-full>."
15809 msgstr "Див. також L</pvs-full>."
15810
15811 #. type: =head2
15812 #: ../fish/guestfish-actions.pod:4084
15813 msgid "pvs-full"
15814 msgstr "pvs-full"
15815
15816 #. type: verbatim
15817 #: ../fish/guestfish-actions.pod:4086
15818 #, no-wrap
15819 msgid ""
15820 " pvs-full\n"
15821 "\n"
15822 msgstr ""
15823 " pvs-full\n"
15824 "\n"
15825
15826 #. type: textblock
15827 #: ../fish/guestfish-actions.pod:4088 ../src/guestfs-actions.pod:6364
15828 msgid ""
15829 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
15830 "(8)> command.  The \"full\" version includes all fields."
15831 msgstr ""
15832
15833 #. type: =head2
15834 #: ../fish/guestfish-actions.pod:4091
15835 msgid "pvuuid"
15836 msgstr "pvuuid"
15837
15838 #. type: verbatim
15839 #: ../fish/guestfish-actions.pod:4093
15840 #, no-wrap
15841 msgid ""
15842 " pvuuid device\n"
15843 "\n"
15844 msgstr ""
15845 " pvuuid пристрій\n"
15846 "\n"
15847
15848 #. type: textblock
15849 #: ../fish/guestfish-actions.pod:4095 ../src/guestfs-actions.pod:6379
15850 msgid "This command returns the UUID of the LVM PV C<device>."
15851 msgstr ""
15852
15853 #. type: =head2
15854 #: ../fish/guestfish-actions.pod:4097
15855 msgid "pwrite"
15856 msgstr "pwrite"
15857
15858 #. type: verbatim
15859 #: ../fish/guestfish-actions.pod:4099
15860 #, no-wrap
15861 msgid ""
15862 " pwrite path content offset\n"
15863 "\n"
15864 msgstr ""
15865
15866 #. type: textblock
15867 #: ../fish/guestfish-actions.pod:4101 ../src/guestfs-actions.pod:6395
15868 msgid ""
15869 "This command writes to part of a file.  It writes the data buffer C<content> "
15870 "to the file C<path> starting at offset C<offset>."
15871 msgstr ""
15872
15873 #. type: textblock
15874 #: ../fish/guestfish-actions.pod:4104 ../src/guestfs-actions.pod:6398
15875 msgid ""
15876 "This command implements the L<pwrite(2)> system call, and like that system "
15877 "call it may not write the full data requested.  The return value is the "
15878 "number of bytes that were actually written to the file.  This could even be "
15879 "0, although short writes are unlikely for regular files in ordinary "
15880 "circumstances."
15881 msgstr ""
15882
15883 #. type: textblock
15884 #: ../fish/guestfish-actions.pod:4110
15885 msgid "See also L</pread>, L</pwrite-device>."
15886 msgstr "Див. також L</pread>, L</pwrite-device>."
15887
15888 #. type: =head2
15889 #: ../fish/guestfish-actions.pod:4115
15890 msgid "pwrite-device"
15891 msgstr "pwrite-device"
15892
15893 #. type: verbatim
15894 #: ../fish/guestfish-actions.pod:4117
15895 #, no-wrap
15896 msgid ""
15897 " pwrite-device device content offset\n"
15898 "\n"
15899 msgstr ""
15900
15901 #. type: textblock
15902 #: ../fish/guestfish-actions.pod:4119 ../src/guestfs-actions.pod:6422
15903 msgid ""
15904 "This command writes to part of a device.  It writes the data buffer "
15905 "C<content> to C<device> starting at offset C<offset>."
15906 msgstr ""
15907
15908 #. type: textblock
15909 #: ../fish/guestfish-actions.pod:4122 ../src/guestfs-actions.pod:6425
15910 msgid ""
15911 "This command implements the L<pwrite(2)> system call, and like that system "
15912 "call it may not write the full data requested (although short writes to disk "
15913 "devices and partitions are probably impossible with standard Linux kernels)."
15914 msgstr ""
15915
15916 #. type: textblock
15917 #: ../fish/guestfish-actions.pod:4127
15918 msgid "See also L</pwrite>."
15919 msgstr "Див. також L</pwrite>."
15920
15921 #. type: =head2
15922 #: ../fish/guestfish-actions.pod:4132
15923 msgid "read-file"
15924 msgstr "read-file"
15925
15926 #. type: verbatim
15927 #: ../fish/guestfish-actions.pod:4134
15928 #, no-wrap
15929 msgid ""
15930 " read-file path\n"
15931 "\n"
15932 msgstr ""
15933 " read-file шлях\n"
15934 "\n"
15935
15936 #. type: textblock
15937 #: ../fish/guestfish-actions.pod:4136 ../src/guestfs-actions.pod:6446
15938 msgid "This calls returns the contents of the file C<path> as a buffer."
15939 msgstr ""
15940
15941 #. type: textblock
15942 #: ../fish/guestfish-actions.pod:4139
15943 msgid ""
15944 "Unlike L</cat>, this function can correctly handle files that contain "
15945 "embedded ASCII NUL characters.  However unlike L</download>, this function "
15946 "is limited in the total size of file that can be handled."
15947 msgstr ""
15948
15949 #. type: =head2
15950 #: ../fish/guestfish-actions.pod:4147
15951 msgid "read-lines"
15952 msgstr "read-lines"
15953
15954 #. type: verbatim
15955 #: ../fish/guestfish-actions.pod:4149
15956 #, no-wrap
15957 msgid ""
15958 " read-lines path\n"
15959 "\n"
15960 msgstr ""
15961 " read-lines шлях\n"
15962 "\n"
15963
15964 #. type: textblock
15965 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6471
15966 msgid ""
15967 "The file contents are returned as a list of lines.  Trailing C<LF> and "
15968 "C<CRLF> character sequences are I<not> returned."
15969 msgstr ""
15970
15971 #. type: textblock
15972 #: ../fish/guestfish-actions.pod:4156
15973 msgid ""
15974 "Note that this function cannot correctly handle binary files (specifically, "
15975 "files containing C<\\0> character which is treated as end of line).  For "
15976 "those you need to use the L</read-file> function which has a more complex "
15977 "interface."
15978 msgstr ""
15979
15980 #. type: =head2
15981 #: ../fish/guestfish-actions.pod:4161
15982 msgid "readdir"
15983 msgstr "readdir"
15984
15985 #. type: verbatim
15986 #: ../fish/guestfish-actions.pod:4163
15987 #, no-wrap
15988 msgid ""
15989 " readdir dir\n"
15990 "\n"
15991 msgstr ""
15992 " readdir каталог\n"
15993 "\n"
15994
15995 #. type: textblock
15996 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6491
15997 msgid "This returns the list of directory entries in directory C<dir>."
15998 msgstr ""
15999
16000 #. type: textblock
16001 #: ../fish/guestfish-actions.pod:4167 ../src/guestfs-actions.pod:6493
16002 msgid ""
16003 "All entries in the directory are returned, including C<.> and C<..>.  The "
16004 "entries are I<not> sorted, but returned in the same order as the underlying "
16005 "filesystem."
16006 msgstr ""
16007
16008 #. type: textblock
16009 #: ../fish/guestfish-actions.pod:4171 ../src/guestfs-actions.pod:6497
16010 msgid ""
16011 "Also this call returns basic file type information about each file.  The "
16012 "C<ftyp> field will contain one of the following characters:"
16013 msgstr ""
16014
16015 #. type: =item
16016 #: ../fish/guestfish-actions.pod:4176 ../src/guestfs-actions.pod:6502
16017 msgid "'b'"
16018 msgstr "'b'"
16019
16020 #. type: textblock
16021 #: ../fish/guestfish-actions.pod:4178 ../src/guestfs-actions.pod:6504
16022 msgid "Block special"
16023 msgstr "Блоковий особливий"
16024
16025 #. type: =item
16026 #: ../fish/guestfish-actions.pod:4180 ../src/guestfs-actions.pod:6506
16027 msgid "'c'"
16028 msgstr "'c'"
16029
16030 #. type: textblock
16031 #: ../fish/guestfish-actions.pod:4182 ../src/guestfs-actions.pod:6508
16032 msgid "Char special"
16033 msgstr "Символьний особливий"
16034
16035 #. type: =item
16036 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6510
16037 msgid "'d'"
16038 msgstr "'d'"
16039
16040 #. type: textblock
16041 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6512
16042 msgid "Directory"
16043 msgstr "Каталог"
16044
16045 #. type: =item
16046 #: ../fish/guestfish-actions.pod:4188 ../src/guestfs-actions.pod:6514
16047 msgid "'f'"
16048 msgstr "'f'"
16049
16050 #. type: textblock
16051 #: ../fish/guestfish-actions.pod:4190 ../src/guestfs-actions.pod:6516
16052 msgid "FIFO (named pipe)"
16053 msgstr "FIFO (іменований канал)"
16054
16055 #. type: =item
16056 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6518
16057 msgid "'l'"
16058 msgstr "'l'"
16059
16060 #. type: textblock
16061 #: ../fish/guestfish-actions.pod:4194 ../src/guestfs-actions.pod:6520
16062 msgid "Symbolic link"
16063 msgstr "Символічне посилання"
16064
16065 #. type: =item
16066 #: ../fish/guestfish-actions.pod:4196 ../src/guestfs-actions.pod:6522
16067 msgid "'r'"
16068 msgstr "'r'"
16069
16070 #. type: textblock
16071 #: ../fish/guestfish-actions.pod:4198 ../src/guestfs-actions.pod:6524
16072 msgid "Regular file"
16073 msgstr "Звичайний файл"
16074
16075 #. type: =item
16076 #: ../fish/guestfish-actions.pod:4200 ../src/guestfs-actions.pod:6526
16077 msgid "'s'"
16078 msgstr "'s'"
16079
16080 #. type: textblock
16081 #: ../fish/guestfish-actions.pod:4202 ../src/guestfs-actions.pod:6528
16082 msgid "Socket"
16083 msgstr "Сокет"
16084
16085 #. type: =item
16086 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6530
16087 msgid "'u'"
16088 msgstr "'u'"
16089
16090 #. type: textblock
16091 #: ../fish/guestfish-actions.pod:4206 ../src/guestfs-actions.pod:6532
16092 msgid "Unknown file type"
16093 msgstr "Невідомий тип файла"
16094
16095 #. type: =item
16096 #: ../fish/guestfish-actions.pod:4208 ../src/guestfs-actions.pod:6534
16097 msgid "'?'"
16098 msgstr ""
16099
16100 #. type: textblock
16101 #: ../fish/guestfish-actions.pod:4210 ../src/guestfs-actions.pod:6536
16102 msgid ""
16103 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
16104 msgstr ""
16105
16106 #. type: textblock
16107 #: ../fish/guestfish-actions.pod:4215
16108 msgid ""
16109 "This function is primarily intended for use by programs.  To get a simple "
16110 "list of names, use L</ls>.  To get a printable directory for human "
16111 "consumption, use L</ll>."
16112 msgstr ""
16113
16114 #. type: =head2
16115 #: ../fish/guestfish-actions.pod:4219
16116 msgid "readlink"
16117 msgstr "readlink"
16118
16119 #. type: verbatim
16120 #: ../fish/guestfish-actions.pod:4221
16121 #, no-wrap
16122 msgid ""
16123 " readlink path\n"
16124 "\n"
16125 msgstr ""
16126 " readlink шлях\n"
16127 "\n"
16128
16129 #. type: textblock
16130 #: ../fish/guestfish-actions.pod:4223 ../src/guestfs-actions.pod:6557
16131 msgid "This command reads the target of a symbolic link."
16132 msgstr ""
16133
16134 #. type: =head2
16135 #: ../fish/guestfish-actions.pod:4225
16136 msgid "readlinklist"
16137 msgstr "readlinklist"
16138
16139 #. type: verbatim
16140 #: ../fish/guestfish-actions.pod:4227
16141 #, no-wrap
16142 msgid ""
16143 " readlinklist path 'names ...'\n"
16144 "\n"
16145 msgstr ""
16146
16147 #. type: textblock
16148 #: ../fish/guestfish-actions.pod:4229 ../src/guestfs-actions.pod:6571
16149 msgid ""
16150 "This call allows you to do a C<readlink> operation on multiple files, where "
16151 "all files are in the directory C<path>.  C<names> is the list of files from "
16152 "this directory."
16153 msgstr ""
16154
16155 #. type: textblock
16156 #: ../fish/guestfish-actions.pod:4233 ../src/guestfs-actions.pod:6575
16157 msgid ""
16158 "On return you get a list of strings, with a one-to-one correspondence to the "
16159 "C<names> list.  Each string is the value of the symbolic link."
16160 msgstr ""
16161
16162 #. type: textblock
16163 #: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6579
16164 msgid ""
16165 "If the C<readlink(2)> operation fails on any name, then the corresponding "
16166 "result string is the empty string C<\"\">.  However the whole operation is "
16167 "completed even if there were C<readlink(2)> errors, and so you can call this "
16168 "function with names where you don't know if they are symbolic links already "
16169 "(albeit slightly less efficient)."
16170 msgstr ""
16171
16172 #. type: textblock
16173 #: ../fish/guestfish-actions.pod:4244 ../src/guestfs-actions.pod:6586
16174 msgid ""
16175 "This call is intended for programs that want to efficiently list a directory "
16176 "contents without making many round-trips.  Very long directory listings "
16177 "might cause the protocol message size to be exceeded, causing this call to "
16178 "fail.  The caller must split up such requests into smaller groups of names."
16179 msgstr ""
16180
16181 #. type: =head2
16182 #: ../fish/guestfish-actions.pod:4251
16183 msgid "realpath"
16184 msgstr "realpath"
16185
16186 #. type: verbatim
16187 #: ../fish/guestfish-actions.pod:4253
16188 #, no-wrap
16189 msgid ""
16190 " realpath path\n"
16191 "\n"
16192 msgstr ""
16193 " realpath шлях\n"
16194 "\n"
16195
16196 #. type: textblock
16197 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6605
16198 msgid ""
16199 "Return the canonicalized absolute pathname of C<path>.  The returned path "
16200 "has no C<.>, C<..> or symbolic link path elements."
16201 msgstr ""
16202
16203 #. type: =head2
16204 #: ../fish/guestfish-actions.pod:4258
16205 msgid "removexattr"
16206 msgstr "removexattr"
16207
16208 #. type: verbatim
16209 #: ../fish/guestfish-actions.pod:4260
16210 #, no-wrap
16211 msgid ""
16212 " removexattr xattr path\n"
16213 "\n"
16214 msgstr ""
16215
16216 #. type: textblock
16217 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6620
16218 msgid ""
16219 "This call removes the extended attribute named C<xattr> of the file C<path>."
16220 msgstr ""
16221
16222 #. type: textblock
16223 #: ../fish/guestfish-actions.pod:4265
16224 msgid "See also: L</lremovexattr>, L<attr(5)>."
16225 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
16226
16227 #. type: =head2
16228 #: ../fish/guestfish-actions.pod:4267
16229 msgid "resize2fs"
16230 msgstr "resize2fs"
16231
16232 #. type: verbatim
16233 #: ../fish/guestfish-actions.pod:4269
16234 #, no-wrap
16235 msgid ""
16236 " resize2fs device\n"
16237 "\n"
16238 msgstr ""
16239 " resize2fs пристрій\n"
16240 "\n"
16241
16242 #. type: textblock
16243 #: ../fish/guestfish-actions.pod:4271 ../src/guestfs-actions.pod:6635
16244 msgid ""
16245 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
16246 "underlying device."
16247 msgstr ""
16248
16249 #. type: textblock
16250 #: ../fish/guestfish-actions.pod:4274
16251 msgid ""
16252 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
16253 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
16254 "gives an error about this and sometimes not.  In any case, it is always safe "
16255 "to call L</e2fsck-f> before calling this function."
16256 msgstr ""
16257
16258 #. type: =head2
16259 #: ../fish/guestfish-actions.pod:4280
16260 msgid "resize2fs-M"
16261 msgstr "resize2fs-M"
16262
16263 #. type: verbatim
16264 #: ../fish/guestfish-actions.pod:4282
16265 #, no-wrap
16266 msgid ""
16267 " resize2fs-M device\n"
16268 "\n"
16269 msgstr ""
16270 " resize2fs-M пристрій\n"
16271 "\n"
16272
16273 #. type: textblock
16274 #: ../fish/guestfish-actions.pod:4284
16275 msgid ""
16276 "This command is the same as L</resize2fs>, but the filesystem is resized to "
16277 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
16278 "command."
16279 msgstr ""
16280
16281 #. type: textblock
16282 #: ../fish/guestfish-actions.pod:4288
16283 msgid ""
16284 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
16285 "and read the C<Block size> and C<Block count> values.  These two numbers, "
16286 "multiplied together, give the resulting size of the minimal filesystem in "
16287 "bytes."
16288 msgstr ""
16289
16290 #. type: =head2
16291 #: ../fish/guestfish-actions.pod:4293
16292 msgid "resize2fs-size"
16293 msgstr "resize2fs-size"
16294
16295 #. type: verbatim
16296 #: ../fish/guestfish-actions.pod:4295
16297 #, no-wrap
16298 msgid ""
16299 " resize2fs-size device size\n"
16300 "\n"
16301 msgstr ""
16302
16303 #. type: textblock
16304 #: ../fish/guestfish-actions.pod:4297
16305 msgid ""
16306 "This command is the same as L</resize2fs> except that it allows you to "
16307 "specify the new size (in bytes) explicitly."
16308 msgstr ""
16309
16310 #. type: =head2
16311 #: ../fish/guestfish-actions.pod:4300
16312 msgid "rm"
16313 msgstr "rm"
16314
16315 #. type: verbatim
16316 #: ../fish/guestfish-actions.pod:4302
16317 #, no-wrap
16318 msgid ""
16319 " rm path\n"
16320 "\n"
16321 msgstr ""
16322 " rm шлях\n"
16323 "\n"
16324
16325 #. type: textblock
16326 #: ../fish/guestfish-actions.pod:4304 ../src/guestfs-actions.pod:6687
16327 msgid "Remove the single file C<path>."
16328 msgstr ""
16329
16330 #. type: =head2
16331 #: ../fish/guestfish-actions.pod:4306
16332 msgid "rm-rf"
16333 msgstr "rm-rf"
16334
16335 #. type: verbatim
16336 #: ../fish/guestfish-actions.pod:4308
16337 #, no-wrap
16338 msgid ""
16339 " rm-rf path\n"
16340 "\n"
16341 msgstr ""
16342 " rm-rf шлях\n"
16343 "\n"
16344
16345 #. type: textblock
16346 #: ../fish/guestfish-actions.pod:4310 ../src/guestfs-actions.pod:6699
16347 msgid ""
16348 "Remove the file or directory C<path>, recursively removing the contents if "
16349 "its a directory.  This is like the C<rm -rf> shell command."
16350 msgstr ""
16351
16352 #. type: =head2
16353 #: ../fish/guestfish-actions.pod:4314
16354 msgid "rmdir"
16355 msgstr "rmdir"
16356
16357 #. type: verbatim
16358 #: ../fish/guestfish-actions.pod:4316
16359 #, no-wrap
16360 msgid ""
16361 " rmdir path\n"
16362 "\n"
16363 msgstr ""
16364 " rmdir шлях\n"
16365 "\n"
16366
16367 #. type: textblock
16368 #: ../fish/guestfish-actions.pod:4318 ../src/guestfs-actions.pod:6713
16369 msgid "Remove the single directory C<path>."
16370 msgstr ""
16371
16372 #. type: =head2
16373 #: ../fish/guestfish-actions.pod:4320
16374 msgid "rmmountpoint"
16375 msgstr "rmmountpoint"
16376
16377 #. type: verbatim
16378 #: ../fish/guestfish-actions.pod:4322
16379 #, no-wrap
16380 msgid ""
16381 " rmmountpoint exemptpath\n"
16382 "\n"
16383 msgstr ""
16384
16385 #. type: textblock
16386 #: ../fish/guestfish-actions.pod:4324
16387 msgid ""
16388 "This calls removes a mountpoint that was previously created with L</"
16389 "mkmountpoint>.  See L</mkmountpoint> for full details."
16390 msgstr ""
16391
16392 #. type: =head2
16393 #: ../fish/guestfish-actions.pod:4328
16394 msgid "scrub-device"
16395 msgstr "scrub-device"
16396
16397 #. type: verbatim
16398 #: ../fish/guestfish-actions.pod:4330
16399 #, no-wrap
16400 msgid ""
16401 " scrub-device device\n"
16402 "\n"
16403 msgstr ""
16404 " scrub-device пристрій\n"
16405 "\n"
16406
16407 #. type: textblock
16408 #: ../fish/guestfish-actions.pod:4332 ../src/guestfs-actions.pod:6739
16409 msgid ""
16410 "This command writes patterns over C<device> to make data retrieval more "
16411 "difficult."
16412 msgstr ""
16413
16414 #. type: textblock
16415 #: ../fish/guestfish-actions.pod:4335 ../fish/guestfish-actions.pod:4347
16416 #: ../fish/guestfish-actions.pod:4360 ../src/guestfs-actions.pod:6742
16417 #: ../src/guestfs-actions.pod:6760 ../src/guestfs-actions.pod:6779
16418 msgid ""
16419 "It is an interface to the L<scrub(1)> program.  See that manual page for "
16420 "more details."
16421 msgstr ""
16422
16423 #. type: =head2
16424 #: ../fish/guestfish-actions.pod:4338
16425 msgid "scrub-file"
16426 msgstr "scrub-file"
16427
16428 #. type: verbatim
16429 #: ../fish/guestfish-actions.pod:4340
16430 #, no-wrap
16431 msgid ""
16432 " scrub-file file\n"
16433 "\n"
16434 msgstr ""
16435 " scrub-file файл\n"
16436 "\n"
16437
16438 #. type: textblock
16439 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6755
16440 msgid ""
16441 "This command writes patterns over a file to make data retrieval more "
16442 "difficult."
16443 msgstr ""
16444
16445 #. type: textblock
16446 #: ../fish/guestfish-actions.pod:4345 ../src/guestfs-actions.pod:6758
16447 msgid "The file is I<removed> after scrubbing."
16448 msgstr ""
16449
16450 #. type: =head2
16451 #: ../fish/guestfish-actions.pod:4350
16452 msgid "scrub-freespace"
16453 msgstr "scrub-freespace"
16454
16455 #. type: verbatim
16456 #: ../fish/guestfish-actions.pod:4352
16457 #, no-wrap
16458 msgid ""
16459 " scrub-freespace dir\n"
16460 "\n"
16461 msgstr ""
16462 " scrub-freespace каталог\n"
16463 "\n"
16464
16465 #. type: textblock
16466 #: ../fish/guestfish-actions.pod:4354
16467 msgid ""
16468 "This command creates the directory C<dir> and then fills it with files until "
16469 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
16470 "deletes them.  The intention is to scrub any free space on the partition "
16471 "containing C<dir>."
16472 msgstr ""
16473
16474 #. type: =head2
16475 #: ../fish/guestfish-actions.pod:4363
16476 msgid "set-append"
16477 msgstr "set-append"
16478
16479 #. type: =head2
16480 #: ../fish/guestfish-actions.pod:4365
16481 msgid "append"
16482 msgstr ""
16483
16484 #. type: verbatim
16485 #: ../fish/guestfish-actions.pod:4367
16486 #, no-wrap
16487 msgid ""
16488 " set-append append\n"
16489 "\n"
16490 msgstr ""
16491
16492 #. type: textblock
16493 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6792
16494 msgid ""
16495 "This function is used to add additional options to the guest kernel command "
16496 "line."
16497 msgstr ""
16498
16499 #. type: textblock
16500 #: ../fish/guestfish-actions.pod:4372 ../src/guestfs-actions.pod:6795
16501 msgid ""
16502 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
16503 "environment variable."
16504 msgstr ""
16505
16506 #. type: textblock
16507 #: ../fish/guestfish-actions.pod:4375 ../src/guestfs-actions.pod:6798
16508 msgid ""
16509 "Setting C<append> to C<NULL> means I<no> additional options are passed "
16510 "(libguestfs always adds a few of its own)."
16511 msgstr ""
16512
16513 #. type: =head2
16514 #: ../fish/guestfish-actions.pod:4378
16515 msgid "set-attach-method"
16516 msgstr "set-attach-method"
16517
16518 #. type: =head2
16519 #: ../fish/guestfish-actions.pod:4380
16520 msgid "attach-method"
16521 msgstr ""
16522
16523 #. type: verbatim
16524 #: ../fish/guestfish-actions.pod:4382
16525 #, no-wrap
16526 msgid ""
16527 " set-attach-method attachmethod\n"
16528 "\n"
16529 msgstr ""
16530
16531 #. type: textblock
16532 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6811
16533 msgid ""
16534 "Set the method that libguestfs uses to connect to the back end guestfsd "
16535 "daemon.  Possible methods are:"
16536 msgstr ""
16537
16538 #. type: =item
16539 #: ../fish/guestfish-actions.pod:4389 ../src/guestfs-actions.pod:6816
16540 #: ../src/guestfs.pod:2916
16541 msgid "C<appliance>"
16542 msgstr "C<appliance>"
16543
16544 #. type: textblock
16545 #: ../fish/guestfish-actions.pod:4391 ../src/guestfs-actions.pod:6818
16546 msgid ""
16547 "Launch an appliance and connect to it.  This is the ordinary method and the "
16548 "default."
16549 msgstr ""
16550
16551 #. type: =item
16552 #: ../fish/guestfish-actions.pod:4394 ../src/guestfs-actions.pod:6821
16553 msgid "C<unix:I<path>>"
16554 msgstr "C<unix:I<шлях>>"
16555
16556 #. type: textblock
16557 #: ../fish/guestfish-actions.pod:4396 ../src/guestfs-actions.pod:6823
16558 msgid "Connect to the Unix domain socket I<path>."
16559 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
16560
16561 #. type: textblock
16562 #: ../fish/guestfish-actions.pod:4398 ../src/guestfs-actions.pod:6825
16563 msgid ""
16564 "This method lets you connect to an existing daemon or (using virtio-serial) "
16565 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
16566 "RUNNING DAEMONS>."
16567 msgstr ""
16568
16569 #. type: =head2
16570 #: ../fish/guestfish-actions.pod:4404
16571 msgid "set-autosync"
16572 msgstr "set-autosync"
16573
16574 #. type: =head2
16575 #: ../fish/guestfish-actions.pod:4406
16576 msgid "autosync"
16577 msgstr "autosync"
16578
16579 #. type: verbatim
16580 #: ../fish/guestfish-actions.pod:4408
16581 #, no-wrap
16582 msgid ""
16583 " set-autosync true|false\n"
16584 "\n"
16585 msgstr ""
16586 " set-autosync true|false\n"
16587 "\n"
16588
16589 #. type: textblock
16590 #: ../fish/guestfish-actions.pod:4410 ../src/guestfs-actions.pod:6841
16591 msgid ""
16592 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
16593 "effort attempt to make filesystems consistent and synchronized when the "
16594 "handle is closed (also if the program exits without closing handles)."
16595 msgstr ""
16596
16597 #. type: textblock
16598 #: ../fish/guestfish-actions.pod:4415 ../src/guestfs-actions.pod:6846
16599 msgid ""
16600 "This is enabled by default (since libguestfs 1.5.24, previously it was "
16601 "disabled by default)."
16602 msgstr ""
16603
16604 #. type: =head2
16605 #: ../fish/guestfish-actions.pod:4418
16606 msgid "set-direct"
16607 msgstr "set-direct"
16608
16609 #. type: =head2
16610 #: ../fish/guestfish-actions.pod:4420
16611 msgid "direct"
16612 msgstr "direct"
16613
16614 #. type: verbatim
16615 #: ../fish/guestfish-actions.pod:4422
16616 #, no-wrap
16617 msgid ""
16618 " set-direct true|false\n"
16619 "\n"
16620 msgstr ""
16621 " set-direct true|false\n"
16622 "\n"
16623
16624 #. type: textblock
16625 #: ../fish/guestfish-actions.pod:4424 ../src/guestfs-actions.pod:6859
16626 msgid ""
16627 "If the direct appliance mode flag is enabled, then stdin and stdout are "
16628 "passed directly through to the appliance once it is launched."
16629 msgstr ""
16630
16631 #. type: textblock
16632 #: ../fish/guestfish-actions.pod:4428
16633 msgid ""
16634 "One consequence of this is that log messages aren't caught by the library "
16635 "and handled by L</set-log-message-callback>, but go straight to stdout."
16636 msgstr ""
16637
16638 #. type: textblock
16639 #: ../fish/guestfish-actions.pod:4432 ../src/guestfs-actions.pod:6867
16640 msgid "You probably don't want to use this unless you know what you are doing."
16641 msgstr ""
16642
16643 #. type: textblock
16644 #: ../fish/guestfish-actions.pod:4435 ../src/guestfs-actions.pod:6870
16645 msgid "The default is disabled."
16646 msgstr ""
16647
16648 #. type: =head2
16649 #: ../fish/guestfish-actions.pod:4437
16650 msgid "set-e2label"
16651 msgstr "set-e2label"
16652
16653 #. type: verbatim
16654 #: ../fish/guestfish-actions.pod:4439
16655 #, no-wrap
16656 msgid ""
16657 " set-e2label device label\n"
16658 "\n"
16659 msgstr ""
16660
16661 #. type: textblock
16662 #: ../fish/guestfish-actions.pod:4441 ../src/guestfs-actions.pod:6883
16663 msgid ""
16664 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
16665 "C<label>.  Filesystem labels are limited to 16 characters."
16666 msgstr ""
16667
16668 #. type: textblock
16669 #: ../fish/guestfish-actions.pod:4445
16670 msgid ""
16671 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
16672 "label on a filesystem."
16673 msgstr ""
16674
16675 #. type: =head2
16676 #: ../fish/guestfish-actions.pod:4448
16677 msgid "set-e2uuid"
16678 msgstr "set-e2uuid"
16679
16680 #. type: verbatim
16681 #: ../fish/guestfish-actions.pod:4450
16682 #, no-wrap
16683 msgid ""
16684 " set-e2uuid device uuid\n"
16685 "\n"
16686 msgstr ""
16687
16688 #. type: textblock
16689 #: ../fish/guestfish-actions.pod:4452 ../src/guestfs-actions.pod:6901
16690 msgid ""
16691 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
16692 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
16693 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
16694 msgstr ""
16695
16696 #. type: textblock
16697 #: ../fish/guestfish-actions.pod:4457
16698 msgid ""
16699 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
16700 "UUID of a filesystem."
16701 msgstr ""
16702
16703 #. type: =head2
16704 #: ../fish/guestfish-actions.pod:4460
16705 msgid "set-memsize"
16706 msgstr "set-memsize"
16707
16708 #. type: =head2
16709 #: ../fish/guestfish-actions.pod:4462
16710 msgid "memsize"
16711 msgstr ""
16712
16713 #. type: verbatim
16714 #: ../fish/guestfish-actions.pod:4464
16715 #, no-wrap
16716 msgid ""
16717 " set-memsize memsize\n"
16718 "\n"
16719 msgstr ""
16720
16721 #. type: textblock
16722 #: ../fish/guestfish-actions.pod:4466
16723 msgid ""
16724 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
16725 "This only has any effect if called before L</launch>."
16726 msgstr ""
16727
16728 #. type: textblock
16729 #: ../fish/guestfish-actions.pod:4470 ../src/guestfs-actions.pod:6923
16730 msgid ""
16731 "You can also change this by setting the environment variable "
16732 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
16733 msgstr ""
16734
16735 #. type: =head2
16736 #: ../fish/guestfish-actions.pod:4477
16737 msgid "set-network"
16738 msgstr "set-network"
16739
16740 #. type: =head2
16741 #: ../fish/guestfish-actions.pod:4479
16742 msgid "network"
16743 msgstr "network"
16744
16745 #. type: verbatim
16746 #: ../fish/guestfish-actions.pod:4481
16747 #, no-wrap
16748 msgid ""
16749 " set-network true|false\n"
16750 "\n"
16751 msgstr ""
16752 " set-network true|false\n"
16753 "\n"
16754
16755 #. type: textblock
16756 #: ../fish/guestfish-actions.pod:4483 ../src/guestfs-actions.pod:6940
16757 msgid ""
16758 "If C<network> is true, then the network is enabled in the libguestfs "
16759 "appliance.  The default is false."
16760 msgstr ""
16761
16762 #. type: textblock
16763 #: ../fish/guestfish-actions.pod:4486 ../src/guestfs-actions.pod:6943
16764 msgid ""
16765 "This affects whether commands are able to access the network (see L<guestfs"
16766 "(3)/RUNNING COMMANDS>)."
16767 msgstr ""
16768
16769 #. type: textblock
16770 #: ../fish/guestfish-actions.pod:4489
16771 msgid ""
16772 "You must call this before calling L</launch>, otherwise it has no effect."
16773 msgstr ""
16774
16775 #. type: =head2
16776 #: ../fish/guestfish-actions.pod:4492
16777 msgid "set-path"
16778 msgstr "set-path"
16779
16780 #. type: verbatim
16781 #: ../fish/guestfish-actions.pod:4496
16782 #, no-wrap
16783 msgid ""
16784 " set-path searchpath\n"
16785 "\n"
16786 msgstr ""
16787
16788 #. type: textblock
16789 #: ../fish/guestfish-actions.pod:4498 ../src/guestfs-actions.pod:6959
16790 msgid "Set the path that libguestfs searches for kernel and initrd.img."
16791 msgstr ""
16792
16793 #. type: textblock
16794 #: ../fish/guestfish-actions.pod:4500 ../src/guestfs-actions.pod:6961
16795 msgid ""
16796 "The default is C<$libdir/guestfs> unless overridden by setting "
16797 "C<LIBGUESTFS_PATH> environment variable."
16798 msgstr ""
16799
16800 #. type: textblock
16801 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6964
16802 msgid "Setting C<path> to C<NULL> restores the default path."
16803 msgstr ""
16804
16805 #. type: =head2
16806 #: ../fish/guestfish-actions.pod:4505
16807 msgid "set-pgroup"
16808 msgstr ""
16809
16810 #. type: =head2
16811 #: ../fish/guestfish-actions.pod:4507
16812 msgid "pgroup"
16813 msgstr ""
16814
16815 #. type: verbatim
16816 #: ../fish/guestfish-actions.pod:4509
16817 #, no-wrap
16818 msgid ""
16819 " set-pgroup true|false\n"
16820 "\n"
16821 msgstr ""
16822
16823 #. type: textblock
16824 #: ../fish/guestfish-actions.pod:4511 ../src/guestfs-actions.pod:6976
16825 msgid ""
16826 "If C<pgroup> is true, child processes are placed into their own process "
16827 "group."
16828 msgstr ""
16829
16830 #. type: textblock
16831 #: ../fish/guestfish-actions.pod:4514 ../src/guestfs-actions.pod:6979
16832 msgid ""
16833 "The practical upshot of this is that signals like C<SIGINT> (from users "
16834 "pressing C<^C>) won't be received by the child process."
16835 msgstr ""
16836
16837 #. type: textblock
16838 #: ../fish/guestfish-actions.pod:4517 ../src/guestfs-actions.pod:6982
16839 msgid ""
16840 "The default for this flag is false, because usually you want C<^C> to kill "
16841 "the subprocess."
16842 msgstr ""
16843
16844 #. type: =head2
16845 #: ../fish/guestfish-actions.pod:4520
16846 msgid "set-qemu"
16847 msgstr "set-qemu"
16848
16849 #. type: =head2
16850 #: ../fish/guestfish-actions.pod:4522
16851 msgid "qemu"
16852 msgstr "qemu"
16853
16854 #. type: verbatim
16855 #: ../fish/guestfish-actions.pod:4524
16856 #, no-wrap
16857 msgid ""
16858 " set-qemu qemu\n"
16859 "\n"
16860 msgstr ""
16861 " set-qemu qemu\n"
16862 "\n"
16863
16864 #. type: textblock
16865 #: ../fish/guestfish-actions.pod:4526 ../src/guestfs-actions.pod:6995
16866 msgid "Set the qemu binary that we will use."
16867 msgstr ""
16868
16869 #. type: textblock
16870 #: ../fish/guestfish-actions.pod:4528 ../src/guestfs-actions.pod:6997
16871 msgid ""
16872 "The default is chosen when the library was compiled by the configure script."
16873 msgstr ""
16874
16875 #. type: textblock
16876 #: ../fish/guestfish-actions.pod:4531 ../src/guestfs-actions.pod:7000
16877 msgid ""
16878 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
16879 "variable."
16880 msgstr ""
16881
16882 #. type: textblock
16883 #: ../fish/guestfish-actions.pod:4534 ../src/guestfs-actions.pod:7003
16884 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
16885 msgstr ""
16886
16887 #. type: textblock
16888 #: ../fish/guestfish-actions.pod:4536 ../src/guestfs-actions.pod:7005
16889 msgid ""
16890 "Note that you should call this function as early as possible after creating "
16891 "the handle.  This is because some pre-launch operations depend on testing "
16892 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
16893 "don't retest features, and so you might see inconsistent results.  Using the "
16894 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
16895 "the qemu binary at the same time as the handle is created."
16896 msgstr ""
16897
16898 #. type: =head2
16899 #: ../fish/guestfish-actions.pod:4544
16900 msgid "set-recovery-proc"
16901 msgstr "set-recovery-proc"
16902
16903 #. type: =head2
16904 #: ../fish/guestfish-actions.pod:4546
16905 msgid "recovery-proc"
16906 msgstr "recovery-proc"
16907
16908 #. type: verbatim
16909 #: ../fish/guestfish-actions.pod:4548
16910 #, no-wrap
16911 msgid ""
16912 " set-recovery-proc true|false\n"
16913 "\n"
16914 msgstr ""
16915 " set-recovery-proc true|false\n"
16916 "\n"
16917
16918 #. type: textblock
16919 #: ../fish/guestfish-actions.pod:4550
16920 msgid ""
16921 "If this is called with the parameter C<false> then L</launch> does not "
16922 "create a recovery process.  The purpose of the recovery process is to stop "
16923 "runaway qemu processes in the case where the main program aborts abruptly."
16924 msgstr ""
16925
16926 #. type: textblock
16927 #: ../fish/guestfish-actions.pod:4555
16928 msgid ""
16929 "This only has any effect if called before L</launch>, and the default is "
16930 "true."
16931 msgstr ""
16932
16933 #. type: textblock
16934 #: ../fish/guestfish-actions.pod:4558 ../src/guestfs-actions.pod:7031
16935 msgid ""
16936 "About the only time when you would want to disable this is if the main "
16937 "process will fork itself into the background (\"daemonize\" itself).  In "
16938 "this case the recovery process thinks that the main program has disappeared "
16939 "and so kills qemu, which is not very helpful."
16940 msgstr ""
16941
16942 #. type: =head2
16943 #: ../fish/guestfish-actions.pod:4564
16944 msgid "set-selinux"
16945 msgstr "set-selinux"
16946
16947 #. type: =head2
16948 #: ../fish/guestfish-actions.pod:4566
16949 msgid "selinux"
16950 msgstr "selinux"
16951
16952 #. type: verbatim
16953 #: ../fish/guestfish-actions.pod:4568
16954 #, no-wrap
16955 msgid ""
16956 " set-selinux true|false\n"
16957 "\n"
16958 msgstr ""
16959 " set-selinux true|false\n"
16960 "\n"
16961
16962 #. type: textblock
16963 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:7047
16964 msgid ""
16965 "This sets the selinux flag that is passed to the appliance at boot time.  "
16966 "The default is C<selinux=0> (disabled)."
16967 msgstr ""
16968
16969 #. type: textblock
16970 #: ../fish/guestfish-actions.pod:4573 ../src/guestfs-actions.pod:7050
16971 msgid ""
16972 "Note that if SELinux is enabled, it is always in Permissive mode "
16973 "(C<enforcing=0>)."
16974 msgstr ""
16975
16976 #. type: =head2
16977 #: ../fish/guestfish-actions.pod:4579
16978 msgid "set-smp"
16979 msgstr ""
16980
16981 #. type: =head2
16982 #: ../fish/guestfish-actions.pod:4581
16983 msgid "smp"
16984 msgstr ""
16985
16986 #. type: verbatim
16987 #: ../fish/guestfish-actions.pod:4583
16988 #, no-wrap
16989 msgid ""
16990 " set-smp smp\n"
16991 "\n"
16992 msgstr ""
16993
16994 #. type: textblock
16995 #: ../fish/guestfish-actions.pod:4585 ../src/guestfs-actions.pod:7066
16996 msgid ""
16997 "Change the number of virtual CPUs assigned to the appliance.  The default is "
16998 "C<1>.  Increasing this may improve performance, though often it has no "
16999 "effect."
17000 msgstr ""
17001
17002 #. type: textblock
17003 #: ../fish/guestfish-actions.pod:4589
17004 msgid "This function must be called before L</launch>."
17005 msgstr ""
17006
17007 #. type: =head2
17008 #: ../fish/guestfish-actions.pod:4591
17009 msgid "set-trace"
17010 msgstr "set-trace"
17011
17012 #. type: =head2
17013 #: ../fish/guestfish-actions.pod:4593
17014 msgid "trace"
17015 msgstr "trace"
17016
17017 #. type: verbatim
17018 #: ../fish/guestfish-actions.pod:4595
17019 #, no-wrap
17020 msgid ""
17021 " set-trace true|false\n"
17022 "\n"
17023 msgstr ""
17024 " set-trace true|false\n"
17025 "\n"
17026
17027 #. type: textblock
17028 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:7082
17029 msgid ""
17030 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
17031 "return values are traced."
17032 msgstr ""
17033
17034 #. type: textblock
17035 #: ../fish/guestfish-actions.pod:4600 ../src/guestfs-actions.pod:7085
17036 msgid ""
17037 "If you want to trace C API calls into libguestfs (and other libraries) then "
17038 "possibly a better way is to use the external ltrace(1) command."
17039 msgstr ""
17040
17041 #. type: textblock
17042 #: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:7089
17043 msgid ""
17044 "Command traces are disabled unless the environment variable "
17045 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
17046 msgstr ""
17047
17048 #. type: textblock
17049 #: ../fish/guestfish-actions.pod:4607
17050 msgid ""
17051 "Trace messages are normally sent to C<stderr>, unless you register a "
17052 "callback to send them somewhere else (see L</set-event-callback>)."
17053 msgstr ""
17054
17055 #. type: =head2
17056 #: ../fish/guestfish-actions.pod:4611
17057 msgid "set-verbose"
17058 msgstr "set-verbose"
17059
17060 #. type: =head2
17061 #: ../fish/guestfish-actions.pod:4613
17062 msgid "verbose"
17063 msgstr "verbose"
17064
17065 #. type: verbatim
17066 #: ../fish/guestfish-actions.pod:4615
17067 #, no-wrap
17068 msgid ""
17069 " set-verbose true|false\n"
17070 "\n"
17071 msgstr ""
17072 " set-verbose true|false\n"
17073 "\n"
17074
17075 #. type: textblock
17076 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:7106
17077 msgid "If C<verbose> is true, this turns on verbose messages."
17078 msgstr ""
17079
17080 #. type: textblock
17081 #: ../fish/guestfish-actions.pod:4619 ../src/guestfs-actions.pod:7108
17082 msgid ""
17083 "Verbose messages are disabled unless the environment variable "
17084 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
17085 msgstr ""
17086
17087 #. type: textblock
17088 #: ../fish/guestfish-actions.pod:4622
17089 msgid ""
17090 "Verbose messages are normally sent to C<stderr>, unless you register a "
17091 "callback to send them somewhere else (see L</set-event-callback>)."
17092 msgstr ""
17093
17094 #. type: =head2
17095 #: ../fish/guestfish-actions.pod:4626
17096 msgid "setcon"
17097 msgstr "setcon"
17098
17099 #. type: verbatim
17100 #: ../fish/guestfish-actions.pod:4628
17101 #, no-wrap
17102 msgid ""
17103 " setcon context\n"
17104 "\n"
17105 msgstr ""
17106 " setcon контекст\n"
17107 "\n"
17108
17109 #. type: textblock
17110 #: ../fish/guestfish-actions.pod:4630 ../src/guestfs-actions.pod:7125
17111 msgid ""
17112 "This sets the SELinux security context of the daemon to the string "
17113 "C<context>."
17114 msgstr ""
17115
17116 #. type: textblock
17117 #: ../fish/guestfish-actions.pod:4633 ../src/guestfs-actions.pod:7128
17118 msgid "See the documentation about SELINUX in L<guestfs(3)>."
17119 msgstr ""
17120
17121 #. type: =head2
17122 #: ../fish/guestfish-actions.pod:4635
17123 msgid "setxattr"
17124 msgstr "setxattr"
17125
17126 #. type: verbatim
17127 #: ../fish/guestfish-actions.pod:4637
17128 #, no-wrap
17129 msgid ""
17130 " setxattr xattr val vallen path\n"
17131 "\n"
17132 msgstr ""
17133
17134 #. type: textblock
17135 #: ../fish/guestfish-actions.pod:4639 ../src/guestfs-actions.pod:7143
17136 msgid ""
17137 "This call sets the extended attribute named C<xattr> of the file C<path> to "
17138 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
17139 msgstr ""
17140
17141 #. type: textblock
17142 #: ../fish/guestfish-actions.pod:4643
17143 msgid "See also: L</lsetxattr>, L<attr(5)>."
17144 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
17145
17146 #. type: =head2
17147 #: ../fish/guestfish-actions.pod:4645
17148 msgid "sfdisk"
17149 msgstr "sfdisk"
17150
17151 #. type: verbatim
17152 #: ../fish/guestfish-actions.pod:4647
17153 #, no-wrap
17154 msgid ""
17155 " sfdisk device cyls heads sectors 'lines ...'\n"
17156 "\n"
17157 msgstr ""
17158
17159 #. type: textblock
17160 #: ../fish/guestfish-actions.pod:4649 ../src/guestfs-actions.pod:7170
17161 msgid ""
17162 "This is a direct interface to the L<sfdisk(8)> program for creating "
17163 "partitions on block devices."
17164 msgstr ""
17165
17166 #. type: textblock
17167 #: ../fish/guestfish-actions.pod:4652 ../src/guestfs-actions.pod:7173
17168 msgid "C<device> should be a block device, for example C</dev/sda>."
17169 msgstr ""
17170
17171 #. type: textblock
17172 #: ../fish/guestfish-actions.pod:4654 ../src/guestfs-actions.pod:7175
17173 msgid ""
17174 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
17175 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
17176 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
17177 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
17178 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
17179 "the kernel) cannot work out the right geometry and you will need to tell it."
17180 msgstr ""
17181
17182 #. type: textblock
17183 #: ../fish/guestfish-actions.pod:4662 ../src/guestfs-actions.pod:7183
17184 msgid ""
17185 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
17186 "refer to the L<sfdisk(8)> manpage."
17187 msgstr ""
17188
17189 #. type: textblock
17190 #: ../fish/guestfish-actions.pod:4665 ../src/guestfs-actions.pod:7186
17191 msgid ""
17192 "To create a single partition occupying the whole disk, you would pass "
17193 "C<lines> as a single element list, when the single element being the string "
17194 "C<,> (comma)."
17195 msgstr ""
17196
17197 #. type: textblock
17198 #: ../fish/guestfish-actions.pod:4669
17199 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
17200 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
17201
17202 #. type: textblock
17203 #: ../fish/guestfish-actions.pod:4672 ../fish/guestfish-actions.pod:4692
17204 #: ../fish/guestfish-actions.pod:4711
17205 msgid ""
17206 "I<This function is deprecated.> In new code, use the L</part_add> call "
17207 "instead."
17208 msgstr ""
17209
17210 #. type: =head2
17211 #: ../fish/guestfish-actions.pod:4679
17212 msgid "sfdiskM"
17213 msgstr "sfdiskM"
17214
17215 #. type: verbatim
17216 #: ../fish/guestfish-actions.pod:4681
17217 #, no-wrap
17218 msgid ""
17219 " sfdiskM device 'lines ...'\n"
17220 "\n"
17221 msgstr ""
17222
17223 #. type: textblock
17224 #: ../fish/guestfish-actions.pod:4683
17225 msgid ""
17226 "This is a simplified interface to the L</sfdisk> command, where partition "
17227 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
17228 "you don't need to specify the cyls, heads and sectors parameters which were "
17229 "rarely if ever used anyway."
17230 msgstr ""
17231
17232 #. type: textblock
17233 #: ../fish/guestfish-actions.pod:4689
17234 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
17235 msgstr ""
17236 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
17237
17238 #. type: =head2
17239 #: ../fish/guestfish-actions.pod:4699
17240 msgid "sfdisk-N"
17241 msgstr "sfdisk-N"
17242
17243 #. type: verbatim
17244 #: ../fish/guestfish-actions.pod:4701
17245 #, no-wrap
17246 msgid ""
17247 " sfdisk-N device partnum cyls heads sectors line\n"
17248 "\n"
17249 msgstr ""
17250
17251 #. type: textblock
17252 #: ../fish/guestfish-actions.pod:4703 ../src/guestfs-actions.pod:7242
17253 msgid ""
17254 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
17255 "(note: C<n> counts from 1)."
17256 msgstr ""
17257
17258 #. type: textblock
17259 #: ../fish/guestfish-actions.pod:4706
17260 msgid ""
17261 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
17262 "cyls/heads/sectors parameters."
17263 msgstr ""
17264
17265 #. type: textblock
17266 #: ../fish/guestfish-actions.pod:4709
17267 msgid "See also: L</part-add>"
17268 msgstr "Див. також L</part-add>"
17269
17270 #. type: =head2
17271 #: ../fish/guestfish-actions.pod:4718
17272 msgid "sfdisk-disk-geometry"
17273 msgstr "sfdisk-disk-geometry"
17274
17275 #. type: verbatim
17276 #: ../fish/guestfish-actions.pod:4720
17277 #, no-wrap
17278 msgid ""
17279 " sfdisk-disk-geometry device\n"
17280 "\n"
17281 msgstr ""
17282 " sfdisk-disk-geometry пристрій\n"
17283 "\n"
17284
17285 #. type: textblock
17286 #: ../fish/guestfish-actions.pod:4722
17287 msgid ""
17288 "This displays the disk geometry of C<device> read from the partition table.  "
17289 "Especially in the case where the underlying block device has been resized, "
17290 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
17291 "kernel-geometry>)."
17292 msgstr ""
17293
17294 #. type: textblock
17295 #: ../fish/guestfish-actions.pod:4727 ../fish/guestfish-actions.pod:4736
17296 #: ../src/guestfs-actions.pod:7265 ../src/guestfs-actions.pod:7281
17297 msgid "The result is in human-readable format, and not designed to be parsed."
17298 msgstr ""
17299
17300 #. type: =head2
17301 #: ../fish/guestfish-actions.pod:4730
17302 msgid "sfdisk-kernel-geometry"
17303 msgstr "sfdisk-kernel-geometry"
17304
17305 #. type: verbatim
17306 #: ../fish/guestfish-actions.pod:4732
17307 #, no-wrap
17308 msgid ""
17309 " sfdisk-kernel-geometry device\n"
17310 "\n"
17311 msgstr ""
17312 " sfdisk-kernel-geometry пристрій\n"
17313 "\n"
17314
17315 #. type: textblock
17316 #: ../fish/guestfish-actions.pod:4734 ../src/guestfs-actions.pod:7279
17317 msgid "This displays the kernel's idea of the geometry of C<device>."
17318 msgstr ""
17319
17320 #. type: =head2
17321 #: ../fish/guestfish-actions.pod:4739
17322 msgid "sfdisk-l"
17323 msgstr "sfdisk-l"
17324
17325 #. type: verbatim
17326 #: ../fish/guestfish-actions.pod:4741
17327 #, no-wrap
17328 msgid ""
17329 " sfdisk-l device\n"
17330 "\n"
17331 msgstr ""
17332 " sfdisk-l пристрій\n"
17333 "\n"
17334
17335 #. type: textblock
17336 #: ../fish/guestfish-actions.pod:4743 ../src/guestfs-actions.pod:7302
17337 msgid ""
17338 "This displays the partition table on C<device>, in the human-readable output "
17339 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
17340 msgstr ""
17341
17342 #. type: textblock
17343 #: ../fish/guestfish-actions.pod:4747
17344 msgid "See also: L</part-list>"
17345 msgstr "Див. також L</part-list>"
17346
17347 #. type: textblock
17348 #: ../fish/guestfish-actions.pod:4749
17349 msgid ""
17350 "I<This function is deprecated.> In new code, use the L</part_list> call "
17351 "instead."
17352 msgstr ""
17353
17354 #. type: =head2
17355 #: ../fish/guestfish-actions.pod:4756
17356 msgid "sh"
17357 msgstr "sh"
17358
17359 #. type: verbatim
17360 #: ../fish/guestfish-actions.pod:4758
17361 #, no-wrap
17362 msgid ""
17363 " sh command\n"
17364 "\n"
17365 msgstr ""
17366 " sh команда\n"
17367 "\n"
17368
17369 #. type: textblock
17370 #: ../fish/guestfish-actions.pod:4760 ../src/guestfs-actions.pod:7319
17371 msgid ""
17372 "This call runs a command from the guest filesystem via the guest's C</bin/"
17373 "sh>."
17374 msgstr ""
17375
17376 #. type: textblock
17377 #: ../fish/guestfish-actions.pod:4763
17378 msgid "This is like L</command>, but passes the command to:"
17379 msgstr ""
17380
17381 #. type: verbatim
17382 #: ../fish/guestfish-actions.pod:4765 ../src/guestfs-actions.pod:7324
17383 #, no-wrap
17384 msgid ""
17385 " /bin/sh -c \"command\"\n"
17386 "\n"
17387 msgstr ""
17388
17389 #. type: textblock
17390 #: ../fish/guestfish-actions.pod:4767 ../src/guestfs-actions.pod:7326
17391 msgid ""
17392 "Depending on the guest's shell, this usually results in wildcards being "
17393 "expanded, shell expressions being interpolated and so on."
17394 msgstr ""
17395
17396 #. type: textblock
17397 #: ../fish/guestfish-actions.pod:4771
17398 msgid "All the provisos about L</command> apply to this call."
17399 msgstr ""
17400
17401 #. type: =head2
17402 #: ../fish/guestfish-actions.pod:4773
17403 msgid "sh-lines"
17404 msgstr "sh-lines"
17405
17406 #. type: verbatim
17407 #: ../fish/guestfish-actions.pod:4775
17408 #, no-wrap
17409 msgid ""
17410 " sh-lines command\n"
17411 "\n"
17412 msgstr ""
17413 " sh-lines команда\n"
17414 "\n"
17415
17416 #. type: textblock
17417 #: ../fish/guestfish-actions.pod:4777
17418 msgid "This is the same as L</sh>, but splits the result into a list of lines."
17419 msgstr ""
17420
17421 #. type: textblock
17422 #: ../fish/guestfish-actions.pod:4780
17423 msgid "See also: L</command-lines>"
17424 msgstr "Див. також L</command-lines>"
17425
17426 #. type: =head2
17427 #: ../fish/guestfish-actions.pod:4782
17428 msgid "sleep"
17429 msgstr "sleep"
17430
17431 #. type: verbatim
17432 #: ../fish/guestfish-actions.pod:4784
17433 #, no-wrap
17434 msgid ""
17435 " sleep secs\n"
17436 "\n"
17437 msgstr ""
17438 " sleep час_у_секундах\n"
17439 "\n"
17440
17441 #. type: textblock
17442 #: ../fish/guestfish-actions.pod:4786 ../src/guestfs-actions.pod:7360
17443 msgid "Sleep for C<secs> seconds."
17444 msgstr ""
17445
17446 #. type: =head2
17447 #: ../fish/guestfish-actions.pod:4788
17448 msgid "stat"
17449 msgstr "stat"
17450
17451 #. type: verbatim
17452 #: ../fish/guestfish-actions.pod:4790
17453 #, no-wrap
17454 msgid ""
17455 " stat path\n"
17456 "\n"
17457 msgstr ""
17458 " stat шлях\n"
17459 "\n"
17460
17461 #. type: textblock
17462 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7374
17463 msgid "This is the same as the C<stat(2)> system call."
17464 msgstr ""
17465
17466 #. type: =head2
17467 #: ../fish/guestfish-actions.pod:4796
17468 msgid "statvfs"
17469 msgstr "statvfs"
17470
17471 #. type: verbatim
17472 #: ../fish/guestfish-actions.pod:4798
17473 #, no-wrap
17474 msgid ""
17475 " statvfs path\n"
17476 "\n"
17477 msgstr ""
17478 " statvfs шлях\n"
17479 "\n"
17480
17481 #. type: textblock
17482 #: ../fish/guestfish-actions.pod:4800 ../src/guestfs-actions.pod:7388
17483 msgid ""
17484 "Returns file system statistics for any mounted file system.  C<path> should "
17485 "be a file or directory in the mounted file system (typically it is the mount "
17486 "point itself, but it doesn't need to be)."
17487 msgstr ""
17488
17489 #. type: textblock
17490 #: ../fish/guestfish-actions.pod:4804 ../src/guestfs-actions.pod:7392
17491 msgid "This is the same as the C<statvfs(2)> system call."
17492 msgstr ""
17493
17494 #. type: =head2
17495 #: ../fish/guestfish-actions.pod:4806
17496 msgid "strings"
17497 msgstr "strings"
17498
17499 #. type: verbatim
17500 #: ../fish/guestfish-actions.pod:4808
17501 #, no-wrap
17502 msgid ""
17503 " strings path\n"
17504 "\n"
17505 msgstr ""
17506 " strings шлях\n"
17507 "\n"
17508
17509 #. type: textblock
17510 #: ../fish/guestfish-actions.pod:4810 ../src/guestfs-actions.pod:7406
17511 msgid ""
17512 "This runs the L<strings(1)> command on a file and returns the list of "
17513 "printable strings found."
17514 msgstr ""
17515
17516 #. type: =head2
17517 #: ../fish/guestfish-actions.pod:4816
17518 msgid "strings-e"
17519 msgstr "strings-e"
17520
17521 #. type: verbatim
17522 #: ../fish/guestfish-actions.pod:4818
17523 #, no-wrap
17524 msgid ""
17525 " strings-e encoding path\n"
17526 "\n"
17527 msgstr ""
17528 " strings-e кодування шлях\n"
17529 "\n"
17530
17531 #. type: textblock
17532 #: ../fish/guestfish-actions.pod:4820
17533 msgid ""
17534 "This is like the L</strings> command, but allows you to specify the encoding "
17535 "of strings that are looked for in the source file C<path>."
17536 msgstr ""
17537
17538 #. type: textblock
17539 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7429
17540 msgid "Allowed encodings are:"
17541 msgstr "Можливими кодуваннями є:"
17542
17543 #. type: =item
17544 #: ../fish/guestfish-actions.pod:4828 ../src/guestfs-actions.pod:7433
17545 msgid "s"
17546 msgstr "s"
17547
17548 #. type: textblock
17549 #: ../fish/guestfish-actions.pod:4830
17550 msgid ""
17551 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
17552 "ISO-8859-X (this is what L</strings> uses)."
17553 msgstr ""
17554
17555 #. type: =item
17556 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7438
17557 msgid "S"
17558 msgstr "S"
17559
17560 #. type: textblock
17561 #: ../fish/guestfish-actions.pod:4835 ../src/guestfs-actions.pod:7440
17562 msgid "Single 8-bit-byte characters."
17563 msgstr "Окремі 8-бітові-байтові символи."
17564
17565 #. type: =item
17566 #: ../fish/guestfish-actions.pod:4837 ../src/guestfs-actions.pod:7442
17567 msgid "b"
17568 msgstr "b"
17569
17570 #. type: textblock
17571 #: ../fish/guestfish-actions.pod:4839 ../src/guestfs-actions.pod:7444
17572 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
17573 msgstr ""
17574
17575 #. type: =item
17576 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7447
17577 msgid "l (lower case letter L)"
17578 msgstr ""
17579
17580 #. type: textblock
17581 #: ../fish/guestfish-actions.pod:4844 ../src/guestfs-actions.pod:7449
17582 msgid ""
17583 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
17584 "examining binaries in Windows guests."
17585 msgstr ""
17586
17587 #. type: =item
17588 #: ../fish/guestfish-actions.pod:4847 ../src/guestfs-actions.pod:7452
17589 msgid "B"
17590 msgstr "B"
17591
17592 #. type: textblock
17593 #: ../fish/guestfish-actions.pod:4849 ../src/guestfs-actions.pod:7454
17594 msgid "32-bit big endian such as UCS-4BE."
17595 msgstr ""
17596
17597 #. type: =item
17598 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7456
17599 msgid "L"
17600 msgstr "L"
17601
17602 #. type: textblock
17603 #: ../fish/guestfish-actions.pod:4853 ../src/guestfs-actions.pod:7458
17604 msgid "32-bit little endian such as UCS-4LE."
17605 msgstr ""
17606
17607 #. type: textblock
17608 #: ../fish/guestfish-actions.pod:4857 ../src/guestfs-actions.pod:7462
17609 msgid "The returned strings are transcoded to UTF-8."
17610 msgstr ""
17611
17612 #. type: =head2
17613 #: ../fish/guestfish-actions.pod:4862
17614 msgid "swapoff-device"
17615 msgstr "swapoff-device"
17616
17617 #. type: verbatim
17618 #: ../fish/guestfish-actions.pod:4864
17619 #, no-wrap
17620 msgid ""
17621 " swapoff-device device\n"
17622 "\n"
17623 msgstr ""
17624 " swapoff-device пристрій\n"
17625 "\n"
17626
17627 #. type: textblock
17628 #: ../fish/guestfish-actions.pod:4866
17629 msgid ""
17630 "This command disables the libguestfs appliance swap device or partition "
17631 "named C<device>.  See L</swapon-device>."
17632 msgstr ""
17633
17634 #. type: =head2
17635 #: ../fish/guestfish-actions.pod:4870
17636 msgid "swapoff-file"
17637 msgstr "swapoff-file"
17638
17639 #. type: verbatim
17640 #: ../fish/guestfish-actions.pod:4872
17641 #, no-wrap
17642 msgid ""
17643 " swapoff-file file\n"
17644 "\n"
17645 msgstr ""
17646 " swapoff-file файл\n"
17647 "\n"
17648
17649 #. type: textblock
17650 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7493
17651 msgid "This command disables the libguestfs appliance swap on file."
17652 msgstr ""
17653
17654 #. type: =head2
17655 #: ../fish/guestfish-actions.pod:4876
17656 msgid "swapoff-label"
17657 msgstr "swapoff-label"
17658
17659 #. type: verbatim
17660 #: ../fish/guestfish-actions.pod:4878
17661 #, no-wrap
17662 msgid ""
17663 " swapoff-label label\n"
17664 "\n"
17665 msgstr ""
17666 " swapoff-label мітка\n"
17667 "\n"
17668
17669 #. type: textblock
17670 #: ../fish/guestfish-actions.pod:4880 ../src/guestfs-actions.pod:7505
17671 msgid ""
17672 "This command disables the libguestfs appliance swap on labeled swap "
17673 "partition."
17674 msgstr ""
17675
17676 #. type: =head2
17677 #: ../fish/guestfish-actions.pod:4883
17678 msgid "swapoff-uuid"
17679 msgstr "swapoff-uuid"
17680
17681 #. type: verbatim
17682 #: ../fish/guestfish-actions.pod:4885
17683 #, no-wrap
17684 msgid ""
17685 " swapoff-uuid uuid\n"
17686 "\n"
17687 msgstr ""
17688 " swapoff-uuid uuid\n"
17689 "\n"
17690
17691 #. type: textblock
17692 #: ../fish/guestfish-actions.pod:4887 ../src/guestfs-actions.pod:7518
17693 msgid ""
17694 "This command disables the libguestfs appliance swap partition with the given "
17695 "UUID."
17696 msgstr ""
17697
17698 #. type: =head2
17699 #: ../fish/guestfish-actions.pod:4890
17700 msgid "swapon-device"
17701 msgstr "swapon-device"
17702
17703 #. type: verbatim
17704 #: ../fish/guestfish-actions.pod:4892
17705 #, no-wrap
17706 msgid ""
17707 " swapon-device device\n"
17708 "\n"
17709 msgstr ""
17710 " swapon-device пристрій\n"
17711 "\n"
17712
17713 #. type: textblock
17714 #: ../fish/guestfish-actions.pod:4894
17715 msgid ""
17716 "This command enables the libguestfs appliance to use the swap device or "
17717 "partition named C<device>.  The increased memory is made available for all "
17718 "commands, for example those run using L</command> or L</sh>."
17719 msgstr ""
17720
17721 #. type: textblock
17722 #: ../fish/guestfish-actions.pod:4899 ../src/guestfs-actions.pod:7536
17723 msgid ""
17724 "Note that you should not swap to existing guest swap partitions unless you "
17725 "know what you are doing.  They may contain hibernation information, or other "
17726 "information that the guest doesn't want you to trash.  You also risk leaking "
17727 "information about the host to the guest this way.  Instead, attach a new "
17728 "host device to the guest and swap on that."
17729 msgstr ""
17730
17731 #. type: =head2
17732 #: ../fish/guestfish-actions.pod:4906
17733 msgid "swapon-file"
17734 msgstr "swapon-file"
17735
17736 #. type: verbatim
17737 #: ../fish/guestfish-actions.pod:4908
17738 #, no-wrap
17739 msgid ""
17740 " swapon-file file\n"
17741 "\n"
17742 msgstr ""
17743 " swapon-file файл\n"
17744 "\n"
17745
17746 #. type: textblock
17747 #: ../fish/guestfish-actions.pod:4910
17748 msgid ""
17749 "This command enables swap to a file.  See L</swapon-device> for other notes."
17750 msgstr ""
17751
17752 #. type: =head2
17753 #: ../fish/guestfish-actions.pod:4913
17754 msgid "swapon-label"
17755 msgstr "swapon-label"
17756
17757 #. type: verbatim
17758 #: ../fish/guestfish-actions.pod:4915
17759 #, no-wrap
17760 msgid ""
17761 " swapon-label label\n"
17762 "\n"
17763 msgstr ""
17764 " swapon-label мітка\n"
17765 "\n"
17766
17767 #. type: textblock
17768 #: ../fish/guestfish-actions.pod:4917
17769 msgid ""
17770 "This command enables swap to a labeled swap partition.  See L</swapon-"
17771 "device> for other notes."
17772 msgstr ""
17773
17774 #. type: =head2
17775 #: ../fish/guestfish-actions.pod:4920
17776 msgid "swapon-uuid"
17777 msgstr "swapon-uuid"
17778
17779 #. type: verbatim
17780 #: ../fish/guestfish-actions.pod:4922
17781 #, no-wrap
17782 msgid ""
17783 " swapon-uuid uuid\n"
17784 "\n"
17785 msgstr ""
17786 " swapon-uuid uuid\n"
17787 "\n"
17788
17789 #. type: textblock
17790 #: ../fish/guestfish-actions.pod:4924
17791 msgid ""
17792 "This command enables swap to a swap partition with the given UUID.  See L</"
17793 "swapon-device> for other notes."
17794 msgstr ""
17795
17796 #. type: =head2
17797 #: ../fish/guestfish-actions.pod:4927
17798 msgid "sync"
17799 msgstr "sync"
17800
17801 #. type: verbatim
17802 #: ../fish/guestfish-actions.pod:4929
17803 #, no-wrap
17804 msgid ""
17805 " sync\n"
17806 "\n"
17807 msgstr ""
17808 " sync\n"
17809 "\n"
17810
17811 #. type: textblock
17812 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7591
17813 msgid ""
17814 "This syncs the disk, so that any writes are flushed through to the "
17815 "underlying disk image."
17816 msgstr ""
17817
17818 #. type: textblock
17819 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7594
17820 msgid ""
17821 "You should always call this if you have modified a disk image, before "
17822 "closing the handle."
17823 msgstr ""
17824
17825 #. type: =head2
17826 #: ../fish/guestfish-actions.pod:4937
17827 msgid "tail"
17828 msgstr "tail"
17829
17830 #. type: verbatim
17831 #: ../fish/guestfish-actions.pod:4939
17832 #, no-wrap
17833 msgid ""
17834 " tail path\n"
17835 "\n"
17836 msgstr ""
17837 " tail шлях\n"
17838 "\n"
17839
17840 #. type: textblock
17841 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7607
17842 msgid ""
17843 "This command returns up to the last 10 lines of a file as a list of strings."
17844 msgstr ""
17845
17846 #. type: =head2
17847 #: ../fish/guestfish-actions.pod:4947
17848 msgid "tail-n"
17849 msgstr "tail-n"
17850
17851 #. type: verbatim
17852 #: ../fish/guestfish-actions.pod:4949
17853 #, no-wrap
17854 msgid ""
17855 " tail-n nrlines path\n"
17856 "\n"
17857 msgstr ""
17858
17859 #. type: textblock
17860 #: ../fish/guestfish-actions.pod:4951 ../src/guestfs-actions.pod:7626
17861 msgid ""
17862 "If the parameter C<nrlines> is a positive number, this returns the last "
17863 "C<nrlines> lines of the file C<path>."
17864 msgstr ""
17865
17866 #. type: textblock
17867 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7629
17868 msgid ""
17869 "If the parameter C<nrlines> is a negative number, this returns lines from "
17870 "the file C<path>, starting with the C<-nrlines>th line."
17871 msgstr ""
17872
17873 #. type: =head2
17874 #: ../fish/guestfish-actions.pod:4962
17875 msgid "tar-in"
17876 msgstr "tar-in"
17877
17878 #. type: verbatim
17879 #: ../fish/guestfish-actions.pod:4964
17880 #, no-wrap
17881 msgid ""
17882 " tar-in (tarfile|-) directory\n"
17883 "\n"
17884 msgstr ""
17885 " tar-in (файл_tar|-) каталог\n"
17886 "\n"
17887
17888 #. type: textblock
17889 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7650
17890 msgid ""
17891 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
17892 "tar file) into C<directory>."
17893 msgstr ""
17894
17895 #. type: textblock
17896 #: ../fish/guestfish-actions.pod:4969
17897 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
17898 msgstr ""
17899
17900 #. type: =head2
17901 #: ../fish/guestfish-actions.pod:4974
17902 msgid "tar-out"
17903 msgstr "tar-out"
17904
17905 #. type: verbatim
17906 #: ../fish/guestfish-actions.pod:4976
17907 #, no-wrap
17908 msgid ""
17909 " tar-out directory (tarfile|-)\n"
17910 "\n"
17911 msgstr ""
17912 " tar-out каталог (файл tar|-)\n"
17913 "\n"
17914
17915 #. type: textblock
17916 #: ../fish/guestfish-actions.pod:4978 ../src/guestfs-actions.pod:7667
17917 msgid ""
17918 "This command packs the contents of C<directory> and downloads it to local "
17919 "file C<tarfile>."
17920 msgstr ""
17921
17922 #. type: textblock
17923 #: ../fish/guestfish-actions.pod:4981
17924 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
17925 msgstr ""
17926
17927 #. type: =head2
17928 #: ../fish/guestfish-actions.pod:4986
17929 msgid "tgz-in"
17930 msgstr "tgz-in"
17931
17932 #. type: verbatim
17933 #: ../fish/guestfish-actions.pod:4988
17934 #, no-wrap
17935 msgid ""
17936 " tgz-in (tarball|-) directory\n"
17937 "\n"
17938 msgstr ""
17939 " tgz-in (архів tar|-) каталог\n"
17940 "\n"
17941
17942 #. type: textblock
17943 #: ../fish/guestfish-actions.pod:4990 ../src/guestfs-actions.pod:7684
17944 msgid ""
17945 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
17946 "tar file) into C<directory>."
17947 msgstr ""
17948
17949 #. type: textblock
17950 #: ../fish/guestfish-actions.pod:4993
17951 msgid "To upload an uncompressed tarball, use L</tar-in>."
17952 msgstr ""
17953
17954 #. type: =head2
17955 #: ../fish/guestfish-actions.pod:4997
17956 msgid "tgz-out"
17957 msgstr "tgz-out"
17958
17959 #. type: verbatim
17960 #: ../fish/guestfish-actions.pod:4999
17961 #, no-wrap
17962 msgid ""
17963 " tgz-out directory (tarball|-)\n"
17964 "\n"
17965 msgstr ""
17966 " tgz-out каталог (архів tar|-)\n"
17967 "\n"
17968
17969 #. type: textblock
17970 #: ../fish/guestfish-actions.pod:5001 ../src/guestfs-actions.pod:7700
17971 msgid ""
17972 "This command packs the contents of C<directory> and downloads it to local "
17973 "file C<tarball>."
17974 msgstr ""
17975
17976 #. type: textblock
17977 #: ../fish/guestfish-actions.pod:5004
17978 msgid "To download an uncompressed tarball, use L</tar-out>."
17979 msgstr ""
17980
17981 #. type: =head2
17982 #: ../fish/guestfish-actions.pod:5008
17983 msgid "touch"
17984 msgstr "touch"
17985
17986 #. type: verbatim
17987 #: ../fish/guestfish-actions.pod:5010
17988 #, no-wrap
17989 msgid ""
17990 " touch path\n"
17991 "\n"
17992 msgstr ""
17993 " touch шлях\n"
17994 "\n"
17995
17996 #. type: textblock
17997 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7715
17998 msgid ""
17999 "Touch acts like the L<touch(1)> command.  It can be used to update the "
18000 "timestamps on a file, or, if the file does not exist, to create a new zero-"
18001 "length file."
18002 msgstr ""
18003
18004 #. type: textblock
18005 #: ../fish/guestfish-actions.pod:5016 ../src/guestfs-actions.pod:7719
18006 msgid ""
18007 "This command only works on regular files, and will fail on other file types "
18008 "such as directories, symbolic links, block special etc."
18009 msgstr ""
18010
18011 #. type: =head2
18012 #: ../fish/guestfish-actions.pod:5019
18013 msgid "truncate"
18014 msgstr "truncate"
18015
18016 #. type: verbatim
18017 #: ../fish/guestfish-actions.pod:5021
18018 #, no-wrap
18019 msgid ""
18020 " truncate path\n"
18021 "\n"
18022 msgstr ""
18023 " truncate шлях\n"
18024 "\n"
18025
18026 #. type: textblock
18027 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7732
18028 msgid ""
18029 "This command truncates C<path> to a zero-length file.  The file must exist "
18030 "already."
18031 msgstr ""
18032
18033 #. type: =head2
18034 #: ../fish/guestfish-actions.pod:5026
18035 msgid "truncate-size"
18036 msgstr "truncate-size"
18037
18038 #. type: verbatim
18039 #: ../fish/guestfish-actions.pod:5028
18040 #, no-wrap
18041 msgid ""
18042 " truncate-size path size\n"
18043 "\n"
18044 msgstr ""
18045 " truncate-size шлях розмір\n"
18046 "\n"
18047
18048 #. type: textblock
18049 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7746
18050 msgid ""
18051 "This command truncates C<path> to size C<size> bytes.  The file must exist "
18052 "already."
18053 msgstr ""
18054
18055 #. type: textblock
18056 #: ../fish/guestfish-actions.pod:5033
18057 msgid ""
18058 "If the current file size is less than C<size> then the file is extended to "
18059 "the required size with zero bytes.  This creates a sparse file (ie. disk "
18060 "blocks are not allocated for the file until you write to it).  To create a "
18061 "non-sparse file of zeroes, use L</fallocate64> instead."
18062 msgstr ""
18063
18064 #. type: =head2
18065 #: ../fish/guestfish-actions.pod:5039
18066 #, fuzzy
18067 #| msgid "tune2fs-l"
18068 msgid "tune2fs"
18069 msgstr "tune2fs-l"
18070
18071 #. type: verbatim
18072 #: ../fish/guestfish-actions.pod:5041
18073 #, no-wrap
18074 msgid ""
18075 " tune2fs device [force:true|false] [maxmountcount:N] [mountcount:N] [errorbehavior:..] [group:N] [intervalbetweenchecks:N] [reservedblockspercentage:N] [lastmounteddirectory:..] [reservedblockscount:N] [user:N]\n"
18076 "\n"
18077 msgstr ""
18078
18079 #. type: textblock
18080 #: ../fish/guestfish-actions.pod:5043 ../src/guestfs-actions.pod:7782
18081 msgid ""
18082 "This call allows you to adjust various filesystem parameters of an ext2/ext3/"
18083 "ext4 filesystem called C<device>."
18084 msgstr ""
18085
18086 #. type: textblock
18087 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7791
18088 msgid ""
18089 "Force tune2fs to complete the operation even in the face of errors.  This is "
18090 "the same as the tune2fs C<-f> option."
18091 msgstr ""
18092
18093 #. type: =item
18094 #: ../fish/guestfish-actions.pod:5055 ../src/guestfs-actions.pod:7794
18095 #, fuzzy
18096 #| msgid "mkmountpoint"
18097 msgid "C<maxmountcount>"
18098 msgstr "mkmountpoint"
18099
18100 #. type: textblock
18101 #: ../fish/guestfish-actions.pod:5057 ../src/guestfs-actions.pod:7796
18102 msgid ""
18103 "Set the number of mounts after which the filesystem is checked by L<e2fsck(8)"
18104 ">.  If this is C<0> then the number of mounts is disregarded.  This is the "
18105 "same as the tune2fs C<-c> option."
18106 msgstr ""
18107
18108 #. type: =item
18109 #: ../fish/guestfish-actions.pod:5061 ../src/guestfs-actions.pod:7800
18110 #, fuzzy
18111 #| msgid "mountpoints"
18112 msgid "C<mountcount>"
18113 msgstr "mountpoints"
18114
18115 #. type: textblock
18116 #: ../fish/guestfish-actions.pod:5063 ../src/guestfs-actions.pod:7802
18117 msgid ""
18118 "Set the number of times the filesystem has been mounted.  This is the same "
18119 "as the tune2fs C<-C> option."
18120 msgstr ""
18121
18122 #. type: =item
18123 #: ../fish/guestfish-actions.pod:5066 ../src/guestfs-actions.pod:7805
18124 msgid "C<errorbehavior>"
18125 msgstr ""
18126
18127 #. type: textblock
18128 #: ../fish/guestfish-actions.pod:5068 ../src/guestfs-actions.pod:7807
18129 msgid ""
18130 "Change the behavior of the kernel code when errors are detected.  Possible "
18131 "values currently are: C<continue>, C<remount-ro>, C<panic>.  In practice "
18132 "these options don't really make any difference, particularly for write "
18133 "errors."
18134 msgstr ""
18135
18136 #. type: textblock
18137 #: ../fish/guestfish-actions.pod:5073 ../src/guestfs-actions.pod:7812
18138 msgid "This is the same as the tune2fs C<-e> option."
18139 msgstr ""
18140
18141 #. type: =item
18142 #: ../fish/guestfish-actions.pod:5075 ../src/guestfs-actions.pod:7814
18143 #, fuzzy
18144 #| msgid "B<--volgroups>"
18145 msgid "C<group>"
18146 msgstr "B<--volgroups>"
18147
18148 #. type: textblock
18149 #: ../fish/guestfish-actions.pod:5077 ../src/guestfs-actions.pod:7816
18150 msgid ""
18151 "Set the group which can use reserved filesystem blocks.  This is the same as "
18152 "the tune2fs C<-g> option except that it can only be specified as a number."
18153 msgstr ""
18154
18155 #. type: =item
18156 #: ../fish/guestfish-actions.pod:5081 ../src/guestfs-actions.pod:7820
18157 msgid "C<intervalbetweenchecks>"
18158 msgstr ""
18159
18160 #. type: textblock
18161 #: ../fish/guestfish-actions.pod:5083 ../src/guestfs-actions.pod:7822
18162 msgid ""
18163 "Adjust the maximal time between two filesystem checks (in seconds).  If the "
18164 "option is passed as C<0> then time-dependent checking is disabled."
18165 msgstr ""
18166
18167 #. type: textblock
18168 #: ../fish/guestfish-actions.pod:5087 ../src/guestfs-actions.pod:7826
18169 msgid "This is the same as the tune2fs C<-i> option."
18170 msgstr ""
18171
18172 #. type: =item
18173 #: ../fish/guestfish-actions.pod:5089 ../src/guestfs-actions.pod:7828
18174 msgid "C<reservedblockspercentage>"
18175 msgstr ""
18176
18177 #. type: textblock
18178 #: ../fish/guestfish-actions.pod:5091 ../src/guestfs-actions.pod:7830
18179 msgid ""
18180 "Set the percentage of the filesystem which may only be allocated by "
18181 "privileged processes.  This is the same as the tune2fs C<-m> option."
18182 msgstr ""
18183
18184 #. type: =item
18185 #: ../fish/guestfish-actions.pod:5095 ../src/guestfs-actions.pod:7834
18186 msgid "C<lastmounteddirectory>"
18187 msgstr ""
18188
18189 #. type: textblock
18190 #: ../fish/guestfish-actions.pod:5097 ../src/guestfs-actions.pod:7836
18191 msgid ""
18192 "Set the last mounted directory.  This is the same as the tune2fs C<-M> "
18193 "option."
18194 msgstr ""
18195
18196 #. type: =item
18197 #: ../fish/guestfish-actions.pod:5100 ../src/guestfs-actions.pod:7839
18198 msgid ""
18199 "C<reservedblockscount> Set the number of reserved filesystem blocks.  This "
18200 "is the same as the tune2fs C<-r> option."
18201 msgstr ""
18202
18203 #. type: =item
18204 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7843
18205 msgid "C<user>"
18206 msgstr ""
18207
18208 #. type: textblock
18209 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7845
18210 msgid ""
18211 "Set the user who can use the reserved filesystem blocks.  This is the same "
18212 "as the tune2fs C<-u> option except that it can only be specified as a number."
18213 msgstr ""
18214
18215 #. type: textblock
18216 #: ../fish/guestfish-actions.pod:5112
18217 msgid ""
18218 "To get the current values of filesystem parameters, see L</tune2fs-l>.  For "
18219 "precise details of how tune2fs works, see the L<tune2fs(8)> man page."
18220 msgstr ""
18221
18222 #. type: =head2
18223 #: ../fish/guestfish-actions.pod:5118
18224 msgid "tune2fs-l"
18225 msgstr "tune2fs-l"
18226
18227 #. type: verbatim
18228 #: ../fish/guestfish-actions.pod:5120
18229 #, no-wrap
18230 msgid ""
18231 " tune2fs-l device\n"
18232 "\n"
18233 msgstr ""
18234 " tune2fs-l пристрій\n"
18235 "\n"
18236
18237 #. type: textblock
18238 #: ../fish/guestfish-actions.pod:5122 ../src/guestfs-actions.pod:7887
18239 msgid ""
18240 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
18241 "C<device>."
18242 msgstr ""
18243
18244 #. type: textblock
18245 #: ../fish/guestfish-actions.pod:5125 ../src/guestfs-actions.pod:7890
18246 msgid ""
18247 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
18248 "for more details.  The list of fields returned isn't clearly defined, and "
18249 "depends on both the version of C<tune2fs> that libguestfs was built against, "
18250 "and the filesystem itself."
18251 msgstr ""
18252
18253 #. type: =head2
18254 #: ../fish/guestfish-actions.pod:5130
18255 msgid "txz-in"
18256 msgstr "txz-in"
18257
18258 #. type: verbatim
18259 #: ../fish/guestfish-actions.pod:5132
18260 #, no-wrap
18261 msgid ""
18262 " txz-in (tarball|-) directory\n"
18263 "\n"
18264 msgstr ""
18265 " txz-in (архів tar|-) каталог\n"
18266 "\n"
18267
18268 #. type: textblock
18269 #: ../fish/guestfish-actions.pod:5134 ../src/guestfs-actions.pod:7910
18270 msgid ""
18271 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
18272 "tar file) into C<directory>."
18273 msgstr ""
18274
18275 #. type: =head2
18276 #: ../fish/guestfish-actions.pod:5139
18277 msgid "txz-out"
18278 msgstr "txz-out"
18279
18280 #. type: verbatim
18281 #: ../fish/guestfish-actions.pod:5141
18282 #, no-wrap
18283 msgid ""
18284 " txz-out directory (tarball|-)\n"
18285 "\n"
18286 msgstr ""
18287 " txz-out каталог (архів tar|-)\n"
18288 "\n"
18289
18290 #. type: textblock
18291 #: ../fish/guestfish-actions.pod:5143 ../src/guestfs-actions.pod:7924
18292 msgid ""
18293 "This command packs the contents of C<directory> and downloads it to local "
18294 "file C<tarball> (as an xz compressed tar archive)."
18295 msgstr ""
18296
18297 #. type: =head2
18298 #: ../fish/guestfish-actions.pod:5148
18299 msgid "umask"
18300 msgstr "umask"
18301
18302 #. type: verbatim
18303 #: ../fish/guestfish-actions.pod:5150
18304 #, no-wrap
18305 msgid ""
18306 " umask mask\n"
18307 "\n"
18308 msgstr ""
18309 " umask маска\n"
18310 "\n"
18311
18312 #. type: textblock
18313 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7937
18314 msgid ""
18315 "This function sets the mask used for creating new files and device nodes to "
18316 "C<mask & 0777>."
18317 msgstr ""
18318
18319 #. type: textblock
18320 #: ../fish/guestfish-actions.pod:5155 ../src/guestfs-actions.pod:7940
18321 msgid ""
18322 "Typical umask values would be C<022> which creates new files with "
18323 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
18324 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
18325 msgstr ""
18326
18327 #. type: textblock
18328 #: ../fish/guestfish-actions.pod:5160 ../src/guestfs-actions.pod:7945
18329 msgid ""
18330 "The default umask is C<022>.  This is important because it means that "
18331 "directories and device nodes will be created with C<0644> or C<0755> mode "
18332 "even if you specify C<0777>."
18333 msgstr ""
18334
18335 #. type: textblock
18336 #: ../fish/guestfish-actions.pod:5164
18337 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
18338 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
18339
18340 #. type: textblock
18341 #: ../fish/guestfish-actions.pod:5167 ../src/guestfs-actions.pod:7952
18342 msgid "This call returns the previous umask."
18343 msgstr ""
18344
18345 #. type: =head2
18346 #: ../fish/guestfish-actions.pod:5169
18347 msgid "umount"
18348 msgstr "umount"
18349
18350 #. type: =head2
18351 #: ../fish/guestfish-actions.pod:5171
18352 msgid "unmount"
18353 msgstr "unmount"
18354
18355 #. type: verbatim
18356 #: ../fish/guestfish-actions.pod:5173
18357 #, no-wrap
18358 msgid ""
18359 " umount pathordevice\n"
18360 "\n"
18361 msgstr ""
18362 " umount шлях_або_пристрій\n"
18363 "\n"
18364
18365 #. type: textblock
18366 #: ../fish/guestfish-actions.pod:5175 ../src/guestfs-actions.pod:7964
18367 msgid ""
18368 "This unmounts the given filesystem.  The filesystem may be specified either "
18369 "by its mountpoint (path) or the device which contains the filesystem."
18370 msgstr ""
18371
18372 #. type: =head2
18373 #: ../fish/guestfish-actions.pod:5179
18374 msgid "umount-all"
18375 msgstr "umount-all"
18376
18377 #. type: =head2
18378 #: ../fish/guestfish-actions.pod:5181
18379 msgid "unmount-all"
18380 msgstr "unmount-all"
18381
18382 #. type: verbatim
18383 #: ../fish/guestfish-actions.pod:5183
18384 #, no-wrap
18385 msgid ""
18386 " umount-all\n"
18387 "\n"
18388 msgstr ""
18389 " umount-all\n"
18390 "\n"
18391
18392 #. type: textblock
18393 #: ../fish/guestfish-actions.pod:5185 ../src/guestfs-actions.pod:7977
18394 msgid "This unmounts all mounted filesystems."
18395 msgstr ""
18396
18397 #. type: textblock
18398 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7979
18399 msgid "Some internal mounts are not unmounted by this call."
18400 msgstr ""
18401
18402 #. type: =head2
18403 #: ../fish/guestfish-actions.pod:5189
18404 msgid "upload"
18405 msgstr "upload"
18406
18407 #. type: verbatim
18408 #: ../fish/guestfish-actions.pod:5191
18409 #, no-wrap
18410 msgid ""
18411 " upload (filename|-) remotefilename\n"
18412 "\n"
18413 msgstr ""
18414 " upload (назва_файла|-) назва_віддаленого_файла\n"
18415 "\n"
18416
18417 #. type: textblock
18418 #: ../fish/guestfish-actions.pod:5193 ../fish/guestfish-actions.pod:5206
18419 #: ../src/guestfs-actions.pod:7992 ../src/guestfs-actions.pod:8016
18420 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
18421 msgstr ""
18422
18423 #. type: textblock
18424 #: ../fish/guestfish-actions.pod:5198
18425 msgid "See also L</download>."
18426 msgstr "Див. також L</download>."
18427
18428 #. type: =head2
18429 #: ../fish/guestfish-actions.pod:5202
18430 msgid "upload-offset"
18431 msgstr "upload-offset"
18432
18433 #. type: verbatim
18434 #: ../fish/guestfish-actions.pod:5204
18435 #, no-wrap
18436 msgid ""
18437 " upload-offset (filename|-) remotefilename offset\n"
18438 "\n"
18439 msgstr ""
18440 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
18441 "\n"
18442
18443 #. type: textblock
18444 #: ../fish/guestfish-actions.pod:5209 ../src/guestfs-actions.pod:8019
18445 msgid ""
18446 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
18447 "The intention is to overwrite parts of existing files or devices, although "
18448 "if a non-existant file is specified then it is created with a \"hole\" "
18449 "before C<offset>.  The size of the data written is implicit in the size of "
18450 "the source C<filename>."
18451 msgstr ""
18452
18453 #. type: textblock
18454 #: ../fish/guestfish-actions.pod:5216
18455 msgid ""
18456 "Note that there is no limit on the amount of data that can be uploaded with "
18457 "this call, unlike with L</pwrite>, and this call always writes the full "
18458 "amount unless an error occurs."
18459 msgstr ""
18460
18461 #. type: textblock
18462 #: ../fish/guestfish-actions.pod:5221
18463 msgid "See also L</upload>, L</pwrite>."
18464 msgstr "Див. також L</upload>, L</pwrite>."
18465
18466 #. type: =head2
18467 #: ../fish/guestfish-actions.pod:5225
18468 msgid "utimens"
18469 msgstr "utimens"
18470
18471 #. type: verbatim
18472 #: ../fish/guestfish-actions.pod:5227
18473 #, no-wrap
18474 msgid ""
18475 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
18476 "\n"
18477 msgstr ""
18478
18479 #. type: textblock
18480 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:8052
18481 msgid "This command sets the timestamps of a file with nanosecond precision."
18482 msgstr ""
18483
18484 #. type: textblock
18485 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:8055
18486 msgid ""
18487 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
18488 "from the epoch."
18489 msgstr ""
18490
18491 #. type: textblock
18492 #: ../fish/guestfish-actions.pod:5235 ../src/guestfs-actions.pod:8058
18493 msgid ""
18494 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
18495 "nanoseconds from the epoch."
18496 msgstr ""
18497
18498 #. type: textblock
18499 #: ../fish/guestfish-actions.pod:5238 ../src/guestfs-actions.pod:8061
18500 msgid ""
18501 "If the C<*nsecs> field contains the special value C<-1> then the "
18502 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
18503 "ignored in this case)."
18504 msgstr ""
18505
18506 #. type: textblock
18507 #: ../fish/guestfish-actions.pod:5242 ../src/guestfs-actions.pod:8065
18508 msgid ""
18509 "If the C<*nsecs> field contains the special value C<-2> then the "
18510 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
18511 "in this case)."
18512 msgstr ""
18513
18514 #. type: =head2
18515 #: ../fish/guestfish-actions.pod:5246
18516 msgid "version"
18517 msgstr "version"
18518
18519 #. type: verbatim
18520 #: ../fish/guestfish-actions.pod:5248
18521 #, no-wrap
18522 msgid ""
18523 " version\n"
18524 "\n"
18525 msgstr ""
18526 " version\n"
18527 "\n"
18528
18529 #. type: textblock
18530 #: ../fish/guestfish-actions.pod:5250 ../src/guestfs-actions.pod:8078
18531 msgid ""
18532 "Return the libguestfs version number that the program is linked against."
18533 msgstr ""
18534
18535 #. type: textblock
18536 #: ../fish/guestfish-actions.pod:5253 ../src/guestfs-actions.pod:8081
18537 msgid ""
18538 "Note that because of dynamic linking this is not necessarily the version of "
18539 "libguestfs that you compiled against.  You can compile the program, and then "
18540 "at runtime dynamically link against a completely different C<libguestfs.so> "
18541 "library."
18542 msgstr ""
18543
18544 #. type: textblock
18545 #: ../fish/guestfish-actions.pod:5258 ../src/guestfs-actions.pod:8086
18546 msgid ""
18547 "This call was added in version C<1.0.58>.  In previous versions of "
18548 "libguestfs there was no way to get the version number.  From C code you can "
18549 "use dynamic linker functions to find out if this symbol exists (if it "
18550 "doesn't, then it's an earlier version)."
18551 msgstr ""
18552
18553 #. type: textblock
18554 #: ../fish/guestfish-actions.pod:5264 ../src/guestfs-actions.pod:8092
18555 msgid ""
18556 "The call returns a structure with four elements.  The first three (C<major>, "
18557 "C<minor> and C<release>) are numbers and correspond to the usual version "
18558 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
18559 "but may be used for distro-specific information."
18560 msgstr ""
18561
18562 #. type: textblock
18563 #: ../fish/guestfish-actions.pod:5270 ../src/guestfs-actions.pod:8098
18564 msgid ""
18565 "To construct the original version string: C<$major.$minor.$release$extra>"
18566 msgstr ""
18567
18568 #. type: textblock
18569 #: ../fish/guestfish-actions.pod:5273 ../src/guestfs-actions.pod:8101
18570 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18571 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
18572
18573 #. type: textblock
18574 #: ../fish/guestfish-actions.pod:5275
18575 msgid ""
18576 "I<Note:> Don't use this call to test for availability of features.  In "
18577 "enterprise distributions we backport features from later versions into "
18578 "earlier versions, making this an unreliable way to test for features.  Use "
18579 "L</available> instead."
18580 msgstr ""
18581
18582 #. type: =head2
18583 #: ../fish/guestfish-actions.pod:5281
18584 msgid "vfs-label"
18585 msgstr "vfs-label"
18586
18587 #. type: verbatim
18588 #: ../fish/guestfish-actions.pod:5283
18589 #, no-wrap
18590 msgid ""
18591 " vfs-label device\n"
18592 "\n"
18593 msgstr ""
18594 " vfs-label пристрій\n"
18595 "\n"
18596
18597 #. type: textblock
18598 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:8121
18599 msgid "This returns the filesystem label of the filesystem on C<device>."
18600 msgstr ""
18601
18602 #. type: textblock
18603 #: ../fish/guestfish-actions.pod:5288 ../src/guestfs-actions.pod:8124
18604 msgid "If the filesystem is unlabeled, this returns the empty string."
18605 msgstr ""
18606
18607 #. type: textblock
18608 #: ../fish/guestfish-actions.pod:5290
18609 msgid "To find a filesystem from the label, use L</findfs-label>."
18610 msgstr ""
18611
18612 #. type: =head2
18613 #: ../fish/guestfish-actions.pod:5292
18614 msgid "vfs-type"
18615 msgstr "vfs-type"
18616
18617 #. type: verbatim
18618 #: ../fish/guestfish-actions.pod:5294
18619 #, no-wrap
18620 msgid ""
18621 " vfs-type device\n"
18622 "\n"
18623 msgstr ""
18624 " vfs-type пристрій\n"
18625 "\n"
18626
18627 #. type: textblock
18628 #: ../fish/guestfish-actions.pod:5296 ../src/guestfs-actions.pod:8139
18629 msgid ""
18630 "This command gets the filesystem type corresponding to the filesystem on "
18631 "C<device>."
18632 msgstr ""
18633
18634 #. type: textblock
18635 #: ../fish/guestfish-actions.pod:5299 ../src/guestfs-actions.pod:8142
18636 msgid ""
18637 "For most filesystems, the result is the name of the Linux VFS module which "
18638 "would be used to mount this filesystem if you mounted it without specifying "
18639 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
18640 msgstr ""
18641
18642 #. type: =head2
18643 #: ../fish/guestfish-actions.pod:5304
18644 msgid "vfs-uuid"
18645 msgstr "vfs-uuid"
18646
18647 #. type: verbatim
18648 #: ../fish/guestfish-actions.pod:5306
18649 #, no-wrap
18650 msgid ""
18651 " vfs-uuid device\n"
18652 "\n"
18653 msgstr ""
18654 " vfs-uuid пристрій\n"
18655 "\n"
18656
18657 #. type: textblock
18658 #: ../fish/guestfish-actions.pod:5308 ../src/guestfs-actions.pod:8158
18659 msgid "This returns the filesystem UUID of the filesystem on C<device>."
18660 msgstr ""
18661
18662 #. type: textblock
18663 #: ../fish/guestfish-actions.pod:5311 ../src/guestfs-actions.pod:8161
18664 msgid "If the filesystem does not have a UUID, this returns the empty string."
18665 msgstr ""
18666
18667 #. type: textblock
18668 #: ../fish/guestfish-actions.pod:5313
18669 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
18670 msgstr ""
18671
18672 #. type: =head2
18673 #: ../fish/guestfish-actions.pod:5315
18674 msgid "vg-activate"
18675 msgstr "vg-activate"
18676
18677 #. type: verbatim
18678 #: ../fish/guestfish-actions.pod:5317
18679 #, no-wrap
18680 msgid ""
18681 " vg-activate true|false 'volgroups ...'\n"
18682 "\n"
18683 msgstr ""
18684
18685 #. type: textblock
18686 #: ../fish/guestfish-actions.pod:5319 ../src/guestfs-actions.pod:8177
18687 msgid ""
18688 "This command activates or (if C<activate> is false) deactivates all logical "
18689 "volumes in the listed volume groups C<volgroups>."
18690 msgstr ""
18691
18692 #. type: textblock
18693 #: ../fish/guestfish-actions.pod:5322 ../src/guestfs-actions.pod:8180
18694 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
18695 msgstr ""
18696
18697 #. type: textblock
18698 #: ../fish/guestfish-actions.pod:5324 ../src/guestfs-actions.pod:8182
18699 msgid ""
18700 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
18701 "activated or deactivated."
18702 msgstr ""
18703
18704 #. type: =head2
18705 #: ../fish/guestfish-actions.pod:5327
18706 msgid "vg-activate-all"
18707 msgstr "vg-activate-all"
18708
18709 #. type: verbatim
18710 #: ../fish/guestfish-actions.pod:5329
18711 #, no-wrap
18712 msgid ""
18713 " vg-activate-all true|false\n"
18714 "\n"
18715 msgstr ""
18716 " vg-activate-all true|false\n"
18717 "\n"
18718
18719 #. type: textblock
18720 #: ../fish/guestfish-actions.pod:5331 ../src/guestfs-actions.pod:8195
18721 msgid ""
18722 "This command activates or (if C<activate> is false) deactivates all logical "
18723 "volumes in all volume groups."
18724 msgstr ""
18725
18726 #. type: textblock
18727 #: ../fish/guestfish-actions.pod:5334 ../src/guestfs-actions.pod:8198
18728 msgid "This command is the same as running C<vgchange -a y|n>"
18729 msgstr ""
18730
18731 #. type: =head2
18732 #: ../fish/guestfish-actions.pod:5336
18733 msgid "vgcreate"
18734 msgstr "vgcreate"
18735
18736 #. type: verbatim
18737 #: ../fish/guestfish-actions.pod:5338
18738 #, no-wrap
18739 msgid ""
18740 " vgcreate volgroup 'physvols ...'\n"
18741 "\n"
18742 msgstr ""
18743
18744 #. type: textblock
18745 #: ../fish/guestfish-actions.pod:5340 ../src/guestfs-actions.pod:8211
18746 msgid ""
18747 "This creates an LVM volume group called C<volgroup> from the non-empty list "
18748 "of physical volumes C<physvols>."
18749 msgstr ""
18750
18751 #. type: =head2
18752 #: ../fish/guestfish-actions.pod:5343
18753 msgid "vglvuuids"
18754 msgstr "vglvuuids"
18755
18756 #. type: verbatim
18757 #: ../fish/guestfish-actions.pod:5345
18758 #, no-wrap
18759 msgid ""
18760 " vglvuuids vgname\n"
18761 "\n"
18762 msgstr ""
18763
18764 #. type: textblock
18765 #: ../fish/guestfish-actions.pod:5347 ../src/guestfs-actions.pod:8224
18766 msgid ""
18767 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
18768 "volumes created in this volume group."
18769 msgstr ""
18770
18771 #. type: textblock
18772 #: ../fish/guestfish-actions.pod:5350
18773 msgid ""
18774 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
18775 "logical volumes and volume groups."
18776 msgstr ""
18777
18778 #. type: textblock
18779 #: ../fish/guestfish-actions.pod:5353
18780 msgid "See also L</vgpvuuids>."
18781 msgstr "Див. також L</vgpvuuids>."
18782
18783 #. type: =head2
18784 #: ../fish/guestfish-actions.pod:5355
18785 msgid "vgpvuuids"
18786 msgstr "vgpvuuids"
18787
18788 #. type: verbatim
18789 #: ../fish/guestfish-actions.pod:5357
18790 #, no-wrap
18791 msgid ""
18792 " vgpvuuids vgname\n"
18793 "\n"
18794 msgstr ""
18795
18796 #. type: textblock
18797 #: ../fish/guestfish-actions.pod:5359 ../src/guestfs-actions.pod:8244
18798 msgid ""
18799 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
18800 "volumes that this volume group resides on."
18801 msgstr ""
18802
18803 #. type: textblock
18804 #: ../fish/guestfish-actions.pod:5362
18805 msgid ""
18806 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
18807 "physical volumes and volume groups."
18808 msgstr ""
18809
18810 #. type: textblock
18811 #: ../fish/guestfish-actions.pod:5365
18812 msgid "See also L</vglvuuids>."
18813 msgstr "Див. також L</vglvuuids>."
18814
18815 #. type: =head2
18816 #: ../fish/guestfish-actions.pod:5367
18817 msgid "vgremove"
18818 msgstr "vgremove"
18819
18820 #. type: verbatim
18821 #: ../fish/guestfish-actions.pod:5369
18822 #, no-wrap
18823 msgid ""
18824 " vgremove vgname\n"
18825 "\n"
18826 msgstr ""
18827
18828 #. type: textblock
18829 #: ../fish/guestfish-actions.pod:5371 ../src/guestfs-actions.pod:8264
18830 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
18831 msgstr ""
18832
18833 #. type: textblock
18834 #: ../fish/guestfish-actions.pod:5373 ../src/guestfs-actions.pod:8266
18835 msgid ""
18836 "This also forcibly removes all logical volumes in the volume group (if any)."
18837 msgstr ""
18838
18839 #. type: =head2
18840 #: ../fish/guestfish-actions.pod:5376
18841 msgid "vgrename"
18842 msgstr "vgrename"
18843
18844 #. type: verbatim
18845 #: ../fish/guestfish-actions.pod:5378
18846 #, no-wrap
18847 msgid ""
18848 " vgrename volgroup newvolgroup\n"
18849 "\n"
18850 msgstr ""
18851
18852 #. type: textblock
18853 #: ../fish/guestfish-actions.pod:5380 ../src/guestfs-actions.pod:8280
18854 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
18855 msgstr ""
18856
18857 #. type: =head2
18858 #: ../fish/guestfish-actions.pod:5382
18859 msgid "vgs"
18860 msgstr "vgs"
18861
18862 #. type: verbatim
18863 #: ../fish/guestfish-actions.pod:5384
18864 #, no-wrap
18865 msgid ""
18866 " vgs\n"
18867 "\n"
18868 msgstr ""
18869 " vgs\n"
18870 "\n"
18871
18872 #. type: textblock
18873 #: ../fish/guestfish-actions.pod:5386 ../src/guestfs-actions.pod:8291
18874 msgid ""
18875 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18876 "> command."
18877 msgstr ""
18878
18879 #. type: textblock
18880 #: ../fish/guestfish-actions.pod:5389 ../src/guestfs-actions.pod:8294
18881 msgid ""
18882 "This returns a list of just the volume group names that were detected (eg. "
18883 "C<VolGroup00>)."
18884 msgstr ""
18885
18886 #. type: textblock
18887 #: ../fish/guestfish-actions.pod:5392
18888 msgid "See also L</vgs-full>."
18889 msgstr "Див. також L</vgs-full>."
18890
18891 #. type: =head2
18892 #: ../fish/guestfish-actions.pod:5394
18893 msgid "vgs-full"
18894 msgstr "vgs-full"
18895
18896 #. type: verbatim
18897 #: ../fish/guestfish-actions.pod:5396
18898 #, no-wrap
18899 msgid ""
18900 " vgs-full\n"
18901 "\n"
18902 msgstr ""
18903 " vgs-full\n"
18904 "\n"
18905
18906 #. type: textblock
18907 #: ../fish/guestfish-actions.pod:5398 ../src/guestfs-actions.pod:8310
18908 msgid ""
18909 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
18910 "> command.  The \"full\" version includes all fields."
18911 msgstr ""
18912
18913 #. type: =head2
18914 #: ../fish/guestfish-actions.pod:5401
18915 msgid "vgscan"
18916 msgstr "vgscan"
18917
18918 #. type: verbatim
18919 #: ../fish/guestfish-actions.pod:5403
18920 #, no-wrap
18921 msgid ""
18922 " vgscan\n"
18923 "\n"
18924 msgstr ""
18925 " vgscan\n"
18926 "\n"
18927
18928 #. type: textblock
18929 #: ../fish/guestfish-actions.pod:5405 ../src/guestfs-actions.pod:8324
18930 msgid ""
18931 "This rescans all block devices and rebuilds the list of LVM physical "
18932 "volumes, volume groups and logical volumes."
18933 msgstr ""
18934
18935 #. type: =head2
18936 #: ../fish/guestfish-actions.pod:5408
18937 msgid "vguuid"
18938 msgstr "vguuid"
18939
18940 #. type: verbatim
18941 #: ../fish/guestfish-actions.pod:5410
18942 #, no-wrap
18943 msgid ""
18944 " vguuid vgname\n"
18945 "\n"
18946 msgstr ""
18947
18948 #. type: textblock
18949 #: ../fish/guestfish-actions.pod:5412 ../src/guestfs-actions.pod:8337
18950 msgid "This command returns the UUID of the LVM VG named C<vgname>."
18951 msgstr ""
18952
18953 #. type: =head2
18954 #: ../fish/guestfish-actions.pod:5414
18955 msgid "wc-c"
18956 msgstr "wc-c"
18957
18958 #. type: verbatim
18959 #: ../fish/guestfish-actions.pod:5416
18960 #, no-wrap
18961 msgid ""
18962 " wc-c path\n"
18963 "\n"
18964 msgstr ""
18965 " wc-c шлях\n"
18966 "\n"
18967
18968 #. type: textblock
18969 #: ../fish/guestfish-actions.pod:5418 ../src/guestfs-actions.pod:8377
18970 msgid ""
18971 "This command counts the characters in a file, using the C<wc -c> external "
18972 "command."
18973 msgstr ""
18974
18975 #. type: =head2
18976 #: ../fish/guestfish-actions.pod:5421
18977 msgid "wc-l"
18978 msgstr "wc-l"
18979
18980 #. type: verbatim
18981 #: ../fish/guestfish-actions.pod:5423
18982 #, no-wrap
18983 msgid ""
18984 " wc-l path\n"
18985 "\n"
18986 msgstr ""
18987 " wc-l шлях\n"
18988 "\n"
18989
18990 #. type: textblock
18991 #: ../fish/guestfish-actions.pod:5425 ../src/guestfs-actions.pod:8390
18992 msgid ""
18993 "This command counts the lines in a file, using the C<wc -l> external command."
18994 msgstr ""
18995
18996 #. type: =head2
18997 #: ../fish/guestfish-actions.pod:5428
18998 msgid "wc-w"
18999 msgstr "wc-w"
19000
19001 #. type: verbatim
19002 #: ../fish/guestfish-actions.pod:5430
19003 #, no-wrap
19004 msgid ""
19005 " wc-w path\n"
19006 "\n"
19007 msgstr ""
19008 " wc-w шлях\n"
19009 "\n"
19010
19011 #. type: textblock
19012 #: ../fish/guestfish-actions.pod:5432 ../src/guestfs-actions.pod:8403
19013 msgid ""
19014 "This command counts the words in a file, using the C<wc -w> external command."
19015 msgstr ""
19016
19017 #. type: =head2
19018 #: ../fish/guestfish-actions.pod:5435
19019 msgid "write"
19020 msgstr "write"
19021
19022 #. type: verbatim
19023 #: ../fish/guestfish-actions.pod:5437
19024 #, no-wrap
19025 msgid ""
19026 " write path content\n"
19027 "\n"
19028 msgstr ""
19029 " write шлях дані\n"
19030 "\n"
19031
19032 #. type: textblock
19033 #: ../fish/guestfish-actions.pod:5439 ../src/guestfs-actions.pod:8418
19034 msgid ""
19035 "This call creates a file called C<path>.  The content of the file is the "
19036 "string C<content> (which can contain any 8 bit data)."
19037 msgstr ""
19038
19039 #. type: textblock
19040 #: ../fish/guestfish-actions.pod:5442
19041 msgid "See also L</write-append>."
19042 msgstr "Див. також L</write-append>."
19043
19044 #. type: =head2
19045 #: ../fish/guestfish-actions.pod:5447
19046 msgid "write-append"
19047 msgstr ""
19048
19049 #. type: verbatim
19050 #: ../fish/guestfish-actions.pod:5449
19051 #, no-wrap
19052 msgid ""
19053 " write-append path content\n"
19054 "\n"
19055 msgstr ""
19056
19057 #. type: textblock
19058 #: ../fish/guestfish-actions.pod:5451 ../src/guestfs-actions.pod:8438
19059 msgid ""
19060 "This call appends C<content> to the end of file C<path>.  If C<path> does "
19061 "not exist, then a new file is created."
19062 msgstr ""
19063
19064 #. type: textblock
19065 #: ../fish/guestfish-actions.pod:5454
19066 msgid "See also L</write>."
19067 msgstr "Див. також L</write>."
19068
19069 #. type: =head2
19070 #: ../fish/guestfish-actions.pod:5459
19071 msgid "write-file"
19072 msgstr "write-file"
19073
19074 #. type: verbatim
19075 #: ../fish/guestfish-actions.pod:5461
19076 #, no-wrap
19077 msgid ""
19078 " write-file path content size\n"
19079 "\n"
19080 msgstr ""
19081
19082 #. type: textblock
19083 #: ../fish/guestfish-actions.pod:5463 ../src/guestfs-actions.pod:8465
19084 msgid ""
19085 "This call creates a file called C<path>.  The contents of the file is the "
19086 "string C<content> (which can contain any 8 bit data), with length C<size>."
19087 msgstr ""
19088
19089 #. type: textblock
19090 #: ../fish/guestfish-actions.pod:5467 ../src/guestfs-actions.pod:8469
19091 msgid ""
19092 "As a special case, if C<size> is C<0> then the length is calculated using "
19093 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
19094 msgstr ""
19095
19096 #. type: textblock
19097 #: ../fish/guestfish-actions.pod:5471 ../src/guestfs-actions.pod:8473
19098 msgid ""
19099 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
19100 "I<not> work, even if the length is specified."
19101 msgstr ""
19102
19103 #. type: textblock
19104 #: ../fish/guestfish-actions.pod:5477
19105 msgid ""
19106 "I<This function is deprecated.> In new code, use the L</write> call instead."
19107 msgstr ""
19108
19109 #. type: =head2
19110 #: ../fish/guestfish-actions.pod:5484
19111 msgid "zegrep"
19112 msgstr "zegrep"
19113
19114 #. type: verbatim
19115 #: ../fish/guestfish-actions.pod:5486
19116 #, no-wrap
19117 msgid ""
19118 " zegrep regex path\n"
19119 "\n"
19120 msgstr ""
19121 " zegrep формальний_вираз шлях\n"
19122 "\n"
19123
19124 #. type: textblock
19125 #: ../fish/guestfish-actions.pod:5488 ../src/guestfs-actions.pod:8490
19126 msgid ""
19127 "This calls the external C<zegrep> program and returns the matching lines."
19128 msgstr ""
19129
19130 #. type: =head2
19131 #: ../fish/guestfish-actions.pod:5494
19132 msgid "zegrepi"
19133 msgstr "zegrepi"
19134
19135 #. type: verbatim
19136 #: ../fish/guestfish-actions.pod:5496
19137 #, no-wrap
19138 msgid ""
19139 " zegrepi regex path\n"
19140 "\n"
19141 msgstr ""
19142
19143 #. type: textblock
19144 #: ../fish/guestfish-actions.pod:5498 ../src/guestfs-actions.pod:8509
19145 msgid ""
19146 "This calls the external C<zegrep -i> program and returns the matching lines."
19147 msgstr ""
19148
19149 #. type: =head2
19150 #: ../fish/guestfish-actions.pod:5504
19151 msgid "zero"
19152 msgstr "zero"
19153
19154 #. type: verbatim
19155 #: ../fish/guestfish-actions.pod:5506
19156 #, no-wrap
19157 msgid ""
19158 " zero device\n"
19159 "\n"
19160 msgstr ""
19161 " zero пристрій\n"
19162 "\n"
19163
19164 #. type: textblock
19165 #: ../fish/guestfish-actions.pod:5508 ../src/guestfs-actions.pod:8527
19166 msgid "This command writes zeroes over the first few blocks of C<device>."
19167 msgstr ""
19168
19169 #. type: textblock
19170 #: ../fish/guestfish-actions.pod:5510 ../src/guestfs-actions.pod:8529
19171 msgid ""
19172 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
19173 "securely wipe the device).  It should be sufficient to remove any partition "
19174 "tables, filesystem superblocks and so on."
19175 msgstr ""
19176
19177 #. type: textblock
19178 #: ../fish/guestfish-actions.pod:5514 ../fish/guestfish-actions.pod:5529
19179 #: ../src/guestfs-actions.pod:8533 ../src/guestfs-actions.pod:8559
19180 msgid ""
19181 "If blocks are already zero, then this command avoids writing zeroes.  This "
19182 "prevents the underlying device from becoming non-sparse or growing "
19183 "unnecessarily."
19184 msgstr ""
19185
19186 #. type: textblock
19187 #: ../fish/guestfish-actions.pod:5518
19188 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
19189 msgstr ""
19190
19191 #. type: =head2
19192 #: ../fish/guestfish-actions.pod:5521
19193 msgid "zero-device"
19194 msgstr "zero-device"
19195
19196 #. type: verbatim
19197 #: ../fish/guestfish-actions.pod:5523
19198 #, no-wrap
19199 msgid ""
19200 " zero-device device\n"
19201 "\n"
19202 msgstr ""
19203 " zero-device пристрій\n"
19204 "\n"
19205
19206 #. type: textblock
19207 #: ../fish/guestfish-actions.pod:5525
19208 msgid ""
19209 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
19210 "which just zeroes the first few blocks of a device."
19211 msgstr ""
19212
19213 #. type: =head2
19214 #: ../fish/guestfish-actions.pod:5533
19215 msgid "zerofree"
19216 msgstr "zerofree"
19217
19218 #. type: verbatim
19219 #: ../fish/guestfish-actions.pod:5535
19220 #, no-wrap
19221 msgid ""
19222 " zerofree device\n"
19223 "\n"
19224 msgstr ""
19225 " zerofree пристрій\n"
19226 "\n"
19227
19228 #. type: textblock
19229 #: ../fish/guestfish-actions.pod:5537 ../src/guestfs-actions.pod:8578
19230 msgid ""
19231 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
19232 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
19233 "possible to compress the filesystem more effectively."
19234 msgstr ""
19235
19236 #. type: textblock
19237 #: ../fish/guestfish-actions.pod:5542 ../src/guestfs-actions.pod:8583
19238 msgid "You should B<not> run this program if the filesystem is mounted."
19239 msgstr ""
19240
19241 #. type: textblock
19242 #: ../fish/guestfish-actions.pod:5545 ../src/guestfs-actions.pod:8586
19243 msgid ""
19244 "It is possible that using this program can damage the filesystem or data on "
19245 "the filesystem."
19246 msgstr ""
19247
19248 #. type: =head2
19249 #: ../fish/guestfish-actions.pod:5548
19250 msgid "zfgrep"
19251 msgstr "zfgrep"
19252
19253 #. type: verbatim
19254 #: ../fish/guestfish-actions.pod:5550
19255 #, no-wrap
19256 msgid ""
19257 " zfgrep pattern path\n"
19258 "\n"
19259 msgstr ""
19260 " zfgrep шаблон шлях\n"
19261 "\n"
19262
19263 #. type: textblock
19264 #: ../fish/guestfish-actions.pod:5552 ../src/guestfs-actions.pod:8600
19265 msgid ""
19266 "This calls the external C<zfgrep> program and returns the matching lines."
19267 msgstr ""
19268
19269 #. type: =head2
19270 #: ../fish/guestfish-actions.pod:5558
19271 msgid "zfgrepi"
19272 msgstr "zfgrepi"
19273
19274 #. type: verbatim
19275 #: ../fish/guestfish-actions.pod:5560
19276 #, no-wrap
19277 msgid ""
19278 " zfgrepi pattern path\n"
19279 "\n"
19280 msgstr ""
19281 " zfgrepi шаблон шлях\n"
19282 "\n"
19283
19284 #. type: textblock
19285 #: ../fish/guestfish-actions.pod:5562 ../src/guestfs-actions.pod:8619
19286 msgid ""
19287 "This calls the external C<zfgrep -i> program and returns the matching lines."
19288 msgstr ""
19289
19290 #. type: =head2
19291 #: ../fish/guestfish-actions.pod:5568
19292 msgid "zfile"
19293 msgstr "zfile"
19294
19295 #. type: verbatim
19296 #: ../fish/guestfish-actions.pod:5570
19297 #, no-wrap
19298 msgid ""
19299 " zfile meth path\n"
19300 "\n"
19301 msgstr ""
19302 " zfile метод шлях\n"
19303 "\n"
19304
19305 #. type: textblock
19306 #: ../fish/guestfish-actions.pod:5572 ../src/guestfs-actions.pod:8645
19307 msgid ""
19308 "This command runs C<file> after first decompressing C<path> using C<method>."
19309 msgstr ""
19310
19311 #. type: textblock
19312 #: ../fish/guestfish-actions.pod:5575 ../src/guestfs-actions.pod:8648
19313 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
19314 msgstr ""
19315
19316 #. type: textblock
19317 #: ../fish/guestfish-actions.pod:5577
19318 msgid ""
19319 "Since 1.0.63, use L</file> instead which can now process compressed files."
19320 msgstr ""
19321
19322 #. type: textblock
19323 #: ../fish/guestfish-actions.pod:5580
19324 msgid ""
19325 "I<This function is deprecated.> In new code, use the L</file> call instead."
19326 msgstr ""
19327
19328 #. type: =head2
19329 #: ../fish/guestfish-actions.pod:5587
19330 msgid "zgrep"
19331 msgstr "zgrep"
19332
19333 #. type: verbatim
19334 #: ../fish/guestfish-actions.pod:5589
19335 #, no-wrap
19336 msgid ""
19337 " zgrep regex path\n"
19338 "\n"
19339 msgstr ""
19340 " zgrep формальний_вираз шлях\n"
19341 "\n"
19342
19343 #. type: textblock
19344 #: ../fish/guestfish-actions.pod:5591 ../src/guestfs-actions.pod:8665
19345 msgid ""
19346 "This calls the external C<zgrep> program and returns the matching lines."
19347 msgstr ""
19348
19349 #. type: =head2
19350 #: ../fish/guestfish-actions.pod:5597
19351 msgid "zgrepi"
19352 msgstr "zgrepi"
19353
19354 #. type: verbatim
19355 #: ../fish/guestfish-actions.pod:5599
19356 #, no-wrap
19357 msgid ""
19358 " zgrepi regex path\n"
19359 "\n"
19360 msgstr ""
19361 " zgrepi формальний_вираз шлях\n"
19362 "\n"
19363
19364 #. type: textblock
19365 #: ../fish/guestfish-actions.pod:5601 ../src/guestfs-actions.pod:8684
19366 msgid ""
19367 "This calls the external C<zgrep -i> program and returns the matching lines."
19368 msgstr ""
19369
19370 #. type: =head2
19371 #: ../fish/guestfish-commands.pod:1
19372 msgid "alloc"
19373 msgstr "alloc"
19374
19375 #. type: =head2
19376 #: ../fish/guestfish-commands.pod:3
19377 msgid "allocate"
19378 msgstr ""
19379
19380 #. type: verbatim
19381 #: ../fish/guestfish-commands.pod:5
19382 #, no-wrap
19383 msgid ""
19384 " alloc filename size\n"
19385 "\n"
19386 msgstr ""
19387
19388 #. type: textblock
19389 #: ../fish/guestfish-commands.pod:7
19390 msgid ""
19391 "This creates an empty (zeroed) file of the given size, and then adds so it "
19392 "can be further examined."
19393 msgstr ""
19394
19395 #. type: textblock
19396 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
19397 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
19398 msgstr ""
19399
19400 #. type: textblock
19401 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
19402 msgid "Size can be specified using standard suffixes, eg. C<1M>."
19403 msgstr ""
19404
19405 #. type: textblock
19406 #: ../fish/guestfish-commands.pod:14
19407 msgid ""
19408 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
19409 "image, see L</PREPARED DISK IMAGES>."
19410 msgstr ""
19411
19412 #. type: =head2
19413 #: ../fish/guestfish-commands.pod:17
19414 msgid "copy-in"
19415 msgstr "copy-in"
19416
19417 #. type: verbatim
19418 #: ../fish/guestfish-commands.pod:19
19419 #, no-wrap
19420 msgid ""
19421 " copy-in local [local ...] /remotedir\n"
19422 "\n"
19423 msgstr ""
19424
19425 #. type: textblock
19426 #: ../fish/guestfish-commands.pod:21
19427 msgid ""
19428 "C<copy-in> copies local files or directories recursively into the disk "
19429 "image, placing them in the directory called C</remotedir> (which must "
19430 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
19431 "other commands as necessary."
19432 msgstr ""
19433
19434 #. type: textblock
19435 #: ../fish/guestfish-commands.pod:26
19436 msgid ""
19437 "Multiple local files and directories can be specified, but the last "
19438 "parameter must always be a remote directory.  Wildcards cannot be used."
19439 msgstr ""
19440
19441 #. type: =head2
19442 #: ../fish/guestfish-commands.pod:30
19443 msgid "copy-out"
19444 msgstr "copy-out"
19445
19446 #. type: verbatim
19447 #: ../fish/guestfish-commands.pod:32
19448 #, no-wrap
19449 msgid ""
19450 " copy-out remote [remote ...] localdir\n"
19451 "\n"
19452 msgstr ""
19453
19454 #. type: textblock
19455 #: ../fish/guestfish-commands.pod:34
19456 msgid ""
19457 "C<copy-out> copies remote files or directories recursively out of the disk "
19458 "image, placing them on the host disk in a local directory called C<localdir> "
19459 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
19460 "download>, L</tar-out> and other commands as necessary."
19461 msgstr ""
19462
19463 #. type: textblock
19464 #: ../fish/guestfish-commands.pod:40
19465 msgid ""
19466 "Multiple remote files and directories can be specified, but the last "
19467 "parameter must always be a local directory.  To download to the current "
19468 "directory, use C<.> as in:"
19469 msgstr ""
19470
19471 #. type: verbatim
19472 #: ../fish/guestfish-commands.pod:44
19473 #, no-wrap
19474 msgid ""
19475 " copy-out /home .\n"
19476 "\n"
19477 msgstr ""
19478 " copy-out /home .\n"
19479 "\n"
19480
19481 #. type: textblock
19482 #: ../fish/guestfish-commands.pod:46
19483 msgid ""
19484 "Wildcards cannot be used in the ordinary command, but you can use them with "
19485 "the help of L</glob> like this:"
19486 msgstr ""
19487
19488 #. type: verbatim
19489 #: ../fish/guestfish-commands.pod:49
19490 #, no-wrap
19491 msgid ""
19492 " glob copy-out /home/* .\n"
19493 "\n"
19494 msgstr ""
19495 " glob copy-out /home/* .\n"
19496 "\n"
19497
19498 #. type: =head2
19499 #: ../fish/guestfish-commands.pod:51
19500 msgid "display"
19501 msgstr ""
19502
19503 #. type: verbatim
19504 #: ../fish/guestfish-commands.pod:53
19505 #, no-wrap
19506 msgid ""
19507 " display filename\n"
19508 "\n"
19509 msgstr ""
19510
19511 #. type: textblock
19512 #: ../fish/guestfish-commands.pod:55
19513 msgid ""
19514 "Use C<display> (a graphical display program) to display an image file.  It "
19515 "downloads the file, and runs C<display> on it."
19516 msgstr ""
19517
19518 #. type: textblock
19519 #: ../fish/guestfish-commands.pod:58
19520 msgid ""
19521 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
19522 "environment variable.  For example to use the GNOME display program:"
19523 msgstr ""
19524
19525 #. type: verbatim
19526 #: ../fish/guestfish-commands.pod:61
19527 #, no-wrap
19528 msgid ""
19529 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
19530 "\n"
19531 msgstr ""
19532
19533 #. type: textblock
19534 #: ../fish/guestfish-commands.pod:63
19535 msgid "See also L<display(1)>."
19536 msgstr "Див. також L<display(1)>."
19537
19538 #. type: =head2
19539 #: ../fish/guestfish-commands.pod:65
19540 msgid "echo"
19541 msgstr "echo"
19542
19543 #. type: verbatim
19544 #: ../fish/guestfish-commands.pod:67
19545 #, no-wrap
19546 msgid ""
19547 " echo [params ...]\n"
19548 "\n"
19549 msgstr ""
19550 " echo [параметри...]\n"
19551 "\n"
19552
19553 #. type: textblock
19554 #: ../fish/guestfish-commands.pod:69
19555 msgid "This echos the parameters to the terminal."
19556 msgstr ""
19557
19558 #. type: =head2
19559 #: ../fish/guestfish-commands.pod:71
19560 msgid "edit"
19561 msgstr "edit"
19562
19563 #. type: =head2
19564 #: ../fish/guestfish-commands.pod:73
19565 msgid "vi"
19566 msgstr "vi"
19567
19568 #. type: =head2
19569 #: ../fish/guestfish-commands.pod:75
19570 msgid "emacs"
19571 msgstr "emacs"
19572
19573 #. type: verbatim
19574 #: ../fish/guestfish-commands.pod:77
19575 #, no-wrap
19576 msgid ""
19577 " edit filename\n"
19578 "\n"
19579 msgstr ""
19580 " edit назва_файла\n"
19581 "\n"
19582
19583 #. type: textblock
19584 #: ../fish/guestfish-commands.pod:79
19585 msgid ""
19586 "This is used to edit a file.  It downloads the file, edits it locally using "
19587 "your editor, then uploads the result."
19588 msgstr ""
19589
19590 #. type: textblock
19591 #: ../fish/guestfish-commands.pod:82
19592 msgid ""
19593 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
19594 "or C<emacs> you will get those corresponding editors."
19595 msgstr ""
19596
19597 #. type: =head2
19598 #: ../fish/guestfish-commands.pod:86
19599 msgid "glob"
19600 msgstr "glob"
19601
19602 #. type: verbatim
19603 #: ../fish/guestfish-commands.pod:88
19604 #, no-wrap
19605 msgid ""
19606 " glob command args...\n"
19607 "\n"
19608 msgstr ""
19609 " glob команда параметри...\n"
19610 "\n"
19611
19612 #. type: textblock
19613 #: ../fish/guestfish-commands.pod:90
19614 msgid ""
19615 "Expand wildcards in any paths in the args list, and run C<command> "
19616 "repeatedly on each matching path."
19617 msgstr ""
19618
19619 #. type: textblock
19620 #: ../fish/guestfish-commands.pod:93
19621 msgid "See L</WILDCARDS AND GLOBBING>."
19622 msgstr "Див. L</WILDCARDS AND GLOBBING>."
19623
19624 #. type: =head2
19625 #: ../fish/guestfish-commands.pod:95
19626 msgid "hexedit"
19627 msgstr "hexedit"
19628
19629 #. type: verbatim
19630 #: ../fish/guestfish-commands.pod:97
19631 #, no-wrap
19632 msgid ""
19633 " hexedit <filename|device>\n"
19634 " hexedit <filename|device> <max>\n"
19635 " hexedit <filename|device> <start> <max>\n"
19636 "\n"
19637 msgstr ""
19638
19639 #. type: textblock
19640 #: ../fish/guestfish-commands.pod:101
19641 msgid ""
19642 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
19643 "device."
19644 msgstr ""
19645
19646 #. type: textblock
19647 #: ../fish/guestfish-commands.pod:104
19648 msgid ""
19649 "This command works by downloading potentially the whole file or device, "
19650 "editing it locally, then uploading it.  If the file or device is large, you "
19651 "have to specify which part you wish to edit by using C<max> and/or C<start> "
19652 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
19653 "usual modifiers allowed such as C<1M> (1 megabyte)."
19654 msgstr ""
19655
19656 #. type: textblock
19657 #: ../fish/guestfish-commands.pod:111
19658 msgid "For example to edit the first few sectors of a disk you might do:"
19659 msgstr ""
19660
19661 #. type: verbatim
19662 #: ../fish/guestfish-commands.pod:114
19663 #, no-wrap
19664 msgid ""
19665 " hexedit /dev/sda 1M\n"
19666 "\n"
19667 msgstr ""
19668 " hexedit /dev/sda 1M\n"
19669 "\n"
19670
19671 #. type: textblock
19672 #: ../fish/guestfish-commands.pod:116
19673 msgid ""
19674 "which would allow you to edit anywhere within the first megabyte of the disk."
19675 msgstr ""
19676
19677 #. type: textblock
19678 #: ../fish/guestfish-commands.pod:119
19679 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
19680 msgstr ""
19681
19682 #. type: verbatim
19683 #: ../fish/guestfish-commands.pod:121
19684 #, no-wrap
19685 msgid ""
19686 " hexedit /dev/sda1 0x400 0x400\n"
19687 "\n"
19688 msgstr ""
19689 " hexedit /dev/sda1 0x400 0x400\n"
19690 "\n"
19691
19692 #. type: textblock
19693 #: ../fish/guestfish-commands.pod:123
19694 msgid "(assuming the superblock is in the standard location)."
19695 msgstr ""
19696
19697 #. type: textblock
19698 #: ../fish/guestfish-commands.pod:125
19699 msgid ""
19700 "This command requires the external L<hexedit(1)> program.  You can specify "
19701 "another program to use by setting the C<HEXEDITOR> environment variable."
19702 msgstr ""
19703
19704 #. type: textblock
19705 #: ../fish/guestfish-commands.pod:129
19706 msgid "See also L</hexdump>."
19707 msgstr "Див. також L</hexdump>."
19708
19709 #. type: =head2
19710 #: ../fish/guestfish-commands.pod:131
19711 msgid "lcd"
19712 msgstr "lcd"
19713
19714 #. type: verbatim
19715 #: ../fish/guestfish-commands.pod:133
19716 #, no-wrap
19717 msgid ""
19718 " lcd directory\n"
19719 "\n"
19720 msgstr ""
19721
19722 #. type: textblock
19723 #: ../fish/guestfish-commands.pod:135
19724 msgid ""
19725 "Change the local directory, ie. the current directory of guestfish itself."
19726 msgstr ""
19727
19728 #. type: textblock
19729 #: ../fish/guestfish-commands.pod:138
19730 msgid "Note that C<!cd> won't do what you might expect."
19731 msgstr ""
19732
19733 #. type: =head2
19734 #: ../fish/guestfish-commands.pod:140
19735 msgid "man"
19736 msgstr "man"
19737
19738 #. type: =head2
19739 #: ../fish/guestfish-commands.pod:142
19740 msgid "manual"
19741 msgstr "підручник"
19742
19743 #. type: verbatim
19744 #: ../fish/guestfish-commands.pod:144
19745 #, no-wrap
19746 msgid ""
19747 "  man\n"
19748 "\n"
19749 msgstr ""
19750 "  man\n"
19751 "\n"
19752
19753 #. type: textblock
19754 #: ../fish/guestfish-commands.pod:146
19755 msgid "Opens the manual page for guestfish."
19756 msgstr ""
19757
19758 #. type: =head2
19759 #: ../fish/guestfish-commands.pod:148
19760 msgid "more"
19761 msgstr "more"
19762
19763 #. type: =head2
19764 #: ../fish/guestfish-commands.pod:150
19765 msgid "less"
19766 msgstr "less"
19767
19768 #. type: verbatim
19769 #: ../fish/guestfish-commands.pod:152
19770 #, no-wrap
19771 msgid ""
19772 " more filename\n"
19773 "\n"
19774 msgstr ""
19775
19776 #. type: verbatim
19777 #: ../fish/guestfish-commands.pod:154
19778 #, no-wrap
19779 msgid ""
19780 " less filename\n"
19781 "\n"
19782 msgstr ""
19783
19784 #. type: textblock
19785 #: ../fish/guestfish-commands.pod:156
19786 msgid "This is used to view a file."
19787 msgstr ""
19788
19789 #. type: textblock
19790 #: ../fish/guestfish-commands.pod:158
19791 msgid ""
19792 "The default viewer is C<$PAGER>.  However if you use the alternate command "
19793 "C<less> you will get the C<less> command specifically."
19794 msgstr ""
19795
19796 #. type: =head2
19797 #: ../fish/guestfish-commands.pod:161
19798 msgid "reopen"
19799 msgstr "reopen"
19800
19801 #. type: verbatim
19802 #: ../fish/guestfish-commands.pod:163
19803 #, no-wrap
19804 msgid ""
19805 "  reopen\n"
19806 "\n"
19807 msgstr ""
19808
19809 #. type: textblock
19810 #: ../fish/guestfish-commands.pod:165
19811 msgid ""
19812 "Close and reopen the libguestfs handle.  It is not necessary to use this "
19813 "normally, because the handle is closed properly when guestfish exits.  "
19814 "However this is occasionally useful for testing."
19815 msgstr ""
19816
19817 #. type: =head2
19818 #: ../fish/guestfish-commands.pod:169
19819 msgid "setenv"
19820 msgstr ""
19821
19822 #. type: verbatim
19823 #: ../fish/guestfish-commands.pod:171
19824 #, no-wrap
19825 msgid ""
19826 "  setenv VAR value\n"
19827 "\n"
19828 msgstr ""
19829
19830 #. type: textblock
19831 #: ../fish/guestfish-commands.pod:173
19832 msgid "Set the environment variable C<VAR> to the string C<value>."
19833 msgstr ""
19834
19835 #. type: textblock
19836 #: ../fish/guestfish-commands.pod:175
19837 msgid ""
19838 "To print the value of an environment variable use a shell command such as:"
19839 msgstr ""
19840
19841 #. type: verbatim
19842 #: ../fish/guestfish-commands.pod:178
19843 #, no-wrap
19844 msgid ""
19845 " !echo $VAR\n"
19846 "\n"
19847 msgstr ""
19848
19849 #. type: =head2
19850 #: ../fish/guestfish-commands.pod:180
19851 msgid "sparse"
19852 msgstr "sparse"
19853
19854 #. type: verbatim
19855 #: ../fish/guestfish-commands.pod:182
19856 #, no-wrap
19857 msgid ""
19858 " sparse filename size\n"
19859 "\n"
19860 msgstr ""
19861
19862 #. type: textblock
19863 #: ../fish/guestfish-commands.pod:184
19864 msgid ""
19865 "This creates an empty sparse file of the given size, and then adds so it can "
19866 "be further examined."
19867 msgstr ""
19868
19869 #. type: textblock
19870 #: ../fish/guestfish-commands.pod:187
19871 msgid ""
19872 "In all respects it works the same as the L</alloc> command, except that the "
19873 "image file is allocated sparsely, which means that disk blocks are not "
19874 "assigned to the file until they are needed.  Sparse disk files only use "
19875 "space when written to, but they are slower and there is a danger you could "
19876 "run out of real disk space during a write operation."
19877 msgstr ""
19878
19879 #. type: =head2
19880 #: ../fish/guestfish-commands.pod:197
19881 msgid "supported"
19882 msgstr "supported"
19883
19884 #. type: verbatim
19885 #: ../fish/guestfish-commands.pod:199
19886 #, no-wrap
19887 msgid ""
19888 " supported\n"
19889 "\n"
19890 msgstr ""
19891 " supported\n"
19892 "\n"
19893
19894 #. type: textblock
19895 #: ../fish/guestfish-commands.pod:201
19896 msgid ""
19897 "This command returns a list of the optional groups known to the daemon, and "
19898 "indicates which ones are supported by this build of the libguestfs appliance."
19899 msgstr ""
19900
19901 #. type: textblock
19902 #: ../fish/guestfish-commands.pod:205
19903 msgid "See also L<guestfs(3)/AVAILABILITY>."
19904 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
19905
19906 #. type: =head2
19907 #: ../fish/guestfish-commands.pod:207
19908 msgid "time"
19909 msgstr "time"
19910
19911 #. type: verbatim
19912 #: ../fish/guestfish-commands.pod:209
19913 #, no-wrap
19914 msgid ""
19915 " time command args...\n"
19916 "\n"
19917 msgstr ""
19918
19919 #. type: textblock
19920 #: ../fish/guestfish-commands.pod:211
19921 msgid ""
19922 "Run the command as usual, but print the elapsed time afterwards.  This can "
19923 "be useful for benchmarking operations."
19924 msgstr ""
19925
19926 #. type: =head2
19927 #: ../fish/guestfish-commands.pod:214
19928 msgid "unsetenv"
19929 msgstr ""
19930
19931 #. type: verbatim
19932 #: ../fish/guestfish-commands.pod:216
19933 #, no-wrap
19934 msgid ""
19935 "  unsetenv VAR\n"
19936 "\n"
19937 msgstr ""
19938
19939 #. type: textblock
19940 #: ../fish/guestfish-commands.pod:218
19941 msgid "Remove C<VAR> from the environment."
19942 msgstr ""
19943
19944 #. type: textblock
19945 #: ../fish/guestfish.pod:5
19946 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
19947 msgstr ""
19948
19949 #. type: verbatim
19950 #: ../fish/guestfish.pod:9
19951 #, no-wrap
19952 msgid ""
19953 " guestfish [--options] [commands]\n"
19954 "\n"
19955 msgstr ""
19956
19957 #. type: verbatim
19958 #: ../fish/guestfish.pod:11
19959 #, no-wrap
19960 msgid ""
19961 " guestfish\n"
19962 "\n"
19963 msgstr ""
19964
19965 #. type: verbatim
19966 #: ../fish/guestfish.pod:13
19967 #, no-wrap
19968 msgid ""
19969 " guestfish [--ro|--rw] -a disk.img\n"
19970 "\n"
19971 msgstr ""
19972
19973 #. type: verbatim
19974 #: ../fish/guestfish.pod:15
19975 #, no-wrap
19976 msgid ""
19977 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
19978 "\n"
19979 msgstr ""
19980
19981 #. type: verbatim
19982 #: ../fish/guestfish.pod:17
19983 #, no-wrap
19984 msgid ""
19985 " guestfish -d libvirt-domain\n"
19986 "\n"
19987 msgstr ""
19988
19989 #. type: verbatim
19990 #: ../fish/guestfish.pod:19
19991 #, no-wrap
19992 msgid ""
19993 " guestfish [--ro|--rw] -a disk.img -i\n"
19994 "\n"
19995 msgstr ""
19996
19997 #. type: verbatim
19998 #: ../fish/guestfish.pod:21
19999 #, no-wrap
20000 msgid ""
20001 " guestfish -d libvirt-domain -i\n"
20002 "\n"
20003 msgstr ""
20004
20005 #. type: textblock
20006 #: ../fish/guestfish.pod:25
20007 msgid ""
20008 "Using guestfish in read/write mode on live virtual machines can be "
20009 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
20010 "option to use guestfish safely if the disk image or virtual machine might be "
20011 "live."
20012 msgstr ""
20013
20014 #. type: textblock
20015 #: ../fish/guestfish.pod:32
20016 msgid ""
20017 "Guestfish is a shell and command-line tool for examining and modifying "
20018 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
20019 "functionality of the guestfs API, see L<guestfs(3)>."
20020 msgstr ""
20021
20022 #. type: textblock
20023 #: ../fish/guestfish.pod:36
20024 msgid ""
20025 "Guestfish gives you structured access to the libguestfs API, from shell "
20026 "scripts or the command line or interactively.  If you want to rescue a "
20027 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
20028 "command."
20029 msgstr ""
20030
20031 #. type: =head2
20032 #: ../fish/guestfish.pod:43
20033 msgid "As an interactive shell"
20034 msgstr ""
20035
20036 #. type: verbatim
20037 #: ../fish/guestfish.pod:45
20038 #, no-wrap
20039 msgid ""
20040 " $ guestfish\n"
20041 " \n"
20042 msgstr ""
20043
20044 #. type: verbatim
20045 #: ../fish/guestfish.pod:47
20046 #, no-wrap
20047 msgid ""
20048 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
20049 " editing virtual machine filesystems.\n"
20050 " \n"
20051 msgstr ""
20052
20053 #. type: verbatim
20054 #: ../fish/guestfish.pod:50
20055 #, no-wrap
20056 msgid ""
20057 " Type: 'help' for a list of commands\n"
20058 "       'man' to read the manual\n"
20059 "       'quit' to quit the shell\n"
20060 " \n"
20061 msgstr ""
20062
20063 #. type: verbatim
20064 #: ../fish/guestfish.pod:54
20065 #, no-wrap
20066 msgid ""
20067 " ><fs> add-ro disk.img\n"
20068 " ><fs> run\n"
20069 " ><fs> list-filesystems\n"
20070 " /dev/sda1: ext4\n"
20071 " /dev/vg_guest/lv_root: ext4\n"
20072 " /dev/vg_guest/lv_swap: swap\n"
20073 " ><fs> mount /dev/vg_guest/lv_root /\n"
20074 " ><fs> cat /etc/fstab\n"
20075 " # /etc/fstab\n"
20076 " # Created by anaconda\n"
20077 " [...]\n"
20078 " ><fs> exit\n"
20079 "\n"
20080 msgstr ""
20081
20082 #. type: =head2
20083 #: ../fish/guestfish.pod:67
20084 msgid "From shell scripts"
20085 msgstr ""
20086
20087 #. type: textblock
20088 #: ../fish/guestfish.pod:69
20089 msgid "Create a new C</etc/motd> file in a guest or disk image:"
20090 msgstr ""
20091
20092 #. type: verbatim
20093 #: ../fish/guestfish.pod:71
20094 #, no-wrap
20095 msgid ""
20096 " guestfish <<_EOF_\n"
20097 " add disk.img\n"
20098 " run\n"
20099 " mount /dev/vg_guest/lv_root /\n"
20100 " write /etc/motd \"Welcome, new users\"\n"
20101 " _EOF_\n"
20102 "\n"
20103 msgstr ""
20104
20105 #. type: textblock
20106 #: ../fish/guestfish.pod:78
20107 msgid "List the LVM logical volumes in a disk image:"
20108 msgstr ""
20109
20110 #. type: verbatim
20111 #: ../fish/guestfish.pod:80
20112 #, no-wrap
20113 msgid ""
20114 " guestfish -a disk.img --ro <<_EOF_\n"
20115 " run\n"
20116 " lvs\n"
20117 " _EOF_\n"
20118 "\n"
20119 msgstr ""
20120
20121 #. type: textblock
20122 #: ../fish/guestfish.pod:85
20123 msgid "List all the filesystems in a disk image:"
20124 msgstr ""
20125
20126 #. type: verbatim
20127 #: ../fish/guestfish.pod:87
20128 #, no-wrap
20129 msgid ""
20130 " guestfish -a disk.img --ro <<_EOF_\n"
20131 " run\n"
20132 " list-filesystems\n"
20133 " _EOF_\n"
20134 "\n"
20135 msgstr ""
20136
20137 #. type: =head2
20138 #: ../fish/guestfish.pod:92
20139 msgid "On one command line"
20140 msgstr ""
20141
20142 #. type: textblock
20143 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
20144 msgid "Update C</etc/resolv.conf> in a guest:"
20145 msgstr ""
20146
20147 #. type: verbatim
20148 #: ../fish/guestfish.pod:96
20149 #, no-wrap
20150 msgid ""
20151 " guestfish \\\n"
20152 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
20153 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
20154 "\n"
20155 msgstr ""
20156
20157 #. type: textblock
20158 #: ../fish/guestfish.pod:100
20159 msgid "Edit C</boot/grub/grub.conf> interactively:"
20160 msgstr ""
20161
20162 #. type: verbatim
20163 #: ../fish/guestfish.pod:102
20164 #, no-wrap
20165 msgid ""
20166 " guestfish --rw --add disk.img \\\n"
20167 "   --mount /dev/vg_guest/lv_root \\\n"
20168 "   --mount /dev/sda1:/boot \\\n"
20169 "   edit /boot/grub/grub.conf\n"
20170 "\n"
20171 msgstr ""
20172
20173 #. type: =head2
20174 #: ../fish/guestfish.pod:107
20175 msgid "Mount disks automatically"
20176 msgstr ""
20177
20178 #. type: textblock
20179 #: ../fish/guestfish.pod:109
20180 msgid ""
20181 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
20182 msgstr ""
20183
20184 #. type: verbatim
20185 #: ../fish/guestfish.pod:112
20186 #, no-wrap
20187 msgid ""
20188 " guestfish --ro -a disk.img -i cat /etc/group\n"
20189 "\n"
20190 msgstr ""
20191
20192 #. type: verbatim
20193 #: ../fish/guestfish.pod:114
20194 #, no-wrap
20195 msgid ""
20196 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
20197 "\n"
20198 msgstr ""
20199
20200 #. type: textblock
20201 #: ../fish/guestfish.pod:116
20202 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
20203 msgstr ""
20204
20205 #. type: verbatim
20206 #: ../fish/guestfish.pod:118
20207 #, no-wrap
20208 msgid ""
20209 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
20210 "\n"
20211 msgstr ""
20212
20213 #. type: =head2
20214 #: ../fish/guestfish.pod:120
20215 msgid "As a script interpreter"
20216 msgstr ""
20217
20218 #. type: textblock
20219 #: ../fish/guestfish.pod:122
20220 msgid "Create a 100MB disk containing an ext2-formatted partition:"
20221 msgstr ""
20222
20223 #. type: verbatim
20224 #: ../fish/guestfish.pod:124
20225 #, no-wrap
20226 msgid ""
20227 " #!/usr/bin/guestfish -f\n"
20228 " sparse test1.img 100M\n"
20229 " run\n"
20230 " part-disk /dev/sda mbr\n"
20231 " mkfs ext2 /dev/sda1\n"
20232 "\n"
20233 msgstr ""
20234
20235 #. type: =head2
20236 #: ../fish/guestfish.pod:130
20237 msgid "Start with a prepared disk"
20238 msgstr ""
20239
20240 #. type: textblock
20241 #: ../fish/guestfish.pod:132
20242 msgid ""
20243 "An alternate way to create a 100MB disk called C<test1.img> containing a "
20244 "single ext2-formatted partition:"
20245 msgstr ""
20246
20247 #. type: verbatim
20248 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2243
20249 #, no-wrap
20250 msgid ""
20251 " guestfish -N fs\n"
20252 "\n"
20253 msgstr ""
20254
20255 #. type: textblock
20256 #: ../fish/guestfish.pod:137
20257 msgid "To list what is available do:"
20258 msgstr ""
20259
20260 #. type: verbatim
20261 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
20262 #, no-wrap
20263 msgid ""
20264 " guestfish -N help | less\n"
20265 "\n"
20266 msgstr ""
20267
20268 #. type: =head2
20269 #: ../fish/guestfish.pod:141
20270 msgid "Remote control"
20271 msgstr "Дистанційне керування"
20272
20273 #. type: verbatim
20274 #: ../fish/guestfish.pod:143
20275 #, no-wrap
20276 msgid ""
20277 " eval \"`guestfish --listen`\"\n"
20278 " guestfish --remote add-ro disk.img\n"
20279 " guestfish --remote run\n"
20280 " guestfish --remote lvs\n"
20281 "\n"
20282 msgstr ""
20283 " eval \"`guestfish --listen`\"\n"
20284 " guestfish --remote add-ro disk.img\n"
20285 " guestfish --remote run\n"
20286 " guestfish --remote lvs\n"
20287 "\n"
20288
20289 #. type: textblock
20290 #: ../fish/guestfish.pod:154
20291 msgid "Displays general help on options."
20292 msgstr ""
20293
20294 #. type: =item
20295 #: ../fish/guestfish.pod:158
20296 msgid "B<--cmd-help>"
20297 msgstr "B<--cmd-help>"
20298
20299 #. type: textblock
20300 #: ../fish/guestfish.pod:160
20301 msgid "Lists all available guestfish commands."
20302 msgstr ""
20303
20304 #. type: =item
20305 #: ../fish/guestfish.pod:162
20306 msgid "B<-h cmd>"
20307 msgstr "B<-h команда>"
20308
20309 #. type: =item
20310 #: ../fish/guestfish.pod:164
20311 msgid "B<--cmd-help cmd>"
20312 msgstr "B<--cmd-help команда>"
20313
20314 #. type: textblock
20315 #: ../fish/guestfish.pod:166
20316 msgid "Displays detailed help on a single command C<cmd>."
20317 msgstr ""
20318
20319 #. type: =item
20320 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
20321 msgid "B<-a image>"
20322 msgstr "B<-a образ>"
20323
20324 #. type: =item
20325 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
20326 msgid "B<--add image>"
20327 msgstr "B<--add образ>"
20328
20329 #. type: textblock
20330 #: ../fish/guestfish.pod:172
20331 msgid "Add a block device or virtual machine image to the shell."
20332 msgstr ""
20333
20334 #. type: textblock
20335 #: ../fish/guestfish.pod:177
20336 msgid ""
20337 "Using this flag is mostly equivalent to using the C<add> command, with "
20338 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
20339 "the I<--format=...> flag was given."
20340 msgstr ""
20341
20342 #. type: textblock
20343 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
20344 msgid ""
20345 "When used in conjunction with the I<-d> option, this specifies the libvirt "
20346 "URI to use.  The default is to use the default libvirt connection."
20347 msgstr ""
20348
20349 #. type: =item
20350 #: ../fish/guestfish.pod:189
20351 msgid "B<--csh>"
20352 msgstr "B<--csh>"
20353
20354 #. type: textblock
20355 #: ../fish/guestfish.pod:191
20356 msgid ""
20357 "If using the I<--listen> option and a csh-like shell, use this option.  See "
20358 "section L</REMOTE CONTROL AND CSH> below."
20359 msgstr ""
20360
20361 #. type: =item
20362 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
20363 msgid "B<-d libvirt-domain>"
20364 msgstr "B<-d домен-libvirt>"
20365
20366 #. type: =item
20367 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
20368 msgid "B<--domain libvirt-domain>"
20369 msgstr "B<--domain домен-libvirt>"
20370
20371 #. type: textblock
20372 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
20373 msgid ""
20374 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
20375 "used, then any libvirt domain can be used.  However in write mode, only "
20376 "libvirt domains which are shut down can be named here."
20377 msgstr ""
20378
20379 #. type: textblock
20380 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
20381 msgid "Domain UUIDs can be used instead of names."
20382 msgstr ""
20383
20384 #. type: textblock
20385 #: ../fish/guestfish.pod:204
20386 msgid ""
20387 "Using this flag is mostly equivalent to using the C<add-domain> command, "
20388 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
20389 "if the I<--format:...> flag was given."
20390 msgstr ""
20391
20392 #. type: =item
20393 #: ../fish/guestfish.pod:208
20394 msgid "B<-D>"
20395 msgstr "B<-D>"
20396
20397 #. type: =item
20398 #: ../fish/guestfish.pod:210
20399 msgid "B<--no-dest-paths>"
20400 msgstr "B<--no-dest-paths>"
20401
20402 #. type: textblock
20403 #: ../fish/guestfish.pod:212
20404 msgid ""
20405 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
20406 "to hit the tab key to complete paths on the guest filesystem, but this "
20407 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
20408 "allow this feature to be disabled."
20409 msgstr ""
20410
20411 #. type: textblock
20412 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
20413 msgid ""
20414 "When prompting for keys and passphrases, guestfish normally turns echoing "
20415 "off so you cannot see what you are typing.  If you are not worried about "
20416 "Tempest attacks and there is no one else in the room you can specify this "
20417 "flag to see what you are typing."
20418 msgstr ""
20419
20420 #. type: =item
20421 #: ../fish/guestfish.pod:224
20422 msgid "B<-f file>"
20423 msgstr "B<-f файл>"
20424
20425 #. type: =item
20426 #: ../fish/guestfish.pod:226
20427 msgid "B<--file file>"
20428 msgstr "B<--file файл>"
20429
20430 #. type: textblock
20431 #: ../fish/guestfish.pod:228
20432 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
20433 msgstr ""
20434
20435 #. type: verbatim
20436 #: ../fish/guestfish.pod:231
20437 #, no-wrap
20438 msgid ""
20439 " #!/usr/bin/guestfish -f\n"
20440 "\n"
20441 msgstr ""
20442 " #!/usr/bin/guestfish -f\n"
20443 "\n"
20444
20445 #. type: verbatim
20446 #: ../fish/guestfish.pod:244
20447 #, no-wrap
20448 msgid ""
20449 " guestfish --format=raw -a disk.img\n"
20450 "\n"
20451 msgstr ""
20452 " guestfish --format=raw -a disk.img\n"
20453 "\n"
20454
20455 #. type: verbatim
20456 #: ../fish/guestfish.pod:248
20457 #, no-wrap
20458 msgid ""
20459 " guestfish --format=raw -a disk.img --format -a another.img\n"
20460 "\n"
20461 msgstr ""
20462 " guestfish --format=raw -a disk.img --format -a another.img\n"
20463 "\n"
20464
20465 #. type: textblock
20466 #: ../fish/guestfish.pod:253
20467 msgid ""
20468 "If you have untrusted raw-format guest disk images, you should use this "
20469 "option to specify the disk format.  This avoids a possible security problem "
20470 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
20471 msgstr ""
20472
20473 #. type: =item
20474 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
20475 msgid "B<--inspector>"
20476 msgstr "B<--inspector>"
20477
20478 #. type: textblock
20479 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
20480 msgid ""
20481 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
20482 "system and mount filesystems as they would be mounted on the real virtual "
20483 "machine."
20484 msgstr ""
20485
20486 #. type: textblock
20487 #: ../fish/guestfish.pod:266
20488 msgid "Typical usage is either:"
20489 msgstr ""
20490
20491 #. type: verbatim
20492 #: ../fish/guestfish.pod:268
20493 #, no-wrap
20494 msgid ""
20495 " guestfish -d myguest -i\n"
20496 "\n"
20497 msgstr ""
20498 " guestfish -d myguest -i\n"
20499 "\n"
20500
20501 #. type: textblock
20502 #: ../fish/guestfish.pod:270
20503 msgid "(for an inactive libvirt domain called I<myguest>), or:"
20504 msgstr ""
20505
20506 #. type: verbatim
20507 #: ../fish/guestfish.pod:272
20508 #, no-wrap
20509 msgid ""
20510 " guestfish --ro -d myguest -i\n"
20511 "\n"
20512 msgstr ""
20513 " guestfish --ro -d myguest -i\n"
20514 "\n"
20515
20516 #. type: textblock
20517 #: ../fish/guestfish.pod:274
20518 msgid "(for active domains, readonly), or specify the block device directly:"
20519 msgstr ""
20520
20521 #. type: verbatim
20522 #: ../fish/guestfish.pod:276
20523 #, no-wrap
20524 msgid ""
20525 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
20526 "\n"
20527 msgstr ""
20528 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
20529 "\n"
20530
20531 #. type: textblock
20532 #: ../fish/guestfish.pod:278
20533 msgid ""
20534 "Note that the command line syntax changed slightly over older versions of "
20535 "guestfish.  You can still use the old syntax:"
20536 msgstr ""
20537
20538 #. type: verbatim
20539 #: ../fish/guestfish.pod:281
20540 #, no-wrap
20541 msgid ""
20542 " guestfish [--ro] -i disk.img\n"
20543 "\n"
20544 msgstr ""
20545 " guestfish [--ro] -i disk.img\n"
20546 "\n"
20547
20548 #. type: verbatim
20549 #: ../fish/guestfish.pod:283
20550 #, no-wrap
20551 msgid ""
20552 " guestfish [--ro] -i libvirt-domain\n"
20553 "\n"
20554 msgstr ""
20555
20556 #. type: textblock
20557 #: ../fish/guestfish.pod:285
20558 msgid ""
20559 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
20560 "then using other commands to mount the filesystems that were found."
20561 msgstr ""
20562
20563 #. type: =item
20564 #: ../fish/guestfish.pod:294
20565 msgid "B<--listen>"
20566 msgstr "B<--listen>"
20567
20568 #. type: textblock
20569 #: ../fish/guestfish.pod:296
20570 msgid ""
20571 "Fork into the background and listen for remote commands.  See section L</"
20572 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
20573 msgstr ""
20574
20575 #. type: =item
20576 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
20577 msgid "B<--live>"
20578 msgstr "B<--live>"
20579
20580 #. type: textblock
20581 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
20582 msgid ""
20583 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
20584 "ATTACHING TO RUNNING DAEMONS>)."
20585 msgstr ""
20586
20587 #. type: =item
20588 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
20589 msgid "B<-m dev[:mountpoint[:options]]>"
20590 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
20591
20592 #. type: =item
20593 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
20594 msgid "B<--mount dev[:mountpoint[:options]]>"
20595 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
20596
20597 #. type: textblock
20598 #: ../fish/guestfish.pod:308
20599 msgid "Mount the named partition or logical volume on the given mountpoint."
20600 msgstr ""
20601
20602 #. type: textblock
20603 #: ../fish/guestfish.pod:310
20604 msgid "If the mountpoint is omitted, it defaults to C</>."
20605 msgstr ""
20606
20607 #. type: textblock
20608 #: ../fish/guestfish.pod:312
20609 msgid "You have to mount something on C</> before most commands will work."
20610 msgstr ""
20611
20612 #. type: textblock
20613 #: ../fish/guestfish.pod:314
20614 msgid ""
20615 "If any I<-m> or I<--mount> options are given, the guest is automatically "
20616 "launched."
20617 msgstr ""
20618
20619 #. type: textblock
20620 #: ../fish/guestfish.pod:317
20621 msgid ""
20622 "If you don't know what filesystems a disk image contains, you can either run "
20623 "guestfish without this option, then list the partitions, filesystems and LVs "
20624 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
20625 "commands), or you can use the L<virt-filesystems(1)> program."
20626 msgstr ""
20627
20628 #. type: textblock
20629 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
20630 msgid ""
20631 "The third (and rarely used) part of the mount parameter is the list of mount "
20632 "options used to mount the underlying filesystem.  If this is not given, then "
20633 "the mount options are either the empty string or C<ro> (the latter if the "
20634 "I<--ro> flag is used).  By specifying the mount options, you override this "
20635 "default choice.  Probably the only time you would use this is to enable ACLs "
20636 "and/or extended attributes if the filesystem can support them:"
20637 msgstr ""
20638
20639 #. type: verbatim
20640 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
20641 #, no-wrap
20642 msgid ""
20643 " -m /dev/sda1:/:acl,user_xattr\n"
20644 "\n"
20645 msgstr ""
20646
20647 #. type: textblock
20648 #: ../fish/guestfish.pod:333
20649 msgid "Using this flag is equivalent to using the C<mount-options> command."
20650 msgstr ""
20651
20652 #. type: =item
20653 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
20654 #: ../resize/virt-resize.pod:435
20655 msgid "B<-n>"
20656 msgstr "B<-n>"
20657
20658 #. type: =item
20659 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
20660 msgid "B<--no-sync>"
20661 msgstr "B<--no-sync>"
20662
20663 #. type: textblock
20664 #: ../fish/guestfish.pod:339
20665 msgid ""
20666 "Disable autosync.  This is enabled by default.  See the discussion of "
20667 "autosync in the L<guestfs(3)> manpage."
20668 msgstr ""
20669
20670 #. type: =item
20671 #: ../fish/guestfish.pod:342
20672 msgid "B<-N type>"
20673 msgstr "B<-N тип>"
20674
20675 #. type: =item
20676 #: ../fish/guestfish.pod:344
20677 msgid "B<--new type>"
20678 msgstr "B<--new тип>"
20679
20680 #. type: =item
20681 #: ../fish/guestfish.pod:346
20682 msgid "B<-N help>"
20683 msgstr "B<-N help>"
20684
20685 #. type: textblock
20686 #: ../fish/guestfish.pod:348
20687 msgid ""
20688 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
20689 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
20690 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
20691 "IMAGES> below."
20692 msgstr ""
20693
20694 #. type: =item
20695 #: ../fish/guestfish.pod:353
20696 msgid "B<--progress-bars>"
20697 msgstr "B<--progress-bars>"
20698
20699 #. type: textblock
20700 #: ../fish/guestfish.pod:355
20701 msgid "Enable progress bars, even when guestfish is used non-interactively."
20702 msgstr ""
20703
20704 #. type: textblock
20705 #: ../fish/guestfish.pod:357
20706 msgid ""
20707 "Progress bars are enabled by default when guestfish is used as an "
20708 "interactive shell."
20709 msgstr ""
20710
20711 #. type: =item
20712 #: ../fish/guestfish.pod:360
20713 msgid "B<--no-progress-bars>"
20714 msgstr "B<--no-progress-bars>"
20715
20716 #. type: textblock
20717 #: ../fish/guestfish.pod:362
20718 msgid "Disable progress bars."
20719 msgstr ""
20720
20721 #. type: =item
20722 #: ../fish/guestfish.pod:364
20723 msgid "B<--remote[=pid]>"
20724 msgstr "B<--remote[=pid]>"
20725
20726 #. type: textblock
20727 #: ../fish/guestfish.pod:366
20728 msgid ""
20729 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
20730 "CONTROL GUESTFISH OVER A SOCKET> below."
20731 msgstr ""
20732
20733 #. type: =item
20734 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
20735 #: ../rescue/virt-rescue.pod:189
20736 msgid "B<-r>"
20737 msgstr "B<-r>"
20738
20739 #. type: =item
20740 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
20741 #: ../rescue/virt-rescue.pod:191
20742 msgid "B<--ro>"
20743 msgstr "B<--ro>"
20744
20745 #. type: textblock
20746 #: ../fish/guestfish.pod:373
20747 msgid ""
20748 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20749 "mounts are done read-only."
20750 msgstr ""
20751
20752 #. type: textblock
20753 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:195
20754 msgid ""
20755 "The option must always be used if the disk image or virtual machine might be "
20756 "running, and is generally recommended in cases where you don't need write "
20757 "access to the disk."
20758 msgstr ""
20759
20760 #. type: textblock
20761 #: ../fish/guestfish.pod:380
20762 msgid ""
20763 "Note that prepared disk images created with I<-N> are not affected by this "
20764 "option.  Also commands like C<add> are not affected - you have to specify "
20765 "the C<readonly:true> option explicitly if you need it."
20766 msgstr ""
20767
20768 #. type: textblock
20769 #: ../fish/guestfish.pod:384
20770 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
20771 msgstr ""
20772
20773 #. type: =item
20774 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
20775 #: ../rescue/virt-rescue.pod:201
20776 msgid "B<--selinux>"
20777 msgstr "B<--selinux>"
20778
20779 #. type: textblock
20780 #: ../fish/guestfish.pod:388
20781 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
20782 msgstr ""
20783
20784 #. type: textblock
20785 #: ../fish/guestfish.pod:394
20786 msgid ""
20787 "Enable very verbose messages.  This is particularly useful if you find a bug."
20788 msgstr ""
20789
20790 #. type: textblock
20791 #: ../fish/guestfish.pod:401
20792 msgid "Display the guestfish / libguestfs version number and exit."
20793 msgstr ""
20794
20795 #. type: =item
20796 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
20797 #: ../rescue/virt-rescue.pod:231
20798 msgid "B<-w>"
20799 msgstr "B<-w>"
20800
20801 #. type: =item
20802 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
20803 #: ../rescue/virt-rescue.pod:233
20804 msgid "B<--rw>"
20805 msgstr "B<--rw>"
20806
20807 #. type: textblock
20808 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
20809 msgid ""
20810 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
20811 "mounts are done read-write."
20812 msgstr ""
20813
20814 #. type: textblock
20815 #: ../fish/guestfish.pod:410
20816 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
20817 msgstr ""
20818
20819 #. type: textblock
20820 #: ../fish/guestfish.pod:414
20821 msgid "Echo each command before executing it."
20822 msgstr ""
20823
20824 #. type: =head1
20825 #: ../fish/guestfish.pod:418
20826 msgid "COMMANDS ON COMMAND LINE"
20827 msgstr ""
20828
20829 #. type: textblock
20830 #: ../fish/guestfish.pod:420
20831 msgid ""
20832 "Any additional (non-option) arguments are treated as commands to execute."
20833 msgstr ""
20834
20835 #. type: textblock
20836 #: ../fish/guestfish.pod:423
20837 msgid ""
20838 "Commands to execute should be separated by a colon (C<:>), where the colon "
20839 "is a separate parameter.  Thus:"
20840 msgstr ""
20841
20842 #. type: verbatim
20843 #: ../fish/guestfish.pod:426
20844 #, no-wrap
20845 msgid ""
20846 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
20847 "\n"
20848 msgstr ""
20849
20850 #. type: textblock
20851 #: ../fish/guestfish.pod:428
20852 msgid ""
20853 "If there are no additional arguments, then we enter a shell, either an "
20854 "interactive shell with a prompt (if the input is a terminal) or a non-"
20855 "interactive shell."
20856 msgstr ""
20857
20858 #. type: textblock
20859 #: ../fish/guestfish.pod:432
20860 msgid ""
20861 "In either command line mode or non-interactive shell, the first command that "
20862 "gives an error causes the whole shell to exit.  In interactive mode (with a "
20863 "prompt) if a command fails, you can continue to enter commands."
20864 msgstr ""
20865
20866 #. type: =head1
20867 #: ../fish/guestfish.pod:437
20868 msgid "USING launch (OR run)"
20869 msgstr ""
20870
20871 #. type: textblock
20872 #: ../fish/guestfish.pod:439
20873 msgid ""
20874 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
20875 "then launch it, then mount any disks you need, and finally issue actions/"
20876 "commands.  So the general order of the day is:"
20877 msgstr ""
20878
20879 #. type: textblock
20880 #: ../fish/guestfish.pod:447
20881 msgid "add or -a/--add"
20882 msgstr ""
20883
20884 #. type: textblock
20885 #: ../fish/guestfish.pod:451
20886 msgid "launch (aka run)"
20887 msgstr ""
20888
20889 #. type: textblock
20890 #: ../fish/guestfish.pod:455
20891 msgid "mount or -m/--mount"
20892 msgstr ""
20893
20894 #. type: textblock
20895 #: ../fish/guestfish.pod:459
20896 msgid "any other commands"
20897 msgstr ""
20898
20899 #. type: textblock
20900 #: ../fish/guestfish.pod:463
20901 msgid ""
20902 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
20903 "guest before mounting or performing any other commands."
20904 msgstr ""
20905
20906 #. type: textblock
20907 #: ../fish/guestfish.pod:466
20908 msgid ""
20909 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
20910 "I<--new> options were given then C<run> is done automatically, simply "
20911 "because guestfish can't perform the action you asked for without doing this."
20912 msgstr ""
20913
20914 #. type: =head1
20915 #: ../fish/guestfish.pod:471
20916 msgid "OPENING DISKS FOR READ AND WRITE"
20917 msgstr ""
20918
20919 #. type: textblock
20920 #: ../fish/guestfish.pod:473
20921 msgid ""
20922 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
20923 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
20924 "I<-i> and I<-m> open disk images read-only or for writing."
20925 msgstr ""
20926
20927 #. type: textblock
20928 #: ../fish/guestfish.pod:478
20929 msgid ""
20930 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
20931 "opening disk images supplied on the command line for write.  To open a disk "
20932 "image read-only you have to do I<-a image --ro>."
20933 msgstr ""
20934
20935 #. type: textblock
20936 #: ../fish/guestfish.pod:482
20937 msgid ""
20938 "This matters: If you accidentally open a live VM disk image writable then "
20939 "you will cause irreversible disk corruption."
20940 msgstr ""
20941
20942 #. type: textblock
20943 #: ../fish/guestfish.pod:485
20944 msgid ""
20945 "In a future libguestfs we intend to change the default the other way.  Disk "
20946 "images will be opened read-only.  You will have to either specify "
20947 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
20948 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
20949 "access for disk images specified by those other command line options."
20950 msgstr ""
20951
20952 #. type: textblock
20953 #: ../fish/guestfish.pod:492
20954 msgid ""
20955 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
20956 "which does nothing (it is already the default).  However it is highly "
20957 "recommended that you use this option to indicate that you need write access, "
20958 "and prepare your scripts for the day when this option will be required for "
20959 "write access."
20960 msgstr ""
20961
20962 #. type: textblock
20963 #: ../fish/guestfish.pod:498
20964 msgid ""
20965 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
20966 "other libguestfs program apart from guestfish and guestmount."
20967 msgstr ""
20968
20969 #. type: =head1
20970 #: ../fish/guestfish.pod:501
20971 msgid "QUOTING"
20972 msgstr ""
20973
20974 #. type: textblock
20975 #: ../fish/guestfish.pod:503
20976 msgid ""
20977 "You can quote ordinary parameters using either single or double quotes.  For "
20978 "example:"
20979 msgstr ""
20980
20981 #. type: verbatim
20982 #: ../fish/guestfish.pod:506
20983 #, no-wrap
20984 msgid ""
20985 " add \"file with a space.img\"\n"
20986 "\n"
20987 msgstr ""
20988
20989 #. type: verbatim
20990 #: ../fish/guestfish.pod:508
20991 #, no-wrap
20992 msgid ""
20993 " rm '/file name'\n"
20994 "\n"
20995 msgstr ""
20996
20997 #. type: verbatim
20998 #: ../fish/guestfish.pod:510
20999 #, no-wrap
21000 msgid ""
21001 " rm '/\"'\n"
21002 "\n"
21003 msgstr ""
21004
21005 #. type: textblock
21006 #: ../fish/guestfish.pod:512
21007 msgid ""
21008 "A few commands require a list of strings to be passed.  For these, use a "
21009 "whitespace-separated list, enclosed in quotes.  Strings containing "
21010 "whitespace to be passed through must be enclosed in single quotes.  A "
21011 "literal single quote must be escaped with a backslash."
21012 msgstr ""
21013
21014 #. type: verbatim
21015 #: ../fish/guestfish.pod:517
21016 #, no-wrap
21017 msgid ""
21018 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
21019 " command \"/bin/echo 'foo      bar'\"\n"
21020 " command \"/bin/echo \\'foo\\'\"\n"
21021 "\n"
21022 msgstr ""
21023
21024 #. type: =head2
21025 #: ../fish/guestfish.pod:521
21026 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
21027 msgstr ""
21028
21029 #. type: textblock
21030 #: ../fish/guestfish.pod:523
21031 msgid ""
21032 "In double-quoted arguments (only) use backslash to insert special characters:"
21033 msgstr ""
21034
21035 #. type: =item
21036 #: ../fish/guestfish.pod:528
21037 msgid "C<\\a>"
21038 msgstr "C<\\a>"
21039
21040 #. type: textblock
21041 #: ../fish/guestfish.pod:530
21042 msgid "Alert (bell) character."
21043 msgstr "Символ гудка (дзвінка)."
21044
21045 #. type: =item
21046 #: ../fish/guestfish.pod:532
21047 msgid "C<\\b>"
21048 msgstr "C<\\b>"
21049
21050 #. type: textblock
21051 #: ../fish/guestfish.pod:534
21052 msgid "Backspace character."
21053 msgstr ""
21054
21055 #. type: =item
21056 #: ../fish/guestfish.pod:536
21057 msgid "C<\\f>"
21058 msgstr "C<\\f>"
21059
21060 #. type: textblock
21061 #: ../fish/guestfish.pod:538
21062 msgid "Form feed character."
21063 msgstr ""
21064
21065 #. type: =item
21066 #: ../fish/guestfish.pod:540
21067 msgid "C<\\n>"
21068 msgstr "C<\\n>"
21069
21070 #. type: textblock
21071 #: ../fish/guestfish.pod:542
21072 msgid "Newline character."
21073 msgstr ""
21074
21075 #. type: =item
21076 #: ../fish/guestfish.pod:544
21077 msgid "C<\\r>"
21078 msgstr "C<\\r>"
21079
21080 #. type: textblock
21081 #: ../fish/guestfish.pod:546
21082 msgid "Carriage return character."
21083 msgstr "Символ повернення каретки."
21084
21085 #. type: =item
21086 #: ../fish/guestfish.pod:548
21087 msgid "C<\\t>"
21088 msgstr "C<\\t>"
21089
21090 #. type: textblock
21091 #: ../fish/guestfish.pod:550
21092 msgid "Horizontal tab character."
21093 msgstr "Символ горизонтальної табуляції"
21094
21095 #. type: =item
21096 #: ../fish/guestfish.pod:552
21097 msgid "C<\\v>"
21098 msgstr "C<\\v>"
21099
21100 #. type: textblock
21101 #: ../fish/guestfish.pod:554
21102 msgid "Vertical tab character."
21103 msgstr "Символ вертикальної табуляції."
21104
21105 #. type: =item
21106 #: ../fish/guestfish.pod:556
21107 msgid "C<\\\">"
21108 msgstr "C<\\\">"
21109
21110 #. type: textblock
21111 #: ../fish/guestfish.pod:558
21112 msgid "A literal double quote character."
21113 msgstr ""
21114
21115 #. type: =item
21116 #: ../fish/guestfish.pod:560
21117 msgid "C<\\ooo>"
21118 msgstr "C<\\ooo>"
21119
21120 #. type: textblock
21121 #: ../fish/guestfish.pod:562
21122 msgid ""
21123 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
21124 "(unlike C)."
21125 msgstr ""
21126
21127 #. type: =item
21128 #: ../fish/guestfish.pod:565
21129 msgid "C<\\xhh>"
21130 msgstr "C<\\xhh>"
21131
21132 #. type: textblock
21133 #: ../fish/guestfish.pod:567
21134 msgid ""
21135 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
21136 msgstr ""
21137
21138 #. type: textblock
21139 #: ../fish/guestfish.pod:570
21140 msgid ""
21141 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
21142 "strings."
21143 msgstr ""
21144
21145 #. type: =item
21146 #: ../fish/guestfish.pod:573
21147 msgid "C<\\\\>"
21148 msgstr "C<\\\\>"
21149
21150 #. type: textblock
21151 #: ../fish/guestfish.pod:575
21152 msgid "A literal backslash character."
21153 msgstr ""
21154
21155 #. type: =head1
21156 #: ../fish/guestfish.pod:579
21157 msgid "OPTIONAL ARGUMENTS"
21158 msgstr ""
21159
21160 #. type: textblock
21161 #: ../fish/guestfish.pod:581
21162 msgid ""
21163 "Some commands take optional arguments.  These arguments appear in this "
21164 "documentation as C<[argname:..]>.  You can use them as in these examples:"
21165 msgstr ""
21166
21167 #. type: verbatim
21168 #: ../fish/guestfish.pod:585
21169 #, no-wrap
21170 msgid ""
21171 " add-drive-opts filename\n"
21172 "\n"
21173 msgstr ""
21174
21175 #. type: verbatim
21176 #: ../fish/guestfish.pod:587
21177 #, no-wrap
21178 msgid ""
21179 " add-drive-opts filename readonly:true\n"
21180 "\n"
21181 msgstr ""
21182
21183 #. type: verbatim
21184 #: ../fish/guestfish.pod:589
21185 #, no-wrap
21186 msgid ""
21187 " add-drive-opts filename format:qcow2 readonly:false\n"
21188 "\n"
21189 msgstr ""
21190
21191 #. type: textblock
21192 #: ../fish/guestfish.pod:591
21193 msgid ""
21194 "Each optional argument can appear at most once.  All optional arguments must "
21195 "appear after the required ones."
21196 msgstr ""
21197
21198 #. type: =head1
21199 #: ../fish/guestfish.pod:594
21200 msgid "NUMBERS"
21201 msgstr "ЧИСЛА"
21202
21203 #. type: textblock
21204 #: ../fish/guestfish.pod:596
21205 msgid ""
21206 "This section applies to all commands which can take integers as parameters."
21207 msgstr ""
21208
21209 #. type: =head2
21210 #: ../fish/guestfish.pod:599
21211 msgid "SIZE SUFFIX"
21212 msgstr ""
21213
21214 #. type: textblock
21215 #: ../fish/guestfish.pod:601
21216 msgid ""
21217 "When the command takes a parameter measured in bytes, you can use one of the "
21218 "following suffixes to specify kilobytes, megabytes and larger sizes:"
21219 msgstr ""
21220
21221 #. type: =item
21222 #: ../fish/guestfish.pod:607
21223 msgid "B<k> or B<K> or B<KiB>"
21224 msgstr "B<k>, B<K> або B<KiB>"
21225
21226 #. type: textblock
21227 #: ../fish/guestfish.pod:609
21228 msgid "The size in kilobytes (multiplied by 1024)."
21229 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
21230
21231 #. type: =item
21232 #: ../fish/guestfish.pod:611
21233 msgid "B<KB>"
21234 msgstr "B<KB>"
21235
21236 #. type: textblock
21237 #: ../fish/guestfish.pod:613
21238 msgid "The size in SI 1000 byte units."
21239 msgstr "Розмір у одиницях СІ: 1000 байтів."
21240
21241 #. type: =item
21242 #: ../fish/guestfish.pod:615
21243 msgid "B<M> or B<MiB>"
21244 msgstr "B<M> або B<MiB>"
21245
21246 #. type: textblock
21247 #: ../fish/guestfish.pod:617
21248 msgid "The size in megabytes (multiplied by 1048576)."
21249 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
21250
21251 #. type: =item
21252 #: ../fish/guestfish.pod:619
21253 msgid "B<MB>"
21254 msgstr "B<MB>"
21255
21256 #. type: textblock
21257 #: ../fish/guestfish.pod:621
21258 msgid "The size in SI 1000000 byte units."
21259 msgstr "Розмір у одиницях СІ: 1000000 байтів."
21260
21261 #. type: =item
21262 #: ../fish/guestfish.pod:623
21263 msgid "B<G> or B<GiB>"
21264 msgstr "B<G> або B<GiB>"
21265
21266 #. type: textblock
21267 #: ../fish/guestfish.pod:625
21268 msgid "The size in gigabytes (multiplied by 2**30)."
21269 msgstr "Розмір у гігабайтах (з множником 2**30)."
21270
21271 #. type: =item
21272 #: ../fish/guestfish.pod:627
21273 msgid "B<GB>"
21274 msgstr "B<GB>"
21275
21276 #. type: textblock
21277 #: ../fish/guestfish.pod:629
21278 msgid "The size in SI 10**9 byte units."
21279 msgstr "Розмір у одиницях СІ: 10**9 байтів."
21280
21281 #. type: =item
21282 #: ../fish/guestfish.pod:631
21283 msgid "B<T> or B<TiB>"
21284 msgstr "B<T> або B<TiB>"
21285
21286 #. type: textblock
21287 #: ../fish/guestfish.pod:633
21288 msgid "The size in terabytes (multiplied by 2**40)."
21289 msgstr "Розмір у терабайтах (з множником 2**40)."
21290
21291 #. type: =item
21292 #: ../fish/guestfish.pod:635
21293 msgid "B<TB>"
21294 msgstr "B<TB>"
21295
21296 #. type: textblock
21297 #: ../fish/guestfish.pod:637
21298 msgid "The size in SI 10**12 byte units."
21299 msgstr "Розмір у одиницях СІ: 10**12 байтів."
21300
21301 #. type: =item
21302 #: ../fish/guestfish.pod:639
21303 msgid "B<P> or B<PiB>"
21304 msgstr "B<P> або B<PiB>"
21305
21306 #. type: textblock
21307 #: ../fish/guestfish.pod:641
21308 msgid "The size in petabytes (multiplied by 2**50)."
21309 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
21310
21311 #. type: =item
21312 #: ../fish/guestfish.pod:643
21313 msgid "B<PB>"
21314 msgstr "B<PB>"
21315
21316 #. type: textblock
21317 #: ../fish/guestfish.pod:645
21318 msgid "The size in SI 10**15 byte units."
21319 msgstr "Розмір у одиницях СІ: 10**15 байтів."
21320
21321 #. type: =item
21322 #: ../fish/guestfish.pod:647
21323 msgid "B<E> or B<EiB>"
21324 msgstr "B<E> або B<EiB>"
21325
21326 #. type: textblock
21327 #: ../fish/guestfish.pod:649
21328 msgid "The size in exabytes (multiplied by 2**60)."
21329 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
21330
21331 #. type: =item
21332 #: ../fish/guestfish.pod:651
21333 msgid "B<EB>"
21334 msgstr "B<EB>"
21335
21336 #. type: textblock
21337 #: ../fish/guestfish.pod:653
21338 msgid "The size in SI 10**18 byte units."
21339 msgstr "Розмір у одиницях СІ: 10**18 байтів."
21340
21341 #. type: =item
21342 #: ../fish/guestfish.pod:655
21343 msgid "B<Z> or B<ZiB>"
21344 msgstr "B<Z> або B<ZiB>"
21345
21346 #. type: textblock
21347 #: ../fish/guestfish.pod:657
21348 msgid "The size in zettabytes (multiplied by 2**70)."
21349 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
21350
21351 #. type: =item
21352 #: ../fish/guestfish.pod:659
21353 msgid "B<ZB>"
21354 msgstr "B<ZB>"
21355
21356 #. type: textblock
21357 #: ../fish/guestfish.pod:661
21358 msgid "The size in SI 10**21 byte units."
21359 msgstr "Розмір у одиницях СІ: 10**21 байтів."
21360
21361 #. type: =item
21362 #: ../fish/guestfish.pod:663
21363 msgid "B<Y> or B<YiB>"
21364 msgstr "B<Y> або B<YiB>"
21365
21366 #. type: textblock
21367 #: ../fish/guestfish.pod:665
21368 msgid "The size in yottabytes (multiplied by 2**80)."
21369 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
21370
21371 #. type: =item
21372 #: ../fish/guestfish.pod:667
21373 msgid "B<YB>"
21374 msgstr "B<YB>"
21375
21376 #. type: textblock
21377 #: ../fish/guestfish.pod:669
21378 msgid "The size in SI 10**24 byte units."
21379 msgstr "Розмір у одиницях СІ: 10**24 байтів."
21380
21381 #. type: verbatim
21382 #: ../fish/guestfish.pod:675
21383 #, no-wrap
21384 msgid ""
21385 " truncate-size /file 1G\n"
21386 "\n"
21387 msgstr ""
21388
21389 #. type: textblock
21390 #: ../fish/guestfish.pod:677
21391 msgid "would truncate the file to 1 gigabyte."
21392 msgstr ""
21393
21394 #. type: textblock
21395 #: ../fish/guestfish.pod:679
21396 msgid ""
21397 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
21398 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
21399 "suffix will probably not do what you expect."
21400 msgstr ""
21401
21402 #. type: =head2
21403 #: ../fish/guestfish.pod:683
21404 msgid "OCTAL AND HEXADECIMAL NUMBERS"
21405 msgstr ""
21406
21407 #. type: textblock
21408 #: ../fish/guestfish.pod:685
21409 msgid ""
21410 "For specifying the radix (base) use the C convention: C<0> to prefix an "
21411 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
21412 msgstr ""
21413
21414 #. type: verbatim
21415 #: ../fish/guestfish.pod:688
21416 #, no-wrap
21417 msgid ""
21418 " 1234      decimal number 1234\n"
21419 " 02322     octal number, equivalent to decimal 1234\n"
21420 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
21421 "\n"
21422 msgstr ""
21423
21424 #. type: textblock
21425 #: ../fish/guestfish.pod:692
21426 msgid ""
21427 "When using the C<chmod> command, you almost always want to specify an octal "
21428 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
21429 "L<chmod(1)> program):"
21430 msgstr ""
21431
21432 #. type: verbatim
21433 #: ../fish/guestfish.pod:696
21434 #, no-wrap
21435 msgid ""
21436 " chmod 0777 /public  # OK\n"
21437 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
21438 "\n"
21439 msgstr ""
21440
21441 #. type: textblock
21442 #: ../fish/guestfish.pod:699
21443 msgid ""
21444 "Commands that return numbers usually print them in decimal, but some "
21445 "commands print numbers in other radices (eg. C<umask> prints the mode in "
21446 "octal, preceeded by C<0>)."
21447 msgstr ""
21448
21449 #. type: =head1
21450 #: ../fish/guestfish.pod:703
21451 msgid "WILDCARDS AND GLOBBING"
21452 msgstr ""
21453
21454 #. type: textblock
21455 #: ../fish/guestfish.pod:705
21456 msgid ""
21457 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
21458 "(globbing) by default.  So for example the following will not do what you "
21459 "expect:"
21460 msgstr ""
21461
21462 #. type: verbatim
21463 #: ../fish/guestfish.pod:709
21464 #, no-wrap
21465 msgid ""
21466 " rm-rf /home/*\n"
21467 "\n"
21468 msgstr ""
21469
21470 #. type: textblock
21471 #: ../fish/guestfish.pod:711
21472 msgid ""
21473 "Assuming you don't have a directory called literally C</home/*> then the "
21474 "above command will return an error."
21475 msgstr ""
21476
21477 #. type: textblock
21478 #: ../fish/guestfish.pod:714
21479 msgid "To perform wildcard expansion, use the C<glob> command."
21480 msgstr ""
21481
21482 #. type: verbatim
21483 #: ../fish/guestfish.pod:716
21484 #, no-wrap
21485 msgid ""
21486 " glob rm-rf /home/*\n"
21487 "\n"
21488 msgstr ""
21489
21490 #. type: textblock
21491 #: ../fish/guestfish.pod:718
21492 msgid ""
21493 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
21494 "many times), equivalent to:"
21495 msgstr ""
21496
21497 #. type: verbatim
21498 #: ../fish/guestfish.pod:721
21499 #, no-wrap
21500 msgid ""
21501 " rm-rf /home/jim\n"
21502 " rm-rf /home/joe\n"
21503 " rm-rf /home/mary\n"
21504 "\n"
21505 msgstr ""
21506
21507 #. type: textblock
21508 #: ../fish/guestfish.pod:725
21509 msgid "C<glob> only works on simple guest paths and not on device names."
21510 msgstr ""
21511
21512 #. type: textblock
21513 #: ../fish/guestfish.pod:727
21514 msgid ""
21515 "If you have several parameters, each containing a wildcard, then glob will "
21516 "perform a Cartesian product."
21517 msgstr ""
21518
21519 #. type: =head1
21520 #: ../fish/guestfish.pod:730
21521 msgid "COMMENTS"
21522 msgstr "КОМЕНТАРІ"
21523
21524 #. type: textblock
21525 #: ../fish/guestfish.pod:732
21526 msgid ""
21527 "Any line which starts with a I<#> character is treated as a comment and "
21528 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
21529 "a command.  For example:"
21530 msgstr ""
21531
21532 #. type: verbatim
21533 #: ../fish/guestfish.pod:736
21534 #, no-wrap
21535 msgid ""
21536 " # this is a comment\n"
21537 "         # this is a comment\n"
21538 " foo # NOT a comment\n"
21539 "\n"
21540 msgstr ""
21541
21542 #. type: textblock
21543 #: ../fish/guestfish.pod:740
21544 msgid "Blank lines are also ignored."
21545 msgstr ""
21546
21547 #. type: =head1
21548 #: ../fish/guestfish.pod:742
21549 msgid "RUNNING COMMANDS LOCALLY"
21550 msgstr ""
21551
21552 #. type: textblock
21553 #: ../fish/guestfish.pod:744
21554 msgid ""
21555 "Any line which starts with a I<!> character is treated as a command sent to "
21556 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
21557 msgstr ""
21558
21559 #. type: verbatim
21560 #: ../fish/guestfish.pod:748
21561 #, no-wrap
21562 msgid ""
21563 " !mkdir local\n"
21564 " tgz-out /remote local/remote-data.tar.gz\n"
21565 "\n"
21566 msgstr ""
21567
21568 #. type: textblock
21569 #: ../fish/guestfish.pod:751
21570 msgid ""
21571 "will create a directory C<local> on the host, and then export the contents "
21572 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
21573 "(See C<tgz-out>)."
21574 msgstr ""
21575
21576 #. type: textblock
21577 #: ../fish/guestfish.pod:755
21578 msgid ""
21579 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
21580 "effect, due to the way that subprocesses work in Unix."
21581 msgstr ""
21582
21583 #. type: =head2
21584 #: ../fish/guestfish.pod:758
21585 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
21586 msgstr ""
21587
21588 #. type: textblock
21589 #: ../fish/guestfish.pod:760
21590 msgid ""
21591 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
21592 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
21593 "and executed as guestfish commands."
21594 msgstr ""
21595
21596 #. type: textblock
21597 #: ../fish/guestfish.pod:764
21598 msgid ""
21599 "Thus you can use shell script to construct arbitrary guestfish commands "
21600 "which are then parsed by guestfish."
21601 msgstr ""
21602
21603 #. type: textblock
21604 #: ../fish/guestfish.pod:767
21605 msgid ""
21606 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
21607 "through C</foo.100>) using guestfish commands alone.  However this is simple "
21608 "if we use a shell script to create the guestfish commands for us:"
21609 msgstr ""
21610
21611 #. type: verbatim
21612 #: ../fish/guestfish.pod:772
21613 #, no-wrap
21614 msgid ""
21615 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
21616 "\n"
21617 msgstr ""
21618
21619 #. type: textblock
21620 #: ../fish/guestfish.pod:774
21621 msgid "or with names like C</foo.001>:"
21622 msgstr ""
21623
21624 #. type: verbatim
21625 #: ../fish/guestfish.pod:776
21626 #, no-wrap
21627 msgid ""
21628 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
21629 "\n"
21630 msgstr ""
21631
21632 #. type: textblock
21633 #: ../fish/guestfish.pod:778
21634 msgid ""
21635 "When using guestfish interactively it can be helpful to just run the shell "
21636 "script first (ie. remove the initial C<E<lt>> character so it is just an "
21637 "ordinary I<!> local command), see what guestfish commands it would run, and "
21638 "when you are happy with those prepend the C<E<lt>> character to run the "
21639 "guestfish commands for real."
21640 msgstr ""
21641
21642 #. type: =head1
21643 #: ../fish/guestfish.pod:784
21644 msgid "PIPES"
21645 msgstr "КАНАЛИ"
21646
21647 #. type: textblock
21648 #: ../fish/guestfish.pod:786
21649 msgid ""
21650 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
21651 "command (a guestfish command) to the second command (any host command).  For "
21652 "example:"
21653 msgstr ""
21654
21655 #. type: verbatim
21656 #: ../fish/guestfish.pod:790
21657 #, no-wrap
21658 msgid ""
21659 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
21660 "\n"
21661 msgstr ""
21662
21663 #. type: textblock
21664 #: ../fish/guestfish.pod:792
21665 msgid ""
21666 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
21667 "program).  The above command would list all accounts in the guest filesystem "
21668 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
21669 msgstr ""
21670
21671 #. type: verbatim
21672 #: ../fish/guestfish.pod:797
21673 #, no-wrap
21674 msgid ""
21675 " hexdump /bin/ls | head\n"
21676 " list-devices | tail -1\n"
21677 " tgz-out / - | tar ztf -\n"
21678 "\n"
21679 msgstr ""
21680
21681 #. type: textblock
21682 #: ../fish/guestfish.pod:801
21683 msgid ""
21684 "The space before the pipe symbol is required, any space after the pipe "
21685 "symbol is optional.  Everything after the pipe symbol is just passed "
21686 "straight to the host shell, so it can contain redirections, globs and "
21687 "anything else that makes sense on the host side."
21688 msgstr ""
21689
21690 #. type: textblock
21691 #: ../fish/guestfish.pod:806
21692 msgid ""
21693 "To use a literal argument which begins with a pipe symbol, you have to quote "
21694 "it, eg:"
21695 msgstr ""
21696
21697 #. type: verbatim
21698 #: ../fish/guestfish.pod:809
21699 #, no-wrap
21700 msgid ""
21701 " echo \"|\"\n"
21702 "\n"
21703 msgstr ""
21704
21705 #. type: =head1
21706 #: ../fish/guestfish.pod:811
21707 msgid "HOME DIRECTORIES"
21708 msgstr ""
21709
21710 #. type: textblock
21711 #: ../fish/guestfish.pod:813
21712 msgid ""
21713 "If a parameter starts with the character C<~> then the tilde may be expanded "
21714 "as a home directory path (either C<~> for the current user's home directory, "
21715 "or C<~user> for another user)."
21716 msgstr ""
21717
21718 #. type: textblock
21719 #: ../fish/guestfish.pod:817
21720 msgid ""
21721 "Note that home directory expansion happens for users known I<on the host>, "
21722 "not in the guest filesystem."
21723 msgstr ""
21724
21725 #. type: textblock
21726 #: ../fish/guestfish.pod:820
21727 msgid ""
21728 "To use a literal argument which begins with a tilde, you have to quote it, "
21729 "eg:"
21730 msgstr ""
21731
21732 #. type: verbatim
21733 #: ../fish/guestfish.pod:823
21734 #, no-wrap
21735 msgid ""
21736 " echo \"~\"\n"
21737 "\n"
21738 msgstr ""
21739
21740 #. type: =head2
21741 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:534
21742 msgid "ENCRYPTED DISKS"
21743 msgstr "ЗАШИФРОВАНІ ДИСКИ"
21744
21745 #. type: textblock
21746 #: ../fish/guestfish.pod:827
21747 msgid ""
21748 "Libguestfs has some support for Linux guests encrypted according to the "
21749 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
21750 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
21751 "LUKS is supported."
21752 msgstr ""
21753
21754 #. type: textblock
21755 #: ../fish/guestfish.pod:832
21756 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
21757 msgstr ""
21758
21759 #. type: verbatim
21760 #: ../fish/guestfish.pod:834
21761 #, no-wrap
21762 msgid ""
21763 " ><fs> vfs-type /dev/sda2\n"
21764 " crypto_LUKS\n"
21765 "\n"
21766 msgstr ""
21767
21768 #. type: textblock
21769 #: ../fish/guestfish.pod:837
21770 msgid ""
21771 "Then open those devices using L</luks-open>.  This creates a device-mapper "
21772 "device called C</dev/mapper/luksdev>."
21773 msgstr ""
21774
21775 #. type: verbatim
21776 #: ../fish/guestfish.pod:840
21777 #, no-wrap
21778 msgid ""
21779 " ><fs> luks-open /dev/sda2 luksdev\n"
21780 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
21781 "\n"
21782 msgstr ""
21783
21784 #. type: textblock
21785 #: ../fish/guestfish.pod:843
21786 msgid ""
21787 "Finally you have to tell LVM to scan for volume groups on the newly created "
21788 "mapper device:"
21789 msgstr ""
21790
21791 #. type: verbatim
21792 #: ../fish/guestfish.pod:846
21793 #, no-wrap
21794 msgid ""
21795 " vgscan\n"
21796 " vg-activate-all true\n"
21797 "\n"
21798 msgstr ""
21799
21800 #. type: textblock
21801 #: ../fish/guestfish.pod:849
21802 msgid "The logical volume(s) can now be mounted in the usual way."
21803 msgstr ""
21804
21805 #. type: textblock
21806 #: ../fish/guestfish.pod:851
21807 msgid ""
21808 "Before closing a LUKS device you must unmount any logical volumes on it and "
21809 "deactivate the volume groups by calling C<vg-activate false VG> on each "
21810 "one.  Then you can close the mapper device:"
21811 msgstr ""
21812
21813 #. type: verbatim
21814 #: ../fish/guestfish.pod:855
21815 #, no-wrap
21816 msgid ""
21817 " vg-activate false /dev/VG\n"
21818 " luks-close /dev/mapper/luksdev\n"
21819 "\n"
21820 msgstr ""
21821
21822 #. type: textblock
21823 #: ../fish/guestfish.pod:860
21824 msgid ""
21825 "If a path is prefixed with C<win:> then you can use Windows-style drive "
21826 "letters and paths (with some limitations).  The following commands are "
21827 "equivalent:"
21828 msgstr ""
21829
21830 #. type: verbatim
21831 #: ../fish/guestfish.pod:864
21832 #, no-wrap
21833 msgid ""
21834 " file /WINDOWS/system32/config/system.LOG\n"
21835 "\n"
21836 msgstr ""
21837
21838 #. type: verbatim
21839 #: ../fish/guestfish.pod:866
21840 #, no-wrap
21841 msgid ""
21842 " file win:\\windows\\system32\\config\\system.log\n"
21843 "\n"
21844 msgstr ""
21845
21846 #. type: verbatim
21847 #: ../fish/guestfish.pod:868
21848 #, no-wrap
21849 msgid ""
21850 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
21851 "\n"
21852 msgstr ""
21853
21854 #. type: textblock
21855 #: ../fish/guestfish.pod:870
21856 msgid ""
21857 "The parameter is rewritten \"behind the scenes\" by looking up the position "
21858 "where the drive is mounted, prepending that to the path, changing all "
21859 "backslash characters to forward slash, then resolving the result using L</"
21860 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
21861 "the parameter might be rewritten like this:"
21862 msgstr ""
21863
21864 #. type: verbatim
21865 #: ../fish/guestfish.pod:876
21866 #, no-wrap
21867 msgid ""
21868 " win:e:\\foo\\bar => /e/FOO/bar\n"
21869 "\n"
21870 msgstr ""
21871
21872 #. type: textblock
21873 #: ../fish/guestfish.pod:878
21874 msgid "This only works in argument positions that expect a path."
21875 msgstr ""
21876
21877 #. type: =head1
21878 #: ../fish/guestfish.pod:880
21879 msgid "UPLOADING AND DOWNLOADING FILES"
21880 msgstr ""
21881
21882 #. type: textblock
21883 #: ../fish/guestfish.pod:882
21884 msgid ""
21885 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
21886 "others which upload from or download to a local file, you can use the "
21887 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
21888 msgstr ""
21889
21890 #. type: verbatim
21891 #: ../fish/guestfish.pod:886
21892 #, no-wrap
21893 msgid ""
21894 " upload - /foo\n"
21895 "\n"
21896 msgstr ""
21897
21898 #. type: textblock
21899 #: ../fish/guestfish.pod:888
21900 msgid ""
21901 "reads stdin and creates from that a file C</foo> in the disk image, and:"
21902 msgstr ""
21903
21904 #. type: verbatim
21905 #: ../fish/guestfish.pod:891
21906 #, no-wrap
21907 msgid ""
21908 " tar-out /etc - | tar tf -\n"
21909 "\n"
21910 msgstr ""
21911
21912 #. type: textblock
21913 #: ../fish/guestfish.pod:893
21914 msgid ""
21915 "writes the tarball to stdout and then pipes that into the external \"tar\" "
21916 "command (see L</PIPES>)."
21917 msgstr ""
21918
21919 #. type: textblock
21920 #: ../fish/guestfish.pod:896
21921 msgid ""
21922 "When using C<-> to read from stdin, the input is read up to the end of "
21923 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
21924 "some arbitrary end marker:"
21925 msgstr ""
21926
21927 #. type: verbatim
21928 #: ../fish/guestfish.pod:900
21929 #, no-wrap
21930 msgid ""
21931 " upload -<<END /foo\n"
21932 " input line 1\n"
21933 " input line 2\n"
21934 " input line 3\n"
21935 " END\n"
21936 "\n"
21937 msgstr ""
21938
21939 #. type: textblock
21940 #: ../fish/guestfish.pod:906
21941 msgid ""
21942 "Any string of characters can be used instead of C<END>.  The end marker must "
21943 "appear on a line of its own, without any preceeding or following characters "
21944 "(not even spaces)."
21945 msgstr ""
21946
21947 #. type: textblock
21948 #: ../fish/guestfish.pod:910
21949 msgid ""
21950 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
21951 "upload local files (so-called \"FileIn\" parameters in the generator)."
21952 msgstr ""
21953
21954 #. type: =head1
21955 #: ../fish/guestfish.pod:913
21956 msgid "EXIT ON ERROR BEHAVIOUR"
21957 msgstr ""
21958
21959 #. type: textblock
21960 #: ../fish/guestfish.pod:915
21961 msgid ""
21962 "By default, guestfish will ignore any errors when in interactive mode (ie. "
21963 "taking commands from a human over a tty), and will exit on the first error "
21964 "in non-interactive mode (scripts, commands given on the command line)."
21965 msgstr ""
21966
21967 #. type: textblock
21968 #: ../fish/guestfish.pod:920
21969 msgid ""
21970 "If you prefix a command with a I<-> character, then that command will not "
21971 "cause guestfish to exit, even if that (one) command returns an error."
21972 msgstr ""
21973
21974 #. type: =head1
21975 #: ../fish/guestfish.pod:924
21976 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
21977 msgstr ""
21978
21979 #. type: textblock
21980 #: ../fish/guestfish.pod:926
21981 msgid ""
21982 "Guestfish can be remote-controlled over a socket.  This is useful "
21983 "particularly in shell scripts where you want to make several different "
21984 "changes to a filesystem, but you don't want the overhead of starting up a "
21985 "guestfish process each time."
21986 msgstr ""
21987
21988 #. type: textblock
21989 #: ../fish/guestfish.pod:931
21990 msgid "Start a guestfish server process using:"
21991 msgstr ""
21992
21993 #. type: verbatim
21994 #: ../fish/guestfish.pod:933
21995 #, no-wrap
21996 msgid ""
21997 " eval \"`guestfish --listen`\"\n"
21998 "\n"
21999 msgstr ""
22000
22001 #. type: textblock
22002 #: ../fish/guestfish.pod:935
22003 msgid "and then send it commands by doing:"
22004 msgstr ""
22005
22006 #. type: verbatim
22007 #: ../fish/guestfish.pod:937
22008 #, no-wrap
22009 msgid ""
22010 " guestfish --remote cmd [...]\n"
22011 "\n"
22012 msgstr ""
22013
22014 #. type: textblock
22015 #: ../fish/guestfish.pod:939
22016 msgid "To cause the server to exit, send it the exit command:"
22017 msgstr ""
22018
22019 #. type: textblock
22020 #: ../fish/guestfish.pod:943
22021 msgid ""
22022 "Note that the server will normally exit if there is an error in a command.  "
22023 "You can change this in the usual way.  See section L</EXIT ON ERROR "
22024 "BEHAVIOUR>."
22025 msgstr ""
22026
22027 #. type: =head2
22028 #: ../fish/guestfish.pod:947
22029 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
22030 msgstr ""
22031
22032 #. type: textblock
22033 #: ../fish/guestfish.pod:949
22034 msgid ""
22035 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
22036 "is how the I<--remote> option knows where to send the commands.  You can "
22037 "have several guestfish listener processes running using:"
22038 msgstr ""
22039
22040 #. type: verbatim
22041 #: ../fish/guestfish.pod:953
22042 #, no-wrap
22043 msgid ""
22044 " eval \"`guestfish --listen`\"\n"
22045 " pid1=$GUESTFISH_PID\n"
22046 " eval \"`guestfish --listen`\"\n"
22047 " pid2=$GUESTFISH_PID\n"
22048 " ...\n"
22049 " guestfish --remote=$pid1 cmd\n"
22050 " guestfish --remote=$pid2 cmd\n"
22051 "\n"
22052 msgstr ""
22053
22054 #. type: =head2
22055 #: ../fish/guestfish.pod:961
22056 msgid "REMOTE CONTROL AND CSH"
22057 msgstr ""
22058
22059 #. type: textblock
22060 #: ../fish/guestfish.pod:963
22061 msgid ""
22062 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
22063 "option:"
22064 msgstr ""
22065
22066 #. type: verbatim
22067 #: ../fish/guestfish.pod:966
22068 #, no-wrap
22069 msgid ""
22070 " eval \"`guestfish --listen --csh`\"\n"
22071 "\n"
22072 msgstr ""
22073
22074 #. type: =head2
22075 #: ../fish/guestfish.pod:968
22076 msgid "REMOTE CONTROL DETAILS"
22077 msgstr ""
22078
22079 #. type: textblock
22080 #: ../fish/guestfish.pod:970
22081 msgid ""
22082 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
22083 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
22084 "and C<$PID> is the process ID of the server."
22085 msgstr ""
22086
22087 #. type: textblock
22088 #: ../fish/guestfish.pod:974
22089 msgid "Guestfish client and server versions must match exactly."
22090 msgstr ""
22091
22092 #. type: =head2
22093 #: ../fish/guestfish.pod:976
22094 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
22095 msgstr ""
22096
22097 #. type: textblock
22098 #: ../fish/guestfish.pod:978
22099 msgid ""
22100 "From Bash, you can use the following code which creates a guestfish "
22101 "instance, correctly quotes the command line, handles failure to start, and "
22102 "cleans up guestfish when the script exits:"
22103 msgstr ""
22104
22105 #. type: verbatim
22106 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:980
22107 #, no-wrap
22108 msgid ""
22109 " #!/bin/bash -\n"
22110 " \n"
22111 msgstr ""
22112
22113 #. type: verbatim
22114 #: ../fish/guestfish.pod:986
22115 #, no-wrap
22116 msgid ""
22117 " guestfish[0]=\"guestfish\"\n"
22118 " guestfish[1]=\"--listen\"\n"
22119 " guestfish[2]=\"--ro\"\n"
22120 " guestfish[3]=\"-a\"\n"
22121 " guestfish[4]=\"disk.img\"\n"
22122 " \n"
22123 msgstr ""
22124
22125 #. type: verbatim
22126 #: ../fish/guestfish.pod:992
22127 #, no-wrap
22128 msgid ""
22129 " GUESTFISH_PID=\n"
22130 " eval $(\"${guestfish[@]}\")\n"
22131 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
22132 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
22133 "     exit 1\n"
22134 " fi\n"
22135 " \n"
22136 msgstr ""
22137
22138 #. type: verbatim
22139 #: ../fish/guestfish.pod:999
22140 #, no-wrap
22141 msgid ""
22142 " cleanup_guestfish ()\n"
22143 " {\n"
22144 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
22145 " }\n"
22146 " trap cleanup_guestfish EXIT ERR\n"
22147 " \n"
22148 msgstr ""
22149
22150 #. type: verbatim
22151 #: ../fish/guestfish.pod:1005
22152 #, no-wrap
22153 msgid ""
22154 " guestfish --remote -- run\n"
22155 " \n"
22156 msgstr ""
22157
22158 #. type: verbatim
22159 #: ../fish/guestfish.pod:1007
22160 #, no-wrap
22161 msgid ""
22162 " # ...\n"
22163 "\n"
22164 msgstr ""
22165
22166 #. type: =head2
22167 #: ../fish/guestfish.pod:1009
22168 msgid "REMOTE CONTROL RUN COMMAND HANGING"
22169 msgstr ""
22170
22171 #. type: textblock
22172 #: ../fish/guestfish.pod:1011
22173 msgid ""
22174 "Using the C<run> (or C<launch>) command remotely in a command substitution "
22175 "context hangs, ie. don't do (note the backquotes):"
22176 msgstr ""
22177
22178 #. type: verbatim
22179 #: ../fish/guestfish.pod:1014
22180 #, no-wrap
22181 msgid ""
22182 " a=`guestfish --remote run`\n"
22183 "\n"
22184 msgstr ""
22185
22186 #. type: textblock
22187 #: ../fish/guestfish.pod:1016
22188 msgid ""
22189 "Since the C<run> command produces no output on stdout, this is not useful "
22190 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
22191 "cgi?id=592910>."
22192 msgstr ""
22193
22194 #. type: =head1
22195 #: ../fish/guestfish.pod:1020
22196 msgid "PREPARED DISK IMAGES"
22197 msgstr ""
22198
22199 #. type: textblock
22200 #: ../fish/guestfish.pod:1022
22201 msgid ""
22202 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
22203 "preformatted disk images that guestfish can make for you to save typing.  "
22204 "This is particularly useful for testing purposes.  This option is used "
22205 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
22206 "can be mixed with I<-a>)."
22207 msgstr ""
22208
22209 #. type: textblock
22210 #: ../fish/guestfish.pod:1028
22211 msgid ""
22212 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
22213 "the second and so on.  Existing files in the current directory are "
22214 "I<overwritten>."
22215 msgstr ""
22216
22217 #. type: textblock
22218 #: ../fish/guestfish.pod:1032
22219 msgid ""
22220 "The type briefly describes how the disk should be sized, partitioned, how "
22221 "filesystem(s) should be created, and how content should be added.  "
22222 "Optionally the type can be followed by extra parameters, separated by C<:> "
22223 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
22224 "allocated disk, containing a single partition, with the partition formatted "
22225 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
22226 "disk instead."
22227 msgstr ""
22228
22229 #. type: textblock
22230 #: ../fish/guestfish.pod:1040
22231 msgid "To list the available types and any extra parameters they take, run:"
22232 msgstr ""
22233
22234 #. type: textblock
22235 #: ../fish/guestfish.pod:1044
22236 msgid ""
22237 "Note that the prepared filesystem is not mounted.  You would usually have to "
22238 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
22239 msgstr ""
22240
22241 #. type: textblock
22242 #: ../fish/guestfish.pod:1048
22243 msgid ""
22244 "If any I<-N> or I<--new> options are given, the guest is automatically "
22245 "launched."
22246 msgstr ""
22247
22248 #. type: textblock
22249 #: ../fish/guestfish.pod:1053
22250 msgid "Create a 100MB disk with an ext4-formatted partition:"
22251 msgstr ""
22252
22253 #. type: verbatim
22254 #: ../fish/guestfish.pod:1055
22255 #, no-wrap
22256 msgid ""
22257 " guestfish -N fs:ext4\n"
22258 "\n"
22259 msgstr ""
22260
22261 #. type: textblock
22262 #: ../fish/guestfish.pod:1057
22263 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
22264 msgstr ""
22265
22266 #. type: verbatim
22267 #: ../fish/guestfish.pod:1059
22268 #, no-wrap
22269 msgid ""
22270 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
22271 "\n"
22272 msgstr ""
22273
22274 #. type: textblock
22275 #: ../fish/guestfish.pod:1061
22276 msgid "Create a blank 200MB disk:"
22277 msgstr ""
22278
22279 #. type: verbatim
22280 #: ../fish/guestfish.pod:1063
22281 #, no-wrap
22282 msgid ""
22283 " guestfish -N disk:200M\n"
22284 "\n"
22285 msgstr ""
22286
22287 #. type: =head1
22288 #: ../fish/guestfish.pod:1065
22289 msgid "PROGRESS BARS"
22290 msgstr ""
22291
22292 #. type: textblock
22293 #: ../fish/guestfish.pod:1067
22294 msgid ""
22295 "Some (not all) long-running commands send progress notification messages as "
22296 "they are running.  Guestfish turns these messages into progress bars."
22297 msgstr ""
22298
22299 #. type: textblock
22300 #: ../fish/guestfish.pod:1071
22301 msgid ""
22302 "When a command that supports progress bars takes longer than two seconds to "
22303 "run, and if progress bars are enabled, then you will see one appearing below "
22304 "the command:"
22305 msgstr ""
22306
22307 #. type: verbatim
22308 #: ../fish/guestfish.pod:1075
22309 #, no-wrap
22310 msgid ""
22311 " ><fs> copy-size /large-file /another-file 2048M\n"
22312 " / 10% [#####-----------------------------------------] 00:30\n"
22313 "\n"
22314 msgstr ""
22315
22316 #. type: textblock
22317 #: ../fish/guestfish.pod:1078
22318 msgid ""
22319 "The spinner on the left hand side moves round once for every progress "
22320 "notification received from the backend.  This is a (reasonably) golden "
22321 "assurance that the command is \"doing something\" even if the progress bar "
22322 "is not moving, because the command is able to send the progress "
22323 "notifications.  When the bar reaches 100% and the command finishes, the "
22324 "spinner disappears."
22325 msgstr ""
22326
22327 #. type: textblock
22328 #: ../fish/guestfish.pod:1085
22329 msgid ""
22330 "Progress bars are enabled by default when guestfish is used interactively.  "
22331 "You can enable them even for non-interactive modes using I<--progress-bars>, "
22332 "and you can disable them completely using I<--no-progress-bars>."
22333 msgstr ""
22334
22335 #. type: =head1
22336 #: ../fish/guestfish.pod:1090
22337 msgid "GUESTFISH COMMANDS"
22338 msgstr ""
22339
22340 #. type: textblock
22341 #: ../fish/guestfish.pod:1092
22342 msgid ""
22343 "The commands in this section are guestfish convenience commands, in other "
22344 "words, they are not part of the L<guestfs(3)> API."
22345 msgstr ""
22346
22347 #. type: =head2
22348 #: ../fish/guestfish.pod:1095
22349 msgid "help"
22350 msgstr "help"
22351
22352 #. type: verbatim
22353 #: ../fish/guestfish.pod:1097
22354 #, no-wrap
22355 msgid ""
22356 " help\n"
22357 " help cmd\n"
22358 "\n"
22359 msgstr ""
22360 " help\n"
22361 " help команда\n"
22362 "\n"
22363
22364 #. type: textblock
22365 #: ../fish/guestfish.pod:1100
22366 msgid "Without any parameter, this provides general help."
22367 msgstr "Без параметра показує загальну довідкову інформацію."
22368
22369 #. type: textblock
22370 #: ../fish/guestfish.pod:1102
22371 msgid "With a C<cmd> parameter, this displays detailed help for that command."
22372 msgstr ""
22373
22374 #. type: =head2
22375 #: ../fish/guestfish.pod:1104
22376 msgid "quit | exit"
22377 msgstr ""
22378
22379 #. type: textblock
22380 #: ../fish/guestfish.pod:1106
22381 msgid "This exits guestfish.  You can also use C<^D> key."
22382 msgstr ""
22383
22384 #. type: textblock
22385 #: ../fish/guestfish.pod:1108
22386 msgid "@FISH_COMMANDS@"
22387 msgstr ""
22388
22389 #. type: =head1
22390 #: ../fish/guestfish.pod:1110
22391 msgid "COMMANDS"
22392 msgstr "КОМАНДИ"
22393
22394 #. type: textblock
22395 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1520
22396 msgid "@ACTIONS@"
22397 msgstr "@ACTIONS@"
22398
22399 #. type: textblock
22400 #: ../fish/guestfish.pod:1116
22401 msgid ""
22402 "guestfish returns 0 if the commands completed without error, or 1 if there "
22403 "was an error."
22404 msgstr ""
22405
22406 #. type: =item
22407 #: ../fish/guestfish.pod:1123
22408 msgid "EDITOR"
22409 msgstr "РЕДАКТОР"
22410
22411 #. type: textblock
22412 #: ../fish/guestfish.pod:1125
22413 msgid ""
22414 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
22415 "C<vi>."
22416 msgstr ""
22417
22418 #. type: =item
22419 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3218
22420 msgid "FEBOOTSTRAP_KERNEL"
22421 msgstr ""
22422
22423 #. type: =item
22424 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3220
22425 msgid "FEBOOTSTRAP_MODULES"
22426 msgstr ""
22427
22428 #. type: textblock
22429 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3222
22430 msgid ""
22431 "These two environment variables allow the kernel that libguestfs uses in the "
22432 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
22433 "most recent host kernel is chosen.  For more information about kernel "
22434 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
22435 "available in febootstrap E<ge> 3.8."
22436 msgstr ""
22437
22438 #. type: =item
22439 #: ../fish/guestfish.pod:1138
22440 msgid "GUESTFISH_DISPLAY_IMAGE"
22441 msgstr ""
22442
22443 #. type: textblock
22444 #: ../fish/guestfish.pod:1140
22445 msgid ""
22446 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
22447 "If not set, it uses L<display(1)>."
22448 msgstr ""
22449
22450 #. type: =item
22451 #: ../fish/guestfish.pod:1143
22452 msgid "GUESTFISH_PID"
22453 msgstr ""
22454
22455 #. type: textblock
22456 #: ../fish/guestfish.pod:1145
22457 msgid ""
22458 "Used with the I<--remote> option to specify the remote guestfish process to "
22459 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
22460 msgstr ""
22461
22462 #. type: =item
22463 #: ../fish/guestfish.pod:1149
22464 msgid "HEXEDITOR"
22465 msgstr ""
22466
22467 #. type: textblock
22468 #: ../fish/guestfish.pod:1151
22469 msgid ""
22470 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
22471 "not specified, the external L<hexedit(1)> program is used."
22472 msgstr ""
22473
22474 #. type: =item
22475 #: ../fish/guestfish.pod:1155
22476 msgid "HOME"
22477 msgstr "ДОМІВКА"
22478
22479 #. type: textblock
22480 #: ../fish/guestfish.pod:1157
22481 msgid ""
22482 "If compiled with GNU readline support, various files in the home directory "
22483 "can be used.  See L</FILES>."
22484 msgstr ""
22485
22486 #. type: =item
22487 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3228
22488 msgid "LIBGUESTFS_APPEND"
22489 msgstr ""
22490
22491 #. type: textblock
22492 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3230
22493 msgid "Pass additional options to the guest kernel."
22494 msgstr ""
22495
22496 #. type: =item
22497 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3232
22498 msgid "LIBGUESTFS_DEBUG"
22499 msgstr "LIBGUESTFS_DEBUG"
22500
22501 #. type: textblock
22502 #: ../fish/guestfish.pod:1166
22503 msgid ""
22504 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
22505 "effect as using the B<-v> option."
22506 msgstr ""
22507
22508 #. type: =item
22509 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3237
22510 msgid "LIBGUESTFS_MEMSIZE"
22511 msgstr "LIBGUESTFS_MEMSIZE"
22512
22513 #. type: textblock
22514 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3239
22515 msgid ""
22516 "Set the memory allocated to the qemu process, in megabytes.  For example:"
22517 msgstr ""
22518
22519 #. type: verbatim
22520 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3242
22521 #, no-wrap
22522 msgid ""
22523 " LIBGUESTFS_MEMSIZE=700\n"
22524 "\n"
22525 msgstr ""
22526 " LIBGUESTFS_MEMSIZE=700\n"
22527 "\n"
22528
22529 #. type: =item
22530 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3244
22531 msgid "LIBGUESTFS_PATH"
22532 msgstr ""
22533
22534 #. type: textblock
22535 #: ../fish/guestfish.pod:1178
22536 msgid ""
22537 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
22538 "the discussion of paths in L<guestfs(3)>."
22539 msgstr ""
22540
22541 #. type: =item
22542 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3249
22543 msgid "LIBGUESTFS_QEMU"
22544 msgstr ""
22545
22546 #. type: textblock
22547 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3251
22548 msgid ""
22549 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
22550 "which was found at compile time by the configure script is used."
22551 msgstr ""
22552
22553 #. type: =item
22554 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3257
22555 msgid "LIBGUESTFS_TRACE"
22556 msgstr ""
22557
22558 #. type: textblock
22559 #: ../fish/guestfish.pod:1189
22560 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
22561 msgstr ""
22562
22563 #. type: =item
22564 #: ../fish/guestfish.pod:1191
22565 msgid "PAGER"
22566 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
22567
22568 #. type: textblock
22569 #: ../fish/guestfish.pod:1193
22570 msgid ""
22571 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
22572 "C<more>."
22573 msgstr ""
22574
22575 #. type: =item
22576 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:254
22577 #: ../src/guestfs.pod:3262
22578 msgid "TMPDIR"
22579 msgstr ""
22580
22581 #. type: textblock
22582 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3264
22583 msgid ""
22584 "Location of temporary directory, defaults to C</tmp> except for the cached "
22585 "supermin appliance which defaults to C</var/tmp>."
22586 msgstr ""
22587
22588 #. type: textblock
22589 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3267
22590 msgid ""
22591 "If libguestfs was compiled to use the supermin appliance then the real "
22592 "appliance is cached in this directory, shared between all handles belonging "
22593 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
22594 "use in case C</var/tmp> is not large enough."
22595 msgstr ""
22596
22597 #. type: =head1
22598 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
22599 #: ../rescue/virt-rescue.pod:310
22600 msgid "FILES"
22601 msgstr "ФАЙЛИ"
22602
22603 #. type: =item
22604 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
22605 #: ../rescue/virt-rescue.pod:314
22606 msgid "$HOME/.libguestfs-tools.rc"
22607 msgstr ""
22608
22609 #. type: =item
22610 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
22611 #: ../rescue/virt-rescue.pod:316
22612 msgid "/etc/libguestfs-tools.conf"
22613 msgstr ""
22614
22615 #. type: textblock
22616 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
22617 #: ../rescue/virt-rescue.pod:318
22618 msgid ""
22619 "This configuration file controls the default read-only or read-write mode "
22620 "(I<--ro> or I<--rw>)."
22621 msgstr ""
22622
22623 #. type: textblock
22624 #: ../fish/guestfish.pod:1220
22625 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
22626 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
22627
22628 #. type: =item
22629 #: ../fish/guestfish.pod:1222
22630 msgid "$HOME/.guestfish"
22631 msgstr ""
22632
22633 #. type: textblock
22634 #: ../fish/guestfish.pod:1224
22635 msgid ""
22636 "If compiled with GNU readline support, then the command history is saved in "
22637 "this file."
22638 msgstr ""
22639
22640 #. type: =item
22641 #: ../fish/guestfish.pod:1227
22642 msgid "$HOME/.inputrc"
22643 msgstr ""
22644
22645 #. type: =item
22646 #: ../fish/guestfish.pod:1229
22647 msgid "/etc/inputrc"
22648 msgstr ""
22649
22650 #. type: textblock
22651 #: ../fish/guestfish.pod:1231
22652 msgid ""
22653 "If compiled with GNU readline support, then these files can be used to "
22654 "configure readline.  For further information, please see L<readline(3)/"
22655 "INITIALIZATION FILE>."
22656 msgstr ""
22657
22658 #. type: textblock
22659 #: ../fish/guestfish.pod:1235
22660 msgid "To write rules which only apply to guestfish, use:"
22661 msgstr ""
22662
22663 #. type: verbatim
22664 #: ../fish/guestfish.pod:1237
22665 #, no-wrap
22666 msgid ""
22667 " $if guestfish\n"
22668 " ...\n"
22669 " $endif\n"
22670 "\n"
22671 msgstr ""
22672
22673 #. type: textblock
22674 #: ../fish/guestfish.pod:1241
22675 msgid ""
22676 "Variables that you can set in inputrc that change the behaviour of guestfish "
22677 "in useful ways include:"
22678 msgstr ""
22679
22680 #. type: =item
22681 #: ../fish/guestfish.pod:1246
22682 msgid "completion-ignore-case (default: on)"
22683 msgstr ""
22684
22685 #. type: textblock
22686 #: ../fish/guestfish.pod:1248
22687 msgid ""
22688 "By default, guestfish will ignore case when tab-completing paths on the "
22689 "disk.  Use:"
22690 msgstr ""
22691
22692 #. type: verbatim
22693 #: ../fish/guestfish.pod:1251
22694 #, no-wrap
22695 msgid ""
22696 " set completion-ignore-case off\n"
22697 "\n"
22698 msgstr ""
22699
22700 #. type: textblock
22701 #: ../fish/guestfish.pod:1253
22702 msgid "to make guestfish case sensitive."
22703 msgstr ""
22704
22705 #. type: =item
22706 #: ../fish/guestfish.pod:1257
22707 msgid "test1.img"
22708 msgstr ""
22709
22710 #. type: =item
22711 #: ../fish/guestfish.pod:1259
22712 msgid "test2.img (etc)"
22713 msgstr ""
22714
22715 #. type: textblock
22716 #: ../fish/guestfish.pod:1261
22717 msgid ""
22718 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
22719 "will be created in the file C<test1.img> in the current directory.  The "
22720 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
22721 "the same name will be overwritten."
22722 msgstr ""
22723
22724 #. type: textblock
22725 #: ../fish/guestfish.pod:1270
22726 msgid ""
22727 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
22728 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
22729 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
22730 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
22731 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
22732 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
22733 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
22734 msgstr ""
22735
22736 #. type: textblock
22737 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3360
22738 #: ../test-tool/libguestfs-test-tool.pod:112
22739 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
22740 msgstr ""
22741
22742 #. type: textblock
22743 #: ../fish/virt-copy-in.pod:5
22744 msgid ""
22745 "virt-copy-in - Copy files and directories into a virtual machine disk image."
22746 msgstr ""
22747
22748 #. type: verbatim
22749 #: ../fish/virt-copy-in.pod:9
22750 #, no-wrap
22751 msgid ""
22752 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
22753 "\n"
22754 msgstr ""
22755
22756 #. type: verbatim
22757 #: ../fish/virt-copy-in.pod:11
22758 #, no-wrap
22759 msgid ""
22760 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
22761 "\n"
22762 msgstr ""
22763
22764 #. type: textblock
22765 #: ../fish/virt-copy-in.pod:15
22766 msgid ""
22767 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
22768 "causing disk corruption.  The virtual machine must be shut down before you "
22769 "use this command."
22770 msgstr ""
22771
22772 #. type: textblock
22773 #: ../fish/virt-copy-in.pod:21
22774 msgid ""
22775 "C<virt-copy-in> copies files and directories from the local disk into a "
22776 "virtual machine disk image or named libvirt domain."
22777 msgstr ""
22778
22779 #. type: textblock
22780 #: ../fish/virt-copy-in.pod:24
22781 msgid ""
22782 "You can give one of more filenames and directories on the command line.  "
22783 "Directories are copied in recursively.  The final parameter must be the "
22784 "destination directory in the disk image which must be an absolute path "
22785 "starting with a C</> character."
22786 msgstr ""
22787
22788 #. type: verbatim
22789 #: ../fish/virt-copy-in.pod:33
22790 #, no-wrap
22791 msgid ""
22792 " virt-copy-in -d MyGuest resolv.conf /etc\n"
22793 "\n"
22794 msgstr ""
22795
22796 #. type: textblock
22797 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
22798 msgid "Upload a home directory to a guest:"
22799 msgstr ""
22800
22801 #. type: verbatim
22802 #: ../fish/virt-copy-in.pod:37
22803 #, no-wrap
22804 msgid ""
22805 " virt-copy-in -d MyGuest skel /home\n"
22806 "\n"
22807 msgstr ""
22808
22809 #. type: =head1
22810 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
22811 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
22812 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
22813 msgstr ""
22814
22815 #. type: textblock
22816 #: ../fish/virt-copy-in.pod:41
22817 msgid ""
22818 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22819 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
22820 "are probably better off using guestfish directly."
22821 msgstr ""
22822
22823 #. type: textblock
22824 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
22825 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
22826 msgid ""
22827 "Since the shell script just passes options straight to guestfish, read "
22828 "L<guestfish(1)> to see the full list of options."
22829 msgstr ""
22830
22831 #. type: textblock
22832 #: ../fish/virt-copy-in.pod:52
22833 msgid ""
22834 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
22835 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22836 msgstr ""
22837
22838 #. type: textblock
22839 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
22840 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
22841 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
22842 msgstr ""
22843
22844 #. type: textblock
22845 #: ../fish/virt-copy-out.pod:5
22846 msgid ""
22847 "virt-copy-out - Copy files and directories out of a virtual machine disk "
22848 "image."
22849 msgstr ""
22850
22851 #. type: verbatim
22852 #: ../fish/virt-copy-out.pod:9
22853 #, no-wrap
22854 msgid ""
22855 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
22856 "\n"
22857 msgstr ""
22858
22859 #. type: verbatim
22860 #: ../fish/virt-copy-out.pod:11
22861 #, no-wrap
22862 msgid ""
22863 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
22864 "\n"
22865 msgstr ""
22866
22867 #. type: textblock
22868 #: ../fish/virt-copy-out.pod:15
22869 msgid ""
22870 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
22871 "image or named libvirt domain."
22872 msgstr ""
22873
22874 #. type: textblock
22875 #: ../fish/virt-copy-out.pod:18
22876 msgid ""
22877 "You can give one of more filenames and directories on the command line.  "
22878 "Directories are copied out recursively."
22879 msgstr ""
22880
22881 #. type: textblock
22882 #: ../fish/virt-copy-out.pod:23
22883 msgid "Download the home directories from a virtual machine:"
22884 msgstr ""
22885
22886 #. type: verbatim
22887 #: ../fish/virt-copy-out.pod:25
22888 #, no-wrap
22889 msgid ""
22890 " mkdir homes\n"
22891 " virt-copy-out -d MyGuest /home homes\n"
22892 "\n"
22893 msgstr ""
22894
22895 #. type: textblock
22896 #: ../fish/virt-copy-out.pod:30
22897 msgid ""
22898 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22899 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
22900 "are probably better off using guestfish directly."
22901 msgstr ""
22902
22903 #. type: textblock
22904 #: ../fish/virt-copy-out.pod:41
22905 msgid ""
22906 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
22907 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
22908 msgstr ""
22909
22910 #. type: textblock
22911 #: ../fish/virt-tar-in.pod:5
22912 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
22913 msgstr ""
22914
22915 #. type: verbatim
22916 #: ../fish/virt-tar-in.pod:9
22917 #, no-wrap
22918 msgid ""
22919 " virt-tar-in -a disk.img data.tar /destination\n"
22920 "\n"
22921 msgstr ""
22922
22923 #. type: verbatim
22924 #: ../fish/virt-tar-in.pod:11
22925 #, no-wrap
22926 msgid ""
22927 " virt-tar-in -d domain data.tar /destination\n"
22928 "\n"
22929 msgstr ""
22930
22931 #. type: verbatim
22932 #: ../fish/virt-tar-in.pod:13
22933 #, no-wrap
22934 msgid ""
22935 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
22936 "\n"
22937 msgstr ""
22938
22939 #. type: textblock
22940 #: ../fish/virt-tar-in.pod:17
22941 msgid ""
22942 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
22943 "causing disk corruption.  The virtual machine must be shut down before you "
22944 "use this command."
22945 msgstr ""
22946
22947 #. type: textblock
22948 #: ../fish/virt-tar-in.pod:23
22949 msgid ""
22950 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
22951 "image or named libvirt domain."
22952 msgstr ""
22953
22954 #. type: textblock
22955 #: ../fish/virt-tar-in.pod:26
22956 msgid ""
22957 "The first parameter is the tar file.  Use C<-> to read the tar file from "
22958 "standard input.  The second parameter is the absolute target directory to "
22959 "unpack into."
22960 msgstr ""
22961
22962 #. type: verbatim
22963 #: ../fish/virt-tar-in.pod:34
22964 #, no-wrap
22965 msgid ""
22966 " virt-tar-in -d MyGuest homes.tar /home\n"
22967 "\n"
22968 msgstr ""
22969
22970 #. type: textblock
22971 #: ../fish/virt-tar-in.pod:38
22972 msgid ""
22973 "This command is just a simple shell script wrapper around the L<guestfish(1)"
22974 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
22975 "probably better off using guestfish directly."
22976 msgstr ""
22977
22978 #. type: textblock
22979 #: ../fish/virt-tar-in.pod:49
22980 msgid ""
22981 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
22982 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
22983 "org/>."
22984 msgstr ""
22985
22986 #. type: textblock
22987 #: ../fish/virt-tar-out.pod:5
22988 msgid ""
22989 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
22990 msgstr ""
22991
22992 #. type: verbatim
22993 #: ../fish/virt-tar-out.pod:9
22994 #, no-wrap
22995 msgid ""
22996 " virt-tar-out -a disk.img /dir files.tar\n"
22997 "\n"
22998 msgstr ""
22999
23000 #. type: verbatim
23001 #: ../fish/virt-tar-out.pod:11
23002 #, no-wrap
23003 msgid ""
23004 " virt-tar-out -d domain /dir files.tar\n"
23005 "\n"
23006 msgstr ""
23007
23008 #. type: verbatim
23009 #: ../fish/virt-tar-out.pod:13
23010 #, no-wrap
23011 msgid ""
23012 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
23013 "\n"
23014 msgstr ""
23015
23016 #. type: textblock
23017 #: ../fish/virt-tar-out.pod:17
23018 msgid ""
23019 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
23020 msgstr ""
23021
23022 #. type: textblock
23023 #: ../fish/virt-tar-out.pod:20
23024 msgid ""
23025 "The first parameter is the absolute path of the virtual machine directory.  "
23026 "The second parameter is the tar file to write.  Use C<-> to write to "
23027 "standard output."
23028 msgstr ""
23029
23030 #. type: textblock
23031 #: ../fish/virt-tar-out.pod:26
23032 msgid "Download the home directories from a guest:"
23033 msgstr ""
23034
23035 #. type: verbatim
23036 #: ../fish/virt-tar-out.pod:28
23037 #, no-wrap
23038 msgid ""
23039 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
23040 "\n"
23041 msgstr ""
23042
23043 #. type: textblock
23044 #: ../fish/virt-tar-out.pod:32
23045 msgid ""
23046 "This command is just a simple shell script wrapper around the L<guestfish(1)"
23047 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
23048 "are probably better off using guestfish directly."
23049 msgstr ""
23050
23051 #. type: textblock
23052 #: ../fish/virt-tar-out.pod:43
23053 msgid ""
23054 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
23055 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
23056 msgstr ""
23057
23058 #. type: textblock
23059 #: ../fuse/guestmount.pod:5
23060 msgid ""
23061 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
23062 msgstr ""
23063
23064 #. type: verbatim
23065 #: ../fuse/guestmount.pod:9
23066 #, no-wrap
23067 msgid ""
23068 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
23069 "\n"
23070 msgstr ""
23071
23072 #. type: verbatim
23073 #: ../fuse/guestmount.pod:11
23074 #, no-wrap
23075 msgid ""
23076 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
23077 "\n"
23078 msgstr ""
23079
23080 #. type: verbatim
23081 #: ../fuse/guestmount.pod:13
23082 #, no-wrap
23083 msgid ""
23084 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
23085 "\n"
23086 msgstr ""
23087
23088 #. type: textblock
23089 #: ../fuse/guestmount.pod:17
23090 msgid ""
23091 "You must I<not> use C<guestmount> in read-write mode on live virtual "
23092 "machines.  If you do this, you risk disk corruption in the VM."
23093 msgstr ""
23094
23095 #. type: textblock
23096 #: ../fuse/guestmount.pod:22
23097 msgid ""
23098 "The guestmount program can be used to mount virtual machine filesystems and "
23099 "other disk images on the host.  It uses libguestfs for access to the guest "
23100 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
23101 "a mountable device."
23102 msgstr ""
23103
23104 #. type: textblock
23105 #: ../fuse/guestmount.pod:27
23106 msgid ""
23107 "Along with other options, you have to give at least one device (I<-a> "
23108 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
23109 "option) or use the I<-i> inspection option or the I<--live> option.  How "
23110 "this works is better explained in the L<guestfish(1)> manual page, or by "
23111 "looking at the examples below."
23112 msgstr ""
23113
23114 #. type: textblock
23115 #: ../fuse/guestmount.pod:33
23116 msgid ""
23117 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
23118 "by you, and the filesystem will not be visible to any other users unless you "
23119 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
23120 "the filesystem, use the C<fusermount -u> command."
23121 msgstr ""
23122
23123 #. type: textblock
23124 #: ../fuse/guestmount.pod:41
23125 msgid ""
23126 "For a typical Windows guest which has its main filesystem on the first "
23127 "partition:"
23128 msgstr ""
23129
23130 #. type: verbatim
23131 #: ../fuse/guestmount.pod:44
23132 #, no-wrap
23133 msgid ""
23134 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
23135 "\n"
23136 msgstr ""
23137
23138 #. type: textblock
23139 #: ../fuse/guestmount.pod:46
23140 msgid ""
23141 "For a typical Linux guest which has a /boot filesystem on the first "
23142 "partition, and the root filesystem on a logical volume:"
23143 msgstr ""
23144
23145 #. type: verbatim
23146 #: ../fuse/guestmount.pod:49
23147 #, no-wrap
23148 msgid ""
23149 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
23150 "\n"
23151 msgstr ""
23152
23153 #. type: textblock
23154 #: ../fuse/guestmount.pod:51
23155 msgid "To get libguestfs to detect guest mountpoints for you:"
23156 msgstr ""
23157
23158 #. type: verbatim
23159 #: ../fuse/guestmount.pod:53
23160 #, no-wrap
23161 msgid ""
23162 " guestmount -a guest.img -i --ro /mnt\n"
23163 "\n"
23164 msgstr ""
23165
23166 #. type: textblock
23167 #: ../fuse/guestmount.pod:55
23168 msgid "For a libvirt guest called \"Guest\" you could do:"
23169 msgstr ""
23170
23171 #. type: verbatim
23172 #: ../fuse/guestmount.pod:57
23173 #, no-wrap
23174 msgid ""
23175 " guestmount -d Guest -i --ro /mnt\n"
23176 "\n"
23177 msgstr ""
23178
23179 #. type: textblock
23180 #: ../fuse/guestmount.pod:59
23181 msgid ""
23182 "If you don't know what filesystems are contained in a guest or disk image, "
23183 "use L<virt-filesystems(1)> first:"
23184 msgstr ""
23185
23186 #. type: verbatim
23187 #: ../fuse/guestmount.pod:62
23188 #, no-wrap
23189 msgid ""
23190 " virt-filesystems MyGuest\n"
23191 "\n"
23192 msgstr ""
23193
23194 #. type: textblock
23195 #: ../fuse/guestmount.pod:64
23196 msgid ""
23197 "If you want to trace the libguestfs calls but without excessive debugging "
23198 "information, we recommend:"
23199 msgstr ""
23200
23201 #. type: verbatim
23202 #: ../fuse/guestmount.pod:67
23203 #, no-wrap
23204 msgid ""
23205 " guestmount [...] --trace /mnt\n"
23206 "\n"
23207 msgstr ""
23208
23209 #. type: textblock
23210 #: ../fuse/guestmount.pod:69
23211 msgid "If you want to debug the program, we recommend:"
23212 msgstr ""
23213
23214 #. type: verbatim
23215 #: ../fuse/guestmount.pod:71
23216 #, no-wrap
23217 msgid ""
23218 " guestmount [...] --trace --verbose /mnt\n"
23219 "\n"
23220 msgstr ""
23221
23222 #. type: =head1
23223 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:96
23224 #: ../resize/virt-resize.pod:621
23225 msgid "NOTES"
23226 msgstr "ПРИМІТКИ"
23227
23228 #. type: =head2
23229 #: ../fuse/guestmount.pod:75
23230 msgid "Other users cannot see the filesystem by default"
23231 msgstr ""
23232
23233 #. type: textblock
23234 #: ../fuse/guestmount.pod:77
23235 msgid ""
23236 "If you mount a filesystem as one user (eg. root), then other users will not "
23237 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
23238 "option when mounting:"
23239 msgstr ""
23240
23241 #. type: verbatim
23242 #: ../fuse/guestmount.pod:81
23243 #, no-wrap
23244 msgid ""
23245 " sudo guestmount [...] -o allow_other /mnt\n"
23246 "\n"
23247 msgstr ""
23248
23249 #. type: =head2
23250 #: ../fuse/guestmount.pod:83
23251 msgid "Enabling FUSE"
23252 msgstr ""
23253
23254 #. type: textblock
23255 #: ../fuse/guestmount.pod:85
23256 msgid ""
23257 "On some distros, you may need to add yourself to a special group (eg. "
23258 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
23259 "Debian and derivatives."
23260 msgstr ""
23261
23262 #. type: textblock
23263 #: ../fuse/guestmount.pod:89
23264 msgid ""
23265 "On other distros, no special group is required.  It is not necessary on "
23266 "Fedora or Red Hat Enterprise Linux."
23267 msgstr ""
23268
23269 #. type: textblock
23270 #: ../fuse/guestmount.pod:100
23271 msgid "Add a block device or virtual machine image."
23272 msgstr ""
23273
23274 #. type: =item
23275 #: ../fuse/guestmount.pod:123
23276 msgid "B<--dir-cache-timeout N>"
23277 msgstr "B<--dir-cache-timeout N>"
23278
23279 #. type: textblock
23280 #: ../fuse/guestmount.pod:125
23281 msgid ""
23282 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
23283 "seconds.  The readdir cache [actually, there are several semi-independent "
23284 "caches] is populated after a readdir(2) call with the stat and extended "
23285 "attributes of the files in the directory, in anticipation that they will be "
23286 "requested soon after."
23287 msgstr ""
23288
23289 #. type: textblock
23290 #: ../fuse/guestmount.pod:131
23291 msgid ""
23292 "There is also a different attribute cache implemented by FUSE (see the FUSE "
23293 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
23294 "requests, only cache existing ones."
23295 msgstr ""
23296
23297 #. type: textblock
23298 #: ../fuse/guestmount.pod:151
23299 msgid ""
23300 "If you have untrusted raw-format guest disk images, you should use this "
23301 "option to specify the disk format.  This avoids a possible security problem "
23302 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
23303 "guestfs_add_drive_opts>."
23304 msgstr ""
23305
23306 #. type: =item
23307 #: ../fuse/guestmount.pod:156
23308 msgid "B<--fuse-help>"
23309 msgstr "B<--fuse-help>"
23310
23311 #. type: textblock
23312 #: ../fuse/guestmount.pod:158
23313 msgid "Display help on special FUSE options (see I<-o> below)."
23314 msgstr ""
23315
23316 #. type: textblock
23317 #: ../fuse/guestmount.pod:162
23318 msgid "Display brief help and exit."
23319 msgstr ""
23320
23321 #. type: textblock
23322 #: ../fuse/guestmount.pod:186
23323 msgid ""
23324 "Mount the named partition or logical volume on the given mountpoint B<in the "
23325 "guest> (this has nothing to do with mountpoints in the host)."
23326 msgstr ""
23327
23328 #. type: textblock
23329 #: ../fuse/guestmount.pod:189
23330 msgid ""
23331 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
23332 "something on C</>."
23333 msgstr ""
23334
23335 #. type: textblock
23336 #: ../fuse/guestmount.pod:206
23337 msgid ""
23338 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
23339 "unmounted.  If you specify this option, then we don't attempt to sync the "
23340 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
23341 msgstr ""
23342
23343 #. type: =item
23344 #: ../fuse/guestmount.pod:211
23345 msgid "B<-o option>"
23346 msgstr "B<-o параметр>"
23347
23348 #. type: =item
23349 #: ../fuse/guestmount.pod:213
23350 msgid "B<--option option>"
23351 msgstr "B<--option параметр>"
23352
23353 #. type: textblock
23354 #: ../fuse/guestmount.pod:215
23355 msgid "Pass extra options to FUSE."
23356 msgstr ""
23357
23358 #. type: textblock
23359 #: ../fuse/guestmount.pod:217
23360 msgid ""
23361 "To get a list of all the extra options supported by FUSE, use the command "
23362 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
23363 "of them are a good idea."
23364 msgstr ""
23365
23366 #. type: verbatim
23367 #: ../fuse/guestmount.pod:221
23368 #, no-wrap
23369 msgid ""
23370 " guestmount --fuse-help\n"
23371 "\n"
23372 msgstr ""
23373
23374 #. type: textblock
23375 #: ../fuse/guestmount.pod:223
23376 msgid "Some potentially useful FUSE options:"
23377 msgstr ""
23378
23379 #. type: =item
23380 #: ../fuse/guestmount.pod:227
23381 msgid "B<-o allow_other>"
23382 msgstr ""
23383
23384 #. type: textblock
23385 #: ../fuse/guestmount.pod:229
23386 msgid "Allow other users to see the filesystem."
23387 msgstr ""
23388
23389 #. type: =item
23390 #: ../fuse/guestmount.pod:231
23391 msgid "B<-o attr_timeout=N>"
23392 msgstr "B<-o attr_timeout=N>"
23393
23394 #. type: textblock
23395 #: ../fuse/guestmount.pod:233
23396 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
23397 msgstr ""
23398
23399 #. type: =item
23400 #: ../fuse/guestmount.pod:235
23401 msgid "B<-o kernel_cache>"
23402 msgstr ""
23403
23404 #. type: textblock
23405 #: ../fuse/guestmount.pod:237
23406 msgid ""
23407 "Allow the kernel to cache files (reduces the number of reads that have to go "
23408 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
23409 "afford the extra memory usage."
23410 msgstr ""
23411
23412 #. type: =item
23413 #: ../fuse/guestmount.pod:241
23414 msgid "B<-o uid=N> B<-o gid=N>"
23415 msgstr "B<-o uid=N> B<-o gid=N>"
23416
23417 #. type: textblock
23418 #: ../fuse/guestmount.pod:243
23419 msgid ""
23420 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
23421 "the chosen values."
23422 msgstr ""
23423
23424 #. type: textblock
23425 #: ../fuse/guestmount.pod:252
23426 msgid ""
23427 "Add devices and mount everything read-only.  Also disallow writes and make "
23428 "the disk appear read-only to FUSE."
23429 msgstr ""
23430
23431 #. type: textblock
23432 #: ../fuse/guestmount.pod:255
23433 msgid ""
23434 "This is highly recommended if you are not going to edit the guest disk.  If "
23435 "the guest is running and this option is I<not> supplied, then there is a "
23436 "strong risk of disk corruption in the guest.  We try to prevent this from "
23437 "happening, but it is not always possible."
23438 msgstr ""
23439
23440 #. type: textblock
23441 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:199
23442 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23443 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23444
23445 #. type: textblock
23446 #: ../fuse/guestmount.pod:264
23447 msgid "Enable SELinux support for the guest."
23448 msgstr ""
23449
23450 #. type: textblock
23451 #: ../fuse/guestmount.pod:270
23452 msgid "Enable verbose messages from underlying libguestfs."
23453 msgstr ""
23454
23455 #. type: textblock
23456 #: ../fuse/guestmount.pod:276
23457 msgid "Display the program version and exit."
23458 msgstr ""
23459
23460 #. type: textblock
23461 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
23462 #: ../rescue/virt-rescue.pod:238 ../rescue/virt-rescue.pod:321
23463 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23464 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
23465
23466 #. type: =item
23467 #: ../fuse/guestmount.pod:289
23468 msgid "B<--trace>"
23469 msgstr "B<--trace>"
23470
23471 #. type: textblock
23472 #: ../fuse/guestmount.pod:291
23473 msgid "Trace libguestfs calls and entry into each FUSE function."
23474 msgstr ""
23475
23476 #. type: textblock
23477 #: ../fuse/guestmount.pod:293
23478 msgid "This also stops the daemon from forking into the background."
23479 msgstr ""
23480
23481 #. type: textblock
23482 #: ../fuse/guestmount.pod:319
23483 msgid ""
23484 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23485 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
23486 "net/>."
23487 msgstr ""
23488 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
23489 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
23490 "net/>."
23491
23492 #. type: textblock
23493 #: ../fuse/guestmount.pod:334
23494 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
23495 msgstr ""
23496
23497 #. type: textblock
23498 #: ../inspector/virt-inspector.pod:5
23499 msgid ""
23500 "virt-inspector - Display operating system version and other information "
23501 "about a virtual machine"
23502 msgstr ""
23503
23504 #. type: verbatim
23505 #: ../inspector/virt-inspector.pod:9
23506 #, no-wrap
23507 msgid ""
23508 " virt-inspector [--options] -d domname\n"
23509 "\n"
23510 msgstr ""
23511
23512 #. type: verbatim
23513 #: ../inspector/virt-inspector.pod:11
23514 #, no-wrap
23515 msgid ""
23516 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
23517 "\n"
23518 msgstr ""
23519
23520 #. type: verbatim
23521 #: ../inspector/virt-inspector.pod:15
23522 #, no-wrap
23523 msgid ""
23524 " virt-inspector domname\n"
23525 "\n"
23526 msgstr ""
23527
23528 #. type: verbatim
23529 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:148
23530 #, no-wrap
23531 msgid ""
23532 " virt-inspector disk.img [disk.img ...]\n"
23533 "\n"
23534 msgstr ""
23535
23536 #. type: textblock
23537 #: ../inspector/virt-inspector.pod:21
23538 msgid ""
23539 "B<virt-inspector> examines a virtual machine or disk image and tries to "
23540 "determine the version of the operating system and other information about "
23541 "the virtual machine."
23542 msgstr ""
23543
23544 #. type: textblock
23545 #: ../inspector/virt-inspector.pod:25
23546 msgid "Virt-inspector produces XML output for feeding into other programs."
23547 msgstr ""
23548
23549 #. type: textblock
23550 #: ../inspector/virt-inspector.pod:27
23551 msgid ""
23552 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
23553 "the libvirt domain (see: C<virsh list --all>)."
23554 msgstr ""
23555
23556 #. type: textblock
23557 #: ../inspector/virt-inspector.pod:30
23558 msgid ""
23559 "You can also run virt-inspector directly on disk images from a single "
23560 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
23561 "has several block devices, in which case you should list several I<-a> "
23562 "options one after another, with the first corresponding to the guest's C</"
23563 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
23564 msgstr ""
23565
23566 #. type: textblock
23567 #: ../inspector/virt-inspector.pod:37
23568 msgid ""
23569 "You can also run virt-inspector on install disks, live CDs, bootable USB "
23570 "keys and similar."
23571 msgstr ""
23572
23573 #. type: textblock
23574 #: ../inspector/virt-inspector.pod:40
23575 msgid ""
23576 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
23577 "inspect several virtual machines, you have to run virt-inspector several "
23578 "times (for example, from a shell script for-loop)."
23579 msgstr ""
23580
23581 #. type: textblock
23582 #: ../inspector/virt-inspector.pod:45
23583 msgid ""
23584 "Because virt-inspector needs direct access to guest images, it won't "
23585 "normally work over remote libvirt connections."
23586 msgstr ""
23587
23588 #. type: textblock
23589 #: ../inspector/virt-inspector.pod:48
23590 msgid ""
23591 "All of the information available from virt-inspector is also available "
23592 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
23593 "The same information can also be fetched using guestfish or via libguestfs "
23594 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
23595 "WITH OTHER PROGRAMMING LANGUAGES>)."
23596 msgstr ""
23597
23598 #. type: textblock
23599 #: ../inspector/virt-inspector.pod:81
23600 msgid ""
23601 "Libvirt is only used if you specify a C<domname> on the command line.  If "
23602 "you specify guest block devices directly (I<-a>), then libvirt is not used "
23603 "at all."
23604 msgstr ""
23605
23606 #. type: textblock
23607 #: ../inspector/virt-inspector.pod:94
23608 msgid ""
23609 "When prompting for keys and passphrases, virt-inspector normally turns "
23610 "echoing off so you cannot see what you are typing.  If you are not worried "
23611 "about Tempest attacks and there is no one else in the room you can specify "
23612 "this flag to see what you are typing."
23613 msgstr ""
23614
23615 #. type: textblock
23616 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
23617 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
23618 #: ../tools/virt-win-reg.pl:144
23619 msgid ""
23620 "Specify the format of disk images given on the command line.  If this is "
23621 "omitted then the format is autodetected from the content of the disk image."
23622 msgstr ""
23623
23624 #. type: textblock
23625 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
23626 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
23627 #: ../tools/virt-win-reg.pl:148
23628 msgid ""
23629 "If disk images are requested from libvirt, then this program asks libvirt "
23630 "for this information.  In this case, the value of the format parameter is "
23631 "ignored."
23632 msgstr ""
23633
23634 #. type: textblock
23635 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:391
23636 #: ../resize/virt-resize.pod:483 ../sparsify/virt-sparsify.pod:138
23637 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
23638 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
23639 msgid ""
23640 "If working with untrusted raw-format guest disk images, you should ensure "
23641 "the format is always specified."
23642 msgstr ""
23643
23644 #. type: =item
23645 #: ../inspector/virt-inspector.pod:135
23646 #, fuzzy
23647 #| msgid "B<--parts>"
23648 msgid "B<--xpath> query"
23649 msgstr "B<--parts>"
23650
23651 #. type: textblock
23652 #: ../inspector/virt-inspector.pod:137
23653 msgid ""
23654 "Perform an XPath query on the XML on stdin, and print the result on stdout.  "
23655 "In this mode virt-inspector simply runs an XPath query; all other inspection "
23656 "functions are disabled.  See L</XPATH QUERIES> below for some examples."
23657 msgstr ""
23658
23659 #. type: textblock
23660 #: ../inspector/virt-inspector.pod:146
23661 msgid "Previous versions of virt-inspector allowed you to write either:"
23662 msgstr ""
23663
23664 #. type: verbatim
23665 #: ../inspector/virt-inspector.pod:152
23666 #, no-wrap
23667 msgid ""
23668 " virt-inspector guestname\n"
23669 "\n"
23670 msgstr ""
23671
23672 #. type: =head1
23673 #: ../inspector/virt-inspector.pod:160
23674 msgid "XML FORMAT"
23675 msgstr ""
23676
23677 #. type: textblock
23678 #: ../inspector/virt-inspector.pod:162
23679 msgid ""
23680 "The virt-inspector XML is described precisely in a RELAX NG schema file "
23681 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
23682 "just an overview."
23683 msgstr ""
23684
23685 #. type: textblock
23686 #: ../inspector/virt-inspector.pod:166
23687 msgid ""
23688 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
23689 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
23690 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
23691 "which is vanishingly rare in real world VMs."
23692 msgstr ""
23693
23694 #. type: =head2
23695 #: ../inspector/virt-inspector.pod:171
23696 msgid "E<lt>operatingsystemE<gt>"
23697 msgstr ""
23698
23699 #. type: textblock
23700 #: ../inspector/virt-inspector.pod:173
23701 msgid ""
23702 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
23703 "describe the operating system, its architecture, the descriptive \"product "
23704 "name\" string, the type of OS and so on, as in this example:"
23705 msgstr ""
23706
23707 #. type: verbatim
23708 #: ../inspector/virt-inspector.pod:177
23709 #, no-wrap
23710 msgid ""
23711 " <operatingsystems>\n"
23712 "   <operatingsystem>\n"
23713 "     <root>/dev/sda2</root>\n"
23714 "     <name>windows</name>\n"
23715 "     <arch>i386</arch>\n"
23716 "     <distro>windows</distro>\n"
23717 "     <product_name>Windows 7 Enterprise</product_name>\n"
23718 "     <product_variant>Client</product_variant>\n"
23719 "     <major_version>6</major_version>\n"
23720 "     <minor_version>1</minor_version>\n"
23721 "     <windows_systemroot>/Windows</windows_systemroot>\n"
23722 "     <format>installed</format>\n"
23723 "\n"
23724 msgstr ""
23725
23726 #. type: textblock
23727 #: ../inspector/virt-inspector.pod:190
23728 msgid ""
23729 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
23730 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
23731 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
23732 "architecture.  The other fields are fairly self-explanatory, but because "
23733 "these fields are taken directly from the libguestfs inspection API you can "
23734 "find precise information from L<guestfs(3)/INSPECTION>."
23735 msgstr ""
23736
23737 #. type: textblock
23738 #: ../inspector/virt-inspector.pod:198
23739 msgid ""
23740 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
23741 "of view of libguestfs (block devices may have completely different names "
23742 "inside the VM itself)."
23743 msgstr ""
23744
23745 #. type: =head2
23746 #: ../inspector/virt-inspector.pod:202
23747 msgid "E<lt>mountpointsE<gt>"
23748 msgstr ""
23749
23750 #. type: textblock
23751 #: ../inspector/virt-inspector.pod:204
23752 msgid ""
23753 "Un*x-like guests typically have multiple filesystems which are mounted at "
23754 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
23755 "element which looks like this:"
23756 msgstr ""
23757
23758 #. type: verbatim
23759 #: ../inspector/virt-inspector.pod:208
23760 #, no-wrap
23761 msgid ""
23762 " <operatingsystems>\n"
23763 "   <operatingsystem>\n"
23764 "     ...\n"
23765 "     <mountpoints>\n"
23766 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
23767 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
23768 "     </mountpoints>\n"
23769 "\n"
23770 msgstr ""
23771
23772 #. type: textblock
23773 #: ../inspector/virt-inspector.pod:216
23774 msgid ""
23775 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
23776 "and may have completely different names inside the guest.  Only mountable "
23777 "filesystems appear in this list, not things like swap devices."
23778 msgstr ""
23779
23780 #. type: =head2
23781 #: ../inspector/virt-inspector.pod:221
23782 msgid "E<lt>filesystemsE<gt>"
23783 msgstr ""
23784
23785 #. type: textblock
23786 #: ../inspector/virt-inspector.pod:223
23787 msgid ""
23788 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
23789 "filesystems belonging to the guest, including swap and empty partitions.  "
23790 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
23791 "this OS or shared with this OS and other OSes)."
23792 msgstr ""
23793
23794 #. type: textblock
23795 #: ../inspector/virt-inspector.pod:229
23796 msgid "You might see something like this:"
23797 msgstr ""
23798
23799 #. type: verbatim
23800 #: ../inspector/virt-inspector.pod:231
23801 #, no-wrap
23802 msgid ""
23803 " <operatingsystems>\n"
23804 "   <operatingsystem>\n"
23805 "     ...\n"
23806 "     <filesystems>\n"
23807 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
23808 "         <type>ext4</type>\n"
23809 "         <label>Fedora-13-x86_64</label>\n"
23810 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
23811 "       </filesystem>\n"
23812 "\n"
23813 msgstr ""
23814
23815 #. type: textblock
23816 #: ../inspector/virt-inspector.pod:241
23817 msgid ""
23818 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
23819 "the label, and the UUID."
23820 msgstr ""
23821
23822 #. type: =head2
23823 #: ../inspector/virt-inspector.pod:244
23824 msgid "E<lt>applicationsE<gt>"
23825 msgstr ""
23826
23827 #. type: textblock
23828 #: ../inspector/virt-inspector.pod:246
23829 msgid ""
23830 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
23831 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
23832 "machine."
23833 msgstr ""
23834
23835 #. type: textblock
23836 #: ../inspector/virt-inspector.pod:250
23837 msgid ""
23838 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
23839 "Typical values would be C<rpm> and C<deb>."
23840 msgstr ""
23841
23842 #. type: textblock
23843 #: ../inspector/virt-inspector.pod:253
23844 msgid ""
23845 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
23846 "Typical values include C<yum>, C<up2date> and C<apt>"
23847 msgstr ""
23848
23849 #. type: textblock
23850 #: ../inspector/virt-inspector.pod:256
23851 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
23852 msgstr ""
23853
23854 #. type: verbatim
23855 #: ../inspector/virt-inspector.pod:259
23856 #, no-wrap
23857 msgid ""
23858 " <operatingsystems>\n"
23859 "   <operatingsystem>\n"
23860 "     ...\n"
23861 "     <applications>\n"
23862 "       <application>\n"
23863 "         <name>coreutils</name>\n"
23864 "         <version>8.5</version>\n"
23865 "         <release>1</release>\n"
23866 "       </application>\n"
23867 "\n"
23868 msgstr ""
23869
23870 #. type: textblock
23871 #: ../inspector/virt-inspector.pod:269
23872 msgid ""
23873 "The version and release fields may not be available for some types guests.  "
23874 "Other fields are possible, see L<guestfs(3)/"
23875 "guestfs_inspect_list_applications>."
23876 msgstr ""
23877
23878 #. type: =head2
23879 #: ../inspector/virt-inspector.pod:273
23880 msgid "E<lt>drive_mappingsE<gt>"
23881 msgstr ""
23882
23883 #. type: textblock
23884 #: ../inspector/virt-inspector.pod:275
23885 msgid ""
23886 "For operating systems like Windows which use drive letters, virt-inspector "
23887 "is able to find out how drive letters map to filesystems."
23888 msgstr ""
23889
23890 #. type: verbatim
23891 #: ../inspector/virt-inspector.pod:279
23892 #, no-wrap
23893 msgid ""
23894 " <operatingsystems>\n"
23895 "   <operatingsystem>\n"
23896 "     ...\n"
23897 "     <drive_mappings>\n"
23898 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
23899 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
23900 "     </drive_mappings>\n"
23901 "\n"
23902 msgstr ""
23903
23904 #. type: textblock
23905 #: ../inspector/virt-inspector.pod:287
23906 msgid ""
23907 "In the example above, drive C maps to the filesystem on the second partition "
23908 "on the first disk, and drive E maps to the filesystem on the first partition "
23909 "on the second disk."
23910 msgstr ""
23911
23912 #. type: textblock
23913 #: ../inspector/virt-inspector.pod:291
23914 msgid ""
23915 "Note that this only covers permanent local filesystem mappings, not things "
23916 "like network shares.  Furthermore NTFS volume mount points may not be listed "
23917 "here."
23918 msgstr ""
23919
23920 #. type: =head2
23921 #: ../inspector/virt-inspector.pod:295
23922 msgid "E<lt>iconE<gt>"
23923 msgstr ""
23924
23925 #. type: textblock
23926 #: ../inspector/virt-inspector.pod:297
23927 msgid ""
23928 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
23929 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
23930 "very large and high quality."
23931 msgstr ""
23932
23933 #. type: verbatim
23934 #: ../inspector/virt-inspector.pod:301
23935 #, no-wrap
23936 msgid ""
23937 " <operatingsystems>\n"
23938 "   <operatingsystem>\n"
23939 "     ...\n"
23940 "     <icon>\n"
23941 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
23942 "       [... many lines of base64 data ...]\n"
23943 "     </icon>\n"
23944 "\n"
23945 msgstr ""
23946
23947 #. type: textblock
23948 #: ../inspector/virt-inspector.pod:309
23949 msgid ""
23950 "To display the icon, you have to extract it and convert the base64 data back "
23951 "to a binary file.  Use an XPath query or simply an editor to extract the "
23952 "data, then use the coreutils L<base64(1)> program to do the conversion back "
23953 "to a PNG file:"
23954 msgstr ""
23955
23956 #. type: verbatim
23957 #: ../inspector/virt-inspector.pod:314
23958 #, no-wrap
23959 msgid ""
23960 " base64 -i -d < icon.data > icon.png\n"
23961 "\n"
23962 msgstr ""
23963
23964 #. type: =head2
23965 #: ../inspector/virt-inspector.pod:316
23966 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
23967 msgstr ""
23968
23969 #. type: textblock
23970 #: ../inspector/virt-inspector.pod:318
23971 msgid ""
23972 "Virt-inspector can detect some operating system installers on install disks, "
23973 "live CDs, bootable USB keys and more."
23974 msgstr ""
23975
23976 #. type: textblock
23977 #: ../inspector/virt-inspector.pod:321
23978 msgid ""
23979 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
23980 "fields may be present to indicate a live CD, network installer, or one part "
23981 "of a multipart CD.  For example:"
23982 msgstr ""
23983
23984 #. type: verbatim
23985 #: ../inspector/virt-inspector.pod:325
23986 #, no-wrap
23987 msgid ""
23988 " <operatingsystems>\n"
23989 "   <operatingsystem>\n"
23990 "     <root>/dev/sda</root>\n"
23991 "     <name>linux</name>\n"
23992 "     <arch>i386</arch>\n"
23993 "     <distro>ubuntu</distro>\n"
23994 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
23995 "     <major_version>10</major_version>\n"
23996 "     <minor_version>10</minor_version>\n"
23997 "     <format>installer</format>\n"
23998 "     <live/>\n"
23999 "\n"
24000 msgstr ""
24001
24002 #. type: =head1
24003 #: ../inspector/virt-inspector.pod:337
24004 msgid "XPATH QUERIES"
24005 msgstr ""
24006
24007 #. type: textblock
24008 #: ../inspector/virt-inspector.pod:339
24009 msgid ""
24010 "Virt-inspector includes built in support for running XPath queries.  The "
24011 "reason for including XPath support directly in virt-inspector is simply that "
24012 "there are no good and widely available command line programs that can do "
24013 "XPath queries.  The only good one is L<xmlstarlet(1)> and that is not "
24014 "available on Red Hat Enterprise Linux."
24015 msgstr ""
24016
24017 #. type: textblock
24018 #: ../inspector/virt-inspector.pod:346
24019 msgid ""
24020 "To perform an XPath query, use the I<--xpath> option.  Note that in this "
24021 "mode, virt-inspector simply reads XML from stdin and outputs the query "
24022 "result on stdout.  All other inspection features are disabled in this mode."
24023 msgstr ""
24024
24025 #. type: verbatim
24026 #: ../inspector/virt-inspector.pod:353
24027 #, no-wrap
24028 msgid ""
24029 " $ virt-inspector -d Guest | virt-inspector --xpath '//filesystems'\n"
24030 " <filesystems>\n"
24031 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
24032 "        <type>ext4</type>\n"
24033 " [...]\n"
24034 "\n"
24035 msgstr ""
24036
24037 #. type: verbatim
24038 #: ../inspector/virt-inspector.pod:359
24039 #, no-wrap
24040 msgid ""
24041 " $ virt-inspector -d Guest | \\\n"
24042 "     virt-inspector --xpath \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
24043 " ext4\n"
24044 "\n"
24045 msgstr ""
24046
24047 #. type: verbatim
24048 #: ../inspector/virt-inspector.pod:363
24049 #, no-wrap
24050 msgid ""
24051 " $ virt-inspector -d Guest | \\\n"
24052 "     virt-inspector --xpath 'string(//icon)' | base64 -i -d | display -\n"
24053 " [displays the guest icon, if there is one]\n"
24054 "\n"
24055 msgstr ""
24056
24057 #. type: =head1
24058 #: ../inspector/virt-inspector.pod:374
24059 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
24060 msgstr ""
24061
24062 #. type: textblock
24063 #: ../inspector/virt-inspector.pod:376
24064 msgid ""
24065 "Early versions of libguestfs shipped with a different virt-inspector program "
24066 "written in Perl (the current version is written in C).  The XML output of "
24067 "the Perl virt-inspector was different and it could also output in other "
24068 "formats like text."
24069 msgstr ""
24070
24071 #. type: textblock
24072 #: ../inspector/virt-inspector.pod:381
24073 msgid ""
24074 "The old virt-inspector is no longer supported or shipped with libguestfs."
24075 msgstr ""
24076
24077 #. type: textblock
24078 #: ../inspector/virt-inspector.pod:384
24079 msgid ""
24080 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
24081 "versions of virt-inspector with different names:"
24082 msgstr ""
24083
24084 #. type: verbatim
24085 #: ../inspector/virt-inspector.pod:387
24086 #, no-wrap
24087 msgid ""
24088 " virt-inspector     Old Perl version.\n"
24089 " virt-inspector2    New C version.\n"
24090 "\n"
24091 msgstr ""
24092
24093 #. type: textblock
24094 #: ../inspector/virt-inspector.pod:397
24095 msgid ""
24096 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
24097 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
24098 msgstr ""
24099
24100 #. type: textblock
24101 #: ../inspector/virt-inspector.pod:414
24102 msgid "Matthew Booth L<mbooth@redhat.com>"
24103 msgstr ""
24104
24105 #. type: textblock
24106 #: ../java/examples/guestfs-java.pod:5
24107 msgid "guestfs-java - How to use libguestfs from Java"
24108 msgstr ""
24109
24110 #. type: verbatim
24111 #: ../java/examples/guestfs-java.pod:9
24112 #, no-wrap
24113 msgid ""
24114 " import com.redhat.et.libguestfs.*;\n"
24115 " \n"
24116 msgstr ""
24117
24118 #. type: verbatim
24119 #: ../java/examples/guestfs-java.pod:11
24120 #, no-wrap
24121 msgid ""
24122 " GuestFS g = new GuestFS ();\n"
24123 " g.add_drive_opts (\"disk.img\", null);\n"
24124 " g.launch ();\n"
24125 "\n"
24126 msgstr ""
24127
24128 #. type: textblock
24129 #: ../java/examples/guestfs-java.pod:17
24130 msgid ""
24131 "This manual page documents how to call libguestfs from the Java programming "
24132 "language.  This page just documents the differences from the C API and gives "
24133 "some examples.  If you are not familiar with using libguestfs, you also need "
24134 "to read L<guestfs(3)>."
24135 msgstr ""
24136
24137 #. type: =head2
24138 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
24139 msgid "CLOSING THE HANDLE"
24140 msgstr ""
24141
24142 #. type: textblock
24143 #: ../java/examples/guestfs-java.pod:24
24144 msgid ""
24145 "The handle is closed when it is reaped by the garbage collector.  Because "
24146 "libguestfs handles include a lot of state, it is also possible to close (and "
24147 "hence free) them explicitly by calling the C<close> method."
24148 msgstr ""
24149
24150 #. type: =head2
24151 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
24152 #: ../python/examples/guestfs-python.pod:21
24153 #: ../ruby/examples/guestfs-ruby.pod:22
24154 msgid "EXCEPTIONS"
24155 msgstr "ВИНЯТКИ"
24156
24157 #. type: textblock
24158 #: ../java/examples/guestfs-java.pod:31
24159 msgid ""
24160 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
24161 "exception.  This has a single parameter which is the error message (a "
24162 "C<String>)."
24163 msgstr ""
24164
24165 #. type: textblock
24166 #: ../java/examples/guestfs-java.pod:35
24167 msgid "Calling any method on a closed handle raises the same exception."
24168 msgstr ""
24169
24170 #. type: textblock
24171 #: ../java/examples/guestfs-java.pod:47
24172 msgid ""
24173 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
24174 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
24175 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
24176 msgstr ""
24177
24178 #. type: textblock
24179 #: ../ocaml/examples/guestfs-ocaml.pod:5
24180 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
24181 msgstr ""
24182
24183 #. type: textblock
24184 #: ../ocaml/examples/guestfs-ocaml.pod:9
24185 msgid "Module style:"
24186 msgstr ""
24187
24188 #. type: verbatim
24189 #: ../ocaml/examples/guestfs-ocaml.pod:11
24190 #, no-wrap
24191 msgid ""
24192 " let g = Guestfs.create () in\n"
24193 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
24194 " Guestfs.launch g;\n"
24195 "\n"
24196 msgstr ""
24197
24198 #. type: textblock
24199 #: ../ocaml/examples/guestfs-ocaml.pod:15
24200 msgid "Object-oriented style:"
24201 msgstr ""
24202
24203 #. type: verbatim
24204 #: ../ocaml/examples/guestfs-ocaml.pod:17
24205 #, no-wrap
24206 msgid ""
24207 " let g = new Guestfs.guestfs () in\n"
24208 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
24209 " g#launch ();\n"
24210 "\n"
24211 msgstr ""
24212
24213 #. type: verbatim
24214 #: ../ocaml/examples/guestfs-ocaml.pod:21
24215 #, no-wrap
24216 msgid ""
24217 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
24218 "or:\n"
24219 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
24220 "\n"
24221 msgstr ""
24222
24223 #. type: textblock
24224 #: ../ocaml/examples/guestfs-ocaml.pod:27
24225 msgid ""
24226 "This manual page documents how to call libguestfs from the OCaml programming "
24227 "language.  This page just documents the differences from the C API and gives "
24228 "some examples.  If you are not familiar with using libguestfs, you also need "
24229 "to read L<guestfs(3)>."
24230 msgstr ""
24231
24232 #. type: =head2
24233 #: ../ocaml/examples/guestfs-ocaml.pod:32
24234 msgid "PROGRAMMING STYLES"
24235 msgstr ""
24236
24237 #. type: textblock
24238 #: ../ocaml/examples/guestfs-ocaml.pod:34
24239 msgid ""
24240 "There are two different programming styles supported by the OCaml bindings.  "
24241 "You can use a module style, with each C function mapped to an OCaml function:"
24242 msgstr ""
24243
24244 #. type: verbatim
24245 #: ../ocaml/examples/guestfs-ocaml.pod:38
24246 #, no-wrap
24247 msgid ""
24248 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
24249 "\n"
24250 msgstr ""
24251
24252 #. type: textblock
24253 #: ../ocaml/examples/guestfs-ocaml.pod:40
24254 msgid "becomes:"
24255 msgstr ""
24256
24257 #. type: verbatim
24258 #: ../ocaml/examples/guestfs-ocaml.pod:42
24259 #, no-wrap
24260 msgid ""
24261 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
24262 "\n"
24263 msgstr ""
24264
24265 #. type: textblock
24266 #: ../ocaml/examples/guestfs-ocaml.pod:44
24267 msgid ""
24268 "Alternately you can use an object-oriented style, calling methods on the "
24269 "class C<Guestfs.guestfs>:"
24270 msgstr ""
24271
24272 #. type: verbatim
24273 #: ../ocaml/examples/guestfs-ocaml.pod:47
24274 #, no-wrap
24275 msgid ""
24276 " method set_verbose : bool -> unit\n"
24277 "\n"
24278 msgstr ""
24279
24280 #. type: textblock
24281 #: ../ocaml/examples/guestfs-ocaml.pod:49
24282 msgid ""
24283 "The object-oriented style is usually briefer, and the minor performance "
24284 "penalty isn't noticable in the general overhead of performing libguestfs "
24285 "functions."
24286 msgstr ""
24287
24288 #. type: textblock
24289 #: ../ocaml/examples/guestfs-ocaml.pod:55
24290 msgid ""
24291 "The handle is closed when it is reaped by the garbage collector.  Because "
24292 "libguestfs handles include a lot of state, it is also possible to close (and "
24293 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
24294 "method."
24295 msgstr ""
24296
24297 #. type: textblock
24298 #: ../ocaml/examples/guestfs-ocaml.pod:62
24299 msgid ""
24300 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
24301 "exception.  This has a single parameter which is the error message (a "
24302 "string)."
24303 msgstr ""
24304
24305 #. type: textblock
24306 #: ../ocaml/examples/guestfs-ocaml.pod:66
24307 msgid ""
24308 "Calling any function/method on a closed handle raises C<Guestfs."
24309 "Handle_closed>.  The single parameter is the name of the function that you "
24310 "called."
24311 msgstr ""
24312
24313 #. type: textblock
24314 #: ../ocaml/examples/guestfs-ocaml.pod:80
24315 msgid ""
24316 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24317 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
24318 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
24319 msgstr ""
24320
24321 #. type: textblock
24322 #: ../perl/examples/guestfs-perl.pod:5
24323 msgid "guestfs-perl - How to use libguestfs from Perl"
24324 msgstr ""
24325
24326 #. type: verbatim
24327 #: ../perl/examples/guestfs-perl.pod:9
24328 #, no-wrap
24329 msgid ""
24330 " use Sys::Guestfs;\n"
24331 " \n"
24332 msgstr ""
24333
24334 #. type: verbatim
24335 #: ../perl/examples/guestfs-perl.pod:11
24336 #, no-wrap
24337 msgid ""
24338 " my $h = Sys::Guestfs->new ();\n"
24339 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
24340 " $h->launch ();\n"
24341 " $h->mount_options ('', '/dev/sda1', '/');\n"
24342 " $h->touch ('/hello');\n"
24343 " $h->sync ();\n"
24344 "\n"
24345 msgstr ""
24346
24347 #. type: textblock
24348 #: ../perl/examples/guestfs-perl.pod:20
24349 msgid ""
24350 "This manual page documents how to call libguestfs from the Perl programming "
24351 "language.  This page just documents the differences from the C API and gives "
24352 "some examples.  If you are not familiar with using libguestfs, you also need "
24353 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
24354 msgstr ""
24355
24356 #. type: =head2
24357 #: ../perl/examples/guestfs-perl.pod:26
24358 msgid "ERRORS"
24359 msgstr "ПОМИЛКИ"
24360
24361 #. type: textblock
24362 #: ../perl/examples/guestfs-perl.pod:28
24363 msgid ""
24364 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
24365 ">)."
24366 msgstr ""
24367
24368 #. type: textblock
24369 #: ../perl/examples/guestfs-perl.pod:41
24370 msgid ""
24371 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
24372 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
24373 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
24374 msgstr ""
24375
24376 #. type: textblock
24377 #: ../python/examples/guestfs-python.pod:5
24378 msgid "guestfs-python - How to use libguestfs from Python"
24379 msgstr ""
24380
24381 #. type: verbatim
24382 #: ../python/examples/guestfs-python.pod:9
24383 #, no-wrap
24384 msgid ""
24385 " import guestfs\n"
24386 " g = guestfs.GuestFS ()\n"
24387 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
24388 " g.launch\n"
24389 "\n"
24390 msgstr ""
24391
24392 #. type: textblock
24393 #: ../python/examples/guestfs-python.pod:16
24394 msgid ""
24395 "This manual page documents how to call libguestfs from the Python "
24396 "programming language.  This page just documents the differences from the C "
24397 "API and gives some examples.  If you are not familiar with using libguestfs, "
24398 "you also need to read L<guestfs(3)>."
24399 msgstr ""
24400
24401 #. type: textblock
24402 #: ../python/examples/guestfs-python.pod:23
24403 msgid ""
24404 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
24405 "single string argument which is the error message."
24406 msgstr ""
24407
24408 #. type: =head2
24409 #: ../python/examples/guestfs-python.pod:26
24410 msgid "MORE DOCUMENTATION"
24411 msgstr ""
24412
24413 #. type: textblock
24414 #: ../python/examples/guestfs-python.pod:28
24415 msgid "Type:"
24416 msgstr "Тип:"
24417
24418 #. type: verbatim
24419 #: ../python/examples/guestfs-python.pod:30
24420 #, no-wrap
24421 msgid ""
24422 " $ python\n"
24423 " >>> import guestfs\n"
24424 " >>> help (guestfs)\n"
24425 "\n"
24426 msgstr ""
24427
24428 #. type: textblock
24429 #: ../python/examples/guestfs-python.pod:44
24430 msgid ""
24431 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24432 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
24433 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
24434 msgstr ""
24435
24436 #. type: textblock
24437 #: ../rescue/virt-rescue.pod:5
24438 msgid "virt-rescue - Run a rescue shell on a virtual machine"
24439 msgstr ""
24440
24441 #. type: verbatim
24442 #: ../rescue/virt-rescue.pod:9
24443 #, no-wrap
24444 msgid ""
24445 " virt-rescue [--options] -d domname\n"
24446 "\n"
24447 msgstr ""
24448
24449 #. type: verbatim
24450 #: ../rescue/virt-rescue.pod:11
24451 #, no-wrap
24452 msgid ""
24453 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
24454 "\n"
24455 msgstr ""
24456
24457 #. type: verbatim
24458 #: ../rescue/virt-rescue.pod:13
24459 #, fuzzy, no-wrap
24460 #| msgid ""
24461 #| " virt-filesystems --format=raw -a disk.img\n"
24462 #| "\n"
24463 msgid ""
24464 " virt-rescue --suggest (-d domname | -a disk.img ...)\n"
24465 "\n"
24466 msgstr ""
24467 " virt-filesystems --format=raw -a диск.img\n"
24468 "\n"
24469
24470 #. type: verbatim
24471 #: ../rescue/virt-rescue.pod:17
24472 #, no-wrap
24473 msgid ""
24474 " virt-rescue [--options] domname\n"
24475 "\n"
24476 msgstr ""
24477
24478 #. type: verbatim
24479 #: ../rescue/virt-rescue.pod:19
24480 #, no-wrap
24481 msgid ""
24482 " virt-rescue [--options] disk.img [disk.img ...]\n"
24483 "\n"
24484 msgstr ""
24485
24486 #. type: textblock
24487 #: ../rescue/virt-rescue.pod:23
24488 msgid ""
24489 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
24490 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
24491 "you from doing this, but doesn't catch all cases."
24492 msgstr ""
24493
24494 #. type: textblock
24495 #: ../rescue/virt-rescue.pod:27
24496 msgid ""
24497 "However if you use the I<--ro> (read only) option, then you can attach a "
24498 "shell to a live virtual machine.  The results might be strange or "
24499 "inconsistent at times but you won't get disk corruption."
24500 msgstr ""
24501
24502 #. type: textblock
24503 #: ../rescue/virt-rescue.pod:33
24504 msgid ""
24505 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
24506 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
24507 "recovery tools which you can use to examine or rescue a virtual machine or "
24508 "disk image."
24509 msgstr ""
24510
24511 #. type: textblock
24512 #: ../rescue/virt-rescue.pod:38
24513 msgid ""
24514 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
24515 "on disk image(s):"
24516 msgstr ""
24517
24518 #. type: verbatim
24519 #: ../rescue/virt-rescue.pod:41
24520 #, no-wrap
24521 msgid ""
24522 " virt-rescue -d GuestName\n"
24523 "\n"
24524 msgstr ""
24525
24526 #. type: verbatim
24527 #: ../rescue/virt-rescue.pod:43
24528 #, no-wrap
24529 msgid ""
24530 " virt-rescue --ro -a /path/to/disk.img\n"
24531 "\n"
24532 msgstr ""
24533
24534 #. type: verbatim
24535 #: ../rescue/virt-rescue.pod:45
24536 #, no-wrap
24537 msgid ""
24538 " virt-rescue -a /dev/sdc\n"
24539 "\n"
24540 msgstr ""
24541
24542 #. type: textblock
24543 #: ../rescue/virt-rescue.pod:47
24544 msgid "For live VMs you I<must> use the --ro option."
24545 msgstr ""
24546
24547 #. type: textblock
24548 #: ../rescue/virt-rescue.pod:49
24549 msgid ""
24550 "When you run virt-rescue on a virtual machine or disk image, you are placed "
24551 "in an interactive bash shell where you can use many ordinary Linux "
24552 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
24553 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
24554 "is an empty directory called C</sysroot> where you can mount filesystems."
24555 msgstr ""
24556
24557 #. type: textblock
24558 #: ../rescue/virt-rescue.pod:56
24559 msgid ""
24560 "You can get virt-rescue to suggest mount commands for you by using the I<--"
24561 "suggest> option (in another terminal):"
24562 msgstr ""
24563
24564 #. type: verbatim
24565 #: ../rescue/virt-rescue.pod:59
24566 #, no-wrap
24567 msgid ""
24568 " $ virt-rescue --suggest -d Fedora15\n"
24569 " Inspecting the virtual machine or disk image ...\n"
24570 " \n"
24571 msgstr ""
24572
24573 #. type: verbatim
24574 #: ../rescue/virt-rescue.pod:62
24575 #, no-wrap
24576 msgid ""
24577 " This disk contains one or more operating systems.  You can use these\n"
24578 " mount commands in virt-rescue (at the ><rescue> prompt) to mount the\n"
24579 " filesystems.\n"
24580 " \n"
24581 msgstr ""
24582
24583 #. type: verbatim
24584 #: ../rescue/virt-rescue.pod:66
24585 #, no-wrap
24586 msgid ""
24587 " # /dev/vg_f15x32/lv_root is the root of a linux operating system\n"
24588 " # type: linux, distro: fedora, version: 15.0\n"
24589 " # Fedora release 15 (Lovelock)\n"
24590 " \n"
24591 msgstr ""
24592
24593 #. type: verbatim
24594 #: ../rescue/virt-rescue.pod:70
24595 #, no-wrap
24596 msgid ""
24597 " mount /dev/vg_f15x32/lv_root /sysroot/\n"
24598 " mount /dev/vda1 /sysroot/boot\n"
24599 " mount --bind /dev /sysroot/dev\n"
24600 " mount --bind /dev/pts /sysroot/dev/pts\n"
24601 " mount --bind /proc /sysroot/proc\n"
24602 " mount --bind /sys /sysroot/sys\n"
24603 "\n"
24604 msgstr ""
24605
24606 #. type: textblock
24607 #: ../rescue/virt-rescue.pod:77
24608 msgid ""
24609 "Another way is to list the logical volumes (with L<lvs(8)>) and partitions "
24610 "(with L<parted(8)>) and mount them by hand:"
24611 msgstr ""
24612
24613 #. type: verbatim
24614 #: ../rescue/virt-rescue.pod:80
24615 #, no-wrap
24616 msgid ""
24617 " ><rescue> lvs\n"
24618 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
24619 " lv_root vg_f15x32 -wi-a-   8.83G\n"
24620 " lv_swap vg_f15x32 -wi-a- 992.00M\n"
24621 " ><rescue> mount /dev/vg_f15x32/lv_root /sysroot\n"
24622 " ><rescue> mount /dev/vda1 /sysroot/boot\n"
24623 " ><rescue> ls /sysroot\n"
24624 "\n"
24625 msgstr ""
24626
24627 #. type: textblock
24628 #: ../rescue/virt-rescue.pod:88
24629 msgid ""
24630 "Another command to list available filesystems is L<virt-filesystems(1)>."
24631 msgstr ""
24632
24633 #. type: textblock
24634 #: ../rescue/virt-rescue.pod:91
24635 msgid ""
24636 "To run commands in a Linux guest (for example, grub), you should chroot into "
24637 "the /sysroot directory first:"
24638 msgstr ""
24639
24640 #. type: verbatim
24641 #: ../rescue/virt-rescue.pod:94
24642 #, no-wrap
24643 msgid ""
24644 " ><rescue> chroot /sysroot\n"
24645 "\n"
24646 msgstr ""
24647
24648 #. type: textblock
24649 #: ../rescue/virt-rescue.pod:98
24650 msgid ""
24651 "Virt-rescue can be used on I<any> disk image file or device, not just a "
24652 "virtual machine.  For example you can use it on a blank file if you want to "
24653 "partition that file (although we would recommend using L<guestfish(1)> "
24654 "instead as it is more suitable for this purpose).  You can even use virt-"
24655 "rescue on things like SD cards."
24656 msgstr ""
24657
24658 #. type: textblock
24659 #: ../rescue/virt-rescue.pod:104
24660 msgid ""
24661 "Virt-rescue does not require root.  You only need to run it as root if you "
24662 "need root to open the disk image."
24663 msgstr ""
24664
24665 #. type: textblock
24666 #: ../rescue/virt-rescue.pod:107
24667 msgid ""
24668 "This tool is just designed for quick interactive hacking on a virtual "
24669 "machine.  For more structured access to a virtual machine disk image, you "
24670 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
24671 "make scripted changes to guests, use L<guestfish(1)>."
24672 msgstr ""
24673
24674 #. type: =item
24675 #: ../rescue/virt-rescue.pod:131
24676 msgid "B<--append kernelopts>"
24677 msgstr "B<--append параметри_ядра>"
24678
24679 #. type: textblock
24680 #: ../rescue/virt-rescue.pod:133
24681 msgid "Pass additional options to the rescue kernel."
24682 msgstr ""
24683
24684 #. type: verbatim
24685 #: ../rescue/virt-rescue.pod:163
24686 #, no-wrap
24687 msgid ""
24688 " virt-rescue --format=raw -a disk.img\n"
24689 "\n"
24690 msgstr ""
24691
24692 #. type: verbatim
24693 #: ../rescue/virt-rescue.pod:167
24694 #, no-wrap
24695 msgid ""
24696 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
24697 "\n"
24698 msgstr ""
24699
24700 #. type: =item
24701 #: ../rescue/virt-rescue.pod:176
24702 msgid "B<-m MB>"
24703 msgstr "B<-m МБ>"
24704
24705 #. type: =item
24706 #: ../rescue/virt-rescue.pod:178
24707 msgid "B<--memsize MB>"
24708 msgstr "B<--memsize МБ>"
24709
24710 #. type: textblock
24711 #: ../rescue/virt-rescue.pod:180
24712 msgid ""
24713 "Change the amount of memory allocated to the rescue system.  The default is "
24714 "set by libguestfs and is small but adequate for running system tools.  The "
24715 "occasional program might need more memory.  The parameter is specified in "
24716 "megabytes."
24717 msgstr ""
24718
24719 #. type: =item
24720 #: ../rescue/virt-rescue.pod:185
24721 msgid "B<--network>"
24722 msgstr "B<--network>"
24723
24724 #. type: textblock
24725 #: ../rescue/virt-rescue.pod:187
24726 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
24727 msgstr ""
24728
24729 #. type: textblock
24730 #: ../rescue/virt-rescue.pod:193
24731 msgid "Open the image read-only."
24732 msgstr ""
24733
24734 #. type: textblock
24735 #: ../rescue/virt-rescue.pod:203
24736 msgid ""
24737 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
24738 "SELINUX> before using this option."
24739 msgstr ""
24740
24741 #. type: =item
24742 #: ../rescue/virt-rescue.pod:206
24743 msgid "B<--smp> N"
24744 msgstr ""
24745
24746 #. type: textblock
24747 #: ../rescue/virt-rescue.pod:208
24748 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
24749 msgstr ""
24750
24751 #. type: =item
24752 #: ../rescue/virt-rescue.pod:210
24753 #, fuzzy
24754 #| msgid "B<--quiet>"
24755 msgid "B<--suggest>"
24756 msgstr "B<--quiet>"
24757
24758 #. type: textblock
24759 #: ../rescue/virt-rescue.pod:212
24760 msgid ""
24761 "Inspect the disk image and suggest what mount commands should be used to "
24762 "mount the disks.  You should use the I<--suggest> option in a second "
24763 "terminal, then paste the commands into another virt-rescue."
24764 msgstr ""
24765
24766 #. type: textblock
24767 #: ../rescue/virt-rescue.pod:216
24768 msgid ""
24769 "This option implies I<--ro> and is safe to use even if the guest is up or if "
24770 "another virt-rescue is running."
24771 msgstr ""
24772
24773 #. type: textblock
24774 #: ../rescue/virt-rescue.pod:235
24775 msgid ""
24776 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
24777 "are done read-write."
24778 msgstr ""
24779
24780 #. type: textblock
24781 #: ../rescue/virt-rescue.pod:248
24782 msgid "Previous versions of virt-rescue allowed you to write either:"
24783 msgstr ""
24784
24785 #. type: verbatim
24786 #: ../rescue/virt-rescue.pod:250
24787 #, no-wrap
24788 msgid ""
24789 " virt-rescue disk.img [disk.img ...]\n"
24790 "\n"
24791 msgstr ""
24792
24793 #. type: verbatim
24794 #: ../rescue/virt-rescue.pod:254
24795 #, no-wrap
24796 msgid ""
24797 " virt-rescue guestname\n"
24798 "\n"
24799 msgstr ""
24800
24801 #. type: =head1
24802 #: ../rescue/virt-rescue.pod:262
24803 msgid "NETWORK"
24804 msgstr "МЕРЕЖА"
24805
24806 #. type: textblock
24807 #: ../rescue/virt-rescue.pod:264
24808 msgid ""
24809 "Adding the I<--network> option enables QEMU user networking in the rescue "
24810 "appliance.  There are some differences between user networking and ordinary "
24811 "networking:"
24812 msgstr ""
24813
24814 #. type: =item
24815 #: ../rescue/virt-rescue.pod:270
24816 msgid "ping does not work"
24817 msgstr ""
24818
24819 #. type: textblock
24820 #: ../rescue/virt-rescue.pod:272
24821 msgid ""
24822 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
24823 "send the ping packets, and because virt-rescue must be able to run as non-"
24824 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
24825 "The ping command will appear to resolve addresses but will not be able to "
24826 "send or receive any packets.  This does not mean that the network is not "
24827 "working."
24828 msgstr ""
24829
24830 #. type: =item
24831 #: ../rescue/virt-rescue.pod:279
24832 msgid "cannot receive connections"
24833 msgstr ""
24834
24835 #. type: textblock
24836 #: ../rescue/virt-rescue.pod:281
24837 msgid "QEMU user networking cannot receive incoming connections."
24838 msgstr ""
24839
24840 #. type: =item
24841 #: ../rescue/virt-rescue.pod:283
24842 msgid "making TCP connections"
24843 msgstr ""
24844
24845 #. type: textblock
24846 #: ../rescue/virt-rescue.pod:285
24847 msgid ""
24848 "The virt-rescue appliance needs to be small and so does not include many "
24849 "network tools.  In particular there is no L<telnet(1)> command.  You can "
24850 "make TCP connections from the shell using the magical C</dev/tcp/"
24851 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
24852 msgstr ""
24853
24854 #. type: verbatim
24855 #: ../rescue/virt-rescue.pod:290
24856 #, no-wrap
24857 msgid ""
24858 " exec 3<>/dev/tcp/redhat.com/80\n"
24859 " echo \"GET /\" >&3\n"
24860 " cat <&3\n"
24861 "\n"
24862 msgstr ""
24863
24864 #. type: textblock
24865 #: ../rescue/virt-rescue.pod:294
24866 msgid "See L<bash(1)> for more details."
24867 msgstr ""
24868
24869 #. type: textblock
24870 #: ../rescue/virt-rescue.pod:300
24871 msgid ""
24872 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
24873 "ENVIRONMENT VARIABLES> for the complete list."
24874 msgstr ""
24875
24876 #. type: textblock
24877 #: ../rescue/virt-rescue.pod:327
24878 #, fuzzy
24879 #| msgid ""
24880 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
24881 #| "L<virt-tar-out(1)>, L<http://libguestfs.org/>."
24882 msgid ""
24883 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
24884 "filesystems(1)>, L<http://libguestfs.org/>."
24885 msgstr ""
24886 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
24887 "tar-out(1)>, L<http://libguestfs.org/>."
24888
24889 #. type: textblock
24890 #: ../resize/virt-resize.pod:5
24891 msgid "virt-resize - Resize a virtual machine disk"
24892 msgstr ""
24893
24894 #. type: verbatim
24895 #: ../resize/virt-resize.pod:9
24896 #, no-wrap
24897 msgid ""
24898 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
24899 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
24900 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
24901 "\n"
24902 msgstr ""
24903
24904 #. type: textblock
24905 #: ../resize/virt-resize.pod:15
24906 msgid ""
24907 "Virt-resize is a tool which can resize a virtual machine disk, making it "
24908 "larger or smaller overall, and resizing or deleting any partitions contained "
24909 "within."
24910 msgstr ""
24911
24912 #. type: textblock
24913 #: ../resize/virt-resize.pod:19
24914 msgid ""
24915 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
24916 "not> be used on live virtual machines - for consistent results, shut the "
24917 "virtual machine down before resizing it."
24918 msgstr ""
24919
24920 #. type: textblock
24921 #: ../resize/virt-resize.pod:23
24922 msgid ""
24923 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
24924 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
24925 msgstr ""
24926
24927 #. type: =item
24928 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:597
24929 #: ../sparsify/virt-sparsify.pod:221 ../src/guestfs.pod:484
24930 #: ../src/guestfs.pod:1302 ../src/guestfs.pod:1441 ../src/guestfs.pod:2690
24931 msgid "1."
24932 msgstr "1."
24933
24934 #. type: textblock
24935 #: ../resize/virt-resize.pod:33
24936 msgid ""
24937 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
24938 "fill the extra 5GB of space."
24939 msgstr ""
24940
24941 #. type: verbatim
24942 #: ../resize/virt-resize.pod:36
24943 #, no-wrap
24944 msgid ""
24945 " virt-filesystems --long -h --all -a olddisk\n"
24946 " \n"
24947 msgstr ""
24948
24949 #. type: verbatim
24950 #: ../resize/virt-resize.pod:38
24951 #, no-wrap
24952 msgid ""
24953 " truncate -r olddisk newdisk\n"
24954 " truncate -s +5G newdisk\n"
24955 " \n"
24956 msgstr ""
24957
24958 #. type: verbatim
24959 #: ../resize/virt-resize.pod:41
24960 #, no-wrap
24961 msgid ""
24962 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
24963 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
24964 "\n"
24965 msgstr ""
24966
24967 #. type: =item
24968 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:604
24969 #: ../sparsify/virt-sparsify.pod:228 ../src/guestfs.pod:490
24970 #: ../src/guestfs.pod:1306 ../src/guestfs.pod:1445 ../src/guestfs.pod:2715
24971 msgid "2."
24972 msgstr "2."
24973
24974 #. type: textblock
24975 #: ../resize/virt-resize.pod:46
24976 msgid ""
24977 "As above, but make the /boot partition 200MB bigger, while giving the "
24978 "remaining space to /dev/sda2:"
24979 msgstr ""
24980
24981 #. type: verbatim
24982 #: ../resize/virt-resize.pod:49
24983 #, no-wrap
24984 msgid ""
24985 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
24986 "   olddisk newdisk\n"
24987 "\n"
24988 msgstr ""
24989
24990 #. type: =item
24991 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:610
24992 #: ../sparsify/virt-sparsify.pod:234 ../src/guestfs.pod:501
24993 #: ../src/guestfs.pod:1451
24994 msgid "3."
24995 msgstr "3."
24996
24997 #. type: textblock
24998 #: ../resize/virt-resize.pod:54
24999 msgid ""
25000 "As in the first example, but expand a logical volume as the final step.  "
25001 "This is what you would typically use for Linux guests that use LVM:"
25002 msgstr ""
25003
25004 #. type: verbatim
25005 #: ../resize/virt-resize.pod:58
25006 #, no-wrap
25007 msgid ""
25008 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
25009 "   olddisk newdisk\n"
25010 "\n"
25011 msgstr ""
25012
25013 #. type: =item
25014 #: ../resize/virt-resize.pod:61
25015 msgid "4."
25016 msgstr ""
25017
25018 #. type: textblock
25019 #: ../resize/virt-resize.pod:63
25020 msgid ""
25021 "As in the first example, but the output format will be qcow2 instead of a "
25022 "raw disk:"
25023 msgstr ""
25024
25025 #. type: verbatim
25026 #: ../resize/virt-resize.pod:66
25027 #, no-wrap
25028 msgid ""
25029 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
25030 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
25031 "\n"
25032 msgstr ""
25033
25034 #. type: =head1
25035 #: ../resize/virt-resize.pod:71
25036 msgid "DETAILED USAGE"
25037 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
25038
25039 #. type: =head2
25040 #: ../resize/virt-resize.pod:73
25041 msgid "EXPANDING A VIRTUAL MACHINE DISK"
25042 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
25043
25044 #. type: =item
25045 #: ../resize/virt-resize.pod:77
25046 msgid "1. Shut down the virtual machine"
25047 msgstr ""
25048
25049 #. type: =item
25050 #: ../resize/virt-resize.pod:79
25051 msgid "2. Locate input disk image"
25052 msgstr ""
25053
25054 #. type: textblock
25055 #: ../resize/virt-resize.pod:81
25056 msgid ""
25057 "Locate the input disk image (ie. the file or device on the host containing "
25058 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
25059 "dumpxml> like this to find the disk image name:"
25060 msgstr ""
25061
25062 #. type: verbatim
25063 #: ../resize/virt-resize.pod:85
25064 #, no-wrap
25065 msgid ""
25066 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
25067 " Found 1 nodes:\n"
25068 " -- NODE --\n"
25069 " <source dev=\"/dev/vg/lv_guest\" />\n"
25070 "\n"
25071 msgstr ""
25072
25073 #. type: =item
25074 #: ../resize/virt-resize.pod:90
25075 msgid "3. Look at current sizing"
25076 msgstr ""
25077
25078 #. type: textblock
25079 #: ../resize/virt-resize.pod:92
25080 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
25081 msgstr ""
25082
25083 #. type: verbatim
25084 #: ../resize/virt-resize.pod:95
25085 #, no-wrap
25086 msgid ""
25087 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
25088 " Name       Type       Size  Parent\n"
25089 " /dev/sda1  partition  101M  /dev/sda\n"
25090 " /dev/sda2  partition  7.9G  /dev/sda\n"
25091 " /dev/sda   device     8.0G  -\n"
25092 "\n"
25093 msgstr ""
25094
25095 #. type: textblock
25096 #: ../resize/virt-resize.pod:101
25097 msgid ""
25098 "(This example is a virtual machine with an 8 GB disk which we would like to "
25099 "expand up to 10 GB)."
25100 msgstr ""
25101
25102 #. type: =item
25103 #: ../resize/virt-resize.pod:104
25104 msgid "4. Create output disk"
25105 msgstr ""
25106
25107 #. type: textblock
25108 #: ../resize/virt-resize.pod:106
25109 msgid ""
25110 "Virt-resize cannot do in-place disk modifications.  You have to have space "
25111 "to store the resized output disk."
25112 msgstr ""
25113
25114 #. type: textblock
25115 #: ../resize/virt-resize.pod:109
25116 msgid ""
25117 "To store the resized disk image in a file, create a file of a suitable size:"
25118 msgstr ""
25119
25120 #. type: verbatim
25121 #: ../resize/virt-resize.pod:112
25122 #, no-wrap
25123 msgid ""
25124 " # rm -f outdisk\n"
25125 " # truncate -s 10G outdisk\n"
25126 "\n"
25127 msgstr ""
25128
25129 #. type: textblock
25130 #: ../resize/virt-resize.pod:115
25131 msgid "Or use L<lvcreate(1)> to create a logical volume:"
25132 msgstr ""
25133
25134 #. type: verbatim
25135 #: ../resize/virt-resize.pod:117
25136 #, no-wrap
25137 msgid ""
25138 " # lvcreate -L 10G -n lv_name vg_name\n"
25139 "\n"
25140 msgstr ""
25141
25142 #. type: textblock
25143 #: ../resize/virt-resize.pod:119
25144 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
25145 msgstr ""
25146
25147 #. type: verbatim
25148 #: ../resize/virt-resize.pod:121
25149 #, no-wrap
25150 msgid ""
25151 " # virsh pool-list\n"
25152 " # virsh vol-create-as poolname newvol 10G\n"
25153 "\n"
25154 msgstr ""
25155
25156 #. type: =item
25157 #: ../resize/virt-resize.pod:124
25158 msgid "5. Resize"
25159 msgstr "5. Зміна розміру"
25160
25161 #. type: textblock
25162 #: ../resize/virt-resize.pod:126
25163 msgid ""
25164 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
25165 "file) and the output disk.  The output disk is the one created in the "
25166 "previous step."
25167 msgstr ""
25168
25169 #. type: verbatim
25170 #: ../resize/virt-resize.pod:130
25171 #, no-wrap
25172 msgid ""
25173 " # virt-resize indisk outdisk\n"
25174 "\n"
25175 msgstr ""
25176
25177 #. type: textblock
25178 #: ../resize/virt-resize.pod:132
25179 msgid ""
25180 "This command just copies disk image C<indisk> to disk image C<outdisk> "
25181 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
25182 "larger, then an extra, empty partition is created at the end of the disk "
25183 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
25184 "error."
25185 msgstr ""
25186
25187 #. type: textblock
25188 #: ../resize/virt-resize.pod:138
25189 msgid ""
25190 "More realistically you'd want to expand existing partitions in the disk "
25191 "image by passing extra options (for the full list see the L</OPTIONS> "
25192 "section below)."
25193 msgstr ""
25194
25195 #. type: textblock
25196 #: ../resize/virt-resize.pod:142
25197 msgid ""
25198 "L</--expand> is the most useful option.  It expands the named partition "
25199 "within the disk to fill any extra space:"
25200 msgstr ""
25201
25202 #. type: verbatim
25203 #: ../resize/virt-resize.pod:145
25204 #, no-wrap
25205 msgid ""
25206 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
25207 "\n"
25208 msgstr ""
25209
25210 #. type: textblock
25211 #: ../resize/virt-resize.pod:147
25212 msgid ""
25213 "(In this case, an extra partition is I<not> created at the end of the disk, "
25214 "because there will be no unused space)."
25215 msgstr ""
25216
25217 #. type: textblock
25218 #: ../resize/virt-resize.pod:150
25219 msgid ""
25220 "L</--resize> is the other commonly used option.  The following would "
25221 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
25222 "rest of the available space:"
25223 msgstr ""
25224
25225 #. type: verbatim
25226 #: ../resize/virt-resize.pod:154
25227 #, no-wrap
25228 msgid ""
25229 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
25230 "     indisk outdisk\n"
25231 "\n"
25232 msgstr ""
25233
25234 #. type: textblock
25235 #: ../resize/virt-resize.pod:157
25236 msgid ""
25237 "If the expanded partition in the image contains a filesystem or LVM PV, then "
25238 "if virt-resize knows how, it will resize the contents, the equivalent of "
25239 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
25240 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
25241 "filesystems, so you would have to online resize them after booting the guest."
25242 msgstr ""
25243
25244 #. type: textblock
25245 #: ../resize/virt-resize.pod:164
25246 msgid "Other options are covered below."
25247 msgstr ""
25248
25249 #. type: =item
25250 #: ../resize/virt-resize.pod:166
25251 msgid "6. Test"
25252 msgstr "6. Перевірка"
25253
25254 #. type: textblock
25255 #: ../resize/virt-resize.pod:168
25256 msgid "Thoroughly test the new disk image I<before> discarding the old one."
25257 msgstr ""
25258
25259 #. type: textblock
25260 #: ../resize/virt-resize.pod:170
25261 msgid "If you are using libvirt, edit the XML to point at the new disk:"
25262 msgstr ""
25263
25264 #. type: verbatim
25265 #: ../resize/virt-resize.pod:172
25266 #, no-wrap
25267 msgid ""
25268 " # virsh edit guestname\n"
25269 "\n"
25270 msgstr ""
25271
25272 #. type: textblock
25273 #: ../resize/virt-resize.pod:174
25274 msgid ""
25275 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
25276 "html#elementsDisks>"
25277 msgstr ""
25278
25279 #. type: textblock
25280 #: ../resize/virt-resize.pod:177
25281 msgid "Then start up the domain with the new, resized disk:"
25282 msgstr ""
25283
25284 #. type: verbatim
25285 #: ../resize/virt-resize.pod:179
25286 #, no-wrap
25287 msgid ""
25288 " # virsh start guestname\n"
25289 "\n"
25290 msgstr ""
25291
25292 #. type: textblock
25293 #: ../resize/virt-resize.pod:181
25294 msgid ""
25295 "and check that it still works.  See also the L</NOTES> section below for "
25296 "additional information."
25297 msgstr ""
25298
25299 #. type: =item
25300 #: ../resize/virt-resize.pod:184
25301 msgid "7. Resize LVs etc inside the guest"
25302 msgstr ""
25303
25304 #. type: textblock
25305 #: ../resize/virt-resize.pod:186
25306 msgid "(This can also be done offline using L<guestfish(1)>)"
25307 msgstr ""
25308
25309 #. type: textblock
25310 #: ../resize/virt-resize.pod:188
25311 msgid ""
25312 "Once the guest has booted you should see the new space available, at least "
25313 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
25314 "may need to resize LVs inside PVs, and also resize filesystem types that "
25315 "virt-resize does not know how to expand."
25316 msgstr ""
25317
25318 #. type: =head2
25319 #: ../resize/virt-resize.pod:195
25320 msgid "SHRINKING A VIRTUAL MACHINE DISK"
25321 msgstr ""
25322
25323 #. type: textblock
25324 #: ../resize/virt-resize.pod:197
25325 msgid ""
25326 "Shrinking is somewhat more complex than expanding, and only an overview is "
25327 "given here."
25328 msgstr ""
25329
25330 #. type: textblock
25331 #: ../resize/virt-resize.pod:200
25332 msgid ""
25333 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
25334 "filesystems).  The user has to shrink content before passing the disk image "
25335 "to virt-resize, and virt-resize will check that the content has been shrunk "
25336 "properly."
25337 msgstr ""
25338
25339 #. type: textblock
25340 #: ../resize/virt-resize.pod:205
25341 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
25342 msgstr ""
25343
25344 #. type: textblock
25345 #: ../resize/virt-resize.pod:207
25346 msgid ""
25347 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
25348 "steps 3 and 4 above to allocate a new disk image."
25349 msgstr ""
25350
25351 #. type: textblock
25352 #: ../resize/virt-resize.pod:210
25353 msgid ""
25354 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
25355 msgstr ""
25356
25357 #. type: =head2
25358 #: ../resize/virt-resize.pod:213
25359 msgid "IGNORING OR DELETING PARTITIONS"
25360 msgstr ""
25361
25362 #. type: textblock
25363 #: ../resize/virt-resize.pod:215
25364 msgid ""
25365 "virt-resize also gives a convenient way to ignore or delete partitions when "
25366 "copying from the input disk to the output disk.  Ignoring a partition speeds "
25367 "up the copy where you don't care about the existing contents of a "
25368 "partition.  Deleting a partition removes it completely, but note that it "
25369 "also renumbers any partitions after the one which is deleted, which can "
25370 "leave some guests unbootable."
25371 msgstr ""
25372
25373 #. type: =head2
25374 #: ../resize/virt-resize.pod:222
25375 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
25376 msgstr ""
25377
25378 #. type: textblock
25379 #: ../resize/virt-resize.pod:224
25380 msgid ""
25381 "If the input disk is in qcow2 format, then you may prefer that the output is "
25382 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
25383 "the fly.  The output format is simply determined by the format of the empty "
25384 "output container that you provide.  Thus to create qcow2 output, use:"
25385 msgstr ""
25386
25387 #. type: verbatim
25388 #: ../resize/virt-resize.pod:230
25389 #, no-wrap
25390 msgid ""
25391 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
25392 "\n"
25393 msgstr ""
25394
25395 #. type: textblock
25396 #: ../resize/virt-resize.pod:232
25397 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
25398 msgstr ""
25399
25400 #. type: textblock
25401 #: ../resize/virt-resize.pod:234
25402 msgid "Similarly, to get non-sparse raw output use:"
25403 msgstr ""
25404
25405 #. type: verbatim
25406 #: ../resize/virt-resize.pod:236
25407 #, no-wrap
25408 msgid ""
25409 " fallocate -l size outdisk\n"
25410 "\n"
25411 msgstr ""
25412
25413 #. type: textblock
25414 #: ../resize/virt-resize.pod:238
25415 msgid ""
25416 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
25417 "dev/zero of=outdisk bs=1M count=..>)"
25418 msgstr ""
25419
25420 #. type: =head2
25421 #: ../resize/virt-resize.pod:241
25422 msgid "LOGICAL PARTITIONS"
25423 msgstr ""
25424
25425 #. type: textblock
25426 #: ../resize/virt-resize.pod:243
25427 msgid ""
25428 "Logical partitions (a.k.a. C</dev/sda5+> on disks using DOS partition "
25429 "tables) cannot be resized."
25430 msgstr ""
25431
25432 #. type: textblock
25433 #: ../resize/virt-resize.pod:246
25434 msgid ""
25435 "To understand what is going on, firstly one of the four partitions C</dev/"
25436 "sda1-4> will have MBR partition type C<05> or C<0f>.  This is called the "
25437 "B<extended partition>.  Use L<virt-filesystems(1)> to see the MBR partition "
25438 "type."
25439 msgstr ""
25440
25441 #. type: textblock
25442 #: ../resize/virt-resize.pod:251
25443 msgid "Logical partitions live inside the extended partition."
25444 msgstr ""
25445
25446 #. type: textblock
25447 #: ../resize/virt-resize.pod:253
25448 msgid ""
25449 "The extended partition can be expanded, but not shrunk (unless you force it, "
25450 "which is not advisable).  When the extended partition is copied across, all "
25451 "the logical partitions contained inside are copied over implicitly.  Virt-"
25452 "resize does not look inside the extended partition, so it copies the logical "
25453 "partitions blindly."
25454 msgstr ""
25455
25456 #. type: textblock
25457 #: ../resize/virt-resize.pod:259
25458 msgid ""
25459 "You cannot specify a logical partition (C</dev/sda5+>) at all on the command "
25460 "line.  Doing so will give an error."
25461 msgstr ""
25462
25463 #. type: textblock
25464 #: ../resize/virt-resize.pod:268 ../sparsify/virt-sparsify.pod:105
25465 msgid "Display help."
25466 msgstr ""
25467
25468 #. type: =item
25469 #: ../resize/virt-resize.pod:270
25470 msgid "B<--align-first auto>"
25471 msgstr ""
25472
25473 #. type: =item
25474 #: ../resize/virt-resize.pod:272
25475 msgid "B<--align-first never>"
25476 msgstr ""
25477
25478 #. type: =item
25479 #: ../resize/virt-resize.pod:274
25480 msgid "B<--align-first always>"
25481 msgstr ""
25482
25483 #. type: textblock
25484 #: ../resize/virt-resize.pod:276
25485 msgid ""
25486 "Align the first partition for improved performance (see also the I<--"
25487 "alignment> option)."
25488 msgstr ""
25489
25490 #. type: textblock
25491 #: ../resize/virt-resize.pod:279
25492 msgid ""
25493 "The default is I<--align-first auto> which only aligns the first partition "
25494 "if it is safe to do so.  That is, only when we know how to fix the "
25495 "bootloader automatically, and at the moment that can only be done for "
25496 "Windows guests."
25497 msgstr ""
25498
25499 #. type: textblock
25500 #: ../resize/virt-resize.pod:284
25501 msgid ""
25502 "I<--align-first never> means we never move the first partition.  This is the "
25503 "safest option.  Try this if the guest does not boot after resizing."
25504 msgstr ""
25505
25506 #. type: textblock
25507 #: ../resize/virt-resize.pod:288
25508 msgid ""
25509 "I<--align-first always> means we always align the first partition (if it "
25510 "needs to be aligned).  For some guests this will break the bootloader, "
25511 "making the guest unbootable."
25512 msgstr ""
25513
25514 #. type: =item
25515 #: ../resize/virt-resize.pod:292
25516 msgid "B<--alignment N>"
25517 msgstr ""
25518
25519 #. type: textblock
25520 #: ../resize/virt-resize.pod:294
25521 msgid ""
25522 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
25523 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
25524 msgstr ""
25525
25526 #. type: textblock
25527 #: ../resize/virt-resize.pod:298
25528 msgid ""
25529 "Assuming 512 byte sector size inside the guest, here are some suitable "
25530 "values for this:"
25531 msgstr ""
25532
25533 #. type: =item
25534 #: ../resize/virt-resize.pod:303
25535 msgid "I<--alignment 1> (512 bytes)"
25536 msgstr ""
25537
25538 #. type: textblock
25539 #: ../resize/virt-resize.pod:305
25540 msgid ""
25541 "The partitions would be packed together as closely as possible, but would be "
25542 "completely unaligned.  In some cases this can cause very poor performance.  "
25543 "See L<virt-alignment-scan(1)> for further details."
25544 msgstr ""
25545
25546 #. type: =item
25547 #: ../resize/virt-resize.pod:309
25548 msgid "I<--alignment 8> (4K)"
25549 msgstr ""
25550
25551 #. type: textblock
25552 #: ../resize/virt-resize.pod:311
25553 msgid ""
25554 "This would be the minimum acceptable alignment for reasonable performance on "
25555 "modern hosts."
25556 msgstr ""
25557
25558 #. type: =item
25559 #: ../resize/virt-resize.pod:314
25560 msgid "I<--alignment 128> (64K)"
25561 msgstr ""
25562
25563 #. type: textblock
25564 #: ../resize/virt-resize.pod:316
25565 msgid ""
25566 "This alignment provides good performance when the host is using high end "
25567 "network storage."
25568 msgstr ""
25569
25570 #. type: =item
25571 #: ../resize/virt-resize.pod:319
25572 msgid "I<--alignment 2048> (1M)"
25573 msgstr ""
25574
25575 #. type: textblock
25576 #: ../resize/virt-resize.pod:321
25577 msgid ""
25578 "This is the standard alignment used by all newly installed guests since "
25579 "around 2008."
25580 msgstr ""
25581
25582 #. type: =item
25583 #: ../resize/virt-resize.pod:326
25584 msgid "B<-d>"
25585 msgstr "B<-d>"
25586
25587 #. type: =item
25588 #: ../resize/virt-resize.pod:328 ../tools/virt-make-fs.pl:177
25589 #: ../tools/virt-win-reg.pl:120
25590 msgid "B<--debug>"
25591 msgstr "B<--debug>"
25592
25593 #. type: textblock
25594 #: ../resize/virt-resize.pod:330 ../tools/virt-win-reg.pl:122
25595 msgid "Enable debugging messages."
25596 msgstr ""
25597
25598 #. type: =item
25599 #: ../resize/virt-resize.pod:332
25600 msgid "B<--delete part>"
25601 msgstr "B<--delete розділ>"
25602
25603 #. type: textblock
25604 #: ../resize/virt-resize.pod:334
25605 msgid ""
25606 "Delete the named partition.  It would be more accurate to describe this as "
25607 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
25608 "the original disk image is left intact."
25609 msgstr ""
25610
25611 #. type: textblock
25612 #: ../resize/virt-resize.pod:338
25613 msgid ""
25614 "Note that when you delete a partition, then anything contained in the "
25615 "partition is also deleted.  Furthermore, this causes any partitions that "
25616 "come after to be I<renumbered>, which can easily make your guest unbootable."
25617 msgstr ""
25618
25619 #. type: textblock
25620 #: ../resize/virt-resize.pod:343 ../resize/virt-resize.pod:404
25621 #: ../resize/virt-resize.pod:531 ../sparsify/virt-sparsify.pod:151
25622 msgid "You can give this option multiple times."
25623 msgstr ""
25624
25625 #. type: =item
25626 #: ../resize/virt-resize.pod:345
25627 msgid "B<--expand part>"
25628 msgstr "B<--expand розділ>"
25629
25630 #. type: textblock
25631 #: ../resize/virt-resize.pod:347
25632 msgid ""
25633 "Expand the named partition so it uses up all extra space (space left over "
25634 "after any other resize changes that you request have been done)."
25635 msgstr ""
25636
25637 #. type: textblock
25638 #: ../resize/virt-resize.pod:350
25639 msgid ""
25640 "If virt-resize knows how, it will expand the direct content of the "
25641 "partition.  For example, if the partition is an LVM PV, it will expand the "
25642 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
25643 "content it doesn't know about alone."
25644 msgstr ""
25645
25646 #. type: textblock
25647 #: ../resize/virt-resize.pod:355
25648 msgid "Currently virt-resize can resize:"
25649 msgstr ""
25650
25651 #. type: textblock
25652 #: ../resize/virt-resize.pod:361
25653 msgid "ext2, ext3 and ext4 filesystems."
25654 msgstr ""
25655
25656 #. type: textblock
25657 #: ../resize/virt-resize.pod:365
25658 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
25659 msgstr ""
25660
25661 #. type: textblock
25662 #: ../resize/virt-resize.pod:367
25663 msgid ""
25664 "The filesystem must have been shut down consistently last time it was used.  "
25665 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
25666 "consistency check, so at the first boot after resizing Windows will check "
25667 "the disk."
25668 msgstr ""
25669
25670 #. type: textblock
25671 #: ../resize/virt-resize.pod:374
25672 msgid ""
25673 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
25674 "inside the PV, but see the I<--LV-expand> option.  The user could also "
25675 "resize LVs as desired after boot."
25676 msgstr ""
25677
25678 #. type: textblock
25679 #: ../resize/virt-resize.pod:380
25680 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
25681 msgstr ""
25682
25683 #. type: textblock
25684 #: ../resize/virt-resize.pod:384 ../resize/virt-resize.pod:559
25685 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
25686 msgstr ""
25687
25688 #. type: =item
25689 #: ../resize/virt-resize.pod:386 ../sparsify/virt-sparsify.pod:131
25690 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
25691 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
25692 msgid "B<--format> raw"
25693 msgstr "B<--format> raw"
25694
25695 #. type: textblock
25696 #: ../resize/virt-resize.pod:388 ../sparsify/virt-sparsify.pod:135
25697 msgid ""
25698 "Specify the format of the input disk image.  If this flag is not given then "
25699 "it is auto-detected from the image itself."
25700 msgstr ""
25701
25702 #. type: textblock
25703 #: ../resize/virt-resize.pod:394
25704 msgid ""
25705 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
25706 "AND NON-SPARSE RAW FORMATS>."
25707 msgstr ""
25708
25709 #. type: =item
25710 #: ../resize/virt-resize.pod:397
25711 msgid "B<--ignore part>"
25712 msgstr "B<--ignore розділ>"
25713
25714 #. type: textblock
25715 #: ../resize/virt-resize.pod:399
25716 msgid ""
25717 "Ignore the named partition.  Effectively this means the partition is "
25718 "allocated on the destination disk, but the content is not copied across from "
25719 "the source disk.  The content of the partition will be blank (all zero "
25720 "bytes)."
25721 msgstr ""
25722
25723 #. type: =item
25724 #: ../resize/virt-resize.pod:406
25725 msgid "B<--LV-expand logvol>"
25726 msgstr "B<--LV-expand логічний_том>"
25727
25728 #. type: textblock
25729 #: ../resize/virt-resize.pod:408
25730 msgid ""
25731 "This takes the logical volume and, as a final step, expands it to fill all "
25732 "the space available in its volume group.  A typical usage, assuming a Linux "
25733 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
25734 "lv_root> would be:"
25735 msgstr ""
25736
25737 #. type: verbatim
25738 #: ../resize/virt-resize.pod:413
25739 #, no-wrap
25740 msgid ""
25741 " virt-resize indisk outdisk \\\n"
25742 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
25743 "\n"
25744 msgstr ""
25745
25746 #. type: textblock
25747 #: ../resize/virt-resize.pod:416
25748 msgid ""
25749 "This would first expand the partition (and PV), and then expand the root "
25750 "device to fill the extra space in the PV."
25751 msgstr ""
25752
25753 #. type: textblock
25754 #: ../resize/virt-resize.pod:419
25755 msgid ""
25756 "The contents of the LV are also resized if virt-resize knows how to do "
25757 "that.  You can stop virt-resize from trying to expand the content by using "
25758 "the option I<--no-expand-content>."
25759 msgstr ""
25760
25761 #. type: textblock
25762 #: ../resize/virt-resize.pod:423
25763 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
25764 msgstr ""
25765
25766 #. type: textblock
25767 #: ../resize/virt-resize.pod:425
25768 msgid ""
25769 "You can give this option multiple times, I<but> it doesn't make sense to do "
25770 "this unless the logical volumes you specify are all in different volume "
25771 "groups."
25772 msgstr ""
25773
25774 #. type: =item
25775 #: ../resize/virt-resize.pod:429 ../sparsify/virt-sparsify.pod:153
25776 msgid "B<--machine-readable>"
25777 msgstr ""
25778
25779 #. type: textblock
25780 #: ../resize/virt-resize.pod:431 ../sparsify/virt-sparsify.pod:155
25781 msgid ""
25782 "This option is used to make the output more machine friendly when being "
25783 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
25784 msgstr ""
25785
25786 #. type: =item
25787 #: ../resize/virt-resize.pod:437
25788 msgid "B<--dryrun>"
25789 msgstr "B<--dryrun>"
25790
25791 #. type: textblock
25792 #: ../resize/virt-resize.pod:439
25793 msgid "Print a summary of what would be done, but don't do anything."
25794 msgstr ""
25795
25796 #. type: =item
25797 #: ../resize/virt-resize.pod:441
25798 msgid "B<--no-copy-boot-loader>"
25799 msgstr "B<--no-copy-boot-loader>"
25800
25801 #. type: textblock
25802 #: ../resize/virt-resize.pod:443
25803 msgid ""
25804 "By default, virt-resize copies over some sectors at the start of the disk "
25805 "(up to the beginning of the first partition).  Commonly these sectors "
25806 "contain the Master Boot Record (MBR) and the boot loader, and are required "
25807 "in order for the guest to boot correctly."
25808 msgstr ""
25809
25810 #. type: textblock
25811 #: ../resize/virt-resize.pod:448
25812 msgid ""
25813 "If you specify this flag, then this initial copy is not done.  You may need "
25814 "to reinstall the boot loader in this case."
25815 msgstr ""
25816
25817 #. type: =item
25818 #: ../resize/virt-resize.pod:451
25819 msgid "B<--no-extra-partition>"
25820 msgstr "B<--no-extra-partition>"
25821
25822 #. type: textblock
25823 #: ../resize/virt-resize.pod:453
25824 msgid ""
25825 "By default, virt-resize creates an extra partition if there is any extra, "
25826 "unused space after all resizing has happened.  Use this option to prevent "
25827 "the extra partition from being created.  If you do this then the extra space "
25828 "will be inaccessible until you run fdisk, parted, or some other partitioning "
25829 "tool in the guest."
25830 msgstr ""
25831
25832 #. type: textblock
25833 #: ../resize/virt-resize.pod:459
25834 msgid ""
25835 "Note that if the surplus space is smaller than 10 MB, no extra partition "
25836 "will be created."
25837 msgstr ""
25838
25839 #. type: =item
25840 #: ../resize/virt-resize.pod:462
25841 msgid "B<--no-expand-content>"
25842 msgstr "B<--no-expand-content>"
25843
25844 #. type: textblock
25845 #: ../resize/virt-resize.pod:464
25846 msgid ""
25847 "By default, virt-resize will try to expand the direct contents of "
25848 "partitions, if it knows how (see I<--expand> option above)."
25849 msgstr ""
25850
25851 #. type: textblock
25852 #: ../resize/virt-resize.pod:467
25853 msgid ""
25854 "If you give the I<--no-expand-content> option then virt-resize will not "
25855 "attempt this."
25856 msgstr ""
25857
25858 #. type: =item
25859 #: ../resize/virt-resize.pod:470
25860 msgid "B<--ntfsresize-force>"
25861 msgstr "B<--ntfsresize-force>"
25862
25863 #. type: textblock
25864 #: ../resize/virt-resize.pod:472
25865 msgid ""
25866 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
25867 "the NTFS disk is marked as needing a consistency check.  You have to use "
25868 "this option if you want to resize a Windows guest multiple times without "
25869 "booting into Windows between each resize."
25870 msgstr ""
25871
25872 #. type: =item
25873 #: ../resize/virt-resize.pod:478
25874 msgid "B<--output-format> raw"
25875 msgstr "B<--output-format> raw"
25876
25877 #. type: textblock
25878 #: ../resize/virt-resize.pod:480
25879 msgid ""
25880 "Specify the format of the output disk image.  If this flag is not given then "
25881 "it is auto-detected from the image itself."
25882 msgstr ""
25883
25884 #. type: textblock
25885 #: ../resize/virt-resize.pod:486
25886 msgid ""
25887 "Note that this option I<does not create> the output format.  This option "
25888 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
25889 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
25890 "SPARSE RAW FORMATS>."
25891 msgstr ""
25892
25893 #. type: textblock
25894 #: ../resize/virt-resize.pod:495
25895 msgid "Don't print the summary."
25896 msgstr ""
25897
25898 #. type: =item
25899 #: ../resize/virt-resize.pod:497
25900 msgid "B<--resize part=size>"
25901 msgstr "B<--resize розділ=розмір>"
25902
25903 #. type: textblock
25904 #: ../resize/virt-resize.pod:499
25905 msgid ""
25906 "Resize the named partition (expanding or shrinking it) so that it has the "
25907 "given size."
25908 msgstr ""
25909
25910 #. type: textblock
25911 #: ../resize/virt-resize.pod:502
25912 msgid ""
25913 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
25914 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
25915 "size; or as a relative number or percentage.  For example:"
25916 msgstr ""
25917
25918 #. type: verbatim
25919 #: ../resize/virt-resize.pod:508
25920 #, no-wrap
25921 msgid ""
25922 " --resize /dev/sda2=10G\n"
25923 "\n"
25924 msgstr ""
25925
25926 #. type: verbatim
25927 #: ../resize/virt-resize.pod:510
25928 #, no-wrap
25929 msgid ""
25930 " --resize /dev/sda4=90%\n"
25931 "\n"
25932 msgstr ""
25933
25934 #. type: verbatim
25935 #: ../resize/virt-resize.pod:512
25936 #, no-wrap
25937 msgid ""
25938 " --resize /dev/sda2=+1G\n"
25939 "\n"
25940 msgstr ""
25941
25942 #. type: verbatim
25943 #: ../resize/virt-resize.pod:514
25944 #, no-wrap
25945 msgid ""
25946 " --resize /dev/sda2=-200M\n"
25947 "\n"
25948 msgstr ""
25949
25950 #. type: verbatim
25951 #: ../resize/virt-resize.pod:516
25952 #, no-wrap
25953 msgid ""
25954 " --resize /dev/sda1=+128K\n"
25955 "\n"
25956 msgstr ""
25957
25958 #. type: verbatim
25959 #: ../resize/virt-resize.pod:518
25960 #, no-wrap
25961 msgid ""
25962 " --resize /dev/sda1=+10%\n"
25963 "\n"
25964 msgstr ""
25965
25966 #. type: verbatim
25967 #: ../resize/virt-resize.pod:520
25968 #, no-wrap
25969 msgid ""
25970 " --resize /dev/sda1=-10%\n"
25971 "\n"
25972 msgstr ""
25973
25974 #. type: textblock
25975 #: ../resize/virt-resize.pod:522
25976 msgid ""
25977 "You can increase the size of any partition.  Virt-resize will expand the "
25978 "direct content of the partition if it knows how (see I<--expand> below)."
25979 msgstr ""
25980
25981 #. type: textblock
25982 #: ../resize/virt-resize.pod:526
25983 msgid ""
25984 "You can only I<decrease> the size of partitions that contain filesystems or "
25985 "PVs which have already been shrunk.  Virt-resize will check this has been "
25986 "done before proceeding, or else will print an error (see also I<--resize-"
25987 "force>)."
25988 msgstr ""
25989
25990 #. type: =item
25991 #: ../resize/virt-resize.pod:533
25992 msgid "B<--resize-force part=size>"
25993 msgstr "B<--resize-force розділ=розмір>"
25994
25995 #. type: textblock
25996 #: ../resize/virt-resize.pod:535
25997 msgid ""
25998 "This is the same as I<--resize> except that it will let you decrease the "
25999 "size of any partition.  Generally this means you will lose any data which "
26000 "was at the end of the partition you shrink, but you may not care about that "
26001 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
26002 "as a swap partition)."
26003 msgstr ""
26004
26005 #. type: textblock
26006 #: ../resize/virt-resize.pod:541
26007 msgid "See also the I<--ignore> option."
26008 msgstr ""
26009
26010 #. type: =item
26011 #: ../resize/virt-resize.pod:543
26012 msgid "B<--shrink part>"
26013 msgstr "B<--shrink розділ>"
26014
26015 #. type: textblock
26016 #: ../resize/virt-resize.pod:545
26017 msgid ""
26018 "Shrink the named partition until the overall disk image fits in the "
26019 "destination.  The named partition B<must> contain a filesystem or PV which "
26020 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
26021 "online tools).  Virt-resize will check this and give an error if it has not "
26022 "been done."
26023 msgstr ""
26024
26025 #. type: textblock
26026 #: ../resize/virt-resize.pod:551
26027 msgid ""
26028 "The amount by which the overall disk must be shrunk (after carrying out all "
26029 "other operations requested by the user) is called the \"deficit\".  For "
26030 "example, a straight copy (assume no other operations)  from a 5GB disk image "
26031 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
26032 "would give an error unless the user specified a partition to shrink and that "
26033 "partition had more than a gigabyte of free space."
26034 msgstr ""
26035
26036 #. type: =head1
26037 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:195
26038 msgid "MACHINE READABLE OUTPUT"
26039 msgstr ""
26040
26041 #. type: textblock
26042 #: ../resize/virt-resize.pod:571
26043 msgid ""
26044 "The I<--machine-readable> option can be used to make the output more machine "
26045 "friendly, which is useful when calling virt-resize from other programs, GUIs "
26046 "etc."
26047 msgstr ""
26048
26049 #. type: textblock
26050 #: ../resize/virt-resize.pod:575 ../sparsify/virt-sparsify.pod:201
26051 msgid "There are two ways to use this option."
26052 msgstr ""
26053
26054 #. type: textblock
26055 #: ../resize/virt-resize.pod:577
26056 msgid ""
26057 "Firstly use the option on its own to query the capabilities of the virt-"
26058 "resize binary.  Typical output looks like this:"
26059 msgstr ""
26060
26061 #. type: verbatim
26062 #: ../resize/virt-resize.pod:580
26063 #, no-wrap
26064 msgid ""
26065 " $ virt-resize --machine-readable\n"
26066 " virt-resize\n"
26067 " ntfsresize-force\n"
26068 " 32bitok\n"
26069 " ntfs\n"
26070 " btrfs\n"
26071 "\n"
26072 msgstr ""
26073
26074 #. type: textblock
26075 #: ../resize/virt-resize.pod:587 ../sparsify/virt-sparsify.pod:211
26076 msgid ""
26077 "A list of features is printed, one per line, and the program exits with "
26078 "status 0."
26079 msgstr ""
26080
26081 #. type: textblock
26082 #: ../resize/virt-resize.pod:590 ../sparsify/virt-sparsify.pod:214
26083 msgid ""
26084 "Secondly use the option in conjunction with other options to make the "
26085 "regular program output more machine friendly."
26086 msgstr ""
26087
26088 #. type: textblock
26089 #: ../resize/virt-resize.pod:593 ../sparsify/virt-sparsify.pod:217
26090 msgid "At the moment this means:"
26091 msgstr ""
26092
26093 #. type: textblock
26094 #: ../resize/virt-resize.pod:599 ../sparsify/virt-sparsify.pod:223
26095 msgid ""
26096 "Progress bar messages can be parsed from stdout by looking for this regular "
26097 "expression:"
26098 msgstr ""
26099
26100 #. type: verbatim
26101 #: ../resize/virt-resize.pod:602 ../sparsify/virt-sparsify.pod:226
26102 #, no-wrap
26103 msgid ""
26104 " ^[0-9]+/[0-9]+$\n"
26105 "\n"
26106 msgstr ""
26107
26108 #. type: textblock
26109 #: ../resize/virt-resize.pod:606 ../sparsify/virt-sparsify.pod:230
26110 msgid ""
26111 "The calling program should treat messages sent to stdout (except for "
26112 "progress bar messages) as status messages.  They can be logged and/or "
26113 "displayed to the user."
26114 msgstr ""
26115
26116 #. type: textblock
26117 #: ../resize/virt-resize.pod:612
26118 msgid ""
26119 "The calling program should treat messages sent to stderr as error messages.  "
26120 "In addition, virt-resize exits with a non-zero status code if there was a "
26121 "fatal error."
26122 msgstr ""
26123
26124 #. type: textblock
26125 #: ../resize/virt-resize.pod:618
26126 msgid ""
26127 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
26128 "readable> option and will return an error."
26129 msgstr ""
26130
26131 #. type: =head2
26132 #: ../resize/virt-resize.pod:623
26133 msgid "\"Partition 1 does not end on cylinder boundary.\""
26134 msgstr ""
26135
26136 #. type: textblock
26137 #: ../resize/virt-resize.pod:625
26138 msgid ""
26139 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
26140 "alignment> parameter).  Usually this means the partitions will not be "
26141 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
26142 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
26143 "drives.  Alignment of partitions to cylinders is not required by any modern "
26144 "operating system."
26145 msgstr ""
26146
26147 #. type: =head2
26148 #: ../resize/virt-resize.pod:632
26149 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
26150 msgstr ""
26151
26152 #. type: textblock
26153 #: ../resize/virt-resize.pod:634
26154 msgid ""
26155 "In Windows Vista and later versions, Microsoft switched to using a separate "
26156 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
26157 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
26158 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
26159 "the second partition (ie. C: drive)  should work."
26160 msgstr ""
26161
26162 #. type: textblock
26163 #: ../resize/virt-resize.pod:641
26164 msgid ""
26165 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
26166 "NTFS partitions have been expanded.  This is just a safety check and (unless "
26167 "it find errors) is nothing to worry about."
26168 msgstr ""
26169
26170 #. type: =head2
26171 #: ../resize/virt-resize.pod:645
26172 msgid "GUEST BOOT STUCK AT \"GRUB\""
26173 msgstr ""
26174
26175 #. type: textblock
26176 #: ../resize/virt-resize.pod:647
26177 msgid ""
26178 "If a Linux guest does not boot after resizing, and the boot is stuck after "
26179 "printing C<GRUB> on the console, try reinstalling grub."
26180 msgstr ""
26181
26182 #. type: verbatim
26183 #: ../resize/virt-resize.pod:650
26184 #, no-wrap
26185 msgid ""
26186 " guestfish -i -a newdisk\n"
26187 " ><fs> cat /boot/grub/device.map\n"
26188 " # check the contents of this file are sensible or\n"
26189 " # edit the file if necessary\n"
26190 " ><fs> grub-install / /dev/vda\n"
26191 " ><fs> exit\n"
26192 "\n"
26193 msgstr ""
26194
26195 #. type: textblock
26196 #: ../resize/virt-resize.pod:657
26197 msgid ""
26198 "For more flexible guest reconfiguration, including if you need to specify "
26199 "other parameters to grub-install, use L<virt-rescue(1)>."
26200 msgstr ""
26201
26202 #. type: =head1
26203 #: ../resize/virt-resize.pod:660
26204 msgid "ALTERNATIVE TOOLS"
26205 msgstr ""
26206
26207 #. type: textblock
26208 #: ../resize/virt-resize.pod:662
26209 msgid ""
26210 "There are several proprietary tools for resizing partitions.  We won't "
26211 "mention any here."
26212 msgstr ""
26213
26214 #. type: textblock
26215 #: ../resize/virt-resize.pod:665
26216 msgid ""
26217 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
26218 "operations on disk images.  They can resize and move partitions, but I don't "
26219 "think they can do anything with the contents, and they certainly don't "
26220 "understand LVM."
26221 msgstr ""
26222
26223 #. type: textblock
26224 #: ../resize/virt-resize.pod:670
26225 msgid ""
26226 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
26227 "but at a much lower level.  You will probably end up hand-calculating sector "
26228 "offsets, which is something that virt-resize was designed to avoid.  If you "
26229 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
26230 "I<--debug> flag."
26231 msgstr ""
26232
26233 #. type: textblock
26234 #: ../resize/virt-resize.pod:690
26235 msgid ""
26236 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
26237 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
26238 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
26239 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
26240 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
26241 msgstr ""
26242
26243 #. type: textblock
26244 #: ../ruby/examples/guestfs-ruby.pod:5
26245 msgid "guestfs-ruby - How to use libguestfs from Ruby"
26246 msgstr ""
26247
26248 #. type: verbatim
26249 #: ../ruby/examples/guestfs-ruby.pod:9
26250 #, no-wrap
26251 msgid ""
26252 " require 'guestfs'\n"
26253 " g = Guestfs::Guestfs.new()\n"
26254 " g.add_drive_opts(\"disk.img\",\n"
26255 "                  :readonly => 1, :format => \"raw\")\n"
26256 " g.launch()\n"
26257 "\n"
26258 msgstr ""
26259
26260 #. type: textblock
26261 #: ../ruby/examples/guestfs-ruby.pod:17
26262 msgid ""
26263 "This manual page documents how to call libguestfs from the Ruby programming "
26264 "language.  This page just documents the differences from the C API and gives "
26265 "some examples.  If you are not familiar with using libguestfs, you also need "
26266 "to read L<guestfs(3)>."
26267 msgstr ""
26268
26269 #. type: textblock
26270 #: ../ruby/examples/guestfs-ruby.pod:24
26271 msgid ""
26272 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
26273 "This has a single parameter which is the error message (a string)."
26274 msgstr ""
26275
26276 #. type: textblock
26277 #: ../ruby/examples/guestfs-ruby.pod:38
26278 msgid ""
26279 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
26280 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
26281 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
26282 msgstr ""
26283
26284 #. type: textblock
26285 #: ../sparsify/virt-sparsify.pod:5
26286 msgid "virt-sparsify - Make a virtual machine disk sparse"
26287 msgstr ""
26288
26289 #. type: verbatim
26290 #: ../sparsify/virt-sparsify.pod:9
26291 #, no-wrap
26292 msgid ""
26293 " virt-sparsify [--options] indisk outdisk\n"
26294 "\n"
26295 msgstr ""
26296
26297 #. type: textblock
26298 #: ../sparsify/virt-sparsify.pod:13
26299 msgid ""
26300 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
26301 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
26302 "the disk image can be converted back to free space on the host."
26303 msgstr ""
26304
26305 #. type: textblock
26306 #: ../sparsify/virt-sparsify.pod:18
26307 msgid ""
26308 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
26309 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
26310 msgstr ""
26311
26312 #. type: textblock
26313 #: ../sparsify/virt-sparsify.pod:21
26314 msgid ""
26315 "Virt-sparsify can also convert between some disk formats, for example "
26316 "converting a raw disk image to a thin-provisioned qcow2 image."
26317 msgstr ""
26318
26319 #. type: textblock
26320 #: ../sparsify/virt-sparsify.pod:24
26321 msgid ""
26322 "Virt-sparsify can operate on any disk image, not just ones from virtual "
26323 "machines.  If a virtual machine has more than one attached disk, you must "
26324 "sparsify each one separately."
26325 msgstr ""
26326
26327 #. type: =head2
26328 #: ../sparsify/virt-sparsify.pod:28
26329 msgid "IMPORTANT LIMITATIONS"
26330 msgstr ""
26331
26332 #. type: textblock
26333 #: ../sparsify/virt-sparsify.pod:34
26334 msgid ""
26335 "Virt-sparsify does not do in-place modifications.  It copies from a source "
26336 "image to a destination image, leaving the source unchanged.  I<Check that "
26337 "the sparsification was successful before deleting the source image>."
26338 msgstr ""
26339
26340 #. type: textblock
26341 #: ../sparsify/virt-sparsify.pod:41
26342 msgid "The virtual machine I<must be shut down> before using this tool."
26343 msgstr ""
26344
26345 #. type: textblock
26346 #: ../sparsify/virt-sparsify.pod:45
26347 msgid ""
26348 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
26349 "(1 temporary copy + 1 destination image).  This is in the worst case and "
26350 "usually much less space is required."
26351 msgstr ""
26352
26353 #. type: textblock
26354 #: ../sparsify/virt-sparsify.pod:51
26355 msgid ""
26356 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
26357 msgstr ""
26358
26359 #. type: textblock
26360 #: ../sparsify/virt-sparsify.pod:56
26361 msgid "Virt-sparsify cannot handle encrypted disks."
26362 msgstr ""
26363
26364 #. type: textblock
26365 #: ../sparsify/virt-sparsify.pod:60
26366 msgid ""
26367 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
26368 "this space is often used for critical items like bootloaders so it's not "
26369 "really unused."
26370 msgstr ""
26371
26372 #. type: textblock
26373 #: ../sparsify/virt-sparsify.pod:66
26374 msgid ""
26375 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
26376 "to do this unless we can be sure there is no hibernation data, so at the "
26377 "moment swap partitions are ignored."
26378 msgstr ""
26379
26380 #. type: textblock
26381 #: ../sparsify/virt-sparsify.pod:72
26382 msgid ""
26383 "You may also want to read the manual pages for the associated tools L<virt-"
26384 "filesystems(1)> and L<virt-df(1)> before starting."
26385 msgstr ""
26386
26387 #. type: textblock
26388 #: ../sparsify/virt-sparsify.pod:77
26389 msgid "Typical usage is:"
26390 msgstr ""
26391
26392 #. type: verbatim
26393 #: ../sparsify/virt-sparsify.pod:79
26394 #, no-wrap
26395 msgid ""
26396 " virt-sparsify indisk outdisk\n"
26397 "\n"
26398 msgstr ""
26399
26400 #. type: textblock
26401 #: ../sparsify/virt-sparsify.pod:81
26402 msgid ""
26403 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
26404 "is created, or overwritten if it already exists.  The format of the input "
26405 "disk is detected (eg. qcow2) and the same format is used for the output disk."
26406 msgstr ""
26407
26408 #. type: textblock
26409 #: ../sparsify/virt-sparsify.pod:86
26410 msgid "To convert between formats, use the I<--convert> option:"
26411 msgstr ""
26412
26413 #. type: verbatim
26414 #: ../sparsify/virt-sparsify.pod:88
26415 #, no-wrap
26416 msgid ""
26417 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
26418 "\n"
26419 msgstr ""
26420
26421 #. type: textblock
26422 #: ../sparsify/virt-sparsify.pod:90
26423 msgid ""
26424 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
26425 "can find within the source disk image.  You can get it to ignore (don't zero "
26426 "free space on) certain filesystems by doing:"
26427 msgstr ""
26428
26429 #. type: verbatim
26430 #: ../sparsify/virt-sparsify.pod:94
26431 #, no-wrap
26432 msgid ""
26433 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
26434 "\n"
26435 msgstr ""
26436
26437 #. type: textblock
26438 #: ../sparsify/virt-sparsify.pod:96
26439 msgid ""
26440 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
26441 msgstr ""
26442
26443 #. type: =item
26444 #: ../sparsify/virt-sparsify.pod:107
26445 #, fuzzy
26446 #| msgid "B<--parts>"
26447 msgid "B<--compress>"
26448 msgstr "B<--parts>"
26449
26450 #. type: textblock
26451 #: ../sparsify/virt-sparsify.pod:109
26452 msgid ""
26453 "Compress the output file.  This I<only> works if the output format is "
26454 "C<qcow2>."
26455 msgstr ""
26456
26457 #. type: =item
26458 #: ../sparsify/virt-sparsify.pod:112
26459 msgid "B<--convert> raw"
26460 msgstr ""
26461
26462 #. type: =item
26463 #: ../sparsify/virt-sparsify.pod:114
26464 msgid "B<--convert> qcow2"
26465 msgstr ""
26466
26467 #. type: =item
26468 #: ../sparsify/virt-sparsify.pod:116
26469 msgid "B<--convert> [other formats]"
26470 msgstr ""
26471
26472 #. type: textblock
26473 #: ../sparsify/virt-sparsify.pod:118
26474 msgid ""
26475 "Use C<output-format> as the format for the destination image.  If this is "
26476 "not specified, then the input format is used."
26477 msgstr ""
26478
26479 #. type: textblock
26480 #: ../sparsify/virt-sparsify.pod:121
26481 msgid ""
26482 "Supported and known-working output formats are: C<raw>, C<qcow2>, C<vdi>."
26483 msgstr ""
26484
26485 #. type: textblock
26486 #: ../sparsify/virt-sparsify.pod:123
26487 msgid ""
26488 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
26489 "C<vmdk>, but support for other formats is reliant on qemu."
26490 msgstr ""
26491
26492 #. type: textblock
26493 #: ../sparsify/virt-sparsify.pod:126
26494 msgid ""
26495 "Specifying the I<--convert> option is usually a good idea, because then virt-"
26496 "sparsify doesn't need to try to guess the input format."
26497 msgstr ""
26498
26499 #. type: textblock
26500 #: ../sparsify/virt-sparsify.pod:129
26501 msgid "For fine-tuning the output format, see: I<--compress>, I<-o>."
26502 msgstr ""
26503
26504 #. type: =item
26505 #: ../sparsify/virt-sparsify.pod:133
26506 msgid "B<--format> qcow2"
26507 msgstr ""
26508
26509 #. type: =item
26510 #: ../sparsify/virt-sparsify.pod:141
26511 msgid "B<--ignore> filesystem"
26512 msgstr ""
26513
26514 #. type: =item
26515 #: ../sparsify/virt-sparsify.pod:143
26516 msgid "B<--ignore> volgroup"
26517 msgstr ""
26518
26519 #. type: textblock
26520 #: ../sparsify/virt-sparsify.pod:145
26521 msgid ""
26522 "Ignore the named filesystem.  Free space on the filesystem will not be "
26523 "zeroed, but existing blocks of zeroes will still be sparsified."
26524 msgstr ""
26525
26526 #. type: textblock
26527 #: ../sparsify/virt-sparsify.pod:148
26528 msgid ""
26529 "In the second form, this ignores the named volume group.  Use the volume "
26530 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
26531 msgstr ""
26532
26533 #. type: =item
26534 #: ../sparsify/virt-sparsify.pod:159
26535 #, fuzzy
26536 #| msgid "B<--option option>"
26537 msgid "B<-o> option[,option,...]"
26538 msgstr "B<--option параметр>"
26539
26540 #. type: textblock
26541 #: ../sparsify/virt-sparsify.pod:161
26542 msgid ""
26543 "Pass I<-o> option(s) to the L<qemu-img(1)> command to fine-tune the output "
26544 "format.  Options available depend on the output format (see I<--convert>) "
26545 "and the installed version of the qemu-img program."
26546 msgstr ""
26547
26548 #. type: textblock
26549 #: ../sparsify/virt-sparsify.pod:165
26550 msgid ""
26551 "You should use I<-o> at most once.  To pass multiple options, separate them "
26552 "with commas, eg:"
26553 msgstr ""
26554
26555 #. type: verbatim
26556 #: ../sparsify/virt-sparsify.pod:168
26557 #, no-wrap
26558 msgid ""
26559 " virt-sparsify --convert qcow2 \\\n"
26560 "   -o cluster_size=512,preallocation=metadata ...\n"
26561 "\n"
26562 msgstr ""
26563
26564 #. type: textblock
26565 #: ../sparsify/virt-sparsify.pod:175
26566 msgid "This disables progress bars and other unnecessary output."
26567 msgstr ""
26568
26569 #. type: textblock
26570 #: ../sparsify/virt-sparsify.pod:197
26571 msgid ""
26572 "The I<--machine-readable> option can be used to make the output more machine "
26573 "friendly, which is useful when calling virt-sparsify from other programs, "
26574 "GUIs etc."
26575 msgstr ""
26576
26577 #. type: textblock
26578 #: ../sparsify/virt-sparsify.pod:203
26579 msgid ""
26580 "Firstly use the option on its own to query the capabilities of the virt-"
26581 "sparsify binary.  Typical output looks like this:"
26582 msgstr ""
26583
26584 #. type: verbatim
26585 #: ../sparsify/virt-sparsify.pod:206
26586 #, no-wrap
26587 msgid ""
26588 " $ virt-sparsify --machine-readable\n"
26589 " virt-sparsify\n"
26590 " ntfs\n"
26591 " btrfs\n"
26592 "\n"
26593 msgstr ""
26594
26595 #. type: textblock
26596 #: ../sparsify/virt-sparsify.pod:236
26597 msgid ""
26598 "The calling program should treat messages sent to stderr as error messages.  "
26599 "In addition, virt-sparsify exits with a non-zero status code if there was a "
26600 "fatal error."
26601 msgstr ""
26602
26603 #. type: textblock
26604 #: ../sparsify/virt-sparsify.pod:242
26605 msgid ""
26606 "All versions of virt-sparsify have supported the I<--machine-readable> "
26607 "option."
26608 msgstr ""
26609
26610 #. type: textblock
26611 #: ../sparsify/virt-sparsify.pod:256
26612 msgid ""
26613 "Location of the temporary directory used for the potentially large temporary "
26614 "overlay file."
26615 msgstr ""
26616
26617 #. type: textblock
26618 #: ../sparsify/virt-sparsify.pod:259
26619 msgid ""
26620 "You should ensure there is enough free space in the worst case for a full "
26621 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
26622 "to another directory that has enough space."
26623 msgstr ""
26624
26625 #. type: textblock
26626 #: ../sparsify/virt-sparsify.pod:263
26627 msgid "This defaults to C</tmp>."
26628 msgstr ""
26629
26630 #. type: textblock
26631 #: ../sparsify/virt-sparsify.pod:267
26632 msgid ""
26633 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
26634 msgstr ""
26635
26636 #. type: textblock
26637 #: ../sparsify/virt-sparsify.pod:271
26638 msgid ""
26639 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
26640 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
26641 "(1)>, L<http://libguestfs.org/>."
26642 msgstr ""
26643
26644 #. type: =head2
26645 #: ../src/guestfs-actions.pod:1
26646 msgid "guestfs_add_cdrom"
26647 msgstr ""
26648
26649 #. type: verbatim
26650 #: ../src/guestfs-actions.pod:3
26651 #, no-wrap
26652 msgid ""
26653 " int\n"
26654 " guestfs_add_cdrom (guestfs_h *g,\n"
26655 "                    const char *filename);\n"
26656 "\n"
26657 msgstr ""
26658
26659 #. type: textblock
26660 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:302
26661 #: ../src/guestfs-actions.pod:323
26662 msgid ""
26663 "I<This function is deprecated.> In new code, use the L</"
26664 "guestfs_add_drive_opts> call instead."
26665 msgstr ""
26666
26667 #. type: textblock
26668 #: ../src/guestfs-actions.pod:24
26669 msgid ""
26670 "This call checks for the existence of C<filename>.  This stops you from "
26671 "specifying other types of drive which are supported by qemu such as C<nbd:> "
26672 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
26673 "instead."
26674 msgstr ""
26675
26676 #. type: textblock
26677 #: ../src/guestfs-actions.pod:31
26678 msgid ""
26679 "If you just want to add an ISO file (often you use this as an efficient way "
26680 "to transfer large files into the guest), then you should probably use "
26681 "C<guestfs_add_drive_ro> instead."
26682 msgstr ""
26683
26684 #. type: textblock
26685 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:187
26686 #: ../src/guestfs-actions.pod:254 ../src/guestfs-actions.pod:291
26687 #: ../src/guestfs-actions.pod:312 ../src/guestfs-actions.pod:333
26688 #: ../src/guestfs-actions.pod:346 ../src/guestfs-actions.pod:360
26689 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:500
26690 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:559
26691 #: ../src/guestfs-actions.pod:587 ../src/guestfs-actions.pod:605
26692 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:705
26693 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:734
26694 #: ../src/guestfs-actions.pod:833 ../src/guestfs-actions.pod:851
26695 #: ../src/guestfs-actions.pod:865 ../src/guestfs-actions.pod:879
26696 #: ../src/guestfs-actions.pod:916 ../src/guestfs-actions.pod:1099
26697 #: ../src/guestfs-actions.pod:1119 ../src/guestfs-actions.pod:1137
26698 #: ../src/guestfs-actions.pod:1227 ../src/guestfs-actions.pod:1286
26699 #: ../src/guestfs-actions.pod:1332 ../src/guestfs-actions.pod:1372
26700 #: ../src/guestfs-actions.pod:1425 ../src/guestfs-actions.pod:1478
26701 #: ../src/guestfs-actions.pod:1536 ../src/guestfs-actions.pod:1590
26702 #: ../src/guestfs-actions.pod:1609 ../src/guestfs-actions.pod:1623
26703 #: ../src/guestfs-actions.pod:1651 ../src/guestfs-actions.pod:1721
26704 #: ../src/guestfs-actions.pod:1752 ../src/guestfs-actions.pod:1777
26705 #: ../src/guestfs-actions.pod:1819 ../src/guestfs-actions.pod:1932
26706 #: ../src/guestfs-actions.pod:1959 ../src/guestfs-actions.pod:2174
26707 #: ../src/guestfs-actions.pod:2196 ../src/guestfs-actions.pod:2283
26708 #: ../src/guestfs-actions.pod:2791 ../src/guestfs-actions.pod:2935
26709 #: ../src/guestfs-actions.pod:2996 ../src/guestfs-actions.pod:3031
26710 #: ../src/guestfs-actions.pod:4088 ../src/guestfs-actions.pod:4103
26711 #: ../src/guestfs-actions.pod:4128 ../src/guestfs-actions.pod:4330
26712 #: ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4357
26713 #: ../src/guestfs-actions.pod:4371 ../src/guestfs-actions.pod:4386
26714 #: ../src/guestfs-actions.pod:4422 ../src/guestfs-actions.pod:4494
26715 #: ../src/guestfs-actions.pod:4514 ../src/guestfs-actions.pod:4531
26716 #: ../src/guestfs-actions.pod:4551 ../src/guestfs-actions.pod:4571
26717 #: ../src/guestfs-actions.pod:4606 ../src/guestfs-actions.pod:4625
26718 #: ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:4679
26719 #: ../src/guestfs-actions.pod:4691 ../src/guestfs-actions.pod:4724
26720 #: ../src/guestfs-actions.pod:4740 ../src/guestfs-actions.pod:4753
26721 #: ../src/guestfs-actions.pod:4768 ../src/guestfs-actions.pod:4785
26722 #: ../src/guestfs-actions.pod:4943 ../src/guestfs-actions.pod:5027
26723 #: ../src/guestfs-actions.pod:5037 ../src/guestfs-actions.pod:5057
26724 #: ../src/guestfs-actions.pod:5070 ../src/guestfs-actions.pod:5121
26725 #: ../src/guestfs-actions.pod:5139 ../src/guestfs-actions.pod:5157
26726 #: ../src/guestfs-actions.pod:5173 ../src/guestfs-actions.pod:5187
26727 #: ../src/guestfs-actions.pod:5201 ../src/guestfs-actions.pod:5218
26728 #: ../src/guestfs-actions.pod:5233 ../src/guestfs-actions.pod:5260
26729 #: ../src/guestfs-actions.pod:5323 ../src/guestfs-actions.pod:5396
26730 #: ../src/guestfs-actions.pod:5427 ../src/guestfs-actions.pod:5446
26731 #: ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:5477
26732 #: ../src/guestfs-actions.pod:5494 ../src/guestfs-actions.pod:5507
26733 #: ../src/guestfs-actions.pod:5522 ../src/guestfs-actions.pod:5537
26734 #: ../src/guestfs-actions.pod:5569 ../src/guestfs-actions.pod:5595
26735 #: ../src/guestfs-actions.pod:5634 ../src/guestfs-actions.pod:5654
26736 #: ../src/guestfs-actions.pod:5668 ../src/guestfs-actions.pod:5685
26737 #: ../src/guestfs-actions.pod:5734 ../src/guestfs-actions.pod:5787
26738 #: ../src/guestfs-actions.pod:5834 ../src/guestfs-actions.pod:5877
26739 #: ../src/guestfs-actions.pod:5905 ../src/guestfs-actions.pod:5922
26740 #: ../src/guestfs-actions.pod:5940 ../src/guestfs-actions.pod:6077
26741 #: ../src/guestfs-actions.pod:6134 ../src/guestfs-actions.pod:6156
26742 #: ../src/guestfs-actions.pod:6174 ../src/guestfs-actions.pod:6226
26743 #: ../src/guestfs-actions.pod:6292 ../src/guestfs-actions.pod:6309
26744 #: ../src/guestfs-actions.pod:6322 ../src/guestfs-actions.pod:6336
26745 #: ../src/guestfs-actions.pod:6625 ../src/guestfs-actions.pod:6644
26746 #: ../src/guestfs-actions.pod:6663 ../src/guestfs-actions.pod:6677
26747 #: ../src/guestfs-actions.pod:6689 ../src/guestfs-actions.pod:6703
26748 #: ../src/guestfs-actions.pod:6715 ../src/guestfs-actions.pod:6729
26749 #: ../src/guestfs-actions.pod:6745 ../src/guestfs-actions.pod:6763
26750 #: ../src/guestfs-actions.pod:6782 ../src/guestfs-actions.pod:6801
26751 #: ../src/guestfs-actions.pod:6831 ../src/guestfs-actions.pod:6849
26752 #: ../src/guestfs-actions.pod:6872 ../src/guestfs-actions.pod:6890
26753 #: ../src/guestfs-actions.pod:6909 ../src/guestfs-actions.pod:6930
26754 #: ../src/guestfs-actions.pod:6949 ../src/guestfs-actions.pod:6966
26755 #: ../src/guestfs-actions.pod:6985 ../src/guestfs-actions.pod:7013
26756 #: ../src/guestfs-actions.pod:7037 ../src/guestfs-actions.pod:7056
26757 #: ../src/guestfs-actions.pod:7072 ../src/guestfs-actions.pod:7096
26758 #: ../src/guestfs-actions.pod:7115 ../src/guestfs-actions.pod:7130
26759 #: ../src/guestfs-actions.pod:7149 ../src/guestfs-actions.pod:7193
26760 #: ../src/guestfs-actions.pod:7220 ../src/guestfs-actions.pod:7250
26761 #: ../src/guestfs-actions.pod:7362 ../src/guestfs-actions.pod:7483
26762 #: ../src/guestfs-actions.pod:7495 ../src/guestfs-actions.pod:7508
26763 #: ../src/guestfs-actions.pod:7521 ../src/guestfs-actions.pod:7543
26764 #: ../src/guestfs-actions.pod:7556 ../src/guestfs-actions.pod:7569
26765 #: ../src/guestfs-actions.pod:7582 ../src/guestfs-actions.pod:7597
26766 #: ../src/guestfs-actions.pod:7656 ../src/guestfs-actions.pod:7673
26767 #: ../src/guestfs-actions.pod:7689 ../src/guestfs-actions.pod:7705
26768 #: ../src/guestfs-actions.pod:7722 ../src/guestfs-actions.pod:7735
26769 #: ../src/guestfs-actions.pod:7755 ../src/guestfs-actions.pod:7855
26770 #: ../src/guestfs-actions.pod:7913 ../src/guestfs-actions.pod:7927
26771 #: ../src/guestfs-actions.pod:7968 ../src/guestfs-actions.pod:7981
26772 #: ../src/guestfs-actions.pod:7999 ../src/guestfs-actions.pod:8033
26773 #: ../src/guestfs-actions.pod:8069 ../src/guestfs-actions.pod:8185
26774 #: ../src/guestfs-actions.pod:8200 ../src/guestfs-actions.pod:8214
26775 #: ../src/guestfs-actions.pod:8269 ../src/guestfs-actions.pod:8282
26776 #: ../src/guestfs-actions.pod:8327 ../src/guestfs-actions.pod:8367
26777 #: ../src/guestfs-actions.pod:8423 ../src/guestfs-actions.pod:8443
26778 #: ../src/guestfs-actions.pod:8476 ../src/guestfs-actions.pod:8540
26779 #: ../src/guestfs-actions.pod:8563 ../src/guestfs-actions.pod:8589
26780 msgid "This function returns 0 on success or -1 on error."
26781 msgstr ""
26782
26783 #. type: textblock
26784 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:189
26785 #: ../src/guestfs-actions.pod:1334 ../src/guestfs-actions.pod:2397
26786 #: ../src/guestfs-actions.pod:2495 ../src/guestfs-actions.pod:2620
26787 #: ../src/guestfs-actions.pod:4090 ../src/guestfs-actions.pod:4110
26788 #: ../src/guestfs-actions.pod:5571 ../src/guestfs-actions.pod:6851
26789 #: ../src/guestfs-actions.pod:6968 ../src/guestfs-actions.pod:7117
26790 #: ../src/guestfs-actions.pod:7599 ../src/guestfs-actions.pod:7724
26791 #: ../src/guestfs-actions.pod:8369
26792 msgid "(Added in 0.3)"
26793 msgstr "(Додано у 0.3)"
26794
26795 #. type: =head2
26796 #: ../src/guestfs-actions.pod:41
26797 msgid "guestfs_add_domain"
26798 msgstr ""
26799
26800 #. type: verbatim
26801 #: ../src/guestfs-actions.pod:43
26802 #, no-wrap
26803 msgid ""
26804 " int\n"
26805 " guestfs_add_domain (guestfs_h *g,\n"
26806 "                     const char *dom,\n"
26807 "                     ...);\n"
26808 "\n"
26809 msgstr ""
26810
26811 #. type: textblock
26812 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:198
26813 #: ../src/guestfs-actions.pod:890 ../src/guestfs-actions.pod:1214
26814 #: ../src/guestfs-actions.pod:1266 ../src/guestfs-actions.pod:1344
26815 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1466
26816 #: ../src/guestfs-actions.pod:1519 ../src/guestfs-actions.pod:3288
26817 #: ../src/guestfs-actions.pod:4878 ../src/guestfs-actions.pod:5272
26818 #: ../src/guestfs-actions.pod:5581 ../src/guestfs-actions.pod:5798
26819 #: ../src/guestfs-actions.pod:7766
26820 msgid ""
26821 "You may supply a list of optional arguments to this call.  Use zero or more "
26822 "of the following pairs of parameters, and terminate the list with C<-1> on "
26823 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
26824 msgstr ""
26825
26826 #. type: verbatim
26827 #: ../src/guestfs-actions.pod:53
26828 #, no-wrap
26829 msgid ""
26830 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
26831 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
26832 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
26833 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
26834 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
26835 " GUESTFS_ADD_DOMAIN_READONLYDISK, const char *readonlydisk,\n"
26836 "\n"
26837 msgstr ""
26838
26839 #. type: textblock
26840 #: ../src/guestfs-actions.pod:60
26841 msgid ""
26842 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
26843 "It works by connecting to libvirt, requesting the domain and domain XML from "
26844 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
26845 "one."
26846 msgstr ""
26847
26848 #. type: textblock
26849 #: ../src/guestfs-actions.pod:141
26850 msgid ""
26851 "The other optional parameters are passed directly through to "
26852 "C<guestfs_add_drive_opts>."
26853 msgstr ""
26854
26855 #. type: textblock
26856 #: ../src/guestfs-actions.pod:144 ../src/guestfs-actions.pod:403
26857 #: ../src/guestfs-actions.pod:573 ../src/guestfs-actions.pod:751
26858 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
26859 #: ../src/guestfs-actions.pod:819 ../src/guestfs-actions.pod:1797
26860 #: ../src/guestfs-actions.pod:2153 ../src/guestfs-actions.pod:2356
26861 #: ../src/guestfs-actions.pod:2467 ../src/guestfs-actions.pod:2518
26862 #: ../src/guestfs-actions.pod:2570 ../src/guestfs-actions.pod:2584
26863 #: ../src/guestfs-actions.pod:2607 ../src/guestfs-actions.pod:2922
26864 #: ../src/guestfs-actions.pod:3406 ../src/guestfs-actions.pod:3424
26865 #: ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5974
26866 #: ../src/guestfs-actions.pod:6212 ../src/guestfs-actions.pod:6406
26867 #: ../src/guestfs-actions.pod:6432 ../src/guestfs-actions.pod:7954
26868 #: ../src/guestfs-actions.pod:8380 ../src/guestfs-actions.pod:8393
26869 #: ../src/guestfs-actions.pod:8406
26870 msgid "On error this function returns -1."
26871 msgstr ""
26872
26873 #. type: textblock
26874 #: ../src/guestfs-actions.pod:146
26875 msgid "(Added in 1.7.4)"
26876 msgstr "(Додано у 1.7.4)"
26877
26878 #. type: =head2
26879 #: ../src/guestfs-actions.pod:148
26880 msgid "guestfs_add_domain_va"
26881 msgstr ""
26882
26883 #. type: verbatim
26884 #: ../src/guestfs-actions.pod:150
26885 #, no-wrap
26886 msgid ""
26887 " int\n"
26888 " guestfs_add_domain_va (guestfs_h *g,\n"
26889 "                        const char *dom,\n"
26890 "                        va_list args);\n"
26891 "\n"
26892 msgstr ""
26893
26894 #. type: textblock
26895 #: ../src/guestfs-actions.pod:155
26896 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
26897 msgstr ""
26898
26899 #. type: textblock
26900 #: ../src/guestfs-actions.pod:157 ../src/guestfs-actions.pod:168
26901 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:278
26902 #: ../src/guestfs-actions.pod:929 ../src/guestfs-actions.pod:940
26903 #: ../src/guestfs-actions.pod:1242 ../src/guestfs-actions.pod:1255
26904 #: ../src/guestfs-actions.pod:1301 ../src/guestfs-actions.pod:1314
26905 #: ../src/guestfs-actions.pod:1391 ../src/guestfs-actions.pod:1403
26906 #: ../src/guestfs-actions.pod:1444 ../src/guestfs-actions.pod:1456
26907 #: ../src/guestfs-actions.pod:1497 ../src/guestfs-actions.pod:1509
26908 #: ../src/guestfs-actions.pod:1555 ../src/guestfs-actions.pod:1567
26909 #: ../src/guestfs-actions.pod:3372 ../src/guestfs-actions.pod:3384
26910 #: ../src/guestfs-actions.pod:4955 ../src/guestfs-actions.pod:4967
26911 #: ../src/guestfs-actions.pod:5337 ../src/guestfs-actions.pod:5349
26912 #: ../src/guestfs-actions.pod:5609 ../src/guestfs-actions.pod:5621
26913 #: ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5858
26914 #: ../src/guestfs-actions.pod:7868 ../src/guestfs-actions.pod:7879
26915 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
26916 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
26917
26918 #. type: =head2
26919 #: ../src/guestfs-actions.pod:159
26920 msgid "guestfs_add_domain_argv"
26921 msgstr "guestfs_add_domain_argv"
26922
26923 #. type: verbatim
26924 #: ../src/guestfs-actions.pod:161
26925 #, no-wrap
26926 msgid ""
26927 " int\n"
26928 " guestfs_add_domain_argv (guestfs_h *g,\n"
26929 "                          const char *dom,\n"
26930 "                          const struct guestfs_add_domain_argv *optargs);\n"
26931 "\n"
26932 msgstr ""
26933
26934 #. type: textblock
26935 #: ../src/guestfs-actions.pod:166
26936 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
26937 msgstr ""
26938
26939 #. type: =head2
26940 #: ../src/guestfs-actions.pod:170
26941 msgid "guestfs_add_drive"
26942 msgstr ""
26943
26944 #. type: verbatim
26945 #: ../src/guestfs-actions.pod:172
26946 #, no-wrap
26947 msgid ""
26948 " int\n"
26949 " guestfs_add_drive (guestfs_h *g,\n"
26950 "                    const char *filename);\n"
26951 "\n"
26952 msgstr ""
26953
26954 #. type: textblock
26955 #: ../src/guestfs-actions.pod:176
26956 msgid ""
26957 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
26958 "optional parameters, so the disk is added writable, with the format being "
26959 "detected automatically."
26960 msgstr ""
26961
26962 #. type: textblock
26963 #: ../src/guestfs-actions.pod:180
26964 msgid ""
26965 "Automatic detection of the format opens you up to a potential security hole "
26966 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
26967 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
26968 "you should think about replacing calls to this function with calls to "
26969 "C<guestfs_add_drive_opts>, and specifying the format."
26970 msgstr ""
26971
26972 #. type: =head2
26973 #: ../src/guestfs-actions.pod:191
26974 msgid "guestfs_add_drive_opts"
26975 msgstr ""
26976
26977 #. type: verbatim
26978 #: ../src/guestfs-actions.pod:193
26979 #, no-wrap
26980 msgid ""
26981 " int\n"
26982 " guestfs_add_drive_opts (guestfs_h *g,\n"
26983 "                         const char *filename,\n"
26984 "                         ...);\n"
26985 "\n"
26986 msgstr ""
26987
26988 #. type: verbatim
26989 #: ../src/guestfs-actions.pod:203
26990 #, no-wrap
26991 msgid ""
26992 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
26993 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
26994 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
26995 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
26996 "\n"
26997 msgstr ""
26998
26999 #. type: textblock
27000 #: ../src/guestfs-actions.pod:233
27001 msgid ""
27002 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
27003 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
27004 "Possible formats include C<raw> and C<qcow2>."
27005 msgstr ""
27006
27007 #. type: textblock
27008 #: ../src/guestfs-actions.pod:244
27009 msgid ""
27010 "This rarely-used option lets you emulate the behaviour of the deprecated "
27011 "C<guestfs_add_drive_with_if> call (q.v.)"
27012 msgstr ""
27013
27014 #. type: textblock
27015 #: ../src/guestfs-actions.pod:256
27016 msgid "(Added in 1.5.23)"
27017 msgstr "(Додано у 1.5.23)"
27018
27019 #. type: =head2
27020 #: ../src/guestfs-actions.pod:258
27021 msgid "guestfs_add_drive_opts_va"
27022 msgstr ""
27023
27024 #. type: verbatim
27025 #: ../src/guestfs-actions.pod:260
27026 #, no-wrap
27027 msgid ""
27028 " int\n"
27029 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
27030 "                            const char *filename,\n"
27031 "                            va_list args);\n"
27032 "\n"
27033 msgstr ""
27034
27035 #. type: textblock
27036 #: ../src/guestfs-actions.pod:265
27037 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
27038 msgstr ""
27039
27040 #. type: =head2
27041 #: ../src/guestfs-actions.pod:269
27042 msgid "guestfs_add_drive_opts_argv"
27043 msgstr ""
27044
27045 #. type: verbatim
27046 #: ../src/guestfs-actions.pod:271
27047 #, no-wrap
27048 msgid ""
27049 " int\n"
27050 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
27051 "                              const char *filename,\n"
27052 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
27053 "\n"
27054 msgstr ""
27055
27056 #. type: textblock
27057 #: ../src/guestfs-actions.pod:276
27058 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
27059 msgstr ""
27060
27061 #. type: =head2
27062 #: ../src/guestfs-actions.pod:280
27063 msgid "guestfs_add_drive_ro"
27064 msgstr ""
27065
27066 #. type: verbatim
27067 #: ../src/guestfs-actions.pod:282
27068 #, no-wrap
27069 msgid ""
27070 " int\n"
27071 " guestfs_add_drive_ro (guestfs_h *g,\n"
27072 "                       const char *filename);\n"
27073 "\n"
27074 msgstr ""
27075
27076 #. type: textblock
27077 #: ../src/guestfs-actions.pod:286
27078 msgid ""
27079 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
27080 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
27081 "disk is added read-only, with the format being detected automatically."
27082 msgstr ""
27083
27084 #. type: textblock
27085 #: ../src/guestfs-actions.pod:293
27086 msgid "(Added in 1.0.38)"
27087 msgstr "(Додано у 1.0.38)"
27088
27089 #. type: =head2
27090 #: ../src/guestfs-actions.pod:295
27091 msgid "guestfs_add_drive_ro_with_if"
27092 msgstr ""
27093
27094 #. type: verbatim
27095 #: ../src/guestfs-actions.pod:297
27096 #, no-wrap
27097 msgid ""
27098 " int\n"
27099 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
27100 "                               const char *filename,\n"
27101 "                               const char *iface);\n"
27102 "\n"
27103 msgstr ""
27104
27105 #. type: textblock
27106 #: ../src/guestfs-actions.pod:309
27107 msgid ""
27108 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
27109 "QEMU interface emulation to use at run time."
27110 msgstr ""
27111
27112 #. type: textblock
27113 #: ../src/guestfs-actions.pod:314 ../src/guestfs-actions.pod:335
27114 #: ../src/guestfs-actions.pod:2881
27115 msgid "(Added in 1.0.84)"
27116 msgstr "(Додано у 1.0.84)"
27117
27118 #. type: =head2
27119 #: ../src/guestfs-actions.pod:316
27120 msgid "guestfs_add_drive_with_if"
27121 msgstr ""
27122
27123 #. type: verbatim
27124 #: ../src/guestfs-actions.pod:318
27125 #, no-wrap
27126 msgid ""
27127 " int\n"
27128 " guestfs_add_drive_with_if (guestfs_h *g,\n"
27129 "                            const char *filename,\n"
27130 "                            const char *iface);\n"
27131 "\n"
27132 msgstr ""
27133
27134 #. type: textblock
27135 #: ../src/guestfs-actions.pod:330
27136 msgid ""
27137 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
27138 "QEMU interface emulation to use at run time."
27139 msgstr ""
27140
27141 #. type: =head2
27142 #: ../src/guestfs-actions.pod:337
27143 msgid "guestfs_aug_clear"
27144 msgstr ""
27145
27146 #. type: verbatim
27147 #: ../src/guestfs-actions.pod:339
27148 #, no-wrap
27149 msgid ""
27150 " int\n"
27151 " guestfs_aug_clear (guestfs_h *g,\n"
27152 "                    const char *augpath);\n"
27153 "\n"
27154 msgstr ""
27155
27156 #. type: textblock
27157 #: ../src/guestfs-actions.pod:348 ../src/guestfs-actions.pod:2609
27158 msgid "(Added in 1.3.4)"
27159 msgstr "(Додано у 1.3.4)"
27160
27161 #. type: =head2
27162 #: ../src/guestfs-actions.pod:350
27163 msgid "guestfs_aug_close"
27164 msgstr ""
27165
27166 #. type: verbatim
27167 #: ../src/guestfs-actions.pod:352
27168 #, no-wrap
27169 msgid ""
27170 " int\n"
27171 " guestfs_aug_close (guestfs_h *g);\n"
27172 "\n"
27173 msgstr ""
27174
27175 #. type: textblock
27176 #: ../src/guestfs-actions.pod:355
27177 msgid ""
27178 "Close the current Augeas handle and free up any resources used by it.  After "
27179 "calling this, you have to call C<guestfs_aug_init> again before you can use "
27180 "any other Augeas functions."
27181 msgstr ""
27182
27183 #. type: textblock
27184 #: ../src/guestfs-actions.pod:362 ../src/guestfs-actions.pod:387
27185 #: ../src/guestfs-actions.pod:405 ../src/guestfs-actions.pod:419
27186 #: ../src/guestfs-actions.pod:482 ../src/guestfs-actions.pod:502
27187 #: ../src/guestfs-actions.pod:516 ../src/guestfs-actions.pod:547
27188 #: ../src/guestfs-actions.pod:561 ../src/guestfs-actions.pod:575
27189 #: ../src/guestfs-actions.pod:589 ../src/guestfs-actions.pod:607
27190 #: ../src/guestfs-actions.pod:6483
27191 msgid "(Added in 0.7)"
27192 msgstr "(Додано у 0.7)"
27193
27194 #. type: =head2
27195 #: ../src/guestfs-actions.pod:364
27196 msgid "guestfs_aug_defnode"
27197 msgstr ""
27198
27199 #. type: verbatim
27200 #: ../src/guestfs-actions.pod:366
27201 #, no-wrap
27202 msgid ""
27203 " struct guestfs_int_bool *\n"
27204 " guestfs_aug_defnode (guestfs_h *g,\n"
27205 "                      const char *name,\n"
27206 "                      const char *expr,\n"
27207 "                      const char *val);\n"
27208 "\n"
27209 msgstr ""
27210
27211 #. type: textblock
27212 #: ../src/guestfs-actions.pod:375
27213 msgid ""
27214 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
27215 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
27216 "containing that single node."
27217 msgstr ""
27218
27219 #. type: textblock
27220 #: ../src/guestfs-actions.pod:383
27221 msgid ""
27222 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
27223 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
27224 msgstr ""
27225
27226 #. type: =head2
27227 #: ../src/guestfs-actions.pod:389
27228 msgid "guestfs_aug_defvar"
27229 msgstr ""
27230
27231 #. type: verbatim
27232 #: ../src/guestfs-actions.pod:391
27233 #, no-wrap
27234 msgid ""
27235 " int\n"
27236 " guestfs_aug_defvar (guestfs_h *g,\n"
27237 "                     const char *name,\n"
27238 "                     const char *expr);\n"
27239 "\n"
27240 msgstr ""
27241
27242 #. type: =head2
27243 #: ../src/guestfs-actions.pod:407
27244 msgid "guestfs_aug_get"
27245 msgstr "guestfs_aug_get"
27246
27247 #. type: verbatim
27248 #: ../src/guestfs-actions.pod:409
27249 #, no-wrap
27250 msgid ""
27251 " char *\n"
27252 " guestfs_aug_get (guestfs_h *g,\n"
27253 "                  const char *augpath);\n"
27254 "\n"
27255 msgstr ""
27256 " char *\n"
27257 " guestfs_aug_get (guestfs_h *g,\n"
27258 "                  const char *augpath);\n"
27259 "\n"
27260
27261 #. type: textblock
27262 #: ../src/guestfs-actions.pod:416 ../src/guestfs-actions.pod:980
27263 #: ../src/guestfs-actions.pod:998 ../src/guestfs-actions.pod:1058
27264 #: ../src/guestfs-actions.pod:1074 ../src/guestfs-actions.pod:1177
27265 #: ../src/guestfs-actions.pod:1666 ../src/guestfs-actions.pod:1683
27266 #: ../src/guestfs-actions.pod:1702 ../src/guestfs-actions.pod:1836
27267 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2136
27268 #: ../src/guestfs-actions.pod:2299 ../src/guestfs-actions.pod:2316
27269 #: ../src/guestfs-actions.pod:2383 ../src/guestfs-actions.pod:2426
27270 #: ../src/guestfs-actions.pod:2447 ../src/guestfs-actions.pod:2632
27271 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:3050
27272 #: ../src/guestfs-actions.pod:3152 ../src/guestfs-actions.pod:3256
27273 #: ../src/guestfs-actions.pod:3275 ../src/guestfs-actions.pod:3490
27274 #: ../src/guestfs-actions.pod:3518 ../src/guestfs-actions.pod:3539
27275 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3636
27276 #: ../src/guestfs-actions.pod:3656 ../src/guestfs-actions.pod:3676
27277 #: ../src/guestfs-actions.pod:4316 ../src/guestfs-actions.pod:4663
27278 #: ../src/guestfs-actions.pod:4830 ../src/guestfs-actions.pod:5099
27279 #: ../src/guestfs-actions.pod:5992 ../src/guestfs-actions.pod:6193
27280 #: ../src/guestfs-actions.pod:6381 ../src/guestfs-actions.pod:6559
27281 #: ../src/guestfs-actions.pod:6608 ../src/guestfs-actions.pod:7268
27282 #: ../src/guestfs-actions.pod:7284 ../src/guestfs-actions.pod:7308
27283 #: ../src/guestfs-actions.pod:7332 ../src/guestfs-actions.pod:8128
27284 #: ../src/guestfs-actions.pod:8147 ../src/guestfs-actions.pod:8165
27285 #: ../src/guestfs-actions.pod:8339 ../src/guestfs-actions.pod:8653
27286 msgid ""
27287 "This function returns a string, or NULL on error.  I<The caller must free "
27288 "the returned string after use>."
27289 msgstr ""
27290
27291 #. type: =head2
27292 #: ../src/guestfs-actions.pod:421
27293 msgid "guestfs_aug_init"
27294 msgstr "guestfs_aug_init"
27295
27296 #. type: verbatim
27297 #: ../src/guestfs-actions.pod:423
27298 #, no-wrap
27299 msgid ""
27300 " int\n"
27301 " guestfs_aug_init (guestfs_h *g,\n"
27302 "                   const char *root,\n"
27303 "                   int flags);\n"
27304 "\n"
27305 msgstr ""
27306 " int\n"
27307 " guestfs_aug_init (guestfs_h *g,\n"
27308 "                   const char *root,\n"
27309 "                   int flags);\n"
27310 "\n"
27311
27312 #. type: textblock
27313 #: ../src/guestfs-actions.pod:432
27314 msgid "You must call this before using any other C<guestfs_aug_*> commands."
27315 msgstr ""
27316
27317 #. type: textblock
27318 #: ../src/guestfs-actions.pod:457
27319 msgid ""
27320 "This option is only useful when debugging Augeas lenses.  Use of this option "
27321 "may require additional memory for the libguestfs appliance.  You may need to "
27322 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
27323 "C<guestfs_set_memsize>."
27324 msgstr ""
27325
27326 #. type: textblock
27327 #: ../src/guestfs-actions.pod:472
27328 msgid "Do not load the tree in C<guestfs_aug_init>."
27329 msgstr ""
27330
27331 #. type: textblock
27332 #: ../src/guestfs-actions.pod:476
27333 msgid "To close the handle, you can call C<guestfs_aug_close>."
27334 msgstr ""
27335
27336 #. type: =head2
27337 #: ../src/guestfs-actions.pod:484
27338 msgid "guestfs_aug_insert"
27339 msgstr "guestfs_aug_insert"
27340
27341 #. type: verbatim
27342 #: ../src/guestfs-actions.pod:486
27343 #, no-wrap
27344 msgid ""
27345 " int\n"
27346 " guestfs_aug_insert (guestfs_h *g,\n"
27347 "                     const char *augpath,\n"
27348 "                     const char *label,\n"
27349 "                     int before);\n"
27350 "\n"
27351 msgstr ""
27352 " int\n"
27353 " guestfs_aug_insert (guestfs_h *g,\n"
27354 "                     const char *augpath,\n"
27355 "                     const char *label,\n"
27356 "                     int before);\n"
27357 "\n"
27358
27359 #. type: =head2
27360 #: ../src/guestfs-actions.pod:504
27361 msgid "guestfs_aug_load"
27362 msgstr "guestfs_aug_load"
27363
27364 #. type: verbatim
27365 #: ../src/guestfs-actions.pod:506
27366 #, no-wrap
27367 msgid ""
27368 " int\n"
27369 " guestfs_aug_load (guestfs_h *g);\n"
27370 "\n"
27371 msgstr ""
27372 " int\n"
27373 " guestfs_aug_load (guestfs_h *g);\n"
27374 "\n"
27375
27376 #. type: =head2
27377 #: ../src/guestfs-actions.pod:518
27378 msgid "guestfs_aug_ls"
27379 msgstr "guestfs_aug_ls"
27380
27381 #. type: verbatim
27382 #: ../src/guestfs-actions.pod:520
27383 #, no-wrap
27384 msgid ""
27385 " char **\n"
27386 " guestfs_aug_ls (guestfs_h *g,\n"
27387 "                 const char *augpath);\n"
27388 "\n"
27389 msgstr ""
27390 " char **\n"
27391 " guestfs_aug_ls (guestfs_h *g,\n"
27392 "                 const char *augpath);\n"
27393 "\n"
27394
27395 #. type: textblock
27396 #: ../src/guestfs-actions.pod:524
27397 msgid ""
27398 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
27399 "sorting the resulting nodes into alphabetical order."
27400 msgstr ""
27401
27402 #. type: textblock
27403 #: ../src/guestfs-actions.pod:527 ../src/guestfs-actions.pod:543
27404 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:1196
27405 #: ../src/guestfs-actions.pod:1851 ../src/guestfs-actions.pod:1870
27406 #: ../src/guestfs-actions.pod:1973 ../src/guestfs-actions.pod:1992
27407 #: ../src/guestfs-actions.pod:2238 ../src/guestfs-actions.pod:2704
27408 #: ../src/guestfs-actions.pod:2720 ../src/guestfs-actions.pod:2739
27409 #: ../src/guestfs-actions.pod:2804 ../src/guestfs-actions.pod:2828
27410 #: ../src/guestfs-actions.pod:2899 ../src/guestfs-actions.pod:2948
27411 #: ../src/guestfs-actions.pod:3217 ../src/guestfs-actions.pod:3592
27412 #: ../src/guestfs-actions.pod:3872 ../src/guestfs-actions.pod:4186
27413 #: ../src/guestfs-actions.pod:4203 ../src/guestfs-actions.pod:4223
27414 #: ../src/guestfs-actions.pod:4278 ../src/guestfs-actions.pod:4298
27415 #: ../src/guestfs-actions.pod:4403 ../src/guestfs-actions.pod:4802
27416 #: ../src/guestfs-actions.pod:5718 ../src/guestfs-actions.pod:6353
27417 #: ../src/guestfs-actions.pod:6479 ../src/guestfs-actions.pod:6593
27418 #: ../src/guestfs-actions.pod:7348 ../src/guestfs-actions.pod:7409
27419 #: ../src/guestfs-actions.pod:7464 ../src/guestfs-actions.pod:7610
27420 #: ../src/guestfs-actions.pod:7634 ../src/guestfs-actions.pod:8232
27421 #: ../src/guestfs-actions.pod:8252 ../src/guestfs-actions.pod:8299
27422 #: ../src/guestfs-actions.pod:8493 ../src/guestfs-actions.pod:8512
27423 #: ../src/guestfs-actions.pod:8603 ../src/guestfs-actions.pod:8622
27424 #: ../src/guestfs-actions.pod:8668 ../src/guestfs-actions.pod:8687
27425 msgid ""
27426 "This function returns a NULL-terminated array of strings (like L<environ(3)"
27427 ">), or NULL if there was an error.  I<The caller must free the strings and "
27428 "the array after use>."
27429 msgstr ""
27430
27431 #. type: textblock
27432 #: ../src/guestfs-actions.pod:531 ../src/guestfs-actions.pod:1121
27433 #: ../src/guestfs-actions.pod:1139 ../src/guestfs-actions.pod:1908
27434 #: ../src/guestfs-actions.pod:3950 ../src/guestfs-actions.pod:3981
27435 #: ../src/guestfs-actions.pod:4646 ../src/guestfs-actions.pod:4693
27436 #: ../src/guestfs-actions.pod:5039 ../src/guestfs-actions.pod:5072
27437 #: ../src/guestfs-actions.pod:5235 ../src/guestfs-actions.pod:5722
27438 #: ../src/guestfs-actions.pod:6294 ../src/guestfs-actions.pod:6691
27439 #: ../src/guestfs-actions.pod:6705 ../src/guestfs-actions.pod:6717
27440 #: ../src/guestfs-actions.pod:7195 ../src/guestfs-actions.pod:7970
27441 #: ../src/guestfs-actions.pod:7983 ../src/guestfs-actions.pod:8216
27442 #: ../src/guestfs-actions.pod:8481
27443 msgid "(Added in 0.8)"
27444 msgstr "(Додано у 0.8)"
27445
27446 #. type: =head2
27447 #: ../src/guestfs-actions.pod:533
27448 msgid "guestfs_aug_match"
27449 msgstr "guestfs_aug_match"
27450
27451 #. type: verbatim
27452 #: ../src/guestfs-actions.pod:535
27453 #, no-wrap
27454 msgid ""
27455 " char **\n"
27456 " guestfs_aug_match (guestfs_h *g,\n"
27457 "                    const char *augpath);\n"
27458 "\n"
27459 msgstr ""
27460 " char **\n"
27461 " guestfs_aug_match (guestfs_h *g,\n"
27462 "                    const char *augpath);\n"
27463 "\n"
27464
27465 #. type: =head2
27466 #: ../src/guestfs-actions.pod:549
27467 msgid "guestfs_aug_mv"
27468 msgstr "guestfs_aug_mv"
27469
27470 #. type: verbatim
27471 #: ../src/guestfs-actions.pod:551
27472 #, no-wrap
27473 msgid ""
27474 " int\n"
27475 " guestfs_aug_mv (guestfs_h *g,\n"
27476 "                 const char *src,\n"
27477 "                 const char *dest);\n"
27478 "\n"
27479 msgstr ""
27480 " int\n"
27481 " guestfs_aug_mv (guestfs_h *g,\n"
27482 "                 const char *src,\n"
27483 "                 const char *dest);\n"
27484 "\n"
27485
27486 #. type: =head2
27487 #: ../src/guestfs-actions.pod:563
27488 msgid "guestfs_aug_rm"
27489 msgstr "guestfs_aug_rm"
27490
27491 #. type: verbatim
27492 #: ../src/guestfs-actions.pod:565
27493 #, no-wrap
27494 msgid ""
27495 " int\n"
27496 " guestfs_aug_rm (guestfs_h *g,\n"
27497 "                 const char *augpath);\n"
27498 "\n"
27499 msgstr ""
27500 " int\n"
27501 " guestfs_aug_rm (guestfs_h *g,\n"
27502 "                 const char *augpath);\n"
27503 "\n"
27504
27505 #. type: =head2
27506 #: ../src/guestfs-actions.pod:577
27507 msgid "guestfs_aug_save"
27508 msgstr "guestfs_aug_save"
27509
27510 #. type: verbatim
27511 #: ../src/guestfs-actions.pod:579
27512 #, no-wrap
27513 msgid ""
27514 " int\n"
27515 " guestfs_aug_save (guestfs_h *g);\n"
27516 "\n"
27517 msgstr ""
27518 " int\n"
27519 " guestfs_aug_save (guestfs_h *g);\n"
27520 "\n"
27521
27522 #. type: textblock
27523 #: ../src/guestfs-actions.pod:584
27524 msgid ""
27525 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
27526 "are saved."
27527 msgstr ""
27528
27529 #. type: =head2
27530 #: ../src/guestfs-actions.pod:591
27531 msgid "guestfs_aug_set"
27532 msgstr "guestfs_aug_set"
27533
27534 #. type: verbatim
27535 #: ../src/guestfs-actions.pod:593
27536 #, no-wrap
27537 msgid ""
27538 " int\n"
27539 " guestfs_aug_set (guestfs_h *g,\n"
27540 "                  const char *augpath,\n"
27541 "                  const char *val);\n"
27542 "\n"
27543 msgstr ""
27544 " int\n"
27545 " guestfs_aug_set (guestfs_h *g,\n"
27546 "                  const char *augpath,\n"
27547 "                  const char *val);\n"
27548 "\n"
27549
27550 #. type: textblock
27551 #: ../src/guestfs-actions.pod:600
27552 msgid ""
27553 "In the Augeas API, it is possible to clear a node by setting the value to "
27554 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
27555 "this call.  Instead you must use the C<guestfs_aug_clear> call."
27556 msgstr ""
27557
27558 #. type: =head2
27559 #: ../src/guestfs-actions.pod:609
27560 msgid "guestfs_available"
27561 msgstr "guestfs_available"
27562
27563 #. type: verbatim
27564 #: ../src/guestfs-actions.pod:611
27565 #, no-wrap
27566 msgid ""
27567 " int\n"
27568 " guestfs_available (guestfs_h *g,\n"
27569 "                    char *const *groups);\n"
27570 "\n"
27571 msgstr ""
27572 " int\n"
27573 " guestfs_available (guestfs_h *g,\n"
27574 "                    char *const *groups);\n"
27575 "\n"
27576
27577 #. type: textblock
27578 #: ../src/guestfs-actions.pod:619
27579 msgid ""
27580 "The libguestfs groups, and the functions that those groups correspond to, "
27581 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
27582 "runtime by calling C<guestfs_available_all_groups>."
27583 msgstr ""
27584
27585 #. type: textblock
27586 #: ../src/guestfs-actions.pod:643
27587 msgid "You must call C<guestfs_launch> before calling this function."
27588 msgstr ""
27589
27590 #. type: textblock
27591 #: ../src/guestfs-actions.pod:665
27592 msgid ""
27593 "This call was added in version C<1.0.80>.  In previous versions of "
27594 "libguestfs all you could do would be to speculatively execute a command to "
27595 "find out if the daemon implemented it.  See also C<guestfs_version>."
27596 msgstr ""
27597
27598 #. type: textblock
27599 #: ../src/guestfs-actions.pod:674 ../src/guestfs-actions.pod:1653
27600 msgid "(Added in 1.0.80)"
27601 msgstr "(Додано у 1.0.80)"
27602
27603 #. type: =head2
27604 #: ../src/guestfs-actions.pod:676
27605 msgid "guestfs_available_all_groups"
27606 msgstr "guestfs_available_all_groups"
27607
27608 #. type: verbatim
27609 #: ../src/guestfs-actions.pod:678
27610 #, no-wrap
27611 msgid ""
27612 " char **\n"
27613 " guestfs_available_all_groups (guestfs_h *g);\n"
27614 "\n"
27615 msgstr ""
27616 " char **\n"
27617 " guestfs_available_all_groups (guestfs_h *g);\n"
27618 "\n"
27619
27620 #. type: textblock
27621 #: ../src/guestfs-actions.pod:681
27622 msgid ""
27623 "This command returns a list of all optional groups that this daemon knows "
27624 "about.  Note this returns both supported and unsupported groups.  To find "
27625 "out which ones the daemon can actually support you have to call "
27626 "C<guestfs_available> on each member of the returned list."
27627 msgstr ""
27628
27629 #. type: textblock
27630 #: ../src/guestfs-actions.pod:687
27631 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
27632 msgstr ""
27633
27634 #. type: textblock
27635 #: ../src/guestfs-actions.pod:693
27636 msgid "(Added in 1.3.15)"
27637 msgstr "(Додано у 1.3.15)"
27638
27639 #. type: =head2
27640 #: ../src/guestfs-actions.pod:695
27641 msgid "guestfs_base64_in"
27642 msgstr "guestfs_base64_in"
27643
27644 #. type: verbatim
27645 #: ../src/guestfs-actions.pod:697
27646 #, no-wrap
27647 msgid ""
27648 " int\n"
27649 " guestfs_base64_in (guestfs_h *g,\n"
27650 "                    const char *base64file,\n"
27651 "                    const char *filename);\n"
27652 "\n"
27653 msgstr ""
27654 " int\n"
27655 " guestfs_base64_in (guestfs_h *g,\n"
27656 "                    const char *base64file,\n"
27657 "                    const char *filename);\n"
27658 "\n"
27659
27660 #. type: textblock
27661 #: ../src/guestfs-actions.pod:707 ../src/guestfs-actions.pod:721
27662 msgid "(Added in 1.3.5)"
27663 msgstr "(Додано у 1.3.5)"
27664
27665 #. type: =head2
27666 #: ../src/guestfs-actions.pod:709
27667 msgid "guestfs_base64_out"
27668 msgstr "guestfs_base64_out"
27669
27670 #. type: verbatim
27671 #: ../src/guestfs-actions.pod:711
27672 #, no-wrap
27673 msgid ""
27674 " int\n"
27675 " guestfs_base64_out (guestfs_h *g,\n"
27676 "                     const char *filename,\n"
27677 "                     const char *base64file);\n"
27678 "\n"
27679 msgstr ""
27680 " int\n"
27681 " guestfs_base64_out (guestfs_h *g,\n"
27682 "                     const char *filename,\n"
27683 "                     const char *base64file);\n"
27684 "\n"
27685
27686 #. type: =head2
27687 #: ../src/guestfs-actions.pod:723
27688 msgid "guestfs_blockdev_flushbufs"
27689 msgstr "guestfs_blockdev_flushbufs"
27690
27691 #. type: verbatim
27692 #: ../src/guestfs-actions.pod:725
27693 #, no-wrap
27694 msgid ""
27695 " int\n"
27696 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
27697 "                             const char *device);\n"
27698 "\n"
27699 msgstr ""
27700 " int\n"
27701 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
27702 "                             const char *device);\n"
27703 "\n"
27704
27705 #. type: textblock
27706 #: ../src/guestfs-actions.pod:736 ../src/guestfs-actions.pod:753
27707 #: ../src/guestfs-actions.pod:768 ../src/guestfs-actions.pod:784
27708 #: ../src/guestfs-actions.pod:802 ../src/guestfs-actions.pod:821
27709 #: ../src/guestfs-actions.pod:835 ../src/guestfs-actions.pod:853
27710 #: ../src/guestfs-actions.pod:867 ../src/guestfs-actions.pod:881
27711 msgid "(Added in 0.9.3)"
27712 msgstr "(Додано у 0.9.3)"
27713
27714 #. type: =head2
27715 #: ../src/guestfs-actions.pod:738
27716 msgid "guestfs_blockdev_getbsz"
27717 msgstr "guestfs_blockdev_getbsz"
27718
27719 #. type: verbatim
27720 #: ../src/guestfs-actions.pod:740
27721 #, no-wrap
27722 msgid ""
27723 " int\n"
27724 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27725 "                          const char *device);\n"
27726 "\n"
27727 msgstr ""
27728 " int\n"
27729 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
27730 "                          const char *device);\n"
27731 "\n"
27732
27733 #. type: =head2
27734 #: ../src/guestfs-actions.pod:755
27735 msgid "guestfs_blockdev_getro"
27736 msgstr "guestfs_blockdev_getro"
27737
27738 #. type: verbatim
27739 #: ../src/guestfs-actions.pod:757
27740 #, no-wrap
27741 msgid ""
27742 " int\n"
27743 " guestfs_blockdev_getro (guestfs_h *g,\n"
27744 "                         const char *device);\n"
27745 "\n"
27746 msgstr ""
27747 " int\n"
27748 " guestfs_blockdev_getro (guestfs_h *g,\n"
27749 "                         const char *device);\n"
27750 "\n"
27751
27752 #. type: textblock
27753 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1891
27754 #: ../src/guestfs-actions.pod:1906 ../src/guestfs-actions.pod:2395
27755 #: ../src/guestfs-actions.pod:2406 ../src/guestfs-actions.pod:2478
27756 #: ../src/guestfs-actions.pod:2504 ../src/guestfs-actions.pod:2544
27757 #: ../src/guestfs-actions.pod:2559 ../src/guestfs-actions.pod:2595
27758 #: ../src/guestfs-actions.pod:2618 ../src/guestfs-actions.pod:3693
27759 #: ../src/guestfs-actions.pod:3709 ../src/guestfs-actions.pod:3727
27760 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3903
27761 #: ../src/guestfs-actions.pod:3918 ../src/guestfs-actions.pod:3932
27762 #: ../src/guestfs-actions.pod:3948 ../src/guestfs-actions.pod:3963
27763 #: ../src/guestfs-actions.pod:3979 ../src/guestfs-actions.pod:3993
27764 #: ../src/guestfs-actions.pod:4006 ../src/guestfs-actions.pod:4020
27765 #: ../src/guestfs-actions.pod:4035 ../src/guestfs-actions.pod:4050
27766 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4077
27767 #: ../src/guestfs-actions.pod:5956
27768 msgid "This function returns a C truth value on success or -1 on error."
27769 msgstr ""
27770
27771 #. type: =head2
27772 #: ../src/guestfs-actions.pod:770
27773 msgid "guestfs_blockdev_getsize64"
27774 msgstr "guestfs_blockdev_getsize64"
27775
27776 #. type: verbatim
27777 #: ../src/guestfs-actions.pod:772
27778 #, no-wrap
27779 msgid ""
27780 " int64_t\n"
27781 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
27782 "                             const char *device);\n"
27783 "\n"
27784 msgstr ""
27785 " int64_t\n"
27786 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
27787 "                             const char *device);\n"
27788 "\n"
27789
27790 #. type: textblock
27791 #: ../src/guestfs-actions.pod:778
27792 msgid "See also C<guestfs_blockdev_getsz>."
27793 msgstr ""
27794
27795 #. type: =head2
27796 #: ../src/guestfs-actions.pod:786
27797 msgid "guestfs_blockdev_getss"
27798 msgstr "guestfs_blockdev_getss"
27799
27800 #. type: verbatim
27801 #: ../src/guestfs-actions.pod:788
27802 #, no-wrap
27803 msgid ""
27804 " int\n"
27805 " guestfs_blockdev_getss (guestfs_h *g,\n"
27806 "                         const char *device);\n"
27807 "\n"
27808 msgstr ""
27809 " int\n"
27810 " guestfs_blockdev_getss (guestfs_h *g,\n"
27811 "                         const char *device);\n"
27812 "\n"
27813
27814 #. type: textblock
27815 #: ../src/guestfs-actions.pod:795
27816 msgid ""
27817 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
27818 "that)."
27819 msgstr ""
27820
27821 #. type: =head2
27822 #: ../src/guestfs-actions.pod:804
27823 msgid "guestfs_blockdev_getsz"
27824 msgstr "guestfs_blockdev_getsz"
27825
27826 #. type: verbatim
27827 #: ../src/guestfs-actions.pod:806
27828 #, no-wrap
27829 msgid ""
27830 " int64_t\n"
27831 " guestfs_blockdev_getsz (guestfs_h *g,\n"
27832 "                         const char *device);\n"
27833 "\n"
27834 msgstr ""
27835 " int64_t\n"
27836 " guestfs_blockdev_getsz (guestfs_h *g,\n"
27837 "                         const char *device);\n"
27838 "\n"
27839
27840 #. type: textblock
27841 #: ../src/guestfs-actions.pod:813
27842 msgid ""
27843 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
27844 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
27845 msgstr ""
27846
27847 #. type: =head2
27848 #: ../src/guestfs-actions.pod:823
27849 msgid "guestfs_blockdev_rereadpt"
27850 msgstr "guestfs_blockdev_rereadpt"
27851
27852 #. type: verbatim
27853 #: ../src/guestfs-actions.pod:825
27854 #, no-wrap
27855 msgid ""
27856 " int\n"
27857 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
27858 "                            const char *device);\n"
27859 "\n"
27860 msgstr ""
27861 " int\n"
27862 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
27863 "                            const char *device);\n"
27864 "\n"
27865
27866 #. type: =head2
27867 #: ../src/guestfs-actions.pod:837
27868 msgid "guestfs_blockdev_setbsz"
27869 msgstr "guestfs_blockdev_setbsz"
27870
27871 #. type: verbatim
27872 #: ../src/guestfs-actions.pod:839
27873 #, no-wrap
27874 msgid ""
27875 " int\n"
27876 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
27877 "                          const char *device,\n"
27878 "                          int blocksize);\n"
27879 "\n"
27880 msgstr ""
27881 " int\n"
27882 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
27883 "                          const char *device,\n"
27884 "                          int blocksize);\n"
27885 "\n"
27886
27887 #. type: =head2
27888 #: ../src/guestfs-actions.pod:855
27889 msgid "guestfs_blockdev_setro"
27890 msgstr "guestfs_blockdev_setro"
27891
27892 #. type: verbatim
27893 #: ../src/guestfs-actions.pod:857
27894 #, no-wrap
27895 msgid ""
27896 " int\n"
27897 " guestfs_blockdev_setro (guestfs_h *g,\n"
27898 "                         const char *device);\n"
27899 "\n"
27900 msgstr ""
27901 " int\n"
27902 " guestfs_blockdev_setro (guestfs_h *g,\n"
27903 "                         const char *device);\n"
27904 "\n"
27905
27906 #. type: =head2
27907 #: ../src/guestfs-actions.pod:869
27908 msgid "guestfs_blockdev_setrw"
27909 msgstr "guestfs_blockdev_setrw"
27910
27911 #. type: verbatim
27912 #: ../src/guestfs-actions.pod:871
27913 #, no-wrap
27914 msgid ""
27915 " int\n"
27916 " guestfs_blockdev_setrw (guestfs_h *g,\n"
27917 "                         const char *device);\n"
27918 "\n"
27919 msgstr ""
27920 " int\n"
27921 " guestfs_blockdev_setrw (guestfs_h *g,\n"
27922 "                         const char *device);\n"
27923 "\n"
27924
27925 #. type: =head2
27926 #: ../src/guestfs-actions.pod:883
27927 msgid "guestfs_btrfs_filesystem_resize"
27928 msgstr "guestfs_btrfs_filesystem_resize"
27929
27930 #. type: verbatim
27931 #: ../src/guestfs-actions.pod:885
27932 #, no-wrap
27933 msgid ""
27934 " int\n"
27935 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
27936 "                                  const char *mountpoint,\n"
27937 "                                  ...);\n"
27938 "\n"
27939 msgstr ""
27940 " int\n"
27941 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
27942 "                                  const char *mountpoint,\n"
27943 "                                  ...);\n"
27944 "\n"
27945
27946 #. type: verbatim
27947 #: ../src/guestfs-actions.pod:895
27948 #, no-wrap
27949 msgid ""
27950 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27951 "\n"
27952 msgstr ""
27953 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
27954 "\n"
27955
27956 #. type: textblock
27957 #: ../src/guestfs-actions.pod:918
27958 msgid "(Added in 1.11.17)"
27959 msgstr "(Додано у 1.11.17)"
27960
27961 #. type: =head2
27962 #: ../src/guestfs-actions.pod:920
27963 msgid "guestfs_btrfs_filesystem_resize_va"
27964 msgstr "guestfs_btrfs_filesystem_resize_va"
27965
27966 #. type: verbatim
27967 #: ../src/guestfs-actions.pod:922
27968 #, no-wrap
27969 msgid ""
27970 " int\n"
27971 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27972 "                                     const char *mountpoint,\n"
27973 "                                     va_list args);\n"
27974 "\n"
27975 msgstr ""
27976 " int\n"
27977 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
27978 "                                     const char *mountpoint,\n"
27979 "                                     va_list args);\n"
27980 "\n"
27981
27982 #. type: textblock
27983 #: ../src/guestfs-actions.pod:927
27984 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
27985 msgstr ""
27986
27987 #. type: =head2
27988 #: ../src/guestfs-actions.pod:931
27989 msgid "guestfs_btrfs_filesystem_resize_argv"
27990 msgstr "guestfs_btrfs_filesystem_resize_argv"
27991
27992 #. type: verbatim
27993 #: ../src/guestfs-actions.pod:933
27994 #, no-wrap
27995 msgid ""
27996 " int\n"
27997 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
27998 "                                       const char *mountpoint,\n"
27999 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
28000 "\n"
28001 msgstr ""
28002 " int\n"
28003 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
28004 "                                       const char *mountpoint,\n"
28005 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
28006 "\n"
28007
28008 #. type: textblock
28009 #: ../src/guestfs-actions.pod:938
28010 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
28011 msgstr ""
28012
28013 #. type: =head2
28014 #: ../src/guestfs-actions.pod:942
28015 msgid "guestfs_case_sensitive_path"
28016 msgstr ""
28017
28018 #. type: verbatim
28019 #: ../src/guestfs-actions.pod:944
28020 #, no-wrap
28021 msgid ""
28022 " char *\n"
28023 " guestfs_case_sensitive_path (guestfs_h *g,\n"
28024 "                              const char *path);\n"
28025 "\n"
28026 msgstr ""
28027
28028 #. type: textblock
28029 #: ../src/guestfs-actions.pod:970
28030 msgid ""
28031 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
28032 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
28033 "how the directories were originally created under Windows)."
28034 msgstr ""
28035
28036 #. type: textblock
28037 #: ../src/guestfs-actions.pod:978
28038 msgid "See also C<guestfs_realpath>."
28039 msgstr ""
28040
28041 #. type: textblock
28042 #: ../src/guestfs-actions.pod:983 ../src/guestfs-actions.pod:8150
28043 msgid "(Added in 1.0.75)"
28044 msgstr "(Додано у 1.0.75)"
28045
28046 #. type: =head2
28047 #: ../src/guestfs-actions.pod:985
28048 msgid "guestfs_cat"
28049 msgstr ""
28050
28051 #. type: verbatim
28052 #: ../src/guestfs-actions.pod:987
28053 #, no-wrap
28054 msgid ""
28055 " char *\n"
28056 " guestfs_cat (guestfs_h *g,\n"
28057 "              const char *path);\n"
28058 "\n"
28059 msgstr ""
28060
28061 #. type: textblock
28062 #: ../src/guestfs-actions.pod:993
28063 msgid ""
28064 "Note that this function cannot correctly handle binary files (specifically, "
28065 "files containing C<\\0> character which is treated as end of string).  For "
28066 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
28067 "functions which have a more complex interface."
28068 msgstr ""
28069
28070 #. type: textblock
28071 #: ../src/guestfs-actions.pod:1004 ../src/guestfs-actions.pod:4207
28072 #: ../src/guestfs-actions.pod:4302 ../src/guestfs-actions.pod:4319
28073 #: ../src/guestfs-actions.pod:4407 ../src/guestfs-actions.pod:4806
28074 #: ../src/guestfs-actions.pod:4820 ../src/guestfs-actions.pod:6357
28075 #: ../src/guestfs-actions.pod:6371 ../src/guestfs-actions.pod:8303
28076 #: ../src/guestfs-actions.pod:8317
28077 msgid "(Added in 0.4)"
28078 msgstr "(Додано у 0.4)"
28079
28080 #. type: =head2
28081 #: ../src/guestfs-actions.pod:1006
28082 msgid "guestfs_checksum"
28083 msgstr ""
28084
28085 #. type: verbatim
28086 #: ../src/guestfs-actions.pod:1008
28087 #, no-wrap
28088 msgid ""
28089 " char *\n"
28090 " guestfs_checksum (guestfs_h *g,\n"
28091 "                   const char *csumtype,\n"
28092 "                   const char *path);\n"
28093 "\n"
28094 msgstr ""
28095
28096 #. type: textblock
28097 #: ../src/guestfs-actions.pod:1054
28098 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
28099 msgstr ""
28100
28101 #. type: textblock
28102 #: ../src/guestfs-actions.pod:1056
28103 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
28104 msgstr ""
28105
28106 #. type: textblock
28107 #: ../src/guestfs-actions.pod:1061 ../src/guestfs-actions.pod:1728
28108 #: ../src/guestfs-actions.pod:2586 ../src/guestfs-actions.pod:3905
28109 #: ../src/guestfs-actions.pod:3934 ../src/guestfs-actions.pod:3995
28110 #: ../src/guestfs-actions.pod:4022 ../src/guestfs-actions.pod:8006
28111 msgid "(Added in 1.0.2)"
28112 msgstr "(Додано у 1.0.2)"
28113
28114 #. type: =head2
28115 #: ../src/guestfs-actions.pod:1063
28116 msgid "guestfs_checksum_device"
28117 msgstr ""
28118
28119 #. type: verbatim
28120 #: ../src/guestfs-actions.pod:1065
28121 #, no-wrap
28122 msgid ""
28123 " char *\n"
28124 " guestfs_checksum_device (guestfs_h *g,\n"
28125 "                          const char *csumtype,\n"
28126 "                          const char *device);\n"
28127 "\n"
28128 msgstr ""
28129
28130 #. type: textblock
28131 #: ../src/guestfs-actions.pod:1070
28132 msgid ""
28133 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
28134 "device named C<device>.  For the types of checksums supported see the "
28135 "C<guestfs_checksum> command."
28136 msgstr ""
28137
28138 #. type: textblock
28139 #: ../src/guestfs-actions.pod:1077 ../src/guestfs-actions.pod:5789
28140 #: ../src/guestfs-actions.pod:5924 ../src/guestfs-actions.pod:5958
28141 #: ../src/guestfs-actions.pod:5976 ../src/guestfs-actions.pod:6158
28142 #: ../src/guestfs-actions.pod:7915 ../src/guestfs-actions.pod:7929
28143 #: ../src/guestfs-actions.pod:8329
28144 msgid "(Added in 1.3.2)"
28145 msgstr "(Додано у 1.3.2)"
28146
28147 #. type: =head2
28148 #: ../src/guestfs-actions.pod:1079
28149 msgid "guestfs_checksums_out"
28150 msgstr ""
28151
28152 #. type: verbatim
28153 #: ../src/guestfs-actions.pod:1081
28154 #, no-wrap
28155 msgid ""
28156 " int\n"
28157 " guestfs_checksums_out (guestfs_h *g,\n"
28158 "                        const char *csumtype,\n"
28159 "                        const char *directory,\n"
28160 "                        const char *sumsfile);\n"
28161 "\n"
28162 msgstr ""
28163
28164 #. type: textblock
28165 #: ../src/guestfs-actions.pod:1101
28166 msgid "(Added in 1.3.7)"
28167 msgstr "(Додано у 1.3.7)"
28168
28169 #. type: =head2
28170 #: ../src/guestfs-actions.pod:1103
28171 msgid "guestfs_chmod"
28172 msgstr ""
28173
28174 #. type: verbatim
28175 #: ../src/guestfs-actions.pod:1105
28176 #, no-wrap
28177 msgid ""
28178 " int\n"
28179 " guestfs_chmod (guestfs_h *g,\n"
28180 "                int mode,\n"
28181 "                const char *path);\n"
28182 "\n"
28183 msgstr ""
28184
28185 #. type: =head2
28186 #: ../src/guestfs-actions.pod:1123
28187 msgid "guestfs_chown"
28188 msgstr ""
28189
28190 #. type: verbatim
28191 #: ../src/guestfs-actions.pod:1125
28192 #, no-wrap
28193 msgid ""
28194 " int\n"
28195 " guestfs_chown (guestfs_h *g,\n"
28196 "                int owner,\n"
28197 "                int group,\n"
28198 "                const char *path);\n"
28199 "\n"
28200 msgstr ""
28201
28202 #. type: =head2
28203 #: ../src/guestfs-actions.pod:1141
28204 msgid "guestfs_command"
28205 msgstr ""
28206
28207 #. type: verbatim
28208 #: ../src/guestfs-actions.pod:1143
28209 #, no-wrap
28210 msgid ""
28211 " char *\n"
28212 " guestfs_command (guestfs_h *g,\n"
28213 "                  char *const *arguments);\n"
28214 "\n"
28215 msgstr ""
28216
28217 #. type: textblock
28218 #: ../src/guestfs-actions.pod:1152
28219 msgid ""
28220 "The single parameter is an argv-style list of arguments.  The first element "
28221 "is the name of the program to run.  Subsequent elements are parameters.  The "
28222 "list must be non-empty (ie. must contain a program name).  Note that the "
28223 "command runs directly, and is I<not> invoked via the shell (see "
28224 "C<guestfs_sh>)."
28225 msgstr ""
28226
28227 #. type: textblock
28228 #: ../src/guestfs-actions.pod:1183 ../src/guestfs-actions.pod:1203
28229 #: ../src/guestfs-actions.pod:2027
28230 msgid "(Added in 0.9.1)"
28231 msgstr "(Додано у 0.9.1)"
28232
28233 #. type: =head2
28234 #: ../src/guestfs-actions.pod:1185
28235 msgid "guestfs_command_lines"
28236 msgstr ""
28237
28238 #. type: verbatim
28239 #: ../src/guestfs-actions.pod:1187
28240 #, no-wrap
28241 msgid ""
28242 " char **\n"
28243 " guestfs_command_lines (guestfs_h *g,\n"
28244 "                        char *const *arguments);\n"
28245 "\n"
28246 msgstr ""
28247
28248 #. type: textblock
28249 #: ../src/guestfs-actions.pod:1191
28250 msgid ""
28251 "This is the same as C<guestfs_command>, but splits the result into a list of "
28252 "lines."
28253 msgstr ""
28254
28255 #. type: textblock
28256 #: ../src/guestfs-actions.pod:1194
28257 msgid "See also: C<guestfs_sh_lines>"
28258 msgstr ""
28259
28260 #. type: =head2
28261 #: ../src/guestfs-actions.pod:1205
28262 msgid "guestfs_compress_device_out"
28263 msgstr ""
28264
28265 #. type: verbatim
28266 #: ../src/guestfs-actions.pod:1207
28267 #, no-wrap
28268 msgid ""
28269 " int\n"
28270 " guestfs_compress_device_out (guestfs_h *g,\n"
28271 "                              const char *ctype,\n"
28272 "                              const char *device,\n"
28273 "                              const char *zdevice,\n"
28274 "                              ...);\n"
28275 "\n"
28276 msgstr ""
28277
28278 #. type: verbatim
28279 #: ../src/guestfs-actions.pod:1219
28280 #, no-wrap
28281 msgid ""
28282 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
28283 "\n"
28284 msgstr ""
28285
28286 #. type: textblock
28287 #: ../src/guestfs-actions.pod:1224
28288 msgid ""
28289 "The C<ctype> and optional C<level> parameters have the same meaning as in "
28290 "C<guestfs_compress_out>."
28291 msgstr ""
28292
28293 #. type: textblock
28294 #: ../src/guestfs-actions.pod:1229 ../src/guestfs-actions.pod:1288
28295 #: ../src/guestfs-actions.pod:2572 ../src/guestfs-actions.pod:7074
28296 msgid "(Added in 1.13.15)"
28297 msgstr ""
28298
28299 #. type: =head2
28300 #: ../src/guestfs-actions.pod:1231
28301 msgid "guestfs_compress_device_out_va"
28302 msgstr ""
28303
28304 #. type: verbatim
28305 #: ../src/guestfs-actions.pod:1233
28306 #, no-wrap
28307 msgid ""
28308 " int\n"
28309 " guestfs_compress_device_out_va (guestfs_h *g,\n"
28310 "                                 const char *ctype,\n"
28311 "                                 const char *device,\n"
28312 "                                 const char *zdevice,\n"
28313 "                                 va_list args);\n"
28314 "\n"
28315 msgstr ""
28316
28317 #. type: textblock
28318 #: ../src/guestfs-actions.pod:1240
28319 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
28320 msgstr ""
28321
28322 #. type: =head2
28323 #: ../src/guestfs-actions.pod:1244
28324 msgid "guestfs_compress_device_out_argv"
28325 msgstr ""
28326
28327 #. type: verbatim
28328 #: ../src/guestfs-actions.pod:1246
28329 #, no-wrap
28330 msgid ""
28331 " int\n"
28332 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
28333 "                                   const char *ctype,\n"
28334 "                                   const char *device,\n"
28335 "                                   const char *zdevice,\n"
28336 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
28337 "\n"
28338 msgstr ""
28339
28340 #. type: textblock
28341 #: ../src/guestfs-actions.pod:1253
28342 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
28343 msgstr ""
28344
28345 #. type: =head2
28346 #: ../src/guestfs-actions.pod:1257
28347 msgid "guestfs_compress_out"
28348 msgstr ""
28349
28350 #. type: verbatim
28351 #: ../src/guestfs-actions.pod:1259
28352 #, no-wrap
28353 msgid ""
28354 " int\n"
28355 " guestfs_compress_out (guestfs_h *g,\n"
28356 "                       const char *ctype,\n"
28357 "                       const char *file,\n"
28358 "                       const char *zfile,\n"
28359 "                       ...);\n"
28360 "\n"
28361 msgstr ""
28362
28363 #. type: verbatim
28364 #: ../src/guestfs-actions.pod:1271
28365 #, no-wrap
28366 msgid ""
28367 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
28368 "\n"
28369 msgstr ""
28370
28371 #. type: =head2
28372 #: ../src/guestfs-actions.pod:1290
28373 msgid "guestfs_compress_out_va"
28374 msgstr ""
28375
28376 #. type: verbatim
28377 #: ../src/guestfs-actions.pod:1292
28378 #, no-wrap
28379 msgid ""
28380 " int\n"
28381 " guestfs_compress_out_va (guestfs_h *g,\n"
28382 "                          const char *ctype,\n"
28383 "                          const char *file,\n"
28384 "                          const char *zfile,\n"
28385 "                          va_list args);\n"
28386 "\n"
28387 msgstr ""
28388
28389 #. type: textblock
28390 #: ../src/guestfs-actions.pod:1299
28391 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
28392 msgstr ""
28393
28394 #. type: =head2
28395 #: ../src/guestfs-actions.pod:1303
28396 msgid "guestfs_compress_out_argv"
28397 msgstr ""
28398
28399 #. type: verbatim
28400 #: ../src/guestfs-actions.pod:1305
28401 #, no-wrap
28402 msgid ""
28403 " int\n"
28404 " guestfs_compress_out_argv (guestfs_h *g,\n"
28405 "                            const char *ctype,\n"
28406 "                            const char *file,\n"
28407 "                            const char *zfile,\n"
28408 "                            const struct guestfs_compress_out_argv *optargs);\n"
28409 "\n"
28410 msgstr ""
28411
28412 #. type: textblock
28413 #: ../src/guestfs-actions.pod:1312
28414 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
28415 msgstr ""
28416
28417 #. type: =head2
28418 #: ../src/guestfs-actions.pod:1316
28419 msgid "guestfs_config"
28420 msgstr ""
28421
28422 #. type: verbatim
28423 #: ../src/guestfs-actions.pod:1318
28424 #, no-wrap
28425 msgid ""
28426 " int\n"
28427 " guestfs_config (guestfs_h *g,\n"
28428 "                 const char *qemuparam,\n"
28429 "                 const char *qemuvalue);\n"
28430 "\n"
28431 msgstr ""
28432
28433 #. type: =head2
28434 #: ../src/guestfs-actions.pod:1336
28435 msgid "guestfs_copy_device_to_device"
28436 msgstr ""
28437
28438 #. type: verbatim
28439 #: ../src/guestfs-actions.pod:1338
28440 #, no-wrap
28441 msgid ""
28442 " int\n"
28443 " guestfs_copy_device_to_device (guestfs_h *g,\n"
28444 "                                const char *src,\n"
28445 "                                const char *dest,\n"
28446 "                                ...);\n"
28447 "\n"
28448 msgstr ""
28449
28450 #. type: verbatim
28451 #: ../src/guestfs-actions.pod:1349
28452 #, no-wrap
28453 msgid ""
28454 " GUESTFS_COPY_DEVICE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
28455 " GUESTFS_COPY_DEVICE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
28456 " GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, int64_t size,\n"
28457 "\n"
28458 msgstr ""
28459
28460 #. type: textblock
28461 #: ../src/guestfs-actions.pod:1353
28462 msgid ""
28463 "The four calls C<guestfs_copy_device_to_device>, "
28464 "C<guestfs_copy_device_to_file>, C<guestfs_copy_file_to_device>, and "
28465 "C<guestfs_copy_file_to_file> let you copy from a source (device|file) to a "
28466 "destination (device|file)."
28467 msgstr ""
28468
28469 #. type: textblock
28470 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1427
28471 #: ../src/guestfs-actions.pod:1480 ../src/guestfs-actions.pod:1538
28472 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:1723
28473 #: ../src/guestfs-actions.pod:1754 ../src/guestfs-actions.pod:1799
28474 #: ../src/guestfs-actions.pod:2176 ../src/guestfs-actions.pod:2198
28475 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:8001
28476 #: ../src/guestfs-actions.pod:8035 ../src/guestfs-actions.pod:8542
28477 #: ../src/guestfs-actions.pod:8565
28478 msgid ""
28479 "This long-running command can generate progress notification messages so "
28480 "that the caller can display a progress bar or indicator.  To receive these "
28481 "messages, the caller must register a progress event callback.  See L<guestfs"
28482 "(3)/GUESTFS_EVENT_PROGRESS>."
28483 msgstr ""
28484
28485 #. type: textblock
28486 #: ../src/guestfs-actions.pod:1379 ../src/guestfs-actions.pod:1432
28487 #: ../src/guestfs-actions.pod:1485 ../src/guestfs-actions.pod:1543
28488 #: ../src/guestfs-actions.pod:6214
28489 #, fuzzy
28490 #| msgid "(Added in 1.3.5)"
28491 msgid "(Added in 1.13.25)"
28492 msgstr "(Додано у 1.3.5)"
28493
28494 #. type: =head2
28495 #: ../src/guestfs-actions.pod:1381
28496 msgid "guestfs_copy_device_to_device_va"
28497 msgstr ""
28498
28499 #. type: verbatim
28500 #: ../src/guestfs-actions.pod:1383
28501 #, no-wrap
28502 msgid ""
28503 " int\n"
28504 " guestfs_copy_device_to_device_va (guestfs_h *g,\n"
28505 "                                   const char *src,\n"
28506 "                                   const char *dest,\n"
28507 "                                   va_list args);\n"
28508 "\n"
28509 msgstr ""
28510
28511 #. type: textblock
28512 #: ../src/guestfs-actions.pod:1389
28513 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_device>."
28514 msgstr ""
28515
28516 #. type: =head2
28517 #: ../src/guestfs-actions.pod:1393
28518 msgid "guestfs_copy_device_to_device_argv"
28519 msgstr ""
28520
28521 #. type: verbatim
28522 #: ../src/guestfs-actions.pod:1395
28523 #, no-wrap
28524 msgid ""
28525 " int\n"
28526 " guestfs_copy_device_to_device_argv (guestfs_h *g,\n"
28527 "                                     const char *src,\n"
28528 "                                     const char *dest,\n"
28529 "                                     const struct guestfs_copy_device_to_device_argv *optargs);\n"
28530 "\n"
28531 msgstr ""
28532
28533 #. type: textblock
28534 #: ../src/guestfs-actions.pod:1401
28535 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_device>."
28536 msgstr ""
28537
28538 #. type: =head2
28539 #: ../src/guestfs-actions.pod:1405
28540 msgid "guestfs_copy_device_to_file"
28541 msgstr ""
28542
28543 #. type: verbatim
28544 #: ../src/guestfs-actions.pod:1407
28545 #, no-wrap
28546 msgid ""
28547 " int\n"
28548 " guestfs_copy_device_to_file (guestfs_h *g,\n"
28549 "                              const char *src,\n"
28550 "                              const char *dest,\n"
28551 "                              ...);\n"
28552 "\n"
28553 msgstr ""
28554
28555 #. type: verbatim
28556 #: ../src/guestfs-actions.pod:1418
28557 #, no-wrap
28558 msgid ""
28559 " GUESTFS_COPY_DEVICE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
28560 " GUESTFS_COPY_DEVICE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
28561 " GUESTFS_COPY_DEVICE_TO_FILE_SIZE, int64_t size,\n"
28562 "\n"
28563 msgstr ""
28564
28565 #. type: textblock
28566 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:1475
28567 #: ../src/guestfs-actions.pod:1528
28568 msgid ""
28569 "See C<guestfs_copy_device_to_device> for a general overview of this call."
28570 msgstr ""
28571
28572 #. type: =head2
28573 #: ../src/guestfs-actions.pod:1434
28574 msgid "guestfs_copy_device_to_file_va"
28575 msgstr ""
28576
28577 #. type: verbatim
28578 #: ../src/guestfs-actions.pod:1436
28579 #, no-wrap
28580 msgid ""
28581 " int\n"
28582 " guestfs_copy_device_to_file_va (guestfs_h *g,\n"
28583 "                                 const char *src,\n"
28584 "                                 const char *dest,\n"
28585 "                                 va_list args);\n"
28586 "\n"
28587 msgstr ""
28588
28589 #. type: textblock
28590 #: ../src/guestfs-actions.pod:1442
28591 msgid "This is the \"va_list variant\" of L</guestfs_copy_device_to_file>."
28592 msgstr ""
28593
28594 #. type: =head2
28595 #: ../src/guestfs-actions.pod:1446
28596 msgid "guestfs_copy_device_to_file_argv"
28597 msgstr ""
28598
28599 #. type: verbatim
28600 #: ../src/guestfs-actions.pod:1448
28601 #, no-wrap
28602 msgid ""
28603 " int\n"
28604 " guestfs_copy_device_to_file_argv (guestfs_h *g,\n"
28605 "                                   const char *src,\n"
28606 "                                   const char *dest,\n"
28607 "                                   const struct guestfs_copy_device_to_file_argv *optargs);\n"
28608 "\n"
28609 msgstr ""
28610
28611 #. type: textblock
28612 #: ../src/guestfs-actions.pod:1454
28613 msgid "This is the \"argv variant\" of L</guestfs_copy_device_to_file>."
28614 msgstr ""
28615
28616 #. type: =head2
28617 #: ../src/guestfs-actions.pod:1458
28618 msgid "guestfs_copy_file_to_device"
28619 msgstr ""
28620
28621 #. type: verbatim
28622 #: ../src/guestfs-actions.pod:1460
28623 #, no-wrap
28624 msgid ""
28625 " int\n"
28626 " guestfs_copy_file_to_device (guestfs_h *g,\n"
28627 "                              const char *src,\n"
28628 "                              const char *dest,\n"
28629 "                              ...);\n"
28630 "\n"
28631 msgstr ""
28632
28633 #. type: verbatim
28634 #: ../src/guestfs-actions.pod:1471
28635 #, no-wrap
28636 msgid ""
28637 " GUESTFS_COPY_FILE_TO_DEVICE_SRCOFFSET, int64_t srcoffset,\n"
28638 " GUESTFS_COPY_FILE_TO_DEVICE_DESTOFFSET, int64_t destoffset,\n"
28639 " GUESTFS_COPY_FILE_TO_DEVICE_SIZE, int64_t size,\n"
28640 "\n"
28641 msgstr ""
28642
28643 #. type: =head2
28644 #: ../src/guestfs-actions.pod:1487
28645 msgid "guestfs_copy_file_to_device_va"
28646 msgstr ""
28647
28648 #. type: verbatim
28649 #: ../src/guestfs-actions.pod:1489
28650 #, no-wrap
28651 msgid ""
28652 " int\n"
28653 " guestfs_copy_file_to_device_va (guestfs_h *g,\n"
28654 "                                 const char *src,\n"
28655 "                                 const char *dest,\n"
28656 "                                 va_list args);\n"
28657 "\n"
28658 msgstr ""
28659
28660 #. type: textblock
28661 #: ../src/guestfs-actions.pod:1495
28662 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_device>."
28663 msgstr ""
28664
28665 #. type: =head2
28666 #: ../src/guestfs-actions.pod:1499
28667 msgid "guestfs_copy_file_to_device_argv"
28668 msgstr ""
28669
28670 #. type: verbatim
28671 #: ../src/guestfs-actions.pod:1501
28672 #, no-wrap
28673 msgid ""
28674 " int\n"
28675 " guestfs_copy_file_to_device_argv (guestfs_h *g,\n"
28676 "                                   const char *src,\n"
28677 "                                   const char *dest,\n"
28678 "                                   const struct guestfs_copy_file_to_device_argv *optargs);\n"
28679 "\n"
28680 msgstr ""
28681
28682 #. type: textblock
28683 #: ../src/guestfs-actions.pod:1507
28684 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_device>."
28685 msgstr ""
28686
28687 #. type: =head2
28688 #: ../src/guestfs-actions.pod:1511
28689 msgid "guestfs_copy_file_to_file"
28690 msgstr ""
28691
28692 #. type: verbatim
28693 #: ../src/guestfs-actions.pod:1513
28694 #, no-wrap
28695 msgid ""
28696 " int\n"
28697 " guestfs_copy_file_to_file (guestfs_h *g,\n"
28698 "                            const char *src,\n"
28699 "                            const char *dest,\n"
28700 "                            ...);\n"
28701 "\n"
28702 msgstr ""
28703
28704 #. type: verbatim
28705 #: ../src/guestfs-actions.pod:1524
28706 #, no-wrap
28707 msgid ""
28708 " GUESTFS_COPY_FILE_TO_FILE_SRCOFFSET, int64_t srcoffset,\n"
28709 " GUESTFS_COPY_FILE_TO_FILE_DESTOFFSET, int64_t destoffset,\n"
28710 " GUESTFS_COPY_FILE_TO_FILE_SIZE, int64_t size,\n"
28711 "\n"
28712 msgstr ""
28713
28714 #. type: textblock
28715 #: ../src/guestfs-actions.pod:1531
28716 msgid ""
28717 "This is B<not> the function you want for copying files.  This is for copying "
28718 "blocks within existing files.  See C<guestfs_cp>, C<guestfs_cp_a> and "
28719 "C<guestfs_mv> for general file copying and moving functions."
28720 msgstr ""
28721
28722 #. type: =head2
28723 #: ../src/guestfs-actions.pod:1545
28724 msgid "guestfs_copy_file_to_file_va"
28725 msgstr ""
28726
28727 #. type: verbatim
28728 #: ../src/guestfs-actions.pod:1547
28729 #, no-wrap
28730 msgid ""
28731 " int\n"
28732 " guestfs_copy_file_to_file_va (guestfs_h *g,\n"
28733 "                               const char *src,\n"
28734 "                               const char *dest,\n"
28735 "                               va_list args);\n"
28736 "\n"
28737 msgstr ""
28738
28739 #. type: textblock
28740 #: ../src/guestfs-actions.pod:1553
28741 msgid "This is the \"va_list variant\" of L</guestfs_copy_file_to_file>."
28742 msgstr ""
28743
28744 #. type: =head2
28745 #: ../src/guestfs-actions.pod:1557
28746 msgid "guestfs_copy_file_to_file_argv"
28747 msgstr ""
28748
28749 #. type: verbatim
28750 #: ../src/guestfs-actions.pod:1559
28751 #, no-wrap
28752 msgid ""
28753 " int\n"
28754 " guestfs_copy_file_to_file_argv (guestfs_h *g,\n"
28755 "                                 const char *src,\n"
28756 "                                 const char *dest,\n"
28757 "                                 const struct guestfs_copy_file_to_file_argv *optargs);\n"
28758 "\n"
28759 msgstr ""
28760
28761 #. type: textblock
28762 #: ../src/guestfs-actions.pod:1565
28763 msgid "This is the \"argv variant\" of L</guestfs_copy_file_to_file>."
28764 msgstr ""
28765
28766 #. type: =head2
28767 #: ../src/guestfs-actions.pod:1569
28768 msgid "guestfs_copy_size"
28769 msgstr ""
28770
28771 #. type: verbatim
28772 #: ../src/guestfs-actions.pod:1571
28773 #, no-wrap
28774 msgid ""
28775 " int\n"
28776 " guestfs_copy_size (guestfs_h *g,\n"
28777 "                    const char *src,\n"
28778 "                    const char *dest,\n"
28779 "                    int64_t size);\n"
28780 "\n"
28781 msgstr ""
28782
28783 #. type: textblock
28784 #: ../src/guestfs-actions.pod:1577 ../src/guestfs-actions.pod:1634
28785 msgid ""
28786 "I<This function is deprecated.> In new code, use the L</"
28787 "guestfs_copy_device_to_device> call instead."
28788 msgstr ""
28789
28790 #. type: textblock
28791 #: ../src/guestfs-actions.pod:1597 ../src/guestfs-actions.pod:4833
28792 #: ../src/guestfs-actions.pod:6384 ../src/guestfs-actions.pod:8236
28793 #: ../src/guestfs-actions.pod:8256 ../src/guestfs-actions.pod:8342
28794 msgid "(Added in 1.0.87)"
28795 msgstr "(Додано у 1.0.87)"
28796
28797 #. type: =head2
28798 #: ../src/guestfs-actions.pod:1599
28799 msgid "guestfs_cp"
28800 msgstr ""
28801
28802 #. type: verbatim
28803 #: ../src/guestfs-actions.pod:1601
28804 #, no-wrap
28805 msgid ""
28806 " int\n"
28807 " guestfs_cp (guestfs_h *g,\n"
28808 "             const char *src,\n"
28809 "             const char *dest);\n"
28810 "\n"
28811 msgstr ""
28812
28813 #. type: textblock
28814 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:1625
28815 #: ../src/guestfs-actions.pod:1705 ../src/guestfs-actions.pod:1779
28816 #: ../src/guestfs-actions.pod:1893 ../src/guestfs-actions.pod:5736
28817 #: ../src/guestfs-actions.pod:6228
28818 msgid "(Added in 1.0.18)"
28819 msgstr "(Додано у 1.0.18)"
28820
28821 #. type: =head2
28822 #: ../src/guestfs-actions.pod:1613
28823 msgid "guestfs_cp_a"
28824 msgstr ""
28825
28826 #. type: verbatim
28827 #: ../src/guestfs-actions.pod:1615
28828 #, no-wrap
28829 msgid ""
28830 " int\n"
28831 " guestfs_cp_a (guestfs_h *g,\n"
28832 "               const char *src,\n"
28833 "               const char *dest);\n"
28834 "\n"
28835 msgstr ""
28836
28837 #. type: =head2
28838 #: ../src/guestfs-actions.pod:1627
28839 msgid "guestfs_dd"
28840 msgstr ""
28841
28842 #. type: verbatim
28843 #: ../src/guestfs-actions.pod:1629
28844 #, no-wrap
28845 msgid ""
28846 " int\n"
28847 " guestfs_dd (guestfs_h *g,\n"
28848 "             const char *src,\n"
28849 "             const char *dest);\n"
28850 "\n"
28851 msgstr ""
28852
28853 #. type: textblock
28854 #: ../src/guestfs-actions.pod:1646
28855 msgid ""
28856 "If the destination is a device, it must be as large or larger than the "
28857 "source file or device, otherwise the copy will fail.  This command cannot do "
28858 "partial copies (see C<guestfs_copy_device_to_device>)."
28859 msgstr ""
28860
28861 #. type: =head2
28862 #: ../src/guestfs-actions.pod:1655
28863 msgid "guestfs_df"
28864 msgstr ""
28865
28866 #. type: verbatim
28867 #: ../src/guestfs-actions.pod:1657
28868 #, no-wrap
28869 msgid ""
28870 " char *\n"
28871 " guestfs_df (guestfs_h *g);\n"
28872 "\n"
28873 msgstr ""
28874
28875 #. type: textblock
28876 #: ../src/guestfs-actions.pod:1662 ../src/guestfs-actions.pod:1679
28877 msgid ""
28878 "This command is mostly useful for interactive sessions.  It is I<not> "
28879 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
28880 "from programs."
28881 msgstr ""
28882
28883 #. type: textblock
28884 #: ../src/guestfs-actions.pod:1669 ../src/guestfs-actions.pod:1686
28885 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:2811
28886 #: ../src/guestfs-actions.pod:2835 ../src/guestfs-actions.pod:2903
28887 #: ../src/guestfs-actions.pod:5102 ../src/guestfs-actions.pod:5636
28888 #: ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:7641
28889 #: ../src/guestfs-actions.pod:8382 ../src/guestfs-actions.pod:8395
28890 #: ../src/guestfs-actions.pod:8408
28891 msgid "(Added in 1.0.54)"
28892 msgstr "(Додано у 1.0.54)"
28893
28894 #. type: =head2
28895 #: ../src/guestfs-actions.pod:1671
28896 msgid "guestfs_df_h"
28897 msgstr ""
28898
28899 #. type: verbatim
28900 #: ../src/guestfs-actions.pod:1673
28901 #, no-wrap
28902 msgid ""
28903 " char *\n"
28904 " guestfs_df_h (guestfs_h *g);\n"
28905 "\n"
28906 msgstr ""
28907
28908 #. type: =head2
28909 #: ../src/guestfs-actions.pod:1688
28910 msgid "guestfs_dmesg"
28911 msgstr ""
28912
28913 #. type: verbatim
28914 #: ../src/guestfs-actions.pod:1690
28915 #, no-wrap
28916 msgid ""
28917 " char *\n"
28918 " guestfs_dmesg (guestfs_h *g);\n"
28919 "\n"
28920 msgstr ""
28921
28922 #. type: textblock
28923 #: ../src/guestfs-actions.pod:1697
28924 msgid ""
28925 "Another way to get the same information is to enable verbose messages with "
28926 "C<guestfs_set_verbose> or by setting the environment variable "
28927 "C<LIBGUESTFS_DEBUG=1> before running the program."
28928 msgstr ""
28929
28930 #. type: =head2
28931 #: ../src/guestfs-actions.pod:1707
28932 msgid "guestfs_download"
28933 msgstr ""
28934
28935 #. type: verbatim
28936 #: ../src/guestfs-actions.pod:1709
28937 #, no-wrap
28938 msgid ""
28939 " int\n"
28940 " guestfs_download (guestfs_h *g,\n"
28941 "                   const char *remotefilename,\n"
28942 "                   const char *filename);\n"
28943 "\n"
28944 msgstr ""
28945
28946 #. type: textblock
28947 #: ../src/guestfs-actions.pod:1719
28948 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
28949 msgstr ""
28950
28951 #. type: =head2
28952 #: ../src/guestfs-actions.pod:1730
28953 msgid "guestfs_download_offset"
28954 msgstr ""
28955
28956 #. type: verbatim
28957 #: ../src/guestfs-actions.pod:1732
28958 #, no-wrap
28959 msgid ""
28960 " int\n"
28961 " guestfs_download_offset (guestfs_h *g,\n"
28962 "                          const char *remotefilename,\n"
28963 "                          const char *filename,\n"
28964 "                          int64_t offset,\n"
28965 "                          int64_t size);\n"
28966 "\n"
28967 msgstr ""
28968
28969 #. type: textblock
28970 #: ../src/guestfs-actions.pod:1745
28971 msgid ""
28972 "Note that there is no limit on the amount of data that can be downloaded "
28973 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
28974 "full amount unless an error occurs."
28975 msgstr ""
28976
28977 #. type: textblock
28978 #: ../src/guestfs-actions.pod:1750
28979 msgid "See also C<guestfs_download>, C<guestfs_pread>."
28980 msgstr ""
28981
28982 #. type: textblock
28983 #: ../src/guestfs-actions.pod:1759 ../src/guestfs-actions.pod:8040
28984 msgid "(Added in 1.5.17)"
28985 msgstr "(Додано у 1.5.17)"
28986
28987 #. type: =head2
28988 #: ../src/guestfs-actions.pod:1761
28989 msgid "guestfs_drop_caches"
28990 msgstr ""
28991
28992 #. type: verbatim
28993 #: ../src/guestfs-actions.pod:1763
28994 #, no-wrap
28995 msgid ""
28996 " int\n"
28997 " guestfs_drop_caches (guestfs_h *g,\n"
28998 "                      int whattodrop);\n"
28999 "\n"
29000 msgstr ""
29001
29002 #. type: =head2
29003 #: ../src/guestfs-actions.pod:1781
29004 msgid "guestfs_du"
29005 msgstr ""
29006
29007 #. type: verbatim
29008 #: ../src/guestfs-actions.pod:1783
29009 #, no-wrap
29010 msgid ""
29011 " int64_t\n"
29012 " guestfs_du (guestfs_h *g,\n"
29013 "             const char *path);\n"
29014 "\n"
29015 msgstr ""
29016
29017 #. type: =head2
29018 #: ../src/guestfs-actions.pod:1806
29019 msgid "guestfs_e2fsck_f"
29020 msgstr ""
29021
29022 #. type: verbatim
29023 #: ../src/guestfs-actions.pod:1808
29024 #, no-wrap
29025 msgid ""
29026 " int\n"
29027 " guestfs_e2fsck_f (guestfs_h *g,\n"
29028 "                   const char *device);\n"
29029 "\n"
29030 msgstr ""
29031
29032 #. type: textblock
29033 #: ../src/guestfs-actions.pod:1816
29034 msgid ""
29035 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
29036 "Normally you should use C<guestfs_fsck>."
29037 msgstr ""
29038
29039 #. type: textblock
29040 #: ../src/guestfs-actions.pod:1821
29041 msgid "(Added in 1.0.29)"
29042 msgstr "(Додано у 1.0.29)"
29043
29044 #. type: =head2
29045 #: ../src/guestfs-actions.pod:1823
29046 msgid "guestfs_echo_daemon"
29047 msgstr "guestfs_echo_daemon"
29048
29049 #. type: verbatim
29050 #: ../src/guestfs-actions.pod:1825
29051 #, no-wrap
29052 msgid ""
29053 " char *\n"
29054 " guestfs_echo_daemon (guestfs_h *g,\n"
29055 "                      char *const *words);\n"
29056 "\n"
29057 msgstr ""
29058 " char *\n"
29059 " guestfs_echo_daemon (guestfs_h *g,\n"
29060 "                      char *const *words);\n"
29061 "\n"
29062
29063 #. type: textblock
29064 #: ../src/guestfs-actions.pod:1834
29065 msgid "See also C<guestfs_ping_daemon>."
29066 msgstr ""
29067
29068 #. type: textblock
29069 #: ../src/guestfs-actions.pod:1839 ../src/guestfs-actions.pod:2597
29070 #: ../src/guestfs-actions.pod:7098
29071 msgid "(Added in 1.0.69)"
29072 msgstr "(Додано у 1.0.69)"
29073
29074 #. type: =head2
29075 #: ../src/guestfs-actions.pod:1841
29076 msgid "guestfs_egrep"
29077 msgstr "guestfs_egrep"
29078
29079 #. type: verbatim
29080 #: ../src/guestfs-actions.pod:1843
29081 #, no-wrap
29082 msgid ""
29083 " char **\n"
29084 " guestfs_egrep (guestfs_h *g,\n"
29085 "                const char *regex,\n"
29086 "                const char *path);\n"
29087 "\n"
29088 msgstr ""
29089 " char **\n"
29090 " guestfs_egrep (guestfs_h *g,\n"
29091 "                const char *regex,\n"
29092 "                const char *path);\n"
29093 "\n"
29094
29095 #. type: textblock
29096 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:1877
29097 #: ../src/guestfs-actions.pod:1934 ../src/guestfs-actions.pod:1980
29098 #: ../src/guestfs-actions.pod:1999 ../src/guestfs-actions.pod:2727
29099 #: ../src/guestfs-actions.pod:2746 ../src/guestfs-actions.pod:2924
29100 #: ../src/guestfs-actions.pod:2937 ../src/guestfs-actions.pod:2952
29101 #: ../src/guestfs-actions.pod:2998 ../src/guestfs-actions.pod:3020
29102 #: ../src/guestfs-actions.pod:3033 ../src/guestfs-actions.pod:4332
29103 #: ../src/guestfs-actions.pod:4346 ../src/guestfs-actions.pod:4359
29104 #: ../src/guestfs-actions.pod:4373 ../src/guestfs-actions.pod:5524
29105 #: ../src/guestfs-actions.pod:6562 ../src/guestfs-actions.pod:6611
29106 #: ../src/guestfs-actions.pod:7485 ../src/guestfs-actions.pod:7497
29107 #: ../src/guestfs-actions.pod:7510 ../src/guestfs-actions.pod:7523
29108 #: ../src/guestfs-actions.pod:7545 ../src/guestfs-actions.pod:7558
29109 #: ../src/guestfs-actions.pod:7571 ../src/guestfs-actions.pod:7584
29110 #: ../src/guestfs-actions.pod:8500 ../src/guestfs-actions.pod:8519
29111 #: ../src/guestfs-actions.pod:8610 ../src/guestfs-actions.pod:8629
29112 #: ../src/guestfs-actions.pod:8675 ../src/guestfs-actions.pod:8694
29113 msgid "(Added in 1.0.66)"
29114 msgstr "(Додано у 1.0.66)"
29115
29116 #. type: =head2
29117 #: ../src/guestfs-actions.pod:1860
29118 msgid "guestfs_egrepi"
29119 msgstr "guestfs_egrepi"
29120
29121 #. type: verbatim
29122 #: ../src/guestfs-actions.pod:1862
29123 #, no-wrap
29124 msgid ""
29125 " char **\n"
29126 " guestfs_egrepi (guestfs_h *g,\n"
29127 "                 const char *regex,\n"
29128 "                 const char *path);\n"
29129 "\n"
29130 msgstr ""
29131
29132 #. type: =head2
29133 #: ../src/guestfs-actions.pod:1879
29134 msgid "guestfs_equal"
29135 msgstr ""
29136
29137 #. type: verbatim
29138 #: ../src/guestfs-actions.pod:1881
29139 #, no-wrap
29140 msgid ""
29141 " int\n"
29142 " guestfs_equal (guestfs_h *g,\n"
29143 "                const char *file1,\n"
29144 "                const char *file2);\n"
29145 "\n"
29146 msgstr ""
29147
29148 #. type: =head2
29149 #: ../src/guestfs-actions.pod:1895
29150 msgid "guestfs_exists"
29151 msgstr ""
29152
29153 #. type: verbatim
29154 #: ../src/guestfs-actions.pod:1897
29155 #, no-wrap
29156 msgid ""
29157 " int\n"
29158 " guestfs_exists (guestfs_h *g,\n"
29159 "                 const char *path);\n"
29160 "\n"
29161 msgstr ""
29162
29163 #. type: textblock
29164 #: ../src/guestfs-actions.pod:1904
29165 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
29166 msgstr ""
29167
29168 #. type: =head2
29169 #: ../src/guestfs-actions.pod:1910
29170 msgid "guestfs_fallocate"
29171 msgstr ""
29172
29173 #. type: verbatim
29174 #: ../src/guestfs-actions.pod:1912
29175 #, no-wrap
29176 msgid ""
29177 " int\n"
29178 " guestfs_fallocate (guestfs_h *g,\n"
29179 "                    const char *path,\n"
29180 "                    int len);\n"
29181 "\n"
29182 msgstr ""
29183
29184 #. type: textblock
29185 #: ../src/guestfs-actions.pod:1917
29186 msgid ""
29187 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
29188 "call instead."
29189 msgstr ""
29190
29191 #. type: =head2
29192 #: ../src/guestfs-actions.pod:1936
29193 msgid "guestfs_fallocate64"
29194 msgstr ""
29195
29196 #. type: verbatim
29197 #: ../src/guestfs-actions.pod:1938
29198 #, no-wrap
29199 msgid ""
29200 " int\n"
29201 " guestfs_fallocate64 (guestfs_h *g,\n"
29202 "                      const char *path,\n"
29203 "                      int64_t len);\n"
29204 "\n"
29205 msgstr ""
29206
29207 #. type: textblock
29208 #: ../src/guestfs-actions.pod:1947
29209 msgid ""
29210 "Note that this call allocates disk blocks for the file.  To create a sparse "
29211 "file use C<guestfs_truncate_size> instead."
29212 msgstr ""
29213
29214 #. type: textblock
29215 #: ../src/guestfs-actions.pod:1950
29216 msgid ""
29217 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
29218 "oversight it only allowed 30 bit lengths to be specified, effectively "
29219 "limiting the maximum size of files created through that call to 1GB."
29220 msgstr ""
29221
29222 #. type: textblock
29223 #: ../src/guestfs-actions.pod:1961
29224 msgid "(Added in 1.3.17)"
29225 msgstr "(Додано у 1.3.17)"
29226
29227 #. type: =head2
29228 #: ../src/guestfs-actions.pod:1963
29229 msgid "guestfs_fgrep"
29230 msgstr ""
29231
29232 #. type: verbatim
29233 #: ../src/guestfs-actions.pod:1965
29234 #, no-wrap
29235 msgid ""
29236 " char **\n"
29237 " guestfs_fgrep (guestfs_h *g,\n"
29238 "                const char *pattern,\n"
29239 "                const char *path);\n"
29240 "\n"
29241 msgstr ""
29242
29243 #. type: =head2
29244 #: ../src/guestfs-actions.pod:1982
29245 msgid "guestfs_fgrepi"
29246 msgstr ""
29247
29248 #. type: verbatim
29249 #: ../src/guestfs-actions.pod:1984
29250 #, no-wrap
29251 msgid ""
29252 " char **\n"
29253 " guestfs_fgrepi (guestfs_h *g,\n"
29254 "                 const char *pattern,\n"
29255 "                 const char *path);\n"
29256 "\n"
29257 msgstr ""
29258
29259 #. type: =head2
29260 #: ../src/guestfs-actions.pod:2001
29261 msgid "guestfs_file"
29262 msgstr ""
29263
29264 #. type: verbatim
29265 #: ../src/guestfs-actions.pod:2003
29266 #, no-wrap
29267 msgid ""
29268 " char *\n"
29269 " guestfs_file (guestfs_h *g,\n"
29270 "               const char *path);\n"
29271 "\n"
29272 msgstr ""
29273
29274 #. type: textblock
29275 #: ../src/guestfs-actions.pod:2021
29276 msgid ""
29277 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
29278 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
29279 msgstr ""
29280
29281 #. type: =head2
29282 #: ../src/guestfs-actions.pod:2029
29283 msgid "guestfs_file_architecture"
29284 msgstr ""
29285
29286 #. type: verbatim
29287 #: ../src/guestfs-actions.pod:2031
29288 #, no-wrap
29289 msgid ""
29290 " char *\n"
29291 " guestfs_file_architecture (guestfs_h *g,\n"
29292 "                            const char *filename);\n"
29293 "\n"
29294 msgstr ""
29295
29296 #. type: textblock
29297 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:2302
29298 #: ../src/guestfs-actions.pod:2319 ../src/guestfs-actions.pod:3053
29299 #: ../src/guestfs-actions.pod:3155 ../src/guestfs-actions.pod:3221
29300 #: ../src/guestfs-actions.pod:3408 ../src/guestfs-actions.pod:3426
29301 #: ../src/guestfs-actions.pod:3466 ../src/guestfs-actions.pod:3542
29302 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3876
29303 #: ../src/guestfs-actions.pod:4008
29304 msgid "(Added in 1.5.3)"
29305 msgstr "(Додано у 1.5.3)"
29306
29307 #. type: =head2
29308 #: ../src/guestfs-actions.pod:2141
29309 msgid "guestfs_filesize"
29310 msgstr ""
29311
29312 #. type: verbatim
29313 #: ../src/guestfs-actions.pod:2143
29314 #, no-wrap
29315 msgid ""
29316 " int64_t\n"
29317 " guestfs_filesize (guestfs_h *g,\n"
29318 "                   const char *file);\n"
29319 "\n"
29320 msgstr ""
29321
29322 #. type: textblock
29323 #: ../src/guestfs-actions.pod:2149
29324 msgid ""
29325 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
29326 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
29327 "devices, use C<guestfs_blockdev_getsize64>."
29328 msgstr ""
29329
29330 #. type: textblock
29331 #: ../src/guestfs-actions.pod:2155
29332 msgid "(Added in 1.0.82)"
29333 msgstr "(Додано у 1.0.82)"
29334
29335 #. type: =head2
29336 #: ../src/guestfs-actions.pod:2157
29337 msgid "guestfs_fill"
29338 msgstr ""
29339
29340 #. type: verbatim
29341 #: ../src/guestfs-actions.pod:2159
29342 #, no-wrap
29343 msgid ""
29344 " int\n"
29345 " guestfs_fill (guestfs_h *g,\n"
29346 "               int c,\n"
29347 "               int len,\n"
29348 "               const char *path);\n"
29349 "\n"
29350 msgstr ""
29351
29352 #. type: textblock
29353 #: ../src/guestfs-actions.pod:2169
29354 msgid ""
29355 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
29356 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
29357 "bytes use C<guestfs_fill_pattern>."
29358 msgstr ""
29359
29360 #. type: textblock
29361 #: ../src/guestfs-actions.pod:2181
29362 msgid "(Added in 1.0.79)"
29363 msgstr "(Додано у 1.0.79)"
29364
29365 #. type: =head2
29366 #: ../src/guestfs-actions.pod:2183
29367 msgid "guestfs_fill_pattern"
29368 msgstr ""
29369
29370 #. type: verbatim
29371 #: ../src/guestfs-actions.pod:2185
29372 #, no-wrap
29373 msgid ""
29374 " int\n"
29375 " guestfs_fill_pattern (guestfs_h *g,\n"
29376 "                       const char *pattern,\n"
29377 "                       int len,\n"
29378 "                       const char *path);\n"
29379 "\n"
29380 msgstr ""
29381
29382 #. type: textblock
29383 #: ../src/guestfs-actions.pod:2191
29384 msgid ""
29385 "This function is like C<guestfs_fill> except that it creates a new file of "
29386 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
29387 "pattern is truncated if necessary to ensure the length of the file is "
29388 "exactly C<len> bytes."
29389 msgstr ""
29390
29391 #. type: textblock
29392 #: ../src/guestfs-actions.pod:2203
29393 msgid "(Added in 1.3.12)"
29394 msgstr "(Додано у 1.3.12)"
29395
29396 #. type: =head2
29397 #: ../src/guestfs-actions.pod:2205
29398 msgid "guestfs_find"
29399 msgstr ""
29400
29401 #. type: verbatim
29402 #: ../src/guestfs-actions.pod:2207
29403 #, no-wrap
29404 msgid ""
29405 " char **\n"
29406 " guestfs_find (guestfs_h *g,\n"
29407 "               const char *directory);\n"
29408 "\n"
29409 msgstr ""
29410
29411 #. type: textblock
29412 #: ../src/guestfs-actions.pod:2223
29413 msgid ""
29414 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
29415 msgstr ""
29416
29417 #. type: textblock
29418 #: ../src/guestfs-actions.pod:2236
29419 msgid "See also C<guestfs_find0>."
29420 msgstr ""
29421
29422 #. type: textblock
29423 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:4770
29424 #: ../src/guestfs-actions.pod:6646
29425 msgid "(Added in 1.0.27)"
29426 msgstr "(Додано у 1.0.27)"
29427
29428 #. type: =head2
29429 #: ../src/guestfs-actions.pod:2247
29430 msgid "guestfs_find0"
29431 msgstr ""
29432
29433 #. type: verbatim
29434 #: ../src/guestfs-actions.pod:2249
29435 #, no-wrap
29436 msgid ""
29437 " int\n"
29438 " guestfs_find0 (guestfs_h *g,\n"
29439 "                const char *directory,\n"
29440 "                const char *files);\n"
29441 "\n"
29442 msgstr ""
29443
29444 #. type: textblock
29445 #: ../src/guestfs-actions.pod:2258
29446 msgid ""
29447 "This command works the same way as C<guestfs_find> with the following "
29448 "exceptions:"
29449 msgstr ""
29450
29451 #. type: textblock
29452 #: ../src/guestfs-actions.pod:2285
29453 msgid "(Added in 1.0.74)"
29454 msgstr "(Додано у 1.0.74)"
29455
29456 #. type: =head2
29457 #: ../src/guestfs-actions.pod:2287
29458 msgid "guestfs_findfs_label"
29459 msgstr ""
29460
29461 #. type: verbatim
29462 #: ../src/guestfs-actions.pod:2289
29463 #, no-wrap
29464 msgid ""
29465 " char *\n"
29466 " guestfs_findfs_label (guestfs_h *g,\n"
29467 "                       const char *label);\n"
29468 "\n"
29469 msgstr ""
29470
29471 #. type: textblock
29472 #: ../src/guestfs-actions.pod:2297
29473 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
29474 msgstr ""
29475
29476 #. type: =head2
29477 #: ../src/guestfs-actions.pod:2304
29478 msgid "guestfs_findfs_uuid"
29479 msgstr ""
29480
29481 #. type: verbatim
29482 #: ../src/guestfs-actions.pod:2306
29483 #, no-wrap
29484 msgid ""
29485 " char *\n"
29486 " guestfs_findfs_uuid (guestfs_h *g,\n"
29487 "                      const char *uuid);\n"
29488 "\n"
29489 msgstr ""
29490
29491 #. type: textblock
29492 #: ../src/guestfs-actions.pod:2314
29493 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
29494 msgstr ""
29495
29496 #. type: =head2
29497 #: ../src/guestfs-actions.pod:2321
29498 msgid "guestfs_fsck"
29499 msgstr ""
29500
29501 #. type: verbatim
29502 #: ../src/guestfs-actions.pod:2323
29503 #, no-wrap
29504 msgid ""
29505 " int\n"
29506 " guestfs_fsck (guestfs_h *g,\n"
29507 "               const char *fstype,\n"
29508 "               const char *device);\n"
29509 "\n"
29510 msgstr ""
29511
29512 #. type: textblock
29513 #: ../src/guestfs-actions.pod:2358 ../src/guestfs-actions.pod:8547
29514 msgid "(Added in 1.0.16)"
29515 msgstr "(Додано у 1.0.16)"
29516
29517 #. type: =head2
29518 #: ../src/guestfs-actions.pod:2360
29519 msgid "guestfs_get_append"
29520 msgstr ""
29521
29522 #. type: verbatim
29523 #: ../src/guestfs-actions.pod:2362
29524 #, no-wrap
29525 msgid ""
29526 " const char *\n"
29527 " guestfs_get_append (guestfs_h *g);\n"
29528 "\n"
29529 msgstr ""
29530
29531 #. type: textblock
29532 #: ../src/guestfs-actions.pod:2370
29533 msgid ""
29534 "This function returns a string which may be NULL.  There is no way to return "
29535 "an error from this function.  The string is owned by the guest handle and "
29536 "must I<not> be freed."
29537 msgstr ""
29538
29539 #. type: textblock
29540 #: ../src/guestfs-actions.pod:2374 ../src/guestfs-actions.pod:6324
29541 #: ../src/guestfs-actions.pod:6803 ../src/guestfs-actions.pod:7252
29542 #: ../src/guestfs-actions.pod:7271 ../src/guestfs-actions.pod:7287
29543 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:8187
29544 #: ../src/guestfs-actions.pod:8202 ../src/guestfs-actions.pod:8591
29545 msgid "(Added in 1.0.26)"
29546 msgstr "(Додано у 1.0.26)"
29547
29548 #. type: =head2
29549 #: ../src/guestfs-actions.pod:2376
29550 msgid "guestfs_get_attach_method"
29551 msgstr ""
29552
29553 #. type: verbatim
29554 #: ../src/guestfs-actions.pod:2378
29555 #, no-wrap
29556 msgid ""
29557 " char *\n"
29558 " guestfs_get_attach_method (guestfs_h *g);\n"
29559 "\n"
29560 msgstr ""
29561
29562 #. type: textblock
29563 #: ../src/guestfs-actions.pod:2381
29564 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
29565 msgstr ""
29566
29567 #. type: textblock
29568 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:6833
29569 msgid "(Added in 1.9.8)"
29570 msgstr "(Додано у 1.9.8)"
29571
29572 #. type: =head2
29573 #: ../src/guestfs-actions.pod:2388
29574 msgid "guestfs_get_autosync"
29575 msgstr ""
29576
29577 #. type: verbatim
29578 #: ../src/guestfs-actions.pod:2390
29579 #, no-wrap
29580 msgid ""
29581 " int\n"
29582 " guestfs_get_autosync (guestfs_h *g);\n"
29583 "\n"
29584 msgstr ""
29585
29586 #. type: =head2
29587 #: ../src/guestfs-actions.pod:2399
29588 msgid "guestfs_get_direct"
29589 msgstr ""
29590
29591 #. type: verbatim
29592 #: ../src/guestfs-actions.pod:2401
29593 #, no-wrap
29594 msgid ""
29595 " int\n"
29596 " guestfs_get_direct (guestfs_h *g);\n"
29597 "\n"
29598 msgstr ""
29599
29600 #. type: textblock
29601 #: ../src/guestfs-actions.pod:2408 ../src/guestfs-actions.pod:6874
29602 msgid "(Added in 1.0.72)"
29603 msgstr "(Додано у 1.0.72)"
29604
29605 #. type: =head2
29606 #: ../src/guestfs-actions.pod:2410
29607 msgid "guestfs_get_e2label"
29608 msgstr ""
29609
29610 #. type: verbatim
29611 #: ../src/guestfs-actions.pod:2412
29612 #, no-wrap
29613 msgid ""
29614 " char *\n"
29615 " guestfs_get_e2label (guestfs_h *g,\n"
29616 "                      const char *device);\n"
29617 "\n"
29618 msgstr ""
29619
29620 #. type: textblock
29621 #: ../src/guestfs-actions.pod:2416
29622 msgid ""
29623 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
29624 "call instead."
29625 msgstr ""
29626
29627 #. type: textblock
29628 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2450
29629 #: ../src/guestfs-actions.pod:6892 ../src/guestfs-actions.pod:6911
29630 msgid "(Added in 1.0.15)"
29631 msgstr "(Додано у 1.0.15)"
29632
29633 #. type: =head2
29634 #: ../src/guestfs-actions.pod:2431
29635 msgid "guestfs_get_e2uuid"
29636 msgstr ""
29637
29638 #. type: verbatim
29639 #: ../src/guestfs-actions.pod:2433
29640 #, no-wrap
29641 msgid ""
29642 " char *\n"
29643 " guestfs_get_e2uuid (guestfs_h *g,\n"
29644 "                     const char *device);\n"
29645 "\n"
29646 msgstr ""
29647
29648 #. type: textblock
29649 #: ../src/guestfs-actions.pod:2437
29650 msgid ""
29651 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
29652 "call instead."
29653 msgstr ""
29654
29655 #. type: =head2
29656 #: ../src/guestfs-actions.pod:2452
29657 msgid "guestfs_get_memsize"
29658 msgstr ""
29659
29660 #. type: verbatim
29661 #: ../src/guestfs-actions.pod:2454
29662 #, no-wrap
29663 msgid ""
29664 " int\n"
29665 " guestfs_get_memsize (guestfs_h *g);\n"
29666 "\n"
29667 msgstr ""
29668
29669 #. type: textblock
29670 #: ../src/guestfs-actions.pod:2460
29671 msgid ""
29672 "If C<guestfs_set_memsize> was not called on this handle, and if "
29673 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
29674 "value for memsize."
29675 msgstr ""
29676
29677 #. type: textblock
29678 #: ../src/guestfs-actions.pod:2469 ../src/guestfs-actions.pod:5220
29679 #: ../src/guestfs-actions.pod:5429 ../src/guestfs-actions.pod:5448
29680 #: ../src/guestfs-actions.pod:5467 ../src/guestfs-actions.pod:5479
29681 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5509
29682 #: ../src/guestfs-actions.pod:6549 ../src/guestfs-actions.pod:6932
29683 #: ../src/guestfs-actions.pod:7222 ../src/guestfs-actions.pod:7956
29684 msgid "(Added in 1.0.55)"
29685 msgstr "(Додано у 1.0.55)"
29686
29687 #. type: =head2
29688 #: ../src/guestfs-actions.pod:2471
29689 msgid "guestfs_get_network"
29690 msgstr ""
29691
29692 #. type: verbatim
29693 #: ../src/guestfs-actions.pod:2473
29694 #, no-wrap
29695 msgid ""
29696 " int\n"
29697 " guestfs_get_network (guestfs_h *g);\n"
29698 "\n"
29699 msgstr ""
29700
29701 #. type: textblock
29702 #: ../src/guestfs-actions.pod:2480 ../src/guestfs-actions.pod:6951
29703 msgid "(Added in 1.5.4)"
29704 msgstr "(Додано у 1.5.4)"
29705
29706 #. type: =head2
29707 #: ../src/guestfs-actions.pod:2482
29708 msgid "guestfs_get_path"
29709 msgstr ""
29710
29711 #. type: verbatim
29712 #: ../src/guestfs-actions.pod:2484
29713 #, no-wrap
29714 msgid ""
29715 " const char *\n"
29716 " guestfs_get_path (guestfs_h *g);\n"
29717 "\n"
29718 msgstr ""
29719
29720 #. type: textblock
29721 #: ../src/guestfs-actions.pod:2492 ../src/guestfs-actions.pod:2532
29722 msgid ""
29723 "This function returns a string, or NULL on error.  The string is owned by "
29724 "the guest handle and must I<not> be freed."
29725 msgstr ""
29726
29727 #. type: =head2
29728 #: ../src/guestfs-actions.pod:2497
29729 msgid "guestfs_get_pgroup"
29730 msgstr ""
29731
29732 #. type: verbatim
29733 #: ../src/guestfs-actions.pod:2499
29734 #, no-wrap
29735 msgid ""
29736 " int\n"
29737 " guestfs_get_pgroup (guestfs_h *g);\n"
29738 "\n"
29739 msgstr ""
29740
29741 #. type: textblock
29742 #: ../src/guestfs-actions.pod:2506 ../src/guestfs-actions.pod:6987
29743 #: ../src/guestfs-actions.pod:8448
29744 msgid "(Added in 1.11.18)"
29745 msgstr "(Додано у 1.11.18)"
29746
29747 #. type: =head2
29748 #: ../src/guestfs-actions.pod:2508
29749 msgid "guestfs_get_pid"
29750 msgstr ""
29751
29752 #. type: verbatim
29753 #: ../src/guestfs-actions.pod:2510
29754 #, no-wrap
29755 msgid ""
29756 " int\n"
29757 " guestfs_get_pid (guestfs_h *g);\n"
29758 "\n"
29759 msgstr ""
29760
29761 #. type: textblock
29762 #: ../src/guestfs-actions.pod:2520
29763 msgid "(Added in 1.0.56)"
29764 msgstr "(Додано у 1.0.56)"
29765
29766 #. type: =head2
29767 #: ../src/guestfs-actions.pod:2522
29768 msgid "guestfs_get_qemu"
29769 msgstr ""
29770
29771 #. type: verbatim
29772 #: ../src/guestfs-actions.pod:2524
29773 #, no-wrap
29774 msgid ""
29775 " const char *\n"
29776 " guestfs_get_qemu (guestfs_h *g);\n"
29777 "\n"
29778 msgstr ""
29779
29780 #. type: textblock
29781 #: ../src/guestfs-actions.pod:2535 ../src/guestfs-actions.pod:7015
29782 msgid "(Added in 1.0.6)"
29783 msgstr "(Додано у 1.0.6)"
29784
29785 #. type: =head2
29786 #: ../src/guestfs-actions.pod:2537
29787 msgid "guestfs_get_recovery_proc"
29788 msgstr ""
29789
29790 #. type: verbatim
29791 #: ../src/guestfs-actions.pod:2539
29792 #, no-wrap
29793 msgid ""
29794 " int\n"
29795 " guestfs_get_recovery_proc (guestfs_h *g);\n"
29796 "\n"
29797 msgstr ""
29798
29799 #. type: textblock
29800 #: ../src/guestfs-actions.pod:2546 ../src/guestfs-actions.pod:4130
29801 #: ../src/guestfs-actions.pod:4474 ../src/guestfs-actions.pod:4868
29802 #: ../src/guestfs-actions.pod:5059 ../src/guestfs-actions.pod:6254
29803 #: ../src/guestfs-actions.pod:6597 ../src/guestfs-actions.pod:7039
29804 #: ../src/guestfs-actions.pod:7737 ../src/guestfs-actions.pod:7757
29805 #: ../src/guestfs-actions.pod:8071
29806 msgid "(Added in 1.0.77)"
29807 msgstr "(Додано у 1.0.77)"
29808
29809 #. type: =head2
29810 #: ../src/guestfs-actions.pod:2548
29811 msgid "guestfs_get_selinux"
29812 msgstr ""
29813
29814 #. type: verbatim
29815 #: ../src/guestfs-actions.pod:2550
29816 #, no-wrap
29817 msgid ""
29818 " int\n"
29819 " guestfs_get_selinux (guestfs_h *g);\n"
29820 "\n"
29821 msgstr ""
29822
29823 #. type: textblock
29824 #: ../src/guestfs-actions.pod:2553
29825 msgid ""
29826 "This returns the current setting of the selinux flag which is passed to the "
29827 "appliance at boot time.  See C<guestfs_set_selinux>."
29828 msgstr ""
29829
29830 #. type: textblock
29831 #: ../src/guestfs-actions.pod:2561 ../src/guestfs-actions.pod:2635
29832 #: ../src/guestfs-actions.pod:7058 ../src/guestfs-actions.pod:7132
29833 msgid "(Added in 1.0.67)"
29834 msgstr "(Додано у 1.0.67)"
29835
29836 #. type: =head2
29837 #: ../src/guestfs-actions.pod:2563
29838 msgid "guestfs_get_smp"
29839 msgstr ""
29840
29841 #. type: verbatim
29842 #: ../src/guestfs-actions.pod:2565
29843 #, no-wrap
29844 msgid ""
29845 " int\n"
29846 " guestfs_get_smp (guestfs_h *g);\n"
29847 "\n"
29848 msgstr ""
29849
29850 #. type: =head2
29851 #: ../src/guestfs-actions.pod:2574
29852 msgid "guestfs_get_state"
29853 msgstr ""
29854
29855 #. type: verbatim
29856 #: ../src/guestfs-actions.pod:2576
29857 #, no-wrap
29858 msgid ""
29859 " int\n"
29860 " guestfs_get_state (guestfs_h *g);\n"
29861 "\n"
29862 msgstr ""
29863
29864 #. type: =head2
29865 #: ../src/guestfs-actions.pod:2588
29866 msgid "guestfs_get_trace"
29867 msgstr ""
29868
29869 #. type: verbatim
29870 #: ../src/guestfs-actions.pod:2590
29871 #, no-wrap
29872 msgid ""
29873 " int\n"
29874 " guestfs_get_trace (guestfs_h *g);\n"
29875 "\n"
29876 msgstr ""
29877
29878 #. type: =head2
29879 #: ../src/guestfs-actions.pod:2599
29880 msgid "guestfs_get_umask"
29881 msgstr ""
29882
29883 #. type: verbatim
29884 #: ../src/guestfs-actions.pod:2601
29885 #, no-wrap
29886 msgid ""
29887 " int\n"
29888 " guestfs_get_umask (guestfs_h *g);\n"
29889 "\n"
29890 msgstr ""
29891
29892 #. type: textblock
29893 #: ../src/guestfs-actions.pod:2604
29894 msgid ""
29895 "Return the current umask.  By default the umask is C<022> unless it has been "
29896 "set by calling C<guestfs_umask>."
29897 msgstr ""
29898
29899 #. type: =head2
29900 #: ../src/guestfs-actions.pod:2611
29901 msgid "guestfs_get_verbose"
29902 msgstr ""
29903
29904 #. type: verbatim
29905 #: ../src/guestfs-actions.pod:2613
29906 #, no-wrap
29907 msgid ""
29908 " int\n"
29909 " guestfs_get_verbose (guestfs_h *g);\n"
29910 "\n"
29911 msgstr ""
29912
29913 #. type: =head2
29914 #: ../src/guestfs-actions.pod:2622
29915 msgid "guestfs_getcon"
29916 msgstr ""
29917
29918 #. type: verbatim
29919 #: ../src/guestfs-actions.pod:2624
29920 #, no-wrap
29921 msgid ""
29922 " char *\n"
29923 " guestfs_getcon (guestfs_h *g);\n"
29924 "\n"
29925 msgstr ""
29926
29927 #. type: textblock
29928 #: ../src/guestfs-actions.pod:2629
29929 msgid ""
29930 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
29931 msgstr ""
29932
29933 #. type: =head2
29934 #: ../src/guestfs-actions.pod:2637
29935 msgid "guestfs_getxattr"
29936 msgstr ""
29937
29938 #. type: verbatim
29939 #: ../src/guestfs-actions.pod:2639
29940 #, no-wrap
29941 msgid ""
29942 " char *\n"
29943 " guestfs_getxattr (guestfs_h *g,\n"
29944 "                   const char *path,\n"
29945 "                   const char *name,\n"
29946 "                   size_t *size_r);\n"
29947 "\n"
29948 msgstr ""
29949
29950 #. type: textblock
29951 #: ../src/guestfs-actions.pod:2645
29952 msgid ""
29953 "Get a single extended attribute from file C<path> named C<name>.  This call "
29954 "follows symlinks.  If you want to lookup an extended attribute for the "
29955 "symlink itself, use C<guestfs_lgetxattr>."
29956 msgstr ""
29957
29958 #. type: textblock
29959 #: ../src/guestfs-actions.pod:2649 ../src/guestfs-actions.pod:4144
29960 msgid ""
29961 "Normally it is better to get all extended attributes from a file in one go "
29962 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
29963 "implementations are buggy and do not provide a way to list out attributes.  "
29964 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
29965 "extended attributes you want in advance and call this function."
29966 msgstr ""
29967
29968 #. type: textblock
29969 #: ../src/guestfs-actions.pod:2659
29970 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
29971 msgstr ""
29972
29973 #. type: textblock
29974 #: ../src/guestfs-actions.pod:2661 ../src/guestfs-actions.pod:2874
29975 #: ../src/guestfs-actions.pod:3356 ../src/guestfs-actions.pod:4156
29976 #: ../src/guestfs-actions.pod:6247 ../src/guestfs-actions.pod:6273
29977 #: ../src/guestfs-actions.pod:6454
29978 msgid ""
29979 "This function returns a buffer, or NULL on error.  The size of the returned "
29980 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
29981 "after use>."
29982 msgstr ""
29983
29984 #. type: textblock
29985 #: ../src/guestfs-actions.pod:2665 ../src/guestfs-actions.pod:4160
29986 msgid "(Added in 1.7.24)"
29987 msgstr "(Додано у 1.7.24)"
29988
29989 #. type: =head2
29990 #: ../src/guestfs-actions.pod:2667
29991 msgid "guestfs_getxattrs"
29992 msgstr ""
29993
29994 #. type: verbatim
29995 #: ../src/guestfs-actions.pod:2669
29996 #, no-wrap
29997 msgid ""
29998 " struct guestfs_xattr_list *\n"
29999 " guestfs_getxattrs (guestfs_h *g,\n"
30000 "                    const char *path);\n"
30001 "\n"
30002 msgstr ""
30003
30004 #. type: textblock
30005 #: ../src/guestfs-actions.pod:2679
30006 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
30007 msgstr ""
30008
30009 #. type: textblock
30010 #: ../src/guestfs-actions.pod:2681 ../src/guestfs-actions.pod:4172
30011 #: ../src/guestfs-actions.pod:4864
30012 msgid ""
30013 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
30014 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
30015 msgstr ""
30016
30017 #. type: textblock
30018 #: ../src/guestfs-actions.pod:2685 ../src/guestfs-actions.pod:4176
30019 #: ../src/guestfs-actions.pod:4388 ../src/guestfs-actions.pod:4424
30020 #: ../src/guestfs-actions.pod:6627 ../src/guestfs-actions.pod:7151
30021 #: ../src/guestfs-actions.pod:8656
30022 msgid "(Added in 1.0.59)"
30023 msgstr "(Додано у 1.0.59)"
30024
30025 #. type: =head2
30026 #: ../src/guestfs-actions.pod:2687
30027 msgid "guestfs_glob_expand"
30028 msgstr ""
30029
30030 #. type: verbatim
30031 #: ../src/guestfs-actions.pod:2689
30032 #, no-wrap
30033 msgid ""
30034 " char **\n"
30035 " guestfs_glob_expand (guestfs_h *g,\n"
30036 "                      const char *pattern);\n"
30037 "\n"
30038 msgstr ""
30039
30040 #. type: textblock
30041 #: ../src/guestfs-actions.pod:2708 ../src/guestfs-actions.pod:7335
30042 #: ../src/guestfs-actions.pod:7352
30043 msgid "(Added in 1.0.50)"
30044 msgstr "(Додано у 1.0.50)"
30045
30046 #. type: =head2
30047 #: ../src/guestfs-actions.pod:2710
30048 msgid "guestfs_grep"
30049 msgstr ""
30050
30051 #. type: verbatim
30052 #: ../src/guestfs-actions.pod:2712
30053 #, no-wrap
30054 msgid ""
30055 " char **\n"
30056 " guestfs_grep (guestfs_h *g,\n"
30057 "               const char *regex,\n"
30058 "               const char *path);\n"
30059 "\n"
30060 msgstr ""
30061
30062 #. type: =head2
30063 #: ../src/guestfs-actions.pod:2729
30064 msgid "guestfs_grepi"
30065 msgstr ""
30066
30067 #. type: verbatim
30068 #: ../src/guestfs-actions.pod:2731
30069 #, no-wrap
30070 msgid ""
30071 " char **\n"
30072 " guestfs_grepi (guestfs_h *g,\n"
30073 "                const char *regex,\n"
30074 "                const char *path);\n"
30075 "\n"
30076 msgstr ""
30077
30078 #. type: =head2
30079 #: ../src/guestfs-actions.pod:2748
30080 msgid "guestfs_grub_install"
30081 msgstr ""
30082
30083 #. type: verbatim
30084 #: ../src/guestfs-actions.pod:2750
30085 #, no-wrap
30086 msgid ""
30087 " int\n"
30088 " guestfs_grub_install (guestfs_h *g,\n"
30089 "                       const char *root,\n"
30090 "                       const char *device);\n"
30091 "\n"
30092 msgstr ""
30093
30094 #. type: textblock
30095 #: ../src/guestfs-actions.pod:2793
30096 msgid "(Added in 1.0.17)"
30097 msgstr "(Додано у 1.0.17)"
30098
30099 #. type: =head2
30100 #: ../src/guestfs-actions.pod:2795
30101 msgid "guestfs_head"
30102 msgstr ""
30103
30104 #. type: verbatim
30105 #: ../src/guestfs-actions.pod:2797
30106 #, no-wrap
30107 msgid ""
30108 " char **\n"
30109 " guestfs_head (guestfs_h *g,\n"
30110 "               const char *path);\n"
30111 "\n"
30112 msgstr ""
30113
30114 #. type: =head2
30115 #: ../src/guestfs-actions.pod:2813
30116 msgid "guestfs_head_n"
30117 msgstr ""
30118
30119 #. type: verbatim
30120 #: ../src/guestfs-actions.pod:2815
30121 #, no-wrap
30122 msgid ""
30123 " char **\n"
30124 " guestfs_head_n (guestfs_h *g,\n"
30125 "                 int nrlines,\n"
30126 "                 const char *path);\n"
30127 "\n"
30128 msgstr ""
30129
30130 #. type: =head2
30131 #: ../src/guestfs-actions.pod:2837
30132 msgid "guestfs_hexdump"
30133 msgstr ""
30134
30135 #. type: verbatim
30136 #: ../src/guestfs-actions.pod:2839
30137 #, no-wrap
30138 msgid ""
30139 " char *\n"
30140 " guestfs_hexdump (guestfs_h *g,\n"
30141 "                  const char *path);\n"
30142 "\n"
30143 msgstr ""
30144
30145 #. type: textblock
30146 #: ../src/guestfs-actions.pod:2852 ../src/guestfs-actions.pod:7416
30147 #: ../src/guestfs-actions.pod:7471
30148 msgid "(Added in 1.0.22)"
30149 msgstr "(Додано у 1.0.22)"
30150
30151 #. type: =head2
30152 #: ../src/guestfs-actions.pod:2854
30153 msgid "guestfs_initrd_cat"
30154 msgstr ""
30155
30156 #. type: verbatim
30157 #: ../src/guestfs-actions.pod:2856
30158 #, no-wrap
30159 msgid ""
30160 " char *\n"
30161 " guestfs_initrd_cat (guestfs_h *g,\n"
30162 "                     const char *initrdpath,\n"
30163 "                     const char *filename,\n"
30164 "                     size_t *size_r);\n"
30165 "\n"
30166 msgstr ""
30167
30168 #. type: textblock
30169 #: ../src/guestfs-actions.pod:2872
30170 msgid "See also C<guestfs_initrd_list>."
30171 msgstr ""
30172
30173 #. type: =head2
30174 #: ../src/guestfs-actions.pod:2883
30175 msgid "guestfs_initrd_list"
30176 msgstr ""
30177
30178 #. type: verbatim
30179 #: ../src/guestfs-actions.pod:2885
30180 #, no-wrap
30181 msgid ""
30182 " char **\n"
30183 " guestfs_initrd_list (guestfs_h *g,\n"
30184 "                      const char *path);\n"
30185 "\n"
30186 msgstr ""
30187
30188 #. type: =head2
30189 #: ../src/guestfs-actions.pod:2905
30190 msgid "guestfs_inotify_add_watch"
30191 msgstr ""
30192
30193 #. type: verbatim
30194 #: ../src/guestfs-actions.pod:2907
30195 #, no-wrap
30196 msgid ""
30197 " int64_t\n"
30198 " guestfs_inotify_add_watch (guestfs_h *g,\n"
30199 "                            const char *path,\n"
30200 "                            int mask);\n"
30201 "\n"
30202 msgstr ""
30203
30204 #. type: =head2
30205 #: ../src/guestfs-actions.pod:2926
30206 msgid "guestfs_inotify_close"
30207 msgstr ""
30208
30209 #. type: verbatim
30210 #: ../src/guestfs-actions.pod:2928
30211 #, no-wrap
30212 msgid ""
30213 " int\n"
30214 " guestfs_inotify_close (guestfs_h *g);\n"
30215 "\n"
30216 msgstr ""
30217
30218 #. type: =head2
30219 #: ../src/guestfs-actions.pod:2939
30220 msgid "guestfs_inotify_files"
30221 msgstr ""
30222
30223 #. type: verbatim
30224 #: ../src/guestfs-actions.pod:2941
30225 #, no-wrap
30226 msgid ""
30227 " char **\n"
30228 " guestfs_inotify_files (guestfs_h *g);\n"
30229 "\n"
30230 msgstr ""
30231
30232 #. type: textblock
30233 #: ../src/guestfs-actions.pod:2944
30234 msgid ""
30235 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
30236 "returns a list of pathnames of objects that were touched.  The returned "
30237 "pathnames are sorted and deduplicated."
30238 msgstr ""
30239
30240 #. type: =head2
30241 #: ../src/guestfs-actions.pod:2954
30242 msgid "guestfs_inotify_init"
30243 msgstr ""
30244
30245 #. type: verbatim
30246 #: ../src/guestfs-actions.pod:2956
30247 #, no-wrap
30248 msgid ""
30249 " int\n"
30250 " guestfs_inotify_init (guestfs_h *g,\n"
30251 "                       int maxevents);\n"
30252 "\n"
30253 msgstr ""
30254
30255 #. type: textblock
30256 #: ../src/guestfs-actions.pod:2964
30257 msgid ""
30258 "C<maxevents> is the maximum number of events which will be queued up between "
30259 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
30260 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
30261 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
30262 "throws away events, but records the fact that it threw them away by setting "
30263 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
30264 "C<guestfs_inotify_read>)."
30265 msgstr ""
30266
30267 #. type: textblock
30268 #: ../src/guestfs-actions.pod:2974
30269 msgid ""
30270 "Before any events are generated, you have to add some watches to the "
30271 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
30272 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
30273 msgstr ""
30274
30275 #. type: textblock
30276 #: ../src/guestfs-actions.pod:2980
30277 msgid ""
30278 "Queued up events should be read periodically by calling "
30279 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
30280 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
30281 "often enough then you risk the internal queue overflowing."
30282 msgstr ""
30283
30284 #. type: textblock
30285 #: ../src/guestfs-actions.pod:2987
30286 msgid ""
30287 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
30288 "This also removes any watches automatically."
30289 msgstr ""
30290
30291 #. type: =head2
30292 #: ../src/guestfs-actions.pod:3000
30293 msgid "guestfs_inotify_read"
30294 msgstr ""
30295
30296 #. type: verbatim
30297 #: ../src/guestfs-actions.pod:3002
30298 #, no-wrap
30299 msgid ""
30300 " struct guestfs_inotify_event_list *\n"
30301 " guestfs_inotify_read (guestfs_h *g);\n"
30302 "\n"
30303 msgstr ""
30304
30305 #. type: textblock
30306 #: ../src/guestfs-actions.pod:3016
30307 msgid ""
30308 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
30309 "there was an error.  I<The caller must call "
30310 "C<guestfs_free_inotify_event_list> after use>."
30311 msgstr ""
30312
30313 #. type: =head2
30314 #: ../src/guestfs-actions.pod:3022
30315 msgid "guestfs_inotify_rm_watch"
30316 msgstr ""
30317
30318 #. type: verbatim
30319 #: ../src/guestfs-actions.pod:3024
30320 #, no-wrap
30321 msgid ""
30322 " int\n"
30323 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
30324 "                           int wd);\n"
30325 "\n"
30326 msgstr ""
30327
30328 #. type: textblock
30329 #: ../src/guestfs-actions.pod:3028
30330 msgid ""
30331 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
30332 msgstr ""
30333
30334 #. type: =head2
30335 #: ../src/guestfs-actions.pod:3035
30336 msgid "guestfs_inspect_get_arch"
30337 msgstr ""
30338
30339 #. type: verbatim
30340 #: ../src/guestfs-actions.pod:3037
30341 #, no-wrap
30342 msgid ""
30343 " char *\n"
30344 " guestfs_inspect_get_arch (guestfs_h *g,\n"
30345 "                           const char *root);\n"
30346 "\n"
30347 msgstr ""
30348
30349 #. type: textblock
30350 #: ../src/guestfs-actions.pod:3041
30351 msgid ""
30352 "This returns the architecture of the inspected operating system.  The "
30353 "possible return values are listed under C<guestfs_file_architecture>."
30354 msgstr ""
30355
30356 #. type: =head2
30357 #: ../src/guestfs-actions.pod:3055
30358 msgid "guestfs_inspect_get_distro"
30359 msgstr ""
30360
30361 #. type: verbatim
30362 #: ../src/guestfs-actions.pod:3057
30363 #, no-wrap
30364 msgid ""
30365 " char *\n"
30366 " guestfs_inspect_get_distro (guestfs_h *g,\n"
30367 "                             const char *root);\n"
30368 "\n"
30369 msgstr ""
30370
30371 #. type: =head2
30372 #: ../src/guestfs-actions.pod:3157
30373 msgid "guestfs_inspect_get_drive_mappings"
30374 msgstr ""
30375
30376 #. type: verbatim
30377 #: ../src/guestfs-actions.pod:3159
30378 #, no-wrap
30379 msgid ""
30380 " char **\n"
30381 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
30382 "                                     const char *root);\n"
30383 "\n"
30384 msgstr ""
30385
30386 #. type: textblock
30387 #: ../src/guestfs-actions.pod:3188
30388 msgid ""
30389 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
30390 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
30391 msgstr ""
30392
30393 #. type: textblock
30394 #: ../src/guestfs-actions.pod:3192 ../src/guestfs-actions.pod:3460
30395 #: ../src/guestfs-actions.pod:4263 ../src/guestfs-actions.pod:5002
30396 #: ../src/guestfs-actions.pod:5698 ../src/guestfs-actions.pod:7895
30397 msgid ""
30398 "This function returns a NULL-terminated array of strings, or NULL if there "
30399 "was an error.  The array of strings will always have length C<2n+1>, where "
30400 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
30401 "caller must free the strings and the array after use>."
30402 msgstr ""
30403
30404 #. type: textblock
30405 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3659
30406 msgid "(Added in 1.9.17)"
30407 msgstr "(Додано у 1.9.17)"
30408
30409 #. type: =head2
30410 #: ../src/guestfs-actions.pod:3200
30411 msgid "guestfs_inspect_get_filesystems"
30412 msgstr ""
30413
30414 #. type: verbatim
30415 #: ../src/guestfs-actions.pod:3202
30416 #, no-wrap
30417 msgid ""
30418 " char **\n"
30419 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
30420 "                                  const char *root);\n"
30421 "\n"
30422 msgstr ""
30423
30424 #. type: textblock
30425 #: ../src/guestfs-actions.pod:3214
30426 msgid ""
30427 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
30428 "C<guestfs_inspect_get_mountpoints>."
30429 msgstr ""
30430
30431 #. type: =head2
30432 #: ../src/guestfs-actions.pod:3223
30433 msgid "guestfs_inspect_get_format"
30434 msgstr ""
30435
30436 #. type: verbatim
30437 #: ../src/guestfs-actions.pod:3225
30438 #, no-wrap
30439 msgid ""
30440 " char *\n"
30441 " guestfs_inspect_get_format (guestfs_h *g,\n"
30442 "                             const char *root);\n"
30443 "\n"
30444 msgstr ""
30445
30446 #. type: textblock
30447 #: ../src/guestfs-actions.pod:3259 ../src/guestfs-actions.pod:3695
30448 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3729
30449 #: ../src/guestfs-actions.pod:6665
30450 msgid "(Added in 1.9.4)"
30451 msgstr "(Додано у 1.9.4)"
30452
30453 #. type: =head2
30454 #: ../src/guestfs-actions.pod:3261
30455 msgid "guestfs_inspect_get_hostname"
30456 msgstr ""
30457
30458 #. type: verbatim
30459 #: ../src/guestfs-actions.pod:3263
30460 #, no-wrap
30461 msgid ""
30462 " char *\n"
30463 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
30464 "                               const char *root);\n"
30465 "\n"
30466 msgstr ""
30467
30468 #. type: textblock
30469 #: ../src/guestfs-actions.pod:3278
30470 msgid "(Added in 1.7.9)"
30471 msgstr "(Додано у 1.7.9)"
30472
30473 #. type: =head2
30474 #: ../src/guestfs-actions.pod:3280
30475 msgid "guestfs_inspect_get_icon"
30476 msgstr ""
30477
30478 #. type: verbatim
30479 #: ../src/guestfs-actions.pod:3282
30480 #, no-wrap
30481 msgid ""
30482 " char *\n"
30483 " guestfs_inspect_get_icon (guestfs_h *g,\n"
30484 "                           const char *root,\n"
30485 "                           size_t *size_r,\n"
30486 "                           ...);\n"
30487 "\n"
30488 msgstr ""
30489
30490 #. type: verbatim
30491 #: ../src/guestfs-actions.pod:3293
30492 #, no-wrap
30493 msgid ""
30494 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
30495 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
30496 "\n"
30497 msgstr ""
30498
30499 #. type: textblock
30500 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:4190
30501 #: ../src/guestfs-actions.pod:5597
30502 msgid "(Added in 1.11.12)"
30503 msgstr "(Додано у 1.11.12)"
30504
30505 #. type: =head2
30506 #: ../src/guestfs-actions.pod:3362
30507 msgid "guestfs_inspect_get_icon_va"
30508 msgstr ""
30509
30510 #. type: verbatim
30511 #: ../src/guestfs-actions.pod:3364
30512 #, no-wrap
30513 msgid ""
30514 " char *\n"
30515 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
30516 "                              const char *root,\n"
30517 "                              size_t *size_r,\n"
30518 "                              va_list args);\n"
30519 "\n"
30520 msgstr ""
30521
30522 #. type: textblock
30523 #: ../src/guestfs-actions.pod:3370
30524 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
30525 msgstr ""
30526
30527 #. type: =head2
30528 #: ../src/guestfs-actions.pod:3374
30529 msgid "guestfs_inspect_get_icon_argv"
30530 msgstr ""
30531
30532 #. type: verbatim
30533 #: ../src/guestfs-actions.pod:3376
30534 #, no-wrap
30535 msgid ""
30536 " char *\n"
30537 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
30538 "                                const char *root,\n"
30539 "                                size_t *size_r,\n"
30540 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
30541 "\n"
30542 msgstr ""
30543
30544 #. type: textblock
30545 #: ../src/guestfs-actions.pod:3382
30546 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
30547 msgstr ""
30548
30549 #. type: =head2
30550 #: ../src/guestfs-actions.pod:3386
30551 msgid "guestfs_inspect_get_major_version"
30552 msgstr ""
30553
30554 #. type: verbatim
30555 #: ../src/guestfs-actions.pod:3388
30556 #, no-wrap
30557 msgid ""
30558 " int\n"
30559 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
30560 "                                    const char *root);\n"
30561 "\n"
30562 msgstr ""
30563
30564 #. type: =head2
30565 #: ../src/guestfs-actions.pod:3410
30566 msgid "guestfs_inspect_get_minor_version"
30567 msgstr ""
30568
30569 #. type: verbatim
30570 #: ../src/guestfs-actions.pod:3412
30571 #, no-wrap
30572 msgid ""
30573 " int\n"
30574 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
30575 "                                    const char *root);\n"
30576 "\n"
30577 msgstr ""
30578
30579 #. type: textblock
30580 #: ../src/guestfs-actions.pod:3421
30581 msgid ""
30582 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
30583 "C<guestfs_inspect_get_major_version>."
30584 msgstr ""
30585
30586 #. type: =head2
30587 #: ../src/guestfs-actions.pod:3428
30588 msgid "guestfs_inspect_get_mountpoints"
30589 msgstr ""
30590
30591 #. type: verbatim
30592 #: ../src/guestfs-actions.pod:3430
30593 #, no-wrap
30594 msgid ""
30595 " char **\n"
30596 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
30597 "                                  const char *root);\n"
30598 "\n"
30599 msgstr ""
30600
30601 #. type: textblock
30602 #: ../src/guestfs-actions.pod:3451
30603 msgid ""
30604 "For operating systems like Windows which still use drive letters, this call "
30605 "will only return an entry for the first drive \"mounted on\" C</>.  For "
30606 "information about the mapping of drive letters to partitions, see "
30607 "C<guestfs_inspect_get_drive_mappings>."
30608 msgstr ""
30609
30610 #. type: textblock
30611 #: ../src/guestfs-actions.pod:3457
30612 msgid ""
30613 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
30614 "C<guestfs_inspect_get_filesystems>."
30615 msgstr ""
30616
30617 #. type: =head2
30618 #: ../src/guestfs-actions.pod:3468
30619 msgid "guestfs_inspect_get_package_format"
30620 msgstr ""
30621
30622 #. type: verbatim
30623 #: ../src/guestfs-actions.pod:3470
30624 #, no-wrap
30625 msgid ""
30626 " char *\n"
30627 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
30628 "                                     const char *root);\n"
30629 "\n"
30630 msgstr ""
30631
30632 #. type: textblock
30633 #: ../src/guestfs-actions.pod:3474
30634 msgid ""
30635 "This function and C<guestfs_inspect_get_package_management> return the "
30636 "package format and package management tool used by the inspected operating "
30637 "system.  For example for Fedora these functions would return C<rpm> (package "
30638 "format) and C<yum> (package management)."
30639 msgstr ""
30640
30641 #. type: textblock
30642 #: ../src/guestfs-actions.pod:3493 ../src/guestfs-actions.pod:3521
30643 msgid "(Added in 1.7.5)"
30644 msgstr "(Додано у 1.7.5)"
30645
30646 #. type: =head2
30647 #: ../src/guestfs-actions.pod:3495
30648 msgid "guestfs_inspect_get_package_management"
30649 msgstr ""
30650
30651 #. type: verbatim
30652 #: ../src/guestfs-actions.pod:3497
30653 #, no-wrap
30654 msgid ""
30655 " char *\n"
30656 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
30657 "                                         const char *root);\n"
30658 "\n"
30659 msgstr ""
30660
30661 #. type: textblock
30662 #: ../src/guestfs-actions.pod:3501
30663 msgid ""
30664 "C<guestfs_inspect_get_package_format> and this function return the package "
30665 "format and package management tool used by the inspected operating system.  "
30666 "For example for Fedora these functions would return C<rpm> (package format) "
30667 "and C<yum> (package management)."
30668 msgstr ""
30669
30670 #. type: =head2
30671 #: ../src/guestfs-actions.pod:3523
30672 msgid "guestfs_inspect_get_product_name"
30673 msgstr ""
30674
30675 #. type: verbatim
30676 #: ../src/guestfs-actions.pod:3525
30677 #, no-wrap
30678 msgid ""
30679 " char *\n"
30680 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
30681 "                                   const char *root);\n"
30682 "\n"
30683 msgstr ""
30684
30685 #. type: =head2
30686 #: ../src/guestfs-actions.pod:3544
30687 msgid "guestfs_inspect_get_product_variant"
30688 msgstr ""
30689
30690 #. type: verbatim
30691 #: ../src/guestfs-actions.pod:3546
30692 #, no-wrap
30693 msgid ""
30694 " char *\n"
30695 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
30696 "                                      const char *root);\n"
30697 "\n"
30698 msgstr ""
30699
30700 #. type: textblock
30701 #: ../src/guestfs-actions.pod:3569
30702 msgid ""
30703 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
30704 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
30705 msgstr ""
30706
30707 #. type: textblock
30708 #: ../src/guestfs-actions.pod:3576
30709 msgid "(Added in 1.9.13)"
30710 msgstr "(Додано у 1.9.13)"
30711
30712 #. type: =head2
30713 #: ../src/guestfs-actions.pod:3578
30714 msgid "guestfs_inspect_get_roots"
30715 msgstr ""
30716
30717 #. type: verbatim
30718 #: ../src/guestfs-actions.pod:3580
30719 #, no-wrap
30720 msgid ""
30721 " char **\n"
30722 " guestfs_inspect_get_roots (guestfs_h *g);\n"
30723 "\n"
30724 msgstr ""
30725
30726 #. type: textblock
30727 #: ../src/guestfs-actions.pod:3583
30728 msgid ""
30729 "This function is a convenient way to get the list of root devices, as "
30730 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
30731 "the whole inspection process."
30732 msgstr ""
30733
30734 #. type: textblock
30735 #: ../src/guestfs-actions.pod:3587
30736 msgid ""
30737 "This returns an empty list if either no root devices were found or the "
30738 "caller has not called C<guestfs_inspect_os>."
30739 msgstr ""
30740
30741 #. type: textblock
30742 #: ../src/guestfs-actions.pod:3596
30743 msgid "(Added in 1.7.3)"
30744 msgstr "(Додано у 1.7.3)"
30745
30746 #. type: =head2
30747 #: ../src/guestfs-actions.pod:3598
30748 msgid "guestfs_inspect_get_type"
30749 msgstr ""
30750
30751 #. type: verbatim
30752 #: ../src/guestfs-actions.pod:3600
30753 #, no-wrap
30754 msgid ""
30755 " char *\n"
30756 " guestfs_inspect_get_type (guestfs_h *g,\n"
30757 "                           const char *root);\n"
30758 "\n"
30759 msgstr ""
30760
30761 #. type: =head2
30762 #: ../src/guestfs-actions.pod:3641
30763 msgid "guestfs_inspect_get_windows_current_control_set"
30764 msgstr ""
30765
30766 #. type: verbatim
30767 #: ../src/guestfs-actions.pod:3643
30768 #, no-wrap
30769 msgid ""
30770 " char *\n"
30771 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
30772 "                                                  const char *root);\n"
30773 "\n"
30774 msgstr ""
30775
30776 #. type: =head2
30777 #: ../src/guestfs-actions.pod:3661
30778 msgid "guestfs_inspect_get_windows_systemroot"
30779 msgstr ""
30780
30781 #. type: verbatim
30782 #: ../src/guestfs-actions.pod:3663
30783 #, no-wrap
30784 msgid ""
30785 " char *\n"
30786 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
30787 "                                         const char *root);\n"
30788 "\n"
30789 msgstr ""
30790
30791 #. type: textblock
30792 #: ../src/guestfs-actions.pod:3679
30793 msgid "(Added in 1.5.25)"
30794 msgstr "(Додано у 1.5.25)"
30795
30796 #. type: =head2
30797 #: ../src/guestfs-actions.pod:3681
30798 msgid "guestfs_inspect_is_live"
30799 msgstr ""
30800
30801 #. type: verbatim
30802 #: ../src/guestfs-actions.pod:3683
30803 #, no-wrap
30804 msgid ""
30805 " int\n"
30806 " guestfs_inspect_is_live (guestfs_h *g,\n"
30807 "                          const char *root);\n"
30808 "\n"
30809 msgstr ""
30810
30811 #. type: textblock
30812 #: ../src/guestfs-actions.pod:3687
30813 msgid ""
30814 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30815 "disk), then this returns true if a live image was detected on the disk."
30816 msgstr ""
30817
30818 #. type: =head2
30819 #: ../src/guestfs-actions.pod:3697
30820 msgid "guestfs_inspect_is_multipart"
30821 msgstr ""
30822
30823 #. type: verbatim
30824 #: ../src/guestfs-actions.pod:3699
30825 #, no-wrap
30826 msgid ""
30827 " int\n"
30828 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
30829 "                               const char *root);\n"
30830 "\n"
30831 msgstr ""
30832
30833 #. type: textblock
30834 #: ../src/guestfs-actions.pod:3703
30835 msgid ""
30836 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30837 "disk), then this returns true if the disk is part of a set."
30838 msgstr ""
30839
30840 #. type: =head2
30841 #: ../src/guestfs-actions.pod:3713
30842 msgid "guestfs_inspect_is_netinst"
30843 msgstr ""
30844
30845 #. type: verbatim
30846 #: ../src/guestfs-actions.pod:3715
30847 #, no-wrap
30848 msgid ""
30849 " int\n"
30850 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
30851 "                             const char *root);\n"
30852 "\n"
30853 msgstr ""
30854
30855 #. type: textblock
30856 #: ../src/guestfs-actions.pod:3719
30857 msgid ""
30858 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
30859 "disk), then this returns true if the disk is a network installer, ie. not a "
30860 "self-contained install CD but one which is likely to require network access "
30861 "to complete the install."
30862 msgstr ""
30863
30864 #. type: =head2
30865 #: ../src/guestfs-actions.pod:3731
30866 msgid "guestfs_inspect_list_applications"
30867 msgstr ""
30868
30869 #. type: verbatim
30870 #: ../src/guestfs-actions.pod:3733
30871 #, no-wrap
30872 msgid ""
30873 " struct guestfs_application_list *\n"
30874 " guestfs_inspect_list_applications (guestfs_h *g,\n"
30875 "                                    const char *root);\n"
30876 "\n"
30877 msgstr ""
30878
30879 #. type: textblock
30880 #: ../src/guestfs-actions.pod:3739
30881 msgid ""
30882 "I<Note:> This call works differently from other parts of the inspection "
30883 "API.  You have to call C<guestfs_inspect_os>, then "
30884 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
30885 "this.  Listing applications is a significantly more difficult operation "
30886 "which requires access to the full filesystem.  Also note that unlike the "
30887 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
30888 "the libguestfs handle, this call actually reads parts of the mounted "
30889 "filesystems during the call."
30890 msgstr ""
30891
30892 #. type: textblock
30893 #: ../src/guestfs-actions.pod:3829
30894 msgid ""
30895 "This function returns a C<struct guestfs_application_list *>, or NULL if "
30896 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
30897 "after use>."
30898 msgstr ""
30899
30900 #. type: textblock
30901 #: ../src/guestfs-actions.pod:3833
30902 msgid "(Added in 1.7.8)"
30903 msgstr "(Додано у 1.7.8)"
30904
30905 #. type: =head2
30906 #: ../src/guestfs-actions.pod:3835
30907 msgid "guestfs_inspect_os"
30908 msgstr ""
30909
30910 #. type: verbatim
30911 #: ../src/guestfs-actions.pod:3837
30912 #, no-wrap
30913 msgid ""
30914 " char **\n"
30915 " guestfs_inspect_os (guestfs_h *g);\n"
30916 "\n"
30917 msgstr ""
30918
30919 #. type: textblock
30920 #: ../src/guestfs-actions.pod:3853
30921 msgid ""
30922 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
30923 "functions in order to query further information about each operating system, "
30924 "such as the name and version."
30925 msgstr ""
30926
30927 #. type: textblock
30928 #: ../src/guestfs-actions.pod:3858
30929 msgid ""
30930 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
30931 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
30932 "the contents.  This should be called with no disks currently mounted.  The "
30933 "function may also use Augeas, so any existing Augeas handle will be closed."
30934 msgstr ""
30935
30936 #. type: textblock
30937 #: ../src/guestfs-actions.pod:3870 ../src/guestfs-actions.pod:4201
30938 #: ../src/guestfs-actions.pod:4296
30939 msgid "See also C<guestfs_list_filesystems>."
30940 msgstr ""
30941
30942 #. type: =head2
30943 #: ../src/guestfs-actions.pod:3878
30944 msgid "guestfs_is_blockdev"
30945 msgstr ""
30946
30947 #. type: verbatim
30948 #: ../src/guestfs-actions.pod:3880
30949 #, no-wrap
30950 msgid ""
30951 " int\n"
30952 " guestfs_is_blockdev (guestfs_h *g,\n"
30953 "                      const char *path);\n"
30954 "\n"
30955 msgstr ""
30956
30957 #. type: textblock
30958 #: ../src/guestfs-actions.pod:3887 ../src/guestfs-actions.pod:3916
30959 #: ../src/guestfs-actions.pod:3946 ../src/guestfs-actions.pod:3961
30960 #: ../src/guestfs-actions.pod:3977 ../src/guestfs-actions.pod:4033
30961 #: ../src/guestfs-actions.pod:4048
30962 msgid "See also C<guestfs_stat>."
30963 msgstr ""
30964
30965 #. type: textblock
30966 #: ../src/guestfs-actions.pod:3891 ../src/guestfs-actions.pod:3920
30967 #: ../src/guestfs-actions.pod:3965 ../src/guestfs-actions.pod:4037
30968 #: ../src/guestfs-actions.pod:4052
30969 msgid "(Added in 1.5.10)"
30970 msgstr "(Додано у 1.5.10)"
30971
30972 #. type: =head2
30973 #: ../src/guestfs-actions.pod:3893
30974 msgid "guestfs_is_busy"
30975 msgstr ""
30976
30977 #. type: verbatim
30978 #: ../src/guestfs-actions.pod:3895
30979 #, no-wrap
30980 msgid ""
30981 " int\n"
30982 " guestfs_is_busy (guestfs_h *g);\n"
30983 "\n"
30984 msgstr ""
30985
30986 #. type: =head2
30987 #: ../src/guestfs-actions.pod:3907
30988 msgid "guestfs_is_chardev"
30989 msgstr ""
30990
30991 #. type: verbatim
30992 #: ../src/guestfs-actions.pod:3909
30993 #, no-wrap
30994 msgid ""
30995 " int\n"
30996 " guestfs_is_chardev (guestfs_h *g,\n"
30997 "                     const char *path);\n"
30998 "\n"
30999 msgstr ""
31000
31001 #. type: =head2
31002 #: ../src/guestfs-actions.pod:3922
31003 msgid "guestfs_is_config"
31004 msgstr ""
31005
31006 #. type: verbatim
31007 #: ../src/guestfs-actions.pod:3924
31008 #, no-wrap
31009 msgid ""
31010 " int\n"
31011 " guestfs_is_config (guestfs_h *g);\n"
31012 "\n"
31013 msgstr ""
31014
31015 #. type: =head2
31016 #: ../src/guestfs-actions.pod:3936
31017 msgid "guestfs_is_dir"
31018 msgstr ""
31019
31020 #. type: verbatim
31021 #: ../src/guestfs-actions.pod:3938
31022 #, no-wrap
31023 msgid ""
31024 " int\n"
31025 " guestfs_is_dir (guestfs_h *g,\n"
31026 "                 const char *path);\n"
31027 "\n"
31028 msgstr ""
31029
31030 #. type: =head2
31031 #: ../src/guestfs-actions.pod:3952
31032 msgid "guestfs_is_fifo"
31033 msgstr ""
31034
31035 #. type: verbatim
31036 #: ../src/guestfs-actions.pod:3954
31037 #, no-wrap
31038 msgid ""
31039 " int\n"
31040 " guestfs_is_fifo (guestfs_h *g,\n"
31041 "                  const char *path);\n"
31042 "\n"
31043 msgstr ""
31044
31045 #. type: =head2
31046 #: ../src/guestfs-actions.pod:3967
31047 msgid "guestfs_is_file"
31048 msgstr ""
31049
31050 #. type: verbatim
31051 #: ../src/guestfs-actions.pod:3969
31052 #, no-wrap
31053 msgid ""
31054 " int\n"
31055 " guestfs_is_file (guestfs_h *g,\n"
31056 "                  const char *path);\n"
31057 "\n"
31058 msgstr ""
31059
31060 #. type: =head2
31061 #: ../src/guestfs-actions.pod:3983
31062 msgid "guestfs_is_launching"
31063 msgstr ""
31064
31065 #. type: verbatim
31066 #: ../src/guestfs-actions.pod:3985
31067 #, no-wrap
31068 msgid ""
31069 " int\n"
31070 " guestfs_is_launching (guestfs_h *g);\n"
31071 "\n"
31072 msgstr ""
31073
31074 #. type: =head2
31075 #: ../src/guestfs-actions.pod:3997
31076 msgid "guestfs_is_lv"
31077 msgstr ""
31078
31079 #. type: verbatim
31080 #: ../src/guestfs-actions.pod:3999
31081 #, no-wrap
31082 msgid ""
31083 " int\n"
31084 " guestfs_is_lv (guestfs_h *g,\n"
31085 "                const char *device);\n"
31086 "\n"
31087 msgstr ""
31088
31089 #. type: =head2
31090 #: ../src/guestfs-actions.pod:4010
31091 msgid "guestfs_is_ready"
31092 msgstr ""
31093
31094 #. type: verbatim
31095 #: ../src/guestfs-actions.pod:4012
31096 #, no-wrap
31097 msgid ""
31098 " int\n"
31099 " guestfs_is_ready (guestfs_h *g);\n"
31100 "\n"
31101 msgstr ""
31102
31103 #. type: =head2
31104 #: ../src/guestfs-actions.pod:4024
31105 msgid "guestfs_is_socket"
31106 msgstr ""
31107
31108 #. type: verbatim
31109 #: ../src/guestfs-actions.pod:4026
31110 #, no-wrap
31111 msgid ""
31112 " int\n"
31113 " guestfs_is_socket (guestfs_h *g,\n"
31114 "                    const char *path);\n"
31115 "\n"
31116 msgstr ""
31117
31118 #. type: =head2
31119 #: ../src/guestfs-actions.pod:4039
31120 msgid "guestfs_is_symlink"
31121 msgstr ""
31122
31123 #. type: verbatim
31124 #: ../src/guestfs-actions.pod:4041
31125 #, no-wrap
31126 msgid ""
31127 " int\n"
31128 " guestfs_is_symlink (guestfs_h *g,\n"
31129 "                     const char *path);\n"
31130 "\n"
31131 msgstr ""
31132
31133 #. type: =head2
31134 #: ../src/guestfs-actions.pod:4054
31135 msgid "guestfs_is_zero"
31136 msgstr ""
31137
31138 #. type: verbatim
31139 #: ../src/guestfs-actions.pod:4056
31140 #, no-wrap
31141 msgid ""
31142 " int\n"
31143 " guestfs_is_zero (guestfs_h *g,\n"
31144 "                  const char *path);\n"
31145 "\n"
31146 msgstr ""
31147
31148 #. type: textblock
31149 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:4079
31150 msgid "(Added in 1.11.8)"
31151 msgstr "(Додано у 1.11.8)"
31152
31153 #. type: =head2
31154 #: ../src/guestfs-actions.pod:4067
31155 msgid "guestfs_is_zero_device"
31156 msgstr ""
31157
31158 #. type: verbatim
31159 #: ../src/guestfs-actions.pod:4069
31160 #, no-wrap
31161 msgid ""
31162 " int\n"
31163 " guestfs_is_zero_device (guestfs_h *g,\n"
31164 "                         const char *device);\n"
31165 "\n"
31166 msgstr ""
31167
31168 #. type: =head2
31169 #: ../src/guestfs-actions.pod:4081
31170 msgid "guestfs_kill_subprocess"
31171 msgstr ""
31172
31173 #. type: verbatim
31174 #: ../src/guestfs-actions.pod:4083
31175 #, no-wrap
31176 msgid ""
31177 " int\n"
31178 " guestfs_kill_subprocess (guestfs_h *g);\n"
31179 "\n"
31180 msgstr ""
31181
31182 #. type: =head2
31183 #: ../src/guestfs-actions.pod:4092
31184 msgid "guestfs_launch"
31185 msgstr ""
31186
31187 #. type: verbatim
31188 #: ../src/guestfs-actions.pod:4094
31189 #, no-wrap
31190 msgid ""
31191 " int\n"
31192 " guestfs_launch (guestfs_h *g);\n"
31193 "\n"
31194 msgstr ""
31195
31196 #. type: =head2
31197 #: ../src/guestfs-actions.pod:4112
31198 msgid "guestfs_lchown"
31199 msgstr ""
31200
31201 #. type: verbatim
31202 #: ../src/guestfs-actions.pod:4114
31203 #, no-wrap
31204 msgid ""
31205 " int\n"
31206 " guestfs_lchown (guestfs_h *g,\n"
31207 "                 int owner,\n"
31208 "                 int group,\n"
31209 "                 const char *path);\n"
31210 "\n"
31211 msgstr ""
31212
31213 #. type: textblock
31214 #: ../src/guestfs-actions.pod:4120
31215 msgid ""
31216 "Change the file owner to C<owner> and group to C<group>.  This is like "
31217 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
31218 "changed, not the target."
31219 msgstr ""
31220
31221 #. type: =head2
31222 #: ../src/guestfs-actions.pod:4132
31223 msgid "guestfs_lgetxattr"
31224 msgstr ""
31225
31226 #. type: verbatim
31227 #: ../src/guestfs-actions.pod:4134
31228 #, no-wrap
31229 msgid ""
31230 " char *\n"
31231 " guestfs_lgetxattr (guestfs_h *g,\n"
31232 "                    const char *path,\n"
31233 "                    const char *name,\n"
31234 "                    size_t *size_r);\n"
31235 "\n"
31236 msgstr ""
31237
31238 #. type: textblock
31239 #: ../src/guestfs-actions.pod:4154
31240 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
31241 msgstr ""
31242
31243 #. type: =head2
31244 #: ../src/guestfs-actions.pod:4162
31245 msgid "guestfs_lgetxattrs"
31246 msgstr ""
31247
31248 #. type: verbatim
31249 #: ../src/guestfs-actions.pod:4164
31250 #, no-wrap
31251 msgid ""
31252 " struct guestfs_xattr_list *\n"
31253 " guestfs_lgetxattrs (guestfs_h *g,\n"
31254 "                     const char *path);\n"
31255 "\n"
31256 msgstr ""
31257
31258 #. type: textblock
31259 #: ../src/guestfs-actions.pod:4168
31260 msgid ""
31261 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
31262 "then it returns the extended attributes of the link itself."
31263 msgstr ""
31264
31265 #. type: =head2
31266 #: ../src/guestfs-actions.pod:4178
31267 msgid "guestfs_list_9p"
31268 msgstr ""
31269
31270 #. type: verbatim
31271 #: ../src/guestfs-actions.pod:4180
31272 #, no-wrap
31273 msgid ""
31274 " char **\n"
31275 " guestfs_list_9p (guestfs_h *g);\n"
31276 "\n"
31277 msgstr ""
31278
31279 #. type: =head2
31280 #: ../src/guestfs-actions.pod:4192
31281 msgid "guestfs_list_devices"
31282 msgstr ""
31283
31284 #. type: verbatim
31285 #: ../src/guestfs-actions.pod:4194
31286 #, no-wrap
31287 msgid ""
31288 " char **\n"
31289 " guestfs_list_devices (guestfs_h *g);\n"
31290 "\n"
31291 msgstr ""
31292
31293 #. type: =head2
31294 #: ../src/guestfs-actions.pod:4209
31295 msgid "guestfs_list_dm_devices"
31296 msgstr ""
31297
31298 #. type: verbatim
31299 #: ../src/guestfs-actions.pod:4211
31300 #, no-wrap
31301 msgid ""
31302 " char **\n"
31303 " guestfs_list_dm_devices (guestfs_h *g);\n"
31304 "\n"
31305 msgstr ""
31306
31307 #. type: textblock
31308 #: ../src/guestfs-actions.pod:4216
31309 msgid ""
31310 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
31311 "previous call to C<guestfs_luks_open>."
31312 msgstr ""
31313
31314 #. type: textblock
31315 #: ../src/guestfs-actions.pod:4219
31316 msgid ""
31317 "Device mapper devices which correspond to logical volumes are I<not> "
31318 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
31319 "volumes."
31320 msgstr ""
31321
31322 #. type: textblock
31323 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:5836
31324 msgid "(Added in 1.11.15)"
31325 msgstr "(Додано у 1.11.15)"
31326
31327 #. type: =head2
31328 #: ../src/guestfs-actions.pod:4229
31329 msgid "guestfs_list_filesystems"
31330 msgstr ""
31331
31332 #. type: verbatim
31333 #: ../src/guestfs-actions.pod:4231
31334 #, no-wrap
31335 msgid ""
31336 " char **\n"
31337 " guestfs_list_filesystems (guestfs_h *g);\n"
31338 "\n"
31339 msgstr ""
31340
31341 #. type: textblock
31342 #: ../src/guestfs-actions.pod:4251
31343 msgid ""
31344 "This command runs other libguestfs commands, which might include "
31345 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
31346 "soon after launch and only when nothing is mounted."
31347 msgstr ""
31348
31349 #. type: textblock
31350 #: ../src/guestfs-actions.pod:4255
31351 msgid ""
31352 "Not all of the filesystems returned will be mountable.  In particular, swap "
31353 "partitions are returned in the list.  Also this command does not check that "
31354 "each filesystem found is valid and mountable, and some filesystems might be "
31355 "mountable but require special options.  Filesystems may not all belong to a "
31356 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
31357 msgstr ""
31358
31359 #. type: textblock
31360 #: ../src/guestfs-actions.pod:4269 ../src/guestfs-actions.pod:6196
31361 msgid "(Added in 1.5.15)"
31362 msgstr "(Додано у 1.5.15)"
31363
31364 #. type: =head2
31365 #: ../src/guestfs-actions.pod:4271
31366 #, fuzzy
31367 #| msgid "guestfs_zero_device"
31368 msgid "guestfs_list_md_devices"
31369 msgstr "guestfs_zero_device"
31370
31371 #. type: verbatim
31372 #: ../src/guestfs-actions.pod:4273
31373 #, fuzzy, no-wrap
31374 #| msgid ""
31375 #| " char **\n"
31376 #| " guestfs_lvs (guestfs_h *g);\n"
31377 #| "\n"
31378 msgid ""
31379 " char **\n"
31380 " guestfs_list_md_devices (guestfs_h *g);\n"
31381 "\n"
31382 msgstr ""
31383 " char **\n"
31384 " guestfs_lvs (guestfs_h *g);\n"
31385 "\n"
31386
31387 #. type: textblock
31388 #: ../src/guestfs-actions.pod:4282 ../src/guestfs-actions.pod:7857
31389 #, fuzzy
31390 #| msgid "(Added in 1.5.4)"
31391 msgid "(Added in 1.15.4)"
31392 msgstr "(Додано у 1.5.4)"
31393
31394 #. type: =head2
31395 #: ../src/guestfs-actions.pod:4284
31396 msgid "guestfs_list_partitions"
31397 msgstr "guestfs_list_partitions"
31398
31399 #. type: verbatim
31400 #: ../src/guestfs-actions.pod:4286
31401 #, no-wrap
31402 msgid ""
31403 " char **\n"
31404 " guestfs_list_partitions (guestfs_h *g);\n"
31405 "\n"
31406 msgstr ""
31407 " char **\n"
31408 " guestfs_list_partitions (guestfs_h *g);\n"
31409 "\n"
31410
31411 #. type: textblock
31412 #: ../src/guestfs-actions.pod:4293
31413 msgid ""
31414 "This does not return logical volumes.  For that you will need to call "
31415 "C<guestfs_lvs>."
31416 msgstr ""
31417
31418 #. type: =head2
31419 #: ../src/guestfs-actions.pod:4304
31420 msgid "guestfs_ll"
31421 msgstr "guestfs_ll"
31422
31423 #. type: verbatim
31424 #: ../src/guestfs-actions.pod:4306
31425 #, no-wrap
31426 msgid ""
31427 " char *\n"
31428 " guestfs_ll (guestfs_h *g,\n"
31429 "             const char *directory);\n"
31430 "\n"
31431 msgstr ""
31432 " char *\n"
31433 " guestfs_ll (guestfs_h *g,\n"
31434 "             const char *directory);\n"
31435 "\n"
31436
31437 #. type: =head2
31438 #: ../src/guestfs-actions.pod:4321
31439 msgid "guestfs_ln"
31440 msgstr "guestfs_ln"
31441
31442 #. type: verbatim
31443 #: ../src/guestfs-actions.pod:4323
31444 #, no-wrap
31445 msgid ""
31446 " int\n"
31447 " guestfs_ln (guestfs_h *g,\n"
31448 "             const char *target,\n"
31449 "             const char *linkname);\n"
31450 "\n"
31451 msgstr ""
31452 " int\n"
31453 " guestfs_ln (guestfs_h *g,\n"
31454 "             const char *target,\n"
31455 "             const char *linkname);\n"
31456 "\n"
31457
31458 #. type: =head2
31459 #: ../src/guestfs-actions.pod:4334
31460 msgid "guestfs_ln_f"
31461 msgstr "guestfs_ln_f"
31462
31463 #. type: verbatim
31464 #: ../src/guestfs-actions.pod:4336
31465 #, no-wrap
31466 msgid ""
31467 " int\n"
31468 " guestfs_ln_f (guestfs_h *g,\n"
31469 "               const char *target,\n"
31470 "               const char *linkname);\n"
31471 "\n"
31472 msgstr ""
31473 " int\n"
31474 " guestfs_ln_f (guestfs_h *g,\n"
31475 "               const char *target,\n"
31476 "               const char *linkname);\n"
31477 "\n"
31478
31479 #. type: =head2
31480 #: ../src/guestfs-actions.pod:4348
31481 msgid "guestfs_ln_s"
31482 msgstr "guestfs_ln_s"
31483
31484 #. type: verbatim
31485 #: ../src/guestfs-actions.pod:4350
31486 #, no-wrap
31487 msgid ""
31488 " int\n"
31489 " guestfs_ln_s (guestfs_h *g,\n"
31490 "               const char *target,\n"
31491 "               const char *linkname);\n"
31492 "\n"
31493 msgstr ""
31494 " int\n"
31495 " guestfs_ln_s (guestfs_h *g,\n"
31496 "               const char *target,\n"
31497 "               const char *linkname);\n"
31498 "\n"
31499
31500 #. type: =head2
31501 #: ../src/guestfs-actions.pod:4361
31502 msgid "guestfs_ln_sf"
31503 msgstr "guestfs_ln_sf"
31504
31505 #. type: verbatim
31506 #: ../src/guestfs-actions.pod:4363
31507 #, no-wrap
31508 msgid ""
31509 " int\n"
31510 " guestfs_ln_sf (guestfs_h *g,\n"
31511 "                const char *target,\n"
31512 "                const char *linkname);\n"
31513 "\n"
31514 msgstr ""
31515 " int\n"
31516 " guestfs_ln_sf (guestfs_h *g,\n"
31517 "                const char *target,\n"
31518 "                const char *linkname);\n"
31519 "\n"
31520
31521 #. type: =head2
31522 #: ../src/guestfs-actions.pod:4375
31523 msgid "guestfs_lremovexattr"
31524 msgstr "guestfs_lremovexattr"
31525
31526 #. type: verbatim
31527 #: ../src/guestfs-actions.pod:4377
31528 #, no-wrap
31529 msgid ""
31530 " int\n"
31531 " guestfs_lremovexattr (guestfs_h *g,\n"
31532 "                       const char *xattr,\n"
31533 "                       const char *path);\n"
31534 "\n"
31535 msgstr ""
31536 " int\n"
31537 " guestfs_lremovexattr (guestfs_h *g,\n"
31538 "                       const char *xattr,\n"
31539 "                       const char *path);\n"
31540 "\n"
31541
31542 #. type: textblock
31543 #: ../src/guestfs-actions.pod:4382
31544 msgid ""
31545 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
31546 "link, then it removes an extended attribute of the link itself."
31547 msgstr ""
31548
31549 #. type: =head2
31550 #: ../src/guestfs-actions.pod:4390
31551 msgid "guestfs_ls"
31552 msgstr "guestfs_ls"
31553
31554 #. type: verbatim
31555 #: ../src/guestfs-actions.pod:4392
31556 #, no-wrap
31557 msgid ""
31558 " char **\n"
31559 " guestfs_ls (guestfs_h *g,\n"
31560 "             const char *directory);\n"
31561 "\n"
31562 msgstr ""
31563 " char **\n"
31564 " guestfs_ls (guestfs_h *g,\n"
31565 "             const char *directory);\n"
31566 "\n"
31567
31568 #. type: textblock
31569 #: ../src/guestfs-actions.pod:4400
31570 msgid ""
31571 "This command is mostly useful for interactive sessions.  Programs should "
31572 "probably use C<guestfs_readdir> instead."
31573 msgstr ""
31574
31575 #. type: =head2
31576 #: ../src/guestfs-actions.pod:4409
31577 msgid "guestfs_lsetxattr"
31578 msgstr "guestfs_lsetxattr"
31579
31580 #. type: verbatim
31581 #: ../src/guestfs-actions.pod:4411
31582 #, no-wrap
31583 msgid ""
31584 " int\n"
31585 " guestfs_lsetxattr (guestfs_h *g,\n"
31586 "                    const char *xattr,\n"
31587 "                    const char *val,\n"
31588 "                    int vallen,\n"
31589 "                    const char *path);\n"
31590 "\n"
31591 msgstr ""
31592 " int\n"
31593 " guestfs_lsetxattr (guestfs_h *g,\n"
31594 "                    const char *xattr,\n"
31595 "                    const char *val,\n"
31596 "                    int vallen,\n"
31597 "                    const char *path);\n"
31598 "\n"
31599
31600 #. type: textblock
31601 #: ../src/guestfs-actions.pod:4418
31602 msgid ""
31603 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
31604 "then it sets an extended attribute of the link itself."
31605 msgstr ""
31606
31607 #. type: =head2
31608 #: ../src/guestfs-actions.pod:4426
31609 msgid "guestfs_lstat"
31610 msgstr "guestfs_lstat"
31611
31612 #. type: verbatim
31613 #: ../src/guestfs-actions.pod:4428
31614 #, no-wrap
31615 msgid ""
31616 " struct guestfs_stat *\n"
31617 " guestfs_lstat (guestfs_h *g,\n"
31618 "                const char *path);\n"
31619 "\n"
31620 msgstr ""
31621 " struct guestfs_stat *\n"
31622 " guestfs_lstat (guestfs_h *g,\n"
31623 "                const char *path);\n"
31624 "\n"
31625
31626 #. type: textblock
31627 #: ../src/guestfs-actions.pod:4434
31628 msgid ""
31629 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
31630 "link, then the link is stat-ed, not the file it refers to."
31631 msgstr ""
31632
31633 #. type: textblock
31634 #: ../src/guestfs-actions.pod:4440 ../src/guestfs-actions.pod:7376
31635 msgid ""
31636 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
31637 "error.  I<The caller must call C<guestfs_free_stat> after use>."
31638 msgstr ""
31639
31640 #. type: textblock
31641 #: ../src/guestfs-actions.pod:4444 ../src/guestfs-actions.pod:7380
31642 #: ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7901
31643 msgid "(Added in 0.9.2)"
31644 msgstr "(Додано у 0.9.2)"
31645
31646 #. type: =head2
31647 #: ../src/guestfs-actions.pod:4446
31648 msgid "guestfs_lstatlist"
31649 msgstr "guestfs_lstatlist"
31650
31651 #. type: verbatim
31652 #: ../src/guestfs-actions.pod:4448
31653 #, no-wrap
31654 msgid ""
31655 " struct guestfs_stat_list *\n"
31656 " guestfs_lstatlist (guestfs_h *g,\n"
31657 "                    const char *path,\n"
31658 "                    char *const *names);\n"
31659 "\n"
31660 msgstr ""
31661 " struct guestfs_stat_list *\n"
31662 " guestfs_lstatlist (guestfs_h *g,\n"
31663 "                    const char *path,\n"
31664 "                    char *const *names);\n"
31665 "\n"
31666
31667 #. type: textblock
31668 #: ../src/guestfs-actions.pod:4453
31669 msgid ""
31670 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
31671 "files, where all files are in the directory C<path>.  C<names> is the list "
31672 "of files from this directory."
31673 msgstr ""
31674
31675 #. type: textblock
31676 #: ../src/guestfs-actions.pod:4462
31677 msgid ""
31678 "This call is intended for programs that want to efficiently list a directory "
31679 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
31680 "for a similarly efficient call for getting extended attributes.  Very long "
31681 "directory listings might cause the protocol message size to be exceeded, "
31682 "causing this call to fail.  The caller must split up such requests into "
31683 "smaller groups of names."
31684 msgstr ""
31685
31686 #. type: textblock
31687 #: ../src/guestfs-actions.pod:4470
31688 msgid ""
31689 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
31690 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
31691 msgstr ""
31692
31693 #. type: =head2
31694 #: ../src/guestfs-actions.pod:4476
31695 msgid "guestfs_luks_add_key"
31696 msgstr "guestfs_luks_add_key"
31697
31698 #. type: verbatim
31699 #: ../src/guestfs-actions.pod:4478
31700 #, no-wrap
31701 msgid ""
31702 " int\n"
31703 " guestfs_luks_add_key (guestfs_h *g,\n"
31704 "                       const char *device,\n"
31705 "                       const char *key,\n"
31706 "                       const char *newkey,\n"
31707 "                       int keyslot);\n"
31708 "\n"
31709 msgstr ""
31710 " int\n"
31711 " guestfs_luks_add_key (guestfs_h *g,\n"
31712 "                       const char *device,\n"
31713 "                       const char *key,\n"
31714 "                       const char *newkey,\n"
31715 "                       int keyslot);\n"
31716 "\n"
31717
31718 #. type: textblock
31719 #: ../src/guestfs-actions.pod:4490
31720 msgid ""
31721 "Note that if C<keyslot> already contains a key, then this command will "
31722 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
31723 msgstr ""
31724
31725 #. type: textblock
31726 #: ../src/guestfs-actions.pod:4496 ../src/guestfs-actions.pod:4533
31727 #: ../src/guestfs-actions.pod:4553 ../src/guestfs-actions.pod:4573
31728 #: ../src/guestfs-actions.pod:4608 ../src/guestfs-actions.pod:4627
31729 msgid ""
31730 "This function takes a key or passphrase parameter which could contain "
31731 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
31732 "information."
31733 msgstr ""
31734
31735 #. type: textblock
31736 #: ../src/guestfs-actions.pod:4500 ../src/guestfs-actions.pod:4537
31737 #: ../src/guestfs-actions.pod:4557 ../src/guestfs-actions.pod:4577
31738 msgid "(Added in 1.5.2)"
31739 msgstr "(Додано у 1.5.2)"
31740
31741 #. type: =head2
31742 #: ../src/guestfs-actions.pod:4502
31743 msgid "guestfs_luks_close"
31744 msgstr "guestfs_luks_close"
31745
31746 #. type: verbatim
31747 #: ../src/guestfs-actions.pod:4504
31748 #, no-wrap
31749 msgid ""
31750 " int\n"
31751 " guestfs_luks_close (guestfs_h *g,\n"
31752 "                     const char *device);\n"
31753 "\n"
31754 msgstr ""
31755 " int\n"
31756 " guestfs_luks_close (guestfs_h *g,\n"
31757 "                     const char *device);\n"
31758 "\n"
31759
31760 #. type: textblock
31761 #: ../src/guestfs-actions.pod:4508
31762 msgid ""
31763 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
31764 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
31765 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
31766 "underlying block device."
31767 msgstr ""
31768
31769 #. type: textblock
31770 #: ../src/guestfs-actions.pod:4516 ../src/guestfs-actions.pod:4612
31771 #: ../src/guestfs-actions.pod:4631 ../src/guestfs-actions.pod:4681
31772 #: ../src/guestfs-actions.pod:4726
31773 msgid "(Added in 1.5.1)"
31774 msgstr "(Додано у 1.5.1)"
31775
31776 #. type: =head2
31777 #: ../src/guestfs-actions.pod:4518
31778 msgid "guestfs_luks_format"
31779 msgstr "guestfs_luks_format"
31780
31781 #. type: verbatim
31782 #: ../src/guestfs-actions.pod:4520
31783 #, no-wrap
31784 msgid ""
31785 " int\n"
31786 " guestfs_luks_format (guestfs_h *g,\n"
31787 "                      const char *device,\n"
31788 "                      const char *key,\n"
31789 "                      int keyslot);\n"
31790 "\n"
31791 msgstr ""
31792 " int\n"
31793 " guestfs_luks_format (guestfs_h *g,\n"
31794 "                      const char *device,\n"
31795 "                      const char *key,\n"
31796 "                      int keyslot);\n"
31797 "\n"
31798
31799 #. type: =head2
31800 #: ../src/guestfs-actions.pod:4539
31801 msgid "guestfs_luks_format_cipher"
31802 msgstr "guestfs_luks_format_cipher"
31803
31804 #. type: verbatim
31805 #: ../src/guestfs-actions.pod:4541
31806 #, no-wrap
31807 msgid ""
31808 " int\n"
31809 " guestfs_luks_format_cipher (guestfs_h *g,\n"
31810 "                             const char *device,\n"
31811 "                             const char *key,\n"
31812 "                             int keyslot,\n"
31813 "                             const char *cipher);\n"
31814 "\n"
31815 msgstr ""
31816 " int\n"
31817 " guestfs_luks_format_cipher (guestfs_h *g,\n"
31818 "                             const char *device,\n"
31819 "                             const char *key,\n"
31820 "                             int keyslot,\n"
31821 "                             const char *cipher);\n"
31822 "\n"
31823
31824 #. type: textblock
31825 #: ../src/guestfs-actions.pod:4548
31826 msgid ""
31827 "This command is the same as C<guestfs_luks_format> but it also allows you to "
31828 "set the C<cipher> used."
31829 msgstr ""
31830
31831 #. type: =head2
31832 #: ../src/guestfs-actions.pod:4559
31833 msgid "guestfs_luks_kill_slot"
31834 msgstr "guestfs_luks_kill_slot"
31835
31836 #. type: verbatim
31837 #: ../src/guestfs-actions.pod:4561
31838 #, no-wrap
31839 msgid ""
31840 " int\n"
31841 " guestfs_luks_kill_slot (guestfs_h *g,\n"
31842 "                         const char *device,\n"
31843 "                         const char *key,\n"
31844 "                         int keyslot);\n"
31845 "\n"
31846 msgstr ""
31847 " int\n"
31848 " guestfs_luks_kill_slot (guestfs_h *g,\n"
31849 "                         const char *device,\n"
31850 "                         const char *key,\n"
31851 "                         int keyslot);\n"
31852 "\n"
31853
31854 #. type: =head2
31855 #: ../src/guestfs-actions.pod:4579
31856 msgid "guestfs_luks_open"
31857 msgstr "guestfs_luks_open"
31858
31859 #. type: verbatim
31860 #: ../src/guestfs-actions.pod:4581
31861 #, no-wrap
31862 msgid ""
31863 " int\n"
31864 " guestfs_luks_open (guestfs_h *g,\n"
31865 "                    const char *device,\n"
31866 "                    const char *key,\n"
31867 "                    const char *mapname);\n"
31868 "\n"
31869 msgstr ""
31870 " int\n"
31871 " guestfs_luks_open (guestfs_h *g,\n"
31872 "                    const char *device,\n"
31873 "                    const char *key,\n"
31874 "                    const char *mapname);\n"
31875 "\n"
31876
31877 #. type: textblock
31878 #: ../src/guestfs-actions.pod:4599
31879 msgid ""
31880 "If this block device contains LVM volume groups, then calling "
31881 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
31882 "visible."
31883 msgstr ""
31884
31885 #. type: textblock
31886 #: ../src/guestfs-actions.pod:4603
31887 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
31888 msgstr ""
31889
31890 #. type: =head2
31891 #: ../src/guestfs-actions.pod:4614
31892 msgid "guestfs_luks_open_ro"
31893 msgstr "guestfs_luks_open_ro"
31894
31895 #. type: verbatim
31896 #: ../src/guestfs-actions.pod:4616
31897 #, no-wrap
31898 msgid ""
31899 " int\n"
31900 " guestfs_luks_open_ro (guestfs_h *g,\n"
31901 "                       const char *device,\n"
31902 "                       const char *key,\n"
31903 "                       const char *mapname);\n"
31904 "\n"
31905 msgstr ""
31906 " int\n"
31907 " guestfs_luks_open_ro (guestfs_h *g,\n"
31908 "                       const char *device,\n"
31909 "                       const char *key,\n"
31910 "                       const char *mapname);\n"
31911 "\n"
31912
31913 #. type: textblock
31914 #: ../src/guestfs-actions.pod:4622
31915 msgid ""
31916 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
31917 "created."
31918 msgstr ""
31919
31920 #. type: =head2
31921 #: ../src/guestfs-actions.pod:4633
31922 msgid "guestfs_lvcreate"
31923 msgstr "guestfs_lvcreate"
31924
31925 #. type: verbatim
31926 #: ../src/guestfs-actions.pod:4635
31927 #, no-wrap
31928 msgid ""
31929 " int\n"
31930 " guestfs_lvcreate (guestfs_h *g,\n"
31931 "                   const char *logvol,\n"
31932 "                   const char *volgroup,\n"
31933 "                   int mbytes);\n"
31934 "\n"
31935 msgstr ""
31936 " int\n"
31937 " guestfs_lvcreate (guestfs_h *g,\n"
31938 "                   const char *logvol,\n"
31939 "                   const char *volgroup,\n"
31940 "                   int mbytes);\n"
31941 "\n"
31942
31943 #. type: =head2
31944 #: ../src/guestfs-actions.pod:4648
31945 msgid "guestfs_lvm_canonical_lv_name"
31946 msgstr "guestfs_lvm_canonical_lv_name"
31947
31948 #. type: verbatim
31949 #: ../src/guestfs-actions.pod:4650
31950 #, no-wrap
31951 msgid ""
31952 " char *\n"
31953 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
31954 "                                const char *lvname);\n"
31955 "\n"
31956 msgstr ""
31957 " char *\n"
31958 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
31959 "                                const char *lvname);\n"
31960 "\n"
31961
31962 #. type: textblock
31963 #: ../src/guestfs-actions.pod:4661
31964 msgid "See also C<guestfs_is_lv>."
31965 msgstr ""
31966
31967 #. type: textblock
31968 #: ../src/guestfs-actions.pod:4666
31969 msgid "(Added in 1.5.24)"
31970 msgstr "(Додано у 1.5.24)"
31971
31972 #. type: =head2
31973 #: ../src/guestfs-actions.pod:4668
31974 msgid "guestfs_lvm_clear_filter"
31975 msgstr "guestfs_lvm_clear_filter"
31976
31977 #. type: verbatim
31978 #: ../src/guestfs-actions.pod:4670
31979 #, no-wrap
31980 msgid ""
31981 " int\n"
31982 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
31983 "\n"
31984 msgstr ""
31985 " int\n"
31986 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
31987 "\n"
31988
31989 #. type: textblock
31990 #: ../src/guestfs-actions.pod:4673
31991 msgid ""
31992 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
31993 "see every block device."
31994 msgstr ""
31995
31996 #. type: =head2
31997 #: ../src/guestfs-actions.pod:4683
31998 msgid "guestfs_lvm_remove_all"
31999 msgstr "guestfs_lvm_remove_all"
32000
32001 #. type: verbatim
32002 #: ../src/guestfs-actions.pod:4685
32003 #, no-wrap
32004 msgid ""
32005 " int\n"
32006 " guestfs_lvm_remove_all (guestfs_h *g);\n"
32007 "\n"
32008 msgstr ""
32009 " int\n"
32010 " guestfs_lvm_remove_all (guestfs_h *g);\n"
32011 "\n"
32012
32013 #. type: =head2
32014 #: ../src/guestfs-actions.pod:4695
32015 msgid "guestfs_lvm_set_filter"
32016 msgstr "guestfs_lvm_set_filter"
32017
32018 #. type: verbatim
32019 #: ../src/guestfs-actions.pod:4697
32020 #, no-wrap
32021 msgid ""
32022 " int\n"
32023 " guestfs_lvm_set_filter (guestfs_h *g,\n"
32024 "                         char *const *devices);\n"
32025 "\n"
32026 msgstr ""
32027 " int\n"
32028 " guestfs_lvm_set_filter (guestfs_h *g,\n"
32029 "                         char *const *devices);\n"
32030 "\n"
32031
32032 #. type: =head2
32033 #: ../src/guestfs-actions.pod:4728
32034 msgid "guestfs_lvremove"
32035 msgstr "guestfs_lvremove"
32036
32037 #. type: verbatim
32038 #: ../src/guestfs-actions.pod:4730
32039 #, no-wrap
32040 msgid ""
32041 " int\n"
32042 " guestfs_lvremove (guestfs_h *g,\n"
32043 "                   const char *device);\n"
32044 "\n"
32045 msgstr ""
32046 " int\n"
32047 " guestfs_lvremove (guestfs_h *g,\n"
32048 "                   const char *device);\n"
32049 "\n"
32050
32051 #. type: textblock
32052 #: ../src/guestfs-actions.pod:4742 ../src/guestfs-actions.pod:6311
32053 #: ../src/guestfs-actions.pod:8271
32054 msgid "(Added in 1.0.13)"
32055 msgstr "(Додано у 1.0.13)"
32056
32057 #. type: =head2
32058 #: ../src/guestfs-actions.pod:4744
32059 msgid "guestfs_lvrename"
32060 msgstr "guestfs_lvrename"
32061
32062 #. type: verbatim
32063 #: ../src/guestfs-actions.pod:4746
32064 #, no-wrap
32065 msgid ""
32066 " int\n"
32067 " guestfs_lvrename (guestfs_h *g,\n"
32068 "                   const char *logvol,\n"
32069 "                   const char *newlogvol);\n"
32070 "\n"
32071 msgstr ""
32072 " int\n"
32073 " guestfs_lvrename (guestfs_h *g,\n"
32074 "                   const char *logvol,\n"
32075 "                   const char *newlogvol);\n"
32076 "\n"
32077
32078 #. type: textblock
32079 #: ../src/guestfs-actions.pod:4755 ../src/guestfs-actions.pod:8284
32080 msgid "(Added in 1.0.83)"
32081 msgstr "(Додано у 1.0.83)"
32082
32083 #. type: =head2
32084 #: ../src/guestfs-actions.pod:4757
32085 msgid "guestfs_lvresize"
32086 msgstr "guestfs_lvresize"
32087
32088 #. type: verbatim
32089 #: ../src/guestfs-actions.pod:4759
32090 #, no-wrap
32091 msgid ""
32092 " int\n"
32093 " guestfs_lvresize (guestfs_h *g,\n"
32094 "                   const char *device,\n"
32095 "                   int mbytes);\n"
32096 "\n"
32097 msgstr ""
32098 " int\n"
32099 " guestfs_lvresize (guestfs_h *g,\n"
32100 "                   const char *device,\n"
32101 "                   int mbytes);\n"
32102 "\n"
32103
32104 #. type: =head2
32105 #: ../src/guestfs-actions.pod:4772
32106 msgid "guestfs_lvresize_free"
32107 msgstr "guestfs_lvresize_free"
32108
32109 #. type: verbatim
32110 #: ../src/guestfs-actions.pod:4774
32111 #, no-wrap
32112 msgid ""
32113 " int\n"
32114 " guestfs_lvresize_free (guestfs_h *g,\n"
32115 "                        const char *lv,\n"
32116 "                        int percent);\n"
32117 "\n"
32118 msgstr ""
32119 " int\n"
32120 " guestfs_lvresize_free (guestfs_h *g,\n"
32121 "                        const char *lv,\n"
32122 "                        int percent);\n"
32123 "\n"
32124
32125 #. type: textblock
32126 #: ../src/guestfs-actions.pod:4787
32127 msgid "(Added in 1.3.3)"
32128 msgstr "(Додано у 1.3.3)"
32129
32130 #. type: =head2
32131 #: ../src/guestfs-actions.pod:4789
32132 msgid "guestfs_lvs"
32133 msgstr "guestfs_lvs"
32134
32135 #. type: verbatim
32136 #: ../src/guestfs-actions.pod:4791
32137 #, no-wrap
32138 msgid ""
32139 " char **\n"
32140 " guestfs_lvs (guestfs_h *g);\n"
32141 "\n"
32142 msgstr ""
32143 " char **\n"
32144 " guestfs_lvs (guestfs_h *g);\n"
32145 "\n"
32146
32147 #. type: textblock
32148 #: ../src/guestfs-actions.pod:4800
32149 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
32150 msgstr ""
32151
32152 #. type: =head2
32153 #: ../src/guestfs-actions.pod:4808
32154 msgid "guestfs_lvs_full"
32155 msgstr "guestfs_lvs_full"
32156
32157 #. type: verbatim
32158 #: ../src/guestfs-actions.pod:4810
32159 #, no-wrap
32160 msgid ""
32161 " struct guestfs_lvm_lv_list *\n"
32162 " guestfs_lvs_full (guestfs_h *g);\n"
32163 "\n"
32164 msgstr ""
32165 " struct guestfs_lvm_lv_list *\n"
32166 " guestfs_lvs_full (guestfs_h *g);\n"
32167 "\n"
32168
32169 #. type: textblock
32170 #: ../src/guestfs-actions.pod:4816
32171 msgid ""
32172 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
32173 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
32174 msgstr ""
32175
32176 #. type: =head2
32177 #: ../src/guestfs-actions.pod:4822
32178 msgid "guestfs_lvuuid"
32179 msgstr "guestfs_lvuuid"
32180
32181 #. type: verbatim
32182 #: ../src/guestfs-actions.pod:4824
32183 #, no-wrap
32184 msgid ""
32185 " char *\n"
32186 " guestfs_lvuuid (guestfs_h *g,\n"
32187 "                 const char *device);\n"
32188 "\n"
32189 msgstr ""
32190 " char *\n"
32191 " guestfs_lvuuid (guestfs_h *g,\n"
32192 "                 const char *device);\n"
32193 "\n"
32194
32195 #. type: =head2
32196 #: ../src/guestfs-actions.pod:4835
32197 msgid "guestfs_lxattrlist"
32198 msgstr "guestfs_lxattrlist"
32199
32200 #. type: verbatim
32201 #: ../src/guestfs-actions.pod:4837
32202 #, no-wrap
32203 msgid ""
32204 " struct guestfs_xattr_list *\n"
32205 " guestfs_lxattrlist (guestfs_h *g,\n"
32206 "                     const char *path,\n"
32207 "                     char *const *names);\n"
32208 "\n"
32209 msgstr ""
32210 " struct guestfs_xattr_list *\n"
32211 " guestfs_lxattrlist (guestfs_h *g,\n"
32212 "                     const char *path,\n"
32213 "                     char *const *names);\n"
32214 "\n"
32215
32216 #. type: textblock
32217 #: ../src/guestfs-actions.pod:4856
32218 msgid ""
32219 "This call is intended for programs that want to efficiently list a directory "
32220 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
32221 "a similarly efficient call for getting standard stats.  Very long directory "
32222 "listings might cause the protocol message size to be exceeded, causing this "
32223 "call to fail.  The caller must split up such requests into smaller groups of "
32224 "names."
32225 msgstr ""
32226
32227 #. type: =head2
32228 #: ../src/guestfs-actions.pod:4870
32229 #, fuzzy
32230 #| msgid "guestfs_create"
32231 msgid "guestfs_md_create"
32232 msgstr "guestfs_create"
32233
32234 #. type: verbatim
32235 #: ../src/guestfs-actions.pod:4872
32236 #, fuzzy, no-wrap
32237 #| msgid ""
32238 #| " int\n"
32239 #| " guestfs_mkfs_opts (guestfs_h *g,\n"
32240 #| "                    const char *fstype,\n"
32241 #| "                    const char *device,\n"
32242 #| "                    ...);\n"
32243 #| "\n"
32244 msgid ""
32245 " int\n"
32246 " guestfs_md_create (guestfs_h *g,\n"
32247 "                    const char *name,\n"
32248 "                    char *const *devices,\n"
32249 "                    ...);\n"
32250 "\n"
32251 msgstr ""
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
32259 #. type: verbatim
32260 #: ../src/guestfs-actions.pod:4883
32261 #, no-wrap
32262 msgid ""
32263 " GUESTFS_MD_CREATE_MISSINGBITMAP, int64_t missingbitmap,\n"
32264 " GUESTFS_MD_CREATE_NRDEVICES, int nrdevices,\n"
32265 " GUESTFS_MD_CREATE_SPARE, int spare,\n"
32266 " GUESTFS_MD_CREATE_CHUNK, int64_t chunk,\n"
32267 " GUESTFS_MD_CREATE_LEVEL, const char *level,\n"
32268 "\n"
32269 msgstr ""
32270
32271 #. type: =head2
32272 #: ../src/guestfs-actions.pod:4945
32273 #, fuzzy
32274 #| msgid "guestfs_create"
32275 msgid "guestfs_md_create_va"
32276 msgstr "guestfs_create"
32277
32278 #. type: verbatim
32279 #: ../src/guestfs-actions.pod:4947
32280 #, fuzzy, no-wrap
32281 #| msgid ""
32282 #| " int\n"
32283 #| " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32284 #| "                       const char *fstype,\n"
32285 #| "                       const char *device,\n"
32286 #| "                       va_list args);\n"
32287 #| "\n"
32288 msgid ""
32289 " int\n"
32290 " guestfs_md_create_va (guestfs_h *g,\n"
32291 "                       const char *name,\n"
32292 "                       char *const *devices,\n"
32293 "                       va_list args);\n"
32294 "\n"
32295 msgstr ""
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
32303 #. type: textblock
32304 #: ../src/guestfs-actions.pod:4953
32305 msgid "This is the \"va_list variant\" of L</guestfs_md_create>."
32306 msgstr ""
32307
32308 #. type: =head2
32309 #: ../src/guestfs-actions.pod:4957
32310 #, fuzzy
32311 #| msgid "guestfs_create"
32312 msgid "guestfs_md_create_argv"
32313 msgstr "guestfs_create"
32314
32315 #. type: verbatim
32316 #: ../src/guestfs-actions.pod:4959
32317 #, fuzzy, no-wrap
32318 #| msgid ""
32319 #| " int\n"
32320 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32321 #| "                         const char *fstype,\n"
32322 #| "                         const char *device,\n"
32323 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
32324 #| "\n"
32325 msgid ""
32326 " int\n"
32327 " guestfs_md_create_argv (guestfs_h *g,\n"
32328 "                         const char *name,\n"
32329 "                         char *const *devices,\n"
32330 "                         const struct guestfs_md_create_argv *optargs);\n"
32331 "\n"
32332 msgstr ""
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
32340 #. type: textblock
32341 #: ../src/guestfs-actions.pod:4965
32342 msgid "This is the \"argv variant\" of L</guestfs_md_create>."
32343 msgstr ""
32344
32345 #. type: =head2
32346 #: ../src/guestfs-actions.pod:4969
32347 #, fuzzy
32348 #| msgid "guestfs_aug_get"
32349 msgid "guestfs_md_detail"
32350 msgstr "guestfs_aug_get"
32351
32352 #. type: verbatim
32353 #: ../src/guestfs-actions.pod:4971
32354 #, fuzzy, no-wrap
32355 #| msgid ""
32356 #| " char *\n"
32357 #| " guestfs_aug_get (guestfs_h *g,\n"
32358 #| "                  const char *augpath);\n"
32359 #| "\n"
32360 msgid ""
32361 " char **\n"
32362 " guestfs_md_detail (guestfs_h *g,\n"
32363 "                    const char *md);\n"
32364 "\n"
32365 msgstr ""
32366 " char *\n"
32367 " guestfs_aug_get (guestfs_h *g,\n"
32368 "                  const char *augpath);\n"
32369 "\n"
32370
32371 #. type: =head2
32372 #: ../src/guestfs-actions.pod:5008
32373 #, fuzzy
32374 #| msgid "guestfs_mkdir_p"
32375 msgid "guestfs_md_stop"
32376 msgstr "guestfs_mkdir_p"
32377
32378 #. type: verbatim
32379 #: ../src/guestfs-actions.pod:5010
32380 #, fuzzy, no-wrap
32381 #| msgid ""
32382 #| " int\n"
32383 #| " guestfs_mkdir_p (guestfs_h *g,\n"
32384 #| "                  const char *path);\n"
32385 #| "\n"
32386 msgid ""
32387 " int\n"
32388 " guestfs_md_stop (guestfs_h *g,\n"
32389 "                  const char *md);\n"
32390 "\n"
32391 msgstr ""
32392 " int\n"
32393 " guestfs_mkdir_p (guestfs_h *g,\n"
32394 "                  const char *path);\n"
32395 "\n"
32396
32397 #. type: =head2
32398 #: ../src/guestfs-actions.pod:5029
32399 msgid "guestfs_mkdir"
32400 msgstr "guestfs_mkdir"
32401
32402 #. type: verbatim
32403 #: ../src/guestfs-actions.pod:5031
32404 #, no-wrap
32405 msgid ""
32406 " int\n"
32407 " guestfs_mkdir (guestfs_h *g,\n"
32408 "                const char *path);\n"
32409 "\n"
32410 msgstr ""
32411 " int\n"
32412 " guestfs_mkdir (guestfs_h *g,\n"
32413 "                const char *path);\n"
32414 "\n"
32415
32416 #. type: =head2
32417 #: ../src/guestfs-actions.pod:5041
32418 msgid "guestfs_mkdir_mode"
32419 msgstr "guestfs_mkdir_mode"
32420
32421 #. type: verbatim
32422 #: ../src/guestfs-actions.pod:5043
32423 #, no-wrap
32424 msgid ""
32425 " int\n"
32426 " guestfs_mkdir_mode (guestfs_h *g,\n"
32427 "                     const char *path,\n"
32428 "                     int mode);\n"
32429 "\n"
32430 msgstr ""
32431 " int\n"
32432 " guestfs_mkdir_mode (guestfs_h *g,\n"
32433 "                     const char *path,\n"
32434 "                     int mode);\n"
32435 "\n"
32436
32437 #. type: textblock
32438 #: ../src/guestfs-actions.pod:5055
32439 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
32440 msgstr ""
32441
32442 #. type: =head2
32443 #: ../src/guestfs-actions.pod:5061
32444 msgid "guestfs_mkdir_p"
32445 msgstr "guestfs_mkdir_p"
32446
32447 #. type: verbatim
32448 #: ../src/guestfs-actions.pod:5063
32449 #, no-wrap
32450 msgid ""
32451 " int\n"
32452 " guestfs_mkdir_p (guestfs_h *g,\n"
32453 "                  const char *path);\n"
32454 "\n"
32455 msgstr ""
32456 " int\n"
32457 " guestfs_mkdir_p (guestfs_h *g,\n"
32458 "                  const char *path);\n"
32459 "\n"
32460
32461 #. type: =head2
32462 #: ../src/guestfs-actions.pod:5074
32463 msgid "guestfs_mkdtemp"
32464 msgstr "guestfs_mkdtemp"
32465
32466 #. type: verbatim
32467 #: ../src/guestfs-actions.pod:5076
32468 #, no-wrap
32469 msgid ""
32470 " char *\n"
32471 " guestfs_mkdtemp (guestfs_h *g,\n"
32472 "                  const char *template);\n"
32473 "\n"
32474 msgstr ""
32475 " char *\n"
32476 " guestfs_mkdtemp (guestfs_h *g,\n"
32477 "                  const char *template);\n"
32478 "\n"
32479
32480 #. type: =head2
32481 #: ../src/guestfs-actions.pod:5104
32482 msgid "guestfs_mke2fs_J"
32483 msgstr "guestfs_mke2fs_J"
32484
32485 #. type: verbatim
32486 #: ../src/guestfs-actions.pod:5106
32487 #, no-wrap
32488 msgid ""
32489 " int\n"
32490 " guestfs_mke2fs_J (guestfs_h *g,\n"
32491 "                   const char *fstype,\n"
32492 "                   int blocksize,\n"
32493 "                   const char *device,\n"
32494 "                   const char *journal);\n"
32495 "\n"
32496 msgstr ""
32497 " int\n"
32498 " guestfs_mke2fs_J (guestfs_h *g,\n"
32499 "                   const char *fstype,\n"
32500 "                   int blocksize,\n"
32501 "                   const char *device,\n"
32502 "                   const char *journal);\n"
32503 "\n"
32504
32505 #. type: textblock
32506 #: ../src/guestfs-actions.pod:5119
32507 msgid "See also C<guestfs_mke2journal>."
32508 msgstr ""
32509
32510 #. type: textblock
32511 #: ../src/guestfs-actions.pod:5123 ../src/guestfs-actions.pod:5141
32512 #: ../src/guestfs-actions.pod:5159 ../src/guestfs-actions.pod:5175
32513 #: ../src/guestfs-actions.pod:5189 ../src/guestfs-actions.pod:5203
32514 #: ../src/guestfs-actions.pod:5262 ../src/guestfs-actions.pod:5539
32515 msgid "(Added in 1.0.68)"
32516 msgstr "(Додано у 1.0.68)"
32517
32518 #. type: =head2
32519 #: ../src/guestfs-actions.pod:5125
32520 msgid "guestfs_mke2fs_JL"
32521 msgstr "guestfs_mke2fs_JL"
32522
32523 #. type: verbatim
32524 #: ../src/guestfs-actions.pod:5127
32525 #, no-wrap
32526 msgid ""
32527 " int\n"
32528 " guestfs_mke2fs_JL (guestfs_h *g,\n"
32529 "                    const char *fstype,\n"
32530 "                    int blocksize,\n"
32531 "                    const char *device,\n"
32532 "                    const char *label);\n"
32533 "\n"
32534 msgstr ""
32535 " int\n"
32536 " guestfs_mke2fs_JL (guestfs_h *g,\n"
32537 "                    const char *fstype,\n"
32538 "                    int blocksize,\n"
32539 "                    const char *device,\n"
32540 "                    const char *label);\n"
32541 "\n"
32542
32543 #. type: textblock
32544 #: ../src/guestfs-actions.pod:5137
32545 msgid "See also C<guestfs_mke2journal_L>."
32546 msgstr ""
32547
32548 #. type: =head2
32549 #: ../src/guestfs-actions.pod:5143
32550 msgid "guestfs_mke2fs_JU"
32551 msgstr "guestfs_mke2fs_JU"
32552
32553 #. type: verbatim
32554 #: ../src/guestfs-actions.pod:5145
32555 #, no-wrap
32556 msgid ""
32557 " int\n"
32558 " guestfs_mke2fs_JU (guestfs_h *g,\n"
32559 "                    const char *fstype,\n"
32560 "                    int blocksize,\n"
32561 "                    const char *device,\n"
32562 "                    const char *uuid);\n"
32563 "\n"
32564 msgstr ""
32565 " int\n"
32566 " guestfs_mke2fs_JU (guestfs_h *g,\n"
32567 "                    const char *fstype,\n"
32568 "                    int blocksize,\n"
32569 "                    const char *device,\n"
32570 "                    const char *uuid);\n"
32571 "\n"
32572
32573 #. type: textblock
32574 #: ../src/guestfs-actions.pod:5155
32575 msgid "See also C<guestfs_mke2journal_U>."
32576 msgstr ""
32577
32578 #. type: =head2
32579 #: ../src/guestfs-actions.pod:5161
32580 msgid "guestfs_mke2journal"
32581 msgstr "guestfs_mke2journal"
32582
32583 #. type: verbatim
32584 #: ../src/guestfs-actions.pod:5163
32585 #, no-wrap
32586 msgid ""
32587 " int\n"
32588 " guestfs_mke2journal (guestfs_h *g,\n"
32589 "                      int blocksize,\n"
32590 "                      const char *device);\n"
32591 "\n"
32592 msgstr ""
32593 " int\n"
32594 " guestfs_mke2journal (guestfs_h *g,\n"
32595 "                      int blocksize,\n"
32596 "                      const char *device);\n"
32597 "\n"
32598
32599 #. type: =head2
32600 #: ../src/guestfs-actions.pod:5177
32601 msgid "guestfs_mke2journal_L"
32602 msgstr "guestfs_mke2journal_L"
32603
32604 #. type: verbatim
32605 #: ../src/guestfs-actions.pod:5179
32606 #, no-wrap
32607 msgid ""
32608 " int\n"
32609 " guestfs_mke2journal_L (guestfs_h *g,\n"
32610 "                        int blocksize,\n"
32611 "                        const char *label,\n"
32612 "                        const char *device);\n"
32613 "\n"
32614 msgstr ""
32615 " int\n"
32616 " guestfs_mke2journal_L (guestfs_h *g,\n"
32617 "                        int blocksize,\n"
32618 "                        const char *label,\n"
32619 "                        const char *device);\n"
32620 "\n"
32621
32622 #. type: =head2
32623 #: ../src/guestfs-actions.pod:5191
32624 msgid "guestfs_mke2journal_U"
32625 msgstr "guestfs_mke2journal_U"
32626
32627 #. type: verbatim
32628 #: ../src/guestfs-actions.pod:5193
32629 #, no-wrap
32630 msgid ""
32631 " int\n"
32632 " guestfs_mke2journal_U (guestfs_h *g,\n"
32633 "                        int blocksize,\n"
32634 "                        const char *uuid,\n"
32635 "                        const char *device);\n"
32636 "\n"
32637 msgstr ""
32638 " int\n"
32639 " guestfs_mke2journal_U (guestfs_h *g,\n"
32640 "                        int blocksize,\n"
32641 "                        const char *uuid,\n"
32642 "                        const char *device);\n"
32643 "\n"
32644
32645 #. type: =head2
32646 #: ../src/guestfs-actions.pod:5205
32647 msgid "guestfs_mkfifo"
32648 msgstr "guestfs_mkfifo"
32649
32650 #. type: verbatim
32651 #: ../src/guestfs-actions.pod:5207
32652 #, no-wrap
32653 msgid ""
32654 " int\n"
32655 " guestfs_mkfifo (guestfs_h *g,\n"
32656 "                 int mode,\n"
32657 "                 const char *path);\n"
32658 "\n"
32659 msgstr ""
32660 " int\n"
32661 " guestfs_mkfifo (guestfs_h *g,\n"
32662 "                 int mode,\n"
32663 "                 const char *path);\n"
32664 "\n"
32665
32666 #. type: textblock
32667 #: ../src/guestfs-actions.pod:5212
32668 msgid ""
32669 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
32670 "is just a convenient wrapper around C<guestfs_mknod>."
32671 msgstr ""
32672
32673 #. type: =head2
32674 #: ../src/guestfs-actions.pod:5222
32675 msgid "guestfs_mkfs"
32676 msgstr "guestfs_mkfs"
32677
32678 #. type: verbatim
32679 #: ../src/guestfs-actions.pod:5224
32680 #, no-wrap
32681 msgid ""
32682 " int\n"
32683 " guestfs_mkfs (guestfs_h *g,\n"
32684 "               const char *fstype,\n"
32685 "               const char *device);\n"
32686 "\n"
32687 msgstr ""
32688 " int\n"
32689 " guestfs_mkfs (guestfs_h *g,\n"
32690 "               const char *fstype,\n"
32691 "               const char *device);\n"
32692 "\n"
32693
32694 #. type: =head2
32695 #: ../src/guestfs-actions.pod:5237
32696 msgid "guestfs_mkfs_b"
32697 msgstr "guestfs_mkfs_b"
32698
32699 #. type: verbatim
32700 #: ../src/guestfs-actions.pod:5239
32701 #, no-wrap
32702 msgid ""
32703 " int\n"
32704 " guestfs_mkfs_b (guestfs_h *g,\n"
32705 "                 const char *fstype,\n"
32706 "                 int blocksize,\n"
32707 "                 const char *device);\n"
32708 "\n"
32709 msgstr ""
32710 " int\n"
32711 " guestfs_mkfs_b (guestfs_h *g,\n"
32712 "                 const char *fstype,\n"
32713 "                 int blocksize,\n"
32714 "                 const char *device);\n"
32715 "\n"
32716
32717 #. type: textblock
32718 #: ../src/guestfs-actions.pod:5245
32719 msgid ""
32720 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
32721 "call instead."
32722 msgstr ""
32723
32724 #. type: textblock
32725 #: ../src/guestfs-actions.pod:5252
32726 msgid ""
32727 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
32728 "block size of the resulting filesystem.  Supported block sizes depend on the "
32729 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
32730 msgstr ""
32731
32732 #. type: =head2
32733 #: ../src/guestfs-actions.pod:5264
32734 msgid "guestfs_mkfs_opts"
32735 msgstr "guestfs_mkfs_opts"
32736
32737 #. type: verbatim
32738 #: ../src/guestfs-actions.pod:5266
32739 #, no-wrap
32740 msgid ""
32741 " int\n"
32742 " guestfs_mkfs_opts (guestfs_h *g,\n"
32743 "                    const char *fstype,\n"
32744 "                    const char *device,\n"
32745 "                    ...);\n"
32746 "\n"
32747 msgstr ""
32748 " int\n"
32749 " guestfs_mkfs_opts (guestfs_h *g,\n"
32750 "                    const char *fstype,\n"
32751 "                    const char *device,\n"
32752 "                    ...);\n"
32753 "\n"
32754
32755 #. type: verbatim
32756 #: ../src/guestfs-actions.pod:5277
32757 #, no-wrap
32758 msgid ""
32759 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
32760 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
32761 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
32762 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
32763 "\n"
32764 msgstr ""
32765
32766 #. type: textblock
32767 #: ../src/guestfs-actions.pod:5325
32768 msgid "(Added in 1.7.19)"
32769 msgstr "(Додано у 1.7.19)"
32770
32771 #. type: =head2
32772 #: ../src/guestfs-actions.pod:5327
32773 msgid "guestfs_mkfs_opts_va"
32774 msgstr "guestfs_mkfs_opts_va"
32775
32776 #. type: verbatim
32777 #: ../src/guestfs-actions.pod:5329
32778 #, no-wrap
32779 msgid ""
32780 " int\n"
32781 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32782 "                       const char *fstype,\n"
32783 "                       const char *device,\n"
32784 "                       va_list args);\n"
32785 "\n"
32786 msgstr ""
32787 " int\n"
32788 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
32789 "                       const char *fstype,\n"
32790 "                       const char *device,\n"
32791 "                       va_list args);\n"
32792 "\n"
32793
32794 #. type: textblock
32795 #: ../src/guestfs-actions.pod:5335
32796 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
32797 msgstr ""
32798
32799 #. type: =head2
32800 #: ../src/guestfs-actions.pod:5339
32801 msgid "guestfs_mkfs_opts_argv"
32802 msgstr "guestfs_mkfs_opts_argv"
32803
32804 #. type: verbatim
32805 #: ../src/guestfs-actions.pod:5341
32806 #, no-wrap
32807 msgid ""
32808 " int\n"
32809 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32810 "                         const char *fstype,\n"
32811 "                         const char *device,\n"
32812 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
32813 "\n"
32814 msgstr ""
32815 " int\n"
32816 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
32817 "                         const char *fstype,\n"
32818 "                         const char *device,\n"
32819 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
32820 "\n"
32821
32822 #. type: textblock
32823 #: ../src/guestfs-actions.pod:5347
32824 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
32825 msgstr ""
32826
32827 #. type: =head2
32828 #: ../src/guestfs-actions.pod:5351
32829 msgid "guestfs_mkmountpoint"
32830 msgstr "guestfs_mkmountpoint"
32831
32832 #. type: verbatim
32833 #: ../src/guestfs-actions.pod:5353
32834 #, no-wrap
32835 msgid ""
32836 " int\n"
32837 " guestfs_mkmountpoint (guestfs_h *g,\n"
32838 "                       const char *exemptpath);\n"
32839 "\n"
32840 msgstr ""
32841 " int\n"
32842 " guestfs_mkmountpoint (guestfs_h *g,\n"
32843 "                       const char *exemptpath);\n"
32844 "\n"
32845
32846 #. type: textblock
32847 #: ../src/guestfs-actions.pod:5357
32848 msgid ""
32849 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
32850 "that can be used to create extra mountpoints before mounting the first "
32851 "filesystem."
32852 msgstr ""
32853
32854 #. type: textblock
32855 #: ../src/guestfs-actions.pod:5381
32856 msgid ""
32857 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
32858 "may get unexpected errors if you try to mix these calls.  It is safest to "
32859 "manually unmount filesystems and remove mountpoints after use."
32860 msgstr ""
32861
32862 #. type: textblock
32863 #: ../src/guestfs-actions.pod:5385
32864 msgid ""
32865 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
32866 "first, so for this to work for manual mountpoints, you must ensure that the "
32867 "innermost mountpoints have the longest pathnames, as in the example code "
32868 "above."
32869 msgstr ""
32870
32871 #. type: textblock
32872 #: ../src/guestfs-actions.pod:5392
32873 msgid ""
32874 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
32875 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
32876 "can also trigger these issues."
32877 msgstr ""
32878
32879 #. type: textblock
32880 #: ../src/guestfs-actions.pod:5398 ../src/guestfs-actions.pod:5704
32881 #: ../src/guestfs-actions.pod:6731
32882 msgid "(Added in 1.0.62)"
32883 msgstr "(Додано у 1.0.62)"
32884
32885 #. type: =head2
32886 #: ../src/guestfs-actions.pod:5400
32887 msgid "guestfs_mknod"
32888 msgstr ""
32889
32890 #. type: verbatim
32891 #: ../src/guestfs-actions.pod:5402
32892 #, no-wrap
32893 msgid ""
32894 " int\n"
32895 " guestfs_mknod (guestfs_h *g,\n"
32896 "                int mode,\n"
32897 "                int devmajor,\n"
32898 "                int devminor,\n"
32899 "                const char *path);\n"
32900 "\n"
32901 msgstr ""
32902
32903 #. type: textblock
32904 #: ../src/guestfs-actions.pod:5417
32905 msgid ""
32906 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
32907 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
32908 "regular file).  These constants are available in the standard Linux header "
32909 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
32910 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
32911 "the appropriate constant for you."
32912 msgstr ""
32913
32914 #. type: =head2
32915 #: ../src/guestfs-actions.pod:5431
32916 msgid "guestfs_mknod_b"
32917 msgstr ""
32918
32919 #. type: verbatim
32920 #: ../src/guestfs-actions.pod:5433
32921 #, no-wrap
32922 msgid ""
32923 " int\n"
32924 " guestfs_mknod_b (guestfs_h *g,\n"
32925 "                  int mode,\n"
32926 "                  int devmajor,\n"
32927 "                  int devminor,\n"
32928 "                  const char *path);\n"
32929 "\n"
32930 msgstr ""
32931
32932 #. type: textblock
32933 #: ../src/guestfs-actions.pod:5440
32934 msgid ""
32935 "This call creates a block device node called C<path> with mode C<mode> and "
32936 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
32937 "wrapper around C<guestfs_mknod>."
32938 msgstr ""
32939
32940 #. type: =head2
32941 #: ../src/guestfs-actions.pod:5450
32942 msgid "guestfs_mknod_c"
32943 msgstr ""
32944
32945 #. type: verbatim
32946 #: ../src/guestfs-actions.pod:5452
32947 #, no-wrap
32948 msgid ""
32949 " int\n"
32950 " guestfs_mknod_c (guestfs_h *g,\n"
32951 "                  int mode,\n"
32952 "                  int devmajor,\n"
32953 "                  int devminor,\n"
32954 "                  const char *path);\n"
32955 "\n"
32956 msgstr ""
32957
32958 #. type: textblock
32959 #: ../src/guestfs-actions.pod:5459
32960 msgid ""
32961 "This call creates a char device node called C<path> with mode C<mode> and "
32962 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
32963 "wrapper around C<guestfs_mknod>."
32964 msgstr ""
32965
32966 #. type: =head2
32967 #: ../src/guestfs-actions.pod:5469
32968 msgid "guestfs_mkswap"
32969 msgstr ""
32970
32971 #. type: verbatim
32972 #: ../src/guestfs-actions.pod:5471
32973 #, no-wrap
32974 msgid ""
32975 " int\n"
32976 " guestfs_mkswap (guestfs_h *g,\n"
32977 "                 const char *device);\n"
32978 "\n"
32979 msgstr ""
32980
32981 #. type: =head2
32982 #: ../src/guestfs-actions.pod:5481
32983 msgid "guestfs_mkswap_L"
32984 msgstr ""
32985
32986 #. type: verbatim
32987 #: ../src/guestfs-actions.pod:5483
32988 #, no-wrap
32989 msgid ""
32990 " int\n"
32991 " guestfs_mkswap_L (guestfs_h *g,\n"
32992 "                   const char *label,\n"
32993 "                   const char *device);\n"
32994 "\n"
32995 msgstr ""
32996
32997 #. type: =head2
32998 #: ../src/guestfs-actions.pod:5498
32999 msgid "guestfs_mkswap_U"
33000 msgstr ""
33001
33002 #. type: verbatim
33003 #: ../src/guestfs-actions.pod:5500
33004 #, no-wrap
33005 msgid ""
33006 " int\n"
33007 " guestfs_mkswap_U (guestfs_h *g,\n"
33008 "                   const char *uuid,\n"
33009 "                   const char *device);\n"
33010 "\n"
33011 msgstr ""
33012
33013 #. type: =head2
33014 #: ../src/guestfs-actions.pod:5511
33015 msgid "guestfs_mkswap_file"
33016 msgstr ""
33017
33018 #. type: verbatim
33019 #: ../src/guestfs-actions.pod:5513
33020 #, no-wrap
33021 msgid ""
33022 " int\n"
33023 " guestfs_mkswap_file (guestfs_h *g,\n"
33024 "                      const char *path);\n"
33025 "\n"
33026 msgstr ""
33027
33028 #. type: textblock
33029 #: ../src/guestfs-actions.pod:5519
33030 msgid ""
33031 "This command just writes a swap file signature to an existing file.  To "
33032 "create the file itself, use something like C<guestfs_fallocate>."
33033 msgstr ""
33034
33035 #. type: =head2
33036 #: ../src/guestfs-actions.pod:5526
33037 msgid "guestfs_modprobe"
33038 msgstr ""
33039
33040 #. type: verbatim
33041 #: ../src/guestfs-actions.pod:5528
33042 #, no-wrap
33043 msgid ""
33044 " int\n"
33045 " guestfs_modprobe (guestfs_h *g,\n"
33046 "                   const char *modulename);\n"
33047 "\n"
33048 msgstr ""
33049
33050 #. type: =head2
33051 #: ../src/guestfs-actions.pod:5541
33052 msgid "guestfs_mount"
33053 msgstr ""
33054
33055 #. type: verbatim
33056 #: ../src/guestfs-actions.pod:5543
33057 #, no-wrap
33058 msgid ""
33059 " int\n"
33060 " guestfs_mount (guestfs_h *g,\n"
33061 "                const char *device,\n"
33062 "                const char *mountpoint);\n"
33063 "\n"
33064 msgstr ""
33065
33066 #. type: textblock
33067 #: ../src/guestfs-actions.pod:5562
33068 msgid ""
33069 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
33070 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
33071 "problems for users.  If your program might need to work with older versions "
33072 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
33073 "for the first parameter if you don't want any options)."
33074 msgstr ""
33075
33076 #. type: =head2
33077 #: ../src/guestfs-actions.pod:5573
33078 msgid "guestfs_mount_9p"
33079 msgstr ""
33080
33081 #. type: verbatim
33082 #: ../src/guestfs-actions.pod:5575
33083 #, no-wrap
33084 msgid ""
33085 " int\n"
33086 " guestfs_mount_9p (guestfs_h *g,\n"
33087 "                   const char *mounttag,\n"
33088 "                   const char *mountpoint,\n"
33089 "                   ...);\n"
33090 "\n"
33091 msgstr ""
33092
33093 #. type: verbatim
33094 #: ../src/guestfs-actions.pod:5586
33095 #, no-wrap
33096 msgid ""
33097 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
33098 "\n"
33099 msgstr ""
33100
33101 #. type: =head2
33102 #: ../src/guestfs-actions.pod:5599
33103 msgid "guestfs_mount_9p_va"
33104 msgstr ""
33105
33106 #. type: verbatim
33107 #: ../src/guestfs-actions.pod:5601
33108 #, no-wrap
33109 msgid ""
33110 " int\n"
33111 " guestfs_mount_9p_va (guestfs_h *g,\n"
33112 "                      const char *mounttag,\n"
33113 "                      const char *mountpoint,\n"
33114 "                      va_list args);\n"
33115 "\n"
33116 msgstr ""
33117
33118 #. type: textblock
33119 #: ../src/guestfs-actions.pod:5607
33120 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
33121 msgstr ""
33122
33123 #. type: =head2
33124 #: ../src/guestfs-actions.pod:5611
33125 msgid "guestfs_mount_9p_argv"
33126 msgstr ""
33127
33128 #. type: verbatim
33129 #: ../src/guestfs-actions.pod:5613
33130 #, no-wrap
33131 msgid ""
33132 " int\n"
33133 " guestfs_mount_9p_argv (guestfs_h *g,\n"
33134 "                        const char *mounttag,\n"
33135 "                        const char *mountpoint,\n"
33136 "                        const struct guestfs_mount_9p_argv *optargs);\n"
33137 "\n"
33138 msgstr ""
33139
33140 #. type: textblock
33141 #: ../src/guestfs-actions.pod:5619
33142 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
33143 msgstr ""
33144
33145 #. type: =head2
33146 #: ../src/guestfs-actions.pod:5623
33147 msgid "guestfs_mount_loop"
33148 msgstr ""
33149
33150 #. type: verbatim
33151 #: ../src/guestfs-actions.pod:5625
33152 #, no-wrap
33153 msgid ""
33154 " int\n"
33155 " guestfs_mount_loop (guestfs_h *g,\n"
33156 "                     const char *file,\n"
33157 "                     const char *mountpoint);\n"
33158 "\n"
33159 msgstr ""
33160
33161 #. type: =head2
33162 #: ../src/guestfs-actions.pod:5638
33163 msgid "guestfs_mount_options"
33164 msgstr ""
33165
33166 #. type: verbatim
33167 #: ../src/guestfs-actions.pod:5640
33168 #, no-wrap
33169 msgid ""
33170 " int\n"
33171 " guestfs_mount_options (guestfs_h *g,\n"
33172 "                        const char *options,\n"
33173 "                        const char *device,\n"
33174 "                        const char *mountpoint);\n"
33175 "\n"
33176 msgstr ""
33177
33178 #. type: textblock
33179 #: ../src/guestfs-actions.pod:5646
33180 msgid ""
33181 "This is the same as the C<guestfs_mount> command, but it allows you to set "
33182 "the mount options as for the L<mount(8)> I<-o> flag."
33183 msgstr ""
33184
33185 #. type: textblock
33186 #: ../src/guestfs-actions.pod:5656 ../src/guestfs-actions.pod:5670
33187 #: ../src/guestfs-actions.pod:5687
33188 msgid "(Added in 1.0.10)"
33189 msgstr "(Додано у 1.0.10)"
33190
33191 #. type: =head2
33192 #: ../src/guestfs-actions.pod:5658
33193 msgid "guestfs_mount_ro"
33194 msgstr ""
33195
33196 #. type: verbatim
33197 #: ../src/guestfs-actions.pod:5660
33198 #, no-wrap
33199 msgid ""
33200 " int\n"
33201 " guestfs_mount_ro (guestfs_h *g,\n"
33202 "                   const char *device,\n"
33203 "                   const char *mountpoint);\n"
33204 "\n"
33205 msgstr ""
33206
33207 #. type: textblock
33208 #: ../src/guestfs-actions.pod:5665
33209 msgid ""
33210 "This is the same as the C<guestfs_mount> command, but it mounts the "
33211 "filesystem with the read-only (I<-o ro>) flag."
33212 msgstr ""
33213
33214 #. type: =head2
33215 #: ../src/guestfs-actions.pod:5672
33216 msgid "guestfs_mount_vfs"
33217 msgstr ""
33218
33219 #. type: verbatim
33220 #: ../src/guestfs-actions.pod:5674
33221 #, no-wrap
33222 msgid ""
33223 " int\n"
33224 " guestfs_mount_vfs (guestfs_h *g,\n"
33225 "                    const char *options,\n"
33226 "                    const char *vfstype,\n"
33227 "                    const char *device,\n"
33228 "                    const char *mountpoint);\n"
33229 "\n"
33230 msgstr ""
33231
33232 #. type: textblock
33233 #: ../src/guestfs-actions.pod:5681
33234 msgid ""
33235 "This is the same as the C<guestfs_mount> command, but it allows you to set "
33236 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
33237 "t> flags."
33238 msgstr ""
33239
33240 #. type: =head2
33241 #: ../src/guestfs-actions.pod:5689
33242 msgid "guestfs_mountpoints"
33243 msgstr ""
33244
33245 #. type: verbatim
33246 #: ../src/guestfs-actions.pod:5691
33247 #, no-wrap
33248 msgid ""
33249 " char **\n"
33250 " guestfs_mountpoints (guestfs_h *g);\n"
33251 "\n"
33252 msgstr ""
33253
33254 #. type: textblock
33255 #: ../src/guestfs-actions.pod:5694
33256 msgid ""
33257 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
33258 "devices.  This one returns a hash table (map) of device name to directory "
33259 "where the device is mounted."
33260 msgstr ""
33261
33262 #. type: =head2
33263 #: ../src/guestfs-actions.pod:5706
33264 msgid "guestfs_mounts"
33265 msgstr ""
33266
33267 #. type: verbatim
33268 #: ../src/guestfs-actions.pod:5708
33269 #, no-wrap
33270 msgid ""
33271 " char **\n"
33272 " guestfs_mounts (guestfs_h *g);\n"
33273 "\n"
33274 msgstr ""
33275
33276 #. type: textblock
33277 #: ../src/guestfs-actions.pod:5716
33278 msgid "See also: C<guestfs_mountpoints>"
33279 msgstr ""
33280
33281 #. type: =head2
33282 #: ../src/guestfs-actions.pod:5724
33283 msgid "guestfs_mv"
33284 msgstr ""
33285
33286 #. type: verbatim
33287 #: ../src/guestfs-actions.pod:5726
33288 #, no-wrap
33289 msgid ""
33290 " int\n"
33291 " guestfs_mv (guestfs_h *g,\n"
33292 "             const char *src,\n"
33293 "             const char *dest);\n"
33294 "\n"
33295 msgstr ""
33296
33297 #. type: =head2
33298 #: ../src/guestfs-actions.pod:5738
33299 msgid "guestfs_ntfs_3g_probe"
33300 msgstr ""
33301
33302 #. type: verbatim
33303 #: ../src/guestfs-actions.pod:5740
33304 #, no-wrap
33305 msgid ""
33306 " int\n"
33307 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
33308 "                        int rw,\n"
33309 "                        const char *device);\n"
33310 "\n"
33311 msgstr ""
33312
33313 #. type: textblock
33314 #: ../src/guestfs-actions.pod:5759
33315 msgid "(Added in 1.0.43)"
33316 msgstr "(Додано у 1.0.43)"
33317
33318 #. type: =head2
33319 #: ../src/guestfs-actions.pod:5761
33320 msgid "guestfs_ntfsresize"
33321 msgstr ""
33322
33323 #. type: verbatim
33324 #: ../src/guestfs-actions.pod:5763
33325 #, no-wrap
33326 msgid ""
33327 " int\n"
33328 " guestfs_ntfsresize (guestfs_h *g,\n"
33329 "                     const char *device);\n"
33330 "\n"
33331 msgstr ""
33332
33333 #. type: textblock
33334 #: ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5867
33335 msgid ""
33336 "I<This function is deprecated.> In new code, use the L</"
33337 "guestfs_ntfsresize_opts> call instead."
33338 msgstr ""
33339
33340 #. type: =head2
33341 #: ../src/guestfs-actions.pod:5791
33342 msgid "guestfs_ntfsresize_opts"
33343 msgstr ""
33344
33345 #. type: verbatim
33346 #: ../src/guestfs-actions.pod:5793
33347 #, no-wrap
33348 msgid ""
33349 " int\n"
33350 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
33351 "                          const char *device,\n"
33352 "                          ...);\n"
33353 "\n"
33354 msgstr ""
33355
33356 #. type: verbatim
33357 #: ../src/guestfs-actions.pod:5803
33358 #, no-wrap
33359 msgid ""
33360 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
33361 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
33362 "\n"
33363 msgstr ""
33364
33365 #. type: textblock
33366 #: ../src/guestfs-actions.pod:5823
33367 msgid ""
33368 "After the resize operation, the filesystem is always marked as requiring a "
33369 "consistency check (for safety).  You have to boot into Windows to perform "
33370 "this check and clear this condition.  If you I<don't> set the C<force> "
33371 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
33372 "times on a single filesystem without booting into Windows between each "
33373 "resize."
33374 msgstr ""
33375
33376 #. type: =head2
33377 #: ../src/guestfs-actions.pod:5838
33378 msgid "guestfs_ntfsresize_opts_va"
33379 msgstr ""
33380
33381 #. type: verbatim
33382 #: ../src/guestfs-actions.pod:5840
33383 #, no-wrap
33384 msgid ""
33385 " int\n"
33386 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
33387 "                             const char *device,\n"
33388 "                             va_list args);\n"
33389 "\n"
33390 msgstr ""
33391
33392 #. type: textblock
33393 #: ../src/guestfs-actions.pod:5845
33394 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
33395 msgstr ""
33396
33397 #. type: =head2
33398 #: ../src/guestfs-actions.pod:5849
33399 msgid "guestfs_ntfsresize_opts_argv"
33400 msgstr ""
33401
33402 #. type: verbatim
33403 #: ../src/guestfs-actions.pod:5851
33404 #, no-wrap
33405 msgid ""
33406 " int\n"
33407 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
33408 "                               const char *device,\n"
33409 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
33410 "\n"
33411 msgstr ""
33412
33413 #. type: textblock
33414 #: ../src/guestfs-actions.pod:5856
33415 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
33416 msgstr ""
33417
33418 #. type: =head2
33419 #: ../src/guestfs-actions.pod:5860
33420 msgid "guestfs_ntfsresize_size"
33421 msgstr ""
33422
33423 #. type: verbatim
33424 #: ../src/guestfs-actions.pod:5862
33425 #, no-wrap
33426 msgid ""
33427 " int\n"
33428 " guestfs_ntfsresize_size (guestfs_h *g,\n"
33429 "                          const char *device,\n"
33430 "                          int64_t size);\n"
33431 "\n"
33432 msgstr ""
33433
33434 #. type: textblock
33435 #: ../src/guestfs-actions.pod:5874
33436 msgid ""
33437 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
33438 "to specify the new size (in bytes) explicitly."
33439 msgstr ""
33440
33441 #. type: textblock
33442 #: ../src/guestfs-actions.pod:5879 ../src/guestfs-actions.pod:6338
33443 #: ../src/guestfs-actions.pod:6411 ../src/guestfs-actions.pod:6679
33444 #: ../src/guestfs-actions.pod:8428
33445 msgid "(Added in 1.3.14)"
33446 msgstr "(Додано у 1.3.14)"
33447
33448 #. type: =head2
33449 #: ../src/guestfs-actions.pod:5881
33450 msgid "guestfs_part_add"
33451 msgstr ""
33452
33453 #. type: verbatim
33454 #: ../src/guestfs-actions.pod:5883
33455 #, no-wrap
33456 msgid ""
33457 " int\n"
33458 " guestfs_part_add (guestfs_h *g,\n"
33459 "                   const char *device,\n"
33460 "                   const char *prlogex,\n"
33461 "                   int64_t startsect,\n"
33462 "                   int64_t endsect);\n"
33463 "\n"
33464 msgstr ""
33465
33466 #. type: textblock
33467 #: ../src/guestfs-actions.pod:5890
33468 msgid ""
33469 "This command adds a partition to C<device>.  If there is no partition table "
33470 "on the device, call C<guestfs_part_init> first."
33471 msgstr ""
33472
33473 #. type: textblock
33474 #: ../src/guestfs-actions.pod:5902
33475 msgid ""
33476 "Creating a partition which covers the whole disk is not so easy.  Use "
33477 "C<guestfs_part_disk> to do that."
33478 msgstr ""
33479
33480 #. type: textblock
33481 #: ../src/guestfs-actions.pod:5907 ../src/guestfs-actions.pod:5942
33482 #: ../src/guestfs-actions.pod:5995 ../src/guestfs-actions.pod:6079
33483 #: ../src/guestfs-actions.pod:6117 ../src/guestfs-actions.pod:6136
33484 #: ../src/guestfs-actions.pod:6176
33485 msgid "(Added in 1.0.78)"
33486 msgstr "(Додано у 1.0.78)"
33487
33488 #. type: =head2
33489 #: ../src/guestfs-actions.pod:5909
33490 msgid "guestfs_part_del"
33491 msgstr ""
33492
33493 #. type: verbatim
33494 #: ../src/guestfs-actions.pod:5911
33495 #, no-wrap
33496 msgid ""
33497 " int\n"
33498 " guestfs_part_del (guestfs_h *g,\n"
33499 "                   const char *device,\n"
33500 "                   int partnum);\n"
33501 "\n"
33502 msgstr ""
33503
33504 #. type: =head2
33505 #: ../src/guestfs-actions.pod:5926
33506 msgid "guestfs_part_disk"
33507 msgstr ""
33508
33509 #. type: verbatim
33510 #: ../src/guestfs-actions.pod:5928
33511 #, no-wrap
33512 msgid ""
33513 " int\n"
33514 " guestfs_part_disk (guestfs_h *g,\n"
33515 "                    const char *device,\n"
33516 "                    const char *parttype);\n"
33517 "\n"
33518 msgstr ""
33519
33520 #. type: textblock
33521 #: ../src/guestfs-actions.pod:5933
33522 msgid ""
33523 "This command is simply a combination of C<guestfs_part_init> followed by "
33524 "C<guestfs_part_add> to create a single primary partition covering the whole "
33525 "disk."
33526 msgstr ""
33527
33528 #. type: textblock
33529 #: ../src/guestfs-actions.pod:5937
33530 msgid ""
33531 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
33532 "possible values are described in C<guestfs_part_init>."
33533 msgstr ""
33534
33535 #. type: =head2
33536 #: ../src/guestfs-actions.pod:5944
33537 msgid "guestfs_part_get_bootable"
33538 msgstr ""
33539
33540 #. type: verbatim
33541 #: ../src/guestfs-actions.pod:5946
33542 #, no-wrap
33543 msgid ""
33544 " int\n"
33545 " guestfs_part_get_bootable (guestfs_h *g,\n"
33546 "                            const char *device,\n"
33547 "                            int partnum);\n"
33548 "\n"
33549 msgstr ""
33550
33551 #. type: textblock
33552 #: ../src/guestfs-actions.pod:5954
33553 msgid "See also C<guestfs_part_set_bootable>."
33554 msgstr ""
33555
33556 #. type: =head2
33557 #: ../src/guestfs-actions.pod:5960
33558 msgid "guestfs_part_get_mbr_id"
33559 msgstr ""
33560
33561 #. type: verbatim
33562 #: ../src/guestfs-actions.pod:5962
33563 #, no-wrap
33564 msgid ""
33565 " int\n"
33566 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
33567 "                          const char *device,\n"
33568 "                          int partnum);\n"
33569 "\n"
33570 msgstr ""
33571
33572 #. type: textblock
33573 #: ../src/guestfs-actions.pod:5970 ../src/guestfs-actions.pod:6152
33574 msgid ""
33575 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
33576 "undefined results for other partition table types (see "
33577 "C<guestfs_part_get_parttype>)."
33578 msgstr ""
33579
33580 #. type: =head2
33581 #: ../src/guestfs-actions.pod:5978
33582 msgid "guestfs_part_get_parttype"
33583 msgstr ""
33584
33585 #. type: verbatim
33586 #: ../src/guestfs-actions.pod:5980
33587 #, no-wrap
33588 msgid ""
33589 " char *\n"
33590 " guestfs_part_get_parttype (guestfs_h *g,\n"
33591 "                            const char *device);\n"
33592 "\n"
33593 msgstr ""
33594
33595 #. type: textblock
33596 #: ../src/guestfs-actions.pod:5987
33597 msgid ""
33598 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
33599 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
33600 "possible, although unusual.  See C<guestfs_part_init> for a full list."
33601 msgstr ""
33602
33603 #. type: =head2
33604 #: ../src/guestfs-actions.pod:5997
33605 msgid "guestfs_part_init"
33606 msgstr ""
33607
33608 #. type: verbatim
33609 #: ../src/guestfs-actions.pod:5999
33610 #, no-wrap
33611 msgid ""
33612 " int\n"
33613 " guestfs_part_init (guestfs_h *g,\n"
33614 "                    const char *device,\n"
33615 "                    const char *parttype);\n"
33616 "\n"
33617 msgstr ""
33618
33619 #. type: textblock
33620 #: ../src/guestfs-actions.pod:6008
33621 msgid ""
33622 "Initially there are no partitions.  Following this, you should call "
33623 "C<guestfs_part_add> for each partition required."
33624 msgstr ""
33625
33626 #. type: =head2
33627 #: ../src/guestfs-actions.pod:6081
33628 msgid "guestfs_part_list"
33629 msgstr "guestfs_part_list"
33630
33631 #. type: verbatim
33632 #: ../src/guestfs-actions.pod:6083
33633 #, no-wrap
33634 msgid ""
33635 " struct guestfs_partition_list *\n"
33636 " guestfs_part_list (guestfs_h *g,\n"
33637 "                    const char *device);\n"
33638 "\n"
33639 msgstr ""
33640 " struct guestfs_partition_list *\n"
33641 " guestfs_part_list (guestfs_h *g,\n"
33642 "                    const char *device);\n"
33643 "\n"
33644
33645 #. type: textblock
33646 #: ../src/guestfs-actions.pod:6100
33647 msgid ""
33648 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
33649 "the device's sector size, see C<guestfs_blockdev_getss>."
33650 msgstr ""
33651
33652 #. type: textblock
33653 #: ../src/guestfs-actions.pod:6113
33654 msgid ""
33655 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
33656 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
33657 "use>."
33658 msgstr ""
33659
33660 #. type: =head2
33661 #: ../src/guestfs-actions.pod:6119
33662 msgid "guestfs_part_set_bootable"
33663 msgstr ""
33664
33665 #. type: verbatim
33666 #: ../src/guestfs-actions.pod:6121
33667 #, no-wrap
33668 msgid ""
33669 " int\n"
33670 " guestfs_part_set_bootable (guestfs_h *g,\n"
33671 "                            const char *device,\n"
33672 "                            int partnum,\n"
33673 "                            int bootable);\n"
33674 "\n"
33675 msgstr ""
33676
33677 #. type: =head2
33678 #: ../src/guestfs-actions.pod:6138
33679 msgid "guestfs_part_set_mbr_id"
33680 msgstr ""
33681
33682 #. type: verbatim
33683 #: ../src/guestfs-actions.pod:6140
33684 #, no-wrap
33685 msgid ""
33686 " int\n"
33687 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
33688 "                          const char *device,\n"
33689 "                          int partnum,\n"
33690 "                          int idbyte);\n"
33691 "\n"
33692 msgstr ""
33693
33694 #. type: =head2
33695 #: ../src/guestfs-actions.pod:6160
33696 msgid "guestfs_part_set_name"
33697 msgstr ""
33698
33699 #. type: verbatim
33700 #: ../src/guestfs-actions.pod:6162
33701 #, no-wrap
33702 msgid ""
33703 " int\n"
33704 " guestfs_part_set_name (guestfs_h *g,\n"
33705 "                        const char *device,\n"
33706 "                        int partnum,\n"
33707 "                        const char *name);\n"
33708 "\n"
33709 msgstr ""
33710
33711 #. type: =head2
33712 #: ../src/guestfs-actions.pod:6178
33713 msgid "guestfs_part_to_dev"
33714 msgstr ""
33715
33716 #. type: verbatim
33717 #: ../src/guestfs-actions.pod:6180
33718 #, no-wrap
33719 msgid ""
33720 " char *\n"
33721 " guestfs_part_to_dev (guestfs_h *g,\n"
33722 "                      const char *partition);\n"
33723 "\n"
33724 msgstr ""
33725
33726 #. type: textblock
33727 #: ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6207
33728 msgid ""
33729 "The named partition must exist, for example as a string returned from "
33730 "C<guestfs_list_partitions>."
33731 msgstr ""
33732
33733 #. type: textblock
33734 #: ../src/guestfs-actions.pod:6191
33735 msgid "See also C<guestfs_part_to_partnum>."
33736 msgstr ""
33737
33738 #. type: =head2
33739 #: ../src/guestfs-actions.pod:6198
33740 msgid "guestfs_part_to_partnum"
33741 msgstr ""
33742
33743 #. type: verbatim
33744 #: ../src/guestfs-actions.pod:6200
33745 #, no-wrap
33746 msgid ""
33747 " int\n"
33748 " guestfs_part_to_partnum (guestfs_h *g,\n"
33749 "                          const char *partition);\n"
33750 "\n"
33751 msgstr ""
33752
33753 #. type: textblock
33754 #: ../src/guestfs-actions.pod:6210
33755 msgid "See also C<guestfs_part_to_dev>."
33756 msgstr ""
33757
33758 #. type: =head2
33759 #: ../src/guestfs-actions.pod:6216
33760 msgid "guestfs_ping_daemon"
33761 msgstr ""
33762
33763 #. type: verbatim
33764 #: ../src/guestfs-actions.pod:6218
33765 #, no-wrap
33766 msgid ""
33767 " int\n"
33768 " guestfs_ping_daemon (guestfs_h *g);\n"
33769 "\n"
33770 msgstr ""
33771
33772 #. type: =head2
33773 #: ../src/guestfs-actions.pod:6230
33774 msgid "guestfs_pread"
33775 msgstr ""
33776
33777 #. type: verbatim
33778 #: ../src/guestfs-actions.pod:6232
33779 #, no-wrap
33780 msgid ""
33781 " char *\n"
33782 " guestfs_pread (guestfs_h *g,\n"
33783 "                const char *path,\n"
33784 "                int count,\n"
33785 "                int64_t offset,\n"
33786 "                size_t *size_r);\n"
33787 "\n"
33788 msgstr ""
33789
33790 #. type: textblock
33791 #: ../src/guestfs-actions.pod:6245
33792 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
33793 msgstr ""
33794
33795 #. type: =head2
33796 #: ../src/guestfs-actions.pod:6256
33797 msgid "guestfs_pread_device"
33798 msgstr ""
33799
33800 #. type: verbatim
33801 #: ../src/guestfs-actions.pod:6258
33802 #, no-wrap
33803 msgid ""
33804 " char *\n"
33805 " guestfs_pread_device (guestfs_h *g,\n"
33806 "                       const char *device,\n"
33807 "                       int count,\n"
33808 "                       int64_t offset,\n"
33809 "                       size_t *size_r);\n"
33810 "\n"
33811 msgstr ""
33812
33813 #. type: textblock
33814 #: ../src/guestfs-actions.pod:6271
33815 msgid "See also C<guestfs_pread>."
33816 msgstr ""
33817
33818 #. type: textblock
33819 #: ../src/guestfs-actions.pod:6280
33820 msgid "(Added in 1.5.21)"
33821 msgstr "(Додано у 1.5.21)"
33822
33823 #. type: =head2
33824 #: ../src/guestfs-actions.pod:6282
33825 msgid "guestfs_pvcreate"
33826 msgstr ""
33827
33828 #. type: verbatim
33829 #: ../src/guestfs-actions.pod:6284
33830 #, no-wrap
33831 msgid ""
33832 " int\n"
33833 " guestfs_pvcreate (guestfs_h *g,\n"
33834 "                   const char *device);\n"
33835 "\n"
33836 msgstr ""
33837
33838 #. type: =head2
33839 #: ../src/guestfs-actions.pod:6296
33840 msgid "guestfs_pvremove"
33841 msgstr ""
33842
33843 #. type: verbatim
33844 #: ../src/guestfs-actions.pod:6298
33845 #, no-wrap
33846 msgid ""
33847 " int\n"
33848 " guestfs_pvremove (guestfs_h *g,\n"
33849 "                   const char *device);\n"
33850 "\n"
33851 msgstr ""
33852
33853 #. type: =head2
33854 #: ../src/guestfs-actions.pod:6313
33855 msgid "guestfs_pvresize"
33856 msgstr ""
33857
33858 #. type: verbatim
33859 #: ../src/guestfs-actions.pod:6315
33860 #, no-wrap
33861 msgid ""
33862 " int\n"
33863 " guestfs_pvresize (guestfs_h *g,\n"
33864 "                   const char *device);\n"
33865 "\n"
33866 msgstr ""
33867
33868 #. type: =head2
33869 #: ../src/guestfs-actions.pod:6326
33870 msgid "guestfs_pvresize_size"
33871 msgstr ""
33872
33873 #. type: verbatim
33874 #: ../src/guestfs-actions.pod:6328
33875 #, no-wrap
33876 msgid ""
33877 " int\n"
33878 " guestfs_pvresize_size (guestfs_h *g,\n"
33879 "                        const char *device,\n"
33880 "                        int64_t size);\n"
33881 "\n"
33882 msgstr ""
33883
33884 #. type: textblock
33885 #: ../src/guestfs-actions.pod:6333
33886 msgid ""
33887 "This command is the same as C<guestfs_pvresize> except that it allows you to "
33888 "specify the new size (in bytes) explicitly."
33889 msgstr ""
33890
33891 #. type: =head2
33892 #: ../src/guestfs-actions.pod:6340
33893 msgid "guestfs_pvs"
33894 msgstr ""
33895
33896 #. type: verbatim
33897 #: ../src/guestfs-actions.pod:6342
33898 #, no-wrap
33899 msgid ""
33900 " char **\n"
33901 " guestfs_pvs (guestfs_h *g);\n"
33902 "\n"
33903 msgstr ""
33904
33905 #. type: textblock
33906 #: ../src/guestfs-actions.pod:6351
33907 msgid "See also C<guestfs_pvs_full>."
33908 msgstr ""
33909
33910 #. type: =head2
33911 #: ../src/guestfs-actions.pod:6359
33912 msgid "guestfs_pvs_full"
33913 msgstr ""
33914
33915 #. type: verbatim
33916 #: ../src/guestfs-actions.pod:6361
33917 #, no-wrap
33918 msgid ""
33919 " struct guestfs_lvm_pv_list *\n"
33920 " guestfs_pvs_full (guestfs_h *g);\n"
33921 "\n"
33922 msgstr ""
33923
33924 #. type: textblock
33925 #: ../src/guestfs-actions.pod:6367
33926 msgid ""
33927 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
33928 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
33929 msgstr ""
33930
33931 #. type: =head2
33932 #: ../src/guestfs-actions.pod:6373
33933 msgid "guestfs_pvuuid"
33934 msgstr ""
33935
33936 #. type: verbatim
33937 #: ../src/guestfs-actions.pod:6375
33938 #, no-wrap
33939 msgid ""
33940 " char *\n"
33941 " guestfs_pvuuid (guestfs_h *g,\n"
33942 "                 const char *device);\n"
33943 "\n"
33944 msgstr ""
33945
33946 #. type: =head2
33947 #: ../src/guestfs-actions.pod:6386
33948 msgid "guestfs_pwrite"
33949 msgstr ""
33950
33951 #. type: verbatim
33952 #: ../src/guestfs-actions.pod:6388
33953 #, no-wrap
33954 msgid ""
33955 " int\n"
33956 " guestfs_pwrite (guestfs_h *g,\n"
33957 "                 const char *path,\n"
33958 "                 const char *content,\n"
33959 "                 size_t content_size,\n"
33960 "                 int64_t offset);\n"
33961 "\n"
33962 msgstr ""
33963
33964 #. type: textblock
33965 #: ../src/guestfs-actions.pod:6404
33966 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
33967 msgstr ""
33968
33969 #. type: =head2
33970 #: ../src/guestfs-actions.pod:6413
33971 msgid "guestfs_pwrite_device"
33972 msgstr ""
33973
33974 #. type: verbatim
33975 #: ../src/guestfs-actions.pod:6415
33976 #, no-wrap
33977 msgid ""
33978 " int\n"
33979 " guestfs_pwrite_device (guestfs_h *g,\n"
33980 "                        const char *device,\n"
33981 "                        const char *content,\n"
33982 "                        size_t content_size,\n"
33983 "                        int64_t offset);\n"
33984 "\n"
33985 msgstr ""
33986
33987 #. type: textblock
33988 #: ../src/guestfs-actions.pod:6430
33989 msgid "See also C<guestfs_pwrite>."
33990 msgstr ""
33991
33992 #. type: textblock
33993 #: ../src/guestfs-actions.pod:6437
33994 msgid "(Added in 1.5.20)"
33995 msgstr "(Додано у 1.5.20)"
33996
33997 #. type: =head2
33998 #: ../src/guestfs-actions.pod:6439
33999 msgid "guestfs_read_file"
34000 msgstr ""
34001
34002 #. type: verbatim
34003 #: ../src/guestfs-actions.pod:6441
34004 #, no-wrap
34005 msgid ""
34006 " char *\n"
34007 " guestfs_read_file (guestfs_h *g,\n"
34008 "                    const char *path,\n"
34009 "                    size_t *size_r);\n"
34010 "\n"
34011 msgstr ""
34012
34013 #. type: textblock
34014 #: ../src/guestfs-actions.pod:6449
34015 msgid ""
34016 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
34017 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
34018 "function is limited in the total size of file that can be handled."
34019 msgstr ""
34020
34021 #. type: textblock
34022 #: ../src/guestfs-actions.pod:6461
34023 msgid "(Added in 1.0.63)"
34024 msgstr "(Додано у 1.0.63)"
34025
34026 #. type: =head2
34027 #: ../src/guestfs-actions.pod:6463
34028 msgid "guestfs_read_lines"
34029 msgstr ""
34030
34031 #. type: verbatim
34032 #: ../src/guestfs-actions.pod:6465
34033 #, no-wrap
34034 msgid ""
34035 " char **\n"
34036 " guestfs_read_lines (guestfs_h *g,\n"
34037 "                     const char *path);\n"
34038 "\n"
34039 msgstr ""
34040
34041 #. type: textblock
34042 #: ../src/guestfs-actions.pod:6474
34043 msgid ""
34044 "Note that this function cannot correctly handle binary files (specifically, "
34045 "files containing C<\\0> character which is treated as end of line).  For "
34046 "those you need to use the C<guestfs_read_file> function which has a more "
34047 "complex interface."
34048 msgstr ""
34049
34050 #. type: =head2
34051 #: ../src/guestfs-actions.pod:6485
34052 msgid "guestfs_readdir"
34053 msgstr ""
34054
34055 #. type: verbatim
34056 #: ../src/guestfs-actions.pod:6487
34057 #, no-wrap
34058 msgid ""
34059 " struct guestfs_dirent_list *\n"
34060 " guestfs_readdir (guestfs_h *g,\n"
34061 "                  const char *dir);\n"
34062 "\n"
34063 msgstr ""
34064
34065 #. type: textblock
34066 #: ../src/guestfs-actions.pod:6541
34067 msgid ""
34068 "This function is primarily intended for use by programs.  To get a simple "
34069 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
34070 "consumption, use C<guestfs_ll>."
34071 msgstr ""
34072
34073 #. type: textblock
34074 #: ../src/guestfs-actions.pod:6545
34075 msgid ""
34076 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
34077 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
34078 msgstr ""
34079
34080 #. type: =head2
34081 #: ../src/guestfs-actions.pod:6551
34082 msgid "guestfs_readlink"
34083 msgstr ""
34084
34085 #. type: verbatim
34086 #: ../src/guestfs-actions.pod:6553
34087 #, no-wrap
34088 msgid ""
34089 " char *\n"
34090 " guestfs_readlink (guestfs_h *g,\n"
34091 "                   const char *path);\n"
34092 "\n"
34093 msgstr ""
34094
34095 #. type: =head2
34096 #: ../src/guestfs-actions.pod:6564
34097 msgid "guestfs_readlinklist"
34098 msgstr ""
34099
34100 #. type: verbatim
34101 #: ../src/guestfs-actions.pod:6566
34102 #, no-wrap
34103 msgid ""
34104 " char **\n"
34105 " guestfs_readlinklist (guestfs_h *g,\n"
34106 "                       const char *path,\n"
34107 "                       char *const *names);\n"
34108 "\n"
34109 msgstr ""
34110
34111 #. type: =head2
34112 #: ../src/guestfs-actions.pod:6599
34113 msgid "guestfs_realpath"
34114 msgstr ""
34115
34116 #. type: verbatim
34117 #: ../src/guestfs-actions.pod:6601
34118 #, no-wrap
34119 msgid ""
34120 " char *\n"
34121 " guestfs_realpath (guestfs_h *g,\n"
34122 "                   const char *path);\n"
34123 "\n"
34124 msgstr ""
34125
34126 #. type: =head2
34127 #: ../src/guestfs-actions.pod:6613
34128 msgid "guestfs_removexattr"
34129 msgstr ""
34130
34131 #. type: verbatim
34132 #: ../src/guestfs-actions.pod:6615
34133 #, no-wrap
34134 msgid ""
34135 " int\n"
34136 " guestfs_removexattr (guestfs_h *g,\n"
34137 "                      const char *xattr,\n"
34138 "                      const char *path);\n"
34139 "\n"
34140 msgstr ""
34141
34142 #. type: textblock
34143 #: ../src/guestfs-actions.pod:6623
34144 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
34145 msgstr ""
34146
34147 #. type: =head2
34148 #: ../src/guestfs-actions.pod:6629
34149 msgid "guestfs_resize2fs"
34150 msgstr ""
34151
34152 #. type: verbatim
34153 #: ../src/guestfs-actions.pod:6631
34154 #, no-wrap
34155 msgid ""
34156 " int\n"
34157 " guestfs_resize2fs (guestfs_h *g,\n"
34158 "                    const char *device);\n"
34159 "\n"
34160 msgstr ""
34161
34162 #. type: textblock
34163 #: ../src/guestfs-actions.pod:6638
34164 msgid ""
34165 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
34166 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
34167 "sometimes gives an error about this and sometimes not.  In any case, it is "
34168 "always safe to call C<guestfs_e2fsck_f> before calling this function."
34169 msgstr ""
34170
34171 #. type: =head2
34172 #: ../src/guestfs-actions.pod:6648
34173 msgid "guestfs_resize2fs_M"
34174 msgstr ""
34175
34176 #. type: verbatim
34177 #: ../src/guestfs-actions.pod:6650
34178 #, no-wrap
34179 msgid ""
34180 " int\n"
34181 " guestfs_resize2fs_M (guestfs_h *g,\n"
34182 "                      const char *device);\n"
34183 "\n"
34184 msgstr ""
34185
34186 #. type: textblock
34187 #: ../src/guestfs-actions.pod:6654
34188 msgid ""
34189 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
34190 "resized to its minimum size.  This works like the I<-M> option to the "
34191 "C<resize2fs> command."
34192 msgstr ""
34193
34194 #. type: textblock
34195 #: ../src/guestfs-actions.pod:6658
34196 msgid ""
34197 "To get the resulting size of the filesystem you should call "
34198 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
34199 "These two numbers, multiplied together, give the resulting size of the "
34200 "minimal filesystem in bytes."
34201 msgstr ""
34202
34203 #. type: =head2
34204 #: ../src/guestfs-actions.pod:6667
34205 msgid "guestfs_resize2fs_size"
34206 msgstr ""
34207
34208 #. type: verbatim
34209 #: ../src/guestfs-actions.pod:6669
34210 #, no-wrap
34211 msgid ""
34212 " int\n"
34213 " guestfs_resize2fs_size (guestfs_h *g,\n"
34214 "                         const char *device,\n"
34215 "                         int64_t size);\n"
34216 "\n"
34217 msgstr ""
34218
34219 #. type: textblock
34220 #: ../src/guestfs-actions.pod:6674
34221 msgid ""
34222 "This command is the same as C<guestfs_resize2fs> except that it allows you "
34223 "to specify the new size (in bytes) explicitly."
34224 msgstr ""
34225
34226 #. type: =head2
34227 #: ../src/guestfs-actions.pod:6681
34228 msgid "guestfs_rm"
34229 msgstr ""
34230
34231 #. type: verbatim
34232 #: ../src/guestfs-actions.pod:6683
34233 #, no-wrap
34234 msgid ""
34235 " int\n"
34236 " guestfs_rm (guestfs_h *g,\n"
34237 "             const char *path);\n"
34238 "\n"
34239 msgstr ""
34240
34241 #. type: =head2
34242 #: ../src/guestfs-actions.pod:6693
34243 msgid "guestfs_rm_rf"
34244 msgstr ""
34245
34246 #. type: verbatim
34247 #: ../src/guestfs-actions.pod:6695
34248 #, no-wrap
34249 msgid ""
34250 " int\n"
34251 " guestfs_rm_rf (guestfs_h *g,\n"
34252 "                const char *path);\n"
34253 "\n"
34254 msgstr ""
34255
34256 #. type: =head2
34257 #: ../src/guestfs-actions.pod:6707
34258 msgid "guestfs_rmdir"
34259 msgstr ""
34260
34261 #. type: verbatim
34262 #: ../src/guestfs-actions.pod:6709
34263 #, no-wrap
34264 msgid ""
34265 " int\n"
34266 " guestfs_rmdir (guestfs_h *g,\n"
34267 "                const char *path);\n"
34268 "\n"
34269 msgstr ""
34270
34271 #. type: =head2
34272 #: ../src/guestfs-actions.pod:6719
34273 msgid "guestfs_rmmountpoint"
34274 msgstr ""
34275
34276 #. type: verbatim
34277 #: ../src/guestfs-actions.pod:6721
34278 #, no-wrap
34279 msgid ""
34280 " int\n"
34281 " guestfs_rmmountpoint (guestfs_h *g,\n"
34282 "                       const char *exemptpath);\n"
34283 "\n"
34284 msgstr ""
34285
34286 #. type: textblock
34287 #: ../src/guestfs-actions.pod:6725
34288 msgid ""
34289 "This calls removes a mountpoint that was previously created with "
34290 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
34291 msgstr ""
34292
34293 #. type: =head2
34294 #: ../src/guestfs-actions.pod:6733
34295 msgid "guestfs_scrub_device"
34296 msgstr ""
34297
34298 #. type: verbatim
34299 #: ../src/guestfs-actions.pod:6735
34300 #, no-wrap
34301 msgid ""
34302 " int\n"
34303 " guestfs_scrub_device (guestfs_h *g,\n"
34304 "                       const char *device);\n"
34305 "\n"
34306 msgstr ""
34307
34308 #. type: textblock
34309 #: ../src/guestfs-actions.pod:6747 ../src/guestfs-actions.pod:6765
34310 #: ../src/guestfs-actions.pod:6784
34311 msgid "(Added in 1.0.52)"
34312 msgstr "(Додано у 1.0.52)"
34313
34314 #. type: =head2
34315 #: ../src/guestfs-actions.pod:6749
34316 msgid "guestfs_scrub_file"
34317 msgstr ""
34318
34319 #. type: verbatim
34320 #: ../src/guestfs-actions.pod:6751
34321 #, no-wrap
34322 msgid ""
34323 " int\n"
34324 " guestfs_scrub_file (guestfs_h *g,\n"
34325 "                     const char *file);\n"
34326 "\n"
34327 msgstr ""
34328
34329 #. type: =head2
34330 #: ../src/guestfs-actions.pod:6767
34331 msgid "guestfs_scrub_freespace"
34332 msgstr ""
34333
34334 #. type: verbatim
34335 #: ../src/guestfs-actions.pod:6769
34336 #, no-wrap
34337 msgid ""
34338 " int\n"
34339 " guestfs_scrub_freespace (guestfs_h *g,\n"
34340 "                          const char *dir);\n"
34341 "\n"
34342 msgstr ""
34343
34344 #. type: textblock
34345 #: ../src/guestfs-actions.pod:6773
34346 msgid ""
34347 "This command creates the directory C<dir> and then fills it with files until "
34348 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
34349 "and deletes them.  The intention is to scrub any free space on the partition "
34350 "containing C<dir>."
34351 msgstr ""
34352
34353 #. type: =head2
34354 #: ../src/guestfs-actions.pod:6786
34355 msgid "guestfs_set_append"
34356 msgstr ""
34357
34358 #. type: verbatim
34359 #: ../src/guestfs-actions.pod:6788
34360 #, no-wrap
34361 msgid ""
34362 " int\n"
34363 " guestfs_set_append (guestfs_h *g,\n"
34364 "                     const char *append);\n"
34365 "\n"
34366 msgstr ""
34367
34368 #. type: =head2
34369 #: ../src/guestfs-actions.pod:6805
34370 msgid "guestfs_set_attach_method"
34371 msgstr ""
34372
34373 #. type: verbatim
34374 #: ../src/guestfs-actions.pod:6807
34375 #, no-wrap
34376 msgid ""
34377 " int\n"
34378 " guestfs_set_attach_method (guestfs_h *g,\n"
34379 "                            const char *attachmethod);\n"
34380 "\n"
34381 msgstr ""
34382
34383 #. type: =head2
34384 #: ../src/guestfs-actions.pod:6835
34385 msgid "guestfs_set_autosync"
34386 msgstr ""
34387
34388 #. type: verbatim
34389 #: ../src/guestfs-actions.pod:6837
34390 #, no-wrap
34391 msgid ""
34392 " int\n"
34393 " guestfs_set_autosync (guestfs_h *g,\n"
34394 "                       int autosync);\n"
34395 "\n"
34396 msgstr ""
34397
34398 #. type: =head2
34399 #: ../src/guestfs-actions.pod:6853
34400 msgid "guestfs_set_direct"
34401 msgstr ""
34402
34403 #. type: verbatim
34404 #: ../src/guestfs-actions.pod:6855
34405 #, no-wrap
34406 msgid ""
34407 " int\n"
34408 " guestfs_set_direct (guestfs_h *g,\n"
34409 "                     int direct);\n"
34410 "\n"
34411 msgstr ""
34412
34413 #. type: textblock
34414 #: ../src/guestfs-actions.pod:6863
34415 msgid ""
34416 "One consequence of this is that log messages aren't caught by the library "
34417 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
34418 "stdout."
34419 msgstr ""
34420
34421 #. type: =head2
34422 #: ../src/guestfs-actions.pod:6876
34423 msgid "guestfs_set_e2label"
34424 msgstr ""
34425
34426 #. type: verbatim
34427 #: ../src/guestfs-actions.pod:6878
34428 #, no-wrap
34429 msgid ""
34430 " int\n"
34431 " guestfs_set_e2label (guestfs_h *g,\n"
34432 "                      const char *device,\n"
34433 "                      const char *label);\n"
34434 "\n"
34435 msgstr ""
34436
34437 #. type: textblock
34438 #: ../src/guestfs-actions.pod:6887
34439 msgid ""
34440 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
34441 "the existing label on a filesystem."
34442 msgstr ""
34443
34444 #. type: =head2
34445 #: ../src/guestfs-actions.pod:6894
34446 msgid "guestfs_set_e2uuid"
34447 msgstr ""
34448
34449 #. type: verbatim
34450 #: ../src/guestfs-actions.pod:6896
34451 #, no-wrap
34452 msgid ""
34453 " int\n"
34454 " guestfs_set_e2uuid (guestfs_h *g,\n"
34455 "                     const char *device,\n"
34456 "                     const char *uuid);\n"
34457 "\n"
34458 msgstr ""
34459
34460 #. type: textblock
34461 #: ../src/guestfs-actions.pod:6906
34462 msgid ""
34463 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
34464 "the existing UUID of a filesystem."
34465 msgstr ""
34466
34467 #. type: =head2
34468 #: ../src/guestfs-actions.pod:6913
34469 msgid "guestfs_set_memsize"
34470 msgstr ""
34471
34472 #. type: verbatim
34473 #: ../src/guestfs-actions.pod:6915
34474 #, no-wrap
34475 msgid ""
34476 " int\n"
34477 " guestfs_set_memsize (guestfs_h *g,\n"
34478 "                      int memsize);\n"
34479 "\n"
34480 msgstr ""
34481
34482 #. type: textblock
34483 #: ../src/guestfs-actions.pod:6919
34484 msgid ""
34485 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
34486 "This only has any effect if called before C<guestfs_launch>."
34487 msgstr ""
34488
34489 #. type: =head2
34490 #: ../src/guestfs-actions.pod:6934
34491 msgid "guestfs_set_network"
34492 msgstr ""
34493
34494 #. type: verbatim
34495 #: ../src/guestfs-actions.pod:6936
34496 #, no-wrap
34497 msgid ""
34498 " int\n"
34499 " guestfs_set_network (guestfs_h *g,\n"
34500 "                      int network);\n"
34501 "\n"
34502 msgstr ""
34503
34504 #. type: textblock
34505 #: ../src/guestfs-actions.pod:6946
34506 msgid ""
34507 "You must call this before calling C<guestfs_launch>, otherwise it has no "
34508 "effect."
34509 msgstr ""
34510
34511 #. type: =head2
34512 #: ../src/guestfs-actions.pod:6953
34513 msgid "guestfs_set_path"
34514 msgstr ""
34515
34516 #. type: verbatim
34517 #: ../src/guestfs-actions.pod:6955
34518 #, no-wrap
34519 msgid ""
34520 " int\n"
34521 " guestfs_set_path (guestfs_h *g,\n"
34522 "                   const char *searchpath);\n"
34523 "\n"
34524 msgstr ""
34525
34526 #. type: =head2
34527 #: ../src/guestfs-actions.pod:6970
34528 msgid "guestfs_set_pgroup"
34529 msgstr ""
34530
34531 #. type: verbatim
34532 #: ../src/guestfs-actions.pod:6972
34533 #, no-wrap
34534 msgid ""
34535 " int\n"
34536 " guestfs_set_pgroup (guestfs_h *g,\n"
34537 "                     int pgroup);\n"
34538 "\n"
34539 msgstr ""
34540
34541 #. type: =head2
34542 #: ../src/guestfs-actions.pod:6989
34543 msgid "guestfs_set_qemu"
34544 msgstr ""
34545
34546 #. type: verbatim
34547 #: ../src/guestfs-actions.pod:6991
34548 #, no-wrap
34549 msgid ""
34550 " int\n"
34551 " guestfs_set_qemu (guestfs_h *g,\n"
34552 "                   const char *qemu);\n"
34553 "\n"
34554 msgstr ""
34555
34556 #. type: =head2
34557 #: ../src/guestfs-actions.pod:7017
34558 msgid "guestfs_set_recovery_proc"
34559 msgstr ""
34560
34561 #. type: verbatim
34562 #: ../src/guestfs-actions.pod:7019
34563 #, no-wrap
34564 msgid ""
34565 " int\n"
34566 " guestfs_set_recovery_proc (guestfs_h *g,\n"
34567 "                            int recoveryproc);\n"
34568 "\n"
34569 msgstr ""
34570
34571 #. type: textblock
34572 #: ../src/guestfs-actions.pod:7023
34573 msgid ""
34574 "If this is called with the parameter C<false> then C<guestfs_launch> does "
34575 "not create a recovery process.  The purpose of the recovery process is to "
34576 "stop runaway qemu processes in the case where the main program aborts "
34577 "abruptly."
34578 msgstr ""
34579
34580 #. type: textblock
34581 #: ../src/guestfs-actions.pod:7028
34582 msgid ""
34583 "This only has any effect if called before C<guestfs_launch>, and the default "
34584 "is true."
34585 msgstr ""
34586
34587 #. type: =head2
34588 #: ../src/guestfs-actions.pod:7041
34589 msgid "guestfs_set_selinux"
34590 msgstr ""
34591
34592 #. type: verbatim
34593 #: ../src/guestfs-actions.pod:7043
34594 #, no-wrap
34595 msgid ""
34596 " int\n"
34597 " guestfs_set_selinux (guestfs_h *g,\n"
34598 "                      int selinux);\n"
34599 "\n"
34600 msgstr ""
34601
34602 #. type: =head2
34603 #: ../src/guestfs-actions.pod:7060
34604 msgid "guestfs_set_smp"
34605 msgstr ""
34606
34607 #. type: verbatim
34608 #: ../src/guestfs-actions.pod:7062
34609 #, no-wrap
34610 msgid ""
34611 " int\n"
34612 " guestfs_set_smp (guestfs_h *g,\n"
34613 "                  int smp);\n"
34614 "\n"
34615 msgstr ""
34616
34617 #. type: textblock
34618 #: ../src/guestfs-actions.pod:7070
34619 msgid "This function must be called before C<guestfs_launch>."
34620 msgstr ""
34621
34622 #. type: =head2
34623 #: ../src/guestfs-actions.pod:7076
34624 msgid "guestfs_set_trace"
34625 msgstr ""
34626
34627 #. type: verbatim
34628 #: ../src/guestfs-actions.pod:7078
34629 #, no-wrap
34630 msgid ""
34631 " int\n"
34632 " guestfs_set_trace (guestfs_h *g,\n"
34633 "                    int trace);\n"
34634 "\n"
34635 msgstr ""
34636
34637 #. type: textblock
34638 #: ../src/guestfs-actions.pod:7092
34639 msgid ""
34640 "Trace messages are normally sent to C<stderr>, unless you register a "
34641 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
34642 msgstr ""
34643
34644 #. type: =head2
34645 #: ../src/guestfs-actions.pod:7100
34646 msgid "guestfs_set_verbose"
34647 msgstr ""
34648
34649 #. type: verbatim
34650 #: ../src/guestfs-actions.pod:7102
34651 #, no-wrap
34652 msgid ""
34653 " int\n"
34654 " guestfs_set_verbose (guestfs_h *g,\n"
34655 "                      int verbose);\n"
34656 "\n"
34657 msgstr ""
34658
34659 #. type: textblock
34660 #: ../src/guestfs-actions.pod:7111
34661 msgid ""
34662 "Verbose messages are normally sent to C<stderr>, unless you register a "
34663 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
34664 msgstr ""
34665
34666 #. type: =head2
34667 #: ../src/guestfs-actions.pod:7119
34668 msgid "guestfs_setcon"
34669 msgstr ""
34670
34671 #. type: verbatim
34672 #: ../src/guestfs-actions.pod:7121
34673 #, no-wrap
34674 msgid ""
34675 " int\n"
34676 " guestfs_setcon (guestfs_h *g,\n"
34677 "                 const char *context);\n"
34678 "\n"
34679 msgstr ""
34680
34681 #. type: =head2
34682 #: ../src/guestfs-actions.pod:7134
34683 msgid "guestfs_setxattr"
34684 msgstr ""
34685
34686 #. type: verbatim
34687 #: ../src/guestfs-actions.pod:7136
34688 #, no-wrap
34689 msgid ""
34690 " int\n"
34691 " guestfs_setxattr (guestfs_h *g,\n"
34692 "                   const char *xattr,\n"
34693 "                   const char *val,\n"
34694 "                   int vallen,\n"
34695 "                   const char *path);\n"
34696 "\n"
34697 msgstr ""
34698
34699 #. type: textblock
34700 #: ../src/guestfs-actions.pod:7147
34701 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
34702 msgstr ""
34703
34704 #. type: =head2
34705 #: ../src/guestfs-actions.pod:7153
34706 msgid "guestfs_sfdisk"
34707 msgstr ""
34708
34709 #. type: verbatim
34710 #: ../src/guestfs-actions.pod:7155
34711 #, no-wrap
34712 msgid ""
34713 " int\n"
34714 " guestfs_sfdisk (guestfs_h *g,\n"
34715 "                 const char *device,\n"
34716 "                 int cyls,\n"
34717 "                 int heads,\n"
34718 "                 int sectors,\n"
34719 "                 char *const *lines);\n"
34720 "\n"
34721 msgstr ""
34722
34723 #. type: textblock
34724 #: ../src/guestfs-actions.pod:7163 ../src/guestfs-actions.pod:7204
34725 #: ../src/guestfs-actions.pod:7235
34726 msgid ""
34727 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
34728 "call instead."
34729 msgstr ""
34730
34731 #. type: textblock
34732 #: ../src/guestfs-actions.pod:7190
34733 msgid ""
34734 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
34735 msgstr ""
34736
34737 #. type: =head2
34738 #: ../src/guestfs-actions.pod:7197
34739 msgid "guestfs_sfdiskM"
34740 msgstr ""
34741
34742 #. type: verbatim
34743 #: ../src/guestfs-actions.pod:7199
34744 #, no-wrap
34745 msgid ""
34746 " int\n"
34747 " guestfs_sfdiskM (guestfs_h *g,\n"
34748 "                  const char *device,\n"
34749 "                  char *const *lines);\n"
34750 "\n"
34751 msgstr ""
34752
34753 #. type: textblock
34754 #: ../src/guestfs-actions.pod:7211
34755 msgid ""
34756 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
34757 "partition sizes are specified in megabytes only (rounded to the nearest "
34758 "cylinder) and you don't need to specify the cyls, heads and sectors "
34759 "parameters which were rarely if ever used anyway."
34760 msgstr ""
34761
34762 #. type: textblock
34763 #: ../src/guestfs-actions.pod:7217
34764 msgid ""
34765 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
34766 "C<guestfs_part_disk>"
34767 msgstr ""
34768
34769 #. type: =head2
34770 #: ../src/guestfs-actions.pod:7224
34771 msgid "guestfs_sfdisk_N"
34772 msgstr ""
34773
34774 #. type: verbatim
34775 #: ../src/guestfs-actions.pod:7226
34776 #, no-wrap
34777 msgid ""
34778 " int\n"
34779 " guestfs_sfdisk_N (guestfs_h *g,\n"
34780 "                   const char *device,\n"
34781 "                   int partnum,\n"
34782 "                   int cyls,\n"
34783 "                   int heads,\n"
34784 "                   int sectors,\n"
34785 "                   const char *line);\n"
34786 "\n"
34787 msgstr ""
34788
34789 #. type: textblock
34790 #: ../src/guestfs-actions.pod:7245
34791 msgid ""
34792 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
34793 "for the cyls/heads/sectors parameters."
34794 msgstr ""
34795
34796 #. type: textblock
34797 #: ../src/guestfs-actions.pod:7248
34798 msgid "See also: C<guestfs_part_add>"
34799 msgstr ""
34800
34801 #. type: =head2
34802 #: ../src/guestfs-actions.pod:7254
34803 msgid "guestfs_sfdisk_disk_geometry"
34804 msgstr ""
34805
34806 #. type: verbatim
34807 #: ../src/guestfs-actions.pod:7256
34808 #, no-wrap
34809 msgid ""
34810 " char *\n"
34811 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
34812 "                               const char *device);\n"
34813 "\n"
34814 msgstr ""
34815
34816 #. type: textblock
34817 #: ../src/guestfs-actions.pod:7260
34818 msgid ""
34819 "This displays the disk geometry of C<device> read from the partition table.  "
34820 "Especially in the case where the underlying block device has been resized, "
34821 "this can be different from the kernel's idea of the geometry (see "
34822 "C<guestfs_sfdisk_kernel_geometry>)."
34823 msgstr ""
34824
34825 #. type: =head2
34826 #: ../src/guestfs-actions.pod:7273
34827 msgid "guestfs_sfdisk_kernel_geometry"
34828 msgstr ""
34829
34830 #. type: verbatim
34831 #: ../src/guestfs-actions.pod:7275
34832 #, no-wrap
34833 msgid ""
34834 " char *\n"
34835 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
34836 "                                 const char *device);\n"
34837 "\n"
34838 msgstr ""
34839
34840 #. type: =head2
34841 #: ../src/guestfs-actions.pod:7289
34842 msgid "guestfs_sfdisk_l"
34843 msgstr ""
34844
34845 #. type: verbatim
34846 #: ../src/guestfs-actions.pod:7291
34847 #, no-wrap
34848 msgid ""
34849 " char *\n"
34850 " guestfs_sfdisk_l (guestfs_h *g,\n"
34851 "                   const char *device);\n"
34852 "\n"
34853 msgstr ""
34854
34855 #. type: textblock
34856 #: ../src/guestfs-actions.pod:7295
34857 msgid ""
34858 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
34859 "call instead."
34860 msgstr ""
34861
34862 #. type: textblock
34863 #: ../src/guestfs-actions.pod:7306
34864 msgid "See also: C<guestfs_part_list>"
34865 msgstr ""
34866
34867 #. type: =head2
34868 #: ../src/guestfs-actions.pod:7313
34869 msgid "guestfs_sh"
34870 msgstr ""
34871
34872 #. type: verbatim
34873 #: ../src/guestfs-actions.pod:7315
34874 #, no-wrap
34875 msgid ""
34876 " char *\n"
34877 " guestfs_sh (guestfs_h *g,\n"
34878 "             const char *command);\n"
34879 "\n"
34880 msgstr ""
34881
34882 #. type: textblock
34883 #: ../src/guestfs-actions.pod:7322
34884 msgid "This is like C<guestfs_command>, but passes the command to:"
34885 msgstr ""
34886
34887 #. type: textblock
34888 #: ../src/guestfs-actions.pod:7330
34889 msgid "All the provisos about C<guestfs_command> apply to this call."
34890 msgstr ""
34891
34892 #. type: =head2
34893 #: ../src/guestfs-actions.pod:7337
34894 msgid "guestfs_sh_lines"
34895 msgstr ""
34896
34897 #. type: verbatim
34898 #: ../src/guestfs-actions.pod:7339
34899 #, no-wrap
34900 msgid ""
34901 " char **\n"
34902 " guestfs_sh_lines (guestfs_h *g,\n"
34903 "                   const char *command);\n"
34904 "\n"
34905 msgstr ""
34906
34907 #. type: textblock
34908 #: ../src/guestfs-actions.pod:7343
34909 msgid ""
34910 "This is the same as C<guestfs_sh>, but splits the result into a list of "
34911 "lines."
34912 msgstr ""
34913
34914 #. type: textblock
34915 #: ../src/guestfs-actions.pod:7346
34916 msgid "See also: C<guestfs_command_lines>"
34917 msgstr ""
34918
34919 #. type: =head2
34920 #: ../src/guestfs-actions.pod:7354
34921 msgid "guestfs_sleep"
34922 msgstr ""
34923
34924 #. type: verbatim
34925 #: ../src/guestfs-actions.pod:7356
34926 #, no-wrap
34927 msgid ""
34928 " int\n"
34929 " guestfs_sleep (guestfs_h *g,\n"
34930 "                int secs);\n"
34931 "\n"
34932 msgstr ""
34933
34934 #. type: textblock
34935 #: ../src/guestfs-actions.pod:7364
34936 msgid "(Added in 1.0.41)"
34937 msgstr "(Додано у 1.0.41)"
34938
34939 #. type: =head2
34940 #: ../src/guestfs-actions.pod:7366 ../src/guestfs-structs.pod:109
34941 msgid "guestfs_stat"
34942 msgstr ""
34943
34944 #. type: verbatim
34945 #: ../src/guestfs-actions.pod:7368
34946 #, no-wrap
34947 msgid ""
34948 " struct guestfs_stat *\n"
34949 " guestfs_stat (guestfs_h *g,\n"
34950 "               const char *path);\n"
34951 "\n"
34952 msgstr ""
34953
34954 #. type: =head2
34955 #: ../src/guestfs-actions.pod:7382 ../src/guestfs-structs.pod:135
34956 msgid "guestfs_statvfs"
34957 msgstr ""
34958
34959 #. type: verbatim
34960 #: ../src/guestfs-actions.pod:7384
34961 #, no-wrap
34962 msgid ""
34963 " struct guestfs_statvfs *\n"
34964 " guestfs_statvfs (guestfs_h *g,\n"
34965 "                  const char *path);\n"
34966 "\n"
34967 msgstr ""
34968
34969 #. type: textblock
34970 #: ../src/guestfs-actions.pod:7394
34971 msgid ""
34972 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
34973 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
34974 msgstr ""
34975
34976 #. type: =head2
34977 #: ../src/guestfs-actions.pod:7400
34978 msgid "guestfs_strings"
34979 msgstr ""
34980
34981 #. type: verbatim
34982 #: ../src/guestfs-actions.pod:7402
34983 #, no-wrap
34984 msgid ""
34985 " char **\n"
34986 " guestfs_strings (guestfs_h *g,\n"
34987 "                  const char *path);\n"
34988 "\n"
34989 msgstr ""
34990
34991 #. type: =head2
34992 #: ../src/guestfs-actions.pod:7418
34993 msgid "guestfs_strings_e"
34994 msgstr ""
34995
34996 #. type: verbatim
34997 #: ../src/guestfs-actions.pod:7420
34998 #, no-wrap
34999 msgid ""
35000 " char **\n"
35001 " guestfs_strings_e (guestfs_h *g,\n"
35002 "                    const char *encoding,\n"
35003 "                    const char *path);\n"
35004 "\n"
35005 msgstr ""
35006
35007 #. type: textblock
35008 #: ../src/guestfs-actions.pod:7425
35009 msgid ""
35010 "This is like the C<guestfs_strings> command, but allows you to specify the "
35011 "encoding of strings that are looked for in the source file C<path>."
35012 msgstr ""
35013
35014 #. type: textblock
35015 #: ../src/guestfs-actions.pod:7435
35016 msgid ""
35017 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
35018 "ISO-8859-X (this is what C<guestfs_strings> uses)."
35019 msgstr ""
35020
35021 #. type: =head2
35022 #: ../src/guestfs-actions.pod:7473
35023 msgid "guestfs_swapoff_device"
35024 msgstr ""
35025
35026 #. type: verbatim
35027 #: ../src/guestfs-actions.pod:7475
35028 #, no-wrap
35029 msgid ""
35030 " int\n"
35031 " guestfs_swapoff_device (guestfs_h *g,\n"
35032 "                         const char *device);\n"
35033 "\n"
35034 msgstr ""
35035
35036 #. type: textblock
35037 #: ../src/guestfs-actions.pod:7479
35038 msgid ""
35039 "This command disables the libguestfs appliance swap device or partition "
35040 "named C<device>.  See C<guestfs_swapon_device>."
35041 msgstr ""
35042
35043 #. type: =head2
35044 #: ../src/guestfs-actions.pod:7487
35045 msgid "guestfs_swapoff_file"
35046 msgstr ""
35047
35048 #. type: verbatim
35049 #: ../src/guestfs-actions.pod:7489
35050 #, no-wrap
35051 msgid ""
35052 " int\n"
35053 " guestfs_swapoff_file (guestfs_h *g,\n"
35054 "                       const char *file);\n"
35055 "\n"
35056 msgstr ""
35057
35058 #. type: =head2
35059 #: ../src/guestfs-actions.pod:7499
35060 msgid "guestfs_swapoff_label"
35061 msgstr ""
35062
35063 #. type: verbatim
35064 #: ../src/guestfs-actions.pod:7501
35065 #, no-wrap
35066 msgid ""
35067 " int\n"
35068 " guestfs_swapoff_label (guestfs_h *g,\n"
35069 "                        const char *label);\n"
35070 "\n"
35071 msgstr ""
35072
35073 #. type: =head2
35074 #: ../src/guestfs-actions.pod:7512
35075 msgid "guestfs_swapoff_uuid"
35076 msgstr ""
35077
35078 #. type: verbatim
35079 #: ../src/guestfs-actions.pod:7514
35080 #, no-wrap
35081 msgid ""
35082 " int\n"
35083 " guestfs_swapoff_uuid (guestfs_h *g,\n"
35084 "                       const char *uuid);\n"
35085 "\n"
35086 msgstr ""
35087
35088 #. type: =head2
35089 #: ../src/guestfs-actions.pod:7525
35090 msgid "guestfs_swapon_device"
35091 msgstr ""
35092
35093 #. type: verbatim
35094 #: ../src/guestfs-actions.pod:7527
35095 #, no-wrap
35096 msgid ""
35097 " int\n"
35098 " guestfs_swapon_device (guestfs_h *g,\n"
35099 "                        const char *device);\n"
35100 "\n"
35101 msgstr ""
35102
35103 #. type: textblock
35104 #: ../src/guestfs-actions.pod:7531
35105 msgid ""
35106 "This command enables the libguestfs appliance to use the swap device or "
35107 "partition named C<device>.  The increased memory is made available for all "
35108 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
35109 msgstr ""
35110
35111 #. type: =head2
35112 #: ../src/guestfs-actions.pod:7547
35113 msgid "guestfs_swapon_file"
35114 msgstr ""
35115
35116 #. type: verbatim
35117 #: ../src/guestfs-actions.pod:7549
35118 #, no-wrap
35119 msgid ""
35120 " int\n"
35121 " guestfs_swapon_file (guestfs_h *g,\n"
35122 "                      const char *file);\n"
35123 "\n"
35124 msgstr ""
35125
35126 #. type: textblock
35127 #: ../src/guestfs-actions.pod:7553
35128 msgid ""
35129 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
35130 "notes."
35131 msgstr ""
35132
35133 #. type: =head2
35134 #: ../src/guestfs-actions.pod:7560
35135 msgid "guestfs_swapon_label"
35136 msgstr ""
35137
35138 #. type: verbatim
35139 #: ../src/guestfs-actions.pod:7562
35140 #, no-wrap
35141 msgid ""
35142 " int\n"
35143 " guestfs_swapon_label (guestfs_h *g,\n"
35144 "                       const char *label);\n"
35145 "\n"
35146 msgstr ""
35147
35148 #. type: textblock
35149 #: ../src/guestfs-actions.pod:7566
35150 msgid ""
35151 "This command enables swap to a labeled swap partition.  See "
35152 "C<guestfs_swapon_device> for other notes."
35153 msgstr ""
35154
35155 #. type: =head2
35156 #: ../src/guestfs-actions.pod:7573
35157 msgid "guestfs_swapon_uuid"
35158 msgstr ""
35159
35160 #. type: verbatim
35161 #: ../src/guestfs-actions.pod:7575
35162 #, no-wrap
35163 msgid ""
35164 " int\n"
35165 " guestfs_swapon_uuid (guestfs_h *g,\n"
35166 "                      const char *uuid);\n"
35167 "\n"
35168 msgstr ""
35169
35170 #. type: textblock
35171 #: ../src/guestfs-actions.pod:7579
35172 msgid ""
35173 "This command enables swap to a swap partition with the given UUID.  See "
35174 "C<guestfs_swapon_device> for other notes."
35175 msgstr ""
35176
35177 #. type: =head2
35178 #: ../src/guestfs-actions.pod:7586
35179 msgid "guestfs_sync"
35180 msgstr ""
35181
35182 #. type: verbatim
35183 #: ../src/guestfs-actions.pod:7588
35184 #, no-wrap
35185 msgid ""
35186 " int\n"
35187 " guestfs_sync (guestfs_h *g);\n"
35188 "\n"
35189 msgstr ""
35190
35191 #. type: =head2
35192 #: ../src/guestfs-actions.pod:7601
35193 msgid "guestfs_tail"
35194 msgstr ""
35195
35196 #. type: verbatim
35197 #: ../src/guestfs-actions.pod:7603
35198 #, no-wrap
35199 msgid ""
35200 " char **\n"
35201 " guestfs_tail (guestfs_h *g,\n"
35202 "               const char *path);\n"
35203 "\n"
35204 msgstr ""
35205
35206 #. type: =head2
35207 #: ../src/guestfs-actions.pod:7619
35208 msgid "guestfs_tail_n"
35209 msgstr ""
35210
35211 #. type: verbatim
35212 #: ../src/guestfs-actions.pod:7621
35213 #, no-wrap
35214 msgid ""
35215 " char **\n"
35216 " guestfs_tail_n (guestfs_h *g,\n"
35217 "                 int nrlines,\n"
35218 "                 const char *path);\n"
35219 "\n"
35220 msgstr ""
35221
35222 #. type: =head2
35223 #: ../src/guestfs-actions.pod:7643
35224 msgid "guestfs_tar_in"
35225 msgstr ""
35226
35227 #. type: verbatim
35228 #: ../src/guestfs-actions.pod:7645
35229 #, no-wrap
35230 msgid ""
35231 " int\n"
35232 " guestfs_tar_in (guestfs_h *g,\n"
35233 "                 const char *tarfile,\n"
35234 "                 const char *directory);\n"
35235 "\n"
35236 msgstr ""
35237
35238 #. type: textblock
35239 #: ../src/guestfs-actions.pod:7653
35240 msgid ""
35241 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
35242 msgstr ""
35243
35244 #. type: textblock
35245 #: ../src/guestfs-actions.pod:7658 ../src/guestfs-actions.pod:7675
35246 #: ../src/guestfs-actions.pod:7691 ../src/guestfs-actions.pod:7707
35247 msgid "(Added in 1.0.3)"
35248 msgstr "(Додано у 1.0.3)"
35249
35250 #. type: =head2
35251 #: ../src/guestfs-actions.pod:7660
35252 msgid "guestfs_tar_out"
35253 msgstr ""
35254
35255 #. type: verbatim
35256 #: ../src/guestfs-actions.pod:7662
35257 #, no-wrap
35258 msgid ""
35259 " int\n"
35260 " guestfs_tar_out (guestfs_h *g,\n"
35261 "                  const char *directory,\n"
35262 "                  const char *tarfile);\n"
35263 "\n"
35264 msgstr ""
35265
35266 #. type: textblock
35267 #: ../src/guestfs-actions.pod:7670
35268 msgid ""
35269 "To download a compressed tarball, use C<guestfs_tgz_out> or "
35270 "C<guestfs_txz_out>."
35271 msgstr ""
35272
35273 #. type: =head2
35274 #: ../src/guestfs-actions.pod:7677
35275 msgid "guestfs_tgz_in"
35276 msgstr ""
35277
35278 #. type: verbatim
35279 #: ../src/guestfs-actions.pod:7679
35280 #, no-wrap
35281 msgid ""
35282 " int\n"
35283 " guestfs_tgz_in (guestfs_h *g,\n"
35284 "                 const char *tarball,\n"
35285 "                 const char *directory);\n"
35286 "\n"
35287 msgstr ""
35288
35289 #. type: textblock
35290 #: ../src/guestfs-actions.pod:7687
35291 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
35292 msgstr ""
35293
35294 #. type: =head2
35295 #: ../src/guestfs-actions.pod:7693
35296 msgid "guestfs_tgz_out"
35297 msgstr ""
35298
35299 #. type: verbatim
35300 #: ../src/guestfs-actions.pod:7695
35301 #, no-wrap
35302 msgid ""
35303 " int\n"
35304 " guestfs_tgz_out (guestfs_h *g,\n"
35305 "                  const char *directory,\n"
35306 "                  const char *tarball);\n"
35307 "\n"
35308 msgstr ""
35309
35310 #. type: textblock
35311 #: ../src/guestfs-actions.pod:7703
35312 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
35313 msgstr ""
35314
35315 #. type: =head2
35316 #: ../src/guestfs-actions.pod:7709
35317 msgid "guestfs_touch"
35318 msgstr ""
35319
35320 #. type: verbatim
35321 #: ../src/guestfs-actions.pod:7711
35322 #, no-wrap
35323 msgid ""
35324 " int\n"
35325 " guestfs_touch (guestfs_h *g,\n"
35326 "                const char *path);\n"
35327 "\n"
35328 msgstr ""
35329
35330 #. type: =head2
35331 #: ../src/guestfs-actions.pod:7726
35332 msgid "guestfs_truncate"
35333 msgstr ""
35334
35335 #. type: verbatim
35336 #: ../src/guestfs-actions.pod:7728
35337 #, no-wrap
35338 msgid ""
35339 " int\n"
35340 " guestfs_truncate (guestfs_h *g,\n"
35341 "                   const char *path);\n"
35342 "\n"
35343 msgstr ""
35344
35345 #. type: =head2
35346 #: ../src/guestfs-actions.pod:7739
35347 msgid "guestfs_truncate_size"
35348 msgstr ""
35349
35350 #. type: verbatim
35351 #: ../src/guestfs-actions.pod:7741
35352 #, no-wrap
35353 msgid ""
35354 " int\n"
35355 " guestfs_truncate_size (guestfs_h *g,\n"
35356 "                        const char *path,\n"
35357 "                        int64_t size);\n"
35358 "\n"
35359 msgstr ""
35360
35361 #. type: textblock
35362 #: ../src/guestfs-actions.pod:7749
35363 msgid ""
35364 "If the current file size is less than C<size> then the file is extended to "
35365 "the required size with zero bytes.  This creates a sparse file (ie. disk "
35366 "blocks are not allocated for the file until you write to it).  To create a "
35367 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
35368 msgstr ""
35369
35370 #. type: =head2
35371 #: ../src/guestfs-actions.pod:7759
35372 #, fuzzy
35373 #| msgid "guestfs_mke2fs_J"
35374 msgid "guestfs_tune2fs"
35375 msgstr "guestfs_mke2fs_J"
35376
35377 #. type: verbatim
35378 #: ../src/guestfs-actions.pod:7761
35379 #, fuzzy, no-wrap
35380 #| msgid ""
35381 #| " int\n"
35382 #| " guestfs_lvresize (guestfs_h *g,\n"
35383 #| "                   const char *device,\n"
35384 #| "                   int mbytes);\n"
35385 #| "\n"
35386 msgid ""
35387 " int\n"
35388 " guestfs_tune2fs (guestfs_h *g,\n"
35389 "                  const char *device,\n"
35390 "                  ...);\n"
35391 "\n"
35392 msgstr ""
35393 " int\n"
35394 " guestfs_lvresize (guestfs_h *g,\n"
35395 "                   const char *device,\n"
35396 "                   int mbytes);\n"
35397 "\n"
35398
35399 #. type: verbatim
35400 #: ../src/guestfs-actions.pod:7771
35401 #, no-wrap
35402 msgid ""
35403 " GUESTFS_TUNE2FS_FORCE, int force,\n"
35404 " GUESTFS_TUNE2FS_MAXMOUNTCOUNT, int maxmountcount,\n"
35405 " GUESTFS_TUNE2FS_MOUNTCOUNT, int mountcount,\n"
35406 " GUESTFS_TUNE2FS_ERRORBEHAVIOR, const char *errorbehavior,\n"
35407 " GUESTFS_TUNE2FS_GROUP, int64_t group,\n"
35408 " GUESTFS_TUNE2FS_INTERVALBETWEENCHECKS, int intervalbetweenchecks,\n"
35409 " GUESTFS_TUNE2FS_RESERVEDBLOCKSPERCENTAGE, int reservedblockspercentage,\n"
35410 " GUESTFS_TUNE2FS_LASTMOUNTEDDIRECTORY, const char *lastmounteddirectory,\n"
35411 " GUESTFS_TUNE2FS_RESERVEDBLOCKSCOUNT, int64_t reservedblockscount,\n"
35412 " GUESTFS_TUNE2FS_USER, int64_t user,\n"
35413 "\n"
35414 msgstr ""
35415
35416 #. type: textblock
35417 #: ../src/guestfs-actions.pod:7851
35418 msgid ""
35419 "To get the current values of filesystem parameters, see "
35420 "C<guestfs_tune2fs_l>.  For precise details of how tune2fs works, see the "
35421 "L<tune2fs(8)> man page."
35422 msgstr ""
35423
35424 #. type: =head2
35425 #: ../src/guestfs-actions.pod:7859
35426 #, fuzzy
35427 #| msgid "guestfs_mke2fs_J"
35428 msgid "guestfs_tune2fs_va"
35429 msgstr "guestfs_mke2fs_J"
35430
35431 #. type: verbatim
35432 #: ../src/guestfs-actions.pod:7861
35433 #, fuzzy, no-wrap
35434 #| msgid ""
35435 #| " int\n"
35436 #| " guestfs_lvresize (guestfs_h *g,\n"
35437 #| "                   const char *device,\n"
35438 #| "                   int mbytes);\n"
35439 #| "\n"
35440 msgid ""
35441 " int\n"
35442 " guestfs_tune2fs_va (guestfs_h *g,\n"
35443 "                     const char *device,\n"
35444 "                     va_list args);\n"
35445 "\n"
35446 msgstr ""
35447 " int\n"
35448 " guestfs_lvresize (guestfs_h *g,\n"
35449 "                   const char *device,\n"
35450 "                   int mbytes);\n"
35451 "\n"
35452
35453 #. type: textblock
35454 #: ../src/guestfs-actions.pod:7866
35455 msgid "This is the \"va_list variant\" of L</guestfs_tune2fs>."
35456 msgstr ""
35457
35458 #. type: =head2
35459 #: ../src/guestfs-actions.pod:7870
35460 #, fuzzy
35461 #| msgid "guestfs_mke2fs_J"
35462 msgid "guestfs_tune2fs_argv"
35463 msgstr "guestfs_mke2fs_J"
35464
35465 #. type: verbatim
35466 #: ../src/guestfs-actions.pod:7872
35467 #, fuzzy, no-wrap
35468 #| msgid ""
35469 #| " int\n"
35470 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
35471 #| "                         const char *fstype,\n"
35472 #| "                         const char *device,\n"
35473 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
35474 #| "\n"
35475 msgid ""
35476 " int\n"
35477 " guestfs_tune2fs_argv (guestfs_h *g,\n"
35478 "                       const char *device,\n"
35479 "                       const struct guestfs_tune2fs_argv *optargs);\n"
35480 "\n"
35481 msgstr ""
35482 " int\n"
35483 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
35484 "                         const char *fstype,\n"
35485 "                         const char *device,\n"
35486 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
35487 "\n"
35488
35489 #. type: textblock
35490 #: ../src/guestfs-actions.pod:7877
35491 msgid "This is the \"argv variant\" of L</guestfs_tune2fs>."
35492 msgstr ""
35493
35494 #. type: =head2
35495 #: ../src/guestfs-actions.pod:7881
35496 msgid "guestfs_tune2fs_l"
35497 msgstr ""
35498
35499 #. type: verbatim
35500 #: ../src/guestfs-actions.pod:7883
35501 #, no-wrap
35502 msgid ""
35503 " char **\n"
35504 " guestfs_tune2fs_l (guestfs_h *g,\n"
35505 "                    const char *device);\n"
35506 "\n"
35507 msgstr ""
35508
35509 #. type: =head2
35510 #: ../src/guestfs-actions.pod:7903
35511 msgid "guestfs_txz_in"
35512 msgstr ""
35513
35514 #. type: verbatim
35515 #: ../src/guestfs-actions.pod:7905
35516 #, no-wrap
35517 msgid ""
35518 " int\n"
35519 " guestfs_txz_in (guestfs_h *g,\n"
35520 "                 const char *tarball,\n"
35521 "                 const char *directory);\n"
35522 "\n"
35523 msgstr ""
35524
35525 #. type: =head2
35526 #: ../src/guestfs-actions.pod:7917
35527 msgid "guestfs_txz_out"
35528 msgstr ""
35529
35530 #. type: verbatim
35531 #: ../src/guestfs-actions.pod:7919
35532 #, no-wrap
35533 msgid ""
35534 " int\n"
35535 " guestfs_txz_out (guestfs_h *g,\n"
35536 "                  const char *directory,\n"
35537 "                  const char *tarball);\n"
35538 "\n"
35539 msgstr ""
35540
35541 #. type: =head2
35542 #: ../src/guestfs-actions.pod:7931
35543 msgid "guestfs_umask"
35544 msgstr ""
35545
35546 #. type: verbatim
35547 #: ../src/guestfs-actions.pod:7933
35548 #, no-wrap
35549 msgid ""
35550 " int\n"
35551 " guestfs_umask (guestfs_h *g,\n"
35552 "                int mask);\n"
35553 "\n"
35554 msgstr ""
35555
35556 #. type: textblock
35557 #: ../src/guestfs-actions.pod:7949
35558 msgid ""
35559 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
35560 "C<guestfs_mkdir>."
35561 msgstr ""
35562
35563 #. type: =head2
35564 #: ../src/guestfs-actions.pod:7958
35565 msgid "guestfs_umount"
35566 msgstr ""
35567
35568 #. type: verbatim
35569 #: ../src/guestfs-actions.pod:7960
35570 #, no-wrap
35571 msgid ""
35572 " int\n"
35573 " guestfs_umount (guestfs_h *g,\n"
35574 "                 const char *pathordevice);\n"
35575 "\n"
35576 msgstr ""
35577
35578 #. type: =head2
35579 #: ../src/guestfs-actions.pod:7972
35580 msgid "guestfs_umount_all"
35581 msgstr ""
35582
35583 #. type: verbatim
35584 #: ../src/guestfs-actions.pod:7974
35585 #, no-wrap
35586 msgid ""
35587 " int\n"
35588 " guestfs_umount_all (guestfs_h *g);\n"
35589 "\n"
35590 msgstr ""
35591
35592 #. type: =head2
35593 #: ../src/guestfs-actions.pod:7985
35594 msgid "guestfs_upload"
35595 msgstr ""
35596
35597 #. type: verbatim
35598 #: ../src/guestfs-actions.pod:7987
35599 #, no-wrap
35600 msgid ""
35601 " int\n"
35602 " guestfs_upload (guestfs_h *g,\n"
35603 "                 const char *filename,\n"
35604 "                 const char *remotefilename);\n"
35605 "\n"
35606 msgstr ""
35607
35608 #. type: textblock
35609 #: ../src/guestfs-actions.pod:7997
35610 msgid "See also C<guestfs_download>."
35611 msgstr ""
35612
35613 #. type: =head2
35614 #: ../src/guestfs-actions.pod:8008
35615 msgid "guestfs_upload_offset"
35616 msgstr ""
35617
35618 #. type: verbatim
35619 #: ../src/guestfs-actions.pod:8010
35620 #, no-wrap
35621 msgid ""
35622 " int\n"
35623 " guestfs_upload_offset (guestfs_h *g,\n"
35624 "                        const char *filename,\n"
35625 "                        const char *remotefilename,\n"
35626 "                        int64_t offset);\n"
35627 "\n"
35628 msgstr ""
35629
35630 #. type: textblock
35631 #: ../src/guestfs-actions.pod:8026
35632 msgid ""
35633 "Note that there is no limit on the amount of data that can be uploaded with "
35634 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
35635 "full amount unless an error occurs."
35636 msgstr ""
35637
35638 #. type: textblock
35639 #: ../src/guestfs-actions.pod:8031
35640 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
35641 msgstr ""
35642
35643 #. type: =head2
35644 #: ../src/guestfs-actions.pod:8042
35645 msgid "guestfs_utimens"
35646 msgstr ""
35647
35648 #. type: verbatim
35649 #: ../src/guestfs-actions.pod:8044
35650 #, no-wrap
35651 msgid ""
35652 " int\n"
35653 " guestfs_utimens (guestfs_h *g,\n"
35654 "                  const char *path,\n"
35655 "                  int64_t atsecs,\n"
35656 "                  int64_t atnsecs,\n"
35657 "                  int64_t mtsecs,\n"
35658 "                  int64_t mtnsecs);\n"
35659 "\n"
35660 msgstr ""
35661
35662 #. type: =head2
35663 #: ../src/guestfs-actions.pod:8073 ../src/guestfs-structs.pod:175
35664 msgid "guestfs_version"
35665 msgstr ""
35666
35667 #. type: verbatim
35668 #: ../src/guestfs-actions.pod:8075
35669 #, no-wrap
35670 msgid ""
35671 " struct guestfs_version *\n"
35672 " guestfs_version (guestfs_h *g);\n"
35673 "\n"
35674 msgstr ""
35675
35676 #. type: textblock
35677 #: ../src/guestfs-actions.pod:8103
35678 msgid ""
35679 "I<Note:> Don't use this call to test for availability of features.  In "
35680 "enterprise distributions we backport features from later versions into "
35681 "earlier versions, making this an unreliable way to test for features.  Use "
35682 "C<guestfs_available> instead."
35683 msgstr ""
35684
35685 #. type: textblock
35686 #: ../src/guestfs-actions.pod:8109
35687 msgid ""
35688 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
35689 "error.  I<The caller must call C<guestfs_free_version> after use>."
35690 msgstr ""
35691
35692 #. type: textblock
35693 #: ../src/guestfs-actions.pod:8113
35694 msgid "(Added in 1.0.58)"
35695 msgstr "(Додано у 1.0.58)"
35696
35697 #. type: =head2
35698 #: ../src/guestfs-actions.pod:8115
35699 msgid "guestfs_vfs_label"
35700 msgstr ""
35701
35702 #. type: verbatim
35703 #: ../src/guestfs-actions.pod:8117
35704 #, no-wrap
35705 msgid ""
35706 " char *\n"
35707 " guestfs_vfs_label (guestfs_h *g,\n"
35708 "                    const char *device);\n"
35709 "\n"
35710 msgstr ""
35711
35712 #. type: textblock
35713 #: ../src/guestfs-actions.pod:8126
35714 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
35715 msgstr ""
35716
35717 #. type: textblock
35718 #: ../src/guestfs-actions.pod:8131 ../src/guestfs-actions.pod:8168
35719 msgid "(Added in 1.3.18)"
35720 msgstr "(Додано у 1.3.18)"
35721
35722 #. type: =head2
35723 #: ../src/guestfs-actions.pod:8133
35724 msgid "guestfs_vfs_type"
35725 msgstr ""
35726
35727 #. type: verbatim
35728 #: ../src/guestfs-actions.pod:8135
35729 #, no-wrap
35730 msgid ""
35731 " char *\n"
35732 " guestfs_vfs_type (guestfs_h *g,\n"
35733 "                   const char *device);\n"
35734 "\n"
35735 msgstr ""
35736
35737 #. type: =head2
35738 #: ../src/guestfs-actions.pod:8152
35739 msgid "guestfs_vfs_uuid"
35740 msgstr ""
35741
35742 #. type: verbatim
35743 #: ../src/guestfs-actions.pod:8154
35744 #, no-wrap
35745 msgid ""
35746 " char *\n"
35747 " guestfs_vfs_uuid (guestfs_h *g,\n"
35748 "                   const char *device);\n"
35749 "\n"
35750 msgstr ""
35751
35752 #. type: textblock
35753 #: ../src/guestfs-actions.pod:8163
35754 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
35755 msgstr ""
35756
35757 #. type: =head2
35758 #: ../src/guestfs-actions.pod:8170
35759 msgid "guestfs_vg_activate"
35760 msgstr ""
35761
35762 #. type: verbatim
35763 #: ../src/guestfs-actions.pod:8172
35764 #, no-wrap
35765 msgid ""
35766 " int\n"
35767 " guestfs_vg_activate (guestfs_h *g,\n"
35768 "                      int activate,\n"
35769 "                      char *const *volgroups);\n"
35770 "\n"
35771 msgstr ""
35772
35773 #. type: =head2
35774 #: ../src/guestfs-actions.pod:8189
35775 msgid "guestfs_vg_activate_all"
35776 msgstr ""
35777
35778 #. type: verbatim
35779 #: ../src/guestfs-actions.pod:8191
35780 #, no-wrap
35781 msgid ""
35782 " int\n"
35783 " guestfs_vg_activate_all (guestfs_h *g,\n"
35784 "                          int activate);\n"
35785 "\n"
35786 msgstr ""
35787
35788 #. type: =head2
35789 #: ../src/guestfs-actions.pod:8204
35790 msgid "guestfs_vgcreate"
35791 msgstr ""
35792
35793 #. type: verbatim
35794 #: ../src/guestfs-actions.pod:8206
35795 #, no-wrap
35796 msgid ""
35797 " int\n"
35798 " guestfs_vgcreate (guestfs_h *g,\n"
35799 "                   const char *volgroup,\n"
35800 "                   char *const *physvols);\n"
35801 "\n"
35802 msgstr ""
35803
35804 #. type: =head2
35805 #: ../src/guestfs-actions.pod:8218
35806 msgid "guestfs_vglvuuids"
35807 msgstr ""
35808
35809 #. type: verbatim
35810 #: ../src/guestfs-actions.pod:8220
35811 #, no-wrap
35812 msgid ""
35813 " char **\n"
35814 " guestfs_vglvuuids (guestfs_h *g,\n"
35815 "                    const char *vgname);\n"
35816 "\n"
35817 msgstr ""
35818
35819 #. type: textblock
35820 #: ../src/guestfs-actions.pod:8227
35821 msgid ""
35822 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
35823 "associate logical volumes and volume groups."
35824 msgstr ""
35825
35826 #. type: textblock
35827 #: ../src/guestfs-actions.pod:8230
35828 msgid "See also C<guestfs_vgpvuuids>."
35829 msgstr ""
35830
35831 #. type: =head2
35832 #: ../src/guestfs-actions.pod:8238
35833 msgid "guestfs_vgpvuuids"
35834 msgstr ""
35835
35836 #. type: verbatim
35837 #: ../src/guestfs-actions.pod:8240
35838 #, no-wrap
35839 msgid ""
35840 " char **\n"
35841 " guestfs_vgpvuuids (guestfs_h *g,\n"
35842 "                    const char *vgname);\n"
35843 "\n"
35844 msgstr ""
35845
35846 #. type: textblock
35847 #: ../src/guestfs-actions.pod:8247
35848 msgid ""
35849 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
35850 "associate physical volumes and volume groups."
35851 msgstr ""
35852
35853 #. type: textblock
35854 #: ../src/guestfs-actions.pod:8250
35855 msgid "See also C<guestfs_vglvuuids>."
35856 msgstr ""
35857
35858 #. type: =head2
35859 #: ../src/guestfs-actions.pod:8258
35860 msgid "guestfs_vgremove"
35861 msgstr ""
35862
35863 #. type: verbatim
35864 #: ../src/guestfs-actions.pod:8260
35865 #, no-wrap
35866 msgid ""
35867 " int\n"
35868 " guestfs_vgremove (guestfs_h *g,\n"
35869 "                   const char *vgname);\n"
35870 "\n"
35871 msgstr ""
35872
35873 #. type: =head2
35874 #: ../src/guestfs-actions.pod:8273
35875 msgid "guestfs_vgrename"
35876 msgstr ""
35877
35878 #. type: verbatim
35879 #: ../src/guestfs-actions.pod:8275
35880 #, no-wrap
35881 msgid ""
35882 " int\n"
35883 " guestfs_vgrename (guestfs_h *g,\n"
35884 "                   const char *volgroup,\n"
35885 "                   const char *newvolgroup);\n"
35886 "\n"
35887 msgstr ""
35888
35889 #. type: =head2
35890 #: ../src/guestfs-actions.pod:8286
35891 msgid "guestfs_vgs"
35892 msgstr ""
35893
35894 #. type: verbatim
35895 #: ../src/guestfs-actions.pod:8288
35896 #, no-wrap
35897 msgid ""
35898 " char **\n"
35899 " guestfs_vgs (guestfs_h *g);\n"
35900 "\n"
35901 msgstr ""
35902
35903 #. type: textblock
35904 #: ../src/guestfs-actions.pod:8297
35905 msgid "See also C<guestfs_vgs_full>."
35906 msgstr ""
35907
35908 #. type: =head2
35909 #: ../src/guestfs-actions.pod:8305
35910 msgid "guestfs_vgs_full"
35911 msgstr ""
35912
35913 #. type: verbatim
35914 #: ../src/guestfs-actions.pod:8307
35915 #, no-wrap
35916 msgid ""
35917 " struct guestfs_lvm_vg_list *\n"
35918 " guestfs_vgs_full (guestfs_h *g);\n"
35919 "\n"
35920 msgstr ""
35921
35922 #. type: textblock
35923 #: ../src/guestfs-actions.pod:8313
35924 msgid ""
35925 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
35926 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
35927 msgstr ""
35928
35929 #. type: =head2
35930 #: ../src/guestfs-actions.pod:8319
35931 msgid "guestfs_vgscan"
35932 msgstr ""
35933
35934 #. type: verbatim
35935 #: ../src/guestfs-actions.pod:8321
35936 #, no-wrap
35937 msgid ""
35938 " int\n"
35939 " guestfs_vgscan (guestfs_h *g);\n"
35940 "\n"
35941 msgstr ""
35942
35943 #. type: =head2
35944 #: ../src/guestfs-actions.pod:8331
35945 msgid "guestfs_vguuid"
35946 msgstr ""
35947
35948 #. type: verbatim
35949 #: ../src/guestfs-actions.pod:8333
35950 #, no-wrap
35951 msgid ""
35952 " char *\n"
35953 " guestfs_vguuid (guestfs_h *g,\n"
35954 "                 const char *vgname);\n"
35955 "\n"
35956 msgstr ""
35957
35958 #. type: =head2
35959 #: ../src/guestfs-actions.pod:8344
35960 msgid "guestfs_wait_ready"
35961 msgstr ""
35962
35963 #. type: verbatim
35964 #: ../src/guestfs-actions.pod:8346
35965 #, no-wrap
35966 msgid ""
35967 " int\n"
35968 " guestfs_wait_ready (guestfs_h *g);\n"
35969 "\n"
35970 msgstr ""
35971
35972 #. type: textblock
35973 #: ../src/guestfs-actions.pod:8349
35974 msgid ""
35975 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
35976 "instead."
35977 msgstr ""
35978
35979 #. type: textblock
35980 #: ../src/guestfs-actions.pod:8356
35981 msgid "This function is a no op."
35982 msgstr ""
35983
35984 #. type: textblock
35985 #: ../src/guestfs-actions.pod:8358
35986 msgid ""
35987 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
35988 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
35989 "is no longer necessary because C<guestfs_launch> now does the waiting."
35990 msgstr ""
35991
35992 #. type: textblock
35993 #: ../src/guestfs-actions.pod:8363
35994 msgid ""
35995 "If you see any calls to this function in code then you can just remove them, "
35996 "unless you want to retain compatibility with older versions of the API."
35997 msgstr ""
35998
35999 #. type: =head2
36000 #: ../src/guestfs-actions.pod:8371
36001 msgid "guestfs_wc_c"
36002 msgstr ""
36003
36004 #. type: verbatim
36005 #: ../src/guestfs-actions.pod:8373
36006 #, no-wrap
36007 msgid ""
36008 " int\n"
36009 " guestfs_wc_c (guestfs_h *g,\n"
36010 "               const char *path);\n"
36011 "\n"
36012 msgstr ""
36013
36014 #. type: =head2
36015 #: ../src/guestfs-actions.pod:8384
36016 msgid "guestfs_wc_l"
36017 msgstr ""
36018
36019 #. type: verbatim
36020 #: ../src/guestfs-actions.pod:8386
36021 #, no-wrap
36022 msgid ""
36023 " int\n"
36024 " guestfs_wc_l (guestfs_h *g,\n"
36025 "               const char *path);\n"
36026 "\n"
36027 msgstr ""
36028
36029 #. type: =head2
36030 #: ../src/guestfs-actions.pod:8397
36031 msgid "guestfs_wc_w"
36032 msgstr ""
36033
36034 #. type: verbatim
36035 #: ../src/guestfs-actions.pod:8399
36036 #, no-wrap
36037 msgid ""
36038 " int\n"
36039 " guestfs_wc_w (guestfs_h *g,\n"
36040 "               const char *path);\n"
36041 "\n"
36042 msgstr ""
36043
36044 #. type: =head2
36045 #: ../src/guestfs-actions.pod:8410
36046 msgid "guestfs_write"
36047 msgstr ""
36048
36049 #. type: verbatim
36050 #: ../src/guestfs-actions.pod:8412
36051 #, no-wrap
36052 msgid ""
36053 " int\n"
36054 " guestfs_write (guestfs_h *g,\n"
36055 "                const char *path,\n"
36056 "                const char *content,\n"
36057 "                size_t content_size);\n"
36058 "\n"
36059 msgstr ""
36060
36061 #. type: textblock
36062 #: ../src/guestfs-actions.pod:8421
36063 msgid "See also C<guestfs_write_append>."
36064 msgstr ""
36065
36066 #. type: =head2
36067 #: ../src/guestfs-actions.pod:8430
36068 msgid "guestfs_write_append"
36069 msgstr ""
36070
36071 #. type: verbatim
36072 #: ../src/guestfs-actions.pod:8432
36073 #, no-wrap
36074 msgid ""
36075 " int\n"
36076 " guestfs_write_append (guestfs_h *g,\n"
36077 "                       const char *path,\n"
36078 "                       const char *content,\n"
36079 "                       size_t content_size);\n"
36080 "\n"
36081 msgstr ""
36082
36083 #. type: textblock
36084 #: ../src/guestfs-actions.pod:8441
36085 msgid "See also C<guestfs_write>."
36086 msgstr ""
36087
36088 #. type: =head2
36089 #: ../src/guestfs-actions.pod:8450
36090 msgid "guestfs_write_file"
36091 msgstr "guestfs_write_file"
36092
36093 #. type: verbatim
36094 #: ../src/guestfs-actions.pod:8452
36095 #, no-wrap
36096 msgid ""
36097 " int\n"
36098 " guestfs_write_file (guestfs_h *g,\n"
36099 "                     const char *path,\n"
36100 "                     const char *content,\n"
36101 "                     int size);\n"
36102 "\n"
36103 msgstr ""
36104 " int\n"
36105 " guestfs_write_file (guestfs_h *g,\n"
36106 "                     const char *path,\n"
36107 "                     const char *content,\n"
36108 "                     int size);\n"
36109 "\n"
36110
36111 #. type: textblock
36112 #: ../src/guestfs-actions.pod:8458
36113 msgid ""
36114 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
36115 "instead."
36116 msgstr ""
36117
36118 #. type: =head2
36119 #: ../src/guestfs-actions.pod:8483
36120 msgid "guestfs_zegrep"
36121 msgstr "guestfs_zegrep"
36122
36123 #. type: verbatim
36124 #: ../src/guestfs-actions.pod:8485
36125 #, no-wrap
36126 msgid ""
36127 " char **\n"
36128 " guestfs_zegrep (guestfs_h *g,\n"
36129 "                 const char *regex,\n"
36130 "                 const char *path);\n"
36131 "\n"
36132 msgstr ""
36133 " char **\n"
36134 " guestfs_zegrep (guestfs_h *g,\n"
36135 "                 const char *regex,\n"
36136 "                 const char *path);\n"
36137 "\n"
36138
36139 #. type: =head2
36140 #: ../src/guestfs-actions.pod:8502
36141 msgid "guestfs_zegrepi"
36142 msgstr "guestfs_zegrepi"
36143
36144 #. type: verbatim
36145 #: ../src/guestfs-actions.pod:8504
36146 #, no-wrap
36147 msgid ""
36148 " char **\n"
36149 " guestfs_zegrepi (guestfs_h *g,\n"
36150 "                  const char *regex,\n"
36151 "                  const char *path);\n"
36152 "\n"
36153 msgstr ""
36154 " char **\n"
36155 " guestfs_zegrepi (guestfs_h *g,\n"
36156 "                  const char *regex,\n"
36157 "                  const char *path);\n"
36158 "\n"
36159
36160 #. type: =head2
36161 #: ../src/guestfs-actions.pod:8521
36162 msgid "guestfs_zero"
36163 msgstr "guestfs_zero"
36164
36165 #. type: verbatim
36166 #: ../src/guestfs-actions.pod:8523
36167 #, no-wrap
36168 msgid ""
36169 " int\n"
36170 " guestfs_zero (guestfs_h *g,\n"
36171 "               const char *device);\n"
36172 "\n"
36173 msgstr ""
36174 " int\n"
36175 " guestfs_zero (guestfs_h *g,\n"
36176 "               const char *device);\n"
36177 "\n"
36178
36179 #. type: textblock
36180 #: ../src/guestfs-actions.pod:8537
36181 msgid ""
36182 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
36183 "C<guestfs_is_zero_device>"
36184 msgstr ""
36185
36186 #. type: =head2
36187 #: ../src/guestfs-actions.pod:8549
36188 msgid "guestfs_zero_device"
36189 msgstr "guestfs_zero_device"
36190
36191 #. type: verbatim
36192 #: ../src/guestfs-actions.pod:8551
36193 #, no-wrap
36194 msgid ""
36195 " int\n"
36196 " guestfs_zero_device (guestfs_h *g,\n"
36197 "                      const char *device);\n"
36198 "\n"
36199 msgstr ""
36200 " int\n"
36201 " guestfs_zero_device (guestfs_h *g,\n"
36202 "                      const char *device);\n"
36203 "\n"
36204
36205 #. type: textblock
36206 #: ../src/guestfs-actions.pod:8555
36207 msgid ""
36208 "This command writes zeroes over the entire C<device>.  Compare with "
36209 "C<guestfs_zero> which just zeroes the first few blocks of a device."
36210 msgstr ""
36211
36212 #. type: textblock
36213 #: ../src/guestfs-actions.pod:8570
36214 msgid "(Added in 1.3.1)"
36215 msgstr "(Додано у 1.3.1)"
36216
36217 #. type: =head2
36218 #: ../src/guestfs-actions.pod:8572
36219 msgid "guestfs_zerofree"
36220 msgstr "guestfs_zerofree"
36221
36222 #. type: verbatim
36223 #: ../src/guestfs-actions.pod:8574
36224 #, no-wrap
36225 msgid ""
36226 " int\n"
36227 " guestfs_zerofree (guestfs_h *g,\n"
36228 "                   const char *device);\n"
36229 "\n"
36230 msgstr ""
36231 " int\n"
36232 " guestfs_zerofree (guestfs_h *g,\n"
36233 "                   const char *device);\n"
36234 "\n"
36235
36236 #. type: =head2
36237 #: ../src/guestfs-actions.pod:8593
36238 msgid "guestfs_zfgrep"
36239 msgstr "guestfs_zfgrep"
36240
36241 #. type: verbatim
36242 #: ../src/guestfs-actions.pod:8595
36243 #, no-wrap
36244 msgid ""
36245 " char **\n"
36246 " guestfs_zfgrep (guestfs_h *g,\n"
36247 "                 const char *pattern,\n"
36248 "                 const char *path);\n"
36249 "\n"
36250 msgstr ""
36251 " char **\n"
36252 " guestfs_zfgrep (guestfs_h *g,\n"
36253 "                 const char *pattern,\n"
36254 "                 const char *path);\n"
36255 "\n"
36256
36257 #. type: =head2
36258 #: ../src/guestfs-actions.pod:8612
36259 msgid "guestfs_zfgrepi"
36260 msgstr "guestfs_zfgrepi"
36261
36262 #. type: verbatim
36263 #: ../src/guestfs-actions.pod:8614
36264 #, no-wrap
36265 msgid ""
36266 " char **\n"
36267 " guestfs_zfgrepi (guestfs_h *g,\n"
36268 "                  const char *pattern,\n"
36269 "                  const char *path);\n"
36270 "\n"
36271 msgstr ""
36272 " char **\n"
36273 " guestfs_zfgrepi (guestfs_h *g,\n"
36274 "                  const char *pattern,\n"
36275 "                  const char *path);\n"
36276 "\n"
36277
36278 #. type: =head2
36279 #: ../src/guestfs-actions.pod:8631
36280 msgid "guestfs_zfile"
36281 msgstr "guestfs_zfile"
36282
36283 #. type: verbatim
36284 #: ../src/guestfs-actions.pod:8633
36285 #, no-wrap
36286 msgid ""
36287 " char *\n"
36288 " guestfs_zfile (guestfs_h *g,\n"
36289 "                const char *meth,\n"
36290 "                const char *path);\n"
36291 "\n"
36292 msgstr ""
36293 " char *\n"
36294 " guestfs_zfile (guestfs_h *g,\n"
36295 "                const char *meth,\n"
36296 "                const char *path);\n"
36297 "\n"
36298
36299 #. type: textblock
36300 #: ../src/guestfs-actions.pod:8638
36301 msgid ""
36302 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
36303 "instead."
36304 msgstr ""
36305
36306 #. type: textblock
36307 #: ../src/guestfs-actions.pod:8650
36308 msgid ""
36309 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
36310 "files."
36311 msgstr ""
36312
36313 #. type: =head2
36314 #: ../src/guestfs-actions.pod:8658
36315 msgid "guestfs_zgrep"
36316 msgstr "guestfs_zgrep"
36317
36318 #. type: verbatim
36319 #: ../src/guestfs-actions.pod:8660
36320 #, no-wrap
36321 msgid ""
36322 " char **\n"
36323 " guestfs_zgrep (guestfs_h *g,\n"
36324 "                const char *regex,\n"
36325 "                const char *path);\n"
36326 "\n"
36327 msgstr ""
36328 " char **\n"
36329 " guestfs_zgrep (guestfs_h *g,\n"
36330 "                const char *regex,\n"
36331 "                const char *path);\n"
36332 "\n"
36333
36334 #. type: =head2
36335 #: ../src/guestfs-actions.pod:8677
36336 msgid "guestfs_zgrepi"
36337 msgstr "guestfs_zgrepi"
36338
36339 #. type: verbatim
36340 #: ../src/guestfs-actions.pod:8679
36341 #, no-wrap
36342 msgid ""
36343 " char **\n"
36344 " guestfs_zgrepi (guestfs_h *g,\n"
36345 "                 const char *regex,\n"
36346 "                 const char *path);\n"
36347 "\n"
36348 msgstr ""
36349 " char **\n"
36350 " guestfs_zgrepi (guestfs_h *g,\n"
36351 "                 const char *regex,\n"
36352 "                 const char *path);\n"
36353 "\n"
36354
36355 #. type: =item
36356 #: ../src/guestfs-availability.pod:3
36357 msgid "B<augeas>"
36358 msgstr "B<augeas>"
36359
36360 #. type: textblock
36361 #: ../src/guestfs-availability.pod:5
36362 msgid ""
36363 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
36364 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
36365 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
36366 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
36367 "L</guestfs_aug_save> L</guestfs_aug_set>"
36368 msgstr ""
36369
36370 #. type: =item
36371 #: ../src/guestfs-availability.pod:21
36372 msgid "B<btrfs>"
36373 msgstr "B<btrfs>"
36374
36375 #. type: textblock
36376 #: ../src/guestfs-availability.pod:23
36377 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
36378 msgstr ""
36379
36380 #. type: =item
36381 #: ../src/guestfs-availability.pod:26
36382 msgid "B<grub>"
36383 msgstr ""
36384
36385 #. type: textblock
36386 #: ../src/guestfs-availability.pod:28
36387 msgid "The following functions: L</guestfs_grub_install>"
36388 msgstr ""
36389
36390 #. type: =item
36391 #: ../src/guestfs-availability.pod:31
36392 msgid "B<inotify>"
36393 msgstr "B<inotify>"
36394
36395 #. type: textblock
36396 #: ../src/guestfs-availability.pod:33
36397 msgid ""
36398 "The following functions: L</guestfs_inotify_add_watch> L</"
36399 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
36400 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
36401 msgstr ""
36402
36403 #. type: =item
36404 #: ../src/guestfs-availability.pod:41
36405 msgid "B<linuxfsuuid>"
36406 msgstr "B<linuxfsuuid>"
36407
36408 #. type: textblock
36409 #: ../src/guestfs-availability.pod:43
36410 msgid ""
36411 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
36412 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
36413 msgstr ""
36414
36415 #. type: =item
36416 #: ../src/guestfs-availability.pod:50
36417 msgid "B<linuxmodules>"
36418 msgstr "B<linuxmodules>"
36419
36420 #. type: textblock
36421 #: ../src/guestfs-availability.pod:52
36422 msgid "The following functions: L</guestfs_modprobe>"
36423 msgstr ""
36424
36425 #. type: =item
36426 #: ../src/guestfs-availability.pod:55
36427 msgid "B<linuxxattrs>"
36428 msgstr "B<linuxxattrs>"
36429
36430 #. type: textblock
36431 #: ../src/guestfs-availability.pod:57
36432 msgid ""
36433 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
36434 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
36435 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
36436 "guestfs_setxattr>"
36437 msgstr ""
36438
36439 #. type: =item
36440 #: ../src/guestfs-availability.pod:68
36441 msgid "B<luks>"
36442 msgstr "B<luks>"
36443
36444 #. type: textblock
36445 #: ../src/guestfs-availability.pod:70
36446 msgid ""
36447 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
36448 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
36449 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
36450 msgstr ""
36451
36452 #. type: =item
36453 #: ../src/guestfs-availability.pod:79
36454 msgid "B<lvm2>"
36455 msgstr "B<lvm2>"
36456
36457 #. type: textblock
36458 #: ../src/guestfs-availability.pod:81
36459 msgid ""
36460 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
36461 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
36462 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
36463 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
36464 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
36465 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
36466 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
36467 msgstr ""
36468
36469 #. type: =item
36470 #: ../src/guestfs-availability.pod:104
36471 msgid "B<mdadm>"
36472 msgstr ""
36473
36474 #. type: textblock
36475 #: ../src/guestfs-availability.pod:106
36476 msgid ""
36477 "The following functions: L</guestfs_md_create> L</guestfs_md_detail> L</"
36478 "guestfs_md_stop>"
36479 msgstr ""
36480
36481 #. type: =item
36482 #: ../src/guestfs-availability.pod:111
36483 msgid "B<mknod>"
36484 msgstr "B<mknod>"
36485
36486 #. type: textblock
36487 #: ../src/guestfs-availability.pod:113
36488 msgid ""
36489 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
36490 "guestfs_mknod_b> L</guestfs_mknod_c>"
36491 msgstr ""
36492
36493 #. type: =item
36494 #: ../src/guestfs-availability.pod:119
36495 msgid "B<ntfs3g>"
36496 msgstr "B<ntfs3g>"
36497
36498 #. type: textblock
36499 #: ../src/guestfs-availability.pod:121
36500 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
36501 msgstr ""
36502
36503 #. type: =item
36504 #: ../src/guestfs-availability.pod:124
36505 msgid "B<ntfsprogs>"
36506 msgstr "B<ntfsprogs>"
36507
36508 #. type: textblock
36509 #: ../src/guestfs-availability.pod:126
36510 msgid ""
36511 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
36512 "L</guestfs_ntfsresize_size>"
36513 msgstr ""
36514
36515 #. type: =item
36516 #: ../src/guestfs-availability.pod:131
36517 msgid "B<realpath>"
36518 msgstr "B<realpath>"
36519
36520 #. type: textblock
36521 #: ../src/guestfs-availability.pod:133
36522 msgid "The following functions: L</guestfs_realpath>"
36523 msgstr ""
36524
36525 #. type: =item
36526 #: ../src/guestfs-availability.pod:136
36527 msgid "B<scrub>"
36528 msgstr "B<scrub>"
36529
36530 #. type: textblock
36531 #: ../src/guestfs-availability.pod:138
36532 msgid ""
36533 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
36534 "guestfs_scrub_freespace>"
36535 msgstr ""
36536
36537 #. type: =item
36538 #: ../src/guestfs-availability.pod:143
36539 msgid "B<selinux>"
36540 msgstr "B<selinux>"
36541
36542 #. type: textblock
36543 #: ../src/guestfs-availability.pod:145
36544 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
36545 msgstr ""
36546
36547 #. type: =item
36548 #: ../src/guestfs-availability.pod:149
36549 msgid "B<xz>"
36550 msgstr "B<xz>"
36551
36552 #. type: textblock
36553 #: ../src/guestfs-availability.pod:151
36554 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
36555 msgstr ""
36556
36557 #. type: =item
36558 #: ../src/guestfs-availability.pod:155
36559 msgid "B<zerofree>"
36560 msgstr "B<zerofree>"
36561
36562 #. type: textblock
36563 #: ../src/guestfs-availability.pod:157
36564 msgid "The following functions: L</guestfs_zerofree>"
36565 msgstr ""
36566
36567 #. type: =head2
36568 #: ../src/guestfs-structs.pod:1
36569 msgid "guestfs_int_bool"
36570 msgstr ""
36571
36572 #. type: verbatim
36573 #: ../src/guestfs-structs.pod:3
36574 #, no-wrap
36575 msgid ""
36576 " struct guestfs_int_bool {\n"
36577 "   int32_t i;\n"
36578 "   int32_t b;\n"
36579 " };\n"
36580 " \n"
36581 msgstr ""
36582
36583 #. type: verbatim
36584 #: ../src/guestfs-structs.pod:8
36585 #, no-wrap
36586 msgid ""
36587 " struct guestfs_int_bool_list {\n"
36588 "   uint32_t len; /* Number of elements in list. */\n"
36589 "   struct guestfs_int_bool *val; /* Elements. */\n"
36590 " };\n"
36591 " \n"
36592 msgstr ""
36593
36594 #. type: verbatim
36595 #: ../src/guestfs-structs.pod:13
36596 #, no-wrap
36597 msgid ""
36598 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
36599 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
36600 "\n"
36601 msgstr ""
36602
36603 #. type: =head2
36604 #: ../src/guestfs-structs.pod:16
36605 msgid "guestfs_lvm_pv"
36606 msgstr ""
36607
36608 #. type: verbatim
36609 #: ../src/guestfs-structs.pod:18
36610 #, no-wrap
36611 msgid ""
36612 " struct guestfs_lvm_pv {\n"
36613 "   char *pv_name;\n"
36614 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
36615 "   char pv_uuid[32];\n"
36616 "   char *pv_fmt;\n"
36617 "   uint64_t pv_size;\n"
36618 "   uint64_t dev_size;\n"
36619 "   uint64_t pv_free;\n"
36620 "   uint64_t pv_used;\n"
36621 "   char *pv_attr;\n"
36622 "   int64_t pv_pe_count;\n"
36623 "   int64_t pv_pe_alloc_count;\n"
36624 "   char *pv_tags;\n"
36625 "   uint64_t pe_start;\n"
36626 "   int64_t pv_mda_count;\n"
36627 "   uint64_t pv_mda_free;\n"
36628 " };\n"
36629 " \n"
36630 msgstr ""
36631
36632 #. type: verbatim
36633 #: ../src/guestfs-structs.pod:36
36634 #, no-wrap
36635 msgid ""
36636 " struct guestfs_lvm_pv_list {\n"
36637 "   uint32_t len; /* Number of elements in list. */\n"
36638 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
36639 " };\n"
36640 " \n"
36641 msgstr ""
36642
36643 #. type: verbatim
36644 #: ../src/guestfs-structs.pod:41
36645 #, no-wrap
36646 msgid ""
36647 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
36648 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
36649 "\n"
36650 msgstr ""
36651
36652 #. type: =head2
36653 #: ../src/guestfs-structs.pod:44
36654 msgid "guestfs_lvm_vg"
36655 msgstr ""
36656
36657 #. type: verbatim
36658 #: ../src/guestfs-structs.pod:46
36659 #, no-wrap
36660 msgid ""
36661 " struct guestfs_lvm_vg {\n"
36662 "   char *vg_name;\n"
36663 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
36664 "   char vg_uuid[32];\n"
36665 "   char *vg_fmt;\n"
36666 "   char *vg_attr;\n"
36667 "   uint64_t vg_size;\n"
36668 "   uint64_t vg_free;\n"
36669 "   char *vg_sysid;\n"
36670 "   uint64_t vg_extent_size;\n"
36671 "   int64_t vg_extent_count;\n"
36672 "   int64_t vg_free_count;\n"
36673 "   int64_t max_lv;\n"
36674 "   int64_t max_pv;\n"
36675 "   int64_t pv_count;\n"
36676 "   int64_t lv_count;\n"
36677 "   int64_t snap_count;\n"
36678 "   int64_t vg_seqno;\n"
36679 "   char *vg_tags;\n"
36680 "   int64_t vg_mda_count;\n"
36681 "   uint64_t vg_mda_free;\n"
36682 " };\n"
36683 " \n"
36684 msgstr ""
36685
36686 #. type: verbatim
36687 #: ../src/guestfs-structs.pod:69
36688 #, no-wrap
36689 msgid ""
36690 " struct guestfs_lvm_vg_list {\n"
36691 "   uint32_t len; /* Number of elements in list. */\n"
36692 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
36693 " };\n"
36694 " \n"
36695 msgstr ""
36696
36697 #. type: verbatim
36698 #: ../src/guestfs-structs.pod:74
36699 #, no-wrap
36700 msgid ""
36701 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
36702 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
36703 "\n"
36704 msgstr ""
36705
36706 #. type: =head2
36707 #: ../src/guestfs-structs.pod:77
36708 msgid "guestfs_lvm_lv"
36709 msgstr ""
36710
36711 #. type: verbatim
36712 #: ../src/guestfs-structs.pod:79
36713 #, no-wrap
36714 msgid ""
36715 " struct guestfs_lvm_lv {\n"
36716 "   char *lv_name;\n"
36717 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
36718 "   char lv_uuid[32];\n"
36719 "   char *lv_attr;\n"
36720 "   int64_t lv_major;\n"
36721 "   int64_t lv_minor;\n"
36722 "   int64_t lv_kernel_major;\n"
36723 "   int64_t lv_kernel_minor;\n"
36724 "   uint64_t lv_size;\n"
36725 "   int64_t seg_count;\n"
36726 "   char *origin;\n"
36727 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
36728 "   float snap_percent;\n"
36729 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
36730 "   float copy_percent;\n"
36731 "   char *move_pv;\n"
36732 "   char *lv_tags;\n"
36733 "   char *mirror_log;\n"
36734 "   char *modules;\n"
36735 " };\n"
36736 " \n"
36737 msgstr ""
36738
36739 #. type: verbatim
36740 #: ../src/guestfs-structs.pod:101
36741 #, no-wrap
36742 msgid ""
36743 " struct guestfs_lvm_lv_list {\n"
36744 "   uint32_t len; /* Number of elements in list. */\n"
36745 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
36746 " };\n"
36747 " \n"
36748 msgstr ""
36749
36750 #. type: verbatim
36751 #: ../src/guestfs-structs.pod:106
36752 #, no-wrap
36753 msgid ""
36754 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
36755 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
36756 "\n"
36757 msgstr ""
36758
36759 #. type: verbatim
36760 #: ../src/guestfs-structs.pod:111
36761 #, no-wrap
36762 msgid ""
36763 " struct guestfs_stat {\n"
36764 "   int64_t dev;\n"
36765 "   int64_t ino;\n"
36766 "   int64_t mode;\n"
36767 "   int64_t nlink;\n"
36768 "   int64_t uid;\n"
36769 "   int64_t gid;\n"
36770 "   int64_t rdev;\n"
36771 "   int64_t size;\n"
36772 "   int64_t blksize;\n"
36773 "   int64_t blocks;\n"
36774 "   int64_t atime;\n"
36775 "   int64_t mtime;\n"
36776 "   int64_t ctime;\n"
36777 " };\n"
36778 " \n"
36779 msgstr ""
36780
36781 #. type: verbatim
36782 #: ../src/guestfs-structs.pod:127
36783 #, no-wrap
36784 msgid ""
36785 " struct guestfs_stat_list {\n"
36786 "   uint32_t len; /* Number of elements in list. */\n"
36787 "   struct guestfs_stat *val; /* Elements. */\n"
36788 " };\n"
36789 " \n"
36790 msgstr ""
36791
36792 #. type: verbatim
36793 #: ../src/guestfs-structs.pod:132
36794 #, no-wrap
36795 msgid ""
36796 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
36797 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
36798 "\n"
36799 msgstr ""
36800
36801 #. type: verbatim
36802 #: ../src/guestfs-structs.pod:137
36803 #, no-wrap
36804 msgid ""
36805 " struct guestfs_statvfs {\n"
36806 "   int64_t bsize;\n"
36807 "   int64_t frsize;\n"
36808 "   int64_t blocks;\n"
36809 "   int64_t bfree;\n"
36810 "   int64_t bavail;\n"
36811 "   int64_t files;\n"
36812 "   int64_t ffree;\n"
36813 "   int64_t favail;\n"
36814 "   int64_t fsid;\n"
36815 "   int64_t flag;\n"
36816 "   int64_t namemax;\n"
36817 " };\n"
36818 " \n"
36819 msgstr ""
36820
36821 #. type: verbatim
36822 #: ../src/guestfs-structs.pod:151
36823 #, no-wrap
36824 msgid ""
36825 " struct guestfs_statvfs_list {\n"
36826 "   uint32_t len; /* Number of elements in list. */\n"
36827 "   struct guestfs_statvfs *val; /* Elements. */\n"
36828 " };\n"
36829 " \n"
36830 msgstr ""
36831
36832 #. type: verbatim
36833 #: ../src/guestfs-structs.pod:156
36834 #, no-wrap
36835 msgid ""
36836 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
36837 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
36838 "\n"
36839 msgstr ""
36840
36841 #. type: =head2
36842 #: ../src/guestfs-structs.pod:159
36843 msgid "guestfs_dirent"
36844 msgstr ""
36845
36846 #. type: verbatim
36847 #: ../src/guestfs-structs.pod:161
36848 #, no-wrap
36849 msgid ""
36850 " struct guestfs_dirent {\n"
36851 "   int64_t ino;\n"
36852 "   char ftyp;\n"
36853 "   char *name;\n"
36854 " };\n"
36855 " \n"
36856 msgstr ""
36857
36858 #. type: verbatim
36859 #: ../src/guestfs-structs.pod:167
36860 #, no-wrap
36861 msgid ""
36862 " struct guestfs_dirent_list {\n"
36863 "   uint32_t len; /* Number of elements in list. */\n"
36864 "   struct guestfs_dirent *val; /* Elements. */\n"
36865 " };\n"
36866 " \n"
36867 msgstr ""
36868
36869 #. type: verbatim
36870 #: ../src/guestfs-structs.pod:172
36871 #, no-wrap
36872 msgid ""
36873 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
36874 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
36875 "\n"
36876 msgstr ""
36877
36878 #. type: verbatim
36879 #: ../src/guestfs-structs.pod:177
36880 #, no-wrap
36881 msgid ""
36882 " struct guestfs_version {\n"
36883 "   int64_t major;\n"
36884 "   int64_t minor;\n"
36885 "   int64_t release;\n"
36886 "   char *extra;\n"
36887 " };\n"
36888 " \n"
36889 msgstr ""
36890
36891 #. type: verbatim
36892 #: ../src/guestfs-structs.pod:184
36893 #, no-wrap
36894 msgid ""
36895 " struct guestfs_version_list {\n"
36896 "   uint32_t len; /* Number of elements in list. */\n"
36897 "   struct guestfs_version *val; /* Elements. */\n"
36898 " };\n"
36899 " \n"
36900 msgstr ""
36901
36902 #. type: verbatim
36903 #: ../src/guestfs-structs.pod:189
36904 #, no-wrap
36905 msgid ""
36906 " void guestfs_free_version (struct guestfs_free_version *);\n"
36907 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
36908 "\n"
36909 msgstr ""
36910
36911 #. type: =head2
36912 #: ../src/guestfs-structs.pod:192
36913 msgid "guestfs_xattr"
36914 msgstr ""
36915
36916 #. type: verbatim
36917 #: ../src/guestfs-structs.pod:194
36918 #, no-wrap
36919 msgid ""
36920 " struct guestfs_xattr {\n"
36921 "   char *attrname;\n"
36922 "   /* The next two fields describe a byte array. */\n"
36923 "   uint32_t attrval_len;\n"
36924 "   char *attrval;\n"
36925 " };\n"
36926 " \n"
36927 msgstr ""
36928
36929 #. type: verbatim
36930 #: ../src/guestfs-structs.pod:201
36931 #, no-wrap
36932 msgid ""
36933 " struct guestfs_xattr_list {\n"
36934 "   uint32_t len; /* Number of elements in list. */\n"
36935 "   struct guestfs_xattr *val; /* Elements. */\n"
36936 " };\n"
36937 " \n"
36938 msgstr ""
36939
36940 #. type: verbatim
36941 #: ../src/guestfs-structs.pod:206
36942 #, no-wrap
36943 msgid ""
36944 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
36945 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
36946 "\n"
36947 msgstr ""
36948
36949 #. type: =head2
36950 #: ../src/guestfs-structs.pod:209
36951 msgid "guestfs_inotify_event"
36952 msgstr ""
36953
36954 #. type: verbatim
36955 #: ../src/guestfs-structs.pod:211
36956 #, no-wrap
36957 msgid ""
36958 " struct guestfs_inotify_event {\n"
36959 "   int64_t in_wd;\n"
36960 "   uint32_t in_mask;\n"
36961 "   uint32_t in_cookie;\n"
36962 "   char *in_name;\n"
36963 " };\n"
36964 " \n"
36965 msgstr ""
36966
36967 #. type: verbatim
36968 #: ../src/guestfs-structs.pod:218
36969 #, no-wrap
36970 msgid ""
36971 " struct guestfs_inotify_event_list {\n"
36972 "   uint32_t len; /* Number of elements in list. */\n"
36973 "   struct guestfs_inotify_event *val; /* Elements. */\n"
36974 " };\n"
36975 " \n"
36976 msgstr ""
36977
36978 #. type: verbatim
36979 #: ../src/guestfs-structs.pod:223
36980 #, no-wrap
36981 msgid ""
36982 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
36983 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
36984 "\n"
36985 msgstr ""
36986
36987 #. type: =head2
36988 #: ../src/guestfs-structs.pod:226
36989 msgid "guestfs_partition"
36990 msgstr ""
36991
36992 #. type: verbatim
36993 #: ../src/guestfs-structs.pod:228
36994 #, no-wrap
36995 msgid ""
36996 " struct guestfs_partition {\n"
36997 "   int32_t part_num;\n"
36998 "   uint64_t part_start;\n"
36999 "   uint64_t part_end;\n"
37000 "   uint64_t part_size;\n"
37001 " };\n"
37002 " \n"
37003 msgstr ""
37004
37005 #. type: verbatim
37006 #: ../src/guestfs-structs.pod:235
37007 #, no-wrap
37008 msgid ""
37009 " struct guestfs_partition_list {\n"
37010 "   uint32_t len; /* Number of elements in list. */\n"
37011 "   struct guestfs_partition *val; /* Elements. */\n"
37012 " };\n"
37013 " \n"
37014 msgstr ""
37015
37016 #. type: verbatim
37017 #: ../src/guestfs-structs.pod:240
37018 #, no-wrap
37019 msgid ""
37020 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
37021 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
37022 "\n"
37023 msgstr ""
37024
37025 #. type: =head2
37026 #: ../src/guestfs-structs.pod:243
37027 msgid "guestfs_application"
37028 msgstr ""
37029
37030 #. type: verbatim
37031 #: ../src/guestfs-structs.pod:245
37032 #, no-wrap
37033 msgid ""
37034 " struct guestfs_application {\n"
37035 "   char *app_name;\n"
37036 "   char *app_display_name;\n"
37037 "   int32_t app_epoch;\n"
37038 "   char *app_version;\n"
37039 "   char *app_release;\n"
37040 "   char *app_install_path;\n"
37041 "   char *app_trans_path;\n"
37042 "   char *app_publisher;\n"
37043 "   char *app_url;\n"
37044 "   char *app_source_package;\n"
37045 "   char *app_summary;\n"
37046 "   char *app_description;\n"
37047 " };\n"
37048 " \n"
37049 msgstr ""
37050
37051 #. type: verbatim
37052 #: ../src/guestfs-structs.pod:260
37053 #, no-wrap
37054 msgid ""
37055 " struct guestfs_application_list {\n"
37056 "   uint32_t len; /* Number of elements in list. */\n"
37057 "   struct guestfs_application *val; /* Elements. */\n"
37058 " };\n"
37059 " \n"
37060 msgstr ""
37061
37062 #. type: verbatim
37063 #: ../src/guestfs-structs.pod:265
37064 #, no-wrap
37065 msgid ""
37066 " void guestfs_free_application (struct guestfs_free_application *);\n"
37067 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
37068 "\n"
37069 msgstr ""
37070
37071 #. type: textblock
37072 #: ../src/guestfs.pod:5
37073 msgid "guestfs - Library for accessing and modifying virtual machine images"
37074 msgstr ""
37075 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
37076 "машин"
37077
37078 #. type: verbatim
37079 #: ../src/guestfs.pod:11
37080 #, no-wrap
37081 msgid ""
37082 " guestfs_h *g = guestfs_create ();\n"
37083 " guestfs_add_drive (g, \"guest.img\");\n"
37084 " guestfs_launch (g);\n"
37085 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37086 " guestfs_touch (g, \"/hello\");\n"
37087 " guestfs_umount (g, \"/\");\n"
37088 " guestfs_close (g);\n"
37089 "\n"
37090 msgstr ""
37091 " guestfs_h *g = guestfs_create ();\n"
37092 " guestfs_add_drive (g, \"guest.img\");\n"
37093 " guestfs_launch (g);\n"
37094 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37095 " guestfs_touch (g, \"/hello\");\n"
37096 " guestfs_umount (g, \"/\");\n"
37097 " guestfs_close (g);\n"
37098 "\n"
37099
37100 #. type: textblock
37101 #: ../src/guestfs.pod:25
37102 msgid ""
37103 "Libguestfs is a library for accessing and modifying guest disk images.  "
37104 "Amongst the things this is good for: making batch configuration changes to "
37105 "guests, getting disk used/free statistics (see also: virt-df), migrating "
37106 "between virtualization systems (see also: virt-p2v), performing partial "
37107 "backups, performing partial guest clones, cloning guests and changing "
37108 "registry/UUID/hostname info, and much else besides."
37109 msgstr ""
37110
37111 #. type: textblock
37112 #: ../src/guestfs.pod:33
37113 msgid ""
37114 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
37115 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
37116 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
37117 "qcow2, vmdk."
37118 msgstr ""
37119
37120 #. type: textblock
37121 #: ../src/guestfs.pod:38
37122 msgid ""
37123 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
37124 "what filesystem is in each LV, etc.).  It can also run commands in the "
37125 "context of the guest.  Also you can access filesystems over FUSE."
37126 msgstr ""
37127
37128 #. type: textblock
37129 #: ../src/guestfs.pod:43
37130 msgid ""
37131 "Libguestfs is a library that can be linked with C and C++ management "
37132 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
37133 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
37134 "command line."
37135 msgstr ""
37136
37137 #. type: textblock
37138 #: ../src/guestfs.pod:48
37139 msgid ""
37140 "You don't need to be root to use libguestfs, although obviously you do need "
37141 "enough permissions to access the disk images."
37142 msgstr ""
37143
37144 #. type: textblock
37145 #: ../src/guestfs.pod:51
37146 msgid ""
37147 "Libguestfs is a large API because it can do many things.  For a gentle "
37148 "introduction, please read the L</API OVERVIEW> section next."
37149 msgstr ""
37150
37151 #. type: textblock
37152 #: ../src/guestfs.pod:54
37153 msgid ""
37154 "There are also some example programs in the L<guestfs-examples(3)> manual "
37155 "page."
37156 msgstr ""
37157
37158 #. type: =head1
37159 #: ../src/guestfs.pod:57
37160 msgid "API OVERVIEW"
37161 msgstr "ОГЛЯД API"
37162
37163 #. type: textblock
37164 #: ../src/guestfs.pod:59
37165 msgid ""
37166 "This section provides a gentler overview of the libguestfs API.  We also try "
37167 "to group API calls together, where that may not be obvious from reading "
37168 "about the individual calls in the main section of this manual."
37169 msgstr ""
37170
37171 #. type: =head2
37172 #: ../src/guestfs.pod:64
37173 msgid "HANDLES"
37174 msgstr "ОБРОБНИКИ"
37175
37176 #. type: textblock
37177 #: ../src/guestfs.pod:66
37178 msgid ""
37179 "Before you can use libguestfs calls, you have to create a handle.  Then you "
37180 "must add at least one disk image to the handle, followed by launching the "
37181 "handle, then performing whatever operations you want, and finally closing "
37182 "the handle.  By convention we use the single letter C<g> for the name of the "
37183 "handle variable, although of course you can use any name you want."
37184 msgstr ""
37185
37186 #. type: textblock
37187 #: ../src/guestfs.pod:73
37188 msgid "The general structure of all libguestfs-using programs looks like this:"
37189 msgstr ""
37190
37191 #. type: verbatim
37192 #: ../src/guestfs.pod:76
37193 #, no-wrap
37194 msgid ""
37195 " guestfs_h *g = guestfs_create ();\n"
37196 " \n"
37197 msgstr ""
37198 " guestfs_h *g = guestfs_create ();\n"
37199 " \n"
37200
37201 #. type: verbatim
37202 #: ../src/guestfs.pod:78
37203 #, no-wrap
37204 msgid ""
37205 " /* Call guestfs_add_drive additional times if there are\n"
37206 "  * multiple disk images.\n"
37207 "  */\n"
37208 " guestfs_add_drive (g, \"guest.img\");\n"
37209 " \n"
37210 msgstr ""
37211
37212 #. type: verbatim
37213 #: ../src/guestfs.pod:83
37214 #, no-wrap
37215 msgid ""
37216 " /* Most manipulation calls won't work until you've launched\n"
37217 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
37218 "  * and _before_ other commands.\n"
37219 "  */\n"
37220 " guestfs_launch (g);\n"
37221 " \n"
37222 msgstr ""
37223
37224 #. type: verbatim
37225 #: ../src/guestfs.pod:89
37226 #, no-wrap
37227 msgid ""
37228 " /* Now you can examine what partitions, LVs etc are available.\n"
37229 "  */\n"
37230 " char **partitions = guestfs_list_partitions (g);\n"
37231 " char **logvols = guestfs_lvs (g);\n"
37232 " \n"
37233 msgstr ""
37234 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
37235 "  */\n"
37236 " char **partitions = guestfs_list_partitions (g);\n"
37237 " char **logvols = guestfs_lvs (g);\n"
37238 " \n"
37239
37240 #. type: verbatim
37241 #: ../src/guestfs.pod:94
37242 #, no-wrap
37243 msgid ""
37244 " /* To access a filesystem in the image, you must mount it.\n"
37245 "  */\n"
37246 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37247 " \n"
37248 msgstr ""
37249 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
37250 "  */\n"
37251 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
37252 " \n"
37253
37254 #. type: verbatim
37255 #: ../src/guestfs.pod:98
37256 #, no-wrap
37257 msgid ""
37258 " /* Now you can perform filesystem actions on the guest\n"
37259 "  * disk image.\n"
37260 "  */\n"
37261 " guestfs_touch (g, \"/hello\");\n"
37262 " \n"
37263 msgstr ""
37264 " /* Тепер ви можете виконувати дії з файловою системою на\n"
37265 "  * образі диска операційної системи.\n"
37266 "  */\n"
37267 " guestfs_touch (g, \"/hello\");\n"
37268 " \n"
37269
37270 #. type: verbatim
37271 #: ../src/guestfs.pod:103
37272 #, no-wrap
37273 msgid ""
37274 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
37275 "  * it is done automatically when you close the handle.  See\n"
37276 "  * discussion of autosync in this page.\n"
37277 "  */\n"
37278 " guestfs_sync (g);\n"
37279 " \n"
37280 msgstr ""
37281
37282 #. type: verbatim
37283 #: ../src/guestfs.pod:109
37284 #, no-wrap
37285 msgid ""
37286 " /* Close the handle 'g'. */\n"
37287 " guestfs_close (g);\n"
37288 "\n"
37289 msgstr ""
37290 " /* Закрити дескриптор 'g'. */\n"
37291 " guestfs_close (g);\n"
37292 "\n"
37293
37294 #. type: textblock
37295 #: ../src/guestfs.pod:112
37296 msgid ""
37297 "The code above doesn't include any error checking.  In real code you should "
37298 "check return values carefully for errors.  In general all functions that "
37299 "return integers return C<-1> on error, and all functions that return "
37300 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
37301 "how to handle errors, and consult the documentation for each function call "
37302 "below to see precisely how they return error indications.  See L<guestfs-"
37303 "examples(3)> for fully worked examples."
37304 msgstr ""
37305
37306 #. type: =head2
37307 #: ../src/guestfs.pod:121
37308 msgid "DISK IMAGES"
37309 msgstr "ОБРАЗИ ДИСКІВ"
37310
37311 #. type: textblock
37312 #: ../src/guestfs.pod:123
37313 msgid ""
37314 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
37315 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
37316 "actual block device, or simply an empty file of zeroes that you have created "
37317 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
37318 "of these."
37319 msgstr ""
37320
37321 #. type: textblock
37322 #: ../src/guestfs.pod:129
37323 msgid ""
37324 "The call you should use in modern code for adding drives is L</"
37325 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
37326 "specifying that the format is raw, do:"
37327 msgstr ""
37328
37329 #. type: verbatim
37330 #: ../src/guestfs.pod:133
37331 #, no-wrap
37332 msgid ""
37333 " guestfs_add_drive_opts (g, filename,\n"
37334 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37335 "                         -1);\n"
37336 "\n"
37337 msgstr ""
37338 " guestfs_add_drive_opts (g, filename,\n"
37339 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37340 "                         -1);\n"
37341 "\n"
37342
37343 #. type: textblock
37344 #: ../src/guestfs.pod:137
37345 msgid "You can add a disk read-only using:"
37346 msgstr "Ви можете додати диск у режимі лише читання:"
37347
37348 #. type: verbatim
37349 #: ../src/guestfs.pod:139
37350 #, no-wrap
37351 msgid ""
37352 " guestfs_add_drive_opts (g, filename,\n"
37353 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37354 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37355 "                         -1);\n"
37356 "\n"
37357 msgstr ""
37358 " guestfs_add_drive_opts (g, filename,\n"
37359 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
37360 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37361 "                         -1);\n"
37362 "\n"
37363
37364 #. type: textblock
37365 #: ../src/guestfs.pod:144
37366 msgid ""
37367 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
37368 "libguestfs won't modify the file."
37369 msgstr ""
37370
37371 #. type: textblock
37372 #: ../src/guestfs.pod:147
37373 msgid ""
37374 "Be extremely cautious if the disk image is in use, eg. if it is being used "
37375 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
37376 "corruption, but adding it read-only is safe."
37377 msgstr ""
37378
37379 #. type: textblock
37380 #: ../src/guestfs.pod:151
37381 msgid ""
37382 "You must add at least one disk image, and you may add multiple disk images.  "
37383 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
37384 "first one you added), C</dev/sdb> (for the second one you added), etc."
37385 msgstr ""
37386
37387 #. type: textblock
37388 #: ../src/guestfs.pod:156
37389 msgid ""
37390 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
37391 "can call L</guestfs_list_devices> to get a list of the device names, in the "
37392 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
37393 msgstr ""
37394
37395 #. type: =head2
37396 #: ../src/guestfs.pod:161
37397 msgid "MOUNTING"
37398 msgstr "МОНТУВАННЯ"
37399
37400 #. type: textblock
37401 #: ../src/guestfs.pod:163
37402 msgid ""
37403 "Before you can read or write files, create directories and so on in a disk "
37404 "image that contains filesystems, you have to mount those filesystems using "
37405 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
37406 "a disk image contains (for example) one partition with a filesystem on that "
37407 "partition, then you can mount it directly:"
37408 msgstr ""
37409
37410 #. type: verbatim
37411 #: ../src/guestfs.pod:170
37412 #, no-wrap
37413 msgid ""
37414 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
37415 "\n"
37416 msgstr ""
37417 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
37418 "\n"
37419
37420 #. type: textblock
37421 #: ../src/guestfs.pod:172
37422 msgid ""
37423 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
37424 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
37425 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
37426 "that these are libguestfs virtual devices, and are nothing to do with host "
37427 "devices."
37428 msgstr ""
37429
37430 #. type: textblock
37431 #: ../src/guestfs.pod:178
37432 msgid ""
37433 "If you are given a disk image and you don't know what it contains then you "
37434 "have to find out.  Libguestfs can do that too: use L</"
37435 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
37436 "LVs, and either try mounting each to see what is mountable, or else examine "
37437 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
37438 "filesystems, use L</guestfs_list_filesystems>."
37439 msgstr ""
37440
37441 #. type: textblock
37442 #: ../src/guestfs.pod:186
37443 msgid ""
37444 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
37445 "L</INSPECTION> below).  But you might find it easier to look at higher level "
37446 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
37447 msgstr ""
37448
37449 #. type: textblock
37450 #: ../src/guestfs.pod:191
37451 msgid ""
37452 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
37453 "several other variations of the C<guestfs_mount_*> call."
37454 msgstr ""
37455
37456 #. type: =head2
37457 #: ../src/guestfs.pod:194
37458 msgid "FILESYSTEM ACCESS AND MODIFICATION"
37459 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
37460
37461 #. type: textblock
37462 #: ../src/guestfs.pod:196
37463 msgid ""
37464 "The majority of the libguestfs API consists of fairly low-level calls for "
37465 "accessing and modifying the files, directories, symlinks etc on mounted "
37466 "filesystems.  There are over a hundred such calls which you can find listed "
37467 "in detail below in this man page, and we don't even pretend to cover them "
37468 "all in this overview."
37469 msgstr ""
37470
37471 #. type: textblock
37472 #: ../src/guestfs.pod:202
37473 msgid ""
37474 "Specify filenames as full paths, starting with C<\"/\"> and including the "
37475 "mount point."
37476 msgstr ""
37477 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
37478 "точкою монтування."
37479
37480 #. type: textblock
37481 #: ../src/guestfs.pod:205
37482 msgid ""
37483 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
37484 "the file called C<\"etc/passwd\"> then you could do:"
37485 msgstr ""
37486 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
37487 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
37488 "таким кодом:"
37489
37490 #. type: verbatim
37491 #: ../src/guestfs.pod:208
37492 #, no-wrap
37493 msgid ""
37494 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
37495 "\n"
37496 msgstr ""
37497 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
37498 "\n"
37499
37500 #. type: textblock
37501 #: ../src/guestfs.pod:210
37502 msgid ""
37503 "This would return C<data> as a newly allocated buffer containing the full "
37504 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
37505 "or C<NULL> if there was an error."
37506 msgstr ""
37507
37508 #. type: textblock
37509 #: ../src/guestfs.pod:214
37510 msgid ""
37511 "As another example, to create a top-level directory on that filesystem "
37512 "called C<\"var\"> you would do:"
37513 msgstr ""
37514
37515 #. type: verbatim
37516 #: ../src/guestfs.pod:217
37517 #, no-wrap
37518 msgid ""
37519 " guestfs_mkdir (g, \"/var\");\n"
37520 "\n"
37521 msgstr ""
37522 " guestfs_mkdir (g, \"/var\");\n"
37523 "\n"
37524
37525 #. type: textblock
37526 #: ../src/guestfs.pod:219
37527 msgid "To create a symlink you could do:"
37528 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
37529
37530 #. type: verbatim
37531 #: ../src/guestfs.pod:221
37532 #, no-wrap
37533 msgid ""
37534 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
37535 "               \"/etc/rc3.d/S30portmap\");\n"
37536 "\n"
37537 msgstr ""
37538 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
37539 "               \"/etc/rc3.d/S30portmap\");\n"
37540 "\n"
37541
37542 #. type: textblock
37543 #: ../src/guestfs.pod:224
37544 msgid ""
37545 "Libguestfs will reject attempts to use relative paths and there is no "
37546 "concept of a current working directory."
37547 msgstr ""
37548
37549 #. type: textblock
37550 #: ../src/guestfs.pod:227
37551 msgid ""
37552 "Libguestfs can return errors in many situations: for example if the "
37553 "filesystem isn't writable, or if a file or directory that you requested "
37554 "doesn't exist.  If you are using the C API (documented here)  you have to "
37555 "check for those error conditions after each call.  (Other language bindings "
37556 "turn these errors into exceptions)."
37557 msgstr ""
37558
37559 #. type: textblock
37560 #: ../src/guestfs.pod:233
37561 msgid ""
37562 "File writes are affected by the per-handle umask, set by calling L</"
37563 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
37564 msgstr ""
37565
37566 #. type: =head2
37567 #: ../src/guestfs.pod:236
37568 msgid "PARTITIONING"
37569 msgstr "ПОДІЛ НА РОЗДІЛИ"
37570
37571 #. type: textblock
37572 #: ../src/guestfs.pod:238
37573 msgid ""
37574 "Libguestfs contains API calls to read, create and modify partition tables on "
37575 "disk images."
37576 msgstr ""
37577
37578 #. type: textblock
37579 #: ../src/guestfs.pod:241
37580 msgid ""
37581 "In the common case where you want to create a single partition covering the "
37582 "whole disk, you should use the L</guestfs_part_disk> call:"
37583 msgstr ""
37584
37585 #. type: verbatim
37586 #: ../src/guestfs.pod:245
37587 #, no-wrap
37588 msgid ""
37589 " const char *parttype = \"mbr\";\n"
37590 " if (disk_is_larger_than_2TB)\n"
37591 "   parttype = \"gpt\";\n"
37592 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
37593 "\n"
37594 msgstr ""
37595 " const char *parttype = \"mbr\";\n"
37596 " if (disk_is_larger_than_2TB)\n"
37597 "   parttype = \"gpt\";\n"
37598 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
37599 "\n"
37600
37601 #. type: textblock
37602 #: ../src/guestfs.pod:250
37603 msgid ""
37604 "Obviously this effectively wipes anything that was on that disk image before."
37605 msgstr ""
37606
37607 #. type: =head2
37608 #: ../src/guestfs.pod:253
37609 msgid "LVM2"
37610 msgstr "LVM2"
37611
37612 #. type: textblock
37613 #: ../src/guestfs.pod:255
37614 msgid ""
37615 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
37616 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
37617 "you familiarize yourself with the concepts of physical volumes, volume "
37618 "groups and logical volumes."
37619 msgstr ""
37620
37621 #. type: textblock
37622 #: ../src/guestfs.pod:260
37623 msgid ""
37624 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
37625 "tldp.org/HOWTO/LVM-HOWTO/>."
37626 msgstr ""
37627
37628 #. type: =head2
37629 #: ../src/guestfs.pod:263
37630 msgid "DOWNLOADING"
37631 msgstr "ОТРИМАННЯ ДАНИХ"
37632
37633 #. type: textblock
37634 #: ../src/guestfs.pod:265
37635 msgid ""
37636 "Use L</guestfs_cat> to download small, text only files.  This call is "
37637 "limited to files which are less than 2 MB and which cannot contain any ASCII "
37638 "NUL (C<\\0>) characters.  However the API is very simple to use."
37639 msgstr ""
37640
37641 #. type: textblock
37642 #: ../src/guestfs.pod:269
37643 msgid ""
37644 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
37645 "bit data, since it returns a (pointer, size) pair.  However it is still "
37646 "limited to \"small\" files, less than 2 MB."
37647 msgstr ""
37648
37649 #. type: textblock
37650 #: ../src/guestfs.pod:273
37651 msgid ""
37652 "L</guestfs_download> can be used to download any file, with no limits on "
37653 "content or size (even files larger than 4 GB)."
37654 msgstr ""
37655
37656 #. type: textblock
37657 #: ../src/guestfs.pod:276
37658 msgid ""
37659 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
37660 msgstr ""
37661
37662 #. type: =head2
37663 #: ../src/guestfs.pod:279
37664 msgid "UPLOADING"
37665 msgstr "ВИВАНТАЖЕННЯ"
37666
37667 #. type: textblock
37668 #: ../src/guestfs.pod:281
37669 msgid ""
37670 "It's often the case that you want to write a file or files to the disk image."
37671 msgstr ""
37672
37673 #. type: textblock
37674 #: ../src/guestfs.pod:284
37675 msgid ""
37676 "To write a small file with fixed content, use L</guestfs_write>.  To create "
37677 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
37678 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
37679 "of other functions for creating test files, for example L</guestfs_fill> and "
37680 "L</guestfs_fill_pattern>."
37681 msgstr ""
37682
37683 #. type: textblock
37684 #: ../src/guestfs.pod:290
37685 msgid ""
37686 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
37687 "file content or size (even files larger than 4 GB)."
37688 msgstr ""
37689
37690 #. type: textblock
37691 #: ../src/guestfs.pod:293
37692 msgid ""
37693 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
37694 msgstr ""
37695
37696 #. type: textblock
37697 #: ../src/guestfs.pod:295
37698 msgid ""
37699 "However the fastest way to upload I<large numbers of arbitrary files> is to "
37700 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
37701 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
37702 "in a predictable way (eg. adding it last after all other drives) then you "
37703 "can get the device name from L</guestfs_list_devices> and mount it directly "
37704 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
37705 "portable between kernel versions, and they don't support labels or UUIDs.  "
37706 "If you want to pre-build an image or you need to mount it using a label or "
37707 "UUID, use an ISO image instead."
37708 msgstr ""
37709
37710 #. type: =head2
37711 #: ../src/guestfs.pod:306
37712 msgid "COPYING"
37713 msgstr "КОПІЮВАННЯ"
37714
37715 #. type: textblock
37716 #: ../src/guestfs.pod:308
37717 msgid ""
37718 "There are various different commands for copying between files and devices "
37719 "and in and out of the guest filesystem.  These are summarised in the table "
37720 "below."
37721 msgstr ""
37722
37723 #. type: =item
37724 #: ../src/guestfs.pod:314
37725 msgid "B<file> to B<file>"
37726 msgstr "B<файл> у B<файл>"
37727
37728 #. type: textblock
37729 #: ../src/guestfs.pod:316
37730 msgid ""
37731 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
37732 "directories recursively."
37733 msgstr ""
37734
37735 #. type: textblock
37736 #: ../src/guestfs.pod:319
37737 msgid ""
37738 "To copy part of a file (offset and size) use L</guestfs_copy_file_to_file>."
37739 msgstr ""
37740
37741 #. type: =item
37742 #: ../src/guestfs.pod:322
37743 msgid "B<file> to B<device>"
37744 msgstr ""
37745
37746 #. type: =item
37747 #: ../src/guestfs.pod:324
37748 msgid "B<device> to B<file>"
37749 msgstr ""
37750
37751 #. type: =item
37752 #: ../src/guestfs.pod:326
37753 msgid "B<device> to B<device>"
37754 msgstr ""
37755
37756 #. type: textblock
37757 #: ../src/guestfs.pod:328
37758 msgid ""
37759 "Use L</guestfs_copy_file_to_device>, L</guestfs_copy_device_to_file>, or L</"
37760 "guestfs_copy_device_to_device>."
37761 msgstr ""
37762
37763 #. type: textblock
37764 #: ../src/guestfs.pod:331
37765 msgid "Example: duplicate the contents of an LV:"
37766 msgstr ""
37767
37768 #. type: verbatim
37769 #: ../src/guestfs.pod:333
37770 #, no-wrap
37771 msgid ""
37772 " guestfs_copy_device_to_device (g,\n"
37773 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
37774 "         /* -1 marks the end of the list of optional parameters */\n"
37775 "         -1);\n"
37776 "\n"
37777 msgstr ""
37778
37779 #. type: textblock
37780 #: ../src/guestfs.pod:338
37781 msgid ""
37782 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
37783 "(C</dev/VG/Original>).  To copy less than the whole source device, use the "
37784 "optional C<size> parameter:"
37785 msgstr ""
37786
37787 #. type: verbatim
37788 #: ../src/guestfs.pod:342
37789 #, no-wrap
37790 msgid ""
37791 " guestfs_copy_device_to_device (g,\n"
37792 "         \"/dev/VG/Original\", \"/dev/VG/Copy\",\n"
37793 "         GUESTFS_COPY_DEVICE_TO_DEVICE_SIZE, 10000,\n"
37794 "         -1);\n"
37795 "\n"
37796 msgstr ""
37797
37798 #. type: =item
37799 #: ../src/guestfs.pod:347
37800 msgid "B<file on the host> to B<file or device>"
37801 msgstr ""
37802
37803 #. type: textblock
37804 #: ../src/guestfs.pod:349
37805 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
37806 msgstr ""
37807
37808 #. type: =item
37809 #: ../src/guestfs.pod:351
37810 msgid "B<file or device> to B<file on the host>"
37811 msgstr ""
37812
37813 #. type: textblock
37814 #: ../src/guestfs.pod:353
37815 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
37816 msgstr ""
37817
37818 #. type: =head2
37819 #: ../src/guestfs.pod:357
37820 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
37821 msgstr ""
37822
37823 #. type: textblock
37824 #: ../src/guestfs.pod:359
37825 msgid ""
37826 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
37827 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
37828 "appears you can only upload and download to files.  However many Un*x-like "
37829 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
37830 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
37831 "and arbitrary file descriptor N."
37832 msgstr ""
37833
37834 #. type: textblock
37835 #: ../src/guestfs.pod:367
37836 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
37837 msgstr ""
37838
37839 #. type: verbatim
37840 #: ../src/guestfs.pod:370
37841 #, no-wrap
37842 msgid ""
37843 " guestfs_download (g, filename, \"/dev/stdout\");\n"
37844 "\n"
37845 msgstr ""
37846 " guestfs_download (g, filename, \"/dev/stdout\");\n"
37847 "\n"
37848
37849 #. type: textblock
37850 #: ../src/guestfs.pod:372
37851 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
37852 msgstr ""
37853
37854 #. type: verbatim
37855 #: ../src/guestfs.pod:374
37856 #, no-wrap
37857 msgid ""
37858 " char devfd[64];\n"
37859 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
37860 " guestfs_tar_out (g, \"/\", devfd);\n"
37861 "\n"
37862 msgstr ""
37863 " char devfd[64];\n"
37864 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
37865 " guestfs_tar_out (g, \"/\", devfd);\n"
37866 "\n"
37867
37868 #. type: =head2
37869 #: ../src/guestfs.pod:378
37870 msgid "LISTING FILES"
37871 msgstr "СПИСКИ ФАЙЛІВ"
37872
37873 #. type: textblock
37874 #: ../src/guestfs.pod:380
37875 msgid ""
37876 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
37877 "L<guestfish(1)>-equivalent command C<ll>)."
37878 msgstr ""
37879
37880 #. type: textblock
37881 #: ../src/guestfs.pod:383
37882 msgid ""
37883 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
37884 "programs, as a flat list of strings."
37885 msgstr ""
37886
37887 #. type: textblock
37888 #: ../src/guestfs.pod:386
37889 msgid ""
37890 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
37891 "directory, plus additional information about each one.  It is more "
37892 "equivalent to using the L<readdir(3)> call on a local filesystem."
37893 msgstr ""
37894
37895 #. type: textblock
37896 #: ../src/guestfs.pod:390
37897 msgid ""
37898 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
37899 msgstr ""
37900
37901 #. type: =head2
37902 #: ../src/guestfs.pod:393
37903 msgid "RUNNING COMMANDS"
37904 msgstr "ВИКОНАННЯ КОМАНД"
37905
37906 #. type: textblock
37907 #: ../src/guestfs.pod:395
37908 msgid ""
37909 "Although libguestfs is primarily an API for manipulating files inside guest "
37910 "images, we also provide some limited facilities for running commands inside "
37911 "guests."
37912 msgstr ""
37913
37914 #. type: textblock
37915 #: ../src/guestfs.pod:399
37916 msgid "There are many limitations to this:"
37917 msgstr ""
37918
37919 #. type: textblock
37920 #: ../src/guestfs.pod:405
37921 msgid ""
37922 "The kernel version that the command runs under will be different from what "
37923 "it expects."
37924 msgstr ""
37925
37926 #. type: textblock
37927 #: ../src/guestfs.pod:410
37928 msgid ""
37929 "If the command needs to communicate with daemons, then most likely they "
37930 "won't be running."
37931 msgstr ""
37932
37933 #. type: textblock
37934 #: ../src/guestfs.pod:415
37935 msgid "The command will be running in limited memory."
37936 msgstr ""
37937
37938 #. type: textblock
37939 #: ../src/guestfs.pod:419
37940 msgid ""
37941 "The network may not be available unless you enable it (see L</"
37942 "guestfs_set_network>)."
37943 msgstr ""
37944
37945 #. type: textblock
37946 #: ../src/guestfs.pod:424
37947 msgid "Only supports Linux guests (not Windows, BSD, etc)."
37948 msgstr ""
37949
37950 #. type: textblock
37951 #: ../src/guestfs.pod:428
37952 msgid ""
37953 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
37954 msgstr ""
37955
37956 #. type: textblock
37957 #: ../src/guestfs.pod:433
37958 msgid ""
37959 "For SELinux guests, you may need to enable SELinux and load policy first.  "
37960 "See L</SELINUX> in this manpage."
37961 msgstr ""
37962
37963 #. type: textblock
37964 #: ../src/guestfs.pod:438
37965 msgid ""
37966 "I<Security:> It is not safe to run commands from untrusted, possibly "
37967 "malicious guests.  These commands may attempt to exploit your program by "
37968 "sending unexpected output.  They could also try to exploit the Linux kernel "
37969 "or qemu provided by the libguestfs appliance.  They could use the network "
37970 "provided by the libguestfs appliance to bypass ordinary network partitions "
37971 "and firewalls.  They could use the elevated privileges or different SELinux "
37972 "context of your program to their advantage."
37973 msgstr ""
37974
37975 #. type: textblock
37976 #: ../src/guestfs.pod:447
37977 msgid ""
37978 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
37979 "(a script which runs when the guest next boots normally), and to have this "
37980 "script run the commands you want in the normal context of the running guest, "
37981 "network security and so on.  For information about other security issues, "
37982 "see L</SECURITY>."
37983 msgstr ""
37984
37985 #. type: textblock
37986 #: ../src/guestfs.pod:455
37987 msgid ""
37988 "The two main API calls to run commands are L</guestfs_command> and L</"
37989 "guestfs_sh> (there are also variations)."
37990 msgstr ""
37991
37992 #. type: textblock
37993 #: ../src/guestfs.pod:458
37994 msgid ""
37995 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
37996 "shell globs, redirections, etc will work."
37997 msgstr ""
37998
37999 #. type: =head2
38000 #: ../src/guestfs.pod:461
38001 msgid "CONFIGURATION FILES"
38002 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
38003
38004 #. type: textblock
38005 #: ../src/guestfs.pod:463
38006 msgid ""
38007 "To read and write configuration files in Linux guest filesystems, we "
38008 "strongly recommend using Augeas.  For example, Augeas understands how to "
38009 "read and write, say, a Linux shadow password file or X.org configuration "
38010 "file, and so avoids you having to write that code."
38011 msgstr ""
38012
38013 #. type: textblock
38014 #: ../src/guestfs.pod:468
38015 msgid ""
38016 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
38017 "document Augeas itself here because there is excellent documentation on the "
38018 "L<http://augeas.net/> website."
38019 msgstr ""
38020
38021 #. type: textblock
38022 #: ../src/guestfs.pod:472
38023 msgid ""
38024 "If you don't want to use Augeas (you fool!) then try calling L</"
38025 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
38026 "over."
38027 msgstr ""
38028
38029 #. type: =head2
38030 #: ../src/guestfs.pod:476
38031 msgid "SELINUX"
38032 msgstr "SELINUX"
38033
38034 #. type: textblock
38035 #: ../src/guestfs.pod:478
38036 msgid ""
38037 "We support SELinux guests.  To ensure that labeling happens correctly in "
38038 "SELinux guests, you need to enable SELinux and load the guest's policy:"
38039 msgstr ""
38040
38041 #. type: textblock
38042 #: ../src/guestfs.pod:486
38043 msgid "Before launching, do:"
38044 msgstr ""
38045
38046 #. type: verbatim
38047 #: ../src/guestfs.pod:488
38048 #, no-wrap
38049 msgid ""
38050 " guestfs_set_selinux (g, 1);\n"
38051 "\n"
38052 msgstr ""
38053 " guestfs_set_selinux (g, 1);\n"
38054 "\n"
38055
38056 #. type: textblock
38057 #: ../src/guestfs.pod:492
38058 msgid ""
38059 "After mounting the guest's filesystem(s), load the policy.  This is best "
38060 "done by running the L<load_policy(8)> command in the guest itself:"
38061 msgstr ""
38062
38063 #. type: verbatim
38064 #: ../src/guestfs.pod:496
38065 #, no-wrap
38066 msgid ""
38067 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
38068 "\n"
38069 msgstr ""
38070 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
38071 "\n"
38072
38073 #. type: textblock
38074 #: ../src/guestfs.pod:498
38075 msgid ""
38076 "(Older versions of C<load_policy> require you to specify the name of the "
38077 "policy file)."
38078 msgstr ""
38079
38080 #. type: textblock
38081 #: ../src/guestfs.pod:503
38082 msgid ""
38083 "Optionally, set the security context for the API.  The correct security "
38084 "context to use can only be known by inspecting the guest.  As an example:"
38085 msgstr ""
38086
38087 #. type: verbatim
38088 #: ../src/guestfs.pod:507
38089 #, no-wrap
38090 msgid ""
38091 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
38092 "\n"
38093 msgstr ""
38094 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
38095 "\n"
38096
38097 #. type: textblock
38098 #: ../src/guestfs.pod:511
38099 msgid "This will work for running commands and editing existing files."
38100 msgstr ""
38101
38102 #. type: textblock
38103 #: ../src/guestfs.pod:513
38104 msgid ""
38105 "When new files are created, you may need to label them explicitly, for "
38106 "example by running the external command C<restorecon pathname>."
38107 msgstr ""
38108
38109 #. type: =head2
38110 #: ../src/guestfs.pod:517
38111 msgid "UMASK"
38112 msgstr "UMASK"
38113
38114 #. type: textblock
38115 #: ../src/guestfs.pod:519
38116 msgid ""
38117 "Certain calls are affected by the current file mode creation mask (the "
38118 "\"umask\").  In particular ones which create files or directories, such as "
38119 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
38120 "either the default mode that the file is created with or modifies the mode "
38121 "that you supply."
38122 msgstr ""
38123
38124 #. type: textblock
38125 #: ../src/guestfs.pod:525
38126 msgid ""
38127 "The default umask is C<022>, so files are created with modes such as C<0644> "
38128 "and directories with C<0755>."
38129 msgstr ""
38130
38131 #. type: textblock
38132 #: ../src/guestfs.pod:528
38133 msgid ""
38134 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
38135 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
38136 "guestfs_chmod> after creating each file or directory."
38137 msgstr ""
38138
38139 #. type: textblock
38140 #: ../src/guestfs.pod:532
38141 msgid "For more information about umask, see L<umask(2)>."
38142 msgstr ""
38143
38144 #. type: textblock
38145 #: ../src/guestfs.pod:536
38146 msgid ""
38147 "Libguestfs allows you to access Linux guests which have been encrypted using "
38148 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
38149 "standard.  This includes nearly all whole disk encryption systems used by "
38150 "modern Linux guests."
38151 msgstr ""
38152
38153 #. type: textblock
38154 #: ../src/guestfs.pod:542
38155 msgid ""
38156 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
38157 "returns the string C<crypto_LUKS>)."
38158 msgstr ""
38159
38160 #. type: textblock
38161 #: ../src/guestfs.pod:545
38162 msgid ""
38163 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
38164 "will require the passphrase!"
38165 msgstr ""
38166
38167 #. type: textblock
38168 #: ../src/guestfs.pod:548
38169 msgid ""
38170 "Opening a LUKS device creates a new device mapper device called C</dev/"
38171 "mapper/mapname> (where C<mapname> is the string you supply to L</"
38172 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
38173 "from and encrypted to the underlying block device respectively."
38174 msgstr ""
38175
38176 #. type: textblock
38177 #: ../src/guestfs.pod:554
38178 msgid ""
38179 "LVM volume groups on the device can be made visible by calling L</"
38180 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
38181 "(s) can now be mounted in the usual way."
38182 msgstr ""
38183
38184 #. type: textblock
38185 #: ../src/guestfs.pod:558
38186 msgid ""
38187 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
38188 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
38189 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
38190 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
38191 "underlying encrypted block device)."
38192 msgstr ""
38193
38194 #. type: =head2
38195 #: ../src/guestfs.pod:565
38196 msgid "INSPECTION"
38197 msgstr "ПЕРЕВІРКА"
38198
38199 #. type: textblock
38200 #: ../src/guestfs.pod:567
38201 msgid ""
38202 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
38203 "contains operating systems, an install CD or a live CD.  (These APIs used to "
38204 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
38205 "version 1.5.3 the most frequently used part of this library has been "
38206 "rewritten in C and moved into the core code)."
38207 msgstr ""
38208
38209 #. type: textblock
38210 #: ../src/guestfs.pod:574
38211 msgid ""
38212 "Add all disks belonging to the unknown virtual machine and call L</"
38213 "guestfs_launch> in the usual way."
38214 msgstr ""
38215
38216 #. type: textblock
38217 #: ../src/guestfs.pod:577
38218 msgid ""
38219 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
38220 "and certain heuristics, and returns a list of operating systems that were "
38221 "found.  An empty list means none were found.  A single element is the root "
38222 "filesystem of the operating system.  For dual- or multi-boot guests, "
38223 "multiple roots can be returned, each one corresponding to a separate "
38224 "operating system.  (Multi-boot virtual machines are extremely rare in the "
38225 "world of virtualization, but since this scenario can happen, we have built "
38226 "libguestfs to deal with it.)"
38227 msgstr ""
38228
38229 #. type: textblock
38230 #: ../src/guestfs.pod:586
38231 msgid ""
38232 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
38233 "to get additional details about that operating system.  For example, call L</"
38234 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
38235 "Windows and Linux-based operating systems respectively."
38236 msgstr ""
38237
38238 #. type: textblock
38239 #: ../src/guestfs.pod:592
38240 msgid ""
38241 "Un*x-like and Linux-based operating systems usually consist of several "
38242 "filesystems which are mounted at boot time (for example, a separate boot "
38243 "partition mounted on C</boot>).  The inspection rules are able to detect how "
38244 "filesystems correspond to mount points.  Call "
38245 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
38246 "hash table like this example:"
38247 msgstr ""
38248
38249 #. type: verbatim
38250 #: ../src/guestfs.pod:599
38251 #, no-wrap
38252 msgid ""
38253 " /boot => /dev/sda1\n"
38254 " /     => /dev/vg_guest/lv_root\n"
38255 " /usr  => /dev/vg_guest/lv_usr\n"
38256 "\n"
38257 msgstr ""
38258 " /boot => /dev/sda1\n"
38259 " /     => /dev/vg_guest/lv_root\n"
38260 " /usr  => /dev/vg_guest/lv_usr\n"
38261 "\n"
38262
38263 #. type: textblock
38264 #: ../src/guestfs.pod:603
38265 msgid ""
38266 "The caller can then make calls to L</guestfs_mount_options> to mount the "
38267 "filesystems as suggested."
38268 msgstr ""
38269
38270 #. type: textblock
38271 #: ../src/guestfs.pod:606
38272 msgid ""
38273 "Be careful to mount filesystems in the right order (eg. C</> before C</"
38274 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
38275 msgstr ""
38276
38277 #. type: textblock
38278 #: ../src/guestfs.pod:610
38279 msgid ""
38280 "Inspection currently only works for some common operating systems.  "
38281 "Contributors are welcome to send patches for other operating systems that we "
38282 "currently cannot detect."
38283 msgstr ""
38284
38285 #. type: textblock
38286 #: ../src/guestfs.pod:614
38287 msgid ""
38288 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
38289 "for more details.  The L</guestfs_inspect_os> function just ignores any "
38290 "encrypted devices."
38291 msgstr ""
38292
38293 #. type: textblock
38294 #: ../src/guestfs.pod:618
38295 msgid ""
38296 "A note on the implementation: The call L</guestfs_inspect_os> performs "
38297 "inspection and caches the results in the guest handle.  Subsequent calls to "
38298 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
38299 "read the disks.  If you change the content of the guest disks, you can redo "
38300 "inspection by calling L</guestfs_inspect_os> again.  (L</"
38301 "guestfs_inspect_list_applications> works a little differently from the other "
38302 "calls and does read the disks.  See documentation for that function for "
38303 "details)."
38304 msgstr ""
38305
38306 #. type: =head3
38307 #: ../src/guestfs.pod:627
38308 msgid "INSPECTING INSTALL DISKS"
38309 msgstr ""
38310
38311 #. type: textblock
38312 #: ../src/guestfs.pod:629
38313 msgid ""
38314 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
38315 "CDs and more."
38316 msgstr ""
38317
38318 #. type: textblock
38319 #: ../src/guestfs.pod:632
38320 msgid ""
38321 "Call L</guestfs_inspect_get_format> to return the format of the operating "
38322 "system, which currently can be C<installed> (a regular operating system) or "
38323 "C<installer> (some sort of install disk)."
38324 msgstr ""
38325
38326 #. type: textblock
38327 #: ../src/guestfs.pod:636
38328 msgid ""
38329 "Further information is available about the operating system that can be "
38330 "installed using the regular inspection APIs like L</"
38331 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
38332 msgstr ""
38333
38334 #. type: textblock
38335 #: ../src/guestfs.pod:641
38336 msgid ""
38337 "Some additional information specific to installer disks is also available "
38338 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
38339 "guestfs_inspect_is_multipart> calls."
38340 msgstr ""
38341
38342 #. type: =head2
38343 #: ../src/guestfs.pod:646
38344 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
38345 msgstr ""
38346
38347 #. type: textblock
38348 #: ../src/guestfs.pod:648
38349 msgid ""
38350 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
38351 "ntfs-3g.org/> driver."
38352 msgstr ""
38353
38354 #. type: =head3
38355 #: ../src/guestfs.pod:651
38356 msgid "DRIVE LETTERS AND PATHS"
38357 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
38358
38359 #. type: textblock
38360 #: ../src/guestfs.pod:653
38361 msgid ""
38362 "DOS and Windows still use drive letters, and the filesystems are always "
38363 "treated as case insensitive by Windows itself, and therefore you might find "
38364 "a Windows configuration file referring to a path like C<c:\\windows"
38365 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
38366 "might be referred to as C</WINDOWS/System32>."
38367 msgstr ""
38368
38369 #. type: textblock
38370 #: ../src/guestfs.pod:659
38371 msgid ""
38372 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
38373 "L</guestfs_inspect_get_drive_mappings>)"
38374 msgstr ""
38375
38376 #. type: textblock
38377 #: ../src/guestfs.pod:662
38378 msgid ""
38379 "Dealing with separator characters (backslash vs forward slash) is outside "
38380 "the scope of libguestfs, but usually a simple character replacement will "
38381 "work."
38382 msgstr ""
38383
38384 #. type: textblock
38385 #: ../src/guestfs.pod:666
38386 msgid ""
38387 "To resolve the case insensitivity of paths, call L</"
38388 "guestfs_case_sensitive_path>."
38389 msgstr ""
38390
38391 #. type: =head3
38392 #: ../src/guestfs.pod:669
38393 msgid "ACCESSING THE WINDOWS REGISTRY"
38394 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
38395
38396 #. type: textblock
38397 #: ../src/guestfs.pod:671
38398 msgid ""
38399 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
38400 "files, through the library C<hivex> which is part of the libguestfs project "
38401 "although ships as a separate tarball.  You have to locate and download the "
38402 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
38403 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
38404 "reg(1)> for more help on this issue."
38405 msgstr ""
38406
38407 #. type: =head3
38408 #: ../src/guestfs.pod:679
38409 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
38410 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
38411
38412 #. type: textblock
38413 #: ../src/guestfs.pod:681
38414 msgid ""
38415 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
38416 "provide something which looks like a Linux symlink.  The way it tries to do "
38417 "the rewriting is described here:"
38418 msgstr ""
38419
38420 #. type: textblock
38421 #: ../src/guestfs.pod:685
38422 msgid ""
38423 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
38424 "symbolic-links/>"
38425 msgstr ""
38426 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
38427 "symbolic-links/>"
38428
38429 #. type: textblock
38430 #: ../src/guestfs.pod:687
38431 msgid ""
38432 "The essential problem is that ntfs-3g simply does not have enough "
38433 "information to do a correct job.  NTFS links can contain drive letters and "
38434 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
38435 "It is almost certainly the case that libguestfs callers should ignore what "
38436 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
38437 msgstr ""
38438
38439 #. type: textblock
38440 #: ../src/guestfs.pod:694
38441 msgid ""
38442 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
38443 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
38444 "attribute, and read the raw reparse data from that (you can find the format "
38445 "documented in various places around the web)."
38446 msgstr ""
38447
38448 #. type: =head3
38449 #: ../src/guestfs.pod:699
38450 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
38451 msgstr ""
38452
38453 #. type: textblock
38454 #: ../src/guestfs.pod:701
38455 msgid ""
38456 "There are other useful extended attributes that can be read from ntfs-3g "
38457 "filesystems (using L</guestfs_getxattr>).  See:"
38458 msgstr ""
38459
38460 #. type: textblock
38461 #: ../src/guestfs.pod:704
38462 msgid ""
38463 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
38464 msgstr ""
38465 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
38466
38467 #. type: =head2
38468 #: ../src/guestfs.pod:706
38469 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
38470 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
38471
38472 #. type: textblock
38473 #: ../src/guestfs.pod:708
38474 msgid ""
38475 "Although we don't want to discourage you from using the C API, we will "
38476 "mention here that the same API is also available in other languages."
38477 msgstr ""
38478
38479 #. type: textblock
38480 #: ../src/guestfs.pod:711
38481 msgid ""
38482 "The API is broadly identical in all supported languages.  This means that "
38483 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
38484 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
38485 "OCaml.  In other words, a straightforward, predictable isomorphism between "
38486 "each language."
38487 msgstr ""
38488
38489 #. type: textblock
38490 #: ../src/guestfs.pod:717
38491 msgid ""
38492 "Error messages are automatically transformed into exceptions if the language "
38493 "supports it."
38494 msgstr ""
38495
38496 #. type: textblock
38497 #: ../src/guestfs.pod:720
38498 msgid ""
38499 "We don't try to \"object orientify\" parts of the API in OO languages, "
38500 "although contributors are welcome to write higher level APIs above what we "
38501 "provide in their favourite languages if they wish."
38502 msgstr ""
38503
38504 #. type: =item
38505 #: ../src/guestfs.pod:726
38506 msgid "B<C++>"
38507 msgstr "B<C++>"
38508
38509 #. type: textblock
38510 #: ../src/guestfs.pod:728
38511 msgid ""
38512 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
38513 "identical to the C API.  C++ classes and exceptions are not used."
38514 msgstr ""
38515
38516 #. type: =item
38517 #: ../src/guestfs.pod:732
38518 msgid "B<C#>"
38519 msgstr "B<C#>"
38520
38521 #. type: textblock
38522 #: ../src/guestfs.pod:734
38523 msgid ""
38524 "The C# bindings are highly experimental.  Please read the warnings at the "
38525 "top of C<csharp/Libguestfs.cs>."
38526 msgstr ""
38527
38528 #. type: =item
38529 #: ../src/guestfs.pod:737
38530 msgid "B<Erlang>"
38531 msgstr ""
38532
38533 #. type: textblock
38534 #: ../src/guestfs.pod:739
38535 msgid "See L<guestfs-erlang(3)>."
38536 msgstr ""
38537
38538 #. type: =item
38539 #: ../src/guestfs.pod:741
38540 msgid "B<Haskell>"
38541 msgstr "B<Haskell>"
38542
38543 #. type: textblock
38544 #: ../src/guestfs.pod:743
38545 msgid ""
38546 "This is the only language binding that is working but incomplete.  Only "
38547 "calls which return simple integers have been bound in Haskell, and we are "
38548 "looking for help to complete this binding."
38549 msgstr ""
38550
38551 #. type: =item
38552 #: ../src/guestfs.pod:747
38553 msgid "B<Java>"
38554 msgstr "B<Java>"
38555
38556 #. type: textblock
38557 #: ../src/guestfs.pod:749
38558 msgid ""
38559 "Full documentation is contained in the Javadoc which is distributed with "
38560 "libguestfs.  For examples, see L<guestfs-java(3)>."
38561 msgstr ""
38562
38563 #. type: =item
38564 #: ../src/guestfs.pod:752
38565 msgid "B<OCaml>"
38566 msgstr "B<OCaml>"
38567
38568 #. type: textblock
38569 #: ../src/guestfs.pod:754
38570 msgid "See L<guestfs-ocaml(3)>."
38571 msgstr "Див. L<guestfs-ocaml(3)>."
38572
38573 #. type: =item
38574 #: ../src/guestfs.pod:756
38575 msgid "B<Perl>"
38576 msgstr "B<Perl>"
38577
38578 #. type: textblock
38579 #: ../src/guestfs.pod:758
38580 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
38581 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
38582
38583 #. type: =item
38584 #: ../src/guestfs.pod:760
38585 msgid "B<PHP>"
38586 msgstr "B<PHP>"
38587
38588 #. type: textblock
38589 #: ../src/guestfs.pod:762
38590 msgid ""
38591 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
38592 "the php-libguestfs package for your distribution."
38593 msgstr ""
38594
38595 #. type: textblock
38596 #: ../src/guestfs.pod:765
38597 msgid "The PHP binding only works correctly on 64 bit machines."
38598 msgstr ""
38599
38600 #. type: =item
38601 #: ../src/guestfs.pod:767
38602 msgid "B<Python>"
38603 msgstr "B<Python>"
38604
38605 #. type: textblock
38606 #: ../src/guestfs.pod:769
38607 msgid "See L<guestfs-python(3)>."
38608 msgstr "Див. L<guestfs-python(3)>."
38609
38610 #. type: =item
38611 #: ../src/guestfs.pod:771
38612 msgid "B<Ruby>"
38613 msgstr "B<Ruby>"
38614
38615 #. type: textblock
38616 #: ../src/guestfs.pod:773
38617 msgid "See L<guestfs-ruby(3)>."
38618 msgstr "Див. L<guestfs-ruby(3)>."
38619
38620 #. type: =item
38621 #: ../src/guestfs.pod:775
38622 msgid "B<shell scripts>"
38623 msgstr "B<скрипти оболонки>"
38624
38625 #. type: textblock
38626 #: ../src/guestfs.pod:777
38627 msgid "See L<guestfish(1)>."
38628 msgstr "Див. L<guestfish(1)>."
38629
38630 #. type: =head2
38631 #: ../src/guestfs.pod:781
38632 msgid "LIBGUESTFS GOTCHAS"
38633 msgstr ""
38634
38635 #. type: textblock
38636 #: ../src/guestfs.pod:783
38637 msgid ""
38638 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
38639 "system [...] that works in the way it is documented but is counterintuitive "
38640 "and almost invites mistakes.\""
38641 msgstr ""
38642
38643 #. type: textblock
38644 #: ../src/guestfs.pod:787
38645 msgid ""
38646 "Since we developed libguestfs and the associated tools, there are several "
38647 "things we would have designed differently, but are now stuck with for "
38648 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
38649 "release, you can expect these to change.  Beware of them."
38650 msgstr ""
38651
38652 #. type: =item
38653 #: ../src/guestfs.pod:795
38654 msgid "Autosync / forgetting to sync."
38655 msgstr ""
38656
38657 #. type: textblock
38658 #: ../src/guestfs.pod:797
38659 msgid ""
38660 "I<Update:> Autosync is enabled by default for all API users starting from "
38661 "libguestfs 1.5.24.  This section only applies to older versions."
38662 msgstr ""
38663
38664 #. type: textblock
38665 #: ../src/guestfs.pod:800
38666 msgid ""
38667 "When modifying a filesystem from C or another language, you B<must> unmount "
38668 "all filesystems and call L</guestfs_sync> explicitly before you close the "
38669 "libguestfs handle.  You can also call:"
38670 msgstr ""
38671
38672 #. type: verbatim
38673 #: ../src/guestfs.pod:804
38674 #, no-wrap
38675 msgid ""
38676 " guestfs_set_autosync (g, 1);\n"
38677 "\n"
38678 msgstr ""
38679 " guestfs_set_autosync (g, 1);\n"
38680 "\n"
38681
38682 #. type: textblock
38683 #: ../src/guestfs.pod:806
38684 msgid ""
38685 "to have the unmount/sync done automatically for you when the handle 'g' is "
38686 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
38687 msgstr ""
38688
38689 #. type: textblock
38690 #: ../src/guestfs.pod:810
38691 msgid ""
38692 "If you forget to do this, then it is entirely possible that your changes "
38693 "won't be written out, or will be partially written, or (very rarely) that "
38694 "you'll get disk corruption."
38695 msgstr ""
38696
38697 #. type: textblock
38698 #: ../src/guestfs.pod:814
38699 msgid ""
38700 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
38701 "guestfish scripts that forget to sync will work just fine, which can make "
38702 "this very puzzling if you are trying to debug a problem."
38703 msgstr ""
38704
38705 #. type: =item
38706 #: ../src/guestfs.pod:818
38707 msgid "Mount option C<-o sync> should not be the default."
38708 msgstr ""
38709
38710 #. type: textblock
38711 #: ../src/guestfs.pod:820
38712 msgid ""
38713 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
38714 "libguestfs 1.13.16.  This section only applies to older versions."
38715 msgstr ""
38716
38717 #. type: textblock
38718 #: ../src/guestfs.pod:823
38719 msgid ""
38720 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
38721 "However C<-o sync> does not add any reliability benefit, but does have a "
38722 "very large performance impact."
38723 msgstr ""
38724
38725 #. type: textblock
38726 #: ../src/guestfs.pod:827
38727 msgid ""
38728 "The work around is to use L</guestfs_mount_options> and set the mount "
38729 "options that you actually want to use."
38730 msgstr ""
38731
38732 #. type: =item
38733 #: ../src/guestfs.pod:830
38734 msgid "Read-only should be the default."
38735 msgstr ""
38736
38737 #. type: textblock
38738 #: ../src/guestfs.pod:832
38739 msgid ""
38740 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
38741 "specify I<--rw> if you want to make changes to the image."
38742 msgstr ""
38743
38744 #. type: textblock
38745 #: ../src/guestfs.pod:835
38746 msgid "This would reduce the potential to corrupt live VM images."
38747 msgstr ""
38748
38749 #. type: textblock
38750 #: ../src/guestfs.pod:837
38751 msgid ""
38752 "Note that many filesystems change the disk when you just mount and unmount, "
38753 "even if you didn't perform any writes.  You need to use L</"
38754 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
38755 msgstr ""
38756
38757 #. type: =item
38758 #: ../src/guestfs.pod:841
38759 msgid "guestfish command line is hard to use."
38760 msgstr ""
38761
38762 #. type: textblock
38763 #: ../src/guestfs.pod:843
38764 msgid ""
38765 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
38766 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
38767 "exist, so it fails.  In earlier versions of guestfish the error message was "
38768 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
38769 "we should have used C<guestfish -c command> to run commands."
38770 msgstr ""
38771
38772 #. type: =item
38773 #: ../src/guestfs.pod:850
38774 msgid "guestfish megabyte modifiers don't work right on all commands"
38775 msgstr ""
38776
38777 #. type: textblock
38778 #: ../src/guestfs.pod:852
38779 msgid ""
38780 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
38781 "other modifiers).  What guestfish actually does is to multiply the number "
38782 "part by the modifier part and pass the result to the C API.  However this "
38783 "doesn't work for a few APIs which aren't expecting bytes, but are already "
38784 "expecting some other unit (eg. megabytes)."
38785 msgstr ""
38786
38787 #. type: textblock
38788 #: ../src/guestfs.pod:859
38789 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
38790 msgstr ""
38791
38792 #. type: verbatim
38793 #: ../src/guestfs.pod:861
38794 #, no-wrap
38795 msgid ""
38796 " lvcreate LV VG 100M\n"
38797 "\n"
38798 msgstr ""
38799 " lvcreate LV VG 100M\n"
38800 "\n"
38801
38802 #. type: textblock
38803 #: ../src/guestfs.pod:863
38804 msgid ""
38805 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
38806 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
38807 "megabytes * megabytes) logical volume.  The error message you get from this "
38808 "is also a little obscure."
38809 msgstr ""
38810
38811 #. type: textblock
38812 #: ../src/guestfs.pod:868
38813 msgid ""
38814 "This could be fixed in the generator by specially marking parameters and "
38815 "return values which take bytes or other units."
38816 msgstr ""
38817
38818 #. type: =item
38819 #: ../src/guestfs.pod:871
38820 msgid "Ambiguity between devices and paths"
38821 msgstr ""
38822
38823 #. type: textblock
38824 #: ../src/guestfs.pod:873
38825 msgid ""
38826 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
38827 "sdb2>) and a similar pathname.  A file might just happen to be called "
38828 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
38829 msgstr ""
38830
38831 #. type: textblock
38832 #: ../src/guestfs.pod:878
38833 msgid ""
38834 "In the current API we usually resolve this ambiguity by having two separate "
38835 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
38836 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
38837 "detecting if the path supplied begins with C</dev/>."
38838 msgstr ""
38839
38840 #. type: textblock
38841 #: ../src/guestfs.pod:884
38842 msgid ""
38843 "To avoid both the ambiguity and the need to duplicate some calls, we could "
38844 "make paths/devices into structured names.  One way to do this would be to "
38845 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
38846 "aspect of grub.  Another way would be to use a structured type, equivalent "
38847 "to this OCaml type:"
38848 msgstr ""
38849
38850 #. type: verbatim
38851 #: ../src/guestfs.pod:890
38852 #, no-wrap
38853 msgid ""
38854 " type path = Path of string | Device of int | Partition of int * int\n"
38855 "\n"
38856 msgstr ""
38857
38858 #. type: textblock
38859 #: ../src/guestfs.pod:892
38860 msgid "which would allow you to pass arguments like:"
38861 msgstr ""
38862
38863 #. type: verbatim
38864 #: ../src/guestfs.pod:894
38865 #, no-wrap
38866 msgid ""
38867 " Path \"/foo/bar\"\n"
38868 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
38869 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
38870 " Path \"/dev/sdb2\"    (* not a device *)\n"
38871 "\n"
38872 msgstr ""
38873
38874 #. type: textblock
38875 #: ../src/guestfs.pod:899
38876 msgid ""
38877 "As you can see there are still problems to resolve even with this "
38878 "representation.  Also consider how it might work in guestfish."
38879 msgstr ""
38880
38881 #. type: =head2
38882 #: ../src/guestfs.pod:904
38883 msgid "KEYS AND PASSPHRASES"
38884 msgstr "КЛЮЧІ І ПАРОЛІ"
38885
38886 #. type: textblock
38887 #: ../src/guestfs.pod:906
38888 msgid ""
38889 "Certain libguestfs calls take a parameter that contains sensitive key "
38890 "material, passed in as a C string."
38891 msgstr ""
38892
38893 #. type: textblock
38894 #: ../src/guestfs.pod:909
38895 msgid ""
38896 "In the future we would hope to change the libguestfs implementation so that "
38897 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
38898 "swap.  However this is I<not> done at the moment, because of the complexity "
38899 "of such an implementation."
38900 msgstr ""
38901
38902 #. type: textblock
38903 #: ../src/guestfs.pod:914
38904 msgid ""
38905 "Therefore you should be aware that any key parameter you pass to libguestfs "
38906 "might end up being written out to the swap partition.  If this is a concern, "
38907 "scrub the swap partition or don't use libguestfs on encrypted devices."
38908 msgstr ""
38909
38910 #. type: =head2
38911 #: ../src/guestfs.pod:919
38912 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
38913 msgstr ""
38914
38915 #. type: textblock
38916 #: ../src/guestfs.pod:921
38917 msgid ""
38918 "All high-level libguestfs actions are synchronous.  If you want to use "
38919 "libguestfs asynchronously then you must create a thread."
38920 msgstr ""
38921
38922 #. type: textblock
38923 #: ../src/guestfs.pod:924
38924 msgid ""
38925 "Only use the handle from a single thread.  Either use the handle exclusively "
38926 "from one thread, or provide your own mutex so that two threads cannot issue "
38927 "calls on the same handle at the same time."
38928 msgstr ""
38929
38930 #. type: textblock
38931 #: ../src/guestfs.pod:928
38932 msgid ""
38933 "See the graphical program guestfs-browser for one possible architecture for "
38934 "multithreaded programs using libvirt and libguestfs."
38935 msgstr ""
38936
38937 #. type: =head2
38938 #: ../src/guestfs.pod:931
38939 msgid "PATH"
38940 msgstr "ШЛЯХ"
38941
38942 #. type: textblock
38943 #: ../src/guestfs.pod:933
38944 msgid ""
38945 "Libguestfs needs a supermin appliance, which it finds by looking along an "
38946 "internal path."
38947 msgstr ""
38948
38949 #. type: textblock
38950 #: ../src/guestfs.pod:936
38951 msgid ""
38952 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
38953 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
38954 msgstr ""
38955
38956 #. type: textblock
38957 #: ../src/guestfs.pod:939
38958 msgid ""
38959 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
38960 "to change the directories that libguestfs will search in.  The value is a "
38961 "colon-separated list of paths.  The current directory is I<not> searched "
38962 "unless the path contains an empty element or C<.>.  For example "
38963 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
38964 "then C</usr/lib/guestfs>."
38965 msgstr ""
38966
38967 #. type: =head2
38968 #: ../src/guestfs.pod:946
38969 msgid "QEMU WRAPPERS"
38970 msgstr ""
38971
38972 #. type: textblock
38973 #: ../src/guestfs.pod:948
38974 msgid ""
38975 "If you want to compile your own qemu, run qemu from a non-standard location, "
38976 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
38977 "around qemu."
38978 msgstr ""
38979
38980 #. type: textblock
38981 #: ../src/guestfs.pod:952
38982 msgid ""
38983 "There is one important rule to remember: you I<must C<exec qemu>> as the "
38984 "last command in the shell script (so that qemu replaces the shell and "
38985 "becomes the direct child of the libguestfs-using program).  If you don't do "
38986 "this, then the qemu process won't be cleaned up correctly."
38987 msgstr ""
38988
38989 #. type: textblock
38990 #: ../src/guestfs.pod:957
38991 msgid ""
38992 "Here is an example of a wrapper, where I have built my own copy of qemu from "
38993 "source:"
38994 msgstr ""
38995
38996 #. type: verbatim
38997 #: ../src/guestfs.pod:960
38998 #, no-wrap
38999 msgid ""
39000 " #!/bin/sh -\n"
39001 " qemudir=/home/rjones/d/qemu\n"
39002 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
39003 "\n"
39004 msgstr ""
39005 " #!/bin/sh -\n"
39006 " qemudir=/home/rjones/d/qemu\n"
39007 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
39008 "\n"
39009
39010 #. type: textblock
39011 #: ../src/guestfs.pod:964
39012 msgid ""
39013 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
39014 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
39015 "example:"
39016 msgstr ""
39017
39018 #. type: verbatim
39019 #: ../src/guestfs.pod:968
39020 #, no-wrap
39021 msgid ""
39022 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
39023 "\n"
39024 msgstr ""
39025 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
39026 "\n"
39027
39028 #. type: textblock
39029 #: ../src/guestfs.pod:970
39030 msgid ""
39031 "Note that libguestfs also calls qemu with the -help and -version options in "
39032 "order to determine features."
39033 msgstr ""
39034
39035 #. type: textblock
39036 #: ../src/guestfs.pod:973
39037 msgid ""
39038 "Wrappers can also be used to edit the options passed to qemu.  In the "
39039 "following example, the C<-machine ...> option (C<-machine> and the following "
39040 "argument) are removed from the command line and replaced with C<-machine pc,"
39041 "accel=tcg>.  The while loop iterates over the options until it finds the "
39042 "right one to remove, putting the remaining options into the C<args> array."
39043 msgstr ""
39044
39045 #. type: verbatim
39046 #: ../src/guestfs.pod:982
39047 #, no-wrap
39048 msgid ""
39049 " i=0\n"
39050 " while [ $# -gt 0 ]; do\n"
39051 "     case \"$1\" in\n"
39052 "     -machine)\n"
39053 "         shift 2;;\n"
39054 "     *)\n"
39055 "         args[i]=\"$1\"\n"
39056 "         (( i++ ))\n"
39057 "         shift ;;\n"
39058 "     esac\n"
39059 " done\n"
39060 " \n"
39061 msgstr ""
39062
39063 #. type: verbatim
39064 #: ../src/guestfs.pod:994
39065 #, no-wrap
39066 msgid ""
39067 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
39068 "\n"
39069 msgstr ""
39070
39071 #. type: =head2
39072 #: ../src/guestfs.pod:996
39073 msgid "ATTACHING TO RUNNING DAEMONS"
39074 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
39075
39076 #. type: textblock
39077 #: ../src/guestfs.pod:998
39078 msgid ""
39079 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
39080 "babies.  Use with caution."
39081 msgstr ""
39082
39083 #. type: textblock
39084 #: ../src/guestfs.pod:1001
39085 msgid ""
39086 "I<Note (2):> This section explains how to attach to a running daemon from a "
39087 "low level perspective.  For most users, simply using virt tools such as "
39088 "L<guestfish(1)> with the I<--live> option will \"just work\"."
39089 msgstr ""
39090
39091 #. type: =head3
39092 #: ../src/guestfs.pod:1005
39093 msgid "Using guestfs_set_attach_method"
39094 msgstr "За допомогою guestfs_set_attach_method"
39095
39096 #. type: textblock
39097 #: ../src/guestfs.pod:1007
39098 msgid ""
39099 "By calling L</guestfs_set_attach_method> you can change how the library "
39100 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
39101 "ARCHITECTURE> for some background)."
39102 msgstr ""
39103
39104 #. type: textblock
39105 #: ../src/guestfs.pod:1011
39106 msgid ""
39107 "The normal attach method is C<appliance>, where a small appliance is created "
39108 "containing the daemon, and then the library connects to this."
39109 msgstr ""
39110
39111 #. type: textblock
39112 #: ../src/guestfs.pod:1014
39113 msgid ""
39114 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
39115 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
39116 "daemon over the Unix domain socket."
39117 msgstr ""
39118
39119 #. type: textblock
39120 #: ../src/guestfs.pod:1018
39121 msgid ""
39122 "The normal use for this is to connect to a running virtual machine that "
39123 "contains a C<guestfsd> daemon, and send commands so you can read and write "
39124 "files inside the live virtual machine."
39125 msgstr ""
39126
39127 #. type: =head3
39128 #: ../src/guestfs.pod:1022
39129 msgid "Using guestfs_add_domain with live flag"
39130 msgstr "За допомогою guestfs_add_domain з прапорцем live"
39131
39132 #. type: textblock
39133 #: ../src/guestfs.pod:1024
39134 msgid ""
39135 "L</guestfs_add_domain> provides some help for getting the correct attach "
39136 "method.  If you pass the C<live> option to this function, then (if the "
39137 "virtual machine is running) it will examine the libvirt XML looking for a "
39138 "virtio-serial channel to connect to:"
39139 msgstr ""
39140
39141 #. type: verbatim
39142 #: ../src/guestfs.pod:1030
39143 #, no-wrap
39144 msgid ""
39145 " <domain>\n"
39146 "   ...\n"
39147 "   <devices>\n"
39148 "     ...\n"
39149 "     <channel type='unix'>\n"
39150 "       <source mode='bind' path='/path/to/socket'/>\n"
39151 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
39152 "     </channel>\n"
39153 "     ...\n"
39154 "   </devices>\n"
39155 " </domain>\n"
39156 "\n"
39157 msgstr ""
39158 " <domain>\n"
39159 "   ...\n"
39160 "   <devices>\n"
39161 "     ...\n"
39162 "     <channel type='unix'>\n"
39163 "       <source mode='bind' path='/path/to/socket'/>\n"
39164 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
39165 "     </channel>\n"
39166 "     ...\n"
39167 "   </devices>\n"
39168 " </domain>\n"
39169 "\n"
39170
39171 #. type: textblock
39172 #: ../src/guestfs.pod:1042
39173 msgid ""
39174 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
39175 "method to C<unix:/path/to/socket>."
39176 msgstr ""
39177
39178 #. type: textblock
39179 #: ../src/guestfs.pod:1045
39180 msgid ""
39181 "Some of the libguestfs tools (including guestfish) support a I<--live> "
39182 "option which is passed through to L</guestfs_add_domain> thus allowing you "
39183 "to attach to and modify live virtual machines."
39184 msgstr ""
39185
39186 #. type: textblock
39187 #: ../src/guestfs.pod:1049
39188 msgid ""
39189 "The virtual machine needs to have been set up beforehand so that it has the "
39190 "virtio-serial channel and so that guestfsd is running inside it."
39191 msgstr ""
39192
39193 #. type: =head2
39194 #: ../src/guestfs.pod:1053
39195 msgid "ABI GUARANTEE"
39196 msgstr "ГАРАНТІЯ ЩОДО ABI"
39197
39198 #. type: textblock
39199 #: ../src/guestfs.pod:1055
39200 msgid ""
39201 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
39202 "actions as outlined in this section.  Although we will deprecate some "
39203 "actions, for example if they get replaced by newer calls, we will keep the "
39204 "old actions forever.  This allows you the developer to program in confidence "
39205 "against the libguestfs API."
39206 msgstr ""
39207
39208 #. type: =head2
39209 #: ../src/guestfs.pod:1061
39210 msgid "BLOCK DEVICE NAMING"
39211 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
39212
39213 #. type: textblock
39214 #: ../src/guestfs.pod:1063
39215 msgid ""
39216 "In the kernel there is now quite a profusion of schemata for naming block "
39217 "devices (in this context, by I<block device> I mean a physical or virtual "
39218 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
39219 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
39220 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
39221 "for the old IDE driver (particularly for SATA devices) those devices also "
39222 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
39223 "paravirtualized drivers.  This has created several different naming systems, "
39224 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
39225 msgstr ""
39226
39227 #. type: textblock
39228 #: ../src/guestfs.pod:1075
39229 msgid ""
39230 "As discussed above, libguestfs uses a qemu appliance running an embedded "
39231 "Linux kernel to access block devices.  We can run a variety of appliances "
39232 "based on a variety of Linux kernels."
39233 msgstr ""
39234
39235 #. type: textblock
39236 #: ../src/guestfs.pod:1079
39237 msgid ""
39238 "This causes a problem for libguestfs because many API calls use device or "
39239 "partition names.  Working scripts and the recipe (example) scripts that we "
39240 "make available over the internet could fail if the naming scheme changes."
39241 msgstr ""
39242
39243 #. type: textblock
39244 #: ../src/guestfs.pod:1084
39245 msgid ""
39246 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
39247 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
39248 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
39249 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
39250 msgstr ""
39251
39252 #. type: textblock
39253 #: ../src/guestfs.pod:1090
39254 msgid ""
39255 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
39256 "L</guestfs_list_partitions> and similar calls return the true names of the "
39257 "devices and partitions as known to the appliance."
39258 msgstr ""
39259
39260 #. type: =head3
39261 #: ../src/guestfs.pod:1095
39262 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
39263 msgstr ""
39264
39265 #. type: textblock
39266 #: ../src/guestfs.pod:1097
39267 msgid ""
39268 "Usually this translation is transparent.  However in some (very rare)  cases "
39269 "you may need to know the exact algorithm.  Such cases include where you use "
39270 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
39271 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
39272 msgstr ""
39273
39274 #. type: textblock
39275 #: ../src/guestfs.pod:1103
39276 msgid ""
39277 "The algorithm is applied only to I<parameters> which are known to be either "
39278 "device or partition names.  Return values from functions such as L</"
39279 "guestfs_list_devices> are never changed."
39280 msgstr ""
39281
39282 #. type: textblock
39283 #: ../src/guestfs.pod:1111
39284 msgid "Is the string a parameter which is a device or partition name?"
39285 msgstr ""
39286
39287 #. type: textblock
39288 #: ../src/guestfs.pod:1115
39289 msgid "Does the string begin with C</dev/sd>?"
39290 msgstr "Чи починається рядок з C</dev/sd>?"
39291
39292 #. type: textblock
39293 #: ../src/guestfs.pod:1119
39294 msgid ""
39295 "Does the named device exist? If so, we use that device.  However if I<not> "
39296 "then we continue with this algorithm."
39297 msgstr ""
39298
39299 #. type: textblock
39300 #: ../src/guestfs.pod:1124
39301 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
39302 msgstr ""
39303
39304 #. type: textblock
39305 #: ../src/guestfs.pod:1126
39306 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
39307 msgstr ""
39308
39309 #. type: textblock
39310 #: ../src/guestfs.pod:1128
39311 msgid "If that named device exists, use it.  If not, continue."
39312 msgstr ""
39313
39314 #. type: textblock
39315 #: ../src/guestfs.pod:1132
39316 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
39317 msgstr ""
39318
39319 #. type: textblock
39320 #: ../src/guestfs.pod:1134
39321 msgid "If that named device exists, use it.  If not, return an error."
39322 msgstr ""
39323
39324 #. type: =head3
39325 #: ../src/guestfs.pod:1138
39326 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
39327 msgstr ""
39328
39329 #. type: textblock
39330 #: ../src/guestfs.pod:1140
39331 msgid ""
39332 "Although the standard naming scheme and automatic translation is useful for "
39333 "simple programs and guestfish scripts, for larger programs it is best not to "
39334 "rely on this mechanism."
39335 msgstr ""
39336
39337 #. type: textblock
39338 #: ../src/guestfs.pod:1144
39339 msgid ""
39340 "Where possible for maximum future portability programs using libguestfs "
39341 "should use these future-proof techniques:"
39342 msgstr ""
39343
39344 #. type: textblock
39345 #: ../src/guestfs.pod:1151
39346 msgid ""
39347 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
39348 "device names, and then use those names directly."
39349 msgstr ""
39350
39351 #. type: textblock
39352 #: ../src/guestfs.pod:1154
39353 msgid ""
39354 "Since those device names exist by definition, they will never be translated."
39355 msgstr ""
39356
39357 #. type: textblock
39358 #: ../src/guestfs.pod:1159
39359 msgid ""
39360 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
39361 "filesystem labels."
39362 msgstr ""
39363
39364 #. type: textblock
39365 #: ../src/guestfs.pod:1166
39366 msgid ""
39367 "This section discusses security implications of using libguestfs, "
39368 "particularly with untrusted or malicious guests or disk images."
39369 msgstr ""
39370
39371 #. type: =head2
39372 #: ../src/guestfs.pod:1169
39373 msgid "GENERAL SECURITY CONSIDERATIONS"
39374 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
39375
39376 #. type: textblock
39377 #: ../src/guestfs.pod:1171
39378 msgid ""
39379 "Be careful with any files or data that you download from a guest (by "
39380 "\"download\" we mean not just the L</guestfs_download> command but any "
39381 "command that reads files, filenames, directories or anything else from a "
39382 "disk image).  An attacker could manipulate the data to fool your program "
39383 "into doing the wrong thing.  Consider cases such as:"
39384 msgstr ""
39385
39386 #. type: textblock
39387 #: ../src/guestfs.pod:1181
39388 msgid "the data (file etc) not being present"
39389 msgstr ""
39390
39391 #. type: textblock
39392 #: ../src/guestfs.pod:1185
39393 msgid "being present but empty"
39394 msgstr ""
39395
39396 #. type: textblock
39397 #: ../src/guestfs.pod:1189
39398 msgid "being much larger than normal"
39399 msgstr ""
39400
39401 #. type: textblock
39402 #: ../src/guestfs.pod:1193
39403 msgid "containing arbitrary 8 bit data"
39404 msgstr ""
39405
39406 #. type: textblock
39407 #: ../src/guestfs.pod:1197
39408 msgid "being in an unexpected character encoding"
39409 msgstr ""
39410
39411 #. type: textblock
39412 #: ../src/guestfs.pod:1201
39413 msgid "containing homoglyphs."
39414 msgstr ""
39415
39416 #. type: =head2
39417 #: ../src/guestfs.pod:1205
39418 msgid "SECURITY OF MOUNTING FILESYSTEMS"
39419 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
39420
39421 #. type: textblock
39422 #: ../src/guestfs.pod:1207
39423 msgid ""
39424 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
39425 "(VFS) module can sometimes be escalated into exploits by deliberately "
39426 "creating a malicious, malformed filesystem.  These exploits are very severe "
39427 "for two reasons.  Firstly there are very many filesystem drivers in the "
39428 "kernel, and many of them are infrequently used and not much developer "
39429 "attention has been paid to the code.  Linux userspace helps potential "
39430 "crackers by detecting the filesystem type and automatically choosing the "
39431 "right VFS driver, even if that filesystem type is obscure or unexpected for "
39432 "the administrator.  Secondly, a kernel-level exploit is like a local root "
39433 "exploit (worse in some ways), giving immediate and total access to the "
39434 "system right down to the hardware level."
39435 msgstr ""
39436
39437 #. type: textblock
39438 #: ../src/guestfs.pod:1220
39439 msgid ""
39440 "That explains why you should never mount a filesystem from an untrusted "
39441 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
39442 "inside a qemu virtual machine, usually running as a non-root user.  The "
39443 "attacker would need to write a filesystem which first exploited the kernel, "
39444 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
39445 "the libguestfs protocol, and finally to be as serious as the host kernel "
39446 "exploit it would need to escalate its privileges to root.  This multi-step "
39447 "escalation, performed by a static piece of data, is thought to be extremely "
39448 "hard to do, although we never say 'never' about security issues."
39449 msgstr ""
39450
39451 #. type: textblock
39452 #: ../src/guestfs.pod:1231
39453 msgid ""
39454 "In any case callers can reduce the attack surface by forcing the filesystem "
39455 "type when mounting (use L</guestfs_mount_vfs>)."
39456 msgstr ""
39457
39458 #. type: =head2
39459 #: ../src/guestfs.pod:1234
39460 msgid "PROTOCOL SECURITY"
39461 msgstr "ЗАХИСТ ПРОТОКОЛУ"
39462
39463 #. type: textblock
39464 #: ../src/guestfs.pod:1236
39465 msgid ""
39466 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
39467 "defined upper message size.  However a program that uses libguestfs must "
39468 "also take care - for example you can write a program that downloads a binary "
39469 "from a disk image and executes it locally, and no amount of protocol "
39470 "security will save you from the consequences."
39471 msgstr ""
39472
39473 #. type: =head2
39474 #: ../src/guestfs.pod:1242
39475 msgid "INSPECTION SECURITY"
39476 msgstr ""
39477
39478 #. type: textblock
39479 #: ../src/guestfs.pod:1244
39480 msgid ""
39481 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
39482 "directly from the guest, and these could contain any 8 bit data.  Callers "
39483 "should be careful to escape these before printing them to a structured file "
39484 "(for example, use HTML escaping if creating a web page)."
39485 msgstr ""
39486
39487 #. type: textblock
39488 #: ../src/guestfs.pod:1250
39489 msgid ""
39490 "Guest configuration may be altered in unusual ways by the administrator of "
39491 "the virtual machine, and may not reflect reality (particularly for untrusted "
39492 "or actively malicious guests).  For example we parse the hostname from "
39493 "configuration files like C</etc/sysconfig/network> that we find in the "
39494 "guest, but the guest administrator can easily manipulate these files to "
39495 "provide the wrong hostname."
39496 msgstr ""
39497
39498 #. type: textblock
39499 #: ../src/guestfs.pod:1258
39500 msgid ""
39501 "The inspection API parses guest configuration using two external libraries: "
39502 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
39503 "designed to be robust in the face of malicious data, although denial of "
39504 "service attacks are still possible, for example with oversized configuration "
39505 "files."
39506 msgstr ""
39507
39508 #. type: =head2
39509 #: ../src/guestfs.pod:1264
39510 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
39511 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
39512
39513 #. type: textblock
39514 #: ../src/guestfs.pod:1266
39515 msgid ""
39516 "Be very cautious about running commands from the guest.  By running a "
39517 "command in the guest, you are giving CPU time to a binary that you do not "
39518 "control, under the same user account as the library, albeit wrapped in qemu "
39519 "virtualization.  More information and alternatives can be found in the "
39520 "section L</RUNNING COMMANDS>."
39521 msgstr ""
39522
39523 #. type: =head2
39524 #: ../src/guestfs.pod:1272
39525 msgid "CVE-2010-3851"
39526 msgstr "CVE-2010-3851"
39527
39528 #. type: textblock
39529 #: ../src/guestfs.pod:1274
39530 msgid "https://bugzilla.redhat.com/642934"
39531 msgstr "https://bugzilla.redhat.com/642934"
39532
39533 #. type: textblock
39534 #: ../src/guestfs.pod:1276
39535 msgid ""
39536 "This security bug concerns the automatic disk format detection that qemu "
39537 "does on disk images."
39538 msgstr ""
39539
39540 #. type: textblock
39541 #: ../src/guestfs.pod:1279
39542 msgid ""
39543 "A raw disk image is just the raw bytes, there is no header.  Other disk "
39544 "images like qcow2 contain a special header.  Qemu deals with this by looking "
39545 "for one of the known headers, and if none is found then assuming the disk "
39546 "image must be raw."
39547 msgstr ""
39548
39549 #. type: textblock
39550 #: ../src/guestfs.pod:1284
39551 msgid ""
39552 "This allows a guest which has been given a raw disk image to write some "
39553 "other header.  At next boot (or when the disk image is accessed by "
39554 "libguestfs) qemu would do autodetection and think the disk image format was, "
39555 "say, qcow2 based on the header written by the guest."
39556 msgstr ""
39557
39558 #. type: textblock
39559 #: ../src/guestfs.pod:1289
39560 msgid ""
39561 "This in itself would not be a problem, but qcow2 offers many features, one "
39562 "of which is to allow a disk image to refer to another image (called the "
39563 "\"backing disk\").  It does this by placing the path to the backing disk "
39564 "into the qcow2 header.  This path is not validated and could point to any "
39565 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
39566 "\"holes\" in the qcow2 disk image, which of course is completely under the "
39567 "control of the attacker."
39568 msgstr ""
39569
39570 #. type: textblock
39571 #: ../src/guestfs.pod:1297
39572 msgid ""
39573 "In libguestfs this is rather hard to exploit except under two circumstances:"
39574 msgstr ""
39575
39576 #. type: textblock
39577 #: ../src/guestfs.pod:1304
39578 msgid "You have enabled the network or have opened the disk in write mode."
39579 msgstr ""
39580
39581 #. type: textblock
39582 #: ../src/guestfs.pod:1308
39583 msgid ""
39584 "You are also running untrusted code from the guest (see L</RUNNING "
39585 "COMMANDS>)."
39586 msgstr ""
39587
39588 #. type: textblock
39589 #: ../src/guestfs.pod:1313
39590 msgid ""
39591 "The way to avoid this is to specify the expected disk format when adding "
39592 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
39593 "should always do this if the disk is raw format, and it's a good idea for "
39594 "other cases too."
39595 msgstr ""
39596
39597 #. type: textblock
39598 #: ../src/guestfs.pod:1318
39599 msgid ""
39600 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
39601 "format is fetched from libvirt and passed through."
39602 msgstr ""
39603
39604 #. type: textblock
39605 #: ../src/guestfs.pod:1321
39606 msgid ""
39607 "For libguestfs tools, use the I<--format> command line parameter as "
39608 "appropriate."
39609 msgstr ""
39610
39611 #. type: =head1
39612 #: ../src/guestfs.pod:1324
39613 msgid "CONNECTION MANAGEMENT"
39614 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
39615
39616 #. type: =head2
39617 #: ../src/guestfs.pod:1326
39618 msgid "guestfs_h *"
39619 msgstr "guestfs_h *"
39620
39621 #. type: textblock
39622 #: ../src/guestfs.pod:1328
39623 msgid ""
39624 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
39625 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
39626 "handle and release all resources used."
39627 msgstr ""
39628
39629 #. type: textblock
39630 #: ../src/guestfs.pod:1332
39631 msgid ""
39632 "For information on using multiple handles and threads, see the section L</"
39633 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
39634 msgstr ""
39635
39636 #. type: =head2
39637 #: ../src/guestfs.pod:1335
39638 msgid "guestfs_create"
39639 msgstr "guestfs_create"
39640
39641 #. type: verbatim
39642 #: ../src/guestfs.pod:1337
39643 #, no-wrap
39644 msgid ""
39645 " guestfs_h *guestfs_create (void);\n"
39646 "\n"
39647 msgstr ""
39648 " guestfs_h *guestfs_create (void);\n"
39649 "\n"
39650
39651 #. type: textblock
39652 #: ../src/guestfs.pod:1339
39653 msgid "Create a connection handle."
39654 msgstr "Створити дескриптор з’єднання."
39655
39656 #. type: textblock
39657 #: ../src/guestfs.pod:1341
39658 msgid ""
39659 "On success this returns a non-NULL pointer to a handle.  On error it returns "
39660 "NULL."
39661 msgstr ""
39662
39663 #. type: textblock
39664 #: ../src/guestfs.pod:1344
39665 msgid ""
39666 "You have to \"configure\" the handle after creating it.  This includes "
39667 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
39668 "handle at least once."
39669 msgstr ""
39670
39671 #. type: textblock
39672 #: ../src/guestfs.pod:1348
39673 msgid "After configuring the handle, you have to call L</guestfs_launch>."
39674 msgstr ""
39675
39676 #. type: textblock
39677 #: ../src/guestfs.pod:1350
39678 msgid ""
39679 "You may also want to configure error handling for the handle.  See the L</"
39680 "ERROR HANDLING> section below."
39681 msgstr ""
39682
39683 #. type: =head2
39684 #: ../src/guestfs.pod:1353
39685 msgid "guestfs_close"
39686 msgstr "guestfs_close"
39687
39688 #. type: verbatim
39689 #: ../src/guestfs.pod:1355
39690 #, no-wrap
39691 msgid ""
39692 " void guestfs_close (guestfs_h *g);\n"
39693 "\n"
39694 msgstr ""
39695 " void guestfs_close (guestfs_h *g);\n"
39696 "\n"
39697
39698 #. type: textblock
39699 #: ../src/guestfs.pod:1357
39700 msgid "This closes the connection handle and frees up all resources used."
39701 msgstr ""
39702
39703 #. type: textblock
39704 #: ../src/guestfs.pod:1359
39705 msgid ""
39706 "If autosync was set on the handle and the handle was launched, then this "
39707 "implicitly calls various functions to unmount filesystems and sync the "
39708 "disk.  See L</guestfs_set_autosync> for more details."
39709 msgstr ""
39710
39711 #. type: textblock
39712 #: ../src/guestfs.pod:1363
39713 msgid "If a close callback was set on the handle, then it is called."
39714 msgstr ""
39715
39716 #. type: =head1
39717 #: ../src/guestfs.pod:1365
39718 msgid "ERROR HANDLING"
39719 msgstr "ОБРОБКА ПОМИЛОК"
39720
39721 #. type: textblock
39722 #: ../src/guestfs.pod:1367
39723 msgid ""
39724 "API functions can return errors.  For example, almost all functions that "
39725 "return C<int> will return C<-1> to indicate an error."
39726 msgstr ""
39727
39728 #. type: textblock
39729 #: ../src/guestfs.pod:1370
39730 msgid ""
39731 "Additional information is available for errors: an error message string and "
39732 "optionally an error number (errno) if the thing that failed was a system "
39733 "call."
39734 msgstr ""
39735
39736 #. type: textblock
39737 #: ../src/guestfs.pod:1374
39738 msgid ""
39739 "You can get at the additional information about the last error on the handle "
39740 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
39741 "up an error handler with L</guestfs_set_error_handler>."
39742 msgstr ""
39743
39744 #. type: textblock
39745 #: ../src/guestfs.pod:1379
39746 msgid ""
39747 "When the handle is created, a default error handler is installed which "
39748 "prints the error message string to C<stderr>.  For small short-running "
39749 "command line programs it is sufficient to do:"
39750 msgstr ""
39751
39752 #. type: verbatim
39753 #: ../src/guestfs.pod:1383
39754 #, no-wrap
39755 msgid ""
39756 " if (guestfs_launch (g) == -1)\n"
39757 "   exit (EXIT_FAILURE);\n"
39758 "\n"
39759 msgstr ""
39760 " if (guestfs_launch (g) == -1)\n"
39761 "   exit (EXIT_FAILURE);\n"
39762 "\n"
39763
39764 #. type: textblock
39765 #: ../src/guestfs.pod:1386
39766 msgid ""
39767 "since the default error handler will ensure that an error message has been "
39768 "printed to C<stderr> before the program exits."
39769 msgstr ""
39770
39771 #. type: textblock
39772 #: ../src/guestfs.pod:1389
39773 msgid ""
39774 "For other programs the caller will almost certainly want to install an "
39775 "alternate error handler or do error handling in-line like this:"
39776 msgstr ""
39777
39778 #. type: verbatim
39779 #: ../src/guestfs.pod:1392
39780 #, no-wrap
39781 msgid ""
39782 " /* This disables the default behaviour of printing errors\n"
39783 "    on stderr. */\n"
39784 " guestfs_set_error_handler (g, NULL, NULL);\n"
39785 " \n"
39786 msgstr ""
39787
39788 #. type: verbatim
39789 #: ../src/guestfs.pod:1396
39790 #, no-wrap
39791 msgid ""
39792 " if (guestfs_launch (g) == -1) {\n"
39793 "   /* Examine the error message and print it etc. */\n"
39794 "   char *msg = guestfs_last_error (g);\n"
39795 "   int errnum = guestfs_last_errno (g);\n"
39796 "   fprintf (stderr, \"%s\", msg);\n"
39797 "   if (errnum != 0)\n"
39798 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
39799 "   fprintf (stderr, \"\\n\");\n"
39800 "   /* ... */\n"
39801 " }\n"
39802 "\n"
39803 msgstr ""
39804
39805 #. type: textblock
39806 #: ../src/guestfs.pod:1407
39807 msgid ""
39808 "Out of memory errors are handled differently.  The default action is to call "
39809 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
39810 "guestfs_set_out_of_memory_handler>."
39811 msgstr ""
39812
39813 #. type: textblock
39814 #: ../src/guestfs.pod:1411
39815 msgid ""
39816 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
39817 "because there is no handle if this happens there is no way to get additional "
39818 "error information.  However L</guestfs_create> is supposed to be a "
39819 "lightweight operation which can only fail because of insufficient memory (it "
39820 "returns NULL in this case)."
39821 msgstr ""
39822
39823 #. type: =head2
39824 #: ../src/guestfs.pod:1417
39825 msgid "guestfs_last_error"
39826 msgstr "guestfs_last_error"
39827
39828 #. type: verbatim
39829 #: ../src/guestfs.pod:1419
39830 #, no-wrap
39831 msgid ""
39832 " const char *guestfs_last_error (guestfs_h *g);\n"
39833 "\n"
39834 msgstr ""
39835 " const char *guestfs_last_error (guestfs_h *g);\n"
39836 "\n"
39837
39838 #. type: textblock
39839 #: ../src/guestfs.pod:1421
39840 msgid ""
39841 "This returns the last error message that happened on C<g>.  If there has not "
39842 "been an error since the handle was created, then this returns C<NULL>."
39843 msgstr ""
39844
39845 #. type: textblock
39846 #: ../src/guestfs.pod:1425
39847 msgid ""
39848 "The lifetime of the returned string is until the next error occurs, or L</"
39849 "guestfs_close> is called."
39850 msgstr ""
39851
39852 #. type: =head2
39853 #: ../src/guestfs.pod:1428
39854 msgid "guestfs_last_errno"
39855 msgstr "guestfs_last_errno"
39856
39857 #. type: verbatim
39858 #: ../src/guestfs.pod:1430
39859 #, no-wrap
39860 msgid ""
39861 " int guestfs_last_errno (guestfs_h *g);\n"
39862 "\n"
39863 msgstr ""
39864 " int guestfs_last_errno (guestfs_h *g);\n"
39865 "\n"
39866
39867 #. type: textblock
39868 #: ../src/guestfs.pod:1432
39869 msgid "This returns the last error number (errno) that happened on C<g>."
39870 msgstr ""
39871
39872 #. type: textblock
39873 #: ../src/guestfs.pod:1434
39874 msgid "If successful, an errno integer not equal to zero is returned."
39875 msgstr ""
39876
39877 #. type: textblock
39878 #: ../src/guestfs.pod:1436
39879 msgid ""
39880 "If no error, this returns 0.  This call can return 0 in three situations:"
39881 msgstr ""
39882
39883 #. type: textblock
39884 #: ../src/guestfs.pod:1443
39885 msgid "There has not been any error on the handle."
39886 msgstr ""
39887
39888 #. type: textblock
39889 #: ../src/guestfs.pod:1447
39890 msgid ""
39891 "There has been an error but the errno was meaningless.  This corresponds to "
39892 "the case where the error did not come from a failed system call, but for "
39893 "some other reason."
39894 msgstr ""
39895
39896 #. type: textblock
39897 #: ../src/guestfs.pod:1453
39898 msgid ""
39899 "There was an error from a failed system call, but for some reason the errno "
39900 "was not captured and returned.  This usually indicates a bug in libguestfs."
39901 msgstr ""
39902
39903 #. type: textblock
39904 #: ../src/guestfs.pod:1459
39905 msgid ""
39906 "Libguestfs tries to convert the errno from inside the applicance into a "
39907 "corresponding errno for the caller (not entirely trivial: the appliance "
39908 "might be running a completely different operating system from the library "
39909 "and error numbers are not standardized across Un*xen).  If this could not be "
39910 "done, then the error is translated to C<EINVAL>.  In practice this should "
39911 "only happen in very rare circumstances."
39912 msgstr ""
39913
39914 #. type: =head2
39915 #: ../src/guestfs.pod:1467
39916 msgid "guestfs_set_error_handler"
39917 msgstr "guestfs_set_error_handler"
39918
39919 #. type: verbatim
39920 #: ../src/guestfs.pod:1469
39921 #, no-wrap
39922 msgid ""
39923 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
39924 "                                           void *opaque,\n"
39925 "                                           const char *msg);\n"
39926 " void guestfs_set_error_handler (guestfs_h *g,\n"
39927 "                                 guestfs_error_handler_cb cb,\n"
39928 "                                 void *opaque);\n"
39929 "\n"
39930 msgstr ""
39931 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
39932 "                                           void *opaque,\n"
39933 "                                           const char *msg);\n"
39934 " void guestfs_set_error_handler (guestfs_h *g,\n"
39935 "                                 guestfs_error_handler_cb cb,\n"
39936 "                                 void *opaque);\n"
39937 "\n"
39938
39939 #. type: textblock
39940 #: ../src/guestfs.pod:1476
39941 msgid ""
39942 "The callback C<cb> will be called if there is an error.  The parameters "
39943 "passed to the callback are an opaque data pointer and the error message "
39944 "string."
39945 msgstr ""
39946
39947 #. type: textblock
39948 #: ../src/guestfs.pod:1480
39949 msgid ""
39950 "C<errno> is not passed to the callback.  To get that the callback must call "
39951 "L</guestfs_last_errno>."
39952 msgstr ""
39953
39954 #. type: textblock
39955 #: ../src/guestfs.pod:1483
39956 msgid ""
39957 "Note that the message string C<msg> is freed as soon as the callback "
39958 "function returns, so if you want to stash it somewhere you must make your "
39959 "own copy."
39960 msgstr ""
39961
39962 #. type: textblock
39963 #: ../src/guestfs.pod:1487
39964 msgid "The default handler prints messages on C<stderr>."
39965 msgstr ""
39966
39967 #. type: textblock
39968 #: ../src/guestfs.pod:1489
39969 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
39970 msgstr ""
39971
39972 #. type: =head2
39973 #: ../src/guestfs.pod:1491
39974 msgid "guestfs_get_error_handler"
39975 msgstr "guestfs_get_error_handler"
39976
39977 #. type: verbatim
39978 #: ../src/guestfs.pod:1493
39979 #, no-wrap
39980 msgid ""
39981 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
39982 "                                                     void **opaque_rtn);\n"
39983 "\n"
39984 msgstr ""
39985 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
39986 "                                                     void **opaque_rtn);\n"
39987 "\n"
39988
39989 #. type: textblock
39990 #: ../src/guestfs.pod:1496
39991 msgid "Returns the current error handler callback."
39992 msgstr ""
39993
39994 #. type: =head2
39995 #: ../src/guestfs.pod:1498
39996 msgid "guestfs_set_out_of_memory_handler"
39997 msgstr "guestfs_set_out_of_memory_handler"
39998
39999 #. type: verbatim
40000 #: ../src/guestfs.pod:1500
40001 #, no-wrap
40002 msgid ""
40003 " typedef void (*guestfs_abort_cb) (void);\n"
40004 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
40005 "                                         guestfs_abort_cb);\n"
40006 "\n"
40007 msgstr ""
40008
40009 #. type: textblock
40010 #: ../src/guestfs.pod:1504
40011 msgid ""
40012 "The callback C<cb> will be called if there is an out of memory situation.  "
40013 "I<Note this callback must not return>."
40014 msgstr ""
40015
40016 #. type: textblock
40017 #: ../src/guestfs.pod:1507
40018 msgid "The default is to call L<abort(3)>."
40019 msgstr ""
40020
40021 #. type: textblock
40022 #: ../src/guestfs.pod:1509
40023 msgid ""
40024 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
40025 msgstr ""
40026
40027 #. type: =head2
40028 #: ../src/guestfs.pod:1512
40029 msgid "guestfs_get_out_of_memory_handler"
40030 msgstr "guestfs_get_out_of_memory_handler"
40031
40032 #. type: verbatim
40033 #: ../src/guestfs.pod:1514
40034 #, no-wrap
40035 msgid ""
40036 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
40037 "\n"
40038 msgstr ""
40039 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
40040 "\n"
40041
40042 #. type: textblock
40043 #: ../src/guestfs.pod:1516
40044 msgid "This returns the current out of memory handler."
40045 msgstr ""
40046
40047 #. type: =head1
40048 #: ../src/guestfs.pod:1518
40049 msgid "API CALLS"
40050 msgstr "ВИКЛИКИ API"
40051
40052 #. type: =head1
40053 #: ../src/guestfs.pod:1522
40054 msgid "STRUCTURES"
40055 msgstr "СТРУКТУРИ"
40056
40057 #. type: textblock
40058 #: ../src/guestfs.pod:1524
40059 msgid "@STRUCTS@"
40060 msgstr "@STRUCTS@"
40061
40062 #. type: =head1
40063 #: ../src/guestfs.pod:1526
40064 msgid "AVAILABILITY"
40065 msgstr "ДОСТУПНІСТЬ"
40066
40067 #. type: =head2
40068 #: ../src/guestfs.pod:1528
40069 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
40070 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
40071
40072 #. type: textblock
40073 #: ../src/guestfs.pod:1530
40074 msgid ""
40075 "Using L</guestfs_available> you can test availability of the following "
40076 "groups of functions.  This test queries the appliance to see if the "
40077 "appliance you are currently using supports the functionality."
40078 msgstr ""
40079
40080 #. type: textblock
40081 #: ../src/guestfs.pod:1535
40082 msgid "@AVAILABILITY@"
40083 msgstr "@AVAILABILITY@"
40084
40085 #. type: =head2
40086 #: ../src/guestfs.pod:1537
40087 msgid "GUESTFISH supported COMMAND"
40088 msgstr ""
40089
40090 #. type: textblock
40091 #: ../src/guestfs.pod:1539
40092 msgid ""
40093 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
40094 "prints out the available groups and whether they are supported by this build "
40095 "of libguestfs.  Note however that you have to do C<run> first."
40096 msgstr ""
40097
40098 #. type: =head2
40099 #: ../src/guestfs.pod:1544
40100 msgid "SINGLE CALLS AT COMPILE TIME"
40101 msgstr ""
40102
40103 #. type: textblock
40104 #: ../src/guestfs.pod:1546
40105 msgid ""
40106 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
40107 "function, such as:"
40108 msgstr ""
40109
40110 #. type: verbatim
40111 #: ../src/guestfs.pod:1549
40112 #, no-wrap
40113 msgid ""
40114 " #define LIBGUESTFS_HAVE_DD 1\n"
40115 "\n"
40116 msgstr ""
40117 " #define LIBGUESTFS_HAVE_DD 1\n"
40118 "\n"
40119
40120 #. type: textblock
40121 #: ../src/guestfs.pod:1551
40122 msgid "if L</guestfs_dd> is available."
40123 msgstr ""
40124
40125 #. type: textblock
40126 #: ../src/guestfs.pod:1553
40127 msgid ""
40128 "Before version 1.5.8, if you needed to test whether a single libguestfs "
40129 "function is available at compile time, we recommended using build tools such "
40130 "as autoconf or cmake.  For example in autotools you could use:"
40131 msgstr ""
40132
40133 #. type: verbatim
40134 #: ../src/guestfs.pod:1558
40135 #, no-wrap
40136 msgid ""
40137 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
40138 " AC_CHECK_FUNCS([guestfs_dd])\n"
40139 "\n"
40140 msgstr ""
40141 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
40142 " AC_CHECK_FUNCS([guestfs_dd])\n"
40143 "\n"
40144
40145 #. type: textblock
40146 #: ../src/guestfs.pod:1561
40147 msgid ""
40148 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
40149 "in your program."
40150 msgstr ""
40151
40152 #. type: =head2
40153 #: ../src/guestfs.pod:1564
40154 msgid "SINGLE CALLS AT RUN TIME"
40155 msgstr ""
40156
40157 #. type: textblock
40158 #: ../src/guestfs.pod:1566
40159 msgid ""
40160 "Testing at compile time doesn't guarantee that a function really exists in "
40161 "the library.  The reason is that you might be dynamically linked against a "
40162 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
40163 "This situation unfortunately results in a segmentation fault, which is a "
40164 "shortcoming of the C dynamic linking system itself."
40165 msgstr ""
40166
40167 #. type: textblock
40168 #: ../src/guestfs.pod:1573
40169 msgid ""
40170 "You can use L<dlopen(3)> to test if a function is available at run time, as "
40171 "in this example program (note that you still need the compile time check as "
40172 "well):"
40173 msgstr ""
40174
40175 #. type: verbatim
40176 #: ../src/guestfs.pod:1577
40177 #, no-wrap
40178 msgid ""
40179 " #include <stdio.h>\n"
40180 " #include <stdlib.h>\n"
40181 " #include <unistd.h>\n"
40182 " #include <dlfcn.h>\n"
40183 " #include <guestfs.h>\n"
40184 " \n"
40185 msgstr ""
40186 " #include <stdio.h>\n"
40187 " #include <stdlib.h>\n"
40188 " #include <unistd.h>\n"
40189 " #include <dlfcn.h>\n"
40190 " #include <guestfs.h>\n"
40191 " \n"
40192
40193 #. type: verbatim
40194 #: ../src/guestfs.pod:1583
40195 #, no-wrap
40196 msgid ""
40197 " main ()\n"
40198 " {\n"
40199 " #ifdef LIBGUESTFS_HAVE_DD\n"
40200 "   void *dl;\n"
40201 "   int has_function;\n"
40202 " \n"
40203 msgstr ""
40204 " main ()\n"
40205 " {\n"
40206 " #ifdef LIBGUESTFS_HAVE_DD\n"
40207 "   void *dl;\n"
40208 "   int has_function;\n"
40209 " \n"
40210
40211 #. type: verbatim
40212 #: ../src/guestfs.pod:1589
40213 #, no-wrap
40214 msgid ""
40215 "   /* Test if the function guestfs_dd is really available. */\n"
40216 "   dl = dlopen (NULL, RTLD_LAZY);\n"
40217 "   if (!dl) {\n"
40218 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
40219 "     exit (EXIT_FAILURE);\n"
40220 "   }\n"
40221 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
40222 "   dlclose (dl);\n"
40223 " \n"
40224 msgstr ""
40225
40226 #. type: verbatim
40227 #: ../src/guestfs.pod:1598
40228 #, no-wrap
40229 msgid ""
40230 "   if (!has_function)\n"
40231 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
40232 "   else {\n"
40233 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
40234 "     /* Now it's safe to call\n"
40235 "     guestfs_dd (g, \"foo\", \"bar\");\n"
40236 "     */\n"
40237 "   }\n"
40238 " #else\n"
40239 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
40240 " #endif\n"
40241 "  }\n"
40242 "\n"
40243 msgstr ""
40244
40245 #. type: textblock
40246 #: ../src/guestfs.pod:1611
40247 msgid ""
40248 "You may think the above is an awful lot of hassle, and it is.  There are "
40249 "other ways outside of the C linking system to ensure that this kind of "
40250 "incompatibility never arises, such as using package versioning:"
40251 msgstr ""
40252
40253 #. type: verbatim
40254 #: ../src/guestfs.pod:1616
40255 #, no-wrap
40256 msgid ""
40257 " Requires: libguestfs >= 1.0.80\n"
40258 "\n"
40259 msgstr ""
40260
40261 #. type: =head1
40262 #: ../src/guestfs.pod:1618
40263 msgid "CALLS WITH OPTIONAL ARGUMENTS"
40264 msgstr ""
40265
40266 #. type: textblock
40267 #: ../src/guestfs.pod:1620
40268 msgid ""
40269 "A recent feature of the API is the introduction of calls which take optional "
40270 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
40271 "takes variable arguments (ie. C<...>), as in this example:"
40272 msgstr ""
40273
40274 #. type: verbatim
40275 #: ../src/guestfs.pod:1625
40276 #, no-wrap
40277 msgid ""
40278 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
40279 "\n"
40280 msgstr ""
40281 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
40282 "\n"
40283
40284 #. type: textblock
40285 #: ../src/guestfs.pod:1627
40286 msgid ""
40287 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
40288 "call with no optional arguments specified:"
40289 msgstr ""
40290
40291 #. type: verbatim
40292 #: ../src/guestfs.pod:1630
40293 #, no-wrap
40294 msgid ""
40295 " guestfs_add_drive_opts (g, filename, -1);\n"
40296 "\n"
40297 msgstr ""
40298 " guestfs_add_drive_opts (g, filename, -1);\n"
40299 "\n"
40300
40301 #. type: textblock
40302 #: ../src/guestfs.pod:1632
40303 msgid "With a single optional argument:"
40304 msgstr ""
40305
40306 #. type: verbatim
40307 #: ../src/guestfs.pod:1634
40308 #, no-wrap
40309 msgid ""
40310 " guestfs_add_drive_opts (g, filename,\n"
40311 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40312 "                         -1);\n"
40313 "\n"
40314 msgstr ""
40315 " guestfs_add_drive_opts (g, filename,\n"
40316 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40317 "                         -1);\n"
40318 "\n"
40319
40320 #. type: textblock
40321 #: ../src/guestfs.pod:1638
40322 msgid "With two:"
40323 msgstr ""
40324
40325 #. type: verbatim
40326 #: ../src/guestfs.pod:1640
40327 #, no-wrap
40328 msgid ""
40329 " guestfs_add_drive_opts (g, filename,\n"
40330 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40331 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
40332 "                         -1);\n"
40333 "\n"
40334 msgstr ""
40335 " guestfs_add_drive_opts (g, filename,\n"
40336 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
40337 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
40338 "                         -1);\n"
40339 "\n"
40340
40341 #. type: textblock
40342 #: ../src/guestfs.pod:1645
40343 msgid ""
40344 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
40345 "happen!"
40346 msgstr ""
40347
40348 #. type: =head2
40349 #: ../src/guestfs.pod:1648
40350 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
40351 msgstr ""
40352
40353 #. type: textblock
40354 #: ../src/guestfs.pod:1650
40355 msgid ""
40356 "The second variant has the same name with the suffix C<_va>, which works the "
40357 "same way but takes a C<va_list>.  See the C manual for details.  For the "
40358 "example function, this is declared:"
40359 msgstr ""
40360
40361 #. type: verbatim
40362 #: ../src/guestfs.pod:1654
40363 #, no-wrap
40364 msgid ""
40365 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
40366 "                                va_list args);\n"
40367 "\n"
40368 msgstr ""
40369 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
40370 "                                va_list args);\n"
40371 "\n"
40372
40373 #. type: =head2
40374 #: ../src/guestfs.pod:1657
40375 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
40376 msgstr ""
40377
40378 #. type: textblock
40379 #: ../src/guestfs.pod:1659
40380 msgid ""
40381 "The third variant is useful where you need to construct these calls.  You "
40382 "pass in a structure where you fill in the optional fields.  The structure "
40383 "has a bitmask as the first element which you must set to indicate which "
40384 "fields you have filled in.  For our example function the structure and call "
40385 "are declared:"
40386 msgstr ""
40387
40388 #. type: verbatim
40389 #: ../src/guestfs.pod:1665
40390 #, no-wrap
40391 msgid ""
40392 " struct guestfs_add_drive_opts_argv {\n"
40393 "   uint64_t bitmask;\n"
40394 "   int readonly;\n"
40395 "   const char *format;\n"
40396 "   /* ... */\n"
40397 " };\n"
40398 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
40399 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
40400 "\n"
40401 msgstr ""
40402 " struct guestfs_add_drive_opts_argv {\n"
40403 "   uint64_t bitmask;\n"
40404 "   int readonly;\n"
40405 "   const char *format;\n"
40406 "   /* ... */\n"
40407 " };\n"
40408 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
40409 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
40410 "\n"
40411
40412 #. type: textblock
40413 #: ../src/guestfs.pod:1674
40414 msgid "You could call it like this:"
40415 msgstr ""
40416
40417 #. type: verbatim
40418 #: ../src/guestfs.pod:1676
40419 #, no-wrap
40420 msgid ""
40421 " struct guestfs_add_drive_opts_argv optargs = {\n"
40422 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
40423 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
40424 "   .readonly = 1,\n"
40425 "   .format = \"qcow2\"\n"
40426 " };\n"
40427 " \n"
40428 msgstr ""
40429 " struct guestfs_add_drive_opts_argv optargs = {\n"
40430 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
40431 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
40432 "   .readonly = 1,\n"
40433 "   .format = \"qcow2\"\n"
40434 " };\n"
40435 " \n"
40436
40437 #. type: verbatim
40438 #: ../src/guestfs.pod:1683
40439 #, no-wrap
40440 msgid ""
40441 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
40442 "\n"
40443 msgstr ""
40444 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
40445 "\n"
40446
40447 #. type: textblock
40448 #: ../src/guestfs.pod:1691
40449 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
40450 msgstr ""
40451
40452 #. type: textblock
40453 #: ../src/guestfs.pod:1696
40454 msgid "You do not need to fill in all fields of the structure."
40455 msgstr ""
40456
40457 #. type: textblock
40458 #: ../src/guestfs.pod:1700
40459 msgid ""
40460 "There must be a one-to-one correspondence between fields of the structure "
40461 "that are filled in, and bits set in the bitmask."
40462 msgstr ""
40463
40464 #. type: =head2
40465 #: ../src/guestfs.pod:1705
40466 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
40467 msgstr ""
40468
40469 #. type: textblock
40470 #: ../src/guestfs.pod:1707
40471 msgid ""
40472 "In other languages, optional arguments are expressed in the way that is "
40473 "natural for that language.  We refer you to the language-specific "
40474 "documentation for more details on that."
40475 msgstr ""
40476
40477 #. type: textblock
40478 #: ../src/guestfs.pod:1711
40479 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
40480 msgstr ""
40481
40482 #. type: =head2
40483 #: ../src/guestfs.pod:1713
40484 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
40485 msgstr ""
40486
40487 #. type: textblock
40488 #: ../src/guestfs.pod:1715
40489 msgid ""
40490 "B<Note:> This section documents the generic event mechanism introduced in "
40491 "libguestfs 1.10, which you should use in new code if possible.  The old "
40492 "functions C<guestfs_set_log_message_callback>, "
40493 "C<guestfs_set_subprocess_quit_callback>, "
40494 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
40495 "C<guestfs_set_progress_callback> are no longer documented in this manual "
40496 "page.  Because of the ABI guarantee, the old functions continue to work."
40497 msgstr ""
40498
40499 #. type: textblock
40500 #: ../src/guestfs.pod:1724
40501 msgid ""
40502 "Handles generate events when certain things happen, such as log messages "
40503 "being generated, progress messages during long-running operations, or the "
40504 "handle being closed.  The API calls described below let you register a "
40505 "callback to be called when events happen.  You can register multiple "
40506 "callbacks (for the same, different or overlapping sets of events), and "
40507 "individually remove callbacks.  If callbacks are not removed, then they "
40508 "remain in force until the handle is closed."
40509 msgstr ""
40510
40511 #. type: textblock
40512 #: ../src/guestfs.pod:1732
40513 msgid ""
40514 "In the current implementation, events are only generated synchronously: that "
40515 "means that events (and hence callbacks) can only happen while you are in the "
40516 "middle of making another libguestfs call.  The callback is called in the "
40517 "same thread."
40518 msgstr ""
40519
40520 #. type: textblock
40521 #: ../src/guestfs.pod:1737
40522 msgid ""
40523 "Events may contain a payload, usually nothing (void), an array of 64 bit "
40524 "unsigned integers, or a message buffer.  Payloads are discussed later on."
40525 msgstr ""
40526
40527 #. type: =head3
40528 #: ../src/guestfs.pod:1741
40529 msgid "CLASSES OF EVENTS"
40530 msgstr ""
40531
40532 #. type: =item
40533 #: ../src/guestfs.pod:1745
40534 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
40535 msgstr ""
40536
40537 #. type: textblock
40538 #: ../src/guestfs.pod:1748
40539 msgid ""
40540 "The callback function will be called while the handle is being closed "
40541 "(synchronously from L</guestfs_close>)."
40542 msgstr ""
40543
40544 #. type: textblock
40545 #: ../src/guestfs.pod:1751
40546 msgid ""
40547 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
40548 "handles that are open when the program exits.  This means that this callback "
40549 "might be called indirectly from L<exit(3)>, which can cause unexpected "
40550 "problems in higher-level languages (eg. if your HLL interpreter has already "
40551 "been cleaned up by the time this is called, and if your callback then jumps "
40552 "into some HLL function)."
40553 msgstr ""
40554
40555 #. type: textblock
40556 #: ../src/guestfs.pod:1758
40557 msgid ""
40558 "If no callback is registered: the handle is closed without any callback "
40559 "being invoked."
40560 msgstr ""
40561
40562 #. type: =item
40563 #: ../src/guestfs.pod:1761
40564 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
40565 msgstr ""
40566
40567 #. type: textblock
40568 #: ../src/guestfs.pod:1764
40569 msgid ""
40570 "The callback function will be called when the child process quits, either "
40571 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
40572 "corresponds to a transition from any state to the CONFIG state)."
40573 msgstr ""
40574
40575 #. type: textblock
40576 #: ../src/guestfs.pod:1768 ../src/guestfs.pod:1777 ../src/guestfs.pod:1894
40577 msgid "If no callback is registered: the event is ignored."
40578 msgstr ""
40579
40580 #. type: =item
40581 #: ../src/guestfs.pod:1770
40582 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
40583 msgstr ""
40584
40585 #. type: textblock
40586 #: ../src/guestfs.pod:1773
40587 msgid ""
40588 "The callback function will be called when the child process becomes ready "
40589 "first time after it has been launched.  (This corresponds to a transition "
40590 "from LAUNCHING to the READY state)."
40591 msgstr ""
40592
40593 #. type: =item
40594 #: ../src/guestfs.pod:1779
40595 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
40596 msgstr ""
40597
40598 #. type: textblock
40599 #: ../src/guestfs.pod:1782
40600 msgid ""
40601 "Some long-running operations can generate progress messages.  If this "
40602 "callback is registered, then it will be called each time a progress message "
40603 "is generated (usually two seconds after the operation started, and three "
40604 "times per second thereafter until it completes, although the frequency may "
40605 "change in future versions)."
40606 msgstr ""
40607
40608 #. type: textblock
40609 #: ../src/guestfs.pod:1788
40610 msgid ""
40611 "The callback receives in the payload four unsigned 64 bit numbers which are "
40612 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
40613 msgstr ""
40614
40615 #. type: textblock
40616 #: ../src/guestfs.pod:1791
40617 msgid ""
40618 "The units of C<total> are not defined, although for some operations C<total> "
40619 "may relate in some way to the amount of data to be transferred (eg. in bytes "
40620 "or megabytes), and C<position> may be the portion which has been transferred."
40621 msgstr ""
40622
40623 #. type: textblock
40624 #: ../src/guestfs.pod:1796
40625 msgid "The only defined and stable parts of the API are:"
40626 msgstr ""
40627
40628 #. type: textblock
40629 #: ../src/guestfs.pod:1802
40630 msgid ""
40631 "The callback can display to the user some type of progress bar or indicator "
40632 "which shows the ratio of C<position>:C<total>."
40633 msgstr ""
40634
40635 #. type: textblock
40636 #: ../src/guestfs.pod:1807
40637 msgid "0 E<lt>= C<position> E<lt>= C<total>"
40638 msgstr ""
40639
40640 #. type: textblock
40641 #: ../src/guestfs.pod:1811
40642 msgid ""
40643 "If any progress notification is sent during a call, then a final progress "
40644 "notification is always sent when C<position> = C<total> (I<unless> the call "
40645 "fails with an error)."
40646 msgstr ""
40647
40648 #. type: textblock
40649 #: ../src/guestfs.pod:1815
40650 msgid ""
40651 "This is to simplify caller code, so callers can easily set the progress "
40652 "indicator to \"100%\" at the end of the operation, without requiring special "
40653 "code to detect this case."
40654 msgstr ""
40655
40656 #. type: textblock
40657 #: ../src/guestfs.pod:1821
40658 msgid ""
40659 "For some calls we are unable to estimate the progress of the call, but we "
40660 "can still generate progress messages to indicate activity.  This is known as "
40661 "\"pulse mode\", and is directly supported by certain progress bar "
40662 "implementations (eg. GtkProgressBar)."
40663 msgstr ""
40664
40665 #. type: textblock
40666 #: ../src/guestfs.pod:1826
40667 msgid ""
40668 "For these calls, zero or more progress messages are generated with "
40669 "C<position = 0> and C<total = 1>, followed by a final message with "
40670 "C<position = total = 1>."
40671 msgstr ""
40672
40673 #. type: textblock
40674 #: ../src/guestfs.pod:1830
40675 msgid ""
40676 "As noted above, if the call fails with an error then the final message may "
40677 "not be generated."
40678 msgstr ""
40679
40680 #. type: textblock
40681 #: ../src/guestfs.pod:1835
40682 msgid ""
40683 "The callback also receives the procedure number (C<proc_nr>) and serial "
40684 "number (C<serial>) of the call.  These are only useful for debugging "
40685 "protocol issues, and the callback can normally ignore them.  The callback "
40686 "may want to print these numbers in error messages or debugging messages."
40687 msgstr ""
40688
40689 #. type: textblock
40690 #: ../src/guestfs.pod:1841
40691 msgid "If no callback is registered: progress messages are discarded."
40692 msgstr ""
40693
40694 #. type: =item
40695 #: ../src/guestfs.pod:1843
40696 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
40697 msgstr ""
40698
40699 #. type: textblock
40700 #: ../src/guestfs.pod:1846
40701 msgid ""
40702 "The callback function is called whenever a log message is generated by qemu, "
40703 "the appliance kernel, guestfsd (daemon), or utility programs."
40704 msgstr ""
40705
40706 #. type: textblock
40707 #: ../src/guestfs.pod:1849
40708 msgid ""
40709 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
40710 "guestfs_launch>) then additional debug messages are generated."
40711 msgstr ""
40712
40713 #. type: textblock
40714 #: ../src/guestfs.pod:1852 ../src/guestfs.pod:1866
40715 msgid ""
40716 "If no callback is registered: the messages are discarded unless the verbose "
40717 "flag is set in which case they are sent to stderr.  You can override the "
40718 "printing of verbose messages to stderr by setting up a callback."
40719 msgstr ""
40720
40721 #. type: =item
40722 #: ../src/guestfs.pod:1857
40723 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
40724 msgstr ""
40725
40726 #. type: textblock
40727 #: ../src/guestfs.pod:1860
40728 msgid ""
40729 "The callback function is called whenever a log message is generated by the "
40730 "library part of libguestfs."
40731 msgstr ""
40732
40733 #. type: textblock
40734 #: ../src/guestfs.pod:1863
40735 msgid ""
40736 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
40737 "messages are generated."
40738 msgstr ""
40739
40740 #. type: =item
40741 #: ../src/guestfs.pod:1871
40742 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
40743 msgstr ""
40744
40745 #. type: textblock
40746 #: ../src/guestfs.pod:1874
40747 msgid ""
40748 "The callback function is called whenever a trace message is generated.  This "
40749 "only applies if the trace flag (L</guestfs_set_trace>) is set."
40750 msgstr ""
40751
40752 #. type: textblock
40753 #: ../src/guestfs.pod:1877
40754 msgid ""
40755 "If no callback is registered: the messages are sent to stderr.  You can "
40756 "override the printing of trace messages to stderr by setting up a callback."
40757 msgstr ""
40758
40759 #. type: =item
40760 #: ../src/guestfs.pod:1881
40761 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
40762 msgstr ""
40763
40764 #. type: textblock
40765 #: ../src/guestfs.pod:1884
40766 msgid ""
40767 "The callback function is called whenever a libguestfs function is entered."
40768 msgstr ""
40769
40770 #. type: textblock
40771 #: ../src/guestfs.pod:1887
40772 msgid ""
40773 "The payload is a string which contains the name of the function that we are "
40774 "entering (not including C<guestfs_> prefix)."
40775 msgstr ""
40776
40777 #. type: textblock
40778 #: ../src/guestfs.pod:1890
40779 msgid ""
40780 "Note that libguestfs functions can call themselves, so you may see many "
40781 "events from a single call.  A few libguestfs functions do not generate this "
40782 "event."
40783 msgstr ""
40784
40785 #. type: =head3
40786 #: ../src/guestfs.pod:1898
40787 msgid "guestfs_set_event_callback"
40788 msgstr ""
40789
40790 #. type: verbatim
40791 #: ../src/guestfs.pod:1900
40792 #, no-wrap
40793 msgid ""
40794 " int guestfs_set_event_callback (guestfs_h *g,\n"
40795 "                                 guestfs_event_callback cb,\n"
40796 "                                 uint64_t event_bitmask,\n"
40797 "                                 int flags,\n"
40798 "                                 void *opaque);\n"
40799 "\n"
40800 msgstr ""
40801
40802 #. type: textblock
40803 #: ../src/guestfs.pod:1906
40804 msgid ""
40805 "This function registers a callback (C<cb>) for all event classes in the "
40806 "C<event_bitmask>."
40807 msgstr ""
40808
40809 #. type: textblock
40810 #: ../src/guestfs.pod:1909
40811 msgid ""
40812 "For example, to register for all log message events, you could call this "
40813 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
40814 "To register a single callback for all possible classes of events, use "
40815 "C<GUESTFS_EVENT_ALL>."
40816 msgstr ""
40817
40818 #. type: textblock
40819 #: ../src/guestfs.pod:1915
40820 msgid "C<flags> should always be passed as 0."
40821 msgstr ""
40822
40823 #. type: textblock
40824 #: ../src/guestfs.pod:1917
40825 msgid ""
40826 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
40827 "it for any purpose."
40828 msgstr ""
40829
40830 #. type: textblock
40831 #: ../src/guestfs.pod:1920
40832 msgid ""
40833 "The return value is the event handle (an integer) which you can use to "
40834 "delete the callback (see below)."
40835 msgstr ""
40836
40837 #. type: textblock
40838 #: ../src/guestfs.pod:1923
40839 msgid ""
40840 "If there is an error, this function returns C<-1>, and sets the error in the "
40841 "handle in the usual way (see L</guestfs_last_error> etc.)"
40842 msgstr ""
40843
40844 #. type: textblock
40845 #: ../src/guestfs.pod:1926
40846 msgid ""
40847 "Callbacks remain in effect until they are deleted, or until the handle is "
40848 "closed."
40849 msgstr ""
40850
40851 #. type: textblock
40852 #: ../src/guestfs.pod:1929
40853 msgid ""
40854 "In the case where multiple callbacks are registered for a particular event "
40855 "class, all of the callbacks are called.  The order in which multiple "
40856 "callbacks are called is not defined."
40857 msgstr ""
40858
40859 #. type: =head3
40860 #: ../src/guestfs.pod:1933
40861 msgid "guestfs_delete_event_callback"
40862 msgstr ""
40863
40864 #. type: verbatim
40865 #: ../src/guestfs.pod:1935
40866 #, no-wrap
40867 msgid ""
40868 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
40869 "\n"
40870 msgstr ""
40871
40872 #. type: textblock
40873 #: ../src/guestfs.pod:1937
40874 msgid ""
40875 "Delete a callback that was previously registered.  C<event_handle> should be "
40876 "the integer that was returned by a previous call to "
40877 "C<guestfs_set_event_callback> on the same handle."
40878 msgstr ""
40879
40880 #. type: =head3
40881 #: ../src/guestfs.pod:1941
40882 msgid "guestfs_event_callback"
40883 msgstr ""
40884
40885 #. type: verbatim
40886 #: ../src/guestfs.pod:1943
40887 #, no-wrap
40888 msgid ""
40889 " typedef void (*guestfs_event_callback) (\n"
40890 "                  guestfs_h *g,\n"
40891 "                  void *opaque,\n"
40892 "                  uint64_t event,\n"
40893 "                  int event_handle,\n"
40894 "                  int flags,\n"
40895 "                  const char *buf, size_t buf_len,\n"
40896 "                  const uint64_t *array, size_t array_len);\n"
40897 "\n"
40898 msgstr ""
40899
40900 #. type: textblock
40901 #: ../src/guestfs.pod:1952
40902 msgid ""
40903 "This is the type of the event callback function that you have to provide."
40904 msgstr ""
40905
40906 #. type: textblock
40907 #: ../src/guestfs.pod:1955
40908 msgid ""
40909 "The basic parameters are: the handle (C<g>), the opaque user pointer "
40910 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
40911 "handle, and C<flags> which in the current API you should ignore."
40912 msgstr ""
40913
40914 #. type: textblock
40915 #: ../src/guestfs.pod:1959
40916 msgid ""
40917 "The remaining parameters contain the event payload (if any).  Each event may "
40918 "contain a payload, which usually relates to the event class, but for future "
40919 "proofing your code should be written to handle any payload for any event "
40920 "class."
40921 msgstr ""
40922
40923 #. type: textblock
40924 #: ../src/guestfs.pod:1964
40925 msgid ""
40926 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
40927 "there is no message buffer).  Note that this message buffer can contain "
40928 "arbitrary 8 bit data, including NUL bytes."
40929 msgstr ""
40930
40931 #. type: textblock
40932 #: ../src/guestfs.pod:1968
40933 msgid ""
40934 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
40935 "moment this is only used for progress messages."
40936 msgstr ""
40937
40938 #. type: =head3
40939 #: ../src/guestfs.pod:1971
40940 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
40941 msgstr ""
40942
40943 #. type: textblock
40944 #: ../src/guestfs.pod:1973
40945 msgid ""
40946 "One motivation for the generic event API was to allow GUI programs to "
40947 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
40948 "unconditionally to C<stderr>."
40949 msgstr ""
40950
40951 #. type: textblock
40952 #: ../src/guestfs.pod:1977
40953 msgid ""
40954 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
40955 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
40956 "messages are not events; you must capture error messages separately)."
40957 msgstr ""
40958
40959 #. type: textblock
40960 #: ../src/guestfs.pod:1982
40961 msgid ""
40962 "Programs have to set up a callback to capture the classes of events of "
40963 "interest:"
40964 msgstr ""
40965
40966 #. type: verbatim
40967 #: ../src/guestfs.pod:1985
40968 #, no-wrap
40969 msgid ""
40970 " int eh =\n"
40971 "   guestfs_set_event_callback\n"
40972 "     (g, message_callback,\n"
40973 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
40974 "      GUESTFS_EVENT_TRACE,\n"
40975 "      0, NULL) == -1)\n"
40976 " if (eh == -1) {\n"
40977 "   // handle error in the usual way\n"
40978 " }\n"
40979 "\n"
40980 msgstr ""
40981
40982 #. type: textblock
40983 #: ../src/guestfs.pod:1995
40984 msgid ""
40985 "The callback can then direct messages to the appropriate place.  In this "
40986 "example, messages are directed to syslog:"
40987 msgstr ""
40988
40989 #. type: verbatim
40990 #: ../src/guestfs.pod:1998
40991 #, no-wrap
40992 msgid ""
40993 " static void\n"
40994 " message_callback (\n"
40995 "         guestfs_h *g,\n"
40996 "         void *opaque,\n"
40997 "         uint64_t event,\n"
40998 "         int event_handle,\n"
40999 "         int flags,\n"
41000 "         const char *buf, size_t buf_len,\n"
41001 "         const uint64_t *array, size_t array_len)\n"
41002 " {\n"
41003 "   const int priority = LOG_USER|LOG_INFO;\n"
41004 "   if (buf_len > 0)\n"
41005 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
41006 " }\n"
41007 "\n"
41008 msgstr ""
41009
41010 #. type: =head1
41011 #: ../src/guestfs.pod:2013
41012 msgid "CANCELLING LONG TRANSFERS"
41013 msgstr ""
41014
41015 #. type: textblock
41016 #: ../src/guestfs.pod:2015
41017 msgid ""
41018 "Some operations can be cancelled by the caller while they are in progress.  "
41019 "Currently only operations that involve uploading or downloading data can be "
41020 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
41021 "parameters in the generator)."
41022 msgstr ""
41023
41024 #. type: =head2
41025 #: ../src/guestfs.pod:2020
41026 msgid "guestfs_user_cancel"
41027 msgstr ""
41028
41029 #. type: verbatim
41030 #: ../src/guestfs.pod:2022
41031 #, no-wrap
41032 msgid ""
41033 " void guestfs_user_cancel (guestfs_h *g);\n"
41034 "\n"
41035 msgstr ""
41036
41037 #. type: textblock
41038 #: ../src/guestfs.pod:2024
41039 msgid ""
41040 "C<guestfs_user_cancel> cancels the current upload or download operation."
41041 msgstr ""
41042
41043 #. type: textblock
41044 #: ../src/guestfs.pod:2027
41045 msgid ""
41046 "Unlike most other libguestfs calls, this function is signal safe and thread "
41047 "safe.  You can call it from a signal handler or from another thread, without "
41048 "needing to do any locking."
41049 msgstr ""
41050
41051 #. type: textblock
41052 #: ../src/guestfs.pod:2031
41053 msgid ""
41054 "The transfer that was in progress (if there is one) will stop shortly "
41055 "afterwards, and will return an error.  The errno (see L</"
41056 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
41057 "out if the operation was cancelled or failed because of another error."
41058 msgstr ""
41059
41060 #. type: textblock
41061 #: ../src/guestfs.pod:2037
41062 msgid ""
41063 "No cleanup is performed: for example, if a file was being uploaded then "
41064 "after cancellation there may be a partially uploaded file.  It is the "
41065 "caller's responsibility to clean up if necessary."
41066 msgstr ""
41067
41068 #. type: textblock
41069 #: ../src/guestfs.pod:2041
41070 msgid "There are two common places that you might call C<guestfs_user_cancel>."
41071 msgstr ""
41072
41073 #. type: textblock
41074 #: ../src/guestfs.pod:2043
41075 msgid ""
41076 "In an interactive text-based program, you might call it from a C<SIGINT> "
41077 "signal handler so that pressing C<^C> cancels the current operation.  (You "
41078 "also need to call L</guestfs_set_pgroup> so that child processes don't "
41079 "receive the C<^C> signal)."
41080 msgstr ""
41081
41082 #. type: textblock
41083 #: ../src/guestfs.pod:2048
41084 msgid ""
41085 "In a graphical program, when the main thread is displaying a progress bar "
41086 "with a cancel button, wire up the cancel button to call this function."
41087 msgstr ""
41088
41089 #. type: =head1
41090 #: ../src/guestfs.pod:2052
41091 msgid "PRIVATE DATA AREA"
41092 msgstr ""
41093
41094 #. type: textblock
41095 #: ../src/guestfs.pod:2054
41096 msgid ""
41097 "You can attach named pieces of private data to the libguestfs handle, fetch "
41098 "them by name, and walk over them, for the lifetime of the handle.  This is "
41099 "called the private data area and is only available from the C API."
41100 msgstr ""
41101
41102 #. type: textblock
41103 #: ../src/guestfs.pod:2059
41104 msgid "To attach a named piece of data, use the following call:"
41105 msgstr ""
41106
41107 #. type: verbatim
41108 #: ../src/guestfs.pod:2061
41109 #, no-wrap
41110 msgid ""
41111 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
41112 "\n"
41113 msgstr ""
41114 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
41115 "\n"
41116
41117 #. type: textblock
41118 #: ../src/guestfs.pod:2063
41119 msgid ""
41120 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
41121 "pointer (which can be C<NULL>).  Any previous item with the same key is "
41122 "overwritten."
41123 msgstr ""
41124
41125 #. type: textblock
41126 #: ../src/guestfs.pod:2067
41127 msgid ""
41128 "You can use any C<key> you want, but your key should I<not> start with an "
41129 "underscore character.  Keys beginning with an underscore character are "
41130 "reserved for internal libguestfs purposes (eg. for implementing language "
41131 "bindings).  It is recommended that you prefix the key with some unique "
41132 "string to avoid collisions with other users."
41133 msgstr ""
41134
41135 #. type: textblock
41136 #: ../src/guestfs.pod:2073
41137 msgid "To retrieve the pointer, use:"
41138 msgstr ""
41139
41140 #. type: verbatim
41141 #: ../src/guestfs.pod:2075
41142 #, no-wrap
41143 msgid ""
41144 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
41145 "\n"
41146 msgstr ""
41147 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
41148 "\n"
41149
41150 #. type: textblock
41151 #: ../src/guestfs.pod:2077
41152 msgid ""
41153 "This function returns C<NULL> if either no data is found associated with "
41154 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
41155 "C<NULL>."
41156 msgstr ""
41157
41158 #. type: textblock
41159 #: ../src/guestfs.pod:2081
41160 msgid ""
41161 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
41162 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
41163 "all.  In particular, libguestfs does I<not> try to free the data when the "
41164 "handle is closed.  If the data must be freed, then the caller must either "
41165 "free it before calling L</guestfs_close> or must set up a close callback to "
41166 "do it (see L</GUESTFS_EVENT_CLOSE>)."
41167 msgstr ""
41168
41169 #. type: textblock
41170 #: ../src/guestfs.pod:2088
41171 msgid "To walk over all entries, use these two functions:"
41172 msgstr ""
41173
41174 #. type: verbatim
41175 #: ../src/guestfs.pod:2090
41176 #, no-wrap
41177 msgid ""
41178 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
41179 "\n"
41180 msgstr ""
41181
41182 #. type: verbatim
41183 #: ../src/guestfs.pod:2092
41184 #, no-wrap
41185 msgid ""
41186 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
41187 "\n"
41188 msgstr ""
41189
41190 #. type: textblock
41191 #: ../src/guestfs.pod:2094
41192 msgid ""
41193 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
41194 "not have any particular meaning -- keys are not returned in any defined "
41195 "order).  A pointer to the key is returned in C<*key_rtn> and the "
41196 "corresponding data pointer is returned from the function.  C<NULL> is "
41197 "returned if there are no keys stored in the handle."
41198 msgstr ""
41199
41200 #. type: textblock
41201 #: ../src/guestfs.pod:2100
41202 msgid ""
41203 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
41204 "value of this function is also C<NULL> is there are no further entries to "
41205 "return."
41206 msgstr ""
41207
41208 #. type: textblock
41209 #: ../src/guestfs.pod:2104
41210 msgid "Notes about walking over entries:"
41211 msgstr ""
41212
41213 #. type: textblock
41214 #: ../src/guestfs.pod:2110
41215 msgid ""
41216 "You must not call C<guestfs_set_private> while walking over the entries."
41217 msgstr ""
41218
41219 #. type: textblock
41220 #: ../src/guestfs.pod:2115
41221 msgid ""
41222 "The handle maintains an internal iterator which is reset when you call "
41223 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
41224 "call C<guestfs_set_private>."
41225 msgstr ""
41226
41227 #. type: textblock
41228 #: ../src/guestfs.pod:2121
41229 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
41230 msgstr ""
41231
41232 #. type: verbatim
41233 #: ../src/guestfs.pod:2123
41234 #, no-wrap
41235 msgid ""
41236 " guestfs_set_private (g, key, NULL);\n"
41237 "\n"
41238 msgstr ""
41239
41240 #. type: textblock
41241 #: ../src/guestfs.pod:2125
41242 msgid "then that C<key> is not returned when walking."
41243 msgstr ""
41244
41245 #. type: textblock
41246 #: ../src/guestfs.pod:2129
41247 msgid ""
41248 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
41249 "C<guestfs_next_private> or C<guestfs_set_private>."
41250 msgstr ""
41251
41252 #. type: textblock
41253 #: ../src/guestfs.pod:2135
41254 msgid ""
41255 "The following example code shows how to print all keys and data pointers "
41256 "that are associated with the handle C<g>:"
41257 msgstr ""
41258
41259 #. type: verbatim
41260 #: ../src/guestfs.pod:2138
41261 #, no-wrap
41262 msgid ""
41263 " const char *key;\n"
41264 " void *data = guestfs_first_private (g, &key);\n"
41265 " while (data != NULL)\n"
41266 "   {\n"
41267 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
41268 "     data = guestfs_next_private (g, &key);\n"
41269 "   }\n"
41270 "\n"
41271 msgstr ""
41272
41273 #. type: textblock
41274 #: ../src/guestfs.pod:2146
41275 msgid ""
41276 "More commonly you are only interested in keys that begin with an application-"
41277 "specific prefix C<foo_>.  Modify the loop like so:"
41278 msgstr ""
41279
41280 #. type: verbatim
41281 #: ../src/guestfs.pod:2149
41282 #, no-wrap
41283 msgid ""
41284 " const char *key;\n"
41285 " void *data = guestfs_first_private (g, &key);\n"
41286 " while (data != NULL)\n"
41287 "   {\n"
41288 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
41289 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
41290 "     data = guestfs_next_private (g, &key);\n"
41291 "   }\n"
41292 "\n"
41293 msgstr ""
41294
41295 #. type: textblock
41296 #: ../src/guestfs.pod:2158
41297 msgid ""
41298 "If you need to modify keys while walking, then you have to jump back to the "
41299 "beginning of the loop.  For example, to delete all keys prefixed with "
41300 "C<foo_>:"
41301 msgstr ""
41302
41303 #. type: verbatim
41304 #: ../src/guestfs.pod:2162
41305 #, no-wrap
41306 msgid ""
41307 "  const char *key;\n"
41308 "  void *data;\n"
41309 " again:\n"
41310 "  data = guestfs_first_private (g, &key);\n"
41311 "  while (data != NULL)\n"
41312 "    {\n"
41313 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
41314 "        {\n"
41315 "          guestfs_set_private (g, key, NULL);\n"
41316 "          /* note that 'key' pointer is now invalid, and so is\n"
41317 "             the internal iterator */\n"
41318 "          goto again;\n"
41319 "        }\n"
41320 "      data = guestfs_next_private (g, &key);\n"
41321 "    }\n"
41322 "\n"
41323 msgstr ""
41324
41325 #. type: textblock
41326 #: ../src/guestfs.pod:2178
41327 msgid ""
41328 "Note that the above loop is guaranteed to terminate because the keys are "
41329 "being deleted, but other manipulations of keys within the loop might not "
41330 "terminate unless you also maintain an indication of which keys have been "
41331 "visited."
41332 msgstr ""
41333
41334 #. type: =head1
41335 #: ../src/guestfs.pod:2183
41336 msgid "SYSTEMTAP"
41337 msgstr ""
41338
41339 #. type: textblock
41340 #: ../src/guestfs.pod:2185
41341 msgid ""
41342 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
41343 "true of any library, not just libguestfs.  However libguestfs also contains "
41344 "static markers to help in probing internal operations."
41345 msgstr ""
41346
41347 #. type: textblock
41348 #: ../src/guestfs.pod:2189
41349 msgid "You can list all the static markers by doing:"
41350 msgstr ""
41351
41352 #. type: verbatim
41353 #: ../src/guestfs.pod:2191
41354 #, no-wrap
41355 msgid ""
41356 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
41357 "              .provider(\"guestfs\").mark(\"*\")'\n"
41358 "\n"
41359 msgstr ""
41360
41361 #. type: textblock
41362 #: ../src/guestfs.pod:2194
41363 msgid ""
41364 "B<Note:> These static markers are I<not> part of the stable API and may "
41365 "change in future versions."
41366 msgstr ""
41367
41368 #. type: =head2
41369 #: ../src/guestfs.pod:2197
41370 msgid "SYSTEMTAP SCRIPT EXAMPLE"
41371 msgstr ""
41372
41373 #. type: textblock
41374 #: ../src/guestfs.pod:2199
41375 msgid ""
41376 "This script contains examples of displaying both the static markers and some "
41377 "ordinary C entry points:"
41378 msgstr ""
41379
41380 #. type: verbatim
41381 #: ../src/guestfs.pod:2202
41382 #, no-wrap
41383 msgid ""
41384 " global last;\n"
41385 " \n"
41386 msgstr ""
41387
41388 #. type: verbatim
41389 #: ../src/guestfs.pod:2204
41390 #, no-wrap
41391 msgid ""
41392 " function display_time () {\n"
41393 "       now = gettimeofday_us ();\n"
41394 "       delta = 0;\n"
41395 "       if (last > 0)\n"
41396 "             delta = now - last;\n"
41397 "       last = now;\n"
41398 " \n"
41399 msgstr ""
41400
41401 #. type: verbatim
41402 #: ../src/guestfs.pod:2211
41403 #, no-wrap
41404 msgid ""
41405 "       printf (\"%d (+%d):\", now, delta);\n"
41406 " }\n"
41407 " \n"
41408 msgstr ""
41409
41410 #. type: verbatim
41411 #: ../src/guestfs.pod:2214
41412 #, no-wrap
41413 msgid ""
41414 " probe begin {\n"
41415 "       last = 0;\n"
41416 "       printf (\"ready\\n\");\n"
41417 " }\n"
41418 " \n"
41419 msgstr ""
41420
41421 #. type: verbatim
41422 #: ../src/guestfs.pod:2219
41423 #, no-wrap
41424 msgid ""
41425 " /* Display all calls to static markers. */\n"
41426 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
41427 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
41428 "       display_time();\n"
41429 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
41430 " }\n"
41431 " \n"
41432 msgstr ""
41433
41434 #. type: verbatim
41435 #: ../src/guestfs.pod:2226
41436 #, no-wrap
41437 msgid ""
41438 " /* Display all calls to guestfs_mkfs* functions. */\n"
41439 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
41440 "           .function(\"guestfs_mkfs*\") ? {\n"
41441 "       display_time();\n"
41442 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
41443 " }\n"
41444 "\n"
41445 msgstr ""
41446
41447 #. type: textblock
41448 #: ../src/guestfs.pod:2233
41449 msgid ""
41450 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
41451 "program.  Note that you either have to be root, or you have to add yourself "
41452 "to several special stap groups.  Consult the systemtap documentation for "
41453 "more information."
41454 msgstr ""
41455
41456 #. type: verbatim
41457 #: ../src/guestfs.pod:2238
41458 #, no-wrap
41459 msgid ""
41460 " # stap /tmp/test.stap\n"
41461 " ready\n"
41462 "\n"
41463 msgstr ""
41464
41465 #. type: textblock
41466 #: ../src/guestfs.pod:2241
41467 msgid "In another terminal, run a guestfish command such as this:"
41468 msgstr ""
41469
41470 #. type: textblock
41471 #: ../src/guestfs.pod:2245
41472 msgid "In the first terminal, stap trace output similar to this is shown:"
41473 msgstr ""
41474
41475 #. type: verbatim
41476 #: ../src/guestfs.pod:2247
41477 #, no-wrap
41478 msgid ""
41479 " 1318248056692655 (+0):\tlaunch_start\n"
41480 " 1318248056692850 (+195):       launch_build_appliance_start\n"
41481 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
41482 " 1318248056838059 (+19774):     launch_run_qemu\n"
41483 " 1318248061071167 (+4233108):   launch_end\n"
41484 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
41485 "\n"
41486 msgstr ""
41487
41488 #. type: =end
41489 #: ../src/guestfs.pod:2254 ../src/guestfs.pod:2259
41490 msgid "html"
41491 msgstr "html"
41492
41493 #. type: textblock
41494 #: ../src/guestfs.pod:2256
41495 msgid ""
41496 "<!-- old anchor for the next section --> <a name="
41497 "\"state_machine_and_low_level_event_api\"/>"
41498 msgstr ""
41499 "<!-- old anchor for the next section --> <a name="
41500 "\"state_machine_and_low_level_event_api\"/>"
41501
41502 #. type: =head1
41503 #: ../src/guestfs.pod:2261
41504 msgid "ARCHITECTURE"
41505 msgstr "АРХІТЕКТУРА"
41506
41507 #. type: textblock
41508 #: ../src/guestfs.pod:2263
41509 msgid ""
41510 "Internally, libguestfs is implemented by running an appliance (a special "
41511 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
41512 "process of the main program."
41513 msgstr ""
41514
41515 #. type: verbatim
41516 #: ../src/guestfs.pod:2267
41517 #, no-wrap
41518 msgid ""
41519 "  ___________________\n"
41520 " /                   \\\n"
41521 " | main program      |\n"
41522 " |                   |\n"
41523 " |                   |           child process / appliance\n"
41524 " |                   |           __________________________\n"
41525 " |                   |          / qemu                     \\\n"
41526 " +-------------------+   RPC    |      +-----------------+ |\n"
41527 " | libguestfs     <--------------------> guestfsd        | |\n"
41528 " |                   |          |      +-----------------+ |\n"
41529 " \\___________________/          |      | Linux kernel    | |\n"
41530 "                                |      +--^--------------+ |\n"
41531 "                                \\_________|________________/\n"
41532 "                                          |\n"
41533 "                                   _______v______\n"
41534 "                                  /              \\\n"
41535 "                                  | Device or    |\n"
41536 "                                  | disk image   |\n"
41537 "                                  \\______________/\n"
41538 "\n"
41539 msgstr ""
41540
41541 #. type: textblock
41542 #: ../src/guestfs.pod:2287
41543 msgid ""
41544 "The library, linked to the main program, creates the child process and hence "
41545 "the appliance in the L</guestfs_launch> function."
41546 msgstr ""
41547
41548 #. type: textblock
41549 #: ../src/guestfs.pod:2290
41550 msgid ""
41551 "Inside the appliance is a Linux kernel and a complete stack of userspace "
41552 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
41553 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
41554 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
41555 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
41556 "attached to the qemu process which translates device access by the "
41557 "appliance's Linux kernel into accesses to the image."
41558 msgstr ""
41559
41560 #. type: textblock
41561 #: ../src/guestfs.pod:2299
41562 msgid ""
41563 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
41564 "Although the disk image you are attached to might also be used by some "
41565 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
41566 "care if both libguestfs's qemu process and your virtual machine are trying "
41567 "to update the disk image at the same time, since these usually results in "
41568 "massive disk corruption)."
41569 msgstr ""
41570
41571 #. type: =head1
41572 #: ../src/guestfs.pod:2306
41573 msgid "STATE MACHINE"
41574 msgstr "СКІНЧЕННИЙ АВТОМАТ"
41575
41576 #. type: textblock
41577 #: ../src/guestfs.pod:2308
41578 msgid "libguestfs uses a state machine to model the child process:"
41579 msgstr ""
41580
41581 #. type: verbatim
41582 #: ../src/guestfs.pod:2310
41583 #, no-wrap
41584 msgid ""
41585 "                         |\n"
41586 "                    guestfs_create\n"
41587 "                         |\n"
41588 "                         |\n"
41589 "                     ____V_____\n"
41590 "                    /          \\\n"
41591 "                    |  CONFIG  |\n"
41592 "                    \\__________/\n"
41593 "                     ^ ^   ^  \\\n"
41594 "                    /  |    \\  \\ guestfs_launch\n"
41595 "                   /   |    _\\__V______\n"
41596 "                  /    |   /           \\\n"
41597 "                 /     |   | LAUNCHING |\n"
41598 "                /      |   \\___________/\n"
41599 "               /       |       /\n"
41600 "              /        |  guestfs_launch\n"
41601 "             /         |     /\n"
41602 "    ______  /        __|____V\n"
41603 "   /      \\ ------> /        \\\n"
41604 "   | BUSY |         | READY  |\n"
41605 "   \\______/ <------ \\________/\n"
41606 "\n"
41607 msgstr ""
41608
41609 #. type: textblock
41610 #: ../src/guestfs.pod:2332
41611 msgid ""
41612 "The normal transitions are (1) CONFIG (when the handle is created, but there "
41613 "is no child process), (2) LAUNCHING (when the child process is booting up), "
41614 "(3) alternating between READY and BUSY as commands are issued to, and "
41615 "carried out by, the child process."
41616 msgstr ""
41617
41618 #. type: textblock
41619 #: ../src/guestfs.pod:2337
41620 msgid ""
41621 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
41622 "asynchronously at any time (eg. due to some internal error), and that causes "
41623 "the state to transition back to CONFIG."
41624 msgstr ""
41625
41626 #. type: textblock
41627 #: ../src/guestfs.pod:2341
41628 msgid ""
41629 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
41630 "issued when in the CONFIG state."
41631 msgstr ""
41632
41633 #. type: textblock
41634 #: ../src/guestfs.pod:2344
41635 msgid ""
41636 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
41637 "L</guestfs_launch> blocks until the child process is READY to accept "
41638 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
41639 "moves the state from CONFIG to LAUNCHING while it is running."
41640 msgstr ""
41641
41642 #. type: textblock
41643 #: ../src/guestfs.pod:2350
41644 msgid ""
41645 "API actions such as L</guestfs_mount> can only be issued when in the READY "
41646 "state.  These API calls block waiting for the command to be carried out (ie. "
41647 "the state to transition to BUSY and then back to READY).  There are no non-"
41648 "blocking versions, and no way to issue more than one command per handle at "
41649 "the same time."
41650 msgstr ""
41651
41652 #. type: textblock
41653 #: ../src/guestfs.pod:2356
41654 msgid ""
41655 "Finally, the child process sends asynchronous messages back to the main "
41656 "program, such as kernel log messages.  You can register a callback to "
41657 "receive these messages."
41658 msgstr ""
41659
41660 #. type: =head1
41661 #: ../src/guestfs.pod:2360
41662 msgid "INTERNALS"
41663 msgstr ""
41664
41665 #. type: =head2
41666 #: ../src/guestfs.pod:2362
41667 msgid "APPLIANCE BOOT PROCESS"
41668 msgstr ""
41669
41670 #. type: textblock
41671 #: ../src/guestfs.pod:2364
41672 msgid ""
41673 "This process has evolved and continues to evolve.  The description here "
41674 "corresponds only to the current version of libguestfs and is provided for "
41675 "information only."
41676 msgstr ""
41677
41678 #. type: textblock
41679 #: ../src/guestfs.pod:2368
41680 msgid ""
41681 "In order to follow the stages involved below, enable libguestfs debugging "
41682 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
41683 msgstr ""
41684
41685 #. type: =item
41686 #: ../src/guestfs.pod:2373
41687 msgid "Create the appliance"
41688 msgstr ""
41689
41690 #. type: textblock
41691 #: ../src/guestfs.pod:2375
41692 msgid ""
41693 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
41694 "initrd and the appliance."
41695 msgstr ""
41696
41697 #. type: textblock
41698 #: ../src/guestfs.pod:2378
41699 msgid ""
41700 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
41701 "directory if C<TMPDIR> is set)."
41702 msgstr ""
41703
41704 #. type: textblock
41705 #: ../src/guestfs.pod:2381
41706 msgid ""
41707 "For a complete description of how the appliance is created and cached, read "
41708 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
41709 msgstr ""
41710
41711 #. type: =item
41712 #: ../src/guestfs.pod:2385
41713 msgid "Start qemu and boot the kernel"
41714 msgstr ""
41715
41716 #. type: textblock
41717 #: ../src/guestfs.pod:2387
41718 msgid "qemu is invoked to boot the kernel."
41719 msgstr ""
41720
41721 #. type: =item
41722 #: ../src/guestfs.pod:2389
41723 msgid "Run the initrd"
41724 msgstr ""
41725
41726 #. type: textblock
41727 #: ../src/guestfs.pod:2391
41728 msgid ""
41729 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
41730 "appliance.  The purpose of the initrd is to load enough kernel modules in "
41731 "order that the appliance itself can be mounted and started."
41732 msgstr ""
41733
41734 #. type: textblock
41735 #: ../src/guestfs.pod:2395
41736 msgid ""
41737 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
41738 "initrd>."
41739 msgstr ""
41740
41741 #. type: textblock
41742 #: ../src/guestfs.pod:2398
41743 msgid ""
41744 "When the initrd has started you will see messages showing that kernel "
41745 "modules are being loaded, similar to this:"
41746 msgstr ""
41747
41748 #. type: verbatim
41749 #: ../src/guestfs.pod:2401
41750 #, no-wrap
41751 msgid ""
41752 " febootstrap: ext2 mini initrd starting up\n"
41753 " febootstrap: mounting /sys\n"
41754 " febootstrap: internal insmod libcrc32c.ko\n"
41755 " febootstrap: internal insmod crc32c-intel.ko\n"
41756 "\n"
41757 msgstr ""
41758
41759 #. type: =item
41760 #: ../src/guestfs.pod:2406
41761 msgid "Find and mount the appliance device"
41762 msgstr ""
41763
41764 #. type: textblock
41765 #: ../src/guestfs.pod:2408
41766 msgid ""
41767 "The appliance is a sparse file containing an ext2 filesystem which contains "
41768 "a familiar (although reduced in size) Linux operating system.  It would "
41769 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
41770 msgstr ""
41771
41772 #. type: textblock
41773 #: ../src/guestfs.pod:2412
41774 msgid ""
41775 "The regular disks being inspected by libguestfs are the first devices "
41776 "exposed by qemu (eg. as C</dev/vda>)."
41777 msgstr ""
41778
41779 #. type: textblock
41780 #: ../src/guestfs.pod:2415
41781 msgid ""
41782 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
41783 "there was only one regular disk)."
41784 msgstr ""
41785
41786 #. type: textblock
41787 #: ../src/guestfs.pod:2418
41788 msgid ""
41789 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
41790 "and switch root into the appliance, and run C</init> from the appliance."
41791 msgstr ""
41792
41793 #. type: textblock
41794 #: ../src/guestfs.pod:2422
41795 msgid "If this works successfully you will see messages such as:"
41796 msgstr ""
41797
41798 #. type: verbatim
41799 #: ../src/guestfs.pod:2424
41800 #, no-wrap
41801 msgid ""
41802 " febootstrap: picked /sys/block/vdb/dev as root device\n"
41803 " febootstrap: creating /dev/root as block special 252:16\n"
41804 " febootstrap: mounting new root on /root\n"
41805 " febootstrap: chroot\n"
41806 " Starting /init script ...\n"
41807 "\n"
41808 msgstr ""
41809
41810 #. type: textblock
41811 #: ../src/guestfs.pod:2430
41812 msgid ""
41813 "Note that C<Starting /init script ...> indicates that the appliance's init "
41814 "script is now running."
41815 msgstr ""
41816
41817 #. type: =item
41818 #: ../src/guestfs.pod:2433
41819 msgid "Initialize the appliance"
41820 msgstr ""
41821
41822 #. type: textblock
41823 #: ../src/guestfs.pod:2435
41824 msgid ""
41825 "The appliance itself now initializes itself.  This involves starting certain "
41826 "processes like C<udev>, possibly printing some debug information, and "
41827 "finally running the daemon (C<guestfsd>)."
41828 msgstr ""
41829
41830 #. type: =item
41831 #: ../src/guestfs.pod:2439
41832 msgid "The daemon"
41833 msgstr ""
41834
41835 #. type: textblock
41836 #: ../src/guestfs.pod:2441
41837 msgid ""
41838 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
41839 "should see:"
41840 msgstr ""
41841
41842 #. type: verbatim
41843 #: ../src/guestfs.pod:2444
41844 #, no-wrap
41845 msgid ""
41846 " verbose daemon enabled\n"
41847 "\n"
41848 msgstr ""
41849
41850 #. type: textblock
41851 #: ../src/guestfs.pod:2446
41852 msgid ""
41853 "The daemon expects to see a named virtio-serial port exposed by qemu and "
41854 "connected on the other end to the library."
41855 msgstr ""
41856
41857 #. type: textblock
41858 #: ../src/guestfs.pod:2449
41859 msgid ""
41860 "The daemon connects to this port (and hence to the library) and sends a four "
41861 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
41862 "protocol (see below)."
41863 msgstr ""
41864
41865 #. type: =head2
41866 #: ../src/guestfs.pod:2455
41867 msgid "COMMUNICATION PROTOCOL"
41868 msgstr ""
41869
41870 #. type: textblock
41871 #: ../src/guestfs.pod:2457
41872 msgid ""
41873 "Don't rely on using this protocol directly.  This section documents how it "
41874 "currently works, but it may change at any time."
41875 msgstr ""
41876
41877 #. type: textblock
41878 #: ../src/guestfs.pod:2460
41879 msgid ""
41880 "The protocol used to talk between the library and the daemon running inside "
41881 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
41882 "1014, RFC 1832, RFC 4506)."
41883 msgstr ""
41884
41885 #. type: textblock
41886 #: ../src/guestfs.pod:2464
41887 msgid ""
41888 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
41889 "this file is automatically generated)."
41890 msgstr ""
41891
41892 #. type: textblock
41893 #: ../src/guestfs.pod:2467
41894 msgid ""
41895 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
41896 "and C<FileOut> parameters, which are handled with very simple request/reply "
41897 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
41898 "parameters, which use the same request and reply messages, but they may also "
41899 "be followed by files sent using a chunked encoding."
41900 msgstr ""
41901
41902 #. type: =head3
41903 #: ../src/guestfs.pod:2474
41904 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
41905 msgstr ""
41906
41907 #. type: textblock
41908 #: ../src/guestfs.pod:2476
41909 msgid "For ordinary functions, the request message is:"
41910 msgstr ""
41911
41912 #. type: verbatim
41913 #: ../src/guestfs.pod:2478
41914 #, no-wrap
41915 msgid ""
41916 " total length (header + arguments,\n"
41917 "      but not including the length word itself)\n"
41918 " struct guestfs_message_header (encoded as XDR)\n"
41919 " struct guestfs_<foo>_args (encoded as XDR)\n"
41920 "\n"
41921 msgstr ""
41922
41923 #. type: textblock
41924 #: ../src/guestfs.pod:2483
41925 msgid ""
41926 "The total length field allows the daemon to allocate a fixed size buffer "
41927 "into which it slurps the rest of the message.  As a result, the total length "
41928 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
41929 "effective size of any request is limited to somewhere under this size."
41930 msgstr ""
41931
41932 #. type: textblock
41933 #: ../src/guestfs.pod:2489
41934 msgid ""
41935 "Note also that many functions don't take any arguments, in which case the "
41936 "C<guestfs_I<foo>_args> is completely omitted."
41937 msgstr ""
41938
41939 #. type: textblock
41940 #: ../src/guestfs.pod:2492
41941 msgid ""
41942 "The header contains the procedure number (C<guestfs_proc>) which is how the "
41943 "receiver knows what type of args structure to expect, or none at all."
41944 msgstr ""
41945
41946 #. type: textblock
41947 #: ../src/guestfs.pod:2496
41948 msgid ""
41949 "For functions that take optional arguments, the optional arguments are "
41950 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
41951 "arguments.  A bitmask in the header indicates which optional arguments are "
41952 "meaningful.  The bitmask is also checked to see if it contains bits set "
41953 "which the daemon does not know about (eg. if more optional arguments were "
41954 "added in a later version of the library), and this causes the call to be "
41955 "rejected."
41956 msgstr ""
41957
41958 #. type: textblock
41959 #: ../src/guestfs.pod:2504
41960 msgid "The reply message for ordinary functions is:"
41961 msgstr ""
41962
41963 #. type: verbatim
41964 #: ../src/guestfs.pod:2506
41965 #, no-wrap
41966 msgid ""
41967 " total length (header + ret,\n"
41968 "      but not including the length word itself)\n"
41969 " struct guestfs_message_header (encoded as XDR)\n"
41970 " struct guestfs_<foo>_ret (encoded as XDR)\n"
41971 "\n"
41972 msgstr ""
41973
41974 #. type: textblock
41975 #: ../src/guestfs.pod:2511
41976 msgid ""
41977 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
41978 "functions that return no formal return values."
41979 msgstr ""
41980
41981 #. type: textblock
41982 #: ../src/guestfs.pod:2514
41983 msgid ""
41984 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
41985 msgstr ""
41986
41987 #. type: textblock
41988 #: ../src/guestfs.pod:2517
41989 msgid ""
41990 "In the case of an error, a flag is set in the header, and the reply message "
41991 "is slightly changed:"
41992 msgstr ""
41993
41994 #. type: verbatim
41995 #: ../src/guestfs.pod:2520
41996 #, no-wrap
41997 msgid ""
41998 " total length (header + error,\n"
41999 "      but not including the length word itself)\n"
42000 " struct guestfs_message_header (encoded as XDR)\n"
42001 " struct guestfs_message_error (encoded as XDR)\n"
42002 "\n"
42003 msgstr ""
42004
42005 #. type: textblock
42006 #: ../src/guestfs.pod:2525
42007 msgid ""
42008 "The C<guestfs_message_error> structure contains the error message as a "
42009 "string."
42010 msgstr ""
42011
42012 #. type: =head3
42013 #: ../src/guestfs.pod:2528
42014 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
42015 msgstr ""
42016
42017 #. type: textblock
42018 #: ../src/guestfs.pod:2530
42019 msgid ""
42020 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
42021 "The normal request message is sent (see above).  However this is followed by "
42022 "a sequence of file chunks."
42023 msgstr ""
42024
42025 #. type: verbatim
42026 #: ../src/guestfs.pod:2534
42027 #, no-wrap
42028 msgid ""
42029 " total length (header + arguments,\n"
42030 "      but not including the length word itself,\n"
42031 "      and not including the chunks)\n"
42032 " struct guestfs_message_header (encoded as XDR)\n"
42033 " struct guestfs_<foo>_args (encoded as XDR)\n"
42034 " sequence of chunks for FileIn param #0\n"
42035 " sequence of chunks for FileIn param #1 etc.\n"
42036 "\n"
42037 msgstr ""
42038
42039 #. type: textblock
42040 #: ../src/guestfs.pod:2542
42041 msgid "The \"sequence of chunks\" is:"
42042 msgstr ""
42043
42044 #. type: verbatim
42045 #: ../src/guestfs.pod:2544
42046 #, no-wrap
42047 msgid ""
42048 " length of chunk (not including length word itself)\n"
42049 " struct guestfs_chunk (encoded as XDR)\n"
42050 " length of chunk\n"
42051 " struct guestfs_chunk (encoded as XDR)\n"
42052 "   ...\n"
42053 " length of chunk\n"
42054 " struct guestfs_chunk (with data.data_len == 0)\n"
42055 "\n"
42056 msgstr ""
42057
42058 #. type: textblock
42059 #: ../src/guestfs.pod:2552
42060 msgid ""
42061 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
42062 "is set in the final chunk to indicate either successful completion or early "
42063 "cancellation."
42064 msgstr ""
42065
42066 #. type: textblock
42067 #: ../src/guestfs.pod:2556
42068 msgid ""
42069 "At time of writing there are no functions that have more than one FileIn "
42070 "parameter.  However this is (theoretically) supported, by sending the "
42071 "sequence of chunks for each FileIn parameter one after another (from left to "
42072 "right)."
42073 msgstr ""
42074
42075 #. type: textblock
42076 #: ../src/guestfs.pod:2561
42077 msgid ""
42078 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
42079 "transfer.  The library does this by sending a chunk with a special flag set "
42080 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
42081 "RPC, does I<not> send any reply, and goes back to reading the next request."
42082 msgstr ""
42083
42084 #. type: textblock
42085 #: ../src/guestfs.pod:2567
42086 msgid ""
42087 "The daemon may also cancel.  It does this by writing a special word "
42088 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
42089 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
42090 "cancel chunk).  The special word is chosen so that even if cancellation "
42091 "happens right at the end of the transfer (after the library has finished "
42092 "writing and has started listening for the reply), the \"spurious\" cancel "
42093 "flag will not be confused with the reply message."
42094 msgstr ""
42095
42096 #. type: textblock
42097 #: ../src/guestfs.pod:2576
42098 msgid ""
42099 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
42100 "limit), and also files where the size is not known in advance (eg. from "
42101 "pipes or sockets).  However the chunks are rather small "
42102 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
42103 "to keep much in memory."
42104 msgstr ""
42105
42106 #. type: =head3
42107 #: ../src/guestfs.pod:2582
42108 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
42109 msgstr ""
42110
42111 #. type: textblock
42112 #: ../src/guestfs.pod:2584
42113 msgid ""
42114 "The protocol for FileOut parameters is exactly the same as for FileIn "
42115 "parameters, but with the roles of daemon and library reversed."
42116 msgstr ""
42117
42118 #. type: verbatim
42119 #: ../src/guestfs.pod:2587
42120 #, no-wrap
42121 msgid ""
42122 " total length (header + ret,\n"
42123 "      but not including the length word itself,\n"
42124 "      and not including the chunks)\n"
42125 " struct guestfs_message_header (encoded as XDR)\n"
42126 " struct guestfs_<foo>_ret (encoded as XDR)\n"
42127 " sequence of chunks for FileOut param #0\n"
42128 " sequence of chunks for FileOut param #1 etc.\n"
42129 "\n"
42130 msgstr ""
42131
42132 #. type: =head3
42133 #: ../src/guestfs.pod:2595
42134 msgid "INITIAL MESSAGE"
42135 msgstr ""
42136
42137 #. type: textblock
42138 #: ../src/guestfs.pod:2597
42139 msgid ""
42140 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
42141 "which indicates that the guest and daemon is alive.  This is what L</"
42142 "guestfs_launch> waits for."
42143 msgstr ""
42144
42145 #. type: =head3
42146 #: ../src/guestfs.pod:2601
42147 msgid "PROGRESS NOTIFICATION MESSAGES"
42148 msgstr ""
42149
42150 #. type: textblock
42151 #: ../src/guestfs.pod:2603
42152 msgid ""
42153 "The daemon may send progress notification messages at any time.  These are "
42154 "distinguished by the normal length word being replaced by "
42155 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
42156 msgstr ""
42157
42158 #. type: textblock
42159 #: ../src/guestfs.pod:2607
42160 msgid ""
42161 "The library turns them into progress callbacks (see L</"
42162 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
42163 "if not."
42164 msgstr ""
42165
42166 #. type: textblock
42167 #: ../src/guestfs.pod:2611
42168 msgid ""
42169 "The daemon self-limits the frequency of progress messages it sends (see "
42170 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
42171 "messages."
42172 msgstr ""
42173
42174 #. type: =head1
42175 #: ../src/guestfs.pod:2615
42176 msgid "LIBGUESTFS VERSION NUMBERS"
42177 msgstr ""
42178
42179 #. type: textblock
42180 #: ../src/guestfs.pod:2617
42181 msgid ""
42182 "Since April 2010, libguestfs has started to make separate development and "
42183 "stable releases, along with corresponding branches in our git repository.  "
42184 "These separate releases can be identified by version number:"
42185 msgstr ""
42186
42187 #. type: verbatim
42188 #: ../src/guestfs.pod:2622
42189 #, no-wrap
42190 msgid ""
42191 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
42192 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
42193 "       |\n"
42194 "       v\n"
42195 " 1  .  3  .  5\n"
42196 " ^           ^\n"
42197 " |           |\n"
42198 " |           `-------- sub-version\n"
42199 " |\n"
42200 " `------ always '1' because we don't change the ABI\n"
42201 "\n"
42202 msgstr ""
42203
42204 #. type: textblock
42205 #: ../src/guestfs.pod:2633
42206 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
42207 msgstr ""
42208
42209 #. type: textblock
42210 #: ../src/guestfs.pod:2635
42211 msgid ""
42212 "As time passes we cherry pick fixes from the development branch and backport "
42213 "those into the stable branch, the effect being that the stable branch should "
42214 "get more stable and less buggy over time.  So the stable releases are ideal "
42215 "for people who don't need new features but would just like the software to "
42216 "work."
42217 msgstr ""
42218
42219 #. type: textblock
42220 #: ../src/guestfs.pod:2641
42221 msgid "Our criteria for backporting changes are:"
42222 msgstr ""
42223
42224 #. type: textblock
42225 #: ../src/guestfs.pod:2647
42226 msgid ""
42227 "Documentation changes which don't affect any code are backported unless the "
42228 "documentation refers to a future feature which is not in stable."
42229 msgstr ""
42230
42231 #. type: textblock
42232 #: ../src/guestfs.pod:2653
42233 msgid ""
42234 "Bug fixes which are not controversial, fix obvious problems, and have been "
42235 "well tested are backported."
42236 msgstr ""
42237
42238 #. type: textblock
42239 #: ../src/guestfs.pod:2658
42240 msgid ""
42241 "Simple rearrangements of code which shouldn't affect how it works get "
42242 "backported.  This is so that the code in the two branches doesn't get too "
42243 "far out of step, allowing us to backport future fixes more easily."
42244 msgstr ""
42245
42246 #. type: textblock
42247 #: ../src/guestfs.pod:2664
42248 msgid ""
42249 "We I<don't> backport new features, new APIs, new tools etc, except in one "
42250 "exceptional case: the new feature is required in order to implement an "
42251 "important bug fix."
42252 msgstr ""
42253
42254 #. type: textblock
42255 #: ../src/guestfs.pod:2670
42256 msgid ""
42257 "A new stable branch starts when we think the new features in development are "
42258 "substantial and compelling enough over the current stable branch to warrant "
42259 "it.  When that happens we create new stable and development versions 1.N.0 "
42260 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
42261 "stable at this point, but by backporting fixes from development, that branch "
42262 "will stabilize over time."
42263 msgstr ""
42264
42265 #. type: =head1
42266 #: ../src/guestfs.pod:2678
42267 msgid "EXTENDING LIBGUESTFS"
42268 msgstr ""
42269
42270 #. type: =head2
42271 #: ../src/guestfs.pod:2680
42272 msgid "ADDING A NEW API ACTION"
42273 msgstr ""
42274
42275 #. type: textblock
42276 #: ../src/guestfs.pod:2682
42277 msgid ""
42278 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
42279 "documentation) are generated, and this makes it easy to extend the "
42280 "libguestfs API."
42281 msgstr ""
42282
42283 #. type: textblock
42284 #: ../src/guestfs.pod:2686
42285 msgid "To add a new API action there are two changes:"
42286 msgstr ""
42287
42288 #. type: textblock
42289 #: ../src/guestfs.pod:2692
42290 msgid ""
42291 "You need to add a description of the call (name, parameters, return type, "
42292 "tests, documentation) to C<generator/generator_actions.ml>."
42293 msgstr ""
42294
42295 #. type: textblock
42296 #: ../src/guestfs.pod:2695
42297 msgid ""
42298 "There are two sorts of API action, depending on whether the call goes "
42299 "through to the daemon in the appliance, or is serviced entirely by the "
42300 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
42301 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
42302 "an example of the latter, since a trace flag is maintained in the handle and "
42303 "all tracing is done on the library side."
42304 msgstr ""
42305
42306 #. type: textblock
42307 #: ../src/guestfs.pod:2703
42308 msgid ""
42309 "Most new actions are of the first type, and get added to the "
42310 "C<daemon_functions> list.  Each function has a unique procedure number used "
42311 "in the RPC protocol which is assigned to that action when we publish "
42312 "libguestfs and cannot be reused.  Take the latest procedure number and "
42313 "increment it."
42314 msgstr ""
42315
42316 #. type: textblock
42317 #: ../src/guestfs.pod:2709
42318 msgid ""
42319 "For library-only actions of the second type, add to the "
42320 "C<non_daemon_functions> list.  Since these functions are serviced by the "
42321 "library and do not travel over the RPC mechanism to the daemon, these "
42322 "functions do not need a procedure number, and so the procedure number is set "
42323 "to C<-1>."
42324 msgstr ""
42325
42326 #. type: textblock
42327 #: ../src/guestfs.pod:2717
42328 msgid "Implement the action (in C):"
42329 msgstr ""
42330
42331 #. type: textblock
42332 #: ../src/guestfs.pod:2719
42333 msgid ""
42334 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
42335 "C<daemon/> directory."
42336 msgstr ""
42337
42338 #. type: textblock
42339 #: ../src/guestfs.pod:2722
42340 msgid ""
42341 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
42342 "(note: double underscore) in the C<src/> directory."
42343 msgstr ""
42344
42345 #. type: textblock
42346 #: ../src/guestfs.pod:2725
42347 msgid "In either case, use another function as an example of what to do."
42348 msgstr ""
42349
42350 #. type: textblock
42351 #: ../src/guestfs.pod:2729
42352 msgid "After making these changes, use C<make> to compile."
42353 msgstr ""
42354
42355 #. type: textblock
42356 #: ../src/guestfs.pod:2731
42357 msgid ""
42358 "Note that you don't need to implement the RPC, language bindings, manual "
42359 "pages or anything else.  It's all automatically generated from the OCaml "
42360 "description."
42361 msgstr ""
42362
42363 #. type: =head2
42364 #: ../src/guestfs.pod:2735
42365 msgid "ADDING TESTS FOR AN API ACTION"
42366 msgstr ""
42367
42368 #. type: textblock
42369 #: ../src/guestfs.pod:2737
42370 msgid ""
42371 "You can supply zero or as many tests as you want per API call.  The tests "
42372 "can either be added as part of the API description (C<generator/"
42373 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
42374 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
42375 "slower, so if possible use the first method."
42376 msgstr ""
42377
42378 #. type: textblock
42379 #: ../src/guestfs.pod:2743
42380 msgid ""
42381 "The following describes the test environment used when you add an API test "
42382 "in C<generator_actions.ml>."
42383 msgstr ""
42384
42385 #. type: textblock
42386 #: ../src/guestfs.pod:2746
42387 msgid "The test environment has 4 block devices:"
42388 msgstr ""
42389
42390 #. type: =item
42391 #: ../src/guestfs.pod:2750
42392 msgid "C</dev/sda> 500MB"
42393 msgstr "C</dev/sda> 500 МБ"
42394
42395 #. type: textblock
42396 #: ../src/guestfs.pod:2752
42397 msgid "General block device for testing."
42398 msgstr ""
42399
42400 #. type: =item
42401 #: ../src/guestfs.pod:2754
42402 msgid "C</dev/sdb> 50MB"
42403 msgstr "C</dev/sdb> 50 МБ"
42404
42405 #. type: textblock
42406 #: ../src/guestfs.pod:2756
42407 msgid ""
42408 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
42409 "operations."
42410 msgstr ""
42411
42412 #. type: =item
42413 #: ../src/guestfs.pod:2759
42414 msgid "C</dev/sdc> 10MB"
42415 msgstr "C</dev/sdc> 10 МБ"
42416
42417 #. type: textblock
42418 #: ../src/guestfs.pod:2761
42419 msgid "Used in a few tests where two block devices are needed."
42420 msgstr ""
42421
42422 #. type: =item
42423 #: ../src/guestfs.pod:2763
42424 msgid "C</dev/sdd>"
42425 msgstr "C</dev/sdd>"
42426
42427 #. type: textblock
42428 #: ../src/guestfs.pod:2765
42429 msgid "ISO with fixed content (see C<images/test.iso>)."
42430 msgstr ""
42431
42432 #. type: textblock
42433 #: ../src/guestfs.pod:2769
42434 msgid ""
42435 "To be able to run the tests in a reasonable amount of time, the libguestfs "
42436 "appliance and block devices are reused between tests.  So don't try testing "
42437 "L</guestfs_kill_subprocess> :-x"
42438 msgstr ""
42439
42440 #. type: textblock
42441 #: ../src/guestfs.pod:2773
42442 msgid ""
42443 "Each test starts with an initial scenario, selected using one of the "
42444 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
42445 "initialize the disks mentioned above in a particular way as documented in "
42446 "C<generator_types.ml>.  You should not assume anything about the previous "
42447 "contents of other disks that are not initialized."
42448 msgstr ""
42449
42450 #. type: textblock
42451 #: ../src/guestfs.pod:2779
42452 msgid ""
42453 "You can add a prerequisite clause to any individual test.  This is a run-"
42454 "time check, which, if it fails, causes the test to be skipped.  Useful if "
42455 "testing a command which might not work on all variations of libguestfs "
42456 "builds.  A test that has prerequisite of C<Always> means to run "
42457 "unconditionally."
42458 msgstr ""
42459
42460 #. type: textblock
42461 #: ../src/guestfs.pod:2785
42462 msgid ""
42463 "In addition, packagers can skip individual tests by setting environment "
42464 "variables before running C<make check>."
42465 msgstr ""
42466
42467 #. type: verbatim
42468 #: ../src/guestfs.pod:2788
42469 #, no-wrap
42470 msgid ""
42471 " SKIP_TEST_<CMD>_<NUM>=1\n"
42472 "\n"
42473 msgstr ""
42474
42475 #. type: textblock
42476 #: ../src/guestfs.pod:2790
42477 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
42478 msgstr ""
42479
42480 #. type: verbatim
42481 #: ../src/guestfs.pod:2794
42482 #, no-wrap
42483 msgid ""
42484 " SKIP_TEST_<CMD>=1\n"
42485 "\n"
42486 msgstr ""
42487
42488 #. type: textblock
42489 #: ../src/guestfs.pod:2796
42490 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
42491 msgstr ""
42492
42493 #. type: textblock
42494 #: ../src/guestfs.pod:2798
42495 msgid "Packagers can run only certain tests by setting for example:"
42496 msgstr ""
42497
42498 #. type: verbatim
42499 #: ../src/guestfs.pod:2800
42500 #, no-wrap
42501 msgid ""
42502 " TEST_ONLY=\"vfs_type zerofree\"\n"
42503 "\n"
42504 msgstr ""
42505
42506 #. type: textblock
42507 #: ../src/guestfs.pod:2802
42508 msgid ""
42509 "See C<capitests/tests.c> for more details of how these environment variables "
42510 "work."
42511 msgstr ""
42512
42513 #. type: =head2
42514 #: ../src/guestfs.pod:2805
42515 msgid "DEBUGGING NEW API ACTIONS"
42516 msgstr ""
42517
42518 #. type: textblock
42519 #: ../src/guestfs.pod:2807
42520 msgid "Test new actions work before submitting them."
42521 msgstr ""
42522
42523 #. type: textblock
42524 #: ../src/guestfs.pod:2809
42525 msgid "You can use guestfish to try out new commands."
42526 msgstr ""
42527
42528 #. type: textblock
42529 #: ../src/guestfs.pod:2811
42530 msgid ""
42531 "Debugging the daemon is a problem because it runs inside a minimal "
42532 "environment.  However you can fprintf messages in the daemon to stderr, and "
42533 "they will show up if you use C<guestfish -v>."
42534 msgstr ""
42535
42536 #. type: =head2
42537 #: ../src/guestfs.pod:2815
42538 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
42539 msgstr ""
42540
42541 #. type: textblock
42542 #: ../src/guestfs.pod:2817
42543 msgid ""
42544 "Our C source code generally adheres to some basic code-formatting "
42545 "conventions.  The existing code base is not totally consistent on this "
42546 "front, but we do prefer that contributed code be formatted similarly.  In "
42547 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
42548 "indentation level, and other than that, follow the K&R style."
42549 msgstr ""
42550
42551 #. type: textblock
42552 #: ../src/guestfs.pod:2823
42553 msgid ""
42554 "If you use Emacs, add the following to one of one of your start-up files (e."
42555 "g., ~/.emacs), to help ensure that you get indentation right:"
42556 msgstr ""
42557
42558 #. type: verbatim
42559 #: ../src/guestfs.pod:2826
42560 #, no-wrap
42561 msgid ""
42562 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
42563 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
42564 " (add-hook 'find-file-hook\n"
42565 "     '(lambda () (if (and buffer-file-name\n"
42566 "                          (string-match \"/libguestfs\\\\>\"\n"
42567 "                              (buffer-file-name))\n"
42568 "                          (not (string-equal mode-name \"Change Log\"))\n"
42569 "                          (not (string-equal mode-name \"Makefile\")))\n"
42570 "                     (setq indent-tabs-mode nil))))\n"
42571 " \n"
42572 msgstr ""
42573
42574 #. type: verbatim
42575 #: ../src/guestfs.pod:2836
42576 #, no-wrap
42577 msgid ""
42578 " ;;; When editing C sources in libguestfs, use this style.\n"
42579 " (defun libguestfs-c-mode ()\n"
42580 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
42581 "   (interactive)\n"
42582 "   (c-set-style \"K&R\")\n"
42583 "   (setq c-indent-level 2)\n"
42584 "   (setq c-basic-offset 2))\n"
42585 " (add-hook 'c-mode-hook\n"
42586 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
42587 "                               (buffer-file-name))\n"
42588 "                           (libguestfs-c-mode))))\n"
42589 "\n"
42590 msgstr ""
42591
42592 #. type: textblock
42593 #: ../src/guestfs.pod:2848
42594 msgid "Enable warnings when compiling (and fix any problems this finds):"
42595 msgstr ""
42596
42597 #. type: verbatim
42598 #: ../src/guestfs.pod:2851
42599 #, no-wrap
42600 msgid ""
42601 " ./configure --enable-gcc-warnings\n"
42602 "\n"
42603 msgstr ""
42604 " ./configure --enable-gcc-warnings\n"
42605 "\n"
42606
42607 #. type: textblock
42608 #: ../src/guestfs.pod:2853
42609 msgid "Useful targets are:"
42610 msgstr ""
42611
42612 #. type: verbatim
42613 #: ../src/guestfs.pod:2855
42614 #, no-wrap
42615 msgid ""
42616 " make syntax-check  # checks the syntax of the C code\n"
42617 " make check         # runs the test suite\n"
42618 "\n"
42619 msgstr ""
42620
42621 #. type: =head2
42622 #: ../src/guestfs.pod:2858
42623 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
42624 msgstr ""
42625
42626 #. type: textblock
42627 #: ../src/guestfs.pod:2860
42628 msgid ""
42629 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
42630 "which are used to do shell quoting."
42631 msgstr ""
42632
42633 #. type: =item
42634 #: ../src/guestfs.pod:2865
42635 msgid "%Q"
42636 msgstr "%Q"
42637
42638 #. type: textblock
42639 #: ../src/guestfs.pod:2867
42640 msgid ""
42641 "Simple shell quoted string.  Any spaces or other shell characters are "
42642 "escaped for you."
42643 msgstr ""
42644
42645 #. type: =item
42646 #: ../src/guestfs.pod:2870
42647 msgid "%R"
42648 msgstr "%R"
42649
42650 #. type: textblock
42651 #: ../src/guestfs.pod:2872
42652 msgid ""
42653 "Same as C<%Q> except the string is treated as a path which is prefixed by "
42654 "the sysroot."
42655 msgstr ""
42656
42657 #. type: verbatim
42658 #: ../src/guestfs.pod:2879
42659 #, no-wrap
42660 msgid ""
42661 " asprintf (&cmd, \"cat %R\", path);\n"
42662 "\n"
42663 msgstr ""
42664 " asprintf (&cmd, \"cat %R\", path);\n"
42665 "\n"
42666
42667 #. type: textblock
42668 #: ../src/guestfs.pod:2881
42669 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
42670 msgstr ""
42671
42672 #. type: textblock
42673 #: ../src/guestfs.pod:2883
42674 msgid ""
42675 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
42676 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
42677 "they are not passed via the shell (instead, straight to exec).  You probably "
42678 "want to use the C<sysroot_path()> function however."
42679 msgstr ""
42680
42681 #. type: =head2
42682 #: ../src/guestfs.pod:2889
42683 msgid "SUBMITTING YOUR NEW API ACTIONS"
42684 msgstr ""
42685
42686 #. type: textblock
42687 #: ../src/guestfs.pod:2891
42688 msgid ""
42689 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
42690 "libguestfs> and CC to L<rjones@redhat.com>."
42691 msgstr ""
42692
42693 #. type: =head2
42694 #: ../src/guestfs.pod:2895
42695 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
42696 msgstr ""
42697
42698 #. type: textblock
42699 #: ../src/guestfs.pod:2897
42700 msgid "We support i18n (gettext anyhow) in the library."
42701 msgstr ""
42702
42703 #. type: textblock
42704 #: ../src/guestfs.pod:2899
42705 msgid ""
42706 "However many messages come from the daemon, and we don't translate those at "
42707 "the moment.  One reason is that the appliance generally has all locale files "
42708 "removed from it, because they take up a lot of space.  So we'd have to readd "
42709 "some of those, as well as copying our PO files into the appliance."
42710 msgstr ""
42711
42712 #. type: textblock
42713 #: ../src/guestfs.pod:2905
42714 msgid ""
42715 "Debugging messages are never translated, since they are intended for the "
42716 "programmers."
42717 msgstr ""
42718
42719 #. type: =head2
42720 #: ../src/guestfs.pod:2908
42721 msgid "SOURCE CODE SUBDIRECTORIES"
42722 msgstr ""
42723
42724 #. type: =item
42725 #: ../src/guestfs.pod:2912
42726 msgid "C<align>"
42727 msgstr ""
42728
42729 #. type: textblock
42730 #: ../src/guestfs.pod:2914
42731 msgid "L<virt-alignment-scan(1)> command and documentation."
42732 msgstr ""
42733
42734 #. type: textblock
42735 #: ../src/guestfs.pod:2918
42736 msgid "The libguestfs appliance, build scripts and so on."
42737 msgstr ""
42738
42739 #. type: =item
42740 #: ../src/guestfs.pod:2920
42741 msgid "C<capitests>"
42742 msgstr "C<capitests>"
42743
42744 #. type: textblock
42745 #: ../src/guestfs.pod:2922
42746 msgid "Automated tests of the C API."
42747 msgstr ""
42748
42749 #. type: =item
42750 #: ../src/guestfs.pod:2924
42751 msgid "C<cat>"
42752 msgstr "C<cat>"
42753
42754 #. type: textblock
42755 #: ../src/guestfs.pod:2926
42756 msgid ""
42757 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
42758 "documentation."
42759 msgstr ""
42760
42761 #. type: =item
42762 #: ../src/guestfs.pod:2929
42763 msgid "C<caution>"
42764 msgstr "C<caution>"
42765
42766 #. type: textblock
42767 #: ../src/guestfs.pod:2931
42768 msgid ""
42769 "Safety and liveness tests of components that libguestfs depends upon (not of "
42770 "libguestfs itself).  Mainly this is for qemu and the kernel."
42771 msgstr ""
42772
42773 #. type: =item
42774 #: ../src/guestfs.pod:2934
42775 msgid "C<clone>"
42776 msgstr ""
42777
42778 #. type: textblock
42779 #: ../src/guestfs.pod:2936
42780 msgid ""
42781 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
42782 "command and documentation."
42783 msgstr ""
42784
42785 #. type: =item
42786 #: ../src/guestfs.pod:2939
42787 msgid "C<contrib>"
42788 msgstr "C<contrib>"
42789
42790 #. type: textblock
42791 #: ../src/guestfs.pod:2941
42792 msgid "Outside contributions, experimental parts."
42793 msgstr ""
42794
42795 #. type: =item
42796 #: ../src/guestfs.pod:2943
42797 msgid "C<daemon>"
42798 msgstr "C<daemon>"
42799
42800 #. type: textblock
42801 #: ../src/guestfs.pod:2945
42802 msgid ""
42803 "The daemon that runs inside the libguestfs appliance and carries out actions."
42804 msgstr ""
42805
42806 #. type: =item
42807 #: ../src/guestfs.pod:2948
42808 msgid "C<df>"
42809 msgstr "C<df>"
42810
42811 #. type: textblock
42812 #: ../src/guestfs.pod:2950
42813 msgid "L<virt-df(1)> command and documentation."
42814 msgstr ""
42815
42816 #. type: =item
42817 #: ../src/guestfs.pod:2952
42818 msgid "C<edit>"
42819 msgstr "C<edit>"
42820
42821 #. type: textblock
42822 #: ../src/guestfs.pod:2954
42823 msgid "L<virt-edit(1)> command and documentation."
42824 msgstr ""
42825
42826 #. type: =item
42827 #: ../src/guestfs.pod:2956
42828 msgid "C<examples>"
42829 msgstr "C<examples>"
42830
42831 #. type: textblock
42832 #: ../src/guestfs.pod:2958
42833 msgid "C API example code."
42834 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
42835
42836 #. type: =item
42837 #: ../src/guestfs.pod:2960
42838 #, fuzzy
42839 #| msgid "C<capitests>"
42840 msgid "C<extratests>"
42841 msgstr "C<capitests>"
42842
42843 #. type: textblock
42844 #: ../src/guestfs.pod:2962
42845 msgid ""
42846 "Extra tests.  These are not run by default because they require special "
42847 "tools or configuration."
42848 msgstr ""
42849
42850 #. type: =item
42851 #: ../src/guestfs.pod:2965
42852 msgid "C<fish>"
42853 msgstr "C<fish>"
42854
42855 #. type: textblock
42856 #: ../src/guestfs.pod:2967
42857 msgid ""
42858 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
42859 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
42860 "L<virt-tar-out(1)>."
42861 msgstr ""
42862
42863 #. type: =item
42864 #: ../src/guestfs.pod:2971
42865 msgid "C<fuse>"
42866 msgstr "C<fuse>"
42867
42868 #. type: textblock
42869 #: ../src/guestfs.pod:2973
42870 msgid ""
42871 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
42872 msgstr ""
42873
42874 #. type: =item
42875 #: ../src/guestfs.pod:2975
42876 msgid "C<generator>"
42877 msgstr "C<generator>"
42878
42879 #. type: textblock
42880 #: ../src/guestfs.pod:2977
42881 msgid ""
42882 "The crucially important generator, used to automatically generate large "
42883 "amounts of boilerplate C code for things like RPC and bindings."
42884 msgstr ""
42885
42886 #. type: =item
42887 #: ../src/guestfs.pod:2980
42888 msgid "C<images>"
42889 msgstr "C<images>"
42890
42891 #. type: textblock
42892 #: ../src/guestfs.pod:2982
42893 msgid "Files used by the test suite."
42894 msgstr ""
42895
42896 #. type: textblock
42897 #: ../src/guestfs.pod:2984
42898 msgid "Some \"phony\" guest images which we test against."
42899 msgstr ""
42900
42901 #. type: =item
42902 #: ../src/guestfs.pod:2986
42903 msgid "C<inspector>"
42904 msgstr "C<inspector>"
42905
42906 #. type: textblock
42907 #: ../src/guestfs.pod:2988
42908 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
42909 msgstr ""
42910
42911 #. type: =item
42912 #: ../src/guestfs.pod:2990
42913 msgid "C<logo>"
42914 msgstr "C<logo>"
42915
42916 #. type: textblock
42917 #: ../src/guestfs.pod:2992
42918 msgid "Logo used on the website.  The fish is called Arthur by the way."
42919 msgstr ""
42920
42921 #. type: =item
42922 #: ../src/guestfs.pod:2994
42923 msgid "C<m4>"
42924 msgstr "C<m4>"
42925
42926 #. type: textblock
42927 #: ../src/guestfs.pod:2996
42928 msgid "M4 macros used by autoconf."
42929 msgstr ""
42930
42931 #. type: =item
42932 #: ../src/guestfs.pod:2998
42933 msgid "C<po>"
42934 msgstr "C<po>"
42935
42936 #. type: textblock
42937 #: ../src/guestfs.pod:3000
42938 msgid "Translations of simple gettext strings."
42939 msgstr "Переклади простих рядків gettext."
42940
42941 #. type: =item
42942 #: ../src/guestfs.pod:3002
42943 msgid "C<po-docs>"
42944 msgstr "C<po-docs>"
42945
42946 #. type: textblock
42947 #: ../src/guestfs.pod:3004
42948 msgid ""
42949 "The build infrastructure and PO files for translations of manpages and POD "
42950 "files.  Eventually this will be combined with the C<po> directory, but that "
42951 "is rather complicated."
42952 msgstr ""
42953
42954 #. type: =item
42955 #: ../src/guestfs.pod:3008
42956 msgid "C<regressions>"
42957 msgstr "C<regressions>"
42958
42959 #. type: textblock
42960 #: ../src/guestfs.pod:3010
42961 msgid "Regression tests."
42962 msgstr "Тести на регресії."
42963
42964 #. type: =item
42965 #: ../src/guestfs.pod:3012
42966 msgid "C<rescue>"
42967 msgstr "C<rescue>"
42968
42969 #. type: textblock
42970 #: ../src/guestfs.pod:3014
42971 msgid "L<virt-rescue(1)> command and documentation."
42972 msgstr ""
42973
42974 #. type: =item
42975 #: ../src/guestfs.pod:3016
42976 msgid "C<resize>"
42977 msgstr ""
42978
42979 #. type: textblock
42980 #: ../src/guestfs.pod:3018
42981 msgid "L<virt-resize(1)> command and documentation."
42982 msgstr ""
42983
42984 #. type: =item
42985 #: ../src/guestfs.pod:3020
42986 msgid "C<sparsify>"
42987 msgstr ""
42988
42989 #. type: textblock
42990 #: ../src/guestfs.pod:3022
42991 msgid "L<virt-sparsify(1)> command and documentation."
42992 msgstr ""
42993
42994 #. type: =item
42995 #: ../src/guestfs.pod:3024
42996 msgid "C<src>"
42997 msgstr "C<src>"
42998
42999 #. type: textblock
43000 #: ../src/guestfs.pod:3026
43001 msgid "Source code to the C library."
43002 msgstr ""
43003
43004 #. type: =item
43005 #: ../src/guestfs.pod:3028
43006 msgid "C<tools>"
43007 msgstr "C<tools>"
43008
43009 #. type: textblock
43010 #: ../src/guestfs.pod:3030
43011 msgid ""
43012 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
43013 msgstr ""
43014
43015 #. type: =item
43016 #: ../src/guestfs.pod:3032
43017 msgid "C<test-tool>"
43018 msgstr "C<test-tool>"
43019
43020 #. type: textblock
43021 #: ../src/guestfs.pod:3034
43022 msgid ""
43023 "Test tool for end users to test if their qemu/kernel combination will work "
43024 "with libguestfs."
43025 msgstr ""
43026
43027 #. type: =item
43028 #: ../src/guestfs.pod:3037
43029 msgid "C<csharp>"
43030 msgstr "C<csharp>"
43031
43032 #. type: =item
43033 #: ../src/guestfs.pod:3039
43034 msgid "C<erlang>"
43035 msgstr ""
43036
43037 #. type: =item
43038 #: ../src/guestfs.pod:3041
43039 msgid "C<haskell>"
43040 msgstr "C<haskell>"
43041
43042 #. type: =item
43043 #: ../src/guestfs.pod:3043
43044 msgid "C<java>"
43045 msgstr "C<java>"
43046
43047 #. type: =item
43048 #: ../src/guestfs.pod:3045
43049 msgid "C<ocaml>"
43050 msgstr "C<ocaml>"
43051
43052 #. type: =item
43053 #: ../src/guestfs.pod:3047
43054 msgid "C<php>"
43055 msgstr "C<php>"
43056
43057 #. type: =item
43058 #: ../src/guestfs.pod:3049
43059 msgid "C<perl>"
43060 msgstr "C<perl>"
43061
43062 #. type: =item
43063 #: ../src/guestfs.pod:3051
43064 msgid "C<python>"
43065 msgstr "C<python>"
43066
43067 #. type: =item
43068 #: ../src/guestfs.pod:3053
43069 msgid "C<ruby>"
43070 msgstr "C<ruby>"
43071
43072 #. type: textblock
43073 #: ../src/guestfs.pod:3055
43074 msgid "Language bindings."
43075 msgstr "Прив’язки до мов програмування."
43076
43077 #. type: =head2
43078 #: ../src/guestfs.pod:3059
43079 msgid "MAKING A STABLE RELEASE"
43080 msgstr ""
43081
43082 #. type: textblock
43083 #: ../src/guestfs.pod:3061
43084 msgid ""
43085 "When we make a stable release, there are several steps documented here.  See "
43086 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
43087 "branch policy."
43088 msgstr ""
43089
43090 #. type: textblock
43091 #: ../src/guestfs.pod:3069
43092 msgid ""
43093 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
43094 msgstr ""
43095
43096 #. type: textblock
43097 #: ../src/guestfs.pod:3074
43098 msgid "Finalize RELEASE-NOTES."
43099 msgstr ""
43100
43101 #. type: textblock
43102 #: ../src/guestfs.pod:3078
43103 msgid "Update ROADMAP."
43104 msgstr ""
43105
43106 #. type: textblock
43107 #: ../src/guestfs.pod:3082
43108 msgid "Run C<src/api-support/update-from-tarballs.sh>."
43109 msgstr ""
43110
43111 #. type: textblock
43112 #: ../src/guestfs.pod:3086
43113 msgid "Push and pull from Transifex."
43114 msgstr ""
43115
43116 #. type: verbatim
43117 #: ../src/guestfs.pod:3090
43118 #, no-wrap
43119 msgid ""
43120 " tx push -s\n"
43121 "\n"
43122 msgstr ""
43123
43124 #. type: textblock
43125 #: ../src/guestfs.pod:3092
43126 msgid "to push the latest POT files to Transifex.  Then run:"
43127 msgstr ""
43128
43129 #. type: verbatim
43130 #: ../src/guestfs.pod:3094
43131 #, no-wrap
43132 msgid ""
43133 " ./tx-pull.sh\n"
43134 "\n"
43135 msgstr ""
43136
43137 #. type: textblock
43138 #: ../src/guestfs.pod:3096
43139 msgid "which is a wrapper to pull the latest translated C<*.po> files."
43140 msgstr ""
43141
43142 #. type: textblock
43143 #: ../src/guestfs.pod:3100
43144 msgid ""
43145 "Create new stable and development directories under L<http://libguestfs.org/"
43146 "download>."
43147 msgstr ""
43148
43149 #. type: textblock
43150 #: ../src/guestfs.pod:3105
43151 msgid "Create the branch in git:"
43152 msgstr ""
43153
43154 #. type: verbatim
43155 #: ../src/guestfs.pod:3107
43156 #, no-wrap
43157 msgid ""
43158 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
43159 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
43160 " git branch stable-1.XX\n"
43161 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
43162 "\n"
43163 msgstr ""
43164
43165 #. type: =head1
43166 #: ../src/guestfs.pod:3114
43167 msgid "LIMITS"
43168 msgstr "ОБМЕЖЕННЯ"
43169
43170 #. type: =head2
43171 #: ../src/guestfs.pod:3116
43172 msgid "PROTOCOL LIMITS"
43173 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
43174
43175 #. type: textblock
43176 #: ../src/guestfs.pod:3118
43177 msgid ""
43178 "Internally libguestfs uses a message-based protocol to pass API calls and "
43179 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
43180 "plenty more detail about this).  The maximum message size used by the "
43181 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
43182 "aware of this limit.  The API calls which may be affected are individually "
43183 "documented, with a link back to this section of the documentation."
43184 msgstr ""
43185
43186 #. type: textblock
43187 #: ../src/guestfs.pod:3126
43188 msgid ""
43189 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
43190 "a simple string.  Because this string is at some point internally encoded as "
43191 "a message, the maximum size that it can return is slightly under 4 MB.  If "
43192 "the requested file is larger than this then you will get an error."
43193 msgstr ""
43194
43195 #. type: textblock
43196 #: ../src/guestfs.pod:3132
43197 msgid ""
43198 "In order to transfer large files into and out of the guest filesystem, you "
43199 "need to use particular calls that support this.  The sections L</UPLOADING> "
43200 "and L</DOWNLOADING> document how to do this."
43201 msgstr ""
43202
43203 #. type: textblock
43204 #: ../src/guestfs.pod:3136
43205 msgid ""
43206 "You might also consider mounting the disk image using our FUSE filesystem "
43207 "support (L<guestmount(1)>)."
43208 msgstr ""
43209
43210 #. type: =head2
43211 #: ../src/guestfs.pod:3139
43212 msgid "MAXIMUM NUMBER OF DISKS"
43213 msgstr ""
43214
43215 #. type: textblock
43216 #: ../src/guestfs.pod:3141
43217 msgid "When using virtio disks (the default) the current limit is B<25> disks."
43218 msgstr ""
43219
43220 #. type: textblock
43221 #: ../src/guestfs.pod:3144
43222 msgid ""
43223 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
43224 "slots.  However febootstrap only understands disks with names C</dev/vda> "
43225 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
43226 "purposes."
43227 msgstr ""
43228
43229 #. type: textblock
43230 #: ../src/guestfs.pod:3149
43231 msgid ""
43232 "We are working to substantially raise this limit in future versions but it "
43233 "requires complex changes to qemu."
43234 msgstr ""
43235
43236 #. type: textblock
43237 #: ../src/guestfs.pod:3152
43238 msgid ""
43239 "In future versions of libguestfs it should also be possible to \"hot plug\" "
43240 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
43241 "requires changes to qemu."
43242 msgstr ""
43243
43244 #. type: =head2
43245 #: ../src/guestfs.pod:3156
43246 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
43247 msgstr ""
43248
43249 #. type: textblock
43250 #: ../src/guestfs.pod:3158
43251 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
43252 msgstr ""
43253
43254 #. type: textblock
43255 #: ../src/guestfs.pod:3160
43256 msgid ""
43257 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
43258 "vda>, and C</dev/vda1> through C</dev/vda15>)."
43259 msgstr ""
43260
43261 #. type: textblock
43262 #: ../src/guestfs.pod:3163
43263 msgid ""
43264 "If you attach a disk with more than 15 partitions, the extra partitions are "
43265 "ignored by libguestfs."
43266 msgstr ""
43267
43268 #. type: =head2
43269 #: ../src/guestfs.pod:3166
43270 msgid "MAXIMUM SIZE OF A DISK"
43271 msgstr ""
43272
43273 #. type: textblock
43274 #: ../src/guestfs.pod:3168
43275 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
43276 msgstr ""
43277
43278 #. type: textblock
43279 #: ../src/guestfs.pod:3170
43280 msgid ""
43281 "We have tested block devices up to 1 exabyte (2**60 or "
43282 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
43283 "filesystem."
43284 msgstr ""
43285
43286 #. type: textblock
43287 #: ../src/guestfs.pod:3174
43288 msgid ""
43289 "Although libguestfs probably does not impose any limit, the underlying host "
43290 "storage will.  If you store disk images on a host ext4 filesystem, then the "
43291 "maximum size will be limited by the maximum ext4 file size (currently 16 "
43292 "TB).  If you store disk images as host logical volumes then you are limited "
43293 "by the maximum size of an LV."
43294 msgstr ""
43295
43296 #. type: textblock
43297 #: ../src/guestfs.pod:3180
43298 msgid ""
43299 "For the hugest disk image files, we recommend using XFS on the host for "
43300 "storage."
43301 msgstr ""
43302
43303 #. type: =head2
43304 #: ../src/guestfs.pod:3183
43305 msgid "MAXIMUM SIZE OF A PARTITION"
43306 msgstr ""
43307
43308 #. type: textblock
43309 #: ../src/guestfs.pod:3185
43310 msgid ""
43311 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
43312 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
43313 "address a partition located beyond 2 TB on the disk."
43314 msgstr ""
43315
43316 #. type: textblock
43317 #: ../src/guestfs.pod:3189
43318 msgid ""
43319 "It is recommended that you use GPT partitions on disks which are larger than "
43320 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
43321 "which are theoretically larger than the largest disk we could support."
43322 msgstr ""
43323
43324 #. type: =head2
43325 #: ../src/guestfs.pod:3194
43326 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
43327 msgstr ""
43328
43329 #. type: textblock
43330 #: ../src/guestfs.pod:3196
43331 msgid ""
43332 "This depends on the filesystem type.  libguestfs itself does not impose any "
43333 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
43334 "what these limits are."
43335 msgstr ""
43336
43337 #. type: =head2
43338 #: ../src/guestfs.pod:3200
43339 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
43340 msgstr ""
43341
43342 #. type: textblock
43343 #: ../src/guestfs.pod:3202
43344 msgid ""
43345 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
43346 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
43347 "uploads and downloads."
43348 msgstr ""
43349
43350 #. type: =head2
43351 #: ../src/guestfs.pod:3206
43352 msgid "INSPECTION LIMITS"
43353 msgstr ""
43354
43355 #. type: textblock
43356 #: ../src/guestfs.pod:3208
43357 msgid ""
43358 "The inspection code has several arbitrary limits on things like the size of "
43359 "Windows Registry hive it will read, and the length of product name.  These "
43360 "are intended to stop a malicious guest from consuming arbitrary amounts of "
43361 "memory and disk space on the host, and should not be reached in practice.  "
43362 "See the source code for more information."
43363 msgstr ""
43364
43365 #. type: textblock
43366 #: ../src/guestfs.pod:3234
43367 msgid ""
43368 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
43369 "effect as calling C<guestfs_set_verbose (g, 1)>."
43370 msgstr ""
43371
43372 #. type: textblock
43373 #: ../src/guestfs.pod:3246
43374 msgid ""
43375 "Set the path that libguestfs uses to search for a supermin appliance.  See "
43376 "the discussion of paths in section L</PATH> above."
43377 msgstr ""
43378
43379 #. type: textblock
43380 #: ../src/guestfs.pod:3255
43381 msgid "See also L</QEMU WRAPPERS> above."
43382 msgstr ""
43383
43384 #. type: textblock
43385 #: ../src/guestfs.pod:3259
43386 msgid ""
43387 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
43388 "effect as calling C<guestfs_set_trace (g, 1)>."
43389 msgstr ""
43390
43391 #. type: textblock
43392 #: ../src/guestfs.pod:3277
43393 msgid ""
43394 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
43395 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
43396 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
43397 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
43398 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
43399 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
43400 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
43401 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<guestfs-"
43402 "testing(1)>, L<qemu(1)>, L<febootstrap(1)>, L<febootstrap-supermin-helper(8)"
43403 ">, L<hivex(3)>, L<stap(1)>, L<http://libguestfs.org/>."
43404 msgstr ""
43405
43406 #. type: textblock
43407 #: ../src/guestfs.pod:3314
43408 msgid ""
43409 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
43410 "(8)>, L<disktype(1)>."
43411 msgstr ""
43412
43413 #. type: =head1
43414 #: ../src/guestfs.pod:3321 ../tools/virt-make-fs.pl:571
43415 #: ../tools/virt-win-reg.pl:772
43416 msgid "BUGS"
43417 msgstr "ВАДИ"
43418
43419 #. type: textblock
43420 #: ../src/guestfs.pod:3323
43421 msgid "To get a list of bugs against libguestfs use this link:"
43422 msgstr ""
43423 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
43424 "посиланням:"
43425
43426 #. type: textblock
43427 #: ../src/guestfs.pod:3325
43428 msgid ""
43429 "L<https://bugzilla.redhat.com/buglist.cgi?"
43430 "component=libguestfs&product=Virtualization+Tools>"
43431 msgstr ""
43432 "L<https://bugzilla.redhat.com/buglist.cgi?"
43433 "component=libguestfs&product=Virtualization+Tools>"
43434
43435 #. type: textblock
43436 #: ../src/guestfs.pod:3327
43437 msgid "To report a new bug against libguestfs use this link:"
43438 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
43439
43440 #. type: textblock
43441 #: ../src/guestfs.pod:3329
43442 msgid ""
43443 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
43444 "component=libguestfs&product=Virtualization+Tools>"
43445 msgstr ""
43446 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
43447 "component=libguestfs&product=Virtualization+Tools>"
43448
43449 #. type: textblock
43450 #: ../src/guestfs.pod:3331
43451 msgid "When reporting a bug, please check:"
43452 msgstr ""
43453
43454 #. type: textblock
43455 #: ../src/guestfs.pod:3337
43456 msgid "That the bug hasn't been reported already."
43457 msgstr ""
43458
43459 #. type: textblock
43460 #: ../src/guestfs.pod:3341
43461 msgid "That you are testing a recent version."
43462 msgstr ""
43463
43464 #. type: textblock
43465 #: ../src/guestfs.pod:3345
43466 msgid "Describe the bug accurately, and give a way to reproduce it."
43467 msgstr ""
43468
43469 #. type: textblock
43470 #: ../src/guestfs.pod:3349
43471 msgid ""
43472 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
43473 "bug report."
43474 msgstr ""
43475
43476 #. type: textblock
43477 #: ../test-tool/libguestfs-test-tool.pod:5
43478 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
43479 msgstr ""
43480
43481 #. type: verbatim
43482 #: ../test-tool/libguestfs-test-tool.pod:9
43483 #, no-wrap
43484 msgid ""
43485 " libguestfs-test-tool [--options]\n"
43486 "\n"
43487 msgstr ""
43488
43489 #. type: textblock
43490 #: ../test-tool/libguestfs-test-tool.pod:13
43491 msgid ""
43492 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
43493 "to check basic libguestfs functionality is working.  This is needed because "
43494 "libguestfs occasionally breaks for reasons beyond our control: usually "
43495 "because of changes in the underlying qemu or kernel packages, or the host "
43496 "environment."
43497 msgstr ""
43498
43499 #. type: textblock
43500 #: ../test-tool/libguestfs-test-tool.pod:19
43501 msgid "If you suspect a problem in libguestfs, then just run:"
43502 msgstr ""
43503
43504 #. type: verbatim
43505 #: ../test-tool/libguestfs-test-tool.pod:21
43506 #, no-wrap
43507 msgid ""
43508 " libguestfs-test-tool\n"
43509 "\n"
43510 msgstr ""
43511
43512 #. type: textblock
43513 #: ../test-tool/libguestfs-test-tool.pod:23
43514 msgid "It will print lots of diagnostic messages."
43515 msgstr ""
43516
43517 #. type: textblock
43518 #: ../test-tool/libguestfs-test-tool.pod:25
43519 msgid "If it runs to completion successfully, you will see this near the end:"
43520 msgstr ""
43521
43522 #. type: verbatim
43523 #: ../test-tool/libguestfs-test-tool.pod:27
43524 #, no-wrap
43525 msgid ""
43526 " ===== TEST FINISHED OK =====\n"
43527 "\n"
43528 msgstr ""
43529
43530 #. type: textblock
43531 #: ../test-tool/libguestfs-test-tool.pod:29
43532 msgid "and the test tool will exit with code 0."
43533 msgstr ""
43534
43535 #. type: textblock
43536 #: ../test-tool/libguestfs-test-tool.pod:31
43537 msgid ""
43538 "If it fails (and/or exits with non-zero error code), please paste the "
43539 "I<complete, unedited> output of the test tool into a bug report.  More "
43540 "information about reporting bugs can be found on the L<http://libguestfs.org/"
43541 "> website."
43542 msgstr ""
43543
43544 #. type: textblock
43545 #: ../test-tool/libguestfs-test-tool.pod:42
43546 msgid "Display short usage information and exit."
43547 msgstr ""
43548
43549 #. type: =item
43550 #: ../test-tool/libguestfs-test-tool.pod:44
43551 msgid "B<--qemu qemu_binary>"
43552 msgstr ""
43553
43554 #. type: textblock
43555 #: ../test-tool/libguestfs-test-tool.pod:46
43556 msgid ""
43557 "If you have downloaded another qemu binary, point this option at the full "
43558 "path of the binary to try it."
43559 msgstr ""
43560
43561 #. type: =item
43562 #: ../test-tool/libguestfs-test-tool.pod:49
43563 msgid "B<--qemudir qemu_source_dir>"
43564 msgstr ""
43565
43566 #. type: textblock
43567 #: ../test-tool/libguestfs-test-tool.pod:51
43568 msgid ""
43569 "If you have compiled qemu from source, point this option at the source "
43570 "directory to try it."
43571 msgstr ""
43572
43573 #. type: =item
43574 #: ../test-tool/libguestfs-test-tool.pod:54
43575 msgid "B<-t N>"
43576 msgstr ""
43577
43578 #. type: =item
43579 #: ../test-tool/libguestfs-test-tool.pod:56
43580 msgid "B<--timeout N>"
43581 msgstr ""
43582
43583 #. type: textblock
43584 #: ../test-tool/libguestfs-test-tool.pod:58
43585 msgid ""
43586 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
43587 "minutes) which does not usually need to be adjusted."
43588 msgstr ""
43589
43590 #. type: =head1
43591 #: ../test-tool/libguestfs-test-tool.pod:63
43592 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
43593 msgstr ""
43594
43595 #. type: textblock
43596 #: ../test-tool/libguestfs-test-tool.pod:65
43597 msgid ""
43598 "If you have compiled another version of qemu from source and would like to "
43599 "try that, then you can use the I<--qemudir> option to point to the qemu "
43600 "source directory."
43601 msgstr ""
43602
43603 #. type: textblock
43604 #: ../test-tool/libguestfs-test-tool.pod:69
43605 msgid ""
43606 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
43607 "option to point to the binary."
43608 msgstr ""
43609
43610 #. type: textblock
43611 #: ../test-tool/libguestfs-test-tool.pod:72
43612 msgid ""
43613 "Note when using these options, you can ignore the business of qemu wrapper "
43614 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
43615 "wrapper script for you if one is needed."
43616 msgstr ""
43617
43618 #. type: =head1
43619 #: ../test-tool/libguestfs-test-tool.pod:76
43620 msgid "TRYING OUT A DIFFERENT KERNEL"
43621 msgstr ""
43622
43623 #. type: textblock
43624 #: ../test-tool/libguestfs-test-tool.pod:78
43625 msgid ""
43626 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
43627 "libguestfs tries.  You do this by setting the environment variables "
43628 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
43629 msgstr ""
43630
43631 #. type: textblock
43632 #: ../test-tool/libguestfs-test-tool.pod:82
43633 msgid ""
43634 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
43635 "information."
43636 msgstr ""
43637
43638 #. type: =head1
43639 #: ../test-tool/libguestfs-test-tool.pod:85
43640 msgid "SELF-DIAGNOSIS"
43641 msgstr ""
43642
43643 #. type: textblock
43644 #: ../test-tool/libguestfs-test-tool.pod:87
43645 msgid ""
43646 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
43647 "produced by libguestfs-test-tool and/or possible errors."
43648 msgstr ""
43649
43650 #. type: textblock
43651 #: ../test-tool/libguestfs-test-tool.pod:92
43652 msgid ""
43653 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
43654 "I<1> if there was an error."
43655 msgstr ""
43656
43657 #. type: textblock
43658 #: ../test-tool/libguestfs-test-tool.pod:97
43659 msgid ""
43660 "For the full list of environment variables which may affect libguestfs, "
43661 "please see the L<guestfs(3)> manual page."
43662 msgstr ""
43663
43664 #. type: textblock
43665 #: ../test-tool/libguestfs-test-tool.pod:102
43666 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
43667 msgstr ""
43668
43669 #. type: textblock
43670 #: ../tools/virt-list-filesystems.pl:32
43671 msgid ""
43672 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
43673 msgstr ""
43674
43675 #. type: verbatim
43676 #: ../tools/virt-list-filesystems.pl:36
43677 #, no-wrap
43678 msgid ""
43679 " virt-list-filesystems [--options] domname\n"
43680 "\n"
43681 msgstr ""
43682
43683 #. type: verbatim
43684 #: ../tools/virt-list-filesystems.pl:38
43685 #, no-wrap
43686 msgid ""
43687 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
43688 "\n"
43689 msgstr ""
43690
43691 #. type: textblock
43692 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
43693 msgid ""
43694 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
43695 "replacement."
43696 msgstr ""
43697
43698 #. type: textblock
43699 #: ../tools/virt-list-filesystems.pl:45
43700 msgid ""
43701 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
43702 "are contained in a virtual machine or disk image."
43703 msgstr ""
43704
43705 #. type: textblock
43706 #: ../tools/virt-list-filesystems.pl:49
43707 msgid ""
43708 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
43709 "functionality.  For more complex cases you should look at the L<guestfish(1)"
43710 "> tool."
43711 msgstr ""
43712
43713 #. type: textblock
43714 #: ../tools/virt-list-filesystems.pl:112
43715 msgid ""
43716 "With this option, C<virt-list-filesystems> displays the type of each "
43717 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
43718 msgstr ""
43719
43720 #. type: =item
43721 #: ../tools/virt-list-filesystems.pl:119
43722 msgid "B<-a>"
43723 msgstr "B<-a>"
43724
43725 #. type: textblock
43726 #: ../tools/virt-list-filesystems.pl:123
43727 msgid ""
43728 "Normally we only show mountable filesystems.  If this option is given then "
43729 "swap devices are shown too."
43730 msgstr ""
43731
43732 #. type: textblock
43733 #: ../tools/virt-list-filesystems.pl:197
43734 msgid ""
43735 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
43736 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
43737 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43738 msgstr ""
43739 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
43740 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
43741 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43742
43743 #. type: textblock
43744 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
43745 msgid "Copyright (C) 2009 Red Hat Inc."
43746 msgstr "© Red Hat Inc., 2009"
43747
43748 #. type: textblock
43749 #: ../tools/virt-list-partitions.pl:32
43750 msgid ""
43751 "virt-list-partitions - List partitions in a virtual machine or disk image"
43752 msgstr ""
43753
43754 #. type: verbatim
43755 #: ../tools/virt-list-partitions.pl:36
43756 #, no-wrap
43757 msgid ""
43758 " virt-list-partitions [--options] domname\n"
43759 "\n"
43760 msgstr ""
43761 " virt-list-partitions [--параметри] назва_домену\n"
43762 "\n"
43763
43764 #. type: verbatim
43765 #: ../tools/virt-list-partitions.pl:38
43766 #, no-wrap
43767 msgid ""
43768 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
43769 "\n"
43770 msgstr ""
43771 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
43772 "\n"
43773
43774 #. type: textblock
43775 #: ../tools/virt-list-partitions.pl:45
43776 msgid ""
43777 "C<virt-list-partitions> is a command line tool to list the partitions that "
43778 "are contained in a virtual machine or disk image.  It is mainly useful as a "
43779 "first step to using L<virt-resize(1)>."
43780 msgstr ""
43781
43782 #. type: textblock
43783 #: ../tools/virt-list-partitions.pl:50
43784 msgid ""
43785 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
43786 "functionality.  For more complex cases you should look at the L<guestfish(1)"
43787 "> tool."
43788 msgstr ""
43789
43790 #. type: textblock
43791 #: ../tools/virt-list-partitions.pl:113
43792 msgid "Show sizes in human-readable form (eg. \"1G\")."
43793 msgstr ""
43794
43795 #. type: textblock
43796 #: ../tools/virt-list-partitions.pl:123
43797 msgid ""
43798 "With this option, C<virt-list-partitions> displays the type and size of each "
43799 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
43800 msgstr ""
43801
43802 #. type: =item
43803 #: ../tools/virt-list-partitions.pl:130
43804 msgid "B<-t>"
43805 msgstr "B<-t>"
43806
43807 #. type: =item
43808 #: ../tools/virt-list-partitions.pl:132
43809 msgid "B<--total>"
43810 msgstr "B<--total>"
43811
43812 #. type: textblock
43813 #: ../tools/virt-list-partitions.pl:134
43814 msgid ""
43815 "Display the total size of each block device (as a separate row or rows)."
43816 msgstr ""
43817
43818 #. type: textblock
43819 #: ../tools/virt-list-partitions.pl:267
43820 msgid ""
43821 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
43822 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
43823 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43824 msgstr ""
43825 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
43826 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
43827 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
43828
43829 #. type: textblock
43830 #: ../tools/virt-list-partitions.pl:283
43831 msgid "Copyright (C) 2009-2010 Red Hat Inc."
43832 msgstr "© Red Hat Inc., 2009–2010"
43833
43834 #. type: textblock
43835 #: ../tools/virt-make-fs.pl:37
43836 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
43837 msgstr ""
43838
43839 #. type: verbatim
43840 #: ../tools/virt-make-fs.pl:41
43841 #, no-wrap
43842 msgid ""
43843 " virt-make-fs [--options] input.tar output.img\n"
43844 "\n"
43845 msgstr ""
43846
43847 #. type: verbatim
43848 #: ../tools/virt-make-fs.pl:43
43849 #, no-wrap
43850 msgid ""
43851 " virt-make-fs [--options] input.tar.gz output.img\n"
43852 "\n"
43853 msgstr ""
43854
43855 #. type: verbatim
43856 #: ../tools/virt-make-fs.pl:45
43857 #, no-wrap
43858 msgid ""
43859 " virt-make-fs [--options] directory output.img\n"
43860 "\n"
43861 msgstr ""
43862
43863 #. type: textblock
43864 #: ../tools/virt-make-fs.pl:49
43865 msgid ""
43866 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
43867 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
43868 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
43869 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
43870 "you want to attach these filesystems to existing virtual machines (eg. to "
43871 "import large amounts of read-only data to a VM)."
43872 msgstr ""
43873
43874 #. type: textblock
43875 #: ../tools/virt-make-fs.pl:57
43876 msgid "Basic usage is:"
43877 msgstr ""
43878
43879 #. type: verbatim
43880 #: ../tools/virt-make-fs.pl:59
43881 #, no-wrap
43882 msgid ""
43883 " virt-make-fs input output.img\n"
43884 "\n"
43885 msgstr ""
43886
43887 #. type: textblock
43888 #: ../tools/virt-make-fs.pl:61
43889 msgid ""
43890 "where C<input> is either a directory containing files that you want to add, "
43891 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
43892 "C<output.img> is a disk image.  The input type is detected automatically.  "
43893 "The output disk image defaults to a raw ext2 sparse image unless you specify "
43894 "extra flags (see L</OPTIONS> below)."
43895 msgstr ""
43896
43897 #. type: =head2
43898 #: ../tools/virt-make-fs.pl:67
43899 msgid "FILESYSTEM TYPE"
43900 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
43901
43902 #. type: textblock
43903 #: ../tools/virt-make-fs.pl:69
43904 msgid ""
43905 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
43906 "libguestfs supports can be used (but I<not> read-only formats like "
43907 "ISO9660).  Here are some of the more common choices:"
43908 msgstr ""
43909
43910 #. type: =item
43911 #: ../tools/virt-make-fs.pl:75
43912 msgid "I<ext3>"
43913 msgstr "I<ext3>"
43914
43915 #. type: textblock
43916 #: ../tools/virt-make-fs.pl:77
43917 msgid ""
43918 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
43919 "you are not going to use the filesystem in a way that requires the journal, "
43920 "then this is just wasted overhead."
43921 msgstr ""
43922
43923 #. type: =item
43924 #: ../tools/virt-make-fs.pl:81
43925 msgid "I<ntfs> or I<vfat>"
43926 msgstr "I<ntfs> або I<vfat>"
43927
43928 #. type: textblock
43929 #: ../tools/virt-make-fs.pl:83
43930 msgid "Useful if exporting data to a Windows guest."
43931 msgstr ""
43932
43933 #. type: textblock
43934 #: ../tools/virt-make-fs.pl:85
43935 msgid ""
43936 "I<Note for vfat>: The tar archive or local directory must only contain files "
43937 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
43938 "program running within libguestfs is unable to change the ownership of non-"
43939 "root files, since vfat itself does not support this."
43940 msgstr ""
43941
43942 #. type: =item
43943 #: ../tools/virt-make-fs.pl:90
43944 msgid "I<minix>"
43945 msgstr "I<minix>"
43946
43947 #. type: textblock
43948 #: ../tools/virt-make-fs.pl:92
43949 msgid ""
43950 "Lower overhead than C<ext2>, but certain limitations on filename length and "
43951 "total filesystem size."
43952 msgstr ""
43953
43954 #. type: =head3
43955 #: ../tools/virt-make-fs.pl:97 ../tools/virt-make-fs.pl:116
43956 #: ../tools/virt-make-fs.pl:149
43957 msgid "EXAMPLE"
43958 msgstr "ПРИКЛАД"
43959
43960 #. type: verbatim
43961 #: ../tools/virt-make-fs.pl:99
43962 #, no-wrap
43963 msgid ""
43964 " virt-make-fs --type=minix input minixfs.img\n"
43965 "\n"
43966 msgstr ""
43967
43968 #. type: =head2
43969 #: ../tools/virt-make-fs.pl:101
43970 msgid "TO PARTITION OR NOT TO PARTITION"
43971 msgstr ""
43972
43973 #. type: textblock
43974 #: ../tools/virt-make-fs.pl:103
43975 msgid "Optionally virt-make-fs can add a partition table to the output disk."
43976 msgstr ""
43977
43978 #. type: textblock
43979 #: ../tools/virt-make-fs.pl:105
43980 msgid ""
43981 "Adding a partition can make the disk image more compatible with certain "
43982 "virtualized operating systems which don't expect to see a filesystem "
43983 "directly located on a block device (Linux doesn't care and will happily "
43984 "handle both types)."
43985 msgstr ""
43986
43987 #. type: textblock
43988 #: ../tools/virt-make-fs.pl:110
43989 msgid ""
43990 "On the other hand, if you have a partition table then the output image is no "
43991 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
43992 "directly on a partitioned disk image.  (However libguestfs tools such as "
43993 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
43994 msgstr ""
43995
43996 #. type: textblock
43997 #: ../tools/virt-make-fs.pl:118
43998 msgid "Add an MBR partition:"
43999 msgstr ""
44000
44001 #. type: verbatim
44002 #: ../tools/virt-make-fs.pl:120
44003 #, no-wrap
44004 msgid ""
44005 " virt-make-fs --partition -- input disk.img\n"
44006 "\n"
44007 msgstr ""
44008
44009 #. type: textblock
44010 #: ../tools/virt-make-fs.pl:122
44011 msgid ""
44012 "If the output disk image could be terabyte-sized or larger, it's better to "
44013 "use an EFI/GPT-compatible partition table:"
44014 msgstr ""
44015
44016 #. type: verbatim
44017 #: ../tools/virt-make-fs.pl:125
44018 #, no-wrap
44019 msgid ""
44020 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
44021 "\n"
44022 msgstr ""
44023
44024 #. type: =head2
44025 #: ../tools/virt-make-fs.pl:127
44026 msgid "EXTRA SPACE"
44027 msgstr ""
44028
44029 #. type: textblock
44030 #: ../tools/virt-make-fs.pl:129
44031 msgid ""
44032 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
44033 "the files that it contains, but might have extra space.  Depending on how "
44034 "you are going to use the output, you might think this extra space is wasted "
44035 "and want to minimize it, or you might want to leave space so that more files "
44036 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
44037 "but you can use the I<--size> flag to leave space in the filesystem if you "
44038 "want it."
44039 msgstr ""
44040
44041 #. type: textblock
44042 #: ../tools/virt-make-fs.pl:137
44043 msgid ""
44044 "An alternative way to leave extra space but not make the output image any "
44045 "bigger is to use an alternative disk image format (instead of the default "
44046 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
44047 "image format (check your hypervisor supports this before using it).  This "
44048 "allows you to choose a large I<--size> but the extra space won't actually be "
44049 "allocated in the image until you try to store something in it."
44050 msgstr ""
44051
44052 #. type: textblock
44053 #: ../tools/virt-make-fs.pl:145
44054 msgid ""
44055 "Don't forget that you can also use local commands including L<resize2fs(8)> "
44056 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
44057 "to build another image from scratch."
44058 msgstr ""
44059
44060 #. type: verbatim
44061 #: ../tools/virt-make-fs.pl:151
44062 #, no-wrap
44063 msgid ""
44064 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
44065 "\n"
44066 msgstr ""
44067 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
44068 "\n"
44069
44070 #. type: textblock
44071 #: ../tools/virt-make-fs.pl:179
44072 msgid "Enable debugging information."
44073 msgstr "Увімкнути виведення діагностичних даних."
44074
44075 #. type: =item
44076 #: ../tools/virt-make-fs.pl:185
44077 msgid "B<--size=E<lt>NE<gt>>"
44078 msgstr "B<--size=E<lt>NE<gt>>"
44079
44080 #. type: =item
44081 #: ../tools/virt-make-fs.pl:187
44082 msgid "B<--size=+E<lt>NE<gt>>"
44083 msgstr "B<--size=+E<lt>NE<gt>>"
44084
44085 #. type: =item
44086 #: ../tools/virt-make-fs.pl:189
44087 msgid "B<-s E<lt>NE<gt>>"
44088 msgstr "B<-s E<lt>NE<gt>>"
44089
44090 #. type: =item
44091 #: ../tools/virt-make-fs.pl:191
44092 msgid "B<-s +E<lt>NE<gt>>"
44093 msgstr "B<-s +E<lt>NE<gt>>"
44094
44095 #. type: textblock
44096 #: ../tools/virt-make-fs.pl:193
44097 msgid ""
44098 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
44099 msgstr ""
44100
44101 #. type: textblock
44102 #: ../tools/virt-make-fs.pl:196
44103 msgid ""
44104 "If this option is I<not> given, then the output image will be just large "
44105 "enough to contain all the files, with not much wasted space."
44106 msgstr ""
44107
44108 #. type: textblock
44109 #: ../tools/virt-make-fs.pl:199
44110 msgid ""
44111 "To choose a fixed size output disk, specify an absolute number followed by b/"
44112 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
44113 "Petabytes or Exabytes.  This must be large enough to contain all the input "
44114 "files, else you will get an error."
44115 msgstr ""
44116
44117 #. type: textblock
44118 #: ../tools/virt-make-fs.pl:204
44119 msgid ""
44120 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
44121 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
44122 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
44123 "the input files, and (approximately) an extra 200 MB free space."
44124 msgstr ""
44125
44126 #. type: textblock
44127 #: ../tools/virt-make-fs.pl:210
44128 msgid ""
44129 "Note that virt-make-fs estimates free space, and therefore will not produce "
44130 "filesystems containing precisely the free space requested.  (It is much more "
44131 "expensive and time-consuming to produce a filesystem which has precisely the "
44132 "desired free space)."
44133 msgstr ""
44134
44135 #. type: =item
44136 #: ../tools/virt-make-fs.pl:219
44137 msgid "B<--format=E<lt>fmtE<gt>>"
44138 msgstr ""
44139
44140 #. type: =item
44141 #: ../tools/virt-make-fs.pl:221
44142 msgid "B<-F E<lt>fmtE<gt>>"
44143 msgstr ""
44144
44145 #. type: textblock
44146 #: ../tools/virt-make-fs.pl:223
44147 msgid "Choose the output disk image format."
44148 msgstr ""
44149
44150 #. type: textblock
44151 #: ../tools/virt-make-fs.pl:225
44152 msgid "The default is C<raw> (raw sparse disk image)."
44153 msgstr ""
44154
44155 #. type: textblock
44156 #: ../tools/virt-make-fs.pl:227
44157 msgid ""
44158 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
44159 "that would really make sense here is C<qcow2>."
44160 msgstr ""
44161
44162 #. type: =item
44163 #: ../tools/virt-make-fs.pl:234
44164 msgid "B<--type=E<lt>fsE<gt>>"
44165 msgstr ""
44166
44167 #. type: =item
44168 #: ../tools/virt-make-fs.pl:236
44169 msgid "B<-t E<lt>fsE<gt>>"
44170 msgstr ""
44171
44172 #. type: textblock
44173 #: ../tools/virt-make-fs.pl:238
44174 msgid "Choose the output filesystem type."
44175 msgstr ""
44176
44177 #. type: textblock
44178 #: ../tools/virt-make-fs.pl:240
44179 msgid "The default is C<ext2>."
44180 msgstr "Типовим значенням є C<ext2>."
44181
44182 #. type: textblock
44183 #: ../tools/virt-make-fs.pl:242
44184 msgid ""
44185 "Any filesystem which is supported read-write by libguestfs can be used here."
44186 msgstr ""
44187
44188 #. type: =item
44189 #: ../tools/virt-make-fs.pl:249
44190 msgid "B<--partition>"
44191 msgstr "B<--partition>"
44192
44193 #. type: =item
44194 #: ../tools/virt-make-fs.pl:251
44195 msgid "B<--partition=E<lt>parttypeE<gt>>"
44196 msgstr ""
44197
44198 #. type: textblock
44199 #: ../tools/virt-make-fs.pl:253
44200 msgid ""
44201 "If specified, this flag adds an MBR partition table to the output disk image."
44202 msgstr ""
44203
44204 #. type: textblock
44205 #: ../tools/virt-make-fs.pl:256
44206 msgid ""
44207 "You can change the partition table type, eg. I<--partition=gpt> for large "
44208 "disks."
44209 msgstr ""
44210
44211 #. type: textblock
44212 #: ../tools/virt-make-fs.pl:259
44213 msgid ""
44214 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
44215 "might consider the next parameter to be the partition type.  For example:"
44216 msgstr ""
44217
44218 #. type: verbatim
44219 #: ../tools/virt-make-fs.pl:263
44220 #, no-wrap
44221 msgid ""
44222 " virt-make-fs --partition input.tar output.img\n"
44223 "\n"
44224 msgstr ""
44225
44226 #. type: textblock
44227 #: ../tools/virt-make-fs.pl:265
44228 msgid ""
44229 "would cause virt-make-fs to think you wanted to use a partition type of "
44230 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
44231 "dash) between options and the input and output arguments:"
44232 msgstr ""
44233
44234 #. type: verbatim
44235 #: ../tools/virt-make-fs.pl:269
44236 #, no-wrap
44237 msgid ""
44238 " virt-make-fs --partition -- input.tar output.img\n"
44239 "\n"
44240 msgstr ""
44241
44242 #. type: textblock
44243 #: ../tools/virt-make-fs.pl:271
44244 msgid "For MBR, virt-make-fs sets the partition type byte automatically."
44245 msgstr ""
44246
44247 #. type: textblock
44248 #: ../tools/virt-make-fs.pl:559
44249 msgid ""
44250 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
44251 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
44252 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
44253 msgstr ""
44254 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
44255 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
44256 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
44257
44258 #. type: textblock
44259 #: ../tools/virt-make-fs.pl:573 ../tools/virt-win-reg.pl:774
44260 msgid ""
44261 "When reporting bugs, please enable debugging and capture the I<complete> "
44262 "output:"
44263 msgstr ""
44264
44265 #. type: verbatim
44266 #: ../tools/virt-make-fs.pl:576
44267 #, no-wrap
44268 msgid ""
44269 " export LIBGUESTFS_DEBUG=1\n"
44270 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
44271 "\n"
44272 msgstr ""
44273 " export LIBGUESTFS_DEBUG=1\n"
44274 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
44275 "\n"
44276
44277 #. type: textblock
44278 #: ../tools/virt-make-fs.pl:579
44279 msgid ""
44280 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
44281 "redhat.com/>"
44282 msgstr ""
44283
44284 #. type: textblock
44285 #: ../tools/virt-tar.pl:33
44286 msgid "virt-tar - Extract or upload files to a virtual machine"
44287 msgstr ""
44288
44289 #. type: verbatim
44290 #: ../tools/virt-tar.pl:37
44291 #, no-wrap
44292 msgid ""
44293 " virt-tar [--options] -x domname directory tarball\n"
44294 "\n"
44295 msgstr ""
44296
44297 #. type: verbatim
44298 #: ../tools/virt-tar.pl:39
44299 #, no-wrap
44300 msgid ""
44301 " virt-tar [--options] -u domname tarball directory\n"
44302 "\n"
44303 msgstr ""
44304
44305 #. type: verbatim
44306 #: ../tools/virt-tar.pl:41
44307 #, no-wrap
44308 msgid ""
44309 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
44310 "\n"
44311 msgstr ""
44312
44313 #. type: verbatim
44314 #: ../tools/virt-tar.pl:43
44315 #, no-wrap
44316 msgid ""
44317 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
44318 "\n"
44319 msgstr ""
44320
44321 #. type: =head2
44322 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
44323 msgid "NOTE"
44324 msgstr "ПРИМІТКА"
44325
44326 #. type: textblock
44327 #: ../tools/virt-tar.pl:47
44328 msgid ""
44329 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
44330 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
44331 msgstr ""
44332
44333 #. type: textblock
44334 #: ../tools/virt-tar.pl:52
44335 msgid "Download C</home> from the VM into a local tarball:"
44336 msgstr ""
44337
44338 #. type: verbatim
44339 #: ../tools/virt-tar.pl:54
44340 #, no-wrap
44341 msgid ""
44342 " virt-tar -x domname /home home.tar\n"
44343 "\n"
44344 msgstr ""
44345
44346 #. type: verbatim
44347 #: ../tools/virt-tar.pl:56
44348 #, no-wrap
44349 msgid ""
44350 " virt-tar -zx domname /home home.tar.gz\n"
44351 "\n"
44352 msgstr ""
44353
44354 #. type: textblock
44355 #: ../tools/virt-tar.pl:58
44356 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
44357 msgstr ""
44358
44359 #. type: verbatim
44360 #: ../tools/virt-tar.pl:60
44361 #, no-wrap
44362 msgid ""
44363 " virt-tar -u domname uploadstuff.tar /tmp\n"
44364 "\n"
44365 msgstr ""
44366
44367 #. type: verbatim
44368 #: ../tools/virt-tar.pl:62
44369 #, no-wrap
44370 msgid ""
44371 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
44372 "\n"
44373 msgstr ""
44374
44375 #. type: textblock
44376 #: ../tools/virt-tar.pl:66
44377 msgid ""
44378 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
44379 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
44380 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
44381 msgstr ""
44382
44383 #. type: textblock
44384 #: ../tools/virt-tar.pl:71
44385 msgid ""
44386 "You can use I<-x> (extract) on live virtual machines, but you might get "
44387 "inconsistent results or errors if there is filesystem activity inside the "
44388 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
44389 "work, but the only way to guarantee consistent results is if the virtual "
44390 "machine is shut down."
44391 msgstr ""
44392
44393 #. type: textblock
44394 #: ../tools/virt-tar.pl:79
44395 msgid ""
44396 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
44397 "parts of a guest filesystem.  There are many possibilities: making backups, "
44398 "uploading data files, snooping on guest activity, fixing or customizing "
44399 "guests, etc."
44400 msgstr ""
44401
44402 #. type: textblock
44403 #: ../tools/virt-tar.pl:84
44404 msgid ""
44405 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
44406 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
44407 "should look at the L<guestfish(1)> tool."
44408 msgstr ""
44409
44410 #. type: textblock
44411 #: ../tools/virt-tar.pl:88
44412 msgid ""
44413 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
44414 "its contents (recursively) from the virtual machine into a local tarball.  "
44415 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
44416 "virtual machine.  You cannot use these two options together."
44417 msgstr ""
44418
44419 #. type: textblock
44420 #: ../tools/virt-tar.pl:94
44421 msgid ""
44422 "In addition, you may need to use the I<-z> (gZip) option to enable "
44423 "compression.  When uploading, you have to specify I<-z> if the upload file "
44424 "is compressed because virt-tar won't detect this on its own."
44425 msgstr ""
44426
44427 #. type: textblock
44428 #: ../tools/virt-tar.pl:98
44429 msgid ""
44430 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
44431 "example it cannot do PKZip files or bzip2 compression.  If you want that "
44432 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
44433 "the L<libguestfs(3)> API)."
44434 msgstr ""
44435
44436 #. type: =item
44437 #: ../tools/virt-tar.pl:160
44438 msgid "B<--extract>"
44439 msgstr "B<--extract>"
44440
44441 #. type: =item
44442 #: ../tools/virt-tar.pl:162
44443 msgid "B<--download>"
44444 msgstr "B<--download>"
44445
44446 #. type: =item
44447 #: ../tools/virt-tar.pl:164
44448 msgid "B<-u>"
44449 msgstr "B<-u>"
44450
44451 #. type: =item
44452 #: ../tools/virt-tar.pl:166
44453 msgid "B<--upload>"
44454 msgstr "B<--upload>"
44455
44456 #. type: textblock
44457 #: ../tools/virt-tar.pl:168
44458 msgid ""
44459 "Use I<-x> to extract (download) a directory from a virtual machine to a "
44460 "local tarball."
44461 msgstr ""
44462
44463 #. type: textblock
44464 #: ../tools/virt-tar.pl:171
44465 msgid ""
44466 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
44467 "Please read the L</WARNING> section above before using this option."
44468 msgstr ""
44469
44470 #. type: textblock
44471 #: ../tools/virt-tar.pl:175
44472 msgid "You must specify exactly one of these options."
44473 msgstr ""
44474
44475 #. type: =item
44476 #: ../tools/virt-tar.pl:181
44477 msgid "B<-z>"
44478 msgstr "B<-z>"
44479
44480 #. type: =item
44481 #: ../tools/virt-tar.pl:183
44482 msgid "B<--gzip>"
44483 msgstr "B<--gzip>"
44484
44485 #. type: textblock
44486 #: ../tools/virt-tar.pl:185
44487 msgid "Specify that the input or output tarball is gzip-compressed."
44488 msgstr ""
44489
44490 #. type: textblock
44491 #: ../tools/virt-tar.pl:298
44492 msgid ""
44493 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
44494 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
44495 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
44496 "org/>."
44497 msgstr ""
44498 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
44499 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
44500 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
44501 "org/>."
44502
44503 #. type: textblock
44504 #: ../tools/virt-win-reg.pl:37
44505 msgid ""
44506 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
44507 msgstr ""
44508
44509 #. type: verbatim
44510 #: ../tools/virt-win-reg.pl:41
44511 #, no-wrap
44512 msgid ""
44513 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
44514 "\n"
44515 msgstr ""
44516
44517 #. type: verbatim
44518 #: ../tools/virt-win-reg.pl:43
44519 #, no-wrap
44520 msgid ""
44521 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
44522 "\n"
44523 msgstr ""
44524
44525 #. type: verbatim
44526 #: ../tools/virt-win-reg.pl:45
44527 #, no-wrap
44528 msgid ""
44529 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
44530 "\n"
44531 msgstr ""
44532
44533 #. type: verbatim
44534 #: ../tools/virt-win-reg.pl:47
44535 #, no-wrap
44536 msgid ""
44537 " virt-win-reg --merge domname [input.reg ...]\n"
44538 "\n"
44539 msgstr ""
44540
44541 #. type: verbatim
44542 #: ../tools/virt-win-reg.pl:49
44543 #, no-wrap
44544 msgid ""
44545 " virt-win-reg [--options] disk.img ... # instead of domname\n"
44546 "\n"
44547 msgstr ""
44548
44549 #. type: textblock
44550 #: ../tools/virt-win-reg.pl:53
44551 msgid ""
44552 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
44553 "virtual machines.  If you do this, you I<will> get irreversible disk "
44554 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
44555 "but doesn't catch all cases."
44556 msgstr ""
44557
44558 #. type: textblock
44559 #: ../tools/virt-win-reg.pl:58
44560 msgid ""
44561 "Modifying the Windows Registry is an inherently risky operation.  The format "
44562 "is deliberately obscure and undocumented, and Registry changes can leave the "
44563 "system unbootable.  Therefore when using the I<--merge> option, make sure "
44564 "you have a reliable backup first."
44565 msgstr ""
44566
44567 #. type: textblock
44568 #: ../tools/virt-win-reg.pl:65
44569 msgid ""
44570 "This program can export and merge Windows Registry entries from a Windows "
44571 "guest."
44572 msgstr ""
44573
44574 #. type: textblock
44575 #: ../tools/virt-win-reg.pl:68
44576 msgid ""
44577 "The first parameter is the libvirt guest name or the raw disk image of a "
44578 "Windows guest."
44579 msgstr ""
44580
44581 #. type: textblock
44582 #: ../tools/virt-win-reg.pl:71
44583 msgid ""
44584 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
44585 "exported (recursively).  For example:"
44586 msgstr ""
44587
44588 #. type: verbatim
44589 #: ../tools/virt-win-reg.pl:74
44590 #, no-wrap
44591 msgid ""
44592 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
44593 "\n"
44594 msgstr ""
44595 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
44596 "\n"
44597
44598 #. type: textblock
44599 #: ../tools/virt-win-reg.pl:76
44600 msgid ""
44601 "You can also display single values from within registry keys, for example:"
44602 msgstr ""
44603
44604 #. type: verbatim
44605 #: ../tools/virt-win-reg.pl:79
44606 #, no-wrap
44607 msgid ""
44608 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
44609 " $ virt-win-reg Windows7 $cvkey ProductName\n"
44610 " Windows 7 Enterprise\n"
44611 "\n"
44612 msgstr ""
44613 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
44614 " $ virt-win-reg Windows7 $cvkey ProductName\n"
44615 " Windows 7 Enterprise\n"
44616 "\n"
44617
44618 #. type: textblock
44619 #: ../tools/virt-win-reg.pl:83
44620 msgid ""
44621 "With I<--merge>, you can merge a textual regedit file into the Windows "
44622 "Registry:"
44623 msgstr ""
44624
44625 #. type: verbatim
44626 #: ../tools/virt-win-reg.pl:86
44627 #, no-wrap
44628 msgid ""
44629 " $ virt-win-reg --merge Windows7 changes.reg\n"
44630 "\n"
44631 msgstr ""
44632 " $ virt-win-reg --merge Windows7 changes.reg\n"
44633 "\n"
44634
44635 #. type: textblock
44636 #: ../tools/virt-win-reg.pl:90
44637 msgid ""
44638 "This program is only meant for simple access to the registry.  If you want "
44639 "to do complicated things with the registry, we suggest you download the "
44640 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
44641 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
44642 "L<hivexregedit(1)>."
44643 msgstr ""
44644
44645 #. type: =item
44646 #: ../tools/virt-win-reg.pl:159
44647 msgid "B<--merge>"
44648 msgstr "B<--merge>"
44649
44650 #. type: textblock
44651 #: ../tools/virt-win-reg.pl:161
44652 msgid ""
44653 "In merge mode, this merges a textual regedit file into the Windows Registry "
44654 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
44655 "displays or exports Registry entries instead."
44656 msgstr ""
44657
44658 #. type: textblock
44659 #: ../tools/virt-win-reg.pl:165
44660 msgid ""
44661 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
44662 "result in disk corruption.  However exporting (without this flag)  is always "
44663 "safe."
44664 msgstr ""
44665
44666 #. type: =item
44667 #: ../tools/virt-win-reg.pl:173
44668 msgid "B<--encoding> UTF-16LE|ASCII"
44669 msgstr "B<--encoding> UTF-16LE|ASCII"
44670
44671 #. type: textblock
44672 #: ../tools/virt-win-reg.pl:175
44673 msgid ""
44674 "When merging (only), you may need to specify the encoding for strings to be "
44675 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
44676 "(3)/ENCODING STRINGS>."
44677 msgstr ""
44678
44679 #. type: textblock
44680 #: ../tools/virt-win-reg.pl:179
44681 msgid ""
44682 "The default is to use UTF-16LE, which should work with recent versions of "
44683 "Windows."
44684 msgstr ""
44685
44686 #. type: =item
44687 #: ../tools/virt-win-reg.pl:186
44688 msgid "B<--unsafe-printable-strings>"
44689 msgstr "B<--unsafe-printable-strings>"
44690
44691 #. type: textblock
44692 #: ../tools/virt-win-reg.pl:188
44693 msgid ""
44694 "When exporting (only), assume strings are UTF-16LE and print them as strings "
44695 "instead of hex sequences.  Remove the final zero codepoint from strings if "
44696 "present."
44697 msgstr ""
44698
44699 #. type: textblock
44700 #: ../tools/virt-win-reg.pl:192
44701 msgid ""
44702 "This is unsafe and does not preserve the fidelity of strings in the original "
44703 "Registry for various reasons:"
44704 msgstr ""
44705
44706 #. type: textblock
44707 #: ../tools/virt-win-reg.pl:199
44708 msgid ""
44709 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
44710 "other encodings will be corrupted by this transformation."
44711 msgstr ""
44712
44713 #. type: textblock
44714 #: ../tools/virt-win-reg.pl:204
44715 msgid ""
44716 "Assumes that everything which has type 1 or 2 is really a string and that "
44717 "everything else is not a string, but the type field in real Registries is "
44718 "not reliable."
44719 msgstr ""
44720
44721 #. type: textblock
44722 #: ../tools/virt-win-reg.pl:210
44723 msgid ""
44724 "Loses information about whether a zero codepoint followed the string in the "
44725 "Registry or not."
44726 msgstr ""
44727
44728 #. type: textblock
44729 #: ../tools/virt-win-reg.pl:215
44730 msgid ""
44731 "This all happens because the Registry itself contains no information about "
44732 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
44733 msgstr ""
44734
44735 #. type: textblock
44736 #: ../tools/virt-win-reg.pl:219
44737 msgid ""
44738 "You should only use this option for quick hacking and debugging of the "
44739 "Registry contents, and I<never> use it if the output is going to be passed "
44740 "into another program or stored in another Registry."
44741 msgstr ""
44742
44743 #. type: =head1
44744 #: ../tools/virt-win-reg.pl:556
44745 msgid "SUPPORTED SYSTEMS"
44746 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
44747
44748 #. type: textblock
44749 #: ../tools/virt-win-reg.pl:558
44750 msgid ""
44751 "The program currently supports Windows NT-derived guests starting with "
44752 "Windows XP through to at least Windows 7."
44753 msgstr ""
44754
44755 #. type: textblock
44756 #: ../tools/virt-win-reg.pl:561
44757 msgid "The following Registry keys are supported:"
44758 msgstr ""
44759
44760 #. type: =item
44761 #: ../tools/virt-win-reg.pl:565
44762 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
44763 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
44764
44765 #. type: =item
44766 #: ../tools/virt-win-reg.pl:567
44767 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
44768 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
44769
44770 #. type: =item
44771 #: ../tools/virt-win-reg.pl:569
44772 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
44773 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
44774
44775 #. type: =item
44776 #: ../tools/virt-win-reg.pl:571
44777 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
44778 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
44779
44780 #. type: =item
44781 #: ../tools/virt-win-reg.pl:573
44782 msgid "C<HKEY_USERS\\.DEFAULT>"
44783 msgstr "C<HKEY_USERS\\.DEFAULT>"
44784
44785 #. type: =item
44786 #: ../tools/virt-win-reg.pl:575
44787 msgid "C<HKEY_USERS\\I<SID>>"
44788 msgstr "C<HKEY_USERS\\I<SID>>"
44789
44790 #. type: textblock
44791 #: ../tools/virt-win-reg.pl:577
44792 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
44793 msgstr ""
44794
44795 #. type: =item
44796 #: ../tools/virt-win-reg.pl:579
44797 msgid "C<HKEY_USERS\\I<username>>"
44798 msgstr "C<HKEY_USERS\\I<користувач>>"
44799
44800 #. type: textblock
44801 #: ../tools/virt-win-reg.pl:581
44802 msgid ""
44803 "where I<username> is a local user name (this is a libguestfs extension)."
44804 msgstr ""
44805
44806 #. type: textblock
44807 #: ../tools/virt-win-reg.pl:585
44808 msgid ""
44809 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
44810 "C<HKEY_USERS>."
44811 msgstr ""
44812
44813 #. type: textblock
44814 #: ../tools/virt-win-reg.pl:588
44815 msgid ""
44816 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
44817 "supported (there is no \"current user\")."
44818 msgstr ""
44819
44820 #. type: =head1
44821 #: ../tools/virt-win-reg.pl:591
44822 msgid "ENCODING"
44823 msgstr "КОДУВАННЯ"
44824
44825 #. type: textblock
44826 #: ../tools/virt-win-reg.pl:593
44827 msgid ""
44828 "C<virt-win-reg> expects that regedit files have already been reencoded in "
44829 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
44830 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
44831 "Windows-style line endings, you may need to reencode the whole file before "
44832 "or after processing."
44833 msgstr ""
44834
44835 #. type: textblock
44836 #: ../tools/virt-win-reg.pl:599
44837 msgid ""
44838 "To reencode a file from Windows format to Linux (before processing it with "
44839 "the I<--merge> option), you would do something like this:"
44840 msgstr ""
44841
44842 #. type: verbatim
44843 #: ../tools/virt-win-reg.pl:602
44844 #, no-wrap
44845 msgid ""
44846 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
44847 "\n"
44848 msgstr ""
44849 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
44850 "\n"
44851
44852 #. type: textblock
44853 #: ../tools/virt-win-reg.pl:604
44854 msgid ""
44855 "To go in the opposite direction, after exporting and before sending the file "
44856 "to a Windows user, do something like this:"
44857 msgstr ""
44858
44859 #. type: verbatim
44860 #: ../tools/virt-win-reg.pl:607
44861 #, no-wrap
44862 msgid ""
44863 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
44864 "\n"
44865 msgstr ""
44866 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
44867 "\n"
44868
44869 #. type: textblock
44870 #: ../tools/virt-win-reg.pl:609
44871 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
44872 msgstr ""
44873
44874 #. type: textblock
44875 #: ../tools/virt-win-reg.pl:611
44876 msgid ""
44877 "If you are unsure about the current encoding, use the L<file(1)> command.  "
44878 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
44879 "style (CRLF) line endings, like this:"
44880 msgstr ""
44881
44882 #. type: verbatim
44883 #: ../tools/virt-win-reg.pl:615
44884 #, no-wrap
44885 msgid ""
44886 " $ file software.reg\n"
44887 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
44888 " with CRLF line terminators\n"
44889 "\n"
44890 msgstr ""
44891
44892 #. type: textblock
44893 #: ../tools/virt-win-reg.pl:619
44894 msgid "This file would need conversion before you could I<--merge> it."
44895 msgstr ""
44896
44897 #. type: =head1
44898 #: ../tools/virt-win-reg.pl:621
44899 msgid "CurrentControlSet etc."
44900 msgstr ""
44901
44902 #. type: textblock
44903 #: ../tools/virt-win-reg.pl:623
44904 msgid ""
44905 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
44906 "Registry at the level of the hive file, and therefore you cannot modify "
44907 "these."
44908 msgstr ""
44909
44910 #. type: textblock
44911 #: ../tools/virt-win-reg.pl:627
44912 msgid ""
44913 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
44914 "circumstances it might refer to another control set.  The way to find out is "
44915 "to look at the C<HKLM\\SYSTEM\\Select> key:"
44916 msgstr ""
44917
44918 #. type: verbatim
44919 #: ../tools/virt-win-reg.pl:631
44920 #, no-wrap
44921 msgid ""
44922 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
44923 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
44924 " \"Current\"=dword:00000001\n"
44925 " \"Default\"=dword:00000001\n"
44926 " \"Failed\"=dword:00000000\n"
44927 " \"LastKnownGood\"=dword:00000002\n"
44928 "\n"
44929 msgstr ""
44930 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
44931 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
44932 " \"Current\"=dword:00000001\n"
44933 " \"Default\"=dword:00000001\n"
44934 " \"Failed\"=dword:00000000\n"
44935 " \"LastKnownGood\"=dword:00000002\n"
44936 "\n"
44937
44938 #. type: textblock
44939 #: ../tools/virt-win-reg.pl:638
44940 msgid "\"Current\" is the one which Windows will choose when it boots."
44941 msgstr ""
44942
44943 #. type: textblock
44944 #: ../tools/virt-win-reg.pl:640
44945 msgid ""
44946 "Similarly, other C<Current...> keys in the path may need to be replaced."
44947 msgstr ""
44948
44949 #. type: =head1
44950 #: ../tools/virt-win-reg.pl:643
44951 msgid "DELETING REGISTRY KEYS AND VALUES"
44952 msgstr ""
44953
44954 #. type: textblock
44955 #: ../tools/virt-win-reg.pl:645
44956 msgid "To delete a whole registry key, use the syntax:"
44957 msgstr ""
44958
44959 #. type: verbatim
44960 #: ../tools/virt-win-reg.pl:647
44961 #, no-wrap
44962 msgid ""
44963 " [-HKEY_LOCAL_MACHINE\\Foo]\n"
44964 "\n"
44965 msgstr ""
44966
44967 #. type: textblock
44968 #: ../tools/virt-win-reg.pl:649
44969 msgid "To delete a single value within a key, use the syntax:"
44970 msgstr ""
44971
44972 #. type: verbatim
44973 #: ../tools/virt-win-reg.pl:651
44974 #, no-wrap
44975 msgid ""
44976 " [HKEY_LOCAL_MACHINE\\Foo]\n"
44977 " \"Value\"=-\n"
44978 "\n"
44979 msgstr ""
44980
44981 #. type: =head1
44982 #: ../tools/virt-win-reg.pl:654
44983 msgid "WINDOWS TIPS"
44984 msgstr ""
44985
44986 #. type: textblock
44987 #: ../tools/virt-win-reg.pl:656
44988 msgid ""
44989 "Note that some of these tips modify the guest disk image.  The guest I<must> "
44990 "be shut off, else you will get disk corruption."
44991 msgstr ""
44992
44993 #. type: =head2
44994 #: ../tools/virt-win-reg.pl:659
44995 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
44996 msgstr ""
44997
44998 #. type: textblock
44999 #: ../tools/virt-win-reg.pl:661
45000 msgid ""
45001 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
45002 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
45003 "is uploaded into C<C:\\>:"
45004 msgstr ""
45005
45006 #. type: verbatim
45007 #: ../tools/virt-win-reg.pl:665
45008 #, no-wrap
45009 msgid ""
45010 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
45011 "\n"
45012 msgstr ""
45013 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
45014 "\n"
45015
45016 #. type: textblock
45017 #: ../tools/virt-win-reg.pl:667
45018 msgid "Prepare a regedit file containing the registry change:"
45019 msgstr ""
45020
45021 #. type: verbatim
45022 #: ../tools/virt-win-reg.pl:669
45023 #, no-wrap
45024 msgid ""
45025 " cat > test.reg <<'EOF'\n"
45026 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
45027 " \"Test\"=\"c:\\\\test.bat\"\n"
45028 " EOF\n"
45029 "\n"
45030 msgstr ""
45031 " cat > test.reg <<'EOF'\n"
45032 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
45033 " \"Test\"=\"c:\\\\test.bat\"\n"
45034 " EOF\n"
45035 "\n"
45036
45037 #. type: textblock
45038 #: ../tools/virt-win-reg.pl:674
45039 msgid ""
45040 "In this example we use the key C<RunOnce> which means that the script will "
45041 "run precisely once when the first user logs in.  If you want it to run every "
45042 "time a user logs in, replace C<RunOnce> with C<Run>."
45043 msgstr ""
45044
45045 #. type: textblock
45046 #: ../tools/virt-win-reg.pl:678
45047 msgid "Now update the registry:"
45048 msgstr "Оновіть регістр:"
45049
45050 #. type: verbatim
45051 #: ../tools/virt-win-reg.pl:680
45052 #, no-wrap
45053 msgid ""
45054 " virt-win-reg --merge WindowsGuest test.reg\n"
45055 "\n"
45056 msgstr ""
45057
45058 #. type: =head2
45059 #: ../tools/virt-win-reg.pl:682
45060 msgid "INSTALLING A SERVICE"
45061 msgstr ""
45062
45063 #. type: textblock
45064 #: ../tools/virt-win-reg.pl:684
45065 msgid ""
45066 "This section assumes you are familiar with Windows services, and you either "
45067 "have a program which handles the Windows Service Control Protocol directly "
45068 "or you want to run any program using a service wrapper like SrvAny or the "
45069 "free RHSrvAny."
45070 msgstr ""
45071
45072 #. type: textblock
45073 #: ../tools/virt-win-reg.pl:689
45074 msgid ""
45075 "First upload the program and optionally the service wrapper.  In this case "
45076 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
45077 msgstr ""
45078
45079 #. type: verbatim
45080 #: ../tools/virt-win-reg.pl:693
45081 #, no-wrap
45082 msgid ""
45083 " guestfish -i -d WindowsGuest <<EOF\n"
45084 "   upload rhsrvany.exe /rhsrvany.exe\n"
45085 "   upload test.exe /test.exe\n"
45086 " EOF\n"
45087 "\n"
45088 msgstr ""
45089 " guestfish -i -d WindowsGuest <<EOF\n"
45090 "   upload rhsrvany.exe /rhsrvany.exe\n"
45091 "   upload test.exe /test.exe\n"
45092 " EOF\n"
45093 "\n"
45094
45095 #. type: textblock
45096 #: ../tools/virt-win-reg.pl:698
45097 msgid ""
45098 "Prepare a regedit file containing the registry changes.  In this example, "
45099 "the first registry change is needed for the service itself or the service "
45100 "wrapper (if used).  The second registry change is only needed because I am "
45101 "using the RHSrvAny service wrapper."
45102 msgstr ""
45103
45104 #. type: verbatim
45105 #: ../tools/virt-win-reg.pl:703
45106 #, no-wrap
45107 msgid ""
45108 " cat > service.reg <<'EOF'\n"
45109 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
45110 " \"Type\"=dword:00000010\n"
45111 " \"Start\"=dword:00000002\n"
45112 " \"ErrorControl\"=dword:00000001\n"
45113 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
45114 " \"DisplayName\"=\"RHSrvAny\"\n"
45115 " \"ObjectName\"=\"NetworkService\"\n"
45116 " \n"
45117 msgstr ""
45118 " cat > service.reg <<'EOF'\n"
45119 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
45120 " \"Type\"=dword:00000010\n"
45121 " \"Start\"=dword:00000002\n"
45122 " \"ErrorControl\"=dword:00000001\n"
45123 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
45124 " \"DisplayName\"=\"RHSrvAny\"\n"
45125 " \"ObjectName\"=\"NetworkService\"\n"
45126 " \n"
45127
45128 #. type: verbatim
45129 #: ../tools/virt-win-reg.pl:712
45130 #, no-wrap
45131 msgid ""
45132 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
45133 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
45134 " \"PWD\"=\"c:\\\\Temp\"\n"
45135 " EOF\n"
45136 "\n"
45137 msgstr ""
45138 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
45139 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
45140 " \"PWD\"=\"c:\\\\Temp\"\n"
45141 " EOF\n"
45142 "\n"
45143
45144 #. type: textblock
45145 #: ../tools/virt-win-reg.pl:723
45146 msgid ""
45147 "For use of C<ControlSet001> see the section above in this manual page.  You "
45148 "may need to adjust this according to the control set that is in use by the "
45149 "guest."
45150 msgstr ""
45151
45152 #. type: textblock
45153 #: ../tools/virt-win-reg.pl:729
45154 msgid ""
45155 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
45156 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
45157 "privileged account."
45158 msgstr ""
45159
45160 #. type: textblock
45161 #: ../tools/virt-win-reg.pl:735
45162 msgid ""
45163 "For the meaning of the magic numbers, see this Microsoft KB article: "
45164 "L<http://support.microsoft.com/kb/103000>."
45165 msgstr ""
45166
45167 #. type: textblock
45168 #: ../tools/virt-win-reg.pl:740
45169 msgid "Update the registry:"
45170 msgstr "Оновіть регістр:"
45171
45172 #. type: verbatim
45173 #: ../tools/virt-win-reg.pl:742
45174 #, no-wrap
45175 msgid ""
45176 " virt-win-reg --merge WindowsGuest service.reg\n"
45177 "\n"
45178 msgstr ""
45179
45180 #. type: textblock
45181 #: ../tools/virt-win-reg.pl:746
45182 msgid ""
45183 "Be careful when passing parameters containing C<\\> (backslash) in the "
45184 "shell.  Usually you will have to use 'single quotes' or double backslashes "
45185 "(but not both) to protect them from the shell."
45186 msgstr ""
45187
45188 #. type: textblock
45189 #: ../tools/virt-win-reg.pl:750
45190 msgid "Paths and value names are case-insensitive."
45191 msgstr ""
45192
45193 #. type: textblock
45194 #: ../tools/virt-win-reg.pl:759
45195 msgid ""
45196 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
45197 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
45198 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
45199 msgstr ""
45200 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
45201 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
45202 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
45203
45204 #. type: verbatim
45205 #: ../tools/virt-win-reg.pl:777
45206 #, no-wrap
45207 msgid ""
45208 " export LIBGUESTFS_DEBUG=1\n"
45209 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
45210 "\n"
45211 msgstr ""
45212
45213 #. type: textblock
45214 #: ../tools/virt-win-reg.pl:780
45215 msgid ""
45216 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
45217 "redhat.com/>"
45218 msgstr ""