505f89f021ca1187b78eea5887ac6546245e8388
[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-10-20 22:17+0200\n"
12 "PO-Revision-Date: 2011-10-19 15:46+0000\n"
13 "Last-Translator: rjones <rjones@redhat.com>\n"
14 "Language-Team: Ukrainian <trans-uk@lists.fedoraproject.org>\n"
15 "Language: uk\n"
16 "MIME-Version: 1.0\n"
17 "Content-Type: text/plain; charset=UTF-8\n"
18 "Content-Transfer-Encoding: 8bit\n"
19 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
20 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
21
22 #. type: =head1
23 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3
24 #: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3
25 #: ../clone/virt-sysprep.pod:3 ../df/virt-df.pod:3 ../edit/virt-edit.pod:3
26 #: ../erlang/examples/guestfs-erlang.pod:3 ../examples/guestfs-examples.pod:3
27 #: ../examples/guestfs-recipes.pod:14 ../fish/guestfish.pod:3
28 #: ../fish/virt-copy-in.pod:3 ../fish/virt-copy-out.pod:3
29 #: ../fish/virt-tar-in.pod:3 ../fish/virt-tar-out.pod:3
30 #: ../fuse/guestmount.pod:3 ../inspector/virt-inspector.pod:3
31 #: ../java/examples/guestfs-java.pod:3 ../ocaml/examples/guestfs-ocaml.pod:3
32 #: ../perl/examples/guestfs-perl.pod:3 ../python/examples/guestfs-python.pod:3
33 #: ../rescue/virt-rescue.pod:3 ../resize/virt-resize.pod:3
34 #: ../ruby/examples/guestfs-ruby.pod:3 ../sparsify/virt-sparsify.pod:3
35 #: ../src/guestfs.pod:3 ../test-tool/libguestfs-test-tool.pod:3
36 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
37 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
38 #: ../tools/virt-win-reg.pl:35
39 msgid "NAME"
40 msgstr "НАЗВА"
41
42 #. type: textblock
43 #: ../align/virt-alignment-scan.pod:5
44 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
45 msgstr ""
46
47 #. type: =head1
48 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
49 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7
50 #: ../clone/virt-sysprep.pod:7 ../df/virt-df.pod:7 ../edit/virt-edit.pod:7
51 #: ../erlang/examples/guestfs-erlang.pod:7 ../examples/guestfs-examples.pod:7
52 #: ../fish/guestfish.pod:7 ../fish/virt-copy-in.pod:7
53 #: ../fish/virt-copy-out.pod:7 ../fish/virt-tar-in.pod:7
54 #: ../fish/virt-tar-out.pod:7 ../fuse/guestmount.pod:7
55 #: ../inspector/virt-inspector.pod:7 ../java/examples/guestfs-java.pod:7
56 #: ../ocaml/examples/guestfs-ocaml.pod:7 ../perl/examples/guestfs-perl.pod:7
57 #: ../python/examples/guestfs-python.pod:7 ../rescue/virt-rescue.pod:7
58 #: ../resize/virt-resize.pod:7 ../ruby/examples/guestfs-ruby.pod:7
59 #: ../sparsify/virt-sparsify.pod:7 ../src/guestfs.pod:7
60 #: ../test-tool/libguestfs-test-tool.pod:7
61 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
62 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
63 #: ../tools/virt-win-reg.pl:39
64 msgid "SYNOPSIS"
65 msgstr "КОРОТКИЙ ОПИС"
66
67 #. type: verbatim
68 #: ../align/virt-alignment-scan.pod:9
69 #, no-wrap
70 msgid ""
71 " virt-alignment-scan [--options] -d domname\n"
72 "\n"
73 msgstr ""
74
75 #. type: verbatim
76 #: ../align/virt-alignment-scan.pod:11
77 #, no-wrap
78 msgid ""
79 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
80 "\n"
81 msgstr ""
82
83 #. type: =head1
84 #: ../align/virt-alignment-scan.pod:13 ../cat/virt-cat.pod:19
85 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19
86 #: ../clone/virt-sysprep.pod:13 ../df/virt-df.pod:21 ../edit/virt-edit.pod:27
87 #: ../erlang/examples/guestfs-erlang.pod:16
88 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
89 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
90 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
91 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
92 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
93 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
94 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
95 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
96 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
97 #: ../test-tool/libguestfs-test-tool.pod:11
98 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
99 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
100 #: ../tools/virt-win-reg.pl:63
101 msgid "DESCRIPTION"
102 msgstr "ОПИС"
103
104 #. type: textblock
105 #: ../align/virt-alignment-scan.pod:15
106 msgid ""
107 "When older operating systems install themselves, the partitioning tools "
108 "place partitions at a sector misaligned with the underlying storage "
109 "(commonly the first partition starts on sector C<63>).  Misaligned "
110 "partitions can result in an operating system issuing more I/O than should be "
111 "necessary."
112 msgstr ""
113
114 #. type: textblock
115 #: ../align/virt-alignment-scan.pod:21
116 msgid ""
117 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
118 "machines and disk images and warns you if there are alignment problems."
119 msgstr ""
120
121 #. type: textblock
122 #: ../align/virt-alignment-scan.pod:25
123 msgid ""
124 "Currently there is no virt tool for fixing alignment problems.  You can only "
125 "reinstall the guest operating system.  The following NetApp document "
126 "summarises the problem and possible solutions: L<http://media.netapp.com/"
127 "documents/tr-3747.pdf>"
128 msgstr ""
129
130 #. type: =head1
131 #: ../align/virt-alignment-scan.pod:30
132 msgid "OUTPUT"
133 msgstr ""
134
135 #. type: textblock
136 #: ../align/virt-alignment-scan.pod:32
137 msgid "To run this tool on a disk image directly, use the I<-a> option:"
138 msgstr ""
139
140 #. type: verbatim
141 #: ../align/virt-alignment-scan.pod:34
142 #, no-wrap
143 msgid ""
144 " $ virt-alignment-scan -a winxp.img\n"
145 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
146 "\n"
147 msgstr ""
148
149 #. type: verbatim
150 #: ../align/virt-alignment-scan.pod:37
151 #, no-wrap
152 msgid ""
153 " $ virt-alignment-scan -a fedora16.img\n"
154 " /dev/sda1      1048576         1024K   ok\n"
155 " /dev/sda2      2097152         2048K   ok\n"
156 " /dev/sda3    526385152         2048K   ok\n"
157 "\n"
158 msgstr ""
159
160 #. type: textblock
161 #: ../align/virt-alignment-scan.pod:42
162 msgid ""
163 "To run the tool on a guest known to libvirt, use the I<-d> option and "
164 "possibly the I<-c> option:"
165 msgstr ""
166
167 #. type: verbatim
168 #: ../align/virt-alignment-scan.pod:45
169 #, no-wrap
170 msgid ""
171 " # virt-alignment-scan -d RHEL5\n"
172 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
173 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
174 "\n"
175 msgstr ""
176
177 #. type: verbatim
178 #: ../align/virt-alignment-scan.pod:49
179 #, no-wrap
180 msgid ""
181 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
182 " /dev/sda1      1048576         1024K   ok\n"
183 " /dev/sda2    105906176         1024K   ok\n"
184 " /dev/sdb1        65536           64K   ok\n"
185 "\n"
186 msgstr ""
187
188 #. type: textblock
189 #: ../align/virt-alignment-scan.pod:54
190 msgid ""
191 "The output consists of 4 or more whitespace-separated columns.  Only the "
192 "first 4 columns are signficant if you want to parse this from a program.  "
193 "The columns are:"
194 msgstr ""
195
196 #. type: =item
197 #: ../align/virt-alignment-scan.pod:60
198 msgid "col 1"
199 msgstr ""
200
201 #. type: textblock
202 #: ../align/virt-alignment-scan.pod:62
203 msgid ""
204 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
205 "on the first block device)"
206 msgstr ""
207
208 #. type: =item
209 #: ../align/virt-alignment-scan.pod:65
210 msgid "col 2"
211 msgstr ""
212
213 #. type: textblock
214 #: ../align/virt-alignment-scan.pod:67
215 msgid "the start of the partition in bytes"
216 msgstr ""
217
218 #. type: =item
219 #: ../align/virt-alignment-scan.pod:69
220 msgid "col 3"
221 msgstr ""
222
223 #. type: textblock
224 #: ../align/virt-alignment-scan.pod:71
225 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
226 msgstr ""
227
228 #. type: =item
229 #: ../align/virt-alignment-scan.pod:73
230 msgid "col 4"
231 msgstr ""
232
233 #. type: textblock
234 #: ../align/virt-alignment-scan.pod:75
235 msgid ""
236 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
237 "can cause performance problems"
238 msgstr ""
239
240 #. type: =item
241 #: ../align/virt-alignment-scan.pod:78
242 msgid "cols 5+"
243 msgstr ""
244
245 #. type: textblock
246 #: ../align/virt-alignment-scan.pod:80
247 msgid "optional free-text explanation."
248 msgstr ""
249
250 #. type: textblock
251 #: ../align/virt-alignment-scan.pod:84
252 msgid ""
253 "The exit code from the program changes depending on whether poorly aligned "
254 "partitions were found.  See L</EXIT STATUS> below."
255 msgstr ""
256
257 #. type: textblock
258 #: ../align/virt-alignment-scan.pod:87
259 msgid "If you just want the exit code with no output, use the I<-q> option."
260 msgstr ""
261
262 #. type: =head1
263 #: ../align/virt-alignment-scan.pod:89 ../cat/virt-cat.pod:62
264 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261
265 #: ../clone/virt-sysprep.pod:42 ../df/virt-df.pod:59 ../edit/virt-edit.pod:62
266 #: ../fish/guestfish.pod:148 ../fish/virt-copy-in.pod:45
267 #: ../fish/virt-copy-out.pod:34 ../fish/virt-tar-in.pod:42
268 #: ../fish/virt-tar-out.pod:36 ../fuse/guestmount.pod:92
269 #: ../inspector/virt-inspector.pod:55 ../rescue/virt-rescue.pod:84
270 #: ../resize/virt-resize.pod:241 ../sparsify/virt-sparsify.pod:99
271 #: ../test-tool/libguestfs-test-tool.pod:36
272 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
273 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
274 #: ../tools/virt-win-reg.pl:96
275 msgid "OPTIONS"
276 msgstr "ПАРАМЕТРИ"
277
278 #. type: =item
279 #: ../align/virt-alignment-scan.pod:93 ../cat/virt-cat.pod:66
280 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265
281 #: ../clone/virt-sysprep.pod:46 ../df/virt-df.pod:63 ../edit/virt-edit.pod:66
282 #: ../fish/guestfish.pod:152 ../fuse/guestmount.pod:160
283 #: ../inspector/virt-inspector.pod:59 ../rescue/virt-rescue.pod:88
284 #: ../resize/virt-resize.pod:245 ../sparsify/virt-sparsify.pod:103
285 #: ../test-tool/libguestfs-test-tool.pod:40
286 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
287 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
288 #: ../tools/virt-win-reg.pl:104
289 msgid "B<--help>"
290 msgstr "B<--help>"
291
292 #. type: textblock
293 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:68
294 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267
295 #: ../clone/virt-sysprep.pod:48 ../df/virt-df.pod:65 ../edit/virt-edit.pod:68
296 #: ../inspector/virt-inspector.pod:61 ../rescue/virt-rescue.pod:90
297 #: ../tools/virt-list-filesystems.pl:63 ../tools/virt-list-partitions.pl:64
298 #: ../tools/virt-make-fs.pl:163 ../tools/virt-tar.pl:113
299 #: ../tools/virt-win-reg.pl:106
300 msgid "Display brief help."
301 msgstr "Показати коротку довідку."
302
303 #. type: =item
304 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:70
305 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269
306 #: ../clone/virt-sysprep.pod:50 ../df/virt-df.pod:67 ../edit/virt-edit.pod:70
307 #: ../inspector/virt-inspector.pod:63 ../rescue/virt-rescue.pod:92
308 msgid "B<-a> file"
309 msgstr "B<-a> файл"
310
311 #. type: =item
312 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:72
313 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271
314 #: ../clone/virt-sysprep.pod:52 ../df/virt-df.pod:69 ../edit/virt-edit.pod:72
315 #: ../inspector/virt-inspector.pod:65 ../rescue/virt-rescue.pod:94
316 msgid "B<--add> file"
317 msgstr "B<--add> файл"
318
319 #. type: textblock
320 #: ../align/virt-alignment-scan.pod:101 ../clone/virt-sysprep.pod:54
321 msgid "Add I<file> which should be a disk image from a virtual machine."
322 msgstr ""
323
324 #. type: textblock
325 #: ../align/virt-alignment-scan.pod:103 ../cat/virt-cat.pod:78
326 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277
327 #: ../clone/virt-sysprep.pod:56 ../df/virt-df.pod:75 ../edit/virt-edit.pod:78
328 #: ../fish/guestfish.pod:174 ../fuse/guestmount.pod:102
329 #: ../inspector/virt-inspector.pod:71 ../rescue/virt-rescue.pod:100
330 msgid ""
331 "The format of the disk image is auto-detected.  To override this and force a "
332 "particular format use the I<--format=..> option."
333 msgstr ""
334
335 #. type: =item
336 #: ../align/virt-alignment-scan.pod:106 ../cat/virt-cat.pod:81
337 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291
338 #: ../clone/virt-sysprep.pod:59 ../df/virt-df.pod:78
339 #: ../rescue/virt-rescue.pod:107
340 msgid "B<-c> URI"
341 msgstr "B<-c> адреса"
342
343 #. type: =item
344 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:83
345 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293
346 #: ../clone/virt-sysprep.pod:61 ../df/virt-df.pod:80
347 #: ../rescue/virt-rescue.pod:109
348 msgid "B<--connect> URI"
349 msgstr "B<--connect> адреса"
350
351 #. type: textblock
352 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:85
353 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295
354 #: ../clone/virt-sysprep.pod:63 ../df/virt-df.pod:82 ../edit/virt-edit.pod:99
355 #: ../inspector/virt-inspector.pod:78 ../rescue/virt-rescue.pod:111
356 #: ../tools/virt-list-filesystems.pl:81 ../tools/virt-list-partitions.pl:82
357 #: ../tools/virt-tar.pl:131 ../tools/virt-win-reg.pl:132
358 msgid ""
359 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
360 "to the default libvirt hypervisor."
361 msgstr ""
362
363 #. type: textblock
364 #: ../align/virt-alignment-scan.pod:113 ../cat/virt-cat.pod:88
365 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298
366 #: ../clone/virt-sysprep.pod:66 ../df/virt-df.pod:85
367 #: ../rescue/virt-rescue.pod:114
368 msgid ""
369 "If you specify guest block devices directly (I<-a>), then libvirt is not "
370 "used at all."
371 msgstr ""
372
373 #. type: =item
374 #: ../align/virt-alignment-scan.pod:116 ../cat/virt-cat.pod:91
375 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307
376 #: ../clone/virt-sysprep.pod:69 ../df/virt-df.pod:94 ../edit/virt-edit.pod:105
377 #: ../inspector/virt-inspector.pod:85 ../rescue/virt-rescue.pod:117
378 msgid "B<-d> guest"
379 msgstr "B<-d> гість"
380
381 #. type: =item
382 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:93
383 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309
384 #: ../clone/virt-sysprep.pod:71 ../df/virt-df.pod:96 ../edit/virt-edit.pod:107
385 #: ../inspector/virt-inspector.pod:87 ../rescue/virt-rescue.pod:119
386 msgid "B<--domain> guest"
387 msgstr "B<--domain> гість"
388
389 #. type: textblock
390 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:95
391 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311
392 #: ../clone/virt-sysprep.pod:73 ../df/virt-df.pod:98 ../edit/virt-edit.pod:109
393 #: ../inspector/virt-inspector.pod:89 ../rescue/virt-rescue.pod:121
394 msgid ""
395 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
396 "instead of names."
397 msgstr ""
398
399 #. type: =item
400 #: ../align/virt-alignment-scan.pod:123 ../cat/virt-cat.pod:105
401 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
402 #: ../clone/virt-sysprep.pod:95 ../df/virt-df.pod:101
403 #: ../fish/guestfish.pod:233 ../fuse/guestmount.pod:142
404 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
405 msgid "B<--format=raw|qcow2|..>"
406 msgstr "B<--format=raw|qcow2|..>"
407
408 #. type: =item
409 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:107
410 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
411 #: ../clone/virt-sysprep.pod:97 ../df/virt-df.pod:103
412 #: ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
413 #: ../fuse/guestmount.pod:144 ../inspector/virt-inspector.pod:101
414 #: ../rescue/virt-rescue.pod:126
415 msgid "B<--format>"
416 msgstr "B<--format>"
417
418 #. type: textblock
419 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:109
420 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
421 #: ../clone/virt-sysprep.pod:99 ../df/virt-df.pod:105
422 #: ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
423 #: ../fuse/guestmount.pod:146 ../rescue/virt-rescue.pod:128
424 msgid ""
425 "The default for the I<-a> option is to auto-detect the format of the disk "
426 "image.  Using this forces the disk format for I<-a> options which follow on "
427 "the command line.  Using I<--format> with no argument switches back to auto-"
428 "detection for subsequent I<-a> options."
429 msgstr ""
430
431 #. type: textblock
432 #: ../align/virt-alignment-scan.pod:132 ../cat/virt-cat.pod:114
433 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
434 #: ../clone/virt-sysprep.pod:104 ../df/virt-df.pod:110
435 #: ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
436 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336
437 #: ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2862
438 msgid "For example:"
439 msgstr "Приклад:"
440
441 #. type: verbatim
442 #: ../align/virt-alignment-scan.pod:134
443 #, no-wrap
444 msgid ""
445 " virt-alignment-scan --format=raw -a disk.img\n"
446 "\n"
447 msgstr ""
448
449 #. type: textblock
450 #: ../align/virt-alignment-scan.pod:136 ../cat/virt-cat.pod:118
451 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
452 #: ../clone/virt-sysprep.pod:108 ../df/virt-df.pod:114
453 #: ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
454 #: ../rescue/virt-rescue.pod:137
455 msgid "forces raw format (no auto-detection) for C<disk.img>."
456 msgstr ""
457
458 #. type: verbatim
459 #: ../align/virt-alignment-scan.pod:138
460 #, no-wrap
461 msgid ""
462 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
463 "\n"
464 msgstr ""
465
466 #. type: textblock
467 #: ../align/virt-alignment-scan.pod:140 ../cat/virt-cat.pod:122
468 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
469 #: ../clone/virt-sysprep.pod:112 ../df/virt-df.pod:118
470 #: ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
471 #: ../rescue/virt-rescue.pod:141
472 msgid ""
473 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
474 "detection for C<another.img>."
475 msgstr ""
476
477 #. type: textblock
478 #: ../align/virt-alignment-scan.pod:143 ../cat/virt-cat.pod:125
479 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
480 #: ../clone/virt-sysprep.pod:115 ../df/virt-df.pod:121
481 #: ../edit/virt-edit.pod:152 ../rescue/virt-rescue.pod:144
482 msgid ""
483 "If you have untrusted raw-format guest disk images, you should use this "
484 "option to specify the disk format.  This avoids a possible security problem "
485 "with malicious guests (CVE-2010-3851)."
486 msgstr ""
487
488 #. type: =item
489 #: ../align/virt-alignment-scan.pod:147 ../resize/virt-resize.pod:470
490 #: ../sparsify/virt-sparsify.pod:153
491 msgid "B<-q>"
492 msgstr "B<-q>"
493
494 #. type: =item
495 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:472
496 #: ../sparsify/virt-sparsify.pod:155
497 msgid "B<--quiet>"
498 msgstr "B<--quiet>"
499
500 #. type: textblock
501 #: ../align/virt-alignment-scan.pod:151
502 msgid ""
503 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
504 "below)."
505 msgstr ""
506
507 #. type: =item
508 #: ../align/virt-alignment-scan.pod:154 ../cat/virt-cat.pod:134
509 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
510 #: ../clone/virt-sysprep.pod:138 ../df/virt-df.pod:173
511 #: ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
512 #: ../fuse/guestmount.pod:266 ../inspector/virt-inspector.pod:119
513 #: ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:159
514 msgid "B<-v>"
515 msgstr "B<-v>"
516
517 #. type: =item
518 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:136
519 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
520 #: ../clone/virt-sysprep.pod:140 ../df/virt-df.pod:175
521 #: ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
522 #: ../fuse/guestmount.pod:268 ../inspector/virt-inspector.pod:121
523 #: ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
524 msgid "B<--verbose>"
525 msgstr "B<--verbose>"
526
527 #. type: textblock
528 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:138
529 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
530 #: ../clone/virt-sysprep.pod:142 ../df/virt-df.pod:177
531 #: ../edit/virt-edit.pod:165 ../inspector/virt-inspector.pod:123
532 #: ../rescue/virt-rescue.pod:186 ../sparsify/virt-sparsify.pod:163
533 msgid "Enable verbose messages for debugging."
534 msgstr ""
535
536 #. type: =item
537 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:140
538 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
539 #: ../clone/virt-sysprep.pod:144 ../df/virt-df.pod:179
540 #: ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
541 #: ../fuse/guestmount.pod:272 ../inspector/virt-inspector.pod:125
542 #: ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:540
543 #: ../sparsify/virt-sparsify.pod:165
544 msgid "B<-V>"
545 msgstr "B<-V>"
546
547 #. type: =item
548 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:142
549 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
550 #: ../clone/virt-sysprep.pod:146 ../df/virt-df.pod:181
551 #: ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
552 #: ../fuse/guestmount.pod:274 ../inspector/virt-inspector.pod:127
553 #: ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:542
554 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
555 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
556 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
557 msgid "B<--version>"
558 msgstr "B<--version>"
559
560 #. type: textblock
561 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:144
562 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
563 #: ../clone/virt-sysprep.pod:148 ../df/virt-df.pod:183
564 #: ../edit/virt-edit.pod:171 ../inspector/virt-inspector.pod:129
565 #: ../rescue/virt-rescue.pod:192 ../resize/virt-resize.pod:544
566 #: ../sparsify/virt-sparsify.pod:169 ../tools/virt-list-filesystems.pl:71
567 #: ../tools/virt-list-partitions.pl:72 ../tools/virt-make-fs.pl:171
568 #: ../tools/virt-tar.pl:121 ../tools/virt-win-reg.pl:114
569 msgid "Display version number and exit."
570 msgstr "Показати дані щодо версії і завершити роботу."
571
572 #. type: =item
573 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:146
574 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
575 #: ../clone/virt-sysprep.pod:150 ../df/virt-df.pod:185
576 #: ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
577 #: ../fuse/guestmount.pod:287 ../inspector/virt-inspector.pod:131
578 #: ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171
579 #: ../tools/virt-tar.pl:158
580 msgid "B<-x>"
581 msgstr "B<-x>"
582
583 #. type: textblock
584 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:148
585 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
586 #: ../clone/virt-sysprep.pod:152 ../df/virt-df.pod:187
587 #: ../edit/virt-edit.pod:175 ../inspector/virt-inspector.pod:133
588 #: ../rescue/virt-rescue.pod:205 ../sparsify/virt-sparsify.pod:173
589 msgid "Enable tracing of libguestfs API calls."
590 msgstr ""
591
592 #. type: =head1
593 #: ../align/virt-alignment-scan.pod:172
594 msgid "RECOMMENDED ALIGNMENT"
595 msgstr ""
596
597 #. type: textblock
598 #: ../align/virt-alignment-scan.pod:174
599 msgid ""
600 "Operating systems older than Windows 2008 and Linux before ca.2010 place the "
601 "first sector of the first partition at sector 63, with a 512 byte sector "
602 "size.  This happens because of a historical accident.  Drives have to report "
603 "a cylinder / head / sector (CHS) geometry to the BIOS.  The geometry is "
604 "completely meaningless on modern drives, but it happens that the geometry "
605 "reported always has 63 sectors per track.  The operating system therefore "
606 "places the first partition at the start of the second \"track\", at sector "
607 "63."
608 msgstr ""
609
610 #. type: textblock
611 #: ../align/virt-alignment-scan.pod:183
612 msgid ""
613 "When the guest OS is virtualized, the host operating system and hypervisor "
614 "may prefer accesses aligned to one of:"
615 msgstr ""
616
617 #. type: =item
618 #: ../align/virt-alignment-scan.pod:188
619 msgid "* 512 bytes"
620 msgstr ""
621
622 #. type: textblock
623 #: ../align/virt-alignment-scan.pod:190
624 msgid ""
625 "if the host OS uses local storage directly on hard drive partitions, and the "
626 "hard drive has 512 byte physical sectors."
627 msgstr ""
628
629 #. type: =item
630 #: ../align/virt-alignment-scan.pod:193
631 msgid "* 4 Kbytes"
632 msgstr ""
633
634 #. type: textblock
635 #: ../align/virt-alignment-scan.pod:195
636 msgid ""
637 "for local storage on new hard drives with 4Kbyte physical sectors; for file-"
638 "backed storage on filesystems with 4Kbyte block size; or for some types of "
639 "network-attached storage."
640 msgstr ""
641
642 #. type: =item
643 #: ../align/virt-alignment-scan.pod:199
644 msgid "* 64 Kbytes"
645 msgstr ""
646
647 #. type: textblock
648 #: ../align/virt-alignment-scan.pod:201
649 msgid ""
650 "for high-end network-attached storage.  This is the optimal block size for "
651 "some NetApp hardware."
652 msgstr ""
653
654 #. type: =item
655 #: ../align/virt-alignment-scan.pod:204
656 msgid "* 1 Mbyte"
657 msgstr ""
658
659 #. type: textblock
660 #: ../align/virt-alignment-scan.pod:206
661 msgid "see L</1 MB PARTITION ALIGNMENT> below."
662 msgstr ""
663
664 #. type: textblock
665 #: ../align/virt-alignment-scan.pod:210
666 msgid ""
667 "Partitions which are not aligned correctly to the underlying storage cause "
668 "extra I/O.  For example:"
669 msgstr ""
670
671 #. type: verbatim
672 #: ../align/virt-alignment-scan.pod:213
673 #, no-wrap
674 msgid ""
675 "                       sect#63\n"
676 "                       +--------------------------+------\n"
677 "                       |         guest            |\n"
678 "                       |    filesystem block      |\n"
679 " ---+------------------+------+-------------------+-----+---\n"
680 "    |  host block             |  host block             |\n"
681 "    |                         |                         |\n"
682 " ---+-------------------------+-------------------------+---\n"
683 "\n"
684 msgstr ""
685
686 #. type: textblock
687 #: ../align/virt-alignment-scan.pod:222
688 msgid ""
689 "In this example, each time a 4K guest block is read, two blocks on the host "
690 "must be accessed (so twice as much I/O is done).  When a 4K guest block is "
691 "written, two host blocks must first be read, the old and new data combined, "
692 "and the two blocks written back (4x I/O)."
693 msgstr ""
694
695 #. type: =head2
696 #: ../align/virt-alignment-scan.pod:227
697 msgid "LINUX HOST BLOCK AND I/O SIZE"
698 msgstr ""
699
700 #. type: textblock
701 #: ../align/virt-alignment-scan.pod:229
702 msgid ""
703 "New versions of the Linux kernel expose the physical and logical block size, "
704 "and minimum and recommended I/O size."
705 msgstr ""
706
707 #. type: textblock
708 #: ../align/virt-alignment-scan.pod:232
709 msgid "For a typical hard drive with 512 byte sectors:"
710 msgstr ""
711
712 #. type: verbatim
713 #: ../align/virt-alignment-scan.pod:234
714 #, no-wrap
715 msgid ""
716 " $ cat /sys/block/sda/queue/physical_block_size\n"
717 " 512\n"
718 " $ cat /sys/block/sda/queue/logical_block_size\n"
719 " 512\n"
720 " $ cat /sys/block/sda/queue/minimum_io_size\n"
721 " 512\n"
722 " $ cat /sys/block/sda/queue/optimal_io_size\n"
723 " 0\n"
724 "\n"
725 msgstr ""
726
727 #. type: textblock
728 #: ../align/virt-alignment-scan.pod:243
729 msgid "For a NetApp LUN:"
730 msgstr ""
731
732 #. type: verbatim
733 #: ../align/virt-alignment-scan.pod:245
734 #, no-wrap
735 msgid ""
736 " $ cat /sys/block/sdc/queue/logical_block_size\n"
737 " 512\n"
738 " $ cat /sys/block/sdc/queue/physical_block_size\n"
739 " 512\n"
740 " $ cat /sys/block/sdc/queue/minimum_io_size\n"
741 " 4096\n"
742 " $ cat /sys/block/sdc/queue/optimal_io_size\n"
743 " 65536\n"
744 "\n"
745 msgstr ""
746
747 #. type: textblock
748 #: ../align/virt-alignment-scan.pod:254
749 msgid ""
750 "The NetApp allows 512 byte accesses (but they will be very inefficient), "
751 "prefers a minimum 4K I/O size, but the optimal I/O size is 64K."
752 msgstr ""
753
754 #. type: textblock
755 #: ../align/virt-alignment-scan.pod:258
756 msgid ""
757 "For detailed information about what these numbers mean, see L<http://docs."
758 "redhat.com/docs/en-US/Red_Hat_Enterprise_Linux/6/html/"
759 "Storage_Administration_Guide/newstorage-iolimits.html>"
760 msgstr ""
761
762 #. type: textblock
763 #: ../align/virt-alignment-scan.pod:261
764 msgid ""
765 "[Thanks to Mike Snitzer for providing NetApp data and additional "
766 "information.]"
767 msgstr ""
768
769 #. type: =head2
770 #: ../align/virt-alignment-scan.pod:264
771 msgid "1 MB PARTITION ALIGNMENT"
772 msgstr ""
773
774 #. type: textblock
775 #: ../align/virt-alignment-scan.pod:266
776 msgid ""
777 "Microsoft picked 1 MB as the default alignment for all partitions starting "
778 "with Windows 2008 Server, and Linux has followed this."
779 msgstr ""
780
781 #. type: textblock
782 #: ../align/virt-alignment-scan.pod:269
783 msgid ""
784 "Assuming 512 byte sectors in the guest, you will now see the first partition "
785 "starting at sector 2048, and subsequent partitions (if any)  will start at a "
786 "multiple of 2048 sectors."
787 msgstr ""
788
789 #. type: textblock
790 #: ../align/virt-alignment-scan.pod:273
791 msgid ""
792 "1 MB alignment is compatible with all current alignment requirements (4K, "
793 "64K) and provides room for future growth in physical block sizes."
794 msgstr ""
795
796 #. type: =head2
797 #: ../align/virt-alignment-scan.pod:276
798 msgid "SETTING ALIGNMENT"
799 msgstr ""
800
801 #. type: textblock
802 #: ../align/virt-alignment-scan.pod:278
803 msgid ""
804 "L<virt-resize(1)> can change the alignment of the partitions of some "
805 "guests.  Currently it can fully align all the partitions of all Windows "
806 "guests, and it will fix the bootloader where necessary.  For Linux guests, "
807 "it can align the second and subsequent partitions, so the majority of OS "
808 "accesses except at boot will be aligned."
809 msgstr ""
810
811 #. type: textblock
812 #: ../align/virt-alignment-scan.pod:284
813 msgid ""
814 "Another way to correct partition alignment problems is to reinstall your "
815 "guest operating systems.  If you install operating systems from templates, "
816 "ensure these have correct partition alignment too."
817 msgstr ""
818
819 #. type: textblock
820 #: ../align/virt-alignment-scan.pod:288
821 msgid ""
822 "For older versions of Windows, the following NetApp document contains useful "
823 "information: L<http://media.netapp.com/documents/tr-3747.pdf>"
824 msgstr ""
825
826 #. type: textblock
827 #: ../align/virt-alignment-scan.pod:291
828 msgid ""
829 "For Red Hat Enterprise Linux E<le> 5, use a Kickstart script that contains "
830 "an explicit C<%pre> section that creates aligned partitions using L<parted(8)"
831 ">.  Do not use the Kickstart C<part> command.  The NetApp document above "
832 "contains an example."
833 msgstr ""
834
835 #. type: =head1
836 #: ../align/virt-alignment-scan.pod:296 ../cat/virt-cat.pod:191
837 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:483
838 #: ../clone/virt-sysprep.pod:475 ../df/virt-df.pod:215
839 #: ../edit/virt-edit.pod:342 ../inspector/virt-inspector.pod:352
840 #: ../rescue/virt-rescue.pod:266 ../resize/virt-resize.pod:655
841 #: ../tools/virt-list-filesystems.pl:188 ../tools/virt-list-partitions.pl:258
842 #: ../tools/virt-make-fs.pl:532 ../tools/virt-tar.pl:289
843 #: ../tools/virt-win-reg.pl:733
844 msgid "SHELL QUOTING"
845 msgstr ""
846
847 #. type: textblock
848 #: ../align/virt-alignment-scan.pod:298 ../cat/virt-cat.pod:193
849 #: ../cat/virt-filesystems.pod:367 ../cat/virt-ls.pod:485
850 #: ../clone/virt-sysprep.pod:477 ../df/virt-df.pod:217
851 #: ../edit/virt-edit.pod:344 ../inspector/virt-inspector.pod:354
852 #: ../rescue/virt-rescue.pod:268 ../resize/virt-resize.pod:657
853 #: ../tools/virt-list-filesystems.pl:190 ../tools/virt-list-partitions.pl:260
854 #: ../tools/virt-make-fs.pl:534 ../tools/virt-tar.pl:291
855 #: ../tools/virt-win-reg.pl:741
856 msgid ""
857 "Libvirt guest names can contain arbitrary characters, some of which have "
858 "meaning to the shell such as C<#> and space.  You may need to quote or "
859 "escape these characters on the command line.  See the shell manual page L<sh"
860 "(1)> for details."
861 msgstr ""
862
863 #. type: =head1
864 #: ../align/virt-alignment-scan.pod:303 ../cat/virt-cat.pod:198
865 #: ../cat/virt-filesystems.pod:372 ../cat/virt-ls.pod:490
866 #: ../clone/virt-sysprep.pod:482 ../df/virt-df.pod:222
867 #: ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1114
868 #: ../fuse/guestmount.pod:312 ../inspector/virt-inspector.pod:375
869 #: ../resize/virt-resize.pod:662 ../sparsify/virt-sparsify.pod:227
870 #: ../test-tool/libguestfs-test-tool.pod:90
871 msgid "EXIT STATUS"
872 msgstr ""
873
874 #. type: textblock
875 #: ../align/virt-alignment-scan.pod:305
876 msgid "This program returns:"
877 msgstr ""
878
879 #. type: =item
880 #: ../align/virt-alignment-scan.pod:309 ../align/virt-alignment-scan.pod:315
881 #: ../align/virt-alignment-scan.pod:321 ../align/virt-alignment-scan.pod:328
882 #: ../clone/virt-sysprep.pod:283 ../clone/virt-sysprep.pod:287
883 #: ../clone/virt-sysprep.pod:291 ../clone/virt-sysprep.pod:295
884 #: ../clone/virt-sysprep.pod:310 ../clone/virt-sysprep.pod:314
885 #: ../clone/virt-sysprep.pod:318 ../clone/virt-sysprep.pod:322
886 #: ../clone/virt-sysprep.pod:326 ../clone/virt-sysprep.pod:362
887 #: ../clone/virt-sysprep.pod:384 ../clone/virt-sysprep.pod:388
888 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
889 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
890 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
891 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
892 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
893 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
894 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
895 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
896 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
897 #: ../fish/guestfish-actions.pod:395 ../fish/guestfish-actions.pod:403
898 #: ../fish/guestfish-actions.pod:410 ../fish/guestfish-actions.pod:417
899 #: ../fish/guestfish-actions.pod:1144 ../fish/guestfish-actions.pod:1148
900 #: ../fish/guestfish-actions.pod:1152 ../fish/guestfish-actions.pod:1156
901 #: ../fish/guestfish-actions.pod:1164 ../fish/guestfish-actions.pod:1168
902 #: ../fish/guestfish-actions.pod:1172 ../fish/guestfish-actions.pod:1182
903 #: ../fish/guestfish-actions.pod:1186 ../fish/guestfish-actions.pod:1190
904 #: ../fish/guestfish-actions.pod:1280 ../fish/guestfish-actions.pod:1284
905 #: ../fish/guestfish-actions.pod:1289 ../fish/guestfish-actions.pod:1294
906 #: ../fish/guestfish-actions.pod:1336 ../fish/guestfish-actions.pod:1340
907 #: ../fish/guestfish-actions.pod:1345 ../fish/guestfish-actions.pod:1601
908 #: ../fish/guestfish-actions.pod:1608 ../fish/guestfish-actions.pod:1615
909 #: ../fish/guestfish-actions.pod:2018 ../fish/guestfish-actions.pod:2024
910 #: ../fish/guestfish-actions.pod:2032 ../fish/guestfish-actions.pod:2039
911 #: ../fish/guestfish-actions.pod:2046 ../fish/guestfish.pod:445
912 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
913 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
914 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:338
915 #: ../resize/virt-resize.pod:342 ../resize/virt-resize.pod:351
916 #: ../resize/virt-resize.pod:357 ../sparsify/virt-sparsify.pod:32
917 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
918 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
919 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
920 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
921 #: ../src/guestfs-actions.pod:594 ../src/guestfs-actions.pod:602
922 #: ../src/guestfs-actions.pod:609 ../src/guestfs-actions.pod:616
923 #: ../src/guestfs-actions.pod:1784 ../src/guestfs-actions.pod:1788
924 #: ../src/guestfs-actions.pod:1792 ../src/guestfs-actions.pod:1796
925 #: ../src/guestfs-actions.pod:1804 ../src/guestfs-actions.pod:1808
926 #: ../src/guestfs-actions.pod:1812 ../src/guestfs-actions.pod:1822
927 #: ../src/guestfs-actions.pod:1826 ../src/guestfs-actions.pod:1830
928 #: ../src/guestfs-actions.pod:1968 ../src/guestfs-actions.pod:1972
929 #: ../src/guestfs-actions.pod:1977 ../src/guestfs-actions.pod:1982
930 #: ../src/guestfs-actions.pod:2043 ../src/guestfs-actions.pod:2047
931 #: ../src/guestfs-actions.pod:2052 ../src/guestfs-actions.pod:2467
932 #: ../src/guestfs-actions.pod:2474 ../src/guestfs-actions.pod:2481
933 #: ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3032
934 #: ../src/guestfs-actions.pod:3040 ../src/guestfs-actions.pod:3047
935 #: ../src/guestfs-actions.pod:3054 ../src/guestfs.pod:388
936 #: ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402
937 #: ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416
938 #: ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098
939 #: ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115
940 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164
941 #: ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176
942 #: ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674
943 #: ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785
944 #: ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804
945 #: ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104
946 #: ../src/guestfs.pod:2112 ../src/guestfs.pod:2630 ../src/guestfs.pod:2636
947 #: ../src/guestfs.pod:2641 ../src/guestfs.pod:2647 ../src/guestfs.pod:3047
948 #: ../src/guestfs.pod:3052 ../src/guestfs.pod:3056 ../src/guestfs.pod:3060
949 #: ../src/guestfs.pod:3064 ../src/guestfs.pod:3078 ../src/guestfs.pod:3083
950 #: ../src/guestfs.pod:3314 ../src/guestfs.pod:3318 ../src/guestfs.pod:3322
951 #: ../src/guestfs.pod:3326 ../tools/virt-win-reg.pl:197
952 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
953 #: ../tools/virt-win-reg.pl:710 ../tools/virt-win-reg.pl:716
954 #: ../tools/virt-win-reg.pl:722
955 msgid "*"
956 msgstr "*"
957
958 #. type: textblock
959 #: ../align/virt-alignment-scan.pod:311
960 msgid "0"
961 msgstr ""
962
963 #. type: textblock
964 #: ../align/virt-alignment-scan.pod:313
965 msgid ""
966 "successful exit, all partitions are aligned E<ge> 64K for best performance"
967 msgstr ""
968
969 #. type: textblock
970 #: ../align/virt-alignment-scan.pod:317
971 msgid "1"
972 msgstr ""
973
974 #. type: textblock
975 #: ../align/virt-alignment-scan.pod:319
976 msgid "an error scanning the disk image or guest"
977 msgstr ""
978
979 #. type: textblock
980 #: ../align/virt-alignment-scan.pod:323
981 msgid "2"
982 msgstr ""
983
984 #. type: textblock
985 #: ../align/virt-alignment-scan.pod:325
986 msgid ""
987 "successful exit, some partitions have alignment E<lt> 64K which can result "
988 "in poor performance on high end network storage"
989 msgstr ""
990
991 #. type: textblock
992 #: ../align/virt-alignment-scan.pod:330
993 msgid "3"
994 msgstr ""
995
996 #. type: textblock
997 #: ../align/virt-alignment-scan.pod:332
998 msgid ""
999 "successful exit, some partitions have alignment E<lt> 4K which can result in "
1000 "poor performance on most hypervisors"
1001 msgstr ""
1002
1003 #. type: =head1
1004 #: ../align/virt-alignment-scan.pod:337 ../cat/virt-cat.pod:203
1005 #: ../cat/virt-filesystems.pod:377 ../cat/virt-ls.pod:495
1006 #: ../clone/virt-sysprep.pod:486 ../df/virt-df.pod:227
1007 #: ../edit/virt-edit.pod:354 ../erlang/examples/guestfs-erlang.pod:97
1008 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
1009 #: ../fish/guestfish.pod:1268 ../fish/virt-copy-in.pod:50
1010 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
1011 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:317
1012 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
1013 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
1014 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
1015 #: ../resize/virt-resize.pod:667 ../ruby/examples/guestfs-ruby.pod:36
1016 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3255
1017 #: ../test-tool/libguestfs-test-tool.pod:100
1018 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
1019 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
1020 #: ../tools/virt-win-reg.pl:746
1021 msgid "SEE ALSO"
1022 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
1023
1024 #. type: textblock
1025 #: ../align/virt-alignment-scan.pod:339
1026 msgid ""
1027 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-rescue(1)>, "
1028 "L<virt-resize(1)>, L<http://libguestfs.org/>."
1029 msgstr ""
1030
1031 #. type: =head1
1032 #: ../align/virt-alignment-scan.pod:346 ../cat/virt-cat.pod:212
1033 #: ../cat/virt-filesystems.pod:388 ../cat/virt-ls.pod:507
1034 #: ../clone/virt-sysprep.pod:501 ../df/virt-df.pod:235
1035 #: ../edit/virt-edit.pod:368 ../rescue/virt-rescue.pod:296
1036 #: ../resize/virt-resize.pod:690 ../sparsify/virt-sparsify.pod:264
1037 #: ../tools/virt-list-filesystems.pl:208 ../tools/virt-list-partitions.pl:277
1038 #: ../tools/virt-make-fs.pl:564 ../tools/virt-tar.pl:311
1039 #: ../tools/virt-win-reg.pl:772
1040 msgid "AUTHOR"
1041 msgstr "АВТОР"
1042
1043 #. type: textblock
1044 #: ../align/virt-alignment-scan.pod:348 ../cat/virt-cat.pod:214
1045 #: ../cat/virt-filesystems.pod:390 ../cat/virt-ls.pod:509
1046 #: ../clone/virt-sysprep.pod:503 ../df/virt-df.pod:237
1047 #: ../edit/virt-edit.pod:370 ../inspector/virt-inspector.pod:395
1048 #: ../rescue/virt-rescue.pod:298 ../resize/virt-resize.pod:692
1049 #: ../sparsify/virt-sparsify.pod:266 ../tools/virt-list-filesystems.pl:210
1050 #: ../tools/virt-list-partitions.pl:279 ../tools/virt-make-fs.pl:566
1051 #: ../tools/virt-tar.pl:313 ../tools/virt-win-reg.pl:774
1052 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1053 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
1054
1055 #. type: =head1
1056 #: ../align/virt-alignment-scan.pod:350 ../cat/virt-cat.pod:216
1057 #: ../cat/virt-filesystems.pod:392 ../cat/virt-ls.pod:511
1058 #: ../clone/virt-sysprep.pod:505 ../df/virt-df.pod:239
1059 #: ../edit/virt-edit.pod:372 ../erlang/examples/guestfs-erlang.pod:114
1060 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
1061 #: ../fish/guestfish.pod:1300 ../fish/virt-copy-in.pod:64
1062 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
1063 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:332
1064 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
1065 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
1066 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
1067 #: ../resize/virt-resize.pod:694 ../ruby/examples/guestfs-ruby.pod:52
1068 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3337
1069 #: ../test-tool/libguestfs-test-tool.pod:110
1070 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
1071 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
1072 #: ../tools/virt-win-reg.pl:776
1073 msgid "COPYRIGHT"
1074 msgstr "АВТОРСЬКІ ПРАВА"
1075
1076 #. type: textblock
1077 #: ../align/virt-alignment-scan.pod:352 ../clone/virt-sysprep.pod:507
1078 #: ../sparsify/virt-sparsify.pod:270
1079 msgid "Copyright (C) 2011 Red Hat Inc."
1080 msgstr ""
1081
1082 #. type: textblock
1083 #: ../align/virt-alignment-scan.pod:354 ../cat/virt-cat.pod:220
1084 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:515
1085 #: ../clone/virt-sysprep.pod:509 ../df/virt-df.pod:243
1086 #: ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1305
1087 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
1088 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
1089 #: ../fuse/guestmount.pod:337 ../inspector/virt-inspector.pod:407
1090 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:698
1091 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
1092 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
1093 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
1094 #: ../tools/virt-win-reg.pl:780
1095 msgid ""
1096 "This program is free software; you can redistribute it and/or modify it "
1097 "under the terms of the GNU General Public License as published by the Free "
1098 "Software Foundation; either version 2 of the License, or (at your option) "
1099 "any later version."
1100 msgstr ""
1101
1102 #. type: textblock
1103 #: ../align/virt-alignment-scan.pod:359 ../cat/virt-cat.pod:225
1104 #: ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520
1105 #: ../clone/virt-sysprep.pod:514 ../df/virt-df.pod:248
1106 #: ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1310
1107 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
1108 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
1109 #: ../fuse/guestmount.pod:342 ../inspector/virt-inspector.pod:412
1110 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:703
1111 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
1112 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
1113 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
1114 #: ../tools/virt-win-reg.pl:785
1115 msgid ""
1116 "This program is distributed in the hope that it will be useful, but WITHOUT "
1117 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
1118 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
1119 "more details."
1120 msgstr ""
1121 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
1122 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
1123 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
1124 "дізнатися з GNU General Public License."
1125
1126 #. type: textblock
1127 #: ../align/virt-alignment-scan.pod:364 ../cat/virt-cat.pod:230
1128 #: ../cat/virt-filesystems.pod:406 ../cat/virt-ls.pod:525
1129 #: ../clone/virt-sysprep.pod:519 ../df/virt-df.pod:253
1130 #: ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1315
1131 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
1132 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
1133 #: ../fuse/guestmount.pod:347 ../inspector/virt-inspector.pod:417
1134 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:708
1135 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
1136 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
1137 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
1138 #: ../tools/virt-win-reg.pl:790
1139 msgid ""
1140 "You should have received a copy of the GNU General Public License along with "
1141 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
1142 "Ave, Cambridge, MA 02139, USA."
1143 msgstr ""
1144 "Ви маєте отримати копію GNU General Public License разом з цією програмою; "
1145 "якщо це не так, повідомте про факт за адресою Free Software Foundation, "
1146 "Inc., 675 Mass Ave, Cambridge, MA 02139, USA."
1147
1148 #. type: textblock
1149 #: ../cat/virt-cat.pod:5
1150 msgid "virt-cat - Display files in a virtual machine"
1151 msgstr "virt-cat — показ файлів у віртуальній машині"
1152
1153 #. type: verbatim
1154 #: ../cat/virt-cat.pod:9
1155 #, no-wrap
1156 msgid ""
1157 " virt-cat [--options] -d domname file [file ...]\n"
1158 "\n"
1159 msgstr ""
1160 " virt-cat [--параметри] -d назва_домену файл [файл...]\n"
1161 "\n"
1162
1163 #. type: verbatim
1164 #: ../cat/virt-cat.pod:11
1165 #, no-wrap
1166 msgid ""
1167 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
1168 "\n"
1169 msgstr ""
1170 " virt-cat [--параметри] -a диск.img [-a диск.img ...] файл [файл...]\n"
1171 "\n"
1172
1173 #. type: textblock
1174 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
1175 #: ../inspector/virt-inspector.pod:13
1176 msgid "Old-style:"
1177 msgstr "Застарілий стиль:"
1178
1179 #. type: verbatim
1180 #: ../cat/virt-cat.pod:15
1181 #, no-wrap
1182 msgid ""
1183 " virt-cat domname file\n"
1184 "\n"
1185 msgstr ""
1186 " virt-cat назва_домену файл\n"
1187 "\n"
1188
1189 #. type: verbatim
1190 #: ../cat/virt-cat.pod:17
1191 #, no-wrap
1192 msgid ""
1193 " virt-cat disk.img file\n"
1194 "\n"
1195 msgstr ""
1196 " virt-cat диск.img файл\n"
1197 "\n"
1198
1199 #. type: textblock
1200 #: ../cat/virt-cat.pod:21
1201 msgid ""
1202 "C<virt-cat> is a command line tool to display the contents of C<file> where "
1203 "C<file> exists in the named virtual machine (or disk image)."
1204 msgstr ""
1205 "C<virt-cat> — інструмент командного рядка для показу вмісту C<файла>, який "
1206 "зберігається у вказаній віртуальній машині (або образі диска)."
1207
1208 #. type: textblock
1209 #: ../cat/virt-cat.pod:24
1210 msgid ""
1211 "Multiple filenames can be given, in which case they are concatenated "
1212 "together.  Each filename must be a full path, starting at the root directory "
1213 "(starting with '/')."
1214 msgstr ""
1215 "Ви можете вказати декілька назв файлів. Вміст таких файлів буде об’єднано. "
1216 "Назви файлів слід вказувати повністю (разом зі шляхом), починаючи з "
1217 "кореневого каталогу (тобто назва має починатися з «/»)."
1218
1219 #. type: textblock
1220 #: ../cat/virt-cat.pod:28
1221 msgid ""
1222 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
1223 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
1224 "(see L</USING GUESTFISH> below)."
1225 msgstr ""
1226 "C<virt-cat> можна скористатися для пришвидшення перегляду файла. Для "
1227 "редагування даних слід користуватися C<virt-edit>. Для виконання складніших "
1228 "дій можна скористатися програмою L<guestfish(1)> (див. L</USING GUESTFISH> "
1229 "нижче)."
1230
1231 #. type: =head1
1232 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
1233 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
1234 #: ../fish/guestfish.pod:1051 ../fish/virt-copy-in.pod:29
1235 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
1236 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
1237 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
1238 #: ../tools/virt-tar.pl:50
1239 msgid "EXAMPLES"
1240 msgstr "ПРИКЛАДИ"
1241
1242 #. type: textblock
1243 #: ../cat/virt-cat.pod:34
1244 msgid ""
1245 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
1246 msgstr ""
1247 "Показ файла C</etc/fstab> з віртуальної машини libvirt з назвою C<mydomain>:"
1248
1249 #. type: verbatim
1250 #: ../cat/virt-cat.pod:37
1251 #, no-wrap
1252 msgid ""
1253 " virt-cat -d mydomain /etc/fstab\n"
1254 "\n"
1255 msgstr ""
1256 " virt-cat -d mydomain /etc/fstab\n"
1257 "\n"
1258
1259 #. type: textblock
1260 #: ../cat/virt-cat.pod:39
1261 msgid "List syslog messages from a VM disk image file:"
1262 msgstr ""
1263 "Показ списку повідомлень syslog з файла образу диска віртуальної машини:"
1264
1265 #. type: verbatim
1266 #: ../cat/virt-cat.pod:41
1267 #, no-wrap
1268 msgid ""
1269 " virt-cat -a disk.img /var/log/messages | tail\n"
1270 "\n"
1271 msgstr ""
1272 " virt-cat -a disk.img /var/log/messages | tail\n"
1273 "\n"
1274
1275 #. type: textblock
1276 #: ../cat/virt-cat.pod:43
1277 msgid "Find out what DHCP IP address a VM acquired:"
1278 msgstr "Визначення IP-адреси DHCP, використаної віртуальною машиною:"
1279
1280 #. type: verbatim
1281 #: ../cat/virt-cat.pod:45
1282 #, no-wrap
1283 msgid ""
1284 " virt-cat -d mydomain /var/log/messages | \\\n"
1285 "   grep 'dhclient: bound to' | tail\n"
1286 "\n"
1287 msgstr ""
1288 " virt-cat -d mydomain /var/log/messages | \\\n"
1289 "   grep 'dhclient: bound to' | tail\n"
1290 "\n"
1291
1292 #. type: textblock
1293 #: ../cat/virt-cat.pod:48
1294 msgid "Find out what packages were recently installed:"
1295 msgstr "Пошук нещодавно встановлених пакунків:"
1296
1297 #. type: verbatim
1298 #: ../cat/virt-cat.pod:50
1299 #, no-wrap
1300 msgid ""
1301 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1302 "\n"
1303 msgstr ""
1304 " virt-cat -d mydomain /var/log/yum.log | tail\n"
1305 "\n"
1306
1307 #. type: textblock
1308 #: ../cat/virt-cat.pod:52
1309 msgid "Find out who is logged on inside a virtual machine:"
1310 msgstr "Визначення користувачів, які працюють у віртуальній машині:"
1311
1312 #. type: verbatim
1313 #: ../cat/virt-cat.pod:54
1314 #, no-wrap
1315 msgid ""
1316 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1317 " who /tmp/utmp\n"
1318 "\n"
1319 msgstr ""
1320 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
1321 " who /tmp/utmp\n"
1322 "\n"
1323
1324 #. type: textblock
1325 #: ../cat/virt-cat.pod:57
1326 msgid "or who was logged on:"
1327 msgstr "або тих, які у ній працювали:"
1328
1329 #. type: verbatim
1330 #: ../cat/virt-cat.pod:59
1331 #, no-wrap
1332 msgid ""
1333 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1334 " last -f /tmp/wtmp\n"
1335 "\n"
1336 msgstr ""
1337 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1338 " last -f /tmp/wtmp\n"
1339 "\n"
1340
1341 #. type: textblock
1342 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1343 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1344 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1345 msgid ""
1346 "Add I<file> which should be a disk image from a virtual machine.  If the "
1347 "virtual machine has multiple block devices, you must supply all of them with "
1348 "separate I<-a> options."
1349 msgstr ""
1350
1351 #. type: =item
1352 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1353 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1354 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:92
1355 msgid "B<--echo-keys>"
1356 msgstr "B<--echo-keys>"
1357
1358 #. type: textblock
1359 #: ../cat/virt-cat.pod:100
1360 msgid ""
1361 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1362 "so you cannot see what you are typing.  If you are not worried about Tempest "
1363 "attacks and there is no one else in the room you can specify this flag to "
1364 "see what you are typing."
1365 msgstr ""
1366
1367 #. type: verbatim
1368 #: ../cat/virt-cat.pod:116
1369 #, no-wrap
1370 msgid ""
1371 " virt-cat --format=raw -a disk.img file\n"
1372 "\n"
1373 msgstr ""
1374 " virt-cat --format=raw -a disk.img file\n"
1375 "\n"
1376
1377 #. type: verbatim
1378 #: ../cat/virt-cat.pod:120
1379 #, no-wrap
1380 msgid ""
1381 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1382 "\n"
1383 msgstr ""
1384 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1385 "\n"
1386
1387 #. type: =item
1388 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1389 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1390 #: ../fuse/guestmount.pod:172 ../inspector/virt-inspector.pod:114
1391 msgid "B<--keys-from-stdin>"
1392 msgstr "B<--keys-from-stdin>"
1393
1394 #. type: textblock
1395 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1396 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1397 #: ../fuse/guestmount.pod:174 ../inspector/virt-inspector.pod:116
1398 msgid ""
1399 "Read key or passphrase parameters from stdin.  The default is to try to read "
1400 "passphrases from the user by opening C</dev/tty>."
1401 msgstr ""
1402
1403 #. type: =head1
1404 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1405 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
1406 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1407 msgstr ""
1408
1409 #. type: textblock
1410 #: ../cat/virt-cat.pod:154
1411 msgid "Previous versions of virt-cat allowed you to write either:"
1412 msgstr ""
1413
1414 #. type: verbatim
1415 #: ../cat/virt-cat.pod:156
1416 #, no-wrap
1417 msgid ""
1418 " virt-cat disk.img [disk.img ...] file\n"
1419 "\n"
1420 msgstr ""
1421
1422 #. type: textblock
1423 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1424 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1425 msgid "or"
1426 msgstr "або"
1427
1428 #. type: verbatim
1429 #: ../cat/virt-cat.pod:160
1430 #, no-wrap
1431 msgid ""
1432 " virt-cat guestname file\n"
1433 "\n"
1434 msgstr ""
1435
1436 #. type: textblock
1437 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1438 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1439 msgid ""
1440 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1441 "the confusing case where a disk image might have the same name as a guest."
1442 msgstr ""
1443
1444 #. type: textblock
1445 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1446 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1447 msgid "For compatibility the old style is still supported."
1448 msgstr ""
1449
1450 #. type: =head1
1451 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
1452 msgid "USING GUESTFISH"
1453 msgstr "ВИКОРИСТАННЯ GUESTFISH"
1454
1455 #. type: textblock
1456 #: ../cat/virt-cat.pod:170
1457 msgid ""
1458 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1459 "C<virt-cat> doesn't work."
1460 msgstr ""
1461
1462 #. type: textblock
1463 #: ../cat/virt-cat.pod:173
1464 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1465 msgstr ""
1466
1467 #. type: verbatim
1468 #: ../cat/virt-cat.pod:175
1469 #, no-wrap
1470 msgid ""
1471 " guestfish --ro -i -d domname download file -\n"
1472 "\n"
1473 msgstr ""
1474
1475 #. type: textblock
1476 #: ../cat/virt-cat.pod:177
1477 msgid ""
1478 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1479 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1480 msgstr ""
1481
1482 #. type: textblock
1483 #: ../cat/virt-cat.pod:181
1484 msgid ""
1485 "The command above uses libguestfs's guest inspection feature and so does not "
1486 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1487 "disk images that don't contain guests.  To display a file from a disk image "
1488 "directly, use:"
1489 msgstr ""
1490
1491 #. type: verbatim
1492 #: ../cat/virt-cat.pod:186
1493 #, no-wrap
1494 msgid ""
1495 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1496 "\n"
1497 msgstr ""
1498
1499 #. type: textblock
1500 #: ../cat/virt-cat.pod:188
1501 msgid ""
1502 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1503 "the disk image, and C<file> is the full path to the file."
1504 msgstr ""
1505
1506 #. type: textblock
1507 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
1508 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1509 #: ../fuse/guestmount.pod:314 ../inspector/virt-inspector.pod:377
1510 #: ../resize/virt-resize.pod:664 ../sparsify/virt-sparsify.pod:229
1511 msgid ""
1512 "This program returns 0 if successful, or non-zero if there was an error."
1513 msgstr ""
1514
1515 #. type: textblock
1516 #: ../cat/virt-cat.pod:205
1517 msgid ""
1518 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1519 "tar-out(1)>, L<http://libguestfs.org/>."
1520 msgstr ""
1521 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1522 "tar-out(1)>, L<http://libguestfs.org/>."
1523
1524 #. type: textblock
1525 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
1526 #: ../resize/virt-resize.pod:696
1527 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1528 msgstr "©Red Hat Inc., 2010–2011"
1529
1530 #. type: textblock
1531 #: ../cat/virt-filesystems.pod:5
1532 msgid ""
1533 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1534 "virtual machine or disk image"
1535 msgstr ""
1536
1537 #. type: verbatim
1538 #: ../cat/virt-filesystems.pod:9
1539 #, no-wrap
1540 msgid ""
1541 " virt-filesystems [--options] -d domname\n"
1542 "\n"
1543 msgstr ""
1544 " virt-filesystems [--параметри] -d назва_домену\n"
1545 "\n"
1546
1547 #. type: verbatim
1548 #: ../cat/virt-filesystems.pod:11
1549 #, no-wrap
1550 msgid ""
1551 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1552 "\n"
1553 msgstr ""
1554
1555 #. type: textblock
1556 #: ../cat/virt-filesystems.pod:15
1557 msgid ""
1558 "This tool allows you to discover filesystems, partitions, logical volumes, "
1559 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1560 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1561 msgstr ""
1562
1563 #. type: textblock
1564 #: ../cat/virt-filesystems.pod:20
1565 msgid ""
1566 "One use for this tool is from shell scripts to iterate over all filesystems "
1567 "from a disk image:"
1568 msgstr ""
1569
1570 #. type: verbatim
1571 #: ../cat/virt-filesystems.pod:23
1572 #, no-wrap
1573 msgid ""
1574 " for fs in $(virt-filesystems -a disk.img); do\n"
1575 "   # ...\n"
1576 " done\n"
1577 "\n"
1578 msgstr ""
1579 " for fs in $(virt-filesystems -a disk.img); do\n"
1580 "   # ...\n"
1581 " done\n"
1582 "\n"
1583
1584 #. type: textblock
1585 #: ../cat/virt-filesystems.pod:27
1586 msgid ""
1587 "Another use is to list partitions before using another tool to modify those "
1588 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1589 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1590 msgstr ""
1591
1592 #. type: textblock
1593 #: ../cat/virt-filesystems.pod:32
1594 msgid ""
1595 "Various command line options control what this program displays.  You need "
1596 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1597 "guest respectively.  If you just specify that then the program shows "
1598 "filesystems found, one per line, like this:"
1599 msgstr ""
1600
1601 #. type: verbatim
1602 #: ../cat/virt-filesystems.pod:37
1603 #, no-wrap
1604 msgid ""
1605 " $ virt-filesystems -a disk.img\n"
1606 " /dev/sda1\n"
1607 " /dev/vg_guest/lv_root\n"
1608 "\n"
1609 msgstr ""
1610 " $ virt-filesystems -a disk.img\n"
1611 " /dev/sda1\n"
1612 " /dev/vg_guest/lv_root\n"
1613 "\n"
1614
1615 #. type: textblock
1616 #: ../cat/virt-filesystems.pod:41
1617 msgid ""
1618 "If you add I<-l> or I<--long> then the output includes extra information:"
1619 msgstr ""
1620
1621 #. type: verbatim
1622 #: ../cat/virt-filesystems.pod:44
1623 #, no-wrap
1624 msgid ""
1625 " $ virt-filesystems -a disk.img -l\n"
1626 " Name                   Type         VFS   Label  Size\n"
1627 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1628 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1629 "\n"
1630 msgstr ""
1631
1632 #. type: textblock
1633 #: ../cat/virt-filesystems.pod:49
1634 msgid ""
1635 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1636 "shown as well:"
1637 msgstr ""
1638
1639 #. type: verbatim
1640 #: ../cat/virt-filesystems.pod:52
1641 #, no-wrap
1642 msgid ""
1643 " $ virt-filesystems -a disk.img --extra\n"
1644 " /dev/sda1\n"
1645 " /dev/vg_guest/lv_root\n"
1646 " /dev/vg_guest/lv_swap\n"
1647 " /dev/vg_guest/lv_data\n"
1648 "\n"
1649 msgstr ""
1650 " $ virt-filesystems -a disk.img --extra\n"
1651 " /dev/sda1\n"
1652 " /dev/vg_guest/lv_root\n"
1653 " /dev/vg_guest/lv_swap\n"
1654 " /dev/vg_guest/lv_data\n"
1655 "\n"
1656
1657 #. type: textblock
1658 #: ../cat/virt-filesystems.pod:58
1659 msgid ""
1660 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1661 msgstr ""
1662
1663 #. type: verbatim
1664 #: ../cat/virt-filesystems.pod:60
1665 #, no-wrap
1666 msgid ""
1667 " $ virt-filesystems -a disk.img --partitions\n"
1668 " /dev/sda1\n"
1669 " /dev/sda2\n"
1670 "\n"
1671 msgstr ""
1672 " $ virt-filesystems -a disk.img --partitions\n"
1673 " /dev/sda1\n"
1674 " /dev/sda2\n"
1675 "\n"
1676
1677 #. type: textblock
1678 #: ../cat/virt-filesystems.pod:64
1679 msgid ""
1680 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1681 "volumes>, I<--block-devices> to list those items."
1682 msgstr ""
1683
1684 #. type: textblock
1685 #: ../cat/virt-filesystems.pod:67
1686 msgid ""
1687 "You can use these options in combination as well (if you want a combination "
1688 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1689 "items fall into several categories (eg. C</dev/sda1> might be both a "
1690 "partition and a filesystem).  These items are listed several times.  To get "
1691 "a list which includes absolutely everything that virt-filesystems knows "
1692 "about, use the I<--all> option."
1693 msgstr ""
1694
1695 #. type: textblock
1696 #: ../cat/virt-filesystems.pod:74
1697 msgid ""
1698 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1699 "uuid> option to display device and filesystem UUIDs in the long output."
1700 msgstr ""
1701
1702 #. type: textblock
1703 #: ../cat/virt-filesystems.pod:78
1704 msgid ""
1705 "I<--all --long --uuid> is a useful combination to display all possible "
1706 "information about everything."
1707 msgstr ""
1708
1709 #. type: verbatim
1710 #: ../cat/virt-filesystems.pod:81
1711 #, no-wrap
1712 msgid ""
1713 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1714 " Name      Type       VFS  Label           Size Parent   UUID\n"
1715 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1716 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1717 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1718 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1719 " /dev/sda  device     -    -               20G  -        -\n"
1720 "\n"
1721 msgstr ""
1722
1723 #. type: textblock
1724 #: ../cat/virt-filesystems.pod:89
1725 msgid ""
1726 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1727 msgstr ""
1728
1729 #. type: =item
1730 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1731 msgid "B<--all>"
1732 msgstr "B<--all>"
1733
1734 #. type: textblock
1735 #: ../cat/virt-filesystems.pod:112
1736 msgid ""
1737 "Display everything.  This is currently the same as specifying these options: "
1738 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1739 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1740 "added to this list in future)."
1741 msgstr ""
1742
1743 #. type: textblock
1744 #: ../cat/virt-filesystems.pod:117
1745 msgid "See also I<--long>."
1746 msgstr "Див. також I<--long>."
1747
1748 #. type: =item
1749 #: ../cat/virt-filesystems.pod:119
1750 msgid "B<--blkdevs>"
1751 msgstr "B<--blkdevs>"
1752
1753 #. type: =item
1754 #: ../cat/virt-filesystems.pod:121
1755 msgid "B<--block-devices>"
1756 msgstr "B<--block-devices>"
1757
1758 #. type: textblock
1759 #: ../cat/virt-filesystems.pod:123
1760 msgid "Display block devices."
1761 msgstr "Показати список блокових пристроїв."
1762
1763 #. type: =item
1764 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1765 msgid "B<--csv>"
1766 msgstr "B<--csv>"
1767
1768 #. type: textblock
1769 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1770 msgid ""
1771 "Write out the results in CSV format (comma-separated values).  This format "
1772 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1773 "ABOUT CSV FORMAT> below."
1774 msgstr ""
1775
1776 #. type: textblock
1777 #: ../cat/virt-filesystems.pod:150
1778 msgid ""
1779 "When prompting for keys and passphrases, virt-filesystems normally turns "
1780 "echoing off so you cannot see what you are typing.  If you are not worried "
1781 "about Tempest attacks and there is no one else in the room you can specify "
1782 "this flag to see what you are typing."
1783 msgstr ""
1784
1785 #. type: =item
1786 #: ../cat/virt-filesystems.pod:155
1787 msgid "B<--extra>"
1788 msgstr "B<--extra>"
1789
1790 #. type: textblock
1791 #: ../cat/virt-filesystems.pod:157
1792 msgid ""
1793 "This causes filesystems that are not ordinary, mountable filesystems to be "
1794 "displayed.  This category includes swapspace, and filesystems that are empty "
1795 "or contain unknown data."
1796 msgstr ""
1797
1798 #. type: textblock
1799 #: ../cat/virt-filesystems.pod:161
1800 msgid "This option implies I<--filesystems>."
1801 msgstr ""
1802
1803 #. type: =item
1804 #: ../cat/virt-filesystems.pod:163
1805 msgid "B<--filesystems>"
1806 msgstr "B<--filesystems>"
1807
1808 #. type: textblock
1809 #: ../cat/virt-filesystems.pod:165
1810 msgid ""
1811 "Display mountable filesystems.  If no display option was selected then this "
1812 "option is implied."
1813 msgstr ""
1814
1815 #. type: textblock
1816 #: ../cat/virt-filesystems.pod:168
1817 msgid "With I<--extra>, non-mountable filesystems are shown too."
1818 msgstr ""
1819
1820 #. type: verbatim
1821 #: ../cat/virt-filesystems.pod:181
1822 #, no-wrap
1823 msgid ""
1824 " virt-filesystems --format=raw -a disk.img\n"
1825 "\n"
1826 msgstr ""
1827 " virt-filesystems --format=raw -a диск.img\n"
1828 "\n"
1829
1830 #. type: verbatim
1831 #: ../cat/virt-filesystems.pod:185
1832 #, no-wrap
1833 msgid ""
1834 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1835 "\n"
1836 msgstr ""
1837
1838 #. type: =item
1839 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1840 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1841 #: ../tools/virt-list-partitions.pl:109
1842 msgid "B<-h>"
1843 msgstr "B<-h>"
1844
1845 #. type: =item
1846 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1847 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1848 msgid "B<--human-readable>"
1849 msgstr "B<--human-readable>"
1850
1851 #. type: textblock
1852 #: ../cat/virt-filesystems.pod:198
1853 msgid "In I<--long> mode, display sizes in human-readable format."
1854 msgstr ""
1855
1856 #. type: =item
1857 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1858 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1859 msgid "B<-l>"
1860 msgstr "B<-l>"
1861
1862 #. type: =item
1863 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1864 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1865 msgid "B<--long>"
1866 msgstr "B<--long>"
1867
1868 #. type: textblock
1869 #: ../cat/virt-filesystems.pod:209
1870 msgid "Display extra columns of data (\"long format\")."
1871 msgstr ""
1872
1873 #. type: textblock
1874 #: ../cat/virt-filesystems.pod:211
1875 msgid "A title row is added unless you also specify I<--no-title>."
1876 msgstr ""
1877
1878 #. type: textblock
1879 #: ../cat/virt-filesystems.pod:213
1880 msgid ""
1881 "The extra columns displayed depend on what output you select, and the "
1882 "ordering of columns may change in future versions.  Use the title row, I<--"
1883 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1884 "programs."
1885 msgstr ""
1886
1887 #. type: textblock
1888 #: ../cat/virt-filesystems.pod:218
1889 msgid ""
1890 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1891 "default is to show raw numbers of I<bytes>."
1892 msgstr ""
1893
1894 #. type: textblock
1895 #: ../cat/virt-filesystems.pod:221
1896 msgid "Use I<--uuid> to display UUIDs too."
1897 msgstr ""
1898
1899 #. type: =item
1900 #: ../cat/virt-filesystems.pod:223
1901 msgid "B<--lvs>"
1902 msgstr "B<--lvs>"
1903
1904 #. type: =item
1905 #: ../cat/virt-filesystems.pod:225
1906 msgid "B<--logvols>"
1907 msgstr "B<--logvols>"
1908
1909 #. type: =item
1910 #: ../cat/virt-filesystems.pod:227
1911 msgid "B<--logical-volumes>"
1912 msgstr "B<--logical-volumes>"
1913
1914 #. type: textblock
1915 #: ../cat/virt-filesystems.pod:229
1916 msgid ""
1917 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1918 "of whether the LVs contain filesystems."
1919 msgstr ""
1920
1921 #. type: =item
1922 #: ../cat/virt-filesystems.pod:232
1923 msgid "B<--no-title>"
1924 msgstr "B<--no-title>"
1925
1926 #. type: textblock
1927 #: ../cat/virt-filesystems.pod:234
1928 msgid "In I<--long> mode, don't add a title row."
1929 msgstr ""
1930
1931 #. type: textblock
1932 #: ../cat/virt-filesystems.pod:236
1933 msgid ""
1934 "Note that the order of the columns is not fixed, and may change in future "
1935 "versions of virt-filesystems, so using this option may give you unexpected "
1936 "surprises."
1937 msgstr ""
1938
1939 #. type: =item
1940 #: ../cat/virt-filesystems.pod:240
1941 msgid "B<--parts>"
1942 msgstr "B<--parts>"
1943
1944 #. type: =item
1945 #: ../cat/virt-filesystems.pod:242
1946 msgid "B<--partitions>"
1947 msgstr "B<--partitions>"
1948
1949 #. type: textblock
1950 #: ../cat/virt-filesystems.pod:244
1951 msgid ""
1952 "Display partitions.  In this mode, these are displayed irrespective of "
1953 "whether the partitions contain filesystems."
1954 msgstr ""
1955
1956 #. type: =item
1957 #: ../cat/virt-filesystems.pod:247
1958 msgid "B<--pvs>"
1959 msgstr "B<--pvs>"
1960
1961 #. type: =item
1962 #: ../cat/virt-filesystems.pod:249
1963 msgid "B<--physvols>"
1964 msgstr "B<--physvols>"
1965
1966 #. type: =item
1967 #: ../cat/virt-filesystems.pod:251
1968 msgid "B<--physical-volumes>"
1969 msgstr "B<--physical-volumes>"
1970
1971 #. type: textblock
1972 #: ../cat/virt-filesystems.pod:253
1973 msgid "Display LVM physical volumes."
1974 msgstr ""
1975
1976 #. type: =item
1977 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1978 msgid "B<--uuid>"
1979 msgstr "B<--uuid>"
1980
1981 #. type: =item
1982 #: ../cat/virt-filesystems.pod:257
1983 msgid "B<--uuids>"
1984 msgstr "B<--uuids>"
1985
1986 #. type: textblock
1987 #: ../cat/virt-filesystems.pod:259
1988 msgid "In I<--long> mode, display UUIDs as well."
1989 msgstr ""
1990
1991 #. type: =item
1992 #: ../cat/virt-filesystems.pod:273
1993 msgid "B<--vgs>"
1994 msgstr "B<--vgs>"
1995
1996 #. type: =item
1997 #: ../cat/virt-filesystems.pod:275
1998 msgid "B<--volgroups>"
1999 msgstr "B<--volgroups>"
2000
2001 #. type: =item
2002 #: ../cat/virt-filesystems.pod:277
2003 msgid "B<--volume-groups>"
2004 msgstr "B<--volume-groups>"
2005
2006 #. type: textblock
2007 #: ../cat/virt-filesystems.pod:279
2008 msgid "Display LVM volume groups."
2009 msgstr ""
2010
2011 #. type: =head1
2012 #: ../cat/virt-filesystems.pod:287
2013 msgid "COLUMNS"
2014 msgstr "СТОВПЧИКИ"
2015
2016 #. type: textblock
2017 #: ../cat/virt-filesystems.pod:289
2018 msgid ""
2019 "Note that columns in the output are subject to reordering and change in "
2020 "future versions of this tool."
2021 msgstr ""
2022
2023 #. type: =item
2024 #: ../cat/virt-filesystems.pod:294
2025 msgid "B<Name>"
2026 msgstr ""
2027
2028 #. type: textblock
2029 #: ../cat/virt-filesystems.pod:296
2030 msgid "The filesystem, partition, block device or LVM name."
2031 msgstr ""
2032
2033 #. type: textblock
2034 #: ../cat/virt-filesystems.pod:298
2035 msgid ""
2036 "For device and partition names these are displayed as canonical libguestfs "
2037 "names, so that for example C</dev/sda2> is the second partition on the first "
2038 "device."
2039 msgstr ""
2040
2041 #. type: textblock
2042 #: ../cat/virt-filesystems.pod:302
2043 msgid ""
2044 "If the I<--long> option is B<not> specified, then only the name column is "
2045 "shown in the output."
2046 msgstr ""
2047
2048 #. type: =item
2049 #: ../cat/virt-filesystems.pod:305
2050 msgid "B<Type>"
2051 msgstr ""
2052
2053 #. type: textblock
2054 #: ../cat/virt-filesystems.pod:307
2055 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
2056 msgstr ""
2057
2058 #. type: =item
2059 #: ../cat/virt-filesystems.pod:309
2060 msgid "B<VFS>"
2061 msgstr "B<VFS>"
2062
2063 #. type: textblock
2064 #: ../cat/virt-filesystems.pod:311
2065 msgid ""
2066 "If there is a filesystem, then this column displays the filesystem type if "
2067 "one could be detected, eg. C<ext4>."
2068 msgstr ""
2069
2070 #. type: =item
2071 #: ../cat/virt-filesystems.pod:314
2072 msgid "B<Label>"
2073 msgstr ""
2074
2075 #. type: textblock
2076 #: ../cat/virt-filesystems.pod:316
2077 msgid ""
2078 "If the object has a label (used for identifying and mounting filesystems) "
2079 "then this column contains the label."
2080 msgstr ""
2081
2082 #. type: =item
2083 #: ../cat/virt-filesystems.pod:319
2084 msgid "B<Size>"
2085 msgstr ""
2086
2087 #. type: textblock
2088 #: ../cat/virt-filesystems.pod:321
2089 msgid ""
2090 "The size of the object in bytes.  If the I<--human> option is used then the "
2091 "size is displayed in a human-readable form."
2092 msgstr ""
2093
2094 #. type: =item
2095 #: ../cat/virt-filesystems.pod:324
2096 msgid "B<Parent>"
2097 msgstr ""
2098
2099 #. type: textblock
2100 #: ../cat/virt-filesystems.pod:326
2101 msgid ""
2102 "The parent column records the parent relationship between objects.  For "
2103 "example, if the object is a partition, then this column contains the name of "
2104 "the containing device.  If the object is a logical volume, then this column "
2105 "is the name of the volume group."
2106 msgstr ""
2107
2108 #. type: =item
2109 #: ../cat/virt-filesystems.pod:331
2110 msgid "B<UUID>"
2111 msgstr "B<UUID>"
2112
2113 #. type: textblock
2114 #: ../cat/virt-filesystems.pod:333
2115 msgid ""
2116 "If the object has a UUID (used for identifying and mounting filesystems and "
2117 "block devices) then this column contains the UUID as a string."
2118 msgstr ""
2119
2120 #. type: textblock
2121 #: ../cat/virt-filesystems.pod:337
2122 msgid "The UUID is only displayed if the I<--uuid> option is given."
2123 msgstr ""
2124
2125 #. type: =head1
2126 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
2127 #: ../df/virt-df.pod:191
2128 msgid "NOTE ABOUT CSV FORMAT"
2129 msgstr ""
2130
2131 #. type: textblock
2132 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
2133 #: ../df/virt-df.pod:193
2134 msgid ""
2135 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
2136 "should be easy to parse, but it is definitely not easy to parse."
2137 msgstr ""
2138
2139 #. type: textblock
2140 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
2141 #: ../df/virt-df.pod:196
2142 msgid ""
2143 "Myth: Just split fields at commas.  Reality: This does I<not> work "
2144 "reliably.  This example has two columns:"
2145 msgstr ""
2146
2147 #. type: verbatim
2148 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
2149 #: ../df/virt-df.pod:199
2150 #, no-wrap
2151 msgid ""
2152 " \"foo,bar\",baz\n"
2153 "\n"
2154 msgstr ""
2155
2156 #. type: textblock
2157 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
2158 #: ../df/virt-df.pod:201
2159 msgid ""
2160 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
2161 "reliably.  This example has one row:"
2162 msgstr ""
2163
2164 #. type: verbatim
2165 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
2166 #: ../df/virt-df.pod:204
2167 #, no-wrap
2168 msgid ""
2169 " \"foo\n"
2170 " bar\",baz\n"
2171 "\n"
2172 msgstr ""
2173
2174 #. type: textblock
2175 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
2176 #: ../df/virt-df.pod:207
2177 msgid ""
2178 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
2179 "packaged in major Linux distributions)."
2180 msgstr ""
2181
2182 #. type: textblock
2183 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
2184 #: ../df/virt-df.pod:210
2185 msgid ""
2186 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
2187 "or Python's built-in csv library)."
2188 msgstr ""
2189
2190 #. type: textblock
2191 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
2192 #: ../df/virt-df.pod:213
2193 msgid "Most spreadsheets and databases can import CSV directly."
2194 msgstr ""
2195
2196 #. type: textblock
2197 #: ../cat/virt-filesystems.pod:379
2198 msgid ""
2199 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2200 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2201 "libguestfs.org/>."
2202 msgstr ""
2203 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
2204 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
2205 "libguestfs.org/>."
2206
2207 #. type: textblock
2208 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
2209 #: ../tools/virt-win-reg.pl:778
2210 msgid "Copyright (C) 2010 Red Hat Inc."
2211 msgstr "©Red Hat Inc., 2010"
2212
2213 #. type: textblock
2214 #: ../cat/virt-ls.pod:5
2215 msgid "virt-ls - List files in a virtual machine"
2216 msgstr ""
2217
2218 #. type: verbatim
2219 #: ../cat/virt-ls.pod:9
2220 #, no-wrap
2221 msgid ""
2222 " virt-ls [--options] -d domname directory [directory ...]\n"
2223 "\n"
2224 msgstr ""
2225
2226 #. type: verbatim
2227 #: ../cat/virt-ls.pod:11
2228 #, no-wrap
2229 msgid ""
2230 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
2231 "\n"
2232 msgstr ""
2233
2234 #. type: textblock
2235 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2236 msgid "Old style:"
2237 msgstr "Старий стиль:"
2238
2239 #. type: verbatim
2240 #: ../cat/virt-ls.pod:15
2241 #, no-wrap
2242 msgid ""
2243 " virt-ls [--options] domname directory\n"
2244 "\n"
2245 msgstr ""
2246
2247 #. type: verbatim
2248 #: ../cat/virt-ls.pod:17
2249 #, no-wrap
2250 msgid ""
2251 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2252 "\n"
2253 msgstr ""
2254
2255 #. type: textblock
2256 #: ../cat/virt-ls.pod:21
2257 msgid ""
2258 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2259 "more from a virtual machine or disk image."
2260 msgstr ""
2261
2262 #. type: textblock
2263 #: ../cat/virt-ls.pod:24
2264 msgid ""
2265 "Multiple directory names can be given, in which case the output from each is "
2266 "concatenated."
2267 msgstr ""
2268
2269 #. type: textblock
2270 #: ../cat/virt-ls.pod:27
2271 msgid ""
2272 "To list directories from a libvirt guest use the I<-d> option to specify the "
2273 "name of the guest.  For a disk image, use the I<-a> option."
2274 msgstr ""
2275
2276 #. type: textblock
2277 #: ../cat/virt-ls.pod:31
2278 msgid ""
2279 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2280 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2281 "(3)> API."
2282 msgstr ""
2283
2284 #. type: textblock
2285 #: ../cat/virt-ls.pod:37
2286 msgid "Get a list of all files and directories in a virtual machine:"
2287 msgstr ""
2288
2289 #. type: verbatim
2290 #: ../cat/virt-ls.pod:39
2291 #, no-wrap
2292 msgid ""
2293 " virt-ls -R -d guest /\n"
2294 "\n"
2295 msgstr ""
2296
2297 #. type: textblock
2298 #: ../cat/virt-ls.pod:41
2299 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2300 msgstr ""
2301
2302 #. type: verbatim
2303 #: ../cat/virt-ls.pod:43
2304 #, no-wrap
2305 msgid ""
2306 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2307 "\n"
2308 msgstr ""
2309
2310 #. type: textblock
2311 #: ../cat/virt-ls.pod:45
2312 msgid "List all public-writable directories in a Linux virtual machine:"
2313 msgstr ""
2314
2315 #. type: verbatim
2316 #: ../cat/virt-ls.pod:47
2317 #, no-wrap
2318 msgid ""
2319 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2320 "\n"
2321 msgstr ""
2322
2323 #. type: textblock
2324 #: ../cat/virt-ls.pod:49
2325 msgid "List all Unix domain sockets in a Linux virtual machine:"
2326 msgstr ""
2327
2328 #. type: verbatim
2329 #: ../cat/virt-ls.pod:51
2330 #, no-wrap
2331 msgid ""
2332 " virt-ls -lR -d guest / | grep '^s'\n"
2333 "\n"
2334 msgstr ""
2335
2336 #. type: textblock
2337 #: ../cat/virt-ls.pod:53
2338 msgid "List all regular files with filenames ending in '.png':"
2339 msgstr ""
2340
2341 #. type: verbatim
2342 #: ../cat/virt-ls.pod:55
2343 #, no-wrap
2344 msgid ""
2345 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2346 "\n"
2347 msgstr ""
2348
2349 #. type: textblock
2350 #: ../cat/virt-ls.pod:57
2351 msgid "To display files larger than 10MB in home directories:"
2352 msgstr ""
2353
2354 #. type: verbatim
2355 #: ../cat/virt-ls.pod:59
2356 #, no-wrap
2357 msgid ""
2358 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2359 "\n"
2360 msgstr ""
2361
2362 #. type: textblock
2363 #: ../cat/virt-ls.pod:61
2364 msgid "Find everything modified in the last 7 days:"
2365 msgstr ""
2366
2367 #. type: verbatim
2368 #: ../cat/virt-ls.pod:63
2369 #, no-wrap
2370 msgid ""
2371 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2372 "\n"
2373 msgstr ""
2374
2375 #. type: textblock
2376 #: ../cat/virt-ls.pod:65
2377 msgid "Find regular files modified in the last 24 hours:"
2378 msgstr ""
2379
2380 #. type: verbatim
2381 #: ../cat/virt-ls.pod:67
2382 #, no-wrap
2383 msgid ""
2384 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2385 "\n"
2386 msgstr ""
2387
2388 #. type: =head2
2389 #: ../cat/virt-ls.pod:69
2390 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2391 msgstr ""
2392
2393 #. type: textblock
2394 #: ../cat/virt-ls.pod:71
2395 msgid ""
2396 "Find the differences between files in a guest and an earlier snapshot of the "
2397 "same guest."
2398 msgstr ""
2399
2400 #. type: verbatim
2401 #: ../cat/virt-ls.pod:74
2402 #, no-wrap
2403 msgid ""
2404 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2405 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2406 " diff -u old new | less\n"
2407 "\n"
2408 msgstr ""
2409
2410 #. type: textblock
2411 #: ../cat/virt-ls.pod:78
2412 msgid ""
2413 "The commands above won't find files where the content has changed but the "
2414 "metadata (eg. file size and modification date) is the same.  To do that, you "
2415 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2416 "checksum> can be quite slow since it has to read and compute a checksum of "
2417 "every regular file in the virtual machine."
2418 msgstr ""
2419
2420 #. type: =head1
2421 #: ../cat/virt-ls.pod:84
2422 msgid "OUTPUT MODES"
2423 msgstr "РЕЖИМИ ВИВЕДЕННЯ ДАНИХ"
2424
2425 #. type: textblock
2426 #: ../cat/virt-ls.pod:86
2427 msgid ""
2428 "C<virt-ls> has four output modes, controlled by different combinations of "
2429 "the I<-l> and I<-R> options."
2430 msgstr ""
2431
2432 #. type: =head2
2433 #: ../cat/virt-ls.pod:89
2434 msgid "SIMPLE LISTING"
2435 msgstr "ПРОСТИЙ СПИСОК"
2436
2437 #. type: textblock
2438 #: ../cat/virt-ls.pod:91
2439 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2440 msgstr ""
2441
2442 #. type: verbatim
2443 #: ../cat/virt-ls.pod:93
2444 #, no-wrap
2445 msgid ""
2446 " $ virt-ls -d guest /\n"
2447 " bin\n"
2448 " boot\n"
2449 " [etc.]\n"
2450 "\n"
2451 msgstr ""
2452 " $ virt-ls -d guest /\n"
2453 " bin\n"
2454 " boot\n"
2455 " [тощо]\n"
2456 "\n"
2457
2458 #. type: =head2
2459 #: ../cat/virt-ls.pod:98
2460 msgid "LONG LISTING"
2461 msgstr "ДОВГИЙ СПИСОК"
2462
2463 #. type: textblock
2464 #: ../cat/virt-ls.pod:100
2465 msgid ""
2466 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2467 "(more specifically, like the C<guestfs_ll> function)."
2468 msgstr ""
2469
2470 #. type: verbatim
2471 #: ../cat/virt-ls.pod:103
2472 #, no-wrap
2473 msgid ""
2474 " $ virt-ls -l -d guest /\n"
2475 " total 204\n"
2476 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2477 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2478 " [etc.]\n"
2479 "\n"
2480 msgstr ""
2481 " $ virt-ls -l -d guest /\n"
2482 " total 204\n"
2483 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2484 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2485 " [тощо]\n"
2486 "\n"
2487
2488 #. type: textblock
2489 #: ../cat/virt-ls.pod:109
2490 msgid ""
2491 "Note that while this is useful for displaying a directory, do not try "
2492 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2493 "instead."
2494 msgstr ""
2495
2496 #. type: =head2
2497 #: ../cat/virt-ls.pod:113
2498 msgid "RECURSIVE LISTING"
2499 msgstr "РЕКУРСИВНИЙ СПИСОК"
2500
2501 #. type: textblock
2502 #: ../cat/virt-ls.pod:115
2503 msgid ""
2504 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2505 "and directories recursively:"
2506 msgstr ""
2507
2508 #. type: verbatim
2509 #: ../cat/virt-ls.pod:118
2510 #, no-wrap
2511 msgid ""
2512 " $ virt-ls -R -d guest /tmp\n"
2513 " foo\n"
2514 " foo/bar\n"
2515 " [etc.]\n"
2516 "\n"
2517 msgstr ""
2518 " $ virt-ls -R -d guest /tmp\n"
2519 " foo\n"
2520 " foo/bar\n"
2521 " [тощо]\n"
2522 "\n"
2523
2524 #. type: textblock
2525 #: ../cat/virt-ls.pod:123
2526 msgid ""
2527 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2528 "converts C<\\0> characters to C<\\n>."
2529 msgstr ""
2530
2531 #. type: =head2
2532 #: ../cat/virt-ls.pod:126
2533 msgid "RECURSIVE LONG LISTING"
2534 msgstr "РЕКУРСИВНИЙ ДОВГИЙ СПИСОК"
2535
2536 #. type: textblock
2537 #: ../cat/virt-ls.pod:128
2538 msgid ""
2539 "Using I<-lR> options together changes the output to display directories "
2540 "recursively, with file stats, and optionally other features such as "
2541 "checksums and extended attributes."
2542 msgstr ""
2543
2544 #. type: textblock
2545 #: ../cat/virt-ls.pod:132
2546 msgid ""
2547 "Most of the interesting features of C<virt-ls> are only available when using "
2548 "I<-lR> mode."
2549 msgstr ""
2550
2551 #. type: textblock
2552 #: ../cat/virt-ls.pod:135
2553 msgid ""
2554 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2555 "you cannot use the output in another program (because filenames can contain "
2556 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2557 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2558 "on you by creating filenames with embedded newline characters.  To B<safely> "
2559 "parse the output in another program, use the I<--csv> (Comma-Separated "
2560 "Values) option."
2561 msgstr ""
2562
2563 #. type: textblock
2564 #: ../cat/virt-ls.pod:143
2565 msgid ""
2566 "Note that this output format is completely unrelated to the C<ls -lR> "
2567 "command."
2568 msgstr ""
2569
2570 #. type: verbatim
2571 #: ../cat/virt-ls.pod:146
2572 #, no-wrap
2573 msgid ""
2574 " $ virt-ls -lR -d guest /bin\n"
2575 " d 0555       4096 /bin\n"
2576 " - 0755        123 /bin/alsaunmute\n"
2577 " - 0755      28328 /bin/arch\n"
2578 " l 0777          4 /bin/awk -> gawk\n"
2579 " - 0755      27216 /bin/basename\n"
2580 " - 0755     943360 /bin/bash\n"
2581 " [etc.]\n"
2582 "\n"
2583 msgstr ""
2584 " $ virt-ls -lR -d guest /bin\n"
2585 " d 0555       4096 /bin\n"
2586 " - 0755        123 /bin/alsaunmute\n"
2587 " - 0755      28328 /bin/arch\n"
2588 " l 0777          4 /bin/awk -> gawk\n"
2589 " - 0755      27216 /bin/basename\n"
2590 " - 0755     943360 /bin/bash\n"
2591 " [тощо]\n"
2592 "\n"
2593
2594 #. type: textblock
2595 #: ../cat/virt-ls.pod:155
2596 msgid "These basic fields are always shown:"
2597 msgstr ""
2598
2599 #. type: =item
2600 #: ../cat/virt-ls.pod:159
2601 msgid "type"
2602 msgstr "тип"
2603
2604 #. type: textblock
2605 #: ../cat/virt-ls.pod:161
2606 msgid ""
2607 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2608 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2609 "link), C<s> (socket) or C<u> (unknown)."
2610 msgstr ""
2611
2612 #. type: =item
2613 #: ../cat/virt-ls.pod:171
2614 msgid "permissions"
2615 msgstr "права доступу"
2616
2617 #. type: textblock
2618 #: ../cat/virt-ls.pod:173
2619 msgid "The Unix permissions, displayed as a 4 digit octal number."
2620 msgstr ""
2621
2622 #. type: =item
2623 #: ../cat/virt-ls.pod:175
2624 msgid "size"
2625 msgstr "розмір"
2626
2627 #. type: textblock
2628 #: ../cat/virt-ls.pod:177
2629 msgid ""
2630 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2631 "readable> option is given, in which case this is shown as a human-readable "
2632 "number."
2633 msgstr ""
2634
2635 #. type: =head2
2636 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4263
2637 msgid "path"
2638 msgstr "шлях"
2639
2640 #. type: textblock
2641 #: ../cat/virt-ls.pod:183
2642 msgid "The full path of the file or directory."
2643 msgstr ""
2644
2645 #. type: =item
2646 #: ../cat/virt-ls.pod:185
2647 msgid "link"
2648 msgstr "посилання"
2649
2650 #. type: textblock
2651 #: ../cat/virt-ls.pod:187
2652 msgid "For symbolic links only, the link target."
2653 msgstr ""
2654
2655 #. type: textblock
2656 #: ../cat/virt-ls.pod:191
2657 msgid ""
2658 "In I<-lR> mode, additional command line options enable the display of more "
2659 "fields."
2660 msgstr ""
2661
2662 #. type: textblock
2663 #: ../cat/virt-ls.pod:194
2664 msgid ""
2665 "With the I<--uids> flag, these additional fields are displayed before the "
2666 "path:"
2667 msgstr ""
2668
2669 #. type: =item
2670 #: ../cat/virt-ls.pod:199
2671 msgid "uid"
2672 msgstr "uid"
2673
2674 #. type: =item
2675 #: ../cat/virt-ls.pod:201
2676 msgid "gid"
2677 msgstr "gid"
2678
2679 #. type: textblock
2680 #: ../cat/virt-ls.pod:203
2681 msgid ""
2682 "The UID and GID of the owner of the file (displayed numerically).  Note "
2683 "these only make sense in the context of a Unix-like guest."
2684 msgstr ""
2685
2686 #. type: textblock
2687 #: ../cat/virt-ls.pod:208
2688 msgid "With the I<--times> flag, these additional fields are displayed:"
2689 msgstr ""
2690
2691 #. type: =item
2692 #: ../cat/virt-ls.pod:212
2693 msgid "atime"
2694 msgstr "atime"
2695
2696 #. type: textblock
2697 #: ../cat/virt-ls.pod:214
2698 msgid "The time of last access."
2699 msgstr "Час останнього доступу."
2700
2701 #. type: =item
2702 #: ../cat/virt-ls.pod:216
2703 msgid "mtime"
2704 msgstr "mtime"
2705
2706 #. type: textblock
2707 #: ../cat/virt-ls.pod:218
2708 msgid "The time of last modification."
2709 msgstr "Час останнього внесення змін."
2710
2711 #. type: =item
2712 #: ../cat/virt-ls.pod:220
2713 msgid "ctime"
2714 msgstr "ctime"
2715
2716 #. type: textblock
2717 #: ../cat/virt-ls.pod:222
2718 msgid "The time of last status change."
2719 msgstr "Час останньої зміни стану."
2720
2721 #. type: textblock
2722 #: ../cat/virt-ls.pod:226
2723 msgid ""
2724 "The time fields are displayed as string dates and times, unless one of the "
2725 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2726 msgstr ""
2727
2728 #. type: textblock
2729 #: ../cat/virt-ls.pod:229
2730 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2731 msgstr ""
2732
2733 #. type: =item
2734 #: ../cat/virt-ls.pod:233
2735 msgid "device"
2736 msgstr "пристрій"
2737
2738 #. type: textblock
2739 #: ../cat/virt-ls.pod:235
2740 msgid ""
2741 "The device containing the file (displayed as major:minor).  This may not "
2742 "match devices as known to the guest."
2743 msgstr ""
2744
2745 #. type: =item
2746 #: ../cat/virt-ls.pod:238
2747 msgid "inode"
2748 msgstr "inode"
2749
2750 #. type: textblock
2751 #: ../cat/virt-ls.pod:240
2752 msgid "The inode number."
2753 msgstr ""
2754
2755 #. type: =item
2756 #: ../cat/virt-ls.pod:242
2757 msgid "nlink"
2758 msgstr "nlink"
2759
2760 #. type: textblock
2761 #: ../cat/virt-ls.pod:244
2762 msgid "The number of hard links."
2763 msgstr "Кількість жорстких посилань."
2764
2765 #. type: =item
2766 #: ../cat/virt-ls.pod:246
2767 msgid "rdev"
2768 msgstr "rdev"
2769
2770 #. type: textblock
2771 #: ../cat/virt-ls.pod:248
2772 msgid ""
2773 "For block and char special files, the device (displayed as major:minor)."
2774 msgstr ""
2775
2776 #. type: =item
2777 #: ../cat/virt-ls.pod:251
2778 msgid "blocks"
2779 msgstr "блоки"
2780
2781 #. type: textblock
2782 #: ../cat/virt-ls.pod:253
2783 msgid "The number of 512 byte blocks allocated to the file."
2784 msgstr ""
2785
2786 #. type: textblock
2787 #: ../cat/virt-ls.pod:257
2788 msgid ""
2789 "With the I<--checksum> flag, the checksum of the file contents is shown "
2790 "(only for regular files).  Computing file checksums can take a considerable "
2791 "amount of time."
2792 msgstr ""
2793
2794 #. type: =item
2795 #: ../cat/virt-ls.pod:280
2796 msgid "B<--checksum>"
2797 msgstr "B<--checksum>"
2798
2799 #. type: =item
2800 #: ../cat/virt-ls.pod:282
2801 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2802 msgstr "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2803
2804 #. type: textblock
2805 #: ../cat/virt-ls.pod:284
2806 msgid ""
2807 "Display checksum over file contents for regular files.  With no argument, "
2808 "this defaults to using I<md5>.  Using an argument, you can select the "
2809 "checksum type to use."
2810 msgstr ""
2811
2812 #. type: textblock
2813 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2814 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2815 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2816 msgid ""
2817 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2818 "LISTING> above."
2819 msgstr ""
2820
2821 #. type: textblock
2822 #: ../cat/virt-ls.pod:316
2823 msgid ""
2824 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2825 "so you cannot see what you are typing.  If you are not worried about Tempest "
2826 "attacks and there is no one else in the room you can specify this flag to "
2827 "see what you are typing."
2828 msgstr ""
2829
2830 #. type: =item
2831 #: ../cat/virt-ls.pod:321
2832 msgid "B<--extra-stats>"
2833 msgstr "B<--extra-stats>"
2834
2835 #. type: textblock
2836 #: ../cat/virt-ls.pod:323
2837 msgid "Display extra stats."
2838 msgstr "Показати додаткові дані."
2839
2840 #. type: verbatim
2841 #: ../cat/virt-ls.pod:339
2842 #, no-wrap
2843 msgid ""
2844 " virt-ls --format=raw -a disk.img /dir\n"
2845 "\n"
2846 msgstr ""
2847
2848 #. type: verbatim
2849 #: ../cat/virt-ls.pod:343
2850 #, no-wrap
2851 msgid ""
2852 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2853 "\n"
2854 msgstr ""
2855
2856 #. type: textblock
2857 #: ../cat/virt-ls.pod:356
2858 msgid "Display file sizes in human-readable format."
2859 msgstr ""
2860
2861 #. type: =item
2862 #: ../cat/virt-ls.pod:370
2863 msgid "B<-R>"
2864 msgstr "B<-R>"
2865
2866 #. type: =item
2867 #: ../cat/virt-ls.pod:372
2868 msgid "B<--recursive>"
2869 msgstr "B<--recursive>"
2870
2871 #. type: textblock
2872 #: ../cat/virt-ls.pod:374
2873 msgid ""
2874 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2875 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2876 "LISTING>."
2877 msgstr ""
2878
2879 #. type: textblock
2880 #: ../cat/virt-ls.pod:378
2881 msgid ""
2882 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2883 "LONG LISTING>."
2884 msgstr ""
2885
2886 #. type: textblock
2887 #: ../cat/virt-ls.pod:381
2888 msgid ""
2889 "C<virt-ls -R> produces a recursive list of files starting at the named "
2890 "directory.  See L</RECURSIVE LISTING>."
2891 msgstr ""
2892
2893 #. type: textblock
2894 #: ../cat/virt-ls.pod:384
2895 msgid ""
2896 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2897 "parsed.  See L</RECURSIVE LONG LISTING>."
2898 msgstr ""
2899
2900 #. type: =item
2901 #: ../cat/virt-ls.pod:387
2902 msgid "B<--times>"
2903 msgstr "B<--times>"
2904
2905 #. type: textblock
2906 #: ../cat/virt-ls.pod:389
2907 msgid "Display time fields."
2908 msgstr ""
2909
2910 #. type: =item
2911 #: ../cat/virt-ls.pod:394
2912 msgid "B<--time-days>"
2913 msgstr "B<--time-days>"
2914
2915 #. type: textblock
2916 #: ../cat/virt-ls.pod:396
2917 msgid "Display time fields as days before now (negative if in the future)."
2918 msgstr ""
2919
2920 #. type: textblock
2921 #: ../cat/virt-ls.pod:398
2922 msgid ""
2923 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2924 "of the file is between 0 and 86399 seconds."
2925 msgstr ""
2926
2927 #. type: =item
2928 #: ../cat/virt-ls.pod:404
2929 msgid "B<--time-relative>"
2930 msgstr "B<--time-relative>"
2931
2932 #. type: textblock
2933 #: ../cat/virt-ls.pod:406
2934 msgid "Display time fields as seconds before now (negative if in the future)."
2935 msgstr ""
2936
2937 #. type: =item
2938 #: ../cat/virt-ls.pod:411
2939 msgid "B<--time-t>"
2940 msgstr "B<--time-t>"
2941
2942 #. type: textblock
2943 #: ../cat/virt-ls.pod:413
2944 msgid "Display time fields as seconds since the Unix epoch."
2945 msgstr ""
2946
2947 #. type: =item
2948 #: ../cat/virt-ls.pod:418
2949 msgid "B<--uids>"
2950 msgstr "B<--uids>"
2951
2952 #. type: textblock
2953 #: ../cat/virt-ls.pod:420
2954 msgid "Display UID and GID fields."
2955 msgstr ""
2956
2957 #. type: textblock
2958 #: ../cat/virt-ls.pod:445
2959 msgid "Previous versions of virt-ls allowed you to write either:"
2960 msgstr ""
2961
2962 #. type: verbatim
2963 #: ../cat/virt-ls.pod:447
2964 #, no-wrap
2965 msgid ""
2966 " virt-ls disk.img [disk.img ...] /dir\n"
2967 "\n"
2968 msgstr ""
2969
2970 #. type: verbatim
2971 #: ../cat/virt-ls.pod:451
2972 #, no-wrap
2973 msgid ""
2974 " virt-ls guestname /dir\n"
2975 "\n"
2976 msgstr ""
2977
2978 #. type: textblock
2979 #: ../cat/virt-ls.pod:497
2980 msgid ""
2981 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2982 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2983 "L<http://libguestfs.org/>."
2984 msgstr ""
2985 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2986 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2987 "L<http://libguestfs.org/>."
2988
2989 #. type: textblock
2990 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2991 #: ../rescue/virt-rescue.pod:302
2992 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2993 msgstr "©Red Hat Inc., 2009–2011"
2994
2995 #. type: textblock
2996 #: ../clone/virt-sysprep.pod:5
2997 msgid ""
2998 "virt-sysprep - Reset or unconfigure a virtual machine so clones can be made"
2999 msgstr ""
3000
3001 #. type: verbatim
3002 #: ../clone/virt-sysprep.pod:9
3003 #, no-wrap
3004 msgid ""
3005 " virt-sysprep [--options] -d domname\n"
3006 "\n"
3007 msgstr ""
3008
3009 #. type: verbatim
3010 #: ../clone/virt-sysprep.pod:11
3011 #, no-wrap
3012 msgid ""
3013 " virt-sysprep [--options] -a disk.img [-a disk.img ...]\n"
3014 "\n"
3015 msgstr ""
3016
3017 #. type: textblock
3018 #: ../clone/virt-sysprep.pod:15
3019 msgid ""
3020 "Virt-sysprep \"resets\" or \"unconfigures\" a virtual machine so that clones "
3021 "can be made from it.  Steps in this process include removing SSH host keys, "
3022 "removing persistent network MAC configuration, and removing user accounts.  "
3023 "Each step can be enabled or disabled as required."
3024 msgstr ""
3025
3026 #. type: textblock
3027 #: ../clone/virt-sysprep.pod:21
3028 msgid ""
3029 "Virt-sysprep is a simple shell script, allowing easy inspection or "
3030 "customization by the system administrator."
3031 msgstr ""
3032
3033 #. type: textblock
3034 #: ../clone/virt-sysprep.pod:24
3035 msgid ""
3036 "Virt-sysprep modifies the guest or disk image I<in place>.  The guest must "
3037 "be shut down.  If you want to preserve the existing contents of the guest, "
3038 "you I<must copy or clone the disk first>.  See L</COPYING AND CLONING> below."
3039 msgstr ""
3040
3041 #. type: textblock
3042 #: ../clone/virt-sysprep.pod:29
3043 msgid ""
3044 "You do I<not> need to run virt-sysprep as root.  In fact we'd generally "
3045 "recommend that you don't.  The time you might want to run it as root is when "
3046 "you need root in order to access the disk image, but even in this case it "
3047 "would be better to change the permissions on the disk image to be writable "
3048 "as the non-root user running virt-sysprep."
3049 msgstr ""
3050
3051 #. type: textblock
3052 #: ../clone/virt-sysprep.pod:35
3053 msgid ""
3054 "\"Sysprep\" stands for \"system preparation\" tool.  The name comes from the "
3055 "Microsoft program C<sysprep.exe> which is used to unconfigure Windows "
3056 "machines in preparation for cloning them.  Having said that, virt-sysprep "
3057 "does I<not> currently work on Microsoft Windows guests.  We plan to support "
3058 "Windows sysprepping in a future version, and we already have code to do it."
3059 msgstr ""
3060
3061 #. type: =item
3062 #: ../clone/virt-sysprep.pod:76
3063 msgid "B<--enable=...>"
3064 msgstr ""
3065
3066 #. type: textblock
3067 #: ../clone/virt-sysprep.pod:78
3068 msgid ""
3069 "Choose which sysprep operations to perform.  Give a comma-separated list of "
3070 "operations, for example:"
3071 msgstr ""
3072
3073 #. type: verbatim
3074 #: ../clone/virt-sysprep.pod:81
3075 #, no-wrap
3076 msgid ""
3077 " --enable=ssh-hostkeys,udev-persistent-net\n"
3078 "\n"
3079 msgstr ""
3080
3081 #. type: textblock
3082 #: ../clone/virt-sysprep.pod:83
3083 msgid ""
3084 "would enable ONLY C<ssh-hostkeys> and C<udev-persistent-net> operations."
3085 msgstr ""
3086
3087 #. type: textblock
3088 #: ../clone/virt-sysprep.pod:85
3089 msgid ""
3090 "If the I<--enable> option is not given, then we default to trying all "
3091 "possible sysprep operations.  But some sysprep operations are skipped for "
3092 "some guest types."
3093 msgstr ""
3094
3095 #. type: textblock
3096 #: ../clone/virt-sysprep.pod:89
3097 msgid ""
3098 "Use I<--list-operations> to list operations supported by a particular "
3099 "version of virt-sysprep."
3100 msgstr ""
3101
3102 #. type: textblock
3103 #: ../clone/virt-sysprep.pod:92
3104 msgid ""
3105 "See L</OPERATIONS> below for a list and an explanation of each operation."
3106 msgstr ""
3107
3108 #. type: verbatim
3109 #: ../clone/virt-sysprep.pod:106
3110 #, no-wrap
3111 msgid ""
3112 " virt-sysprep --format=raw -a disk.img\n"
3113 "\n"
3114 msgstr ""
3115
3116 #. type: verbatim
3117 #: ../clone/virt-sysprep.pod:110
3118 #, no-wrap
3119 msgid ""
3120 " virt-sysprep --format=raw -a disk.img --format -a another.img\n"
3121 "\n"
3122 msgstr ""
3123
3124 #. type: =item
3125 #: ../clone/virt-sysprep.pod:119
3126 msgid "B<--hostname> newhostname"
3127 msgstr ""
3128
3129 #. type: textblock
3130 #: ../clone/virt-sysprep.pod:121
3131 msgid ""
3132 "Change the hostname.  See the L</hostname> operation below.  If not given, "
3133 "defaults to C<localhost.localdomain>."
3134 msgstr ""
3135
3136 #. type: =item
3137 #: ../clone/virt-sysprep.pod:124
3138 msgid "B<--list-operations>"
3139 msgstr ""
3140
3141 #. type: textblock
3142 #: ../clone/virt-sysprep.pod:126
3143 msgid "List the operations supported by the virt-sysprep program."
3144 msgstr ""
3145
3146 #. type: =item
3147 #: ../clone/virt-sysprep.pod:128
3148 msgid "B<--selinux-relabel>"
3149 msgstr ""
3150
3151 #. type: =item
3152 #: ../clone/virt-sysprep.pod:130
3153 msgid "B<--no-selinux-relabel>"
3154 msgstr ""
3155
3156 #. type: textblock
3157 #: ../clone/virt-sysprep.pod:132
3158 msgid ""
3159 "I<--selinux-relabel> forces SELinux relabelling next time the guest boots.  "
3160 "I<--no-selinux-relabel> disables relabelling."
3161 msgstr ""
3162
3163 #. type: textblock
3164 #: ../clone/virt-sysprep.pod:135
3165 msgid ""
3166 "The default is to try to detect if SELinux relabelling is required.  See L</"
3167 "SELINUX RELABELLING> below for more details."
3168 msgstr ""
3169
3170 #. type: =head1
3171 #: ../clone/virt-sysprep.pod:156
3172 msgid "OPERATIONS"
3173 msgstr ""
3174
3175 #. type: textblock
3176 #: ../clone/virt-sysprep.pod:158
3177 msgid ""
3178 "If the I<--enable> option is I<not> given, then I<all sysprep operations are "
3179 "enabled>, although some are skipped depending on the type of guest."
3180 msgstr ""
3181
3182 #. type: textblock
3183 #: ../clone/virt-sysprep.pod:162
3184 msgid ""
3185 "Operations can be individually enabled using the I<--enable> option.  Use a "
3186 "comma-separated list, for example:"
3187 msgstr ""
3188
3189 #. type: verbatim
3190 #: ../clone/virt-sysprep.pod:165
3191 #, no-wrap
3192 msgid ""
3193 " virt-sysprep --enable=ssh-hostkeys,udev-persistent-net [etc..]\n"
3194 "\n"
3195 msgstr ""
3196
3197 #. type: textblock
3198 #: ../clone/virt-sysprep.pod:167
3199 msgid ""
3200 "To list the operations supported by the current version of virt-sysprep, use "
3201 "I<--list-operations>."
3202 msgstr ""
3203
3204 #. type: textblock
3205 #: ../clone/virt-sysprep.pod:170
3206 msgid ""
3207 "Future versions of virt-sysprep may add more operations.  If you are using "
3208 "virt-sysprep and want predictable behaviour, specify only the operations "
3209 "that you want to have enabled."
3210 msgstr ""
3211
3212 #. type: =head2
3213 #: ../clone/virt-sysprep.pod:174
3214 msgid "cron-spool"
3215 msgstr ""
3216
3217 #. type: textblock
3218 #: ../clone/virt-sysprep.pod:176
3219 msgid "Remove user at-jobs and cron-jobs."
3220 msgstr ""
3221
3222 #. type: =head2
3223 #: ../clone/virt-sysprep.pod:178
3224 msgid "dhcp-client-state"
3225 msgstr ""
3226
3227 #. type: textblock
3228 #: ../clone/virt-sysprep.pod:180
3229 msgid "Remove DHCP client leases."
3230 msgstr ""
3231
3232 #. type: =head2
3233 #: ../clone/virt-sysprep.pod:182
3234 msgid "dhcp-server-state"
3235 msgstr ""
3236
3237 #. type: textblock
3238 #: ../clone/virt-sysprep.pod:184
3239 msgid "Remove DHCP server leases."
3240 msgstr ""
3241
3242 #. type: =head2
3243 #: ../clone/virt-sysprep.pod:186
3244 msgid "hostname"
3245 msgstr ""
3246
3247 #. type: textblock
3248 #: ../clone/virt-sysprep.pod:188
3249 msgid ""
3250 "Changes the hostname of the guest to the value given in the I<--hostname> "
3251 "parameter."
3252 msgstr ""
3253
3254 #. type: textblock
3255 #: ../clone/virt-sysprep.pod:191
3256 msgid ""
3257 "If the I<--hostname> parameter is not given, then the hostname is changed to "
3258 "C<localhost.localdomain>."
3259 msgstr ""
3260
3261 #. type: =head2
3262 #: ../clone/virt-sysprep.pod:194
3263 msgid "logfiles"
3264 msgstr ""
3265
3266 #. type: textblock
3267 #: ../clone/virt-sysprep.pod:196
3268 msgid "Remove many log files."
3269 msgstr ""
3270
3271 #. type: =head2
3272 #: ../clone/virt-sysprep.pod:198
3273 msgid "mail-spool"
3274 msgstr ""
3275
3276 #. type: textblock
3277 #: ../clone/virt-sysprep.pod:200
3278 msgid "Remove email from the local mail spool directory."
3279 msgstr ""
3280
3281 #. type: =head2
3282 #: ../clone/virt-sysprep.pod:202
3283 msgid "net-hwaddr"
3284 msgstr ""
3285
3286 #. type: textblock
3287 #: ../clone/virt-sysprep.pod:204
3288 msgid ""
3289 "Remove HWADDR (hard-coded MAC address) configuration.  For Fedora and Red "
3290 "Hat Enterprise Linux, this is removed from C<ifcfg-*> files."
3291 msgstr ""
3292
3293 #. type: =head2
3294 #: ../clone/virt-sysprep.pod:207
3295 msgid "random-seed"
3296 msgstr ""
3297
3298 #. type: textblock
3299 #: ../clone/virt-sysprep.pod:209
3300 msgid ""
3301 "Write some random bytes from the host into the random seed file of the guest."
3302 msgstr ""
3303
3304 #. type: textblock
3305 #: ../clone/virt-sysprep.pod:212
3306 msgid "See L</RANDOM SEED> below."
3307 msgstr ""
3308
3309 #. type: =head2
3310 #: ../clone/virt-sysprep.pod:214
3311 msgid "rhn-systemid"
3312 msgstr ""
3313
3314 #. type: textblock
3315 #: ../clone/virt-sysprep.pod:216
3316 msgid "Remove the RHN system ID."
3317 msgstr ""
3318
3319 #. type: =head2
3320 #: ../clone/virt-sysprep.pod:218
3321 msgid "smolt-uuid"
3322 msgstr ""
3323
3324 #. type: textblock
3325 #: ../clone/virt-sysprep.pod:220
3326 msgid "Remove the Smolt hardware UUID."
3327 msgstr ""
3328
3329 #. type: =head2
3330 #: ../clone/virt-sysprep.pod:222
3331 msgid "ssh-hostkeys"
3332 msgstr ""
3333
3334 #. type: textblock
3335 #: ../clone/virt-sysprep.pod:224
3336 msgid "Remove the SSH host keys in the guest."
3337 msgstr ""
3338
3339 #. type: textblock
3340 #: ../clone/virt-sysprep.pod:226
3341 msgid ""
3342 "The SSH host keys are regenerated (differently) next time the guest is "
3343 "booted."
3344 msgstr ""
3345
3346 #. type: textblock
3347 #: ../clone/virt-sysprep.pod:229
3348 msgid ""
3349 "If, after cloning, the guest gets the same IP address, ssh will give you a "
3350 "stark warning about the host key changing:"
3351 msgstr ""
3352
3353 #. type: verbatim
3354 #: ../clone/virt-sysprep.pod:232
3355 #, no-wrap
3356 msgid ""
3357 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3358 " @    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @\n"
3359 " @@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@\n"
3360 " IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!\n"
3361 "\n"
3362 msgstr ""
3363
3364 #. type: =head2
3365 #: ../clone/virt-sysprep.pod:237
3366 msgid "udev-persistent-net"
3367 msgstr ""
3368
3369 #. type: textblock
3370 #: ../clone/virt-sysprep.pod:239
3371 msgid ""
3372 "Remove udev persistent net rules which map the guest's existing MAC address "
3373 "to a fixed ethernet device (eg. eth0)."
3374 msgstr ""
3375
3376 #. type: textblock
3377 #: ../clone/virt-sysprep.pod:242
3378 msgid ""
3379 "After a guest is cloned, the MAC address usually changes.  Since the old MAC "
3380 "address occupies the old name (eg. eth0), this means the fresh MAC address "
3381 "is assigned to a new name (eg. eth1) and this is usually undesirable.  "
3382 "Erasing the udev persistent net rules avoids this."
3383 msgstr ""
3384
3385 #. type: =head2
3386 #: ../clone/virt-sysprep.pod:247
3387 msgid "utmp"
3388 msgstr ""
3389
3390 #. type: textblock
3391 #: ../clone/virt-sysprep.pod:249
3392 msgid "Remove the utmp file."
3393 msgstr ""
3394
3395 #. type: textblock
3396 #: ../clone/virt-sysprep.pod:251
3397 msgid ""
3398 "This records who is currently logged in on a machine.  In modern Linux "
3399 "distros it is stored in a ramdisk and hence not part of the virtual "
3400 "machine's disk, but it was stored on disk in older distros."
3401 msgstr ""
3402
3403 #. type: =head2
3404 #: ../clone/virt-sysprep.pod:255
3405 msgid "yum-uuid"
3406 msgstr ""
3407
3408 #. type: textblock
3409 #: ../clone/virt-sysprep.pod:257
3410 msgid "Remove the yum UUID."
3411 msgstr ""
3412
3413 #. type: textblock
3414 #: ../clone/virt-sysprep.pod:259
3415 msgid ""
3416 "Yum creates a fresh UUID the next time it runs when it notices that the "
3417 "original UUID has been erased."
3418 msgstr ""
3419
3420 #. type: =head1
3421 #: ../clone/virt-sysprep.pod:262
3422 msgid "COPYING AND CLONING"
3423 msgstr ""
3424
3425 #. type: textblock
3426 #: ../clone/virt-sysprep.pod:264
3427 msgid ""
3428 "Virt-sysprep can be used as part of a process of cloning guests, or to "
3429 "prepare a template from which guests can be cloned.  There are many "
3430 "different ways to achieve this using the virt tools, and this section is "
3431 "just an introduction."
3432 msgstr ""
3433
3434 #. type: textblock
3435 #: ../clone/virt-sysprep.pod:269
3436 msgid "A virtual machine (when switched off) consists of two parts:"
3437 msgstr ""
3438
3439 #. type: =item
3440 #: ../clone/virt-sysprep.pod:273
3441 msgid "I<configuration>"
3442 msgstr ""
3443
3444 #. type: textblock
3445 #: ../clone/virt-sysprep.pod:275
3446 msgid ""
3447 "The configuration or description of the guest.  eg. The libvirt XML (see "
3448 "C<virsh dumpxml>), the running configuration of the guest, or another "
3449 "external format like OVF."
3450 msgstr ""
3451
3452 #. type: textblock
3453 #: ../clone/virt-sysprep.pod:279
3454 msgid "Some configuration items that might need to be changed:"
3455 msgstr ""
3456
3457 #. type: textblock
3458 #: ../clone/virt-sysprep.pod:285
3459 msgid "name"
3460 msgstr ""
3461
3462 #. type: textblock
3463 #: ../clone/virt-sysprep.pod:289 ../clone/virt-sysprep.pod:316
3464 msgid "UUID"
3465 msgstr ""
3466
3467 #. type: textblock
3468 #: ../clone/virt-sysprep.pod:293
3469 msgid "path to block device(s)"
3470 msgstr ""
3471
3472 #. type: textblock
3473 #: ../clone/virt-sysprep.pod:297
3474 msgid "network card MAC address"
3475 msgstr ""
3476
3477 #. type: =item
3478 #: ../clone/virt-sysprep.pod:301
3479 msgid "I<block device(s)>"
3480 msgstr ""
3481
3482 #. type: textblock
3483 #: ../clone/virt-sysprep.pod:303
3484 msgid ""
3485 "One or more hard disk images, themselves containing files, directories, "
3486 "applications, kernels, configuration, etc."
3487 msgstr ""
3488
3489 #. type: textblock
3490 #: ../clone/virt-sysprep.pod:306
3491 msgid "Some things inside the block devices that might need to be changed:"
3492 msgstr ""
3493
3494 #. type: textblock
3495 #: ../clone/virt-sysprep.pod:312
3496 msgid "hostname and other net configuration"
3497 msgstr ""
3498
3499 #. type: textblock
3500 #: ../clone/virt-sysprep.pod:320
3501 msgid "SSH host keys"
3502 msgstr ""
3503
3504 #. type: textblock
3505 #: ../clone/virt-sysprep.pod:324
3506 msgid "Windows unique security ID (SID)"
3507 msgstr ""
3508
3509 #. type: textblock
3510 #: ../clone/virt-sysprep.pod:328
3511 msgid "Puppet registration"
3512 msgstr ""
3513
3514 #. type: =head2
3515 #: ../clone/virt-sysprep.pod:334
3516 msgid "COPYING THE BLOCK DEVICE"
3517 msgstr ""
3518
3519 #. type: textblock
3520 #: ../clone/virt-sysprep.pod:336
3521 msgid ""
3522 "Starting with an original guest, you probably wish to copy the guest block "
3523 "device and its configuration to make a template.  Then once you are happy "
3524 "with the template, you will want to make many clones from it."
3525 msgstr ""
3526
3527 #. type: verbatim
3528 #: ../clone/virt-sysprep.pod:341
3529 #, no-wrap
3530 msgid ""
3531 "                        virt-sysprep\n"
3532 "                             |\n"
3533 "                             v\n"
3534 " original guest --------> template ---------->\n"
3535 "                                      \\------> cloned\n"
3536 "                                       \\-----> guests\n"
3537 "                                        \\---->\n"
3538 "\n"
3539 msgstr ""
3540
3541 #. type: textblock
3542 #: ../clone/virt-sysprep.pod:349
3543 msgid ""
3544 "You can, of course, just copy the block device on the host using L<cp(1)> or "
3545 "L<dd(1)>."
3546 msgstr ""
3547
3548 #. type: verbatim
3549 #: ../clone/virt-sysprep.pod:352
3550 #, no-wrap
3551 msgid ""
3552 "                   dd                 dd\n"
3553 " original guest --------> template ---------->\n"
3554 "                                      \\------> cloned\n"
3555 "                                       \\-----> guests\n"
3556 "                                        \\---->\n"
3557 "\n"
3558 msgstr ""
3559
3560 #. type: textblock
3561 #: ../clone/virt-sysprep.pod:358
3562 msgid "There are some smarter (and faster) ways too:"
3563 msgstr ""
3564
3565 #. type: verbatim
3566 #: ../clone/virt-sysprep.pod:364
3567 #, no-wrap
3568 msgid ""
3569 "                          snapshot\n"
3570 "                template ---------->\n"
3571 "                            \\------> cloned\n"
3572 "                             \\-----> guests\n"
3573 "                              \\---->\n"
3574 "\n"
3575 msgstr ""
3576
3577 #. type: textblock
3578 #: ../clone/virt-sysprep.pod:370
3579 msgid ""
3580 "Use the block device as a backing file and create a snapshot on top for each "
3581 "guest.  The advantage is that you don't need to copy the block device (very "
3582 "fast) and only changes are stored (less storage required)."
3583 msgstr ""
3584
3585 #. type: textblock
3586 #: ../clone/virt-sysprep.pod:375
3587 msgid ""
3588 "Note that writing to the backing file once you have created guests on top of "
3589 "it is not possible: you will corrupt the guests."
3590 msgstr ""
3591
3592 #. type: textblock
3593 #: ../clone/virt-sysprep.pod:378
3594 msgid ""
3595 "Tools that can do this include: L<qemu-img(1)> (with the I<create -f qcow2 -"
3596 "o backing_file> option), L<lvcreate(8)> (I<--snapshot> option).  Some "
3597 "filesystems (such as btrfs) and most Network Attached Storage devices can "
3598 "also create cheap snapshots from files or LUNs."
3599 msgstr ""
3600
3601 #. type: textblock
3602 #: ../clone/virt-sysprep.pod:386
3603 msgid "Get your NAS to snapshot and/or duplicate the LUN."
3604 msgstr ""
3605
3606 #. type: textblock
3607 #: ../clone/virt-sysprep.pod:390
3608 msgid "Prepare your template using L<virt-sparsify(1)>.  See below."
3609 msgstr ""
3610
3611 #. type: =head2
3612 #: ../clone/virt-sysprep.pod:394
3613 msgid "VIRT-CLONE"
3614 msgstr ""
3615
3616 #. type: textblock
3617 #: ../clone/virt-sysprep.pod:396
3618 msgid ""
3619 "A separate tool, L<virt-clone(1)>, can be used to duplicate the block device "
3620 "and/or modify the external libvirt configuration of a guest.  It will reset "
3621 "the name, UUID and MAC address of the guest in the libvirt XML."
3622 msgstr ""
3623
3624 #. type: textblock
3625 #: ../clone/virt-sysprep.pod:401
3626 msgid ""
3627 "L<virt-clone(1)> does not use libguestfs and cannot look inside the disk "
3628 "image.  This was the original motivation to write virt-sysprep."
3629 msgstr ""
3630
3631 #. type: =head2
3632 #: ../clone/virt-sysprep.pod:404
3633 msgid "SPARSIFY"
3634 msgstr ""
3635
3636 #. type: verbatim
3637 #: ../clone/virt-sysprep.pod:406
3638 #, no-wrap
3639 msgid ""
3640 "              virt-sparsify\n"
3641 " original guest --------> template\n"
3642 "\n"
3643 msgstr ""
3644
3645 #. type: textblock
3646 #: ../clone/virt-sysprep.pod:409
3647 msgid ""
3648 "L<virt-sparsify(1)> can be used to make the cloning template smaller, making "
3649 "it easier to compress and/or faster to copy."
3650 msgstr ""
3651
3652 #. type: textblock
3653 #: ../clone/virt-sysprep.pod:412
3654 msgid ""
3655 "Notice that since virt-sparsify also copies the image, you can use it to "
3656 "make the initial copy (instead of C<dd>)."
3657 msgstr ""
3658
3659 #. type: =head2
3660 #: ../clone/virt-sysprep.pod:415
3661 msgid "RESIZE"
3662 msgstr ""
3663
3664 #. type: verbatim
3665 #: ../clone/virt-sysprep.pod:417
3666 #, no-wrap
3667 msgid ""
3668 "                         virt-resize\n"
3669 "                template ---------->\n"
3670 "                            \\------> cloned\n"
3671 "                             \\-----> guests\n"
3672 "                              \\---->\n"
3673 "\n"
3674 msgstr ""
3675
3676 #. type: textblock
3677 #: ../clone/virt-sysprep.pod:423
3678 msgid ""
3679 "If you want to give people cloned guests, but let them pick the size of the "
3680 "guest themselves (eg. depending on how much they are prepared to pay for "
3681 "disk space), then instead of copying the template, you can run L<virt-resize"
3682 "(1)>.  Virt-resize performs a copy and resize, and thus is ideal for cloning "
3683 "guests from a template."
3684 msgstr ""
3685
3686 #. type: =head1
3687 #: ../clone/virt-sysprep.pod:429 ../src/guestfs.pod:1149
3688 msgid "SECURITY"
3689 msgstr "БЕЗПЕКА"
3690
3691 #. type: textblock
3692 #: ../clone/virt-sysprep.pod:431
3693 msgid ""
3694 "Although virt-sysprep removes some sensitive information from the guest, it "
3695 "does not pretend to remove all of it.  You should examine the L</OPERATIONS> "
3696 "above, and the implementation of the operations in the shell script.  You "
3697 "should also examine the guest afterwards."
3698 msgstr ""
3699
3700 #. type: textblock
3701 #: ../clone/virt-sysprep.pod:436
3702 msgid ""
3703 "Sensitive files are simply removed.  The data they contained may still exist "
3704 "on the disk, easily recovered with a hex editor or undelete tool.  Use "
3705 "L<virt-sparsify(1)> as one way to remove this content.  See also the L<scrub"
3706 "(1)> command to get rid of deleted content in directory entries and inodes."
3707 msgstr ""
3708
3709 #. type: =head2
3710 #: ../clone/virt-sysprep.pod:442
3711 msgid "RANDOM SEED"
3712 msgstr ""
3713
3714 #. type: textblock
3715 #: ../clone/virt-sysprep.pod:444
3716 msgid "I<(This section applies to Linux guests only)>"
3717 msgstr ""
3718
3719 #. type: textblock
3720 #: ../clone/virt-sysprep.pod:446
3721 msgid ""
3722 "The virt-sysprep C<random-seed> operation writes a few bytes of randomness "
3723 "from the host into the guest's random seed file."
3724 msgstr ""
3725
3726 #. type: textblock
3727 #: ../clone/virt-sysprep.pod:449
3728 msgid ""
3729 "If this is just done once and the guest is cloned from the same template, "
3730 "then each guest will start with the same entropy, and things like SSH host "
3731 "keys and TCP sequence numbers may be predictable."
3732 msgstr ""
3733
3734 #. type: textblock
3735 #: ../clone/virt-sysprep.pod:453
3736 msgid ""
3737 "Therefore you should arrange to add more randomness I<after> cloning from a "
3738 "template too, which can be done by just enabling the C<random-seed> "
3739 "operation:"
3740 msgstr ""
3741
3742 #. type: verbatim
3743 #: ../clone/virt-sysprep.pod:457
3744 #, no-wrap
3745 msgid ""
3746 " cp template.img newguest.img\n"
3747 " virt-sysprep --enable=random-seed -a newguest.img\n"
3748 "\n"
3749 msgstr ""
3750
3751 #. type: =head2
3752 #: ../clone/virt-sysprep.pod:460
3753 msgid "SELINUX RELABELLING"
3754 msgstr ""
3755
3756 #. type: textblock
3757 #: ../clone/virt-sysprep.pod:462
3758 msgid "I<(This section applies to Linux guests using SELinux only)>"
3759 msgstr ""
3760
3761 #. type: textblock
3762 #: ../clone/virt-sysprep.pod:464
3763 msgid ""
3764 "If any new files are created by virt-sysprep, then virt-sysprep touches C</."
3765 "autorelabel> so that these will be correctly labelled by SELinux the next "
3766 "time the guest is booted.  This process interrupts boot and can take some "
3767 "time."
3768 msgstr ""
3769
3770 #. type: textblock
3771 #: ../clone/virt-sysprep.pod:469
3772 msgid ""
3773 "You can force relabelling for all guests by supplying the I<--selinux-"
3774 "relabel> option."
3775 msgstr ""
3776
3777 #. type: textblock
3778 #: ../clone/virt-sysprep.pod:472
3779 msgid ""
3780 "You can disable relabelling entirely by supplying the I<--no-selinux-"
3781 "relabel> option."
3782 msgstr ""
3783
3784 #. type: textblock
3785 #: ../clone/virt-sysprep.pod:484
3786 msgid "This program returns 0 on success, or 1 if there was an error."
3787 msgstr ""
3788
3789 #. type: textblock
3790 #: ../clone/virt-sysprep.pod:488
3791 msgid ""
3792 "L<guestfs(3)>, L<guestfish(1)>, L<virt-clone(1)>, L<virt-rescue(1)>, L<virt-"
3793 "resize(1)>, L<virt-sparsify(1)>, L<virsh(1)>, L<lvcreate(8)>, L<qemu-img(1)"
3794 ">, L<scrub(1)>, L<http://libguestfs.org/>, L<http://libvirt.org/>."
3795 msgstr ""
3796
3797 #. type: textblock
3798 #: ../df/virt-df.pod:5
3799 msgid "virt-df - Display free space on virtual filesystems"
3800 msgstr ""
3801
3802 #. type: verbatim
3803 #: ../df/virt-df.pod:9
3804 #, no-wrap
3805 msgid ""
3806 " virt-df [--options]\n"
3807 "\n"
3808 msgstr ""
3809 " virt-df [--параметри]\n"
3810 "\n"
3811
3812 #. type: verbatim
3813 #: ../df/virt-df.pod:11
3814 #, no-wrap
3815 msgid ""
3816 " virt-df [--options] -d domname\n"
3817 "\n"
3818 msgstr ""
3819
3820 #. type: verbatim
3821 #: ../df/virt-df.pod:13
3822 #, no-wrap
3823 msgid ""
3824 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
3825 "\n"
3826 msgstr ""
3827
3828 #. type: verbatim
3829 #: ../df/virt-df.pod:17
3830 #, no-wrap
3831 msgid ""
3832 " virt-df [--options] domname\n"
3833 "\n"
3834 msgstr ""
3835
3836 #. type: verbatim
3837 #: ../df/virt-df.pod:19
3838 #, no-wrap
3839 msgid ""
3840 " virt-df [--options] disk.img [disk.img ...]\n"
3841 "\n"
3842 msgstr ""
3843
3844 #. type: textblock
3845 #: ../df/virt-df.pod:23
3846 msgid ""
3847 "C<virt-df> is a command line tool to display free space on virtual machine "
3848 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
3849 "allocated to a virtual machine, but can look inside disk images to see how "
3850 "much space is really being used."
3851 msgstr ""
3852
3853 #. type: textblock
3854 #: ../df/virt-df.pod:28
3855 msgid ""
3856 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
3857 "to get a list of all active and inactive guests, and performs a C<df>-type "
3858 "operation on each one in turn, printing out the results."
3859 msgstr ""
3860
3861 #. type: textblock
3862 #: ../df/virt-df.pod:32
3863 msgid ""
3864 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
3865 "type operation on either the single named libvirt domain, or on the disk "
3866 "image(s) listed on the command line (which must all belong to a single VM).  "
3867 "In this mode (with arguments), C<virt-df> will I<only work for a single "
3868 "guest>.  If you want to run on multiple guests, then you have to invoke "
3869 "C<virt-df> multiple times."
3870 msgstr ""
3871
3872 #. type: textblock
3873 #: ../df/virt-df.pod:39
3874 msgid ""
3875 "Use the I<--csv> option to get a format which can be easily parsed by other "
3876 "programs.  Other options are similar to the standard L<df(1)> command."
3877 msgstr ""
3878
3879 #. type: textblock
3880 #: ../df/virt-df.pod:45
3881 msgid ""
3882 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
3883 "output human-readable:"
3884 msgstr ""
3885
3886 #. type: verbatim
3887 #: ../df/virt-df.pod:48
3888 #, no-wrap
3889 msgid ""
3890 " # virt-df -d F14x64 -h\n"
3891 " Filesystem                       Size     Used  Available  Use%\n"
3892 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
3893 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
3894 "\n"
3895 msgstr ""
3896
3897 #. type: textblock
3898 #: ../df/virt-df.pod:53
3899 msgid "Show disk usage for a disk image file called C<test.img>:"
3900 msgstr ""
3901
3902 #. type: verbatim
3903 #: ../df/virt-df.pod:55
3904 #, no-wrap
3905 msgid ""
3906 " $ virt-df -a test1.img\n"
3907 " Filesystem                  1K-blocks     Used  Available  Use%\n"
3908 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
3909 "\n"
3910 msgstr ""
3911
3912 #. type: verbatim
3913 #: ../df/virt-df.pod:112
3914 #, no-wrap
3915 msgid ""
3916 " virt-df --format=raw -a disk.img\n"
3917 "\n"
3918 msgstr ""
3919
3920 #. type: verbatim
3921 #: ../df/virt-df.pod:116
3922 #, no-wrap
3923 msgid ""
3924 " virt-df --format=raw -a disk.img --format -a another.img\n"
3925 "\n"
3926 msgstr ""
3927
3928 #. type: textblock
3929 #: ../df/virt-df.pod:129
3930 msgid "Print sizes in human-readable format."
3931 msgstr ""
3932
3933 #. type: textblock
3934 #: ../df/virt-df.pod:131
3935 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
3936 msgstr ""
3937
3938 #. type: =item
3939 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:164
3940 msgid "B<-i>"
3941 msgstr "B<-i>"
3942
3943 #. type: =item
3944 #: ../df/virt-df.pod:135
3945 msgid "B<--inodes>"
3946 msgstr "B<--inodes>"
3947
3948 #. type: textblock
3949 #: ../df/virt-df.pod:137
3950 msgid "Print inodes instead of blocks."
3951 msgstr ""
3952
3953 #. type: =item
3954 #: ../df/virt-df.pod:139
3955 msgid "B<--one-per-guest>"
3956 msgstr "B<--one-per-guest>"
3957
3958 #. type: textblock
3959 #: ../df/virt-df.pod:141
3960 msgid ""
3961 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3962 "disks from several guests to a single libguestfs appliance."
3963 msgstr ""
3964
3965 #. type: textblock
3966 #: ../df/virt-df.pod:144
3967 msgid "You might use this option in the following circumstances:"
3968 msgstr ""
3969
3970 #. type: textblock
3971 #: ../df/virt-df.pod:150
3972 msgid ""
3973 "If you think an untrusted guest might actively try to exploit the libguestfs "
3974 "appliance kernel, then this prevents one guest from interfering with the "
3975 "stats printed for another guest."
3976 msgstr ""
3977
3978 #. type: textblock
3979 #: ../df/virt-df.pod:156
3980 msgid ""
3981 "If the kernel has a bug which stops it from accessing a filesystem in one "
3982 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3983 "and report stats for further guests."
3984 msgstr ""
3985
3986 #. type: textblock
3987 #: ../df/virt-df.pod:165
3988 msgid ""
3989 "Print UUIDs instead of names.  This is useful for following a guest even "
3990 "when the guest is migrated or renamed, or when two guests happen to have the "
3991 "same name."
3992 msgstr ""
3993
3994 #. type: textblock
3995 #: ../df/virt-df.pod:169
3996 msgid ""
3997 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3998 "images, we still print the disk image name even when this option is "
3999 "specified."
4000 msgstr ""
4001
4002 #. type: textblock
4003 #: ../df/virt-df.pod:229
4004 msgid ""
4005 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
4006 "libguestfs.org/>."
4007 msgstr ""
4008
4009 #. type: textblock
4010 #: ../edit/virt-edit.pod:5
4011 msgid "virt-edit - Edit a file in a virtual machine"
4012 msgstr ""
4013
4014 #. type: verbatim
4015 #: ../edit/virt-edit.pod:9
4016 #, no-wrap
4017 msgid ""
4018 " virt-edit [--options] -d domname file [file ...]\n"
4019 "\n"
4020 msgstr ""
4021
4022 #. type: verbatim
4023 #: ../edit/virt-edit.pod:11
4024 #, no-wrap
4025 msgid ""
4026 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
4027 "\n"
4028 msgstr ""
4029
4030 #. type: verbatim
4031 #: ../edit/virt-edit.pod:13
4032 #, no-wrap
4033 msgid ""
4034 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
4035 "\n"
4036 msgstr ""
4037
4038 #. type: verbatim
4039 #: ../edit/virt-edit.pod:17
4040 #, no-wrap
4041 msgid ""
4042 " virt-edit domname file\n"
4043 "\n"
4044 msgstr ""
4045
4046 #. type: verbatim
4047 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
4048 #, no-wrap
4049 msgid ""
4050 " virt-edit disk.img [disk.img ...] file\n"
4051 "\n"
4052 msgstr ""
4053
4054 #. type: =head1
4055 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
4056 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
4057 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
4058 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
4059 msgid "WARNING"
4060 msgstr "ПОПЕРЕДЖЕННЯ"
4061
4062 #. type: textblock
4063 #: ../edit/virt-edit.pod:23
4064 msgid ""
4065 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
4066 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
4067 "doing this, but doesn't catch all cases."
4068 msgstr ""
4069
4070 #. type: textblock
4071 #: ../edit/virt-edit.pod:29
4072 msgid ""
4073 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
4074 "exists in the named virtual machine (or disk image)."
4075 msgstr ""
4076
4077 #. type: textblock
4078 #: ../edit/virt-edit.pod:32
4079 msgid ""
4080 "Multiple filenames can be given, in which case they are each edited in "
4081 "turn.  Each filename must be a full path, starting at the root directory "
4082 "(starting with '/')."
4083 msgstr ""
4084
4085 #. type: textblock
4086 #: ../edit/virt-edit.pod:36
4087 msgid "If you want to just view a file, use L<virt-cat(1)>."
4088 msgstr ""
4089
4090 #. type: textblock
4091 #: ../edit/virt-edit.pod:38
4092 msgid ""
4093 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
4094 "USING GUESTFISH> below)."
4095 msgstr ""
4096
4097 #. type: textblock
4098 #: ../edit/virt-edit.pod:41
4099 msgid ""
4100 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
4101 "that and much more."
4102 msgstr ""
4103
4104 #. type: textblock
4105 #: ../edit/virt-edit.pod:46
4106 msgid "Edit the named files interactively:"
4107 msgstr ""
4108
4109 #. type: verbatim
4110 #: ../edit/virt-edit.pod:48
4111 #, no-wrap
4112 msgid ""
4113 " virt-edit -d mydomain /boot/grub/grub.conf\n"
4114 "\n"
4115 msgstr ""
4116
4117 #. type: verbatim
4118 #: ../edit/virt-edit.pod:50
4119 #, no-wrap
4120 msgid ""
4121 " virt-edit -d mydomain /etc/passwd\n"
4122 "\n"
4123 msgstr ""
4124
4125 #. type: textblock
4126 #: ../edit/virt-edit.pod:52
4127 msgid "For Windows guests, some Windows paths are understood:"
4128 msgstr ""
4129
4130 #. type: verbatim
4131 #: ../edit/virt-edit.pod:54
4132 #, no-wrap
4133 msgid ""
4134 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
4135 "\n"
4136 msgstr ""
4137
4138 #. type: textblock
4139 #: ../edit/virt-edit.pod:56
4140 msgid ""
4141 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
4142 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
4143 msgstr ""
4144
4145 #. type: verbatim
4146 #: ../edit/virt-edit.pod:60
4147 #, no-wrap
4148 msgid ""
4149 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
4150 "\n"
4151 msgstr ""
4152
4153 #. type: =item
4154 #: ../edit/virt-edit.pod:81
4155 msgid "B<-b> extension"
4156 msgstr ""
4157
4158 #. type: =item
4159 #: ../edit/virt-edit.pod:83
4160 msgid "B<--backup> extension"
4161 msgstr ""
4162
4163 #. type: textblock
4164 #: ../edit/virt-edit.pod:85
4165 msgid ""
4166 "Create a backup of the original file I<in the guest disk image>.  The backup "
4167 "has the original filename with C<extension> added."
4168 msgstr ""
4169
4170 #. type: textblock
4171 #: ../edit/virt-edit.pod:88
4172 msgid ""
4173 "Usually the first character of C<extension> would be a dot C<.> so you would "
4174 "write:"
4175 msgstr ""
4176
4177 #. type: verbatim
4178 #: ../edit/virt-edit.pod:91
4179 #, no-wrap
4180 msgid ""
4181 " virt-edit -b .orig [etc]\n"
4182 "\n"
4183 msgstr ""
4184
4185 #. type: textblock
4186 #: ../edit/virt-edit.pod:93
4187 msgid "By default, no backup file is made."
4188 msgstr ""
4189
4190 #. type: =item
4191 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
4192 #: ../fuse/guestmount.pod:105 ../inspector/virt-inspector.pod:74
4193 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
4194 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
4195 msgid "B<-c URI>"
4196 msgstr "B<-c адреса>"
4197
4198 #. type: =item
4199 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
4200 #: ../fuse/guestmount.pod:107 ../inspector/virt-inspector.pod:76
4201 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
4202 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
4203 msgid "B<--connect URI>"
4204 msgstr "B<--connect адреса>"
4205
4206 #. type: textblock
4207 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
4208 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
4209 #: ../tools/virt-win-reg.pl:135
4210 msgid ""
4211 "If you specify guest block devices directly, then libvirt is not used at all."
4212 msgstr ""
4213
4214 #. type: textblock
4215 #: ../edit/virt-edit.pod:114
4216 msgid ""
4217 "When prompting for keys and passphrases, virt-edit normally turns echoing "
4218 "off so you cannot see what you are typing.  If you are not worried about "
4219 "Tempest attacks and there is no one else in the room you can specify this "
4220 "flag to see what you are typing."
4221 msgstr ""
4222
4223 #. type: =item
4224 #: ../edit/virt-edit.pod:119
4225 msgid "B<-e> EXPR"
4226 msgstr "B<-e> вираз"
4227
4228 #. type: =item
4229 #: ../edit/virt-edit.pod:121
4230 msgid "B<--expr> EXPR"
4231 msgstr "B<--expr> вираз"
4232
4233 #. type: textblock
4234 #: ../edit/virt-edit.pod:123
4235 msgid ""
4236 "Instead of launching the external editor, non-interactively apply the Perl "
4237 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
4238 "EDITING> below."
4239 msgstr ""
4240
4241 #. type: textblock
4242 #: ../edit/virt-edit.pod:127
4243 msgid ""
4244 "Be careful to properly quote the expression to prevent it from being altered "
4245 "by the shell."
4246 msgstr ""
4247
4248 #. type: textblock
4249 #: ../edit/virt-edit.pod:130
4250 msgid "Note that this option is only available when Perl 5 is installed."
4251 msgstr ""
4252
4253 #. type: =item
4254 #: ../edit/virt-edit.pod:132
4255 msgid "B<--format> raw|qcow2|..."
4256 msgstr "B<--format> raw|qcow2|..."
4257
4258 #. type: verbatim
4259 #: ../edit/virt-edit.pod:143
4260 #, no-wrap
4261 msgid ""
4262 " virt-edit --format=raw -a disk.img file\n"
4263 "\n"
4264 msgstr ""
4265
4266 #. type: verbatim
4267 #: ../edit/virt-edit.pod:147
4268 #, no-wrap
4269 msgid ""
4270 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
4271 "\n"
4272 msgstr ""
4273
4274 #. type: textblock
4275 #: ../edit/virt-edit.pod:181
4276 msgid "Previous versions of virt-edit allowed you to write either:"
4277 msgstr ""
4278
4279 #. type: verbatim
4280 #: ../edit/virt-edit.pod:187
4281 #, no-wrap
4282 msgid ""
4283 " virt-edit guestname file\n"
4284 "\n"
4285 msgstr ""
4286
4287 #. type: =head1
4288 #: ../edit/virt-edit.pod:195
4289 msgid "NON-INTERACTIVE EDITING"
4290 msgstr "НЕІНТЕРАКТИВНЕ РЕДАГУВАННЯ"
4291
4292 #. type: textblock
4293 #: ../edit/virt-edit.pod:197
4294 msgid ""
4295 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
4296 "administrator can interactively edit the file."
4297 msgstr ""
4298
4299 #. type: textblock
4300 #: ../edit/virt-edit.pod:200
4301 msgid ""
4302 "There are two ways also to use C<virt-edit> from scripts in order to make "
4303 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
4304 "like this, it's less error-prone to write scripts directly using the "
4305 "libguestfs API and Augeas for configuration file editing.)"
4306 msgstr ""
4307
4308 #. type: textblock
4309 #: ../edit/virt-edit.pod:206
4310 msgid ""
4311 "The first method is to temporarily set C<$EDITOR> to any script or program "
4312 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
4313 "update C<tmpfile> in place however it likes."
4314 msgstr ""
4315
4316 #. type: textblock
4317 #: ../edit/virt-edit.pod:210
4318 msgid ""
4319 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
4320 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
4321 "instances of C<foo> with C<bar> in a file:"
4322 msgstr ""
4323
4324 #. type: verbatim
4325 #: ../edit/virt-edit.pod:214
4326 #, no-wrap
4327 msgid ""
4328 " virt-edit -d domname filename -e 's/foo/bar/'\n"
4329 "\n"
4330 msgstr ""
4331
4332 #. type: textblock
4333 #: ../edit/virt-edit.pod:216
4334 msgid ""
4335 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
4336 "For example to delete root's password you could do:"
4337 msgstr ""
4338
4339 #. type: verbatim
4340 #: ../edit/virt-edit.pod:219
4341 #, no-wrap
4342 msgid ""
4343 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
4344 "\n"
4345 msgstr ""
4346 " virt-edit -d назва_домену /etc/passwd -e 's/^root:.*?:/root::/'\n"
4347 "\n"
4348
4349 #. type: textblock
4350 #: ../edit/virt-edit.pod:221
4351 msgid ""
4352 "What really happens is that the snippet is evaluated as a Perl expression "
4353 "for each line of the file.  The line, including the final C<\\n>, is passed "
4354 "in C<$_> and the expression should update C<$_> or leave it unchanged."
4355 msgstr ""
4356
4357 #. type: textblock
4358 #: ../edit/virt-edit.pod:226
4359 msgid ""
4360 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
4361 "C<apache> user account from the password file you can do:"
4362 msgstr ""
4363
4364 #. type: verbatim
4365 #: ../edit/virt-edit.pod:229
4366 #, no-wrap
4367 msgid ""
4368 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4369 "\n"
4370 msgstr ""
4371 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
4372 "\n"
4373
4374 #. type: textblock
4375 #: ../edit/virt-edit.pod:231
4376 msgid ""
4377 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
4378 "the end of the file is rather difficult this way since there is no concept "
4379 "of \"last line of the file\" - your expression just doesn't get called "
4380 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
4381 "want to do this."
4382 msgstr ""
4383
4384 #. type: textblock
4385 #: ../edit/virt-edit.pod:237
4386 msgid ""
4387 "The variable C<$lineno> contains the current line number.  As is "
4388 "traditional, the first line in the file is number C<1>."
4389 msgstr ""
4390
4391 #. type: textblock
4392 #: ../edit/virt-edit.pod:240
4393 msgid ""
4394 "The return value from the expression is ignored, but the expression may call "
4395 "C<die> in order to abort the whole program, leaving the original file "
4396 "untouched."
4397 msgstr ""
4398
4399 #. type: textblock
4400 #: ../edit/virt-edit.pod:244
4401 msgid ""
4402 "Remember when matching the end of a line that C<$_> may contain the final C<"
4403 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
4404 "newline then neither of these.  Thus to match or substitute some text at the "
4405 "end of a line, use this regular expression:"
4406 msgstr ""
4407
4408 #. type: verbatim
4409 #: ../edit/virt-edit.pod:249
4410 #, no-wrap
4411 msgid ""
4412 " /some text(\\r?\\n)?$/\n"
4413 "\n"
4414 msgstr ""
4415 " /якийсь текст(\\r?\\n)?$/\n"
4416 "\n"
4417
4418 #. type: textblock
4419 #: ../edit/virt-edit.pod:251
4420 msgid ""
4421 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
4422 "$_> itself (since that would remove all newlines from the file):"
4423 msgstr ""
4424
4425 #. type: verbatim
4426 #: ../edit/virt-edit.pod:255
4427 #, no-wrap
4428 msgid ""
4429 " my $m = $_; chomp $m; $m =~ /some text$/\n"
4430 "\n"
4431 msgstr ""
4432 " my $m = $_; chomp $m; $m =~ /якийсь текст$/\n"
4433 "\n"
4434
4435 #. type: =head1
4436 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
4437 msgid "WINDOWS PATHS"
4438 msgstr "ШЛЯХИ У WINDOWS"
4439
4440 #. type: textblock
4441 #: ../edit/virt-edit.pod:259
4442 msgid ""
4443 "C<virt-edit> has a limited ability to understand Windows drive letters and "
4444 "paths (eg. C<E:\\foo\\bar.txt>)."
4445 msgstr ""
4446
4447 #. type: textblock
4448 #: ../edit/virt-edit.pod:262
4449 msgid "If and only if the guest is running Windows then:"
4450 msgstr ""
4451
4452 #. type: textblock
4453 #: ../edit/virt-edit.pod:268
4454 msgid ""
4455 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
4456 "to the correct filesystem."
4457 msgstr ""
4458
4459 #. type: textblock
4460 #: ../edit/virt-edit.pod:273
4461 msgid ""
4462 "Any backslash (C<\\>) characters in the path are replaced with forward "
4463 "slashes so that libguestfs can process it."
4464 msgstr ""
4465
4466 #. type: textblock
4467 #: ../edit/virt-edit.pod:278
4468 msgid ""
4469 "The path is resolved case insensitively to locate the file that should be "
4470 "edited."
4471 msgstr ""
4472
4473 #. type: textblock
4474 #: ../edit/virt-edit.pod:283
4475 msgid "There are some known shortcomings:"
4476 msgstr ""
4477
4478 #. type: textblock
4479 #: ../edit/virt-edit.pod:289
4480 msgid "Some NTFS symbolic links may not be followed correctly."
4481 msgstr ""
4482
4483 #. type: textblock
4484 #: ../edit/virt-edit.pod:293
4485 msgid "NTFS junction points that cross filesystems are not followed."
4486 msgstr ""
4487
4488 #. type: textblock
4489 #: ../edit/virt-edit.pod:299
4490 msgid ""
4491 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
4492 "C<virt-edit> doesn't work."
4493 msgstr ""
4494
4495 #. type: textblock
4496 #: ../edit/virt-edit.pod:302
4497 msgid "Using C<virt-edit> is approximately equivalent to doing:"
4498 msgstr ""
4499
4500 #. type: verbatim
4501 #: ../edit/virt-edit.pod:304
4502 #, no-wrap
4503 msgid ""
4504 " guestfish --rw -i -d domname edit /file\n"
4505 "\n"
4506 msgstr ""
4507
4508 #. type: textblock
4509 #: ../edit/virt-edit.pod:306
4510 msgid ""
4511 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
4512 "path to the file."
4513 msgstr ""
4514
4515 #. type: textblock
4516 #: ../edit/virt-edit.pod:309
4517 msgid ""
4518 "The command above uses libguestfs's guest inspection feature and so does not "
4519 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
4520 "disk images that don't contain guests.  To edit a file on a disk image "
4521 "directly, use:"
4522 msgstr ""
4523
4524 #. type: verbatim
4525 #: ../edit/virt-edit.pod:314
4526 #, no-wrap
4527 msgid ""
4528 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
4529 "\n"
4530 msgstr ""
4531
4532 #. type: textblock
4533 #: ../edit/virt-edit.pod:316
4534 msgid ""
4535 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
4536 "the disk image to edit, and C</file> is the full path to the file."
4537 msgstr ""
4538
4539 #. type: textblock
4540 #: ../edit/virt-edit.pod:320
4541 msgid ""
4542 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
4543 "C<write> or C<upload> instead:"
4544 msgstr ""
4545
4546 #. type: verbatim
4547 #: ../edit/virt-edit.pod:323
4548 #, no-wrap
4549 msgid ""
4550 " guestfish --rw -i -d domname touch /newfile\n"
4551 "\n"
4552 msgstr ""
4553
4554 #. type: verbatim
4555 #: ../edit/virt-edit.pod:325
4556 #, no-wrap
4557 msgid ""
4558 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
4559 "\n"
4560 msgstr ""
4561
4562 #. type: verbatim
4563 #: ../edit/virt-edit.pod:327
4564 #, no-wrap
4565 msgid ""
4566 " guestfish --rw -i -d domname upload localfile /newfile\n"
4567 "\n"
4568 msgstr ""
4569
4570 #. type: =head1
4571 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1119
4572 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
4573 #: ../src/guestfs.pod:3194 ../test-tool/libguestfs-test-tool.pod:95
4574 msgid "ENVIRONMENT VARIABLES"
4575 msgstr "ЗМІННІ СЕРЕДОВИЩА"
4576
4577 #. type: =item
4578 #: ../edit/virt-edit.pod:333
4579 msgid "C<EDITOR>"
4580 msgstr "C<EDITOR>"
4581
4582 #. type: textblock
4583 #: ../edit/virt-edit.pod:335
4584 msgid ""
4585 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
4586 "\"emacs -nw\">"
4587 msgstr ""
4588
4589 #. type: textblock
4590 #: ../edit/virt-edit.pod:338
4591 msgid "If not set, C<vi> is used."
4592 msgstr ""
4593
4594 #. type: textblock
4595 #: ../edit/virt-edit.pod:356
4596 msgid ""
4597 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4598 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4599 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4600 msgstr ""
4601 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
4602 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
4603 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
4604
4605 #. type: textblock
4606 #: ../erlang/examples/guestfs-erlang.pod:5
4607 msgid "guestfs-erlang - How to use libguestfs from Erlang"
4608 msgstr ""
4609
4610 #. type: verbatim
4611 #: ../erlang/examples/guestfs-erlang.pod:9
4612 #, no-wrap
4613 msgid ""
4614 " {ok, G} = guestfs:create(),\n"
4615 " ok = guestfs:add_drive_opts(G, Disk,\n"
4616 "                             [{format, \"raw\"}, {readonly, true}]),\n"
4617 " ok = guestfs:launch(G),\n"
4618 " [Device] = guestfs:list_devices(G),\n"
4619 " ok = guestfs:close(G).\n"
4620 "\n"
4621 msgstr ""
4622
4623 #. type: textblock
4624 #: ../erlang/examples/guestfs-erlang.pod:18
4625 msgid ""
4626 "This manual page documents how to call libguestfs from the Erlang "
4627 "programming language.  This page just documents the differences from the C "
4628 "API and gives some examples.  If you are not familiar with using libguestfs, "
4629 "you also need to read L<guestfs(3)>."
4630 msgstr ""
4631
4632 #. type: =head2
4633 #: ../erlang/examples/guestfs-erlang.pod:23
4634 msgid "OPENING AND CLOSING THE HANDLE"
4635 msgstr ""
4636
4637 #. type: textblock
4638 #: ../erlang/examples/guestfs-erlang.pod:25
4639 msgid ""
4640 "The Erlang bindings are implemented using an external program called C<erl-"
4641 "guestfs>.  This program must be on the current PATH, or else you should "
4642 "specify the full path to the program:"
4643 msgstr ""
4644
4645 #. type: verbatim
4646 #: ../erlang/examples/guestfs-erlang.pod:29
4647 #, no-wrap
4648 msgid ""
4649 " {ok, G} = guestfs:create().\n"
4650 "\n"
4651 msgstr ""
4652
4653 #. type: verbatim
4654 #: ../erlang/examples/guestfs-erlang.pod:31
4655 #, no-wrap
4656 msgid ""
4657 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
4658 "\n"
4659 msgstr ""
4660
4661 #. type: textblock
4662 #: ../erlang/examples/guestfs-erlang.pod:33
4663 msgid "C<G> is the libguestfs handle which you should pass to other functions."
4664 msgstr ""
4665
4666 #. type: textblock
4667 #: ../erlang/examples/guestfs-erlang.pod:36
4668 msgid "To close the handle:"
4669 msgstr ""
4670
4671 #. type: verbatim
4672 #: ../erlang/examples/guestfs-erlang.pod:38
4673 #, no-wrap
4674 msgid ""
4675 " ok = guestfs:close(G).\n"
4676 "\n"
4677 msgstr ""
4678
4679 #. type: =head2
4680 #: ../erlang/examples/guestfs-erlang.pod:40
4681 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
4682 msgstr ""
4683
4684 #. type: textblock
4685 #: ../erlang/examples/guestfs-erlang.pod:42
4686 msgid ""
4687 "For functions that take optional arguments, the first arguments are the non-"
4688 "optional ones.  The last argument is a list of tuples supplying the "
4689 "remaining optional arguments."
4690 msgstr ""
4691
4692 #. type: verbatim
4693 #: ../erlang/examples/guestfs-erlang.pod:46
4694 #, no-wrap
4695 msgid ""
4696 " ok = guestfs:add_drive_opts(G, Disk,\n"
4697 "                             [{format, \"raw\"}, {readonly, true}]).\n"
4698 "\n"
4699 msgstr ""
4700
4701 #. type: textblock
4702 #: ../erlang/examples/guestfs-erlang.pod:49
4703 msgid "If the last argument would be an empty list, you can also omit it:"
4704 msgstr ""
4705
4706 #. type: verbatim
4707 #: ../erlang/examples/guestfs-erlang.pod:51
4708 #, no-wrap
4709 msgid ""
4710 " ok = guestfs:add_drive_opts(G, Disk).\n"
4711 "\n"
4712 msgstr ""
4713
4714 #. type: =head2
4715 #: ../erlang/examples/guestfs-erlang.pod:53
4716 msgid "RETURN VALUES AND ERRORS"
4717 msgstr ""
4718
4719 #. type: textblock
4720 #: ../erlang/examples/guestfs-erlang.pod:55
4721 msgid ""
4722 "On success, most functions return a C<Result> term (which could be a list, "
4723 "string, tuple etc.).  If there is nothing for the function to return, then "
4724 "the atom C<ok> is returned."
4725 msgstr ""
4726
4727 #. type: textblock
4728 #: ../erlang/examples/guestfs-erlang.pod:59
4729 msgid "On error, you would see one of the following tuples:"
4730 msgstr ""
4731
4732 #. type: =item
4733 #: ../erlang/examples/guestfs-erlang.pod:63
4734 msgid "C<{error, Msg, Errno}>"
4735 msgstr ""
4736
4737 #. type: textblock
4738 #: ../erlang/examples/guestfs-erlang.pod:65
4739 msgid "This indicates an ordinary error from the function."
4740 msgstr ""
4741
4742 #. type: textblock
4743 #: ../erlang/examples/guestfs-erlang.pod:67
4744 msgid ""
4745 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
4746 "(integer)."
4747 msgstr ""
4748
4749 #. type: textblock
4750 #: ../erlang/examples/guestfs-erlang.pod:70
4751 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
4752 msgstr ""
4753
4754 #. type: =item
4755 #: ../erlang/examples/guestfs-erlang.pod:72
4756 msgid "C<{unknown, Function}>"
4757 msgstr ""
4758
4759 #. type: textblock
4760 #: ../erlang/examples/guestfs-erlang.pod:74
4761 msgid ""
4762 "This indicates that the function you called is not known.  Generally this "
4763 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
4764 "which you should not do."
4765 msgstr ""
4766
4767 #. type: textblock
4768 #: ../erlang/examples/guestfs-erlang.pod:78
4769 msgid "C<Function> is the name of the unknown function."
4770 msgstr ""
4771
4772 #. type: =item
4773 #: ../erlang/examples/guestfs-erlang.pod:80
4774 msgid "C<{unknownarg, Arg}>"
4775 msgstr ""
4776
4777 #. type: textblock
4778 #: ../erlang/examples/guestfs-erlang.pod:82
4779 msgid ""
4780 "This indicates that you called a function with optional arguments, with an "
4781 "unknown argument name."
4782 msgstr ""
4783
4784 #. type: textblock
4785 #: ../erlang/examples/guestfs-erlang.pod:85
4786 msgid "C<Arg> is the name of the unknown argument."
4787 msgstr ""
4788
4789 #. type: =head1
4790 #: ../erlang/examples/guestfs-erlang.pod:89
4791 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
4792 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
4793 #: ../python/examples/guestfs-python.pod:34
4794 #: ../ruby/examples/guestfs-ruby.pod:28
4795 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
4796 msgstr "ПРИКЛАД 1. СТВОРЕННЯ ОБРАЗУ ДИСКА"
4797
4798 #. type: textblock
4799 #: ../erlang/examples/guestfs-erlang.pod:91
4800 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4801 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4802 #: ../python/examples/guestfs-python.pod:36
4803 #: ../ruby/examples/guestfs-ruby.pod:30
4804 msgid "@EXAMPLE1@"
4805 msgstr "@EXAMPLE1@"
4806
4807 #. type: =head1
4808 #: ../erlang/examples/guestfs-erlang.pod:93
4809 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4810 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4811 #: ../python/examples/guestfs-python.pod:38
4812 #: ../ruby/examples/guestfs-ruby.pod:32
4813 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4814 msgstr "ПРИКЛАД 2. ПЕРЕВІРКА ОБРАЗУ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
4815
4816 #. type: textblock
4817 #: ../erlang/examples/guestfs-erlang.pod:95
4818 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4819 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4820 #: ../python/examples/guestfs-python.pod:40
4821 #: ../ruby/examples/guestfs-ruby.pod:34
4822 msgid "@EXAMPLE2@"
4823 msgstr "@EXAMPLE2@"
4824
4825 #. type: textblock
4826 #: ../erlang/examples/guestfs-erlang.pod:99
4827 msgid ""
4828 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4829 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4830 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4831 msgstr ""
4832
4833 #. type: =head1
4834 #: ../erlang/examples/guestfs-erlang.pod:110
4835 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4836 #: ../fish/guestfish.pod:1296 ../fish/virt-copy-in.pod:60
4837 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4838 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:328
4839 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
4840 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4841 #: ../python/examples/guestfs-python.pod:54
4842 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3333
4843 #: ../test-tool/libguestfs-test-tool.pod:106
4844 msgid "AUTHORS"
4845 msgstr "АВТОРИ"
4846
4847 #. type: textblock
4848 #: ../erlang/examples/guestfs-erlang.pod:112
4849 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4850 #: ../fish/guestfish.pod:1298 ../fish/virt-copy-in.pod:62
4851 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4852 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:330
4853 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4854 #: ../perl/examples/guestfs-perl.pod:54
4855 #: ../python/examples/guestfs-python.pod:56
4856 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3335
4857 #: ../test-tool/libguestfs-test-tool.pod:108
4858 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4859 msgstr "Richard W.M. Jones (C<rjones at redhat dot com>)"
4860
4861 #. type: textblock
4862 #: ../erlang/examples/guestfs-erlang.pod:116
4863 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4864 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4865 msgstr ""
4866
4867 #. type: textblock
4868 #: ../erlang/examples/guestfs-erlang.pod:118
4869 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4870 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4871 #: ../perl/examples/guestfs-perl.pod:60
4872 #: ../python/examples/guestfs-python.pod:62
4873 #: ../ruby/examples/guestfs-ruby.pod:56
4874 msgid ""
4875 "The examples in this manual page may be freely copied, modified and "
4876 "distributed without any restrictions."
4877 msgstr ""
4878
4879 #. type: textblock
4880 #: ../erlang/examples/guestfs-erlang.pod:121
4881 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4882 #: ../java/examples/guestfs-java.pod:69
4883 #: ../ocaml/examples/guestfs-ocaml.pod:102
4884 #: ../perl/examples/guestfs-perl.pod:63
4885 #: ../python/examples/guestfs-python.pod:65
4886 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3342
4887 msgid ""
4888 "This library is free software; you can redistribute it and/or modify it "
4889 "under the terms of the GNU Lesser General Public License as published by the "
4890 "Free Software Foundation; either version 2 of the License, or (at your "
4891 "option) any later version."
4892 msgstr ""
4893
4894 #. type: textblock
4895 #: ../erlang/examples/guestfs-erlang.pod:126
4896 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4897 #: ../java/examples/guestfs-java.pod:74
4898 #: ../ocaml/examples/guestfs-ocaml.pod:107
4899 #: ../perl/examples/guestfs-perl.pod:68
4900 #: ../python/examples/guestfs-python.pod:70
4901 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3347
4902 msgid ""
4903 "This library is distributed in the hope that it will be useful, but WITHOUT "
4904 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4905 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4906 "for more details."
4907 msgstr ""
4908
4909 #. type: textblock
4910 #: ../erlang/examples/guestfs-erlang.pod:131
4911 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4912 #: ../java/examples/guestfs-java.pod:79
4913 #: ../ocaml/examples/guestfs-ocaml.pod:112
4914 #: ../perl/examples/guestfs-perl.pod:73
4915 #: ../python/examples/guestfs-python.pod:75
4916 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3352
4917 msgid ""
4918 "You should have received a copy of the GNU Lesser General Public License "
4919 "along with this library; if not, write to the Free Software Foundation, "
4920 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4921 msgstr ""
4922
4923 #. type: textblock
4924 #: ../examples/guestfs-examples.pod:5
4925 msgid "guestfs-examples - Examples of using libguestfs from C"
4926 msgstr ""
4927
4928 #. type: verbatim
4929 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4930 #, no-wrap
4931 msgid ""
4932 " #include <guestfs.h>\n"
4933 " \n"
4934 msgstr ""
4935 " #include <guestfs.h>\n"
4936 " \n"
4937
4938 #. type: verbatim
4939 #: ../examples/guestfs-examples.pod:11
4940 #, no-wrap
4941 msgid ""
4942 " guestfs_h *g = guestfs_create ();\n"
4943 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4944 " guestfs_launch (g);\n"
4945 "\n"
4946 msgstr ""
4947 " guestfs_h *g = guestfs_create ();\n"
4948 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4949 " guestfs_launch (g);\n"
4950 "\n"
4951
4952 #. type: verbatim
4953 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4954 #, no-wrap
4955 msgid ""
4956 " cc prog.c -o prog -lguestfs\n"
4957 "or:\n"
4958 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4959 "\n"
4960 msgstr ""
4961 " cc prog.c -o prog -lguestfs\n"
4962 "або:\n"
4963 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4964 "\n"
4965
4966 #. type: textblock
4967 #: ../examples/guestfs-examples.pod:21
4968 msgid ""
4969 "This manual page contains examples of calling libguestfs from the C "
4970 "programming language.  If you are not familiar with using libguestfs, you "
4971 "also need to read L<guestfs(3)>."
4972 msgstr ""
4973
4974 #. type: textblock
4975 #: ../examples/guestfs-examples.pod:35
4976 msgid ""
4977 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4978 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4979 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4980 msgstr ""
4981
4982 #. type: textblock
4983 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4984 #: ../python/examples/guestfs-python.pod:60
4985 #: ../ruby/examples/guestfs-ruby.pod:54
4986 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4987 msgstr ""
4988
4989 #. type: =end
4990 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4991 msgid "comment"
4992 msgstr "коментар"
4993
4994 #. type: textblock
4995 #: ../examples/guestfs-recipes.pod:5
4996 msgid ""
4997 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4998 "here.  The only way which works for both sorts of output is to just write "
4999 "the URL directly.  Do NOT use L<...> for URLs."
5000 msgstr ""
5001
5002 #. type: textblock
5003 #: ../examples/guestfs-recipes.pod:9
5004 msgid ""
5005 "We break with tradition here and don't use ALL CAPS for the section "
5006 "headings, as this makes them much easier to read."
5007 msgstr ""
5008
5009 #. type: textblock
5010 #: ../examples/guestfs-recipes.pod:16
5011 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
5012 msgstr ""
5013
5014 #. type: textblock
5015 #: ../examples/guestfs-recipes.pod:20
5016 msgid ""
5017 "This page contains recipes for and links to things you can do using "
5018 "libguestfs, L<guestfish(1)> and the virt tools."
5019 msgstr ""
5020
5021 #. type: =head1
5022 #: ../examples/guestfs-recipes.pod:23
5023 msgid "Audit a virtual machine for setuid files"
5024 msgstr ""
5025
5026 #. type: textblock
5027 #: ../examples/guestfs-recipes.pod:25
5028 msgid ""
5029 "The link below contains a small program which can be used to audit a Linux "
5030 "virtual machine to see what setuid and setgid files it contains."
5031 msgstr ""
5032
5033 #. type: textblock
5034 #: ../examples/guestfs-recipes.pod:28
5035 msgid ""
5036 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
5037 "files/#content"
5038 msgstr ""
5039
5040 #. type: =head1
5041 #: ../examples/guestfs-recipes.pod:30
5042 msgid "Change the background image in a Windows XP VM"
5043 msgstr ""
5044
5045 #. type: textblock
5046 #: ../examples/guestfs-recipes.pod:32
5047 msgid ""
5048 "The links below explain how to use L<guestfish(1)> to change the background "
5049 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
5050 "be substantially different for each version of Windows."
5051 msgstr ""
5052
5053 #. type: textblock
5054 #: ../examples/guestfs-recipes.pod:37
5055 msgid ""
5056 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
5057 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
5058 msgstr ""
5059
5060 #. type: =head1
5061 #: ../examples/guestfs-recipes.pod:40
5062 msgid "Cloning a virtual machine (Linux)"
5063 msgstr ""
5064
5065 #. type: textblock
5066 #: ../examples/guestfs-recipes.pod:42
5067 msgid ""
5068 "The guestfish technique described in the link below works well for most "
5069 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
5070 "slightly."
5071 msgstr ""
5072
5073 #. type: textblock
5074 #: ../examples/guestfs-recipes.pod:46
5075 msgid ""
5076 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
5077 "vm/#content"
5078 msgstr ""
5079
5080 #. type: textblock
5081 #: ../examples/guestfs-recipes.pod:48
5082 msgid ""
5083 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
5084 "discussion."
5085 msgstr ""
5086
5087 #. type: textblock
5088 #: ../examples/guestfs-recipes.pod:51
5089 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
5090 msgstr ""
5091
5092 #. type: =head1
5093 #: ../examples/guestfs-recipes.pod:53
5094 msgid "Cloning a virtual machine (Windows)"
5095 msgstr ""
5096
5097 #. type: textblock
5098 #: ../examples/guestfs-recipes.pod:55
5099 msgid ""
5100 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
5101 "straightforward.  Currently there is code in the Aeolus Oz project which "
5102 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
5103 "we may add sysprepping ability."
5104 msgstr ""
5105
5106 #. type: textblock
5107 #: ../examples/guestfs-recipes.pod:60
5108 msgid ""
5109 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
5110 "list/2011-May/msg00019.html"
5111 msgstr ""
5112
5113 #. type: =head1
5114 #: ../examples/guestfs-recipes.pod:63
5115 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
5116 msgstr ""
5117
5118 #. type: textblock
5119 #: ../examples/guestfs-recipes.pod:65
5120 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
5121 msgstr ""
5122
5123 #. type: verbatim
5124 #: ../examples/guestfs-recipes.pod:67
5125 #, no-wrap
5126 msgid ""
5127 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
5128 "\n"
5129 msgstr ""
5130
5131 #. type: textblock
5132 #: ../examples/guestfs-recipes.pod:69
5133 msgid "To export just a subdirectory, eg. C</files>, do:"
5134 msgstr ""
5135
5136 #. type: verbatim
5137 #: ../examples/guestfs-recipes.pod:71
5138 #, no-wrap
5139 msgid ""
5140 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
5141 "\n"
5142 msgstr ""
5143
5144 #. type: =head1
5145 #: ../examples/guestfs-recipes.pod:73
5146 msgid "Create empty disk images"
5147 msgstr ""
5148
5149 #. type: textblock
5150 #: ../examples/guestfs-recipes.pod:75
5151 msgid ""
5152 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
5153 "The useful guide below explains the options available."
5154 msgstr ""
5155
5156 #. type: textblock
5157 #: ../examples/guestfs-recipes.pod:78
5158 msgid ""
5159 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
5160 "#content"
5161 msgstr ""
5162
5163 #. type: =head1
5164 #: ../examples/guestfs-recipes.pod:80
5165 msgid "Dump raw filesystem content from inside a disk image or VM"
5166 msgstr ""
5167
5168 #. type: textblock
5169 #: ../examples/guestfs-recipes.pod:82
5170 msgid ""
5171 "You can use the L<guestfish(1)> C<download> command to extract the raw "
5172 "filesystem content from any filesystem in a disk image or a VM (even one "
5173 "which is encrypted or buried inside an LV):"
5174 msgstr ""
5175
5176 #. type: verbatim
5177 #: ../examples/guestfs-recipes.pod:86
5178 #, no-wrap
5179 msgid ""
5180 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
5181 "\n"
5182 msgstr ""
5183
5184 #. type: verbatim
5185 #: ../examples/guestfs-recipes.pod:88
5186 #, no-wrap
5187 msgid ""
5188 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
5189 "\n"
5190 msgstr ""
5191
5192 #. type: textblock
5193 #: ../examples/guestfs-recipes.pod:90
5194 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
5195 msgstr ""
5196
5197 #. type: =head1
5198 #: ../examples/guestfs-recipes.pod:92
5199 msgid "Edit grub configuration in a VM"
5200 msgstr ""
5201
5202 #. type: textblock
5203 #: ../examples/guestfs-recipes.pod:94
5204 msgid "You can use this to:"
5205 msgstr ""
5206
5207 #. type: textblock
5208 #: ../examples/guestfs-recipes.pod:100
5209 msgid "Fix a virtual machine that does not boot."
5210 msgstr ""
5211
5212 #. type: textblock
5213 #: ../examples/guestfs-recipes.pod:104
5214 msgid "Change which kernel is used to boot the VM."
5215 msgstr ""
5216
5217 #. type: textblock
5218 #: ../examples/guestfs-recipes.pod:108
5219 msgid "Change kernel command line options."
5220 msgstr ""
5221
5222 #. type: textblock
5223 #: ../examples/guestfs-recipes.pod:112
5224 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
5225 msgstr ""
5226
5227 #. type: verbatim
5228 #: ../examples/guestfs-recipes.pod:114
5229 #, no-wrap
5230 msgid ""
5231 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
5232 "\n"
5233 msgstr ""
5234
5235 #. type: textblock
5236 #: ../examples/guestfs-recipes.pod:116
5237 msgid ""
5238 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
5239 "this:"
5240 msgstr ""
5241
5242 #. type: verbatim
5243 #: ../examples/guestfs-recipes.pod:119
5244 #, no-wrap
5245 msgid ""
5246 " virt-rescue -d BrokenGuest\n"
5247 "\n"
5248 msgstr ""
5249
5250 #. type: =head1
5251 #: ../examples/guestfs-recipes.pod:121
5252 msgid "Export any directory from a VM"
5253 msgstr ""
5254
5255 #. type: textblock
5256 #: ../examples/guestfs-recipes.pod:123
5257 msgid ""
5258 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
5259 msgstr ""
5260
5261 #. type: verbatim
5262 #: ../examples/guestfs-recipes.pod:126
5263 #, no-wrap
5264 msgid ""
5265 " virt-copy-out -d Guest /home .\n"
5266 "\n"
5267 msgstr ""
5268
5269 #. type: textblock
5270 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
5271 #: ../fish/guestfish-actions.pod:1332 ../fish/guestfish-actions.pod:1597
5272 #: ../fish/guestfish-actions.pod:2014 ../src/guestfs-actions.pod:18
5273 #: ../src/guestfs-actions.pod:2039 ../src/guestfs-actions.pod:2463
5274 #: ../src/guestfs-actions.pod:3022 ../src/guestfs.pod:1670
5275 #: ../tools/virt-win-reg.pl:706
5276 msgid "Notes:"
5277 msgstr "Нотатки:"
5278
5279 #. type: textblock
5280 #: ../examples/guestfs-recipes.pod:134
5281 msgid ""
5282 "The final dot of the command is not a printing error.  It means we want to "
5283 "copy out to the current directory."
5284 msgstr ""
5285
5286 #. type: textblock
5287 #: ../examples/guestfs-recipes.pod:139
5288 msgid "This creates a directory called C<home> under the current directory."
5289 msgstr ""
5290
5291 #. type: textblock
5292 #: ../examples/guestfs-recipes.pod:143
5293 msgid ""
5294 "If the guest is a Windows guest then you can use drive letters and "
5295 "backslashes, but you must prefix the path with C<win:> and quote it to "
5296 "protect it from the shell, like this:"
5297 msgstr ""
5298
5299 #. type: verbatim
5300 #: ../examples/guestfs-recipes.pod:147
5301 #, no-wrap
5302 msgid ""
5303 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
5304 "\n"
5305 msgstr ""
5306
5307 #. type: textblock
5308 #: ../examples/guestfs-recipes.pod:149
5309 msgid "To get the output as a compressed tarball, do:"
5310 msgstr ""
5311
5312 #. type: verbatim
5313 #: ../examples/guestfs-recipes.pod:151
5314 #, no-wrap
5315 msgid ""
5316 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
5317 "\n"
5318 msgstr ""
5319
5320 #. type: textblock
5321 #: ../examples/guestfs-recipes.pod:153
5322 msgid ""
5323 "Although it sounds tempting, this is usually not a reliable way to get a "
5324 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
5325 "org/FAQ.html#backup"
5326 msgstr ""
5327
5328 #. type: =head1
5329 #: ../examples/guestfs-recipes.pod:157
5330 msgid "Find out which user is using the most space"
5331 msgstr ""
5332
5333 #. type: textblock
5334 #: ../examples/guestfs-recipes.pod:159
5335 msgid ""
5336 "This simple script examines a Linux guest to find out which user is using "
5337 "the most space in their home directory:"
5338 msgstr ""
5339
5340 #. type: verbatim
5341 #: ../examples/guestfs-recipes.pod:162
5342 #, no-wrap
5343 msgid ""
5344 " #!/bin/sh -\n"
5345 " \n"
5346 msgstr ""
5347
5348 #. type: verbatim
5349 #: ../examples/guestfs-recipes.pod:164 ../fish/guestfish.pod:984
5350 #, no-wrap
5351 msgid ""
5352 " set -e\n"
5353 " \n"
5354 msgstr ""
5355
5356 #. type: verbatim
5357 #: ../examples/guestfs-recipes.pod:166
5358 #, no-wrap
5359 msgid ""
5360 " vm=\"$1\"\n"
5361 " dir=/home\n"
5362 " \n"
5363 msgstr ""
5364
5365 #. type: verbatim
5366 #: ../examples/guestfs-recipes.pod:169
5367 #, no-wrap
5368 msgid ""
5369 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
5370 " \n"
5371 msgstr ""
5372
5373 #. type: verbatim
5374 #: ../examples/guestfs-recipes.pod:171
5375 #, no-wrap
5376 msgid ""
5377 " for d in $(guestfish --remote ls \"$dir\"); do\n"
5378 "     echo -n \"$dir/$d\"\n"
5379 "     echo -ne '\\t'\n"
5380 "     guestfish --remote du \"$dir/$d\";\n"
5381 " done | sort -nr -k 2\n"
5382 " \n"
5383 msgstr ""
5384
5385 #. type: verbatim
5386 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
5387 #, no-wrap
5388 msgid ""
5389 " guestfish --remote exit\n"
5390 "\n"
5391 msgstr ""
5392
5393 #. type: =head1
5394 #: ../examples/guestfs-recipes.pod:179
5395 msgid "Get DHCP address from a VM"
5396 msgstr ""
5397
5398 #. type: textblock
5399 #: ../examples/guestfs-recipes.pod:181
5400 msgid ""
5401 "The link below explains the many different possible techniques for getting "
5402 "the last assigned DHCP address of a virtual machine."
5403 msgstr ""
5404
5405 #. type: textblock
5406 #: ../examples/guestfs-recipes.pod:184
5407 msgid ""
5408 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
5409 "a-virtual-machine-disk-image/#content"
5410 msgstr ""
5411
5412 #. type: textblock
5413 #: ../examples/guestfs-recipes.pod:186
5414 msgid ""
5415 "In the libguestfs source examples directory you will find the latest version "
5416 "of the C<virt-dhcp-address.c> program."
5417 msgstr ""
5418
5419 #. type: =head1
5420 #: ../examples/guestfs-recipes.pod:189
5421 msgid "Get the operating system product name string"
5422 msgstr ""
5423
5424 #. type: textblock
5425 #: ../examples/guestfs-recipes.pod:191
5426 msgid "Save the following script into a file called C<product-name.sh>:"
5427 msgstr ""
5428
5429 #. type: verbatim
5430 #: ../examples/guestfs-recipes.pod:193
5431 #, no-wrap
5432 msgid ""
5433 " #!/bin/sh -\n"
5434 " set -e\n"
5435 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5436 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5437 " guestfish --remote inspect-get-product-name \"$root\"\n"
5438 " guestfish --remote exit\n"
5439 "\n"
5440 msgstr ""
5441
5442 #. type: textblock
5443 #: ../examples/guestfs-recipes.pod:200
5444 msgid "Make the script executable and run it on a named guest:"
5445 msgstr ""
5446
5447 #. type: verbatim
5448 #: ../examples/guestfs-recipes.pod:202
5449 #, no-wrap
5450 msgid ""
5451 " # product-name.sh RHEL60x64\n"
5452 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
5453 "\n"
5454 msgstr ""
5455
5456 #. type: textblock
5457 #: ../examples/guestfs-recipes.pod:205
5458 msgid ""
5459 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
5460 "C<xpath> command line tool or from your favourite programming language:"
5461 msgstr ""
5462
5463 #. type: verbatim
5464 #: ../examples/guestfs-recipes.pod:209
5465 #, no-wrap
5466 msgid ""
5467 " # virt-inspector RHEL60x64 > xml\n"
5468 " # xpath '//product_name' < xml\n"
5469 " Found 1 nodes:\n"
5470 " -- NODE --\n"
5471 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
5472 "\n"
5473 msgstr ""
5474
5475 #. type: =head1
5476 #: ../examples/guestfs-recipes.pod:215
5477 msgid "Get the default boot kernel for a Linux VM"
5478 msgstr ""
5479
5480 #. type: textblock
5481 #: ../examples/guestfs-recipes.pod:217
5482 msgid ""
5483 "The link below contains a program to print the default boot kernel for a "
5484 "Linux VM."
5485 msgstr ""
5486
5487 #. type: textblock
5488 #: ../examples/guestfs-recipes.pod:220
5489 msgid ""
5490 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
5491 "kernel-for-a-vm/#content"
5492 msgstr ""
5493
5494 #. type: textblock
5495 #: ../examples/guestfs-recipes.pod:222
5496 msgid ""
5497 "It uses Augeas, and the technique is generally applicable for many different "
5498 "tasks, such as:"
5499 msgstr ""
5500
5501 #. type: textblock
5502 #: ../examples/guestfs-recipes.pod:229
5503 msgid "listing the user accounts in the guest"
5504 msgstr ""
5505
5506 #. type: textblock
5507 #: ../examples/guestfs-recipes.pod:233
5508 msgid "what repositories is it configured to use"
5509 msgstr ""
5510
5511 #. type: textblock
5512 #: ../examples/guestfs-recipes.pod:237
5513 msgid "what NTP servers does it connect to"
5514 msgstr ""
5515
5516 #. type: textblock
5517 #: ../examples/guestfs-recipes.pod:241
5518 msgid "what were the boot messages last time it booted"
5519 msgstr ""
5520
5521 #. type: textblock
5522 #: ../examples/guestfs-recipes.pod:245
5523 msgid "listing who was logged in recently"
5524 msgstr ""
5525
5526 #. type: textblock
5527 #: ../examples/guestfs-recipes.pod:249
5528 msgid "http://augeas.net/"
5529 msgstr ""
5530
5531 #. type: =head1
5532 #: ../examples/guestfs-recipes.pod:251
5533 msgid "Install RPMs in a guest"
5534 msgstr ""
5535
5536 #. type: textblock
5537 #: ../examples/guestfs-recipes.pod:253
5538 msgid ""
5539 "The link below contains a method to install RPMs in a guest.  In fact the "
5540 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
5541 "installs them next time the guest is booted.  You could use this technique "
5542 "to install vital security updates in an offline guest."
5543 msgstr ""
5544
5545 #. type: textblock
5546 #: ../examples/guestfs-recipes.pod:259
5547 msgid ""
5548 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
5549 msgstr ""
5550
5551 #. type: =head1
5552 #: ../examples/guestfs-recipes.pod:261
5553 msgid "List applications installed in a VM"
5554 msgstr ""
5555
5556 #. type: textblock
5557 #: ../examples/guestfs-recipes.pod:263
5558 msgid "Save the following to a file C<list-apps.sh>:"
5559 msgstr ""
5560
5561 #. type: verbatim
5562 #: ../examples/guestfs-recipes.pod:265
5563 #, no-wrap
5564 msgid ""
5565 " #!/bin/sh -\n"
5566 " set -e\n"
5567 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
5568 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
5569 " guestfish --remote inspect-list-applications \"$root\"\n"
5570 " guestfish --remote exit\n"
5571 "\n"
5572 msgstr ""
5573
5574 #. type: textblock
5575 #: ../examples/guestfs-recipes.pod:272
5576 msgid ""
5577 "Make the file executable and then you can run it on any named virtual "
5578 "machine:"
5579 msgstr ""
5580
5581 #. type: verbatim
5582 #: ../examples/guestfs-recipes.pod:275
5583 #, no-wrap
5584 msgid ""
5585 " # list-apps.sh WinGuest\n"
5586 " [0] = {\n"
5587 "   app_name: Mozilla Firefox (3.6.12)\n"
5588 "   app_display_name: Mozilla Firefox (3.6.12)\n"
5589 "   app_epoch: 0\n"
5590 "   app_version: 3.6.12 (en-GB)\n"
5591 "   app_release:\n"
5592 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
5593 "   app_trans_path:\n"
5594 "   app_publisher: Mozilla\n"
5595 "   app_url: http://www.mozilla.com/en-GB/\n"
5596 "   app_source_package:\n"
5597 "   app_summary:\n"
5598 "   app_description: Mozilla Firefox\n"
5599 " }\n"
5600 " [1] = {\n"
5601 "   app_name: VLC media player\n"
5602 "   app_display_name: VLC media player 1.1.5\n"
5603 "   app_epoch: 0\n"
5604 "   app_version: 1.1.5\n"
5605 "   app_release:\n"
5606 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
5607 "   app_trans_path:\n"
5608 "   app_publisher: VideoLAN\n"
5609 "   app_url: http://www.videolan.org/\n"
5610 "   app_source_package:\n"
5611 "   app_summary:\n"
5612 "   app_description:\n"
5613 " }\n"
5614 "\n"
5615 msgstr ""
5616
5617 #. type: textblock
5618 #: ../examples/guestfs-recipes.pod:305
5619 msgid ""
5620 "If you want to run the script on disk images (instead of libvirt virtual "
5621 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
5622 ">."
5623 msgstr ""
5624
5625 #. type: =head1
5626 #: ../examples/guestfs-recipes.pod:309
5627 msgid "List files and directories in a VM"
5628 msgstr ""
5629
5630 #. type: textblock
5631 #: ../examples/guestfs-recipes.pod:311
5632 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
5633 msgstr ""
5634
5635 #. type: verbatim
5636 #: ../examples/guestfs-recipes.pod:313
5637 #, no-wrap
5638 msgid ""
5639 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
5640 "\n"
5641 msgstr ""
5642
5643 #. type: =head1
5644 #: ../examples/guestfs-recipes.pod:315
5645 msgid "List services in a Windows VM"
5646 msgstr ""
5647
5648 #. type: textblock
5649 #: ../examples/guestfs-recipes.pod:317
5650 msgid ""
5651 "The link below contains a script that can be used to list out the services "
5652 "from a Windows VM, and whether those services run at boot time or are loaded "
5653 "on demand."
5654 msgstr ""
5655
5656 #. type: textblock
5657 #: ../examples/guestfs-recipes.pod:321
5658 msgid ""
5659 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
5660 "#content"
5661 msgstr ""
5662
5663 #. type: =head1
5664 #: ../examples/guestfs-recipes.pod:323
5665 msgid "Make a disk image sparse"
5666 msgstr ""
5667
5668 #. type: textblock
5669 #: ../examples/guestfs-recipes.pod:325
5670 msgid ""
5671 "The link below contains some guides for making a disk image sparse (or "
5672 "reintroducing sparseness)."
5673 msgstr ""
5674
5675 #. type: textblock
5676 #: ../examples/guestfs-recipes.pod:328
5677 msgid ""
5678 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
5679 msgstr ""
5680
5681 #. type: =head1
5682 #: ../examples/guestfs-recipes.pod:330
5683 msgid "Monitor disk usage over time"
5684 msgstr ""
5685
5686 #. type: textblock
5687 #: ../examples/guestfs-recipes.pod:332
5688 msgid ""
5689 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
5690 "The link below contains a guide."
5691 msgstr ""
5692
5693 #. type: textblock
5694 #: ../examples/guestfs-recipes.pod:335
5695 msgid "http://virt-tools.org/learning/advanced-virt-df/"
5696 msgstr ""
5697
5698 #. type: =head1
5699 #: ../examples/guestfs-recipes.pod:337
5700 msgid "Reading the Windows Event Log from Windows Vista (or later)"
5701 msgstr ""
5702
5703 #. type: textblock
5704 #: ../examples/guestfs-recipes.pod:339
5705 msgid ""
5706 "L<guestfish(1)> plus the tools described in the link below can be used to "
5707 "read out the Windows Event Log from any virtual machine running Windows "
5708 "Vista or a later version."
5709 msgstr ""
5710
5711 #. type: textblock
5712 #: ../examples/guestfs-recipes.pod:343
5713 msgid ""
5714 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
5715 "guestfish/#content"
5716 msgstr ""
5717
5718 #. type: =head1
5719 #: ../examples/guestfs-recipes.pod:345
5720 msgid "Remove root password (Linux)"
5721 msgstr ""
5722
5723 #. type: textblock
5724 #: ../examples/guestfs-recipes.pod:347
5725 msgid ""
5726 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5727 "files.  One use is to remove the root password from a Linux guest:"
5728 msgstr ""
5729
5730 #. type: verbatim
5731 #: ../examples/guestfs-recipes.pod:350
5732 #, no-wrap
5733 msgid ""
5734 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5735 "\n"
5736 msgstr ""
5737
5738 #. type: =head1
5739 #: ../examples/guestfs-recipes.pod:352
5740 msgid "Remove Administrator password (Windows)"
5741 msgstr ""
5742
5743 #. type: textblock
5744 #: ../examples/guestfs-recipes.pod:354
5745 msgid ""
5746 "The link below contains one technique for removing the Administrator "
5747 "password from a Windows VM, or to be more precise, it gives you a command "
5748 "prompt the next time you log in which you can use to bypass any security:"
5749 msgstr ""
5750
5751 #. type: textblock
5752 #: ../examples/guestfs-recipes.pod:359
5753 msgid ""
5754 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5755 "administrator-password-with-guestfish/"
5756 msgstr ""
5757
5758 #. type: =head1
5759 #: ../examples/guestfs-recipes.pod:361
5760 msgid "Unpack a live CD"
5761 msgstr ""
5762
5763 #. type: textblock
5764 #: ../examples/guestfs-recipes.pod:363
5765 msgid ""
5766 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5767 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5768 "layers, as outlined in the guide below."
5769 msgstr ""
5770
5771 #. type: textblock
5772 #: ../examples/guestfs-recipes.pod:367
5773 msgid ""
5774 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5775 "cd/#content"
5776 msgstr ""
5777
5778 #. type: =head1
5779 #: ../examples/guestfs-recipes.pod:369
5780 msgid "Uploading and downloading files"
5781 msgstr ""
5782
5783 #. type: textblock
5784 #: ../examples/guestfs-recipes.pod:371
5785 msgid ""
5786 "The link below contains general tips on uploading (copying in)  and "
5787 "downloading (copying out) files from VMs."
5788 msgstr ""
5789
5790 #. type: textblock
5791 #: ../examples/guestfs-recipes.pod:374
5792 msgid ""
5793 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5794 msgstr ""
5795
5796 #. type: =head1
5797 #: ../examples/guestfs-recipes.pod:376
5798 msgid "Use libguestfs tools on VMware ESX guests"
5799 msgstr ""
5800
5801 #. type: textblock
5802 #: ../examples/guestfs-recipes.pod:378
5803 msgid ""
5804 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5805 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5806 msgstr ""
5807
5808 #. type: textblock
5809 #: ../examples/guestfs-recipes.pod:382
5810 msgid ""
5811 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5812 "guests/#content"
5813 msgstr ""
5814
5815 #. type: textblock
5816 #: ../examples/guestfs-recipes.pod:386
5817 msgid ""
5818 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5819 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5820 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5821 msgstr ""
5822
5823 #. type: textblock
5824 #: ../examples/guestfs-recipes.pod:403
5825 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5826 msgstr ""
5827
5828 #. type: =head2
5829 #: ../fish/guestfish-actions.pod:1
5830 msgid "add-cdrom"
5831 msgstr ""
5832
5833 #. type: verbatim
5834 #: ../fish/guestfish-actions.pod:3
5835 #, no-wrap
5836 msgid ""
5837 " add-cdrom filename\n"
5838 "\n"
5839 msgstr ""
5840
5841 #. type: textblock
5842 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5843 msgid "This function adds a virtual CD-ROM disk image to the guest."
5844 msgstr ""
5845
5846 #. type: textblock
5847 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5848 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5849 msgstr ""
5850
5851 #. type: textblock
5852 #: ../fish/guestfish-actions.pod:15
5853 msgid ""
5854 "This call checks for the existence of C<filename>.  This stops you from "
5855 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5856 "and C<http:> URLs.  To specify those, use the general L</config> call "
5857 "instead."
5858 msgstr ""
5859
5860 #. type: textblock
5861 #: ../fish/guestfish-actions.pod:22
5862 msgid ""
5863 "If you just want to add an ISO file (often you use this as an efficient way "
5864 "to transfer large files into the guest), then you should probably use L</add-"
5865 "drive-ro> instead."
5866 msgstr ""
5867
5868 #. type: textblock
5869 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:168
5870 #: ../fish/guestfish-actions.pod:182
5871 msgid ""
5872 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5873 "instead."
5874 msgstr ""
5875
5876 #. type: textblock
5877 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:171
5878 #: ../fish/guestfish-actions.pod:185 ../fish/guestfish-actions.pod:1031
5879 #: ../fish/guestfish-actions.pod:1391 ../fish/guestfish-actions.pod:1405
5880 #: ../fish/guestfish-actions.pod:3175 ../fish/guestfish-actions.pod:3486
5881 #: ../fish/guestfish-actions.pod:3534 ../fish/guestfish-actions.pod:4447
5882 #: ../fish/guestfish-actions.pod:4470 ../fish/guestfish-actions.pod:4492
5883 #: ../fish/guestfish-actions.pod:4530 ../fish/guestfish-actions.pod:5179
5884 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:10
5885 #: ../src/guestfs-actions.pod:258 ../src/guestfs-actions.pod:279
5886 #: ../src/guestfs-actions.pod:1625 ../src/guestfs-actions.pod:2124
5887 #: ../src/guestfs-actions.pod:2145 ../src/guestfs-actions.pod:4790
5888 #: ../src/guestfs-actions.pod:5312 ../src/guestfs-actions.pod:5412
5889 #: ../src/guestfs-actions.pod:6694 ../src/guestfs-actions.pod:6738
5890 #: ../src/guestfs-actions.pod:6772 ../src/guestfs-actions.pod:6835
5891 #: ../src/guestfs-actions.pod:7767 ../src/guestfs-actions.pod:7876
5892 #: ../src/guestfs-actions.pod:8059
5893 msgid ""
5894 "Deprecated functions will not be removed from the API, but the fact that "
5895 "they are deprecated indicates that there are problems with correct use of "
5896 "these functions."
5897 msgstr ""
5898
5899 #. type: =head2
5900 #: ../fish/guestfish-actions.pod:35
5901 msgid "add-domain"
5902 msgstr "add-domain"
5903
5904 #. type: =head2
5905 #: ../fish/guestfish-actions.pod:37
5906 msgid "domain"
5907 msgstr "домен"
5908
5909 #. type: verbatim
5910 #: ../fish/guestfish-actions.pod:39
5911 #, no-wrap
5912 msgid ""
5913 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
5914 "\n"
5915 msgstr ""
5916
5917 #. type: textblock
5918 #: ../fish/guestfish-actions.pod:41
5919 msgid ""
5920 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5921 "It works by connecting to libvirt, requesting the domain and domain XML from "
5922 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5923 msgstr ""
5924
5925 #. type: textblock
5926 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
5927 msgid ""
5928 "The number of disks added is returned.  This operation is atomic: if an "
5929 "error is returned, then no disks are added."
5930 msgstr ""
5931
5932 #. type: textblock
5933 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
5934 msgid ""
5935 "This function does some minimal checks to make sure the libvirt domain is "
5936 "not running (unless C<readonly> is true).  In a future version we will try "
5937 "to acquire the libvirt lock on each disk."
5938 msgstr ""
5939
5940 #. type: textblock
5941 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
5942 msgid ""
5943 "Disks must be accessible locally.  This often means that adding disks from a "
5944 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5945 "unless those disks are accessible via the same device path locally too."
5946 msgstr ""
5947
5948 #. type: textblock
5949 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
5950 msgid ""
5951 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5952 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
5953 "libvirt URI (or one set through an environment variable, see the libvirt "
5954 "documentation for full details)."
5955 msgstr ""
5956
5957 #. type: textblock
5958 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
5959 msgid ""
5960 "The optional C<live> flag controls whether this call will try to connect to "
5961 "a running virtual machine C<guestfsd> process if it sees a suitable "
5962 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5963 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5964 "DAEMONS> for more information."
5965 msgstr ""
5966
5967 #. type: textblock
5968 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
5969 msgid ""
5970 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5971 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
5972 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5973 "as usual."
5974 msgstr ""
5975
5976 #. type: textblock
5977 #: ../fish/guestfish-actions.pod:76
5978 msgid ""
5979 "The other optional parameters are passed directly through to L</add-drive-"
5980 "opts>."
5981 msgstr ""
5982
5983 #. type: textblock
5984 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:148
5985 #: ../fish/guestfish-actions.pod:578 ../fish/guestfish-actions.pod:789
5986 #: ../fish/guestfish-actions.pod:810 ../fish/guestfish-actions.pod:2053
5987 #: ../fish/guestfish-actions.pod:3224 ../fish/guestfish-actions.pod:3387
5988 #: ../fish/guestfish-actions.pod:3522
5989 msgid ""
5990 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
5991 msgstr ""
5992
5993 #. type: =head2
5994 #: ../fish/guestfish-actions.pod:81
5995 msgid "add-drive"
5996 msgstr "add-drive"
5997
5998 #. type: verbatim
5999 #: ../fish/guestfish-actions.pod:83
6000 #, no-wrap
6001 msgid ""
6002 " add-drive filename\n"
6003 "\n"
6004 msgstr ""
6005 " add-drive назва_файла\n"
6006 "\n"
6007
6008 #. type: textblock
6009 #: ../fish/guestfish-actions.pod:85
6010 msgid ""
6011 "This function is the equivalent of calling L</add-drive-opts> with no "
6012 "optional parameters, so the disk is added writable, with the format being "
6013 "detected automatically."
6014 msgstr ""
6015
6016 #. type: textblock
6017 #: ../fish/guestfish-actions.pod:89
6018 msgid ""
6019 "Automatic detection of the format opens you up to a potential security hole "
6020 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6021 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
6022 "you should think about replacing calls to this function with calls to L</add-"
6023 "drive-opts>, and specifying the format."
6024 msgstr ""
6025
6026 #. type: =head2
6027 #: ../fish/guestfish-actions.pod:96
6028 msgid "add-drive-opts"
6029 msgstr "add-drive-opts"
6030
6031 #. type: =head2
6032 #: ../fish/guestfish-actions.pod:98
6033 msgid "add"
6034 msgstr "add"
6035
6036 #. type: verbatim
6037 #: ../fish/guestfish-actions.pod:100
6038 #, no-wrap
6039 msgid ""
6040 " add-drive-opts filename [readonly:..] [format:..] [iface:..] [name:..]\n"
6041 "\n"
6042 msgstr ""
6043
6044 #. type: textblock
6045 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:161
6046 msgid ""
6047 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
6048 "The first time you call this function, the disk appears as C</dev/sda>, the "
6049 "second time as C</dev/sdb>, and so on."
6050 msgstr ""
6051
6052 #. type: textblock
6053 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:166
6054 msgid ""
6055 "You don't necessarily need to be root when using libguestfs.  However you "
6056 "obviously do need sufficient permissions to access the filename for whatever "
6057 "operations you want to perform (ie. read access if you just want to read the "
6058 "image or write access if you want to modify the image)."
6059 msgstr ""
6060
6061 #. type: textblock
6062 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:172
6063 msgid "This call checks that C<filename> exists."
6064 msgstr ""
6065
6066 #. type: textblock
6067 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3186
6068 #: ../src/guestfs-actions.pod:174 ../src/guestfs-actions.pod:4827
6069 msgid "The optional arguments are:"
6070 msgstr ""
6071
6072 #. type: =item
6073 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:178
6074 msgid "C<readonly>"
6075 msgstr "C<readonly>"
6076
6077 #. type: textblock
6078 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:180
6079 msgid ""
6080 "If true then the image is treated as read-only.  Writes are still allowed, "
6081 "but they are stored in a temporary snapshot overlay which is discarded at "
6082 "the end.  The disk that you add is not modified."
6083 msgstr ""
6084
6085 #. type: =item
6086 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:184
6087 msgid "C<format>"
6088 msgstr "C<format>"
6089
6090 #. type: textblock
6091 #: ../fish/guestfish-actions.pod:127
6092 msgid ""
6093 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
6094 "add-drive-ro>) then the format is automatically detected.  Possible formats "
6095 "include C<raw> and C<qcow2>."
6096 msgstr ""
6097
6098 #. type: textblock
6099 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:190
6100 msgid ""
6101 "Automatic detection of the format opens you up to a potential security hole "
6102 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
6103 "RHBZ#642934.  Specifying the format closes this security hole."
6104 msgstr ""
6105
6106 #. type: =item
6107 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:195
6108 msgid "C<iface>"
6109 msgstr "C<iface>"
6110
6111 #. type: textblock
6112 #: ../fish/guestfish-actions.pod:138
6113 msgid ""
6114 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
6115 "add-drive-with-if> call (q.v.)"
6116 msgstr ""
6117
6118 #. type: =item
6119 #: ../fish/guestfish-actions.pod:141 ../src/guestfs-actions.pod:200
6120 #, fuzzy
6121 #| msgid "C<app_name>"
6122 msgid "C<name>"
6123 msgstr "C<app_name>"
6124
6125 #. type: textblock
6126 #: ../fish/guestfish-actions.pod:143 ../src/guestfs-actions.pod:202
6127 msgid ""
6128 "The name the drive had in the original guest, e.g. /dev/sdb. This is used as "
6129 "a hint to the guest inspection process if it is available."
6130 msgstr ""
6131
6132 #. type: =head2
6133 #: ../fish/guestfish-actions.pod:150
6134 msgid "add-drive-ro"
6135 msgstr "add-drive-ro"
6136
6137 #. type: =head2
6138 #: ../fish/guestfish-actions.pod:152
6139 msgid "add-ro"
6140 msgstr "add-ro"
6141
6142 #. type: verbatim
6143 #: ../fish/guestfish-actions.pod:154
6144 #, no-wrap
6145 msgid ""
6146 " add-drive-ro filename\n"
6147 "\n"
6148 msgstr ""
6149
6150 #. type: textblock
6151 #: ../fish/guestfish-actions.pod:156
6152 msgid ""
6153 "This function is the equivalent of calling L</add-drive-opts> with the "
6154 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
6155 "is added read-only, with the format being detected automatically."
6156 msgstr ""
6157
6158 #. type: =head2
6159 #: ../fish/guestfish-actions.pod:161
6160 msgid "add-drive-ro-with-if"
6161 msgstr ""
6162
6163 #. type: verbatim
6164 #: ../fish/guestfish-actions.pod:163
6165 #, no-wrap
6166 msgid ""
6167 " add-drive-ro-with-if filename iface\n"
6168 "\n"
6169 msgstr ""
6170
6171 #. type: textblock
6172 #: ../fish/guestfish-actions.pod:165
6173 msgid ""
6174 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
6175 "interface emulation to use at run time."
6176 msgstr ""
6177
6178 #. type: =head2
6179 #: ../fish/guestfish-actions.pod:175
6180 msgid "add-drive-with-if"
6181 msgstr ""
6182
6183 #. type: verbatim
6184 #: ../fish/guestfish-actions.pod:177
6185 #, no-wrap
6186 msgid ""
6187 " add-drive-with-if filename iface\n"
6188 "\n"
6189 msgstr ""
6190
6191 #. type: textblock
6192 #: ../fish/guestfish-actions.pod:179
6193 msgid ""
6194 "This is the same as L</add-drive> but it allows you to specify the QEMU "
6195 "interface emulation to use at run time."
6196 msgstr ""
6197
6198 #. type: =head2
6199 #: ../fish/guestfish-actions.pod:189
6200 msgid "aug-clear"
6201 msgstr ""
6202
6203 #. type: verbatim
6204 #: ../fish/guestfish-actions.pod:191
6205 #, no-wrap
6206 msgid ""
6207 " aug-clear augpath\n"
6208 "\n"
6209 msgstr ""
6210
6211 #. type: textblock
6212 #: ../fish/guestfish-actions.pod:193 ../src/guestfs-actions.pod:296
6213 msgid ""
6214 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
6215 "L<augtool(1)> C<clear> command."
6216 msgstr ""
6217
6218 #. type: =head2
6219 #: ../fish/guestfish-actions.pod:196
6220 msgid "aug-close"
6221 msgstr ""
6222
6223 #. type: verbatim
6224 #: ../fish/guestfish-actions.pod:198
6225 #, no-wrap
6226 msgid ""
6227 " aug-close\n"
6228 "\n"
6229 msgstr ""
6230
6231 #. type: textblock
6232 #: ../fish/guestfish-actions.pod:200
6233 msgid ""
6234 "Close the current Augeas handle and free up any resources used by it.  After "
6235 "calling this, you have to call L</aug-init> again before you can use any "
6236 "other Augeas functions."
6237 msgstr ""
6238
6239 #. type: =head2
6240 #: ../fish/guestfish-actions.pod:205
6241 msgid "aug-defnode"
6242 msgstr ""
6243
6244 #. type: verbatim
6245 #: ../fish/guestfish-actions.pod:207
6246 #, no-wrap
6247 msgid ""
6248 " aug-defnode name expr val\n"
6249 "\n"
6250 msgstr ""
6251
6252 #. type: textblock
6253 #: ../fish/guestfish-actions.pod:209 ../src/guestfs-actions.pod:325
6254 msgid ""
6255 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
6256 msgstr ""
6257
6258 #. type: textblock
6259 #: ../fish/guestfish-actions.pod:212
6260 msgid ""
6261 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
6262 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
6263 "containing that single node."
6264 msgstr ""
6265
6266 #. type: textblock
6267 #: ../fish/guestfish-actions.pod:216 ../src/guestfs-actions.pod:332
6268 msgid ""
6269 "On success this returns a pair containing the number of nodes in the "
6270 "nodeset, and a boolean flag if a node was created."
6271 msgstr ""
6272
6273 #. type: =head2
6274 #: ../fish/guestfish-actions.pod:220
6275 msgid "aug-defvar"
6276 msgstr ""
6277
6278 #. type: verbatim
6279 #: ../fish/guestfish-actions.pod:222
6280 #, no-wrap
6281 msgid ""
6282 " aug-defvar name expr\n"
6283 "\n"
6284 msgstr ""
6285
6286 #. type: textblock
6287 #: ../fish/guestfish-actions.pod:224 ../src/guestfs-actions.pod:349
6288 msgid ""
6289 "Defines an Augeas variable C<name> whose value is the result of evaluating "
6290 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
6291 msgstr ""
6292
6293 #. type: textblock
6294 #: ../fish/guestfish-actions.pod:228 ../src/guestfs-actions.pod:353
6295 msgid ""
6296 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
6297 "evaluates to something which is not a nodeset."
6298 msgstr ""
6299
6300 #. type: =head2
6301 #: ../fish/guestfish-actions.pod:231
6302 msgid "aug-get"
6303 msgstr ""
6304
6305 #. type: verbatim
6306 #: ../fish/guestfish-actions.pod:233
6307 #, no-wrap
6308 msgid ""
6309 " aug-get augpath\n"
6310 "\n"
6311 msgstr ""
6312
6313 #. type: textblock
6314 #: ../fish/guestfish-actions.pod:235 ../src/guestfs-actions.pod:366
6315 msgid ""
6316 "Look up the value associated with C<path>.  If C<path> matches exactly one "
6317 "node, the C<value> is returned."
6318 msgstr ""
6319
6320 #. type: =head2
6321 #: ../fish/guestfish-actions.pod:238
6322 msgid "aug-init"
6323 msgstr ""
6324
6325 #. type: verbatim
6326 #: ../fish/guestfish-actions.pod:240
6327 #, no-wrap
6328 msgid ""
6329 " aug-init root flags\n"
6330 "\n"
6331 msgstr ""
6332
6333 #. type: textblock
6334 #: ../fish/guestfish-actions.pod:242 ../src/guestfs-actions.pod:381
6335 msgid ""
6336 "Create a new Augeas handle for editing configuration files.  If there was "
6337 "any previous Augeas handle associated with this guestfs session, then it is "
6338 "closed."
6339 msgstr ""
6340
6341 #. type: textblock
6342 #: ../fish/guestfish-actions.pod:246
6343 msgid "You must call this before using any other L</aug-*> commands."
6344 msgstr ""
6345
6346 #. type: textblock
6347 #: ../fish/guestfish-actions.pod:249 ../src/guestfs-actions.pod:388
6348 msgid ""
6349 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
6350 msgstr ""
6351
6352 #. type: textblock
6353 #: ../fish/guestfish-actions.pod:252 ../src/guestfs-actions.pod:391
6354 msgid ""
6355 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
6356 "logical I<or> of the following integers:"
6357 msgstr ""
6358
6359 #. type: =item
6360 #: ../fish/guestfish-actions.pod:258 ../src/guestfs-actions.pod:397
6361 msgid "C<AUG_SAVE_BACKUP> = 1"
6362 msgstr "C<AUG_SAVE_BACKUP> = 1"
6363
6364 #. type: textblock
6365 #: ../fish/guestfish-actions.pod:260 ../src/guestfs-actions.pod:399
6366 msgid "Keep the original file with a C<.augsave> extension."
6367 msgstr ""
6368
6369 #. type: =item
6370 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:401
6371 msgid "C<AUG_SAVE_NEWFILE> = 2"
6372 msgstr "C<AUG_SAVE_NEWFILE> = 2"
6373
6374 #. type: textblock
6375 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:403
6376 msgid ""
6377 "Save changes into a file with extension C<.augnew>, and do not overwrite "
6378 "original.  Overrides C<AUG_SAVE_BACKUP>."
6379 msgstr ""
6380
6381 #. type: =item
6382 #: ../fish/guestfish-actions.pod:267 ../src/guestfs-actions.pod:406
6383 msgid "C<AUG_TYPE_CHECK> = 4"
6384 msgstr "C<AUG_TYPE_CHECK> = 4"
6385
6386 #. type: textblock
6387 #: ../fish/guestfish-actions.pod:269 ../src/guestfs-actions.pod:408
6388 msgid "Typecheck lenses."
6389 msgstr ""
6390
6391 #. type: textblock
6392 #: ../fish/guestfish-actions.pod:271
6393 msgid ""
6394 "This option is only useful when debugging Augeas lenses.  Use of this option "
6395 "may require additional memory for the libguestfs appliance.  You may need to "
6396 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
6397 msgstr ""
6398
6399 #. type: =item
6400 #: ../fish/guestfish-actions.pod:276 ../src/guestfs-actions.pod:415
6401 msgid "C<AUG_NO_STDINC> = 8"
6402 msgstr "C<AUG_NO_STDINC> = 8"
6403
6404 #. type: textblock
6405 #: ../fish/guestfish-actions.pod:278 ../src/guestfs-actions.pod:417
6406 msgid "Do not use standard load path for modules."
6407 msgstr ""
6408
6409 #. type: =item
6410 #: ../fish/guestfish-actions.pod:280 ../src/guestfs-actions.pod:419
6411 msgid "C<AUG_SAVE_NOOP> = 16"
6412 msgstr "C<AUG_SAVE_NOOP> = 16"
6413
6414 #. type: textblock
6415 #: ../fish/guestfish-actions.pod:282 ../src/guestfs-actions.pod:421
6416 msgid "Make save a no-op, just record what would have been changed."
6417 msgstr ""
6418
6419 #. type: =item
6420 #: ../fish/guestfish-actions.pod:284 ../src/guestfs-actions.pod:423
6421 msgid "C<AUG_NO_LOAD> = 32"
6422 msgstr "C<AUG_NO_LOAD> = 32"
6423
6424 #. type: textblock
6425 #: ../fish/guestfish-actions.pod:286
6426 msgid "Do not load the tree in L</aug-init>."
6427 msgstr ""
6428
6429 #. type: textblock
6430 #: ../fish/guestfish-actions.pod:290
6431 msgid "To close the handle, you can call L</aug-close>."
6432 msgstr ""
6433
6434 #. type: textblock
6435 #: ../fish/guestfish-actions.pod:292 ../src/guestfs-actions.pod:431
6436 msgid "To find out more about Augeas, see L<http://augeas.net/>."
6437 msgstr ""
6438
6439 #. type: =head2
6440 #: ../fish/guestfish-actions.pod:294
6441 msgid "aug-insert"
6442 msgstr ""
6443
6444 #. type: verbatim
6445 #: ../fish/guestfish-actions.pod:296
6446 #, no-wrap
6447 msgid ""
6448 " aug-insert augpath label true|false\n"
6449 "\n"
6450 msgstr ""
6451
6452 #. type: textblock
6453 #: ../fish/guestfish-actions.pod:298 ../src/guestfs-actions.pod:445
6454 msgid ""
6455 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
6456 "or after C<path> (depending on the boolean flag C<before>)."
6457 msgstr ""
6458
6459 #. type: textblock
6460 #: ../fish/guestfish-actions.pod:302 ../src/guestfs-actions.pod:449
6461 msgid ""
6462 "C<path> must match exactly one existing node in the tree, and C<label> must "
6463 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
6464 msgstr ""
6465
6466 #. type: =head2
6467 #: ../fish/guestfish-actions.pod:306
6468 msgid "aug-load"
6469 msgstr ""
6470
6471 #. type: verbatim
6472 #: ../fish/guestfish-actions.pod:308
6473 #, no-wrap
6474 msgid ""
6475 " aug-load\n"
6476 "\n"
6477 msgstr ""
6478
6479 #. type: textblock
6480 #: ../fish/guestfish-actions.pod:310 ../src/guestfs-actions.pod:462
6481 msgid "Load files into the tree."
6482 msgstr "Завантажити файли до ієрархії."
6483
6484 #. type: textblock
6485 #: ../fish/guestfish-actions.pod:312 ../src/guestfs-actions.pod:464
6486 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
6487 msgstr ""
6488
6489 #. type: =head2
6490 #: ../fish/guestfish-actions.pod:315
6491 msgid "aug-ls"
6492 msgstr ""
6493
6494 #. type: verbatim
6495 #: ../fish/guestfish-actions.pod:317
6496 #, no-wrap
6497 msgid ""
6498 " aug-ls augpath\n"
6499 "\n"
6500 msgstr ""
6501
6502 #. type: textblock
6503 #: ../fish/guestfish-actions.pod:319
6504 msgid ""
6505 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
6506 "resulting nodes into alphabetical order."
6507 msgstr ""
6508
6509 #. type: =head2
6510 #: ../fish/guestfish-actions.pod:322
6511 msgid "aug-match"
6512 msgstr ""
6513
6514 #. type: verbatim
6515 #: ../fish/guestfish-actions.pod:324
6516 #, no-wrap
6517 msgid ""
6518 " aug-match augpath\n"
6519 "\n"
6520 msgstr ""
6521
6522 #. type: textblock
6523 #: ../fish/guestfish-actions.pod:326 ../src/guestfs-actions.pod:492
6524 msgid ""
6525 "Returns a list of paths which match the path expression C<path>.  The "
6526 "returned paths are sufficiently qualified so that they match exactly one "
6527 "node in the current tree."
6528 msgstr ""
6529
6530 #. type: =head2
6531 #: ../fish/guestfish-actions.pod:330
6532 msgid "aug-mv"
6533 msgstr ""
6534
6535 #. type: verbatim
6536 #: ../fish/guestfish-actions.pod:332
6537 #, no-wrap
6538 msgid ""
6539 " aug-mv src dest\n"
6540 "\n"
6541 msgstr ""
6542
6543 #. type: textblock
6544 #: ../fish/guestfish-actions.pod:334 ../src/guestfs-actions.pod:509
6545 msgid ""
6546 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
6547 "C<dest> is overwritten if it exists."
6548 msgstr ""
6549
6550 #. type: =head2
6551 #: ../fish/guestfish-actions.pod:337
6552 msgid "aug-rm"
6553 msgstr ""
6554
6555 #. type: verbatim
6556 #: ../fish/guestfish-actions.pod:339
6557 #, no-wrap
6558 msgid ""
6559 " aug-rm augpath\n"
6560 "\n"
6561 msgstr ""
6562
6563 #. type: textblock
6564 #: ../fish/guestfish-actions.pod:341 ../src/guestfs-actions.pod:522
6565 msgid "Remove C<path> and all of its children."
6566 msgstr ""
6567
6568 #. type: textblock
6569 #: ../fish/guestfish-actions.pod:343 ../src/guestfs-actions.pod:524
6570 msgid "On success this returns the number of entries which were removed."
6571 msgstr ""
6572
6573 #. type: =head2
6574 #: ../fish/guestfish-actions.pod:345
6575 msgid "aug-save"
6576 msgstr ""
6577
6578 #. type: verbatim
6579 #: ../fish/guestfish-actions.pod:347
6580 #, no-wrap
6581 msgid ""
6582 " aug-save\n"
6583 "\n"
6584 msgstr ""
6585
6586 #. type: textblock
6587 #: ../fish/guestfish-actions.pod:349 ../src/guestfs-actions.pod:535
6588 msgid "This writes all pending changes to disk."
6589 msgstr ""
6590
6591 #. type: textblock
6592 #: ../fish/guestfish-actions.pod:351
6593 msgid ""
6594 "The flags which were passed to L</aug-init> affect exactly how files are "
6595 "saved."
6596 msgstr ""
6597
6598 #. type: =head2
6599 #: ../fish/guestfish-actions.pod:354
6600 msgid "aug-set"
6601 msgstr ""
6602
6603 #. type: verbatim
6604 #: ../fish/guestfish-actions.pod:356
6605 #, no-wrap
6606 msgid ""
6607 " aug-set augpath val\n"
6608 "\n"
6609 msgstr ""
6610
6611 #. type: textblock
6612 #: ../fish/guestfish-actions.pod:358 ../src/guestfs-actions.pod:551
6613 msgid "Set the value associated with C<path> to C<val>."
6614 msgstr ""
6615
6616 #. type: textblock
6617 #: ../fish/guestfish-actions.pod:360
6618 msgid ""
6619 "In the Augeas API, it is possible to clear a node by setting the value to "
6620 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
6621 "this call.  Instead you must use the L</aug-clear> call."
6622 msgstr ""
6623
6624 #. type: =head2
6625 #: ../fish/guestfish-actions.pod:365
6626 msgid "available"
6627 msgstr ""
6628
6629 #. type: verbatim
6630 #: ../fish/guestfish-actions.pod:367
6631 #, no-wrap
6632 msgid ""
6633 " available 'groups ...'\n"
6634 "\n"
6635 msgstr ""
6636
6637 #. type: textblock
6638 #: ../fish/guestfish-actions.pod:369 ../src/guestfs-actions.pod:568
6639 msgid ""
6640 "This command is used to check the availability of some groups of "
6641 "functionality in the appliance, which not all builds of the libguestfs "
6642 "appliance will be able to provide."
6643 msgstr ""
6644
6645 #. type: textblock
6646 #: ../fish/guestfish-actions.pod:373
6647 msgid ""
6648 "The libguestfs groups, and the functions that those groups correspond to, "
6649 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
6650 "runtime by calling L</available-all-groups>."
6651 msgstr ""
6652
6653 #. type: textblock
6654 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:577
6655 msgid ""
6656 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
6657 "\"]> would check for the availability of the Linux inotify functions and "
6658 "Augeas (configuration file editing) functions."
6659 msgstr ""
6660
6661 #. type: textblock
6662 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:582
6663 msgid "The command returns no error if I<all> requested groups are available."
6664 msgstr ""
6665
6666 #. type: textblock
6667 #: ../fish/guestfish-actions.pod:385 ../src/guestfs-actions.pod:584
6668 msgid ""
6669 "It fails with an error if one or more of the requested groups is unavailable "
6670 "in the appliance."
6671 msgstr ""
6672
6673 #. type: textblock
6674 #: ../fish/guestfish-actions.pod:388 ../src/guestfs-actions.pod:587
6675 msgid ""
6676 "If an unknown group name is included in the list of groups then an error is "
6677 "always returned."
6678 msgstr ""
6679
6680 #. type: textblock
6681 #: ../fish/guestfish-actions.pod:391 ../src/guestfs-actions.pod:590
6682 msgid "I<Notes:>"
6683 msgstr "I<Нотатки:>"
6684
6685 #. type: textblock
6686 #: ../fish/guestfish-actions.pod:397
6687 msgid "You must call L</launch> before calling this function."
6688 msgstr ""
6689
6690 #. type: textblock
6691 #: ../fish/guestfish-actions.pod:399 ../src/guestfs-actions.pod:598
6692 msgid ""
6693 "The reason is because we don't know what groups are supported by the "
6694 "appliance/daemon until it is running and can be queried."
6695 msgstr ""
6696
6697 #. type: textblock
6698 #: ../fish/guestfish-actions.pod:405 ../src/guestfs-actions.pod:604
6699 msgid ""
6700 "If a group of functions is available, this does not necessarily mean that "
6701 "they will work.  You still have to check for errors when calling individual "
6702 "API functions even if they are available."
6703 msgstr ""
6704
6705 #. type: textblock
6706 #: ../fish/guestfish-actions.pod:412 ../src/guestfs-actions.pod:611
6707 msgid ""
6708 "It is usually the job of distro packagers to build complete functionality "
6709 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
6710 "with all requirements satisfied, will support everything."
6711 msgstr ""
6712
6713 #. type: textblock
6714 #: ../fish/guestfish-actions.pod:419
6715 msgid ""
6716 "This call was added in version C<1.0.80>.  In previous versions of "
6717 "libguestfs all you could do would be to speculatively execute a command to "
6718 "find out if the daemon implemented it.  See also L</version>."
6719 msgstr ""
6720
6721 #. type: =head2
6722 #: ../fish/guestfish-actions.pod:426
6723 msgid "available-all-groups"
6724 msgstr ""
6725
6726 #. type: verbatim
6727 #: ../fish/guestfish-actions.pod:428
6728 #, no-wrap
6729 msgid ""
6730 " available-all-groups\n"
6731 "\n"
6732 msgstr ""
6733
6734 #. type: textblock
6735 #: ../fish/guestfish-actions.pod:430
6736 msgid ""
6737 "This command returns a list of all optional groups that this daemon knows "
6738 "about.  Note this returns both supported and unsupported groups.  To find "
6739 "out which ones the daemon can actually support you have to call L</"
6740 "available> on each member of the returned list."
6741 msgstr ""
6742
6743 #. type: textblock
6744 #: ../fish/guestfish-actions.pod:436
6745 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6746 msgstr ""
6747
6748 #. type: =head2
6749 #: ../fish/guestfish-actions.pod:438
6750 msgid "base64-in"
6751 msgstr ""
6752
6753 #. type: verbatim
6754 #: ../fish/guestfish-actions.pod:440
6755 #, no-wrap
6756 msgid ""
6757 " base64-in (base64file|-) filename\n"
6758 "\n"
6759 msgstr ""
6760
6761 #. type: textblock
6762 #: ../fish/guestfish-actions.pod:442 ../src/guestfs-actions.pod:655
6763 msgid ""
6764 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6765 msgstr ""
6766
6767 #. type: textblock
6768 #: ../fish/guestfish-actions.pod:445 ../fish/guestfish-actions.pod:454
6769 #: ../fish/guestfish-actions.pod:703 ../fish/guestfish-actions.pod:787
6770 #: ../fish/guestfish-actions.pod:808 ../fish/guestfish-actions.pod:907
6771 #: ../fish/guestfish-actions.pod:926 ../fish/guestfish-actions.pod:1300
6772 #: ../fish/guestfish-actions.pod:4750 ../fish/guestfish-actions.pod:4762
6773 #: ../fish/guestfish-actions.pod:4773 ../fish/guestfish-actions.pod:4784
6774 #: ../fish/guestfish-actions.pod:4836 ../fish/guestfish-actions.pod:4845
6775 #: ../fish/guestfish-actions.pod:4899 ../fish/guestfish-actions.pod:4922
6776 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6777 msgstr ""
6778
6779 #. type: =head2
6780 #: ../fish/guestfish-actions.pod:447
6781 msgid "base64-out"
6782 msgstr ""
6783
6784 #. type: verbatim
6785 #: ../fish/guestfish-actions.pod:449
6786 #, no-wrap
6787 msgid ""
6788 " base64-out filename (base64file|-)\n"
6789 "\n"
6790 msgstr ""
6791
6792 #. type: textblock
6793 #: ../fish/guestfish-actions.pod:451 ../src/guestfs-actions.pod:669
6794 msgid ""
6795 "This command downloads the contents of C<filename>, writing it out to local "
6796 "file C<base64file> encoded as base64."
6797 msgstr ""
6798
6799 #. type: =head2
6800 #: ../fish/guestfish-actions.pod:456
6801 msgid "blockdev-flushbufs"
6802 msgstr ""
6803
6804 #. type: verbatim
6805 #: ../fish/guestfish-actions.pod:458
6806 #, no-wrap
6807 msgid ""
6808 " blockdev-flushbufs device\n"
6809 "\n"
6810 msgstr ""
6811
6812 #. type: textblock
6813 #: ../fish/guestfish-actions.pod:460 ../src/guestfs-actions.pod:682
6814 msgid ""
6815 "This tells the kernel to flush internal buffers associated with C<device>."
6816 msgstr ""
6817
6818 #. type: textblock
6819 #: ../fish/guestfish-actions.pod:463 ../fish/guestfish-actions.pod:474
6820 #: ../fish/guestfish-actions.pod:483 ../fish/guestfish-actions.pod:493
6821 #: ../fish/guestfish-actions.pod:505 ../fish/guestfish-actions.pod:518
6822 #: ../fish/guestfish-actions.pod:526 ../fish/guestfish-actions.pod:537
6823 #: ../fish/guestfish-actions.pod:545 ../fish/guestfish-actions.pod:553
6824 #: ../src/guestfs-actions.pod:685 ../src/guestfs-actions.pod:702
6825 #: ../src/guestfs-actions.pod:717 ../src/guestfs-actions.pod:733
6826 #: ../src/guestfs-actions.pod:751 ../src/guestfs-actions.pod:770
6827 #: ../src/guestfs-actions.pod:784 ../src/guestfs-actions.pod:802
6828 #: ../src/guestfs-actions.pod:816 ../src/guestfs-actions.pod:830
6829 msgid "This uses the L<blockdev(8)> command."
6830 msgstr ""
6831
6832 #. type: =head2
6833 #: ../fish/guestfish-actions.pod:465
6834 msgid "blockdev-getbsz"
6835 msgstr ""
6836
6837 #. type: verbatim
6838 #: ../fish/guestfish-actions.pod:467
6839 #, no-wrap
6840 msgid ""
6841 " blockdev-getbsz device\n"
6842 "\n"
6843 msgstr ""
6844
6845 #. type: textblock
6846 #: ../fish/guestfish-actions.pod:469 ../src/guestfs-actions.pod:697
6847 msgid "This returns the block size of a device."
6848 msgstr ""
6849
6850 #. type: textblock
6851 #: ../fish/guestfish-actions.pod:471 ../fish/guestfish-actions.pod:534
6852 #: ../src/guestfs-actions.pod:699 ../src/guestfs-actions.pod:799
6853 msgid ""
6854 "(Note this is different from both I<size in blocks> and I<filesystem block "
6855 "size>)."
6856 msgstr ""
6857
6858 #. type: =head2
6859 #: ../fish/guestfish-actions.pod:476
6860 msgid "blockdev-getro"
6861 msgstr ""
6862
6863 #. type: verbatim
6864 #: ../fish/guestfish-actions.pod:478
6865 #, no-wrap
6866 msgid ""
6867 " blockdev-getro device\n"
6868 "\n"
6869 msgstr ""
6870
6871 #. type: textblock
6872 #: ../fish/guestfish-actions.pod:480 ../src/guestfs-actions.pod:714
6873 msgid ""
6874 "Returns a boolean indicating if the block device is read-only (true if read-"
6875 "only, false if not)."
6876 msgstr ""
6877
6878 #. type: =head2
6879 #: ../fish/guestfish-actions.pod:485
6880 msgid "blockdev-getsize64"
6881 msgstr ""
6882
6883 #. type: verbatim
6884 #: ../fish/guestfish-actions.pod:487
6885 #, no-wrap
6886 msgid ""
6887 " blockdev-getsize64 device\n"
6888 "\n"
6889 msgstr ""
6890
6891 #. type: textblock
6892 #: ../fish/guestfish-actions.pod:489 ../src/guestfs-actions.pod:729
6893 msgid "This returns the size of the device in bytes."
6894 msgstr ""
6895
6896 #. type: textblock
6897 #: ../fish/guestfish-actions.pod:491
6898 msgid "See also L</blockdev-getsz>."
6899 msgstr "Див. також L</blockdev-getsz>."
6900
6901 #. type: =head2
6902 #: ../fish/guestfish-actions.pod:495
6903 msgid "blockdev-getss"
6904 msgstr ""
6905
6906 #. type: verbatim
6907 #: ../fish/guestfish-actions.pod:497
6908 #, no-wrap
6909 msgid ""
6910 " blockdev-getss device\n"
6911 "\n"
6912 msgstr ""
6913
6914 #. type: textblock
6915 #: ../fish/guestfish-actions.pod:499 ../src/guestfs-actions.pod:745
6916 msgid ""
6917 "This returns the size of sectors on a block device.  Usually 512, but can be "
6918 "larger for modern devices."
6919 msgstr ""
6920
6921 #. type: textblock
6922 #: ../fish/guestfish-actions.pod:502
6923 msgid ""
6924 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6925 msgstr ""
6926
6927 #. type: =head2
6928 #: ../fish/guestfish-actions.pod:507
6929 msgid "blockdev-getsz"
6930 msgstr ""
6931
6932 #. type: verbatim
6933 #: ../fish/guestfish-actions.pod:509
6934 #, no-wrap
6935 msgid ""
6936 " blockdev-getsz device\n"
6937 "\n"
6938 msgstr ""
6939
6940 #. type: textblock
6941 #: ../fish/guestfish-actions.pod:511 ../src/guestfs-actions.pod:763
6942 msgid ""
6943 "This returns the size of the device in units of 512-byte sectors (even if "
6944 "the sectorsize isn't 512 bytes ... weird)."
6945 msgstr ""
6946
6947 #. type: textblock
6948 #: ../fish/guestfish-actions.pod:514
6949 msgid ""
6950 "See also L</blockdev-getss> for the real sector size of the device, and L</"
6951 "blockdev-getsize64> for the more useful I<size in bytes>."
6952 msgstr ""
6953
6954 #. type: =head2
6955 #: ../fish/guestfish-actions.pod:520
6956 msgid "blockdev-rereadpt"
6957 msgstr ""
6958
6959 #. type: verbatim
6960 #: ../fish/guestfish-actions.pod:522
6961 #, no-wrap
6962 msgid ""
6963 " blockdev-rereadpt device\n"
6964 "\n"
6965 msgstr ""
6966
6967 #. type: textblock
6968 #: ../fish/guestfish-actions.pod:524 ../src/guestfs-actions.pod:782
6969 msgid "Reread the partition table on C<device>."
6970 msgstr ""
6971
6972 #. type: =head2
6973 #: ../fish/guestfish-actions.pod:528
6974 msgid "blockdev-setbsz"
6975 msgstr ""
6976
6977 #. type: verbatim
6978 #: ../fish/guestfish-actions.pod:530
6979 #, no-wrap
6980 msgid ""
6981 " blockdev-setbsz device blocksize\n"
6982 "\n"
6983 msgstr ""
6984
6985 #. type: textblock
6986 #: ../fish/guestfish-actions.pod:532 ../src/guestfs-actions.pod:797
6987 msgid "This sets the block size of a device."
6988 msgstr ""
6989
6990 #. type: =head2
6991 #: ../fish/guestfish-actions.pod:539
6992 msgid "blockdev-setro"
6993 msgstr ""
6994
6995 #. type: verbatim
6996 #: ../fish/guestfish-actions.pod:541
6997 #, no-wrap
6998 msgid ""
6999 " blockdev-setro device\n"
7000 "\n"
7001 msgstr ""
7002
7003 #. type: textblock
7004 #: ../fish/guestfish-actions.pod:543 ../src/guestfs-actions.pod:814
7005 msgid "Sets the block device named C<device> to read-only."
7006 msgstr ""
7007
7008 #. type: =head2
7009 #: ../fish/guestfish-actions.pod:547
7010 msgid "blockdev-setrw"
7011 msgstr ""
7012
7013 #. type: verbatim
7014 #: ../fish/guestfish-actions.pod:549
7015 #, no-wrap
7016 msgid ""
7017 " blockdev-setrw device\n"
7018 "\n"
7019 msgstr ""
7020
7021 #. type: textblock
7022 #: ../fish/guestfish-actions.pod:551 ../src/guestfs-actions.pod:828
7023 msgid "Sets the block device named C<device> to read-write."
7024 msgstr ""
7025
7026 #. type: =head2
7027 #: ../fish/guestfish-actions.pod:555
7028 msgid "btrfs-filesystem-resize"
7029 msgstr ""
7030
7031 #. type: verbatim
7032 #: ../fish/guestfish-actions.pod:557
7033 #, no-wrap
7034 msgid ""
7035 " btrfs-filesystem-resize mountpoint [size:..]\n"
7036 "\n"
7037 msgstr ""
7038
7039 #. type: textblock
7040 #: ../fish/guestfish-actions.pod:559 ../src/guestfs-actions.pod:850
7041 msgid "This command resizes a btrfs filesystem."
7042 msgstr ""
7043
7044 #. type: textblock
7045 #: ../fish/guestfish-actions.pod:561 ../src/guestfs-actions.pod:852
7046 msgid ""
7047 "Note that unlike other resize calls, the filesystem has to be mounted and "
7048 "the parameter is the mountpoint not the device (this is a requirement of "
7049 "btrfs itself)."
7050 msgstr ""
7051
7052 #. type: textblock
7053 #: ../fish/guestfish-actions.pod:565 ../fish/guestfish-actions.pod:3497
7054 #: ../src/guestfs-actions.pod:856 ../src/guestfs-actions.pod:5351
7055 msgid "The optional parameters are:"
7056 msgstr ""
7057
7058 #. type: =item
7059 #: ../fish/guestfish-actions.pod:569 ../fish/guestfish-actions.pod:3501
7060 #: ../src/guestfs-actions.pod:860 ../src/guestfs-actions.pod:5355
7061 msgid "C<size>"
7062 msgstr "C<розмір>"
7063
7064 #. type: textblock
7065 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:862
7066 msgid ""
7067 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
7068 "resized to the maximum size."
7069 msgstr ""
7070
7071 #. type: textblock
7072 #: ../fish/guestfish-actions.pod:576 ../src/guestfs-actions.pod:867
7073 msgid "See also L<btrfs(8)>."
7074 msgstr "Див. також L<btrfs(8)>."
7075
7076 #. type: =head2
7077 #: ../fish/guestfish-actions.pod:580
7078 msgid "case-sensitive-path"
7079 msgstr ""
7080
7081 #. type: verbatim
7082 #: ../fish/guestfish-actions.pod:582
7083 #, no-wrap
7084 msgid ""
7085 " case-sensitive-path path\n"
7086 "\n"
7087 msgstr ""
7088
7089 #. type: textblock
7090 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:901
7091 msgid ""
7092 "This can be used to resolve case insensitive paths on a filesystem which is "
7093 "case sensitive.  The use case is to resolve paths which you have read from "
7094 "Windows configuration files or the Windows Registry, to the true path."
7095 msgstr ""
7096
7097 #. type: textblock
7098 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:906
7099 msgid ""
7100 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
7101 "(and probably others), which is that although the underlying filesystem is "
7102 "case-insensitive, the driver exports the filesystem to Linux as case-"
7103 "sensitive."
7104 msgstr ""
7105
7106 #. type: textblock
7107 #: ../fish/guestfish-actions.pod:594 ../src/guestfs-actions.pod:911
7108 msgid ""
7109 "One consequence of this is that special directories such as C<c:\\windows> "
7110 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
7111 "precise details of how they were created.  In Windows itself this would not "
7112 "be a problem."
7113 msgstr ""
7114
7115 #. type: textblock
7116 #: ../fish/guestfish-actions.pod:600 ../src/guestfs-actions.pod:917
7117 msgid ""
7118 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
7119 "#posixfilenames1>"
7120 msgstr ""
7121
7122 #. type: textblock
7123 #: ../fish/guestfish-actions.pod:603 ../src/guestfs-actions.pod:920
7124 msgid ""
7125 "This function resolves the true case of each element in the path and returns "
7126 "the case-sensitive path."
7127 msgstr ""
7128
7129 #. type: textblock
7130 #: ../fish/guestfish-actions.pod:606
7131 msgid ""
7132 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
7133 "WINDOWS/system32\"> (the exact return value would depend on details of how "
7134 "the directories were originally created under Windows)."
7135 msgstr ""
7136
7137 #. type: textblock
7138 #: ../fish/guestfish-actions.pod:611 ../src/guestfs-actions.pod:928
7139 msgid "I<Note>: This function does not handle drive names, backslashes etc."
7140 msgstr ""
7141
7142 #. type: textblock
7143 #: ../fish/guestfish-actions.pod:614
7144 msgid "See also L</realpath>."
7145 msgstr "Див. також L</realpath>."
7146
7147 #. type: =head2
7148 #: ../fish/guestfish-actions.pod:616
7149 msgid "cat"
7150 msgstr "cat"
7151
7152 #. type: verbatim
7153 #: ../fish/guestfish-actions.pod:618
7154 #, no-wrap
7155 msgid ""
7156 " cat path\n"
7157 "\n"
7158 msgstr ""
7159 " cat шлях\n"
7160 "\n"
7161
7162 #. type: textblock
7163 #: ../fish/guestfish-actions.pod:620 ../fish/guestfish-actions.pod:3917
7164 #: ../src/guestfs-actions.pod:944 ../src/guestfs-actions.pod:5994
7165 msgid "Return the contents of the file named C<path>."
7166 msgstr ""
7167
7168 #. type: textblock
7169 #: ../fish/guestfish-actions.pod:622
7170 msgid ""
7171 "Note that this function cannot correctly handle binary files (specifically, "
7172 "files containing C<\\0> character which is treated as end of string).  For "
7173 "those you need to use the L</read-file> or L</download> functions which have "
7174 "a more complex interface."
7175 msgstr ""
7176
7177 #. type: textblock
7178 #: ../fish/guestfish-actions.pod:627 ../fish/guestfish-actions.pod:762
7179 #: ../fish/guestfish-actions.pod:774 ../fish/guestfish-actions.pod:985
7180 #: ../fish/guestfish-actions.pod:995 ../fish/guestfish-actions.pod:1062
7181 #: ../fish/guestfish-actions.pod:1072 ../fish/guestfish-actions.pod:1264
7182 #: ../fish/guestfish-actions.pod:1577 ../fish/guestfish-actions.pod:1587
7183 #: ../fish/guestfish-actions.pod:1637 ../fish/guestfish-actions.pod:1652
7184 #: ../fish/guestfish-actions.pod:1662 ../fish/guestfish-actions.pod:1681
7185 #: ../fish/guestfish-actions.pod:3787 ../fish/guestfish-actions.pod:3802
7186 #: ../fish/guestfish-actions.pod:3878 ../fish/guestfish-actions.pod:3895
7187 #: ../fish/guestfish-actions.pod:3910 ../fish/guestfish-actions.pod:4591
7188 #: ../fish/guestfish-actions.pod:4637 ../fish/guestfish-actions.pod:4722
7189 #: ../fish/guestfish-actions.pod:4737 ../fish/guestfish-actions.pod:5143
7190 #: ../fish/guestfish-actions.pod:5155 ../fish/guestfish-actions.pod:5173
7191 #: ../fish/guestfish-actions.pod:5190 ../fish/guestfish-actions.pod:5200
7192 #: ../fish/guestfish-actions.pod:5257 ../fish/guestfish-actions.pod:5267
7193 #: ../fish/guestfish-actions.pod:5296 ../fish/guestfish-actions.pod:5306
7194 #: ../src/guestfs-actions.pod:954 ../src/guestfs-actions.pod:1133
7195 #: ../src/guestfs-actions.pod:1153 ../src/guestfs-actions.pod:1560
7196 #: ../src/guestfs-actions.pod:1579 ../src/guestfs-actions.pod:1682
7197 #: ../src/guestfs-actions.pod:1701 ../src/guestfs-actions.pod:1947
7198 #: ../src/guestfs-actions.pod:2429 ../src/guestfs-actions.pod:2448
7199 #: ../src/guestfs-actions.pod:2513 ../src/guestfs-actions.pod:2537
7200 #: ../src/guestfs-actions.pod:2554 ../src/guestfs-actions.pod:2583
7201 #: ../src/guestfs-actions.pod:5776 ../src/guestfs-actions.pod:5802
7202 #: ../src/guestfs-actions.pod:5933 ../src/guestfs-actions.pod:5959
7203 #: ../src/guestfs-actions.pod:5983 ../src/guestfs-actions.pod:6950
7204 #: ../src/guestfs-actions.pod:7005 ../src/guestfs-actions.pod:7151
7205 #: ../src/guestfs-actions.pod:7175 ../src/guestfs-actions.pod:7840
7206 #: ../src/guestfs-actions.pod:7860 ../src/guestfs-actions.pod:7893
7207 #: ../src/guestfs-actions.pod:7912 ../src/guestfs-actions.pod:7931
7208 #: ../src/guestfs-actions.pod:8025 ../src/guestfs-actions.pod:8044
7209 #: ../src/guestfs-actions.pod:8090 ../src/guestfs-actions.pod:8109
7210 msgid ""
7211 "Because of the message protocol, there is a transfer limit of somewhere "
7212 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
7213 msgstr ""
7214
7215 #. type: =head2
7216 #: ../fish/guestfish-actions.pod:630
7217 msgid "checksum"
7218 msgstr "checksum"
7219
7220 #. type: verbatim
7221 #: ../fish/guestfish-actions.pod:632
7222 #, no-wrap
7223 msgid ""
7224 " checksum csumtype path\n"
7225 "\n"
7226 msgstr ""
7227
7228 #. type: textblock
7229 #: ../fish/guestfish-actions.pod:634 ../src/guestfs-actions.pod:966
7230 msgid ""
7231 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
7232 msgstr ""
7233
7234 #. type: textblock
7235 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:969
7236 msgid ""
7237 "The type of checksum to compute is given by the C<csumtype> parameter which "
7238 "must have one of the following values:"
7239 msgstr ""
7240
7241 #. type: =item
7242 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:974
7243 msgid "C<crc>"
7244 msgstr "C<crc>"
7245
7246 #. type: textblock
7247 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:976
7248 msgid ""
7249 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
7250 "C<cksum> command."
7251 msgstr ""
7252
7253 #. type: =item
7254 #: ../fish/guestfish-actions.pod:647 ../src/guestfs-actions.pod:979
7255 msgid "C<md5>"
7256 msgstr "C<md5>"
7257
7258 #. type: textblock
7259 #: ../fish/guestfish-actions.pod:649 ../src/guestfs-actions.pod:981
7260 msgid "Compute the MD5 hash (using the C<md5sum> program)."
7261 msgstr ""
7262
7263 #. type: =item
7264 #: ../fish/guestfish-actions.pod:651 ../src/guestfs-actions.pod:983
7265 msgid "C<sha1>"
7266 msgstr "C<sha1>"
7267
7268 #. type: textblock
7269 #: ../fish/guestfish-actions.pod:653 ../src/guestfs-actions.pod:985
7270 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
7271 msgstr ""
7272
7273 #. type: =item
7274 #: ../fish/guestfish-actions.pod:655 ../src/guestfs-actions.pod:987
7275 msgid "C<sha224>"
7276 msgstr "C<sha224>"
7277
7278 #. type: textblock
7279 #: ../fish/guestfish-actions.pod:657 ../src/guestfs-actions.pod:989
7280 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
7281 msgstr ""
7282
7283 #. type: =item
7284 #: ../fish/guestfish-actions.pod:659 ../src/guestfs-actions.pod:991
7285 msgid "C<sha256>"
7286 msgstr "C<sha256>"
7287
7288 #. type: textblock
7289 #: ../fish/guestfish-actions.pod:661 ../src/guestfs-actions.pod:993
7290 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
7291 msgstr ""
7292
7293 #. type: =item
7294 #: ../fish/guestfish-actions.pod:663 ../src/guestfs-actions.pod:995
7295 msgid "C<sha384>"
7296 msgstr "C<sha384>"
7297
7298 #. type: textblock
7299 #: ../fish/guestfish-actions.pod:665 ../src/guestfs-actions.pod:997
7300 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
7301 msgstr ""
7302
7303 #. type: =item
7304 #: ../fish/guestfish-actions.pod:667 ../src/guestfs-actions.pod:999
7305 msgid "C<sha512>"
7306 msgstr "C<sha512>"
7307
7308 #. type: textblock
7309 #: ../fish/guestfish-actions.pod:669 ../src/guestfs-actions.pod:1001
7310 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
7311 msgstr ""
7312
7313 #. type: textblock
7314 #: ../fish/guestfish-actions.pod:673 ../src/guestfs-actions.pod:1005
7315 msgid "The checksum is returned as a printable string."
7316 msgstr ""
7317
7318 #. type: textblock
7319 #: ../fish/guestfish-actions.pod:675
7320 msgid "To get the checksum for a device, use L</checksum-device>."
7321 msgstr ""
7322
7323 #. type: textblock
7324 #: ../fish/guestfish-actions.pod:677
7325 msgid "To get the checksums for many files, use L</checksums-out>."
7326 msgstr ""
7327
7328 #. type: =head2
7329 #: ../fish/guestfish-actions.pod:679
7330 msgid "checksum-device"
7331 msgstr "checksum-device"
7332
7333 #. type: verbatim
7334 #: ../fish/guestfish-actions.pod:681
7335 #, no-wrap
7336 msgid ""
7337 " checksum-device csumtype device\n"
7338 "\n"
7339 msgstr ""
7340
7341 #. type: textblock
7342 #: ../fish/guestfish-actions.pod:683
7343 msgid ""
7344 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
7345 "device named C<device>.  For the types of checksums supported see the L</"
7346 "checksum> command."
7347 msgstr ""
7348
7349 #. type: =head2
7350 #: ../fish/guestfish-actions.pod:687
7351 msgid "checksums-out"
7352 msgstr ""
7353
7354 #. type: verbatim
7355 #: ../fish/guestfish-actions.pod:689
7356 #, no-wrap
7357 msgid ""
7358 " checksums-out csumtype directory (sumsfile|-)\n"
7359 "\n"
7360 msgstr ""
7361
7362 #. type: textblock
7363 #: ../fish/guestfish-actions.pod:691 ../src/guestfs-actions.pod:1040
7364 msgid ""
7365 "This command computes the checksums of all regular files in C<directory> and "
7366 "then emits a list of those checksums to the local output file C<sumsfile>."
7367 msgstr ""
7368
7369 #. type: textblock
7370 #: ../fish/guestfish-actions.pod:695 ../src/guestfs-actions.pod:1044
7371 msgid ""
7372 "This can be used for verifying the integrity of a virtual machine.  However "
7373 "to be properly secure you should pay attention to the output of the checksum "
7374 "command (it uses the ones from GNU coreutils).  In particular when the "
7375 "filename is not printable, coreutils uses a special backslash syntax.  For "
7376 "more information, see the GNU coreutils info file."
7377 msgstr ""
7378
7379 #. type: =head2
7380 #: ../fish/guestfish-actions.pod:705
7381 msgid "chmod"
7382 msgstr "chmod"
7383
7384 #. type: verbatim
7385 #: ../fish/guestfish-actions.pod:707
7386 #, no-wrap
7387 msgid ""
7388 " chmod mode path\n"
7389 "\n"
7390 msgstr ""
7391
7392 #. type: textblock
7393 #: ../fish/guestfish-actions.pod:709 ../src/guestfs-actions.pod:1063
7394 msgid ""
7395 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
7396 "supported."
7397 msgstr ""
7398
7399 #. type: textblock
7400 #: ../fish/guestfish-actions.pod:712 ../src/guestfs-actions.pod:1066
7401 msgid ""
7402 "I<Note>: When using this command from guestfish, C<mode> by default would be "
7403 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
7404 "C<700>."
7405 msgstr ""
7406
7407 #. type: textblock
7408 #: ../fish/guestfish-actions.pod:716 ../fish/guestfish-actions.pod:3150
7409 #: ../fish/guestfish-actions.pod:3289 ../fish/guestfish-actions.pod:3299
7410 #: ../fish/guestfish-actions.pod:3309 ../src/guestfs-actions.pod:1070
7411 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:4967
7412 #: ../src/guestfs-actions.pod:4986 ../src/guestfs-actions.pod:5005
7413 msgid "The mode actually set is affected by the umask."
7414 msgstr ""
7415
7416 #. type: =head2
7417 #: ../fish/guestfish-actions.pod:718
7418 msgid "chown"
7419 msgstr "chown"
7420
7421 #. type: verbatim
7422 #: ../fish/guestfish-actions.pod:720
7423 #, no-wrap
7424 msgid ""
7425 " chown owner group path\n"
7426 "\n"
7427 msgstr ""
7428
7429 #. type: textblock
7430 #: ../fish/guestfish-actions.pod:722 ../src/guestfs-actions.pod:1084
7431 msgid "Change the file owner to C<owner> and group to C<group>."
7432 msgstr ""
7433
7434 #. type: textblock
7435 #: ../fish/guestfish-actions.pod:724 ../fish/guestfish-actions.pod:2585
7436 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:3829
7437 msgid ""
7438 "Only numeric uid and gid are supported.  If you want to use names, you will "
7439 "need to locate and parse the password file yourself (Augeas support makes "
7440 "this relatively easy)."
7441 msgstr ""
7442
7443 #. type: =head2
7444 #: ../fish/guestfish-actions.pod:728
7445 msgid "command"
7446 msgstr "command"
7447
7448 #. type: verbatim
7449 #: ../fish/guestfish-actions.pod:730
7450 #, no-wrap
7451 msgid ""
7452 " command 'arguments ...'\n"
7453 "\n"
7454 msgstr ""
7455 " command 'параметри...'\n"
7456 "\n"
7457
7458 #. type: textblock
7459 #: ../fish/guestfish-actions.pod:732 ../src/guestfs-actions.pod:1100
7460 msgid ""
7461 "This call runs a command from the guest filesystem.  The filesystem must be "
7462 "mounted, and must contain a compatible operating system (ie. something "
7463 "Linux, with the same or compatible processor architecture)."
7464 msgstr ""
7465
7466 #. type: textblock
7467 #: ../fish/guestfish-actions.pod:737
7468 msgid ""
7469 "The single parameter is an argv-style list of arguments.  The first element "
7470 "is the name of the program to run.  Subsequent elements are parameters.  The "
7471 "list must be non-empty (ie. must contain a program name).  Note that the "
7472 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
7473 msgstr ""
7474
7475 #. type: textblock
7476 #: ../fish/guestfish-actions.pod:744 ../src/guestfs-actions.pod:1112
7477 msgid "The return value is anything printed to I<stdout> by the command."
7478 msgstr ""
7479
7480 #. type: textblock
7481 #: ../fish/guestfish-actions.pod:747 ../src/guestfs-actions.pod:1115
7482 msgid ""
7483 "If the command returns a non-zero exit status, then this function returns an "
7484 "error message.  The error message string is the content of I<stderr> from "
7485 "the command."
7486 msgstr ""
7487
7488 #. type: textblock
7489 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1119
7490 msgid ""
7491 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
7492 "bin>.  If you require a program from another location, you should provide "
7493 "the full path in the first parameter."
7494 msgstr ""
7495
7496 #. type: textblock
7497 #: ../fish/guestfish-actions.pod:756 ../src/guestfs-actions.pod:1124
7498 msgid ""
7499 "Shared libraries and data files required by the program must be available on "
7500 "filesystems which are mounted in the correct places.  It is the caller's "
7501 "responsibility to ensure all filesystems that are needed are mounted at the "
7502 "right locations."
7503 msgstr ""
7504
7505 #. type: =head2
7506 #: ../fish/guestfish-actions.pod:765
7507 msgid "command-lines"
7508 msgstr ""
7509
7510 #. type: verbatim
7511 #: ../fish/guestfish-actions.pod:767
7512 #, no-wrap
7513 msgid ""
7514 " command-lines 'arguments ...'\n"
7515 "\n"
7516 msgstr ""
7517
7518 #. type: textblock
7519 #: ../fish/guestfish-actions.pod:769
7520 msgid ""
7521 "This is the same as L</command>, but splits the result into a list of lines."
7522 msgstr ""
7523
7524 #. type: textblock
7525 #: ../fish/guestfish-actions.pod:772
7526 msgid "See also: L</sh-lines>"
7527 msgstr "Див. також L</sh-lines>"
7528
7529 #. type: =head2
7530 #: ../fish/guestfish-actions.pod:777
7531 msgid "compress-device-out"
7532 msgstr ""
7533
7534 #. type: verbatim
7535 #: ../fish/guestfish-actions.pod:779
7536 #, no-wrap
7537 msgid ""
7538 " compress-device-out ctype device (zdevice|-) [level:..]\n"
7539 "\n"
7540 msgstr ""
7541
7542 #. type: textblock
7543 #: ../fish/guestfish-actions.pod:781 ../src/guestfs-actions.pod:1174
7544 msgid ""
7545 "This command compresses C<device> and writes it out to the local file "
7546 "C<zdevice>."
7547 msgstr ""
7548
7549 #. type: textblock
7550 #: ../fish/guestfish-actions.pod:784
7551 msgid ""
7552 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
7553 "compress-out>."
7554 msgstr ""
7555
7556 #. type: =head2
7557 #: ../fish/guestfish-actions.pod:791
7558 msgid "compress-out"
7559 msgstr ""
7560
7561 #. type: verbatim
7562 #: ../fish/guestfish-actions.pod:793
7563 #, no-wrap
7564 msgid ""
7565 " compress-out ctype file (zfile|-) [level:..]\n"
7566 "\n"
7567 msgstr ""
7568
7569 #. type: textblock
7570 #: ../fish/guestfish-actions.pod:795 ../src/guestfs-actions.pod:1226
7571 msgid ""
7572 "This command compresses C<file> and writes it out to the local file C<zfile>."
7573 msgstr ""
7574
7575 #. type: textblock
7576 #: ../fish/guestfish-actions.pod:798 ../src/guestfs-actions.pod:1229
7577 msgid ""
7578 "The compression program used is controlled by the C<ctype> parameter.  "
7579 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
7580 "Some compression types may not be supported by particular builds of "
7581 "libguestfs, in which case you will get an error containing the substring "
7582 "\"not supported\"."
7583 msgstr ""
7584
7585 #. type: textblock
7586 #: ../fish/guestfish-actions.pod:804 ../src/guestfs-actions.pod:1235
7587 msgid ""
7588 "The optional C<level> parameter controls compression level.  The meaning and "
7589 "default for this parameter depends on the compression program being used."
7590 msgstr ""
7591
7592 #. type: =head2
7593 #: ../fish/guestfish-actions.pod:812
7594 msgid "config"
7595 msgstr ""
7596
7597 #. type: verbatim
7598 #: ../fish/guestfish-actions.pod:814
7599 #, no-wrap
7600 msgid ""
7601 " config qemuparam qemuvalue\n"
7602 "\n"
7603 msgstr ""
7604
7605 #. type: textblock
7606 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1276
7607 msgid ""
7608 "This can be used to add arbitrary qemu command line parameters of the form "
7609 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
7610 "setting some parameters which would interfere with parameters that we use."
7611 msgstr ""
7612
7613 #. type: textblock
7614 #: ../fish/guestfish-actions.pod:821 ../src/guestfs-actions.pod:1281
7615 msgid "The first character of C<param> string must be a C<-> (dash)."
7616 msgstr ""
7617
7618 #. type: textblock
7619 #: ../fish/guestfish-actions.pod:823 ../src/guestfs-actions.pod:1283
7620 msgid "C<value> can be NULL."
7621 msgstr ""
7622
7623 #. type: =head2
7624 #: ../fish/guestfish-actions.pod:825
7625 msgid "copy-size"
7626 msgstr ""
7627
7628 #. type: verbatim
7629 #: ../fish/guestfish-actions.pod:827
7630 #, no-wrap
7631 msgid ""
7632 " copy-size src dest size\n"
7633 "\n"
7634 msgstr ""
7635
7636 #. type: textblock
7637 #: ../fish/guestfish-actions.pod:829 ../src/guestfs-actions.pod:1297
7638 msgid ""
7639 "This command copies exactly C<size> bytes from one source device or file "
7640 "C<src> to another destination device or file C<dest>."
7641 msgstr ""
7642
7643 #. type: textblock
7644 #: ../fish/guestfish-actions.pod:832 ../src/guestfs-actions.pod:1300
7645 msgid ""
7646 "Note this will fail if the source is too short or if the destination is not "
7647 "large enough."
7648 msgstr ""
7649
7650 #. type: =head2
7651 #: ../fish/guestfish-actions.pod:835
7652 msgid "cp"
7653 msgstr "cp"
7654
7655 #. type: verbatim
7656 #: ../fish/guestfish-actions.pod:837
7657 #, no-wrap
7658 msgid ""
7659 " cp src dest\n"
7660 "\n"
7661 msgstr ""
7662
7663 #. type: textblock
7664 #: ../fish/guestfish-actions.pod:839 ../src/guestfs-actions.pod:1319
7665 msgid ""
7666 "This copies a file from C<src> to C<dest> where C<dest> is either a "
7667 "destination filename or destination directory."
7668 msgstr ""
7669
7670 #. type: =head2
7671 #: ../fish/guestfish-actions.pod:842
7672 msgid "cp-a"
7673 msgstr "cp-a"
7674
7675 #. type: verbatim
7676 #: ../fish/guestfish-actions.pod:844
7677 #, no-wrap
7678 msgid ""
7679 " cp-a src dest\n"
7680 "\n"
7681 msgstr ""
7682
7683 #. type: textblock
7684 #: ../fish/guestfish-actions.pod:846 ../src/guestfs-actions.pod:1333
7685 msgid ""
7686 "This copies a file or directory from C<src> to C<dest> recursively using the "
7687 "C<cp -a> command."
7688 msgstr ""
7689
7690 #. type: =head2
7691 #: ../fish/guestfish-actions.pod:849
7692 msgid "dd"
7693 msgstr "dd"
7694
7695 #. type: verbatim
7696 #: ../fish/guestfish-actions.pod:851
7697 #, no-wrap
7698 msgid ""
7699 " dd src dest\n"
7700 "\n"
7701 msgstr ""
7702
7703 #. type: textblock
7704 #: ../fish/guestfish-actions.pod:853 ../src/guestfs-actions.pod:1347
7705 msgid ""
7706 "This command copies from one source device or file C<src> to another "
7707 "destination device or file C<dest>.  Normally you would use this to copy to "
7708 "or from a device or partition, for example to duplicate a filesystem."
7709 msgstr ""
7710
7711 #. type: textblock
7712 #: ../fish/guestfish-actions.pod:858
7713 msgid ""
7714 "If the destination is a device, it must be as large or larger than the "
7715 "source file or device, otherwise the copy will fail.  This command cannot do "
7716 "partial copies (see L</copy-size>)."
7717 msgstr ""
7718
7719 #. type: =head2
7720 #: ../fish/guestfish-actions.pod:862
7721 msgid "df"
7722 msgstr "df"
7723
7724 #. type: verbatim
7725 #: ../fish/guestfish-actions.pod:864
7726 #, no-wrap
7727 msgid ""
7728 " df\n"
7729 "\n"
7730 msgstr ""
7731 " df\n"
7732 "\n"
7733
7734 #. type: textblock
7735 #: ../fish/guestfish-actions.pod:866 ../src/guestfs-actions.pod:1365
7736 msgid "This command runs the C<df> command to report disk space used."
7737 msgstr ""
7738
7739 #. type: textblock
7740 #: ../fish/guestfish-actions.pod:868 ../fish/guestfish-actions.pod:879
7741 msgid ""
7742 "This command is mostly useful for interactive sessions.  It is I<not> "
7743 "intended that you try to parse the output string.  Use L</statvfs> from "
7744 "programs."
7745 msgstr ""
7746
7747 #. type: =head2
7748 #: ../fish/guestfish-actions.pod:872
7749 msgid "df-h"
7750 msgstr "df-h"
7751
7752 #. type: verbatim
7753 #: ../fish/guestfish-actions.pod:874
7754 #, no-wrap
7755 msgid ""
7756 " df-h\n"
7757 "\n"
7758 msgstr ""
7759 " df-h\n"
7760 "\n"
7761
7762 #. type: textblock
7763 #: ../fish/guestfish-actions.pod:876 ../src/guestfs-actions.pod:1381
7764 msgid ""
7765 "This command runs the C<df -h> command to report disk space used in human-"
7766 "readable format."
7767 msgstr ""
7768
7769 #. type: =head2
7770 #: ../fish/guestfish-actions.pod:883
7771 msgid "dmesg"
7772 msgstr "dmesg"
7773
7774 #. type: verbatim
7775 #: ../fish/guestfish-actions.pod:885
7776 #, no-wrap
7777 msgid ""
7778 " dmesg\n"
7779 "\n"
7780 msgstr ""
7781 " dmesg\n"
7782 "\n"
7783
7784 #. type: textblock
7785 #: ../fish/guestfish-actions.pod:887 ../src/guestfs-actions.pod:1398
7786 msgid ""
7787 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7788 "This is sometimes useful for extended debugging of problems."
7789 msgstr ""
7790
7791 #. type: textblock
7792 #: ../fish/guestfish-actions.pod:891
7793 msgid ""
7794 "Another way to get the same information is to enable verbose messages with "
7795 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7796 "before running the program."
7797 msgstr ""
7798
7799 #. type: =head2
7800 #: ../fish/guestfish-actions.pod:896
7801 msgid "download"
7802 msgstr "download"
7803
7804 #. type: verbatim
7805 #: ../fish/guestfish-actions.pod:898
7806 #, no-wrap
7807 msgid ""
7808 " download remotefilename (filename|-)\n"
7809 "\n"
7810 msgstr ""
7811
7812 #. type: textblock
7813 #: ../fish/guestfish-actions.pod:900 ../fish/guestfish-actions.pod:913
7814 #: ../src/guestfs-actions.pod:1419 ../src/guestfs-actions.pod:1444
7815 msgid ""
7816 "Download file C<remotefilename> and save it as C<filename> on the local "
7817 "machine."
7818 msgstr ""
7819
7820 #. type: textblock
7821 #: ../fish/guestfish-actions.pod:903 ../fish/guestfish-actions.pod:4895
7822 #: ../src/guestfs-actions.pod:1422 ../src/guestfs-actions.pod:7410
7823 msgid "C<filename> can also be a named pipe."
7824 msgstr ""
7825
7826 #. type: textblock
7827 #: ../fish/guestfish-actions.pod:905
7828 msgid "See also L</upload>, L</cat>."
7829 msgstr ""
7830
7831 #. type: =head2
7832 #: ../fish/guestfish-actions.pod:909
7833 msgid "download-offset"
7834 msgstr "download-offset"
7835
7836 #. type: verbatim
7837 #: ../fish/guestfish-actions.pod:911
7838 #, no-wrap
7839 msgid ""
7840 " download-offset remotefilename (filename|-) offset size\n"
7841 "\n"
7842 msgstr ""
7843
7844 #. type: textblock
7845 #: ../fish/guestfish-actions.pod:916 ../src/guestfs-actions.pod:1447
7846 msgid ""
7847 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7848 "region must be within the file or device)."
7849 msgstr ""
7850
7851 #. type: textblock
7852 #: ../fish/guestfish-actions.pod:919
7853 msgid ""
7854 "Note that there is no limit on the amount of data that can be downloaded "
7855 "with this call, unlike with L</pread>, and this call always reads the full "
7856 "amount unless an error occurs."
7857 msgstr ""
7858
7859 #. type: textblock
7860 #: ../fish/guestfish-actions.pod:924
7861 msgid "See also L</download>, L</pread>."
7862 msgstr ""
7863
7864 #. type: =head2
7865 #: ../fish/guestfish-actions.pod:928
7866 msgid "drop-caches"
7867 msgstr ""
7868
7869 #. type: verbatim
7870 #: ../fish/guestfish-actions.pod:930
7871 #, no-wrap
7872 msgid ""
7873 " drop-caches whattodrop\n"
7874 "\n"
7875 msgstr ""
7876
7877 #. type: textblock
7878 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1472
7879 msgid ""
7880 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7881 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7882 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7883 msgstr ""
7884
7885 #. type: textblock
7886 #: ../fish/guestfish-actions.pod:937 ../src/guestfs-actions.pod:1477
7887 msgid "Setting C<whattodrop> to 3 should drop everything."
7888 msgstr ""
7889
7890 #. type: textblock
7891 #: ../fish/guestfish-actions.pod:939 ../src/guestfs-actions.pod:1479
7892 msgid ""
7893 "This automatically calls L<sync(2)> before the operation, so that the "
7894 "maximum guest memory is freed."
7895 msgstr ""
7896
7897 #. type: =head2
7898 #: ../fish/guestfish-actions.pod:942
7899 msgid "du"
7900 msgstr "du"
7901
7902 #. type: verbatim
7903 #: ../fish/guestfish-actions.pod:944
7904 #, no-wrap
7905 msgid ""
7906 " du path\n"
7907 "\n"
7908 msgstr ""
7909 " du шлях\n"
7910 "\n"
7911
7912 #. type: textblock
7913 #: ../fish/guestfish-actions.pod:946 ../src/guestfs-actions.pod:1492
7914 msgid ""
7915 "This command runs the C<du -s> command to estimate file space usage for "
7916 "C<path>."
7917 msgstr ""
7918
7919 #. type: textblock
7920 #: ../fish/guestfish-actions.pod:949 ../src/guestfs-actions.pod:1495
7921 msgid ""
7922 "C<path> can be a file or a directory.  If C<path> is a directory then the "
7923 "estimate includes the contents of the directory and all subdirectories "
7924 "(recursively)."
7925 msgstr ""
7926
7927 #. type: textblock
7928 #: ../fish/guestfish-actions.pod:953 ../src/guestfs-actions.pod:1499
7929 msgid ""
7930 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
7931 msgstr ""
7932
7933 #. type: =head2
7934 #: ../fish/guestfish-actions.pod:956
7935 msgid "e2fsck-f"
7936 msgstr "e2fsck-f"
7937
7938 #. type: verbatim
7939 #: ../fish/guestfish-actions.pod:958
7940 #, no-wrap
7941 msgid ""
7942 " e2fsck-f device\n"
7943 "\n"
7944 msgstr ""
7945
7946 #. type: textblock
7947 #: ../fish/guestfish-actions.pod:960 ../src/guestfs-actions.pod:1517
7948 msgid ""
7949 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
7950 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
7951 "clean (I<-f>)."
7952 msgstr ""
7953
7954 #. type: textblock
7955 #: ../fish/guestfish-actions.pod:964
7956 msgid ""
7957 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
7958 "should use L</fsck>."
7959 msgstr ""
7960
7961 #. type: =head2
7962 #: ../fish/guestfish-actions.pod:967
7963 msgid "echo-daemon"
7964 msgstr ""
7965
7966 #. type: verbatim
7967 #: ../fish/guestfish-actions.pod:969
7968 #, no-wrap
7969 msgid ""
7970 " echo-daemon 'words ...'\n"
7971 "\n"
7972 msgstr ""
7973
7974 #. type: textblock
7975 #: ../fish/guestfish-actions.pod:971 ../src/guestfs-actions.pod:1534
7976 msgid ""
7977 "This command concatenates the list of C<words> passed with single spaces "
7978 "between them and returns the resulting string."
7979 msgstr ""
7980
7981 #. type: textblock
7982 #: ../fish/guestfish-actions.pod:974 ../src/guestfs-actions.pod:1537
7983 msgid "You can use this command to test the connection through to the daemon."
7984 msgstr ""
7985
7986 #. type: textblock
7987 #: ../fish/guestfish-actions.pod:976
7988 msgid "See also L</ping-daemon>."
7989 msgstr "Див. також L</ping-daemon>."
7990
7991 #. type: =head2
7992 #: ../fish/guestfish-actions.pod:978
7993 msgid "egrep"
7994 msgstr "egrep"
7995
7996 #. type: verbatim
7997 #: ../fish/guestfish-actions.pod:980
7998 #, no-wrap
7999 msgid ""
8000 " egrep regex path\n"
8001 "\n"
8002 msgstr ""
8003
8004 #. type: textblock
8005 #: ../fish/guestfish-actions.pod:982 ../src/guestfs-actions.pod:1553
8006 msgid ""
8007 "This calls the external C<egrep> program and returns the matching lines."
8008 msgstr ""
8009
8010 #. type: =head2
8011 #: ../fish/guestfish-actions.pod:988
8012 msgid "egrepi"
8013 msgstr "egrepi"
8014
8015 #. type: verbatim
8016 #: ../fish/guestfish-actions.pod:990
8017 #, no-wrap
8018 msgid ""
8019 " egrepi regex path\n"
8020 "\n"
8021 msgstr ""
8022
8023 #. type: textblock
8024 #: ../fish/guestfish-actions.pod:992 ../src/guestfs-actions.pod:1572
8025 msgid ""
8026 "This calls the external C<egrep -i> program and returns the matching lines."
8027 msgstr ""
8028
8029 #. type: =head2
8030 #: ../fish/guestfish-actions.pod:998
8031 msgid "equal"
8032 msgstr "equal"
8033
8034 #. type: verbatim
8035 #: ../fish/guestfish-actions.pod:1000
8036 #, no-wrap
8037 msgid ""
8038 " equal file1 file2\n"
8039 "\n"
8040 msgstr ""
8041 " equal файл1 файл2\n"
8042 "\n"
8043
8044 #. type: textblock
8045 #: ../fish/guestfish-actions.pod:1002 ../src/guestfs-actions.pod:1591
8046 msgid ""
8047 "This compares the two files C<file1> and C<file2> and returns true if their "
8048 "content is exactly equal, or false otherwise."
8049 msgstr ""
8050
8051 #. type: textblock
8052 #: ../fish/guestfish-actions.pod:1005 ../src/guestfs-actions.pod:1594
8053 msgid "The external L<cmp(1)> program is used for the comparison."
8054 msgstr ""
8055
8056 #. type: =head2
8057 #: ../fish/guestfish-actions.pod:1007
8058 msgid "exists"
8059 msgstr "exists"
8060
8061 #. type: verbatim
8062 #: ../fish/guestfish-actions.pod:1009
8063 #, no-wrap
8064 msgid ""
8065 " exists path\n"
8066 "\n"
8067 msgstr ""
8068 " exists шлях\n"
8069 "\n"
8070
8071 #. type: textblock
8072 #: ../fish/guestfish-actions.pod:1011 ../src/guestfs-actions.pod:1606
8073 msgid ""
8074 "This returns C<true> if and only if there is a file, directory (or anything) "
8075 "with the given C<path> name."
8076 msgstr ""
8077
8078 #. type: textblock
8079 #: ../fish/guestfish-actions.pod:1014
8080 msgid "See also L</is-file>, L</is-dir>, L</stat>."
8081 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
8082
8083 #. type: =head2
8084 #: ../fish/guestfish-actions.pod:1016
8085 msgid "fallocate"
8086 msgstr "fallocate"
8087
8088 #. type: verbatim
8089 #: ../fish/guestfish-actions.pod:1018
8090 #, no-wrap
8091 msgid ""
8092 " fallocate path len\n"
8093 "\n"
8094 msgstr ""
8095 " fallocate шлях довжина\n"
8096 "\n"
8097
8098 #. type: textblock
8099 #: ../fish/guestfish-actions.pod:1020 ../fish/guestfish-actions.pod:1039
8100 #: ../src/guestfs-actions.pod:1629 ../src/guestfs-actions.pod:1648
8101 msgid ""
8102 "This command preallocates a file (containing zero bytes) named C<path> of "
8103 "size C<len> bytes.  If the file exists already, it is overwritten."
8104 msgstr ""
8105
8106 #. type: textblock
8107 #: ../fish/guestfish-actions.pod:1024 ../src/guestfs-actions.pod:1633
8108 msgid ""
8109 "Do not confuse this with the guestfish-specific C<alloc> command which "
8110 "allocates a file in the host and attaches it as a device."
8111 msgstr ""
8112
8113 #. type: textblock
8114 #: ../fish/guestfish-actions.pod:1028
8115 msgid ""
8116 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
8117 "instead."
8118 msgstr ""
8119
8120 #. type: =head2
8121 #: ../fish/guestfish-actions.pod:1035
8122 msgid "fallocate64"
8123 msgstr "fallocate64"
8124
8125 #. type: verbatim
8126 #: ../fish/guestfish-actions.pod:1037
8127 #, no-wrap
8128 msgid ""
8129 " fallocate64 path len\n"
8130 "\n"
8131 msgstr ""
8132 " fallocate64 шлях довжина\n"
8133 "\n"
8134
8135 #. type: textblock
8136 #: ../fish/guestfish-actions.pod:1043
8137 msgid ""
8138 "Note that this call allocates disk blocks for the file.  To create a sparse "
8139 "file use L</truncate-size> instead."
8140 msgstr ""
8141
8142 #. type: textblock
8143 #: ../fish/guestfish-actions.pod:1046
8144 msgid ""
8145 "The deprecated call L</fallocate> does the same, but owing to an oversight "
8146 "it only allowed 30 bit lengths to be specified, effectively limiting the "
8147 "maximum size of files created through that call to 1GB."
8148 msgstr ""
8149
8150 #. type: textblock
8151 #: ../fish/guestfish-actions.pod:1051 ../src/guestfs-actions.pod:1660
8152 msgid ""
8153 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
8154 "commands which create a file in the host and attach it as a device."
8155 msgstr ""
8156
8157 #. type: =head2
8158 #: ../fish/guestfish-actions.pod:1055
8159 msgid "fgrep"
8160 msgstr "fgrep"
8161
8162 #. type: verbatim
8163 #: ../fish/guestfish-actions.pod:1057
8164 #, no-wrap
8165 msgid ""
8166 " fgrep pattern path\n"
8167 "\n"
8168 msgstr ""
8169 " fgrep шаблон шлях\n"
8170 "\n"
8171
8172 #. type: textblock
8173 #: ../fish/guestfish-actions.pod:1059 ../src/guestfs-actions.pod:1675
8174 msgid ""
8175 "This calls the external C<fgrep> program and returns the matching lines."
8176 msgstr ""
8177
8178 #. type: =head2
8179 #: ../fish/guestfish-actions.pod:1065
8180 msgid "fgrepi"
8181 msgstr "fgrepi"
8182
8183 #. type: verbatim
8184 #: ../fish/guestfish-actions.pod:1067
8185 #, no-wrap
8186 msgid ""
8187 " fgrepi pattern path\n"
8188 "\n"
8189 msgstr ""
8190 " fgrepi шаблон шлях\n"
8191 "\n"
8192
8193 #. type: textblock
8194 #: ../fish/guestfish-actions.pod:1069 ../src/guestfs-actions.pod:1694
8195 msgid ""
8196 "This calls the external C<fgrep -i> program and returns the matching lines."
8197 msgstr ""
8198
8199 #. type: =head2
8200 #: ../fish/guestfish-actions.pod:1075
8201 msgid "file"
8202 msgstr "file"
8203
8204 #. type: verbatim
8205 #: ../fish/guestfish-actions.pod:1077
8206 #, no-wrap
8207 msgid ""
8208 " file path\n"
8209 "\n"
8210 msgstr ""
8211 " file шлях\n"
8212 "\n"
8213
8214 #. type: textblock
8215 #: ../fish/guestfish-actions.pod:1079 ../src/guestfs-actions.pod:1712
8216 msgid ""
8217 "This call uses the standard L<file(1)> command to determine the type or "
8218 "contents of the file."
8219 msgstr ""
8220
8221 #. type: textblock
8222 #: ../fish/guestfish-actions.pod:1082 ../src/guestfs-actions.pod:1715
8223 msgid ""
8224 "This call will also transparently look inside various types of compressed "
8225 "file."
8226 msgstr ""
8227
8228 #. type: textblock
8229 #: ../fish/guestfish-actions.pod:1085 ../src/guestfs-actions.pod:1718
8230 msgid ""
8231 "The exact command which runs is C<file -zb path>.  Note in particular that "
8232 "the filename is not prepended to the output (the I<-b> option)."
8233 msgstr ""
8234
8235 #. type: textblock
8236 #: ../fish/guestfish-actions.pod:1089 ../src/guestfs-actions.pod:1722
8237 msgid ""
8238 "The output depends on the output of the underlying L<file(1)> command and it "
8239 "can change in future in ways beyond our control.  In other words, the output "
8240 "is not guaranteed by the ABI."
8241 msgstr ""
8242
8243 #. type: textblock
8244 #: ../fish/guestfish-actions.pod:1093
8245 msgid ""
8246 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
8247 "(etc), L</is-zero>."
8248 msgstr ""
8249
8250 #. type: =head2
8251 #: ../fish/guestfish-actions.pod:1096
8252 msgid "file-architecture"
8253 msgstr "file-architecture"
8254
8255 #. type: verbatim
8256 #: ../fish/guestfish-actions.pod:1098
8257 #, no-wrap
8258 msgid ""
8259 " file-architecture filename\n"
8260 "\n"
8261 msgstr ""
8262 " file-architecture назва_файла\n"
8263 "\n"
8264
8265 #. type: textblock
8266 #: ../fish/guestfish-actions.pod:1100 ../src/guestfs-actions.pod:1740
8267 msgid ""
8268 "This detects the architecture of the binary C<filename>, and returns it if "
8269 "known."
8270 msgstr ""
8271
8272 #. type: textblock
8273 #: ../fish/guestfish-actions.pod:1103 ../src/guestfs-actions.pod:1743
8274 msgid "Currently defined architectures are:"
8275 msgstr ""
8276
8277 #. type: =item
8278 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1747
8279 msgid "\"i386\""
8280 msgstr "\"i386\""
8281
8282 #. type: textblock
8283 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1749
8284 msgid ""
8285 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
8286 "irrespective of the precise processor requirements of the binary."
8287 msgstr ""
8288
8289 #. type: =item
8290 #: ../fish/guestfish-actions.pod:1112 ../src/guestfs-actions.pod:1752
8291 msgid "\"x86_64\""
8292 msgstr "\"x86_64\""
8293
8294 #. type: textblock
8295 #: ../fish/guestfish-actions.pod:1114 ../src/guestfs-actions.pod:1754
8296 msgid "64 bit x86-64."
8297 msgstr ""
8298
8299 #. type: =item
8300 #: ../fish/guestfish-actions.pod:1116 ../src/guestfs-actions.pod:1756
8301 msgid "\"sparc\""
8302 msgstr ""
8303
8304 #. type: textblock
8305 #: ../fish/guestfish-actions.pod:1118 ../src/guestfs-actions.pod:1758
8306 msgid "32 bit SPARC."
8307 msgstr ""
8308
8309 #. type: =item
8310 #: ../fish/guestfish-actions.pod:1120 ../src/guestfs-actions.pod:1760
8311 msgid "\"sparc64\""
8312 msgstr ""
8313
8314 #. type: textblock
8315 #: ../fish/guestfish-actions.pod:1122 ../src/guestfs-actions.pod:1762
8316 msgid "64 bit SPARC V9 and above."
8317 msgstr ""
8318
8319 #. type: =item
8320 #: ../fish/guestfish-actions.pod:1124 ../src/guestfs-actions.pod:1764
8321 msgid "\"ia64\""
8322 msgstr "\"ia64\""
8323
8324 #. type: textblock
8325 #: ../fish/guestfish-actions.pod:1126 ../src/guestfs-actions.pod:1766
8326 msgid "Intel Itanium."
8327 msgstr "Intel Itanium."
8328
8329 #. type: =item
8330 #: ../fish/guestfish-actions.pod:1128 ../src/guestfs-actions.pod:1768
8331 msgid "\"ppc\""
8332 msgstr ""
8333
8334 #. type: textblock
8335 #: ../fish/guestfish-actions.pod:1130 ../src/guestfs-actions.pod:1770
8336 msgid "32 bit Power PC."
8337 msgstr ""
8338
8339 #. type: =item
8340 #: ../fish/guestfish-actions.pod:1132 ../src/guestfs-actions.pod:1772
8341 msgid "\"ppc64\""
8342 msgstr ""
8343
8344 #. type: textblock
8345 #: ../fish/guestfish-actions.pod:1134 ../src/guestfs-actions.pod:1774
8346 msgid "64 bit Power PC."
8347 msgstr ""
8348
8349 #. type: textblock
8350 #: ../fish/guestfish-actions.pod:1138 ../src/guestfs-actions.pod:1778
8351 msgid "Libguestfs may return other architecture strings in future."
8352 msgstr ""
8353
8354 #. type: textblock
8355 #: ../fish/guestfish-actions.pod:1140 ../src/guestfs-actions.pod:1780
8356 msgid "The function works on at least the following types of files:"
8357 msgstr ""
8358
8359 #. type: textblock
8360 #: ../fish/guestfish-actions.pod:1146 ../src/guestfs-actions.pod:1786
8361 msgid "many types of Un*x and Linux binary"
8362 msgstr ""
8363
8364 #. type: textblock
8365 #: ../fish/guestfish-actions.pod:1150 ../src/guestfs-actions.pod:1790
8366 msgid "many types of Un*x and Linux shared library"
8367 msgstr ""
8368
8369 #. type: textblock
8370 #: ../fish/guestfish-actions.pod:1154 ../src/guestfs-actions.pod:1794
8371 msgid "Windows Win32 and Win64 binaries"
8372 msgstr ""
8373
8374 #. type: textblock
8375 #: ../fish/guestfish-actions.pod:1158 ../src/guestfs-actions.pod:1798
8376 msgid "Windows Win32 and Win64 DLLs"
8377 msgstr ""
8378
8379 #. type: textblock
8380 #: ../fish/guestfish-actions.pod:1160 ../src/guestfs-actions.pod:1800
8381 msgid "Win32 binaries and DLLs return C<i386>."
8382 msgstr ""
8383
8384 #. type: textblock
8385 #: ../fish/guestfish-actions.pod:1162 ../src/guestfs-actions.pod:1802
8386 msgid "Win64 binaries and DLLs return C<x86_64>."
8387 msgstr ""
8388
8389 #. type: textblock
8390 #: ../fish/guestfish-actions.pod:1166 ../src/guestfs-actions.pod:1806
8391 msgid "Linux kernel modules"
8392 msgstr ""
8393
8394 #. type: textblock
8395 #: ../fish/guestfish-actions.pod:1170 ../src/guestfs-actions.pod:1810
8396 msgid "Linux new-style initrd images"
8397 msgstr ""
8398
8399 #. type: textblock
8400 #: ../fish/guestfish-actions.pod:1174 ../src/guestfs-actions.pod:1814
8401 msgid "some non-x86 Linux vmlinuz kernels"
8402 msgstr ""
8403
8404 #. type: textblock
8405 #: ../fish/guestfish-actions.pod:1178 ../src/guestfs-actions.pod:1818
8406 msgid "What it can't do currently:"
8407 msgstr ""
8408
8409 #. type: textblock
8410 #: ../fish/guestfish-actions.pod:1184 ../src/guestfs-actions.pod:1824
8411 msgid "static libraries (libfoo.a)"
8412 msgstr ""
8413
8414 #. type: textblock
8415 #: ../fish/guestfish-actions.pod:1188 ../src/guestfs-actions.pod:1828
8416 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
8417 msgstr ""
8418
8419 #. type: textblock
8420 #: ../fish/guestfish-actions.pod:1192 ../src/guestfs-actions.pod:1832
8421 msgid "x86 Linux vmlinuz kernels"
8422 msgstr ""
8423
8424 #. type: textblock
8425 #: ../fish/guestfish-actions.pod:1194 ../src/guestfs-actions.pod:1834
8426 msgid ""
8427 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
8428 "compressed code, and are horribly hard to unpack.  If you want to find the "
8429 "architecture of a kernel, use the architecture of the associated initrd or "
8430 "kernel module(s) instead."
8431 msgstr ""
8432
8433 #. type: =head2
8434 #: ../fish/guestfish-actions.pod:1201
8435 msgid "filesize"
8436 msgstr "filesize"
8437
8438 #. type: verbatim
8439 #: ../fish/guestfish-actions.pod:1203
8440 #, no-wrap
8441 msgid ""
8442 " filesize file\n"
8443 "\n"
8444 msgstr ""
8445 " filesize файл\n"
8446 "\n"
8447
8448 #. type: textblock
8449 #: ../fish/guestfish-actions.pod:1205 ../src/guestfs-actions.pod:1852
8450 msgid "This command returns the size of C<file> in bytes."
8451 msgstr ""
8452
8453 #. type: textblock
8454 #: ../fish/guestfish-actions.pod:1207
8455 msgid ""
8456 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
8457 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
8458 msgstr ""
8459
8460 #. type: =head2
8461 #: ../fish/guestfish-actions.pod:1211
8462 msgid "fill"
8463 msgstr "fill"
8464
8465 #. type: verbatim
8466 #: ../fish/guestfish-actions.pod:1213
8467 #, no-wrap
8468 msgid ""
8469 " fill c len path\n"
8470 "\n"
8471 msgstr ""
8472
8473 #. type: textblock
8474 #: ../fish/guestfish-actions.pod:1215 ../src/guestfs-actions.pod:1870
8475 msgid ""
8476 "This command creates a new file called C<path>.  The initial content of the "
8477 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
8478 "[0..255]>."
8479 msgstr ""
8480
8481 #. type: textblock
8482 #: ../fish/guestfish-actions.pod:1219
8483 msgid ""
8484 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
8485 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
8486 "L</fill-pattern>."
8487 msgstr ""
8488
8489 #. type: =head2
8490 #: ../fish/guestfish-actions.pod:1224
8491 msgid "fill-pattern"
8492 msgstr "fill-pattern"
8493
8494 #. type: verbatim
8495 #: ../fish/guestfish-actions.pod:1226
8496 #, no-wrap
8497 msgid ""
8498 " fill-pattern pattern len path\n"
8499 "\n"
8500 msgstr ""
8501
8502 #. type: textblock
8503 #: ../fish/guestfish-actions.pod:1228
8504 msgid ""
8505 "This function is like L</fill> except that it creates a new file of length "
8506 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
8507 "is truncated if necessary to ensure the length of the file is exactly C<len> "
8508 "bytes."
8509 msgstr ""
8510
8511 #. type: =head2
8512 #: ../fish/guestfish-actions.pod:1233
8513 msgid "find"
8514 msgstr "find"
8515
8516 #. type: verbatim
8517 #: ../fish/guestfish-actions.pod:1235
8518 #, no-wrap
8519 msgid ""
8520 " find directory\n"
8521 "\n"
8522 msgstr ""
8523 " find каталог\n"
8524 "\n"
8525
8526 #. type: textblock
8527 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1916
8528 msgid ""
8529 "This command lists out all files and directories, recursively, starting at "
8530 "C<directory>.  It is essentially equivalent to running the shell command "
8531 "C<find directory -print> but some post-processing happens on the output, "
8532 "described below."
8533 msgstr ""
8534
8535 #. type: textblock
8536 #: ../fish/guestfish-actions.pod:1242 ../src/guestfs-actions.pod:1921
8537 msgid ""
8538 "This returns a list of strings I<without any prefix>.  Thus if the directory "
8539 "structure was:"
8540 msgstr ""
8541
8542 #. type: verbatim
8543 #: ../fish/guestfish-actions.pod:1245 ../src/guestfs-actions.pod:1924
8544 #, no-wrap
8545 msgid ""
8546 " /tmp/a\n"
8547 " /tmp/b\n"
8548 " /tmp/c/d\n"
8549 "\n"
8550 msgstr ""
8551
8552 #. type: textblock
8553 #: ../fish/guestfish-actions.pod:1249
8554 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
8555 msgstr ""
8556
8557 #. type: verbatim
8558 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1931
8559 #, no-wrap
8560 msgid ""
8561 " a\n"
8562 " b\n"
8563 " c\n"
8564 " c/d\n"
8565 "\n"
8566 msgstr ""
8567
8568 #. type: textblock
8569 #: ../fish/guestfish-actions.pod:1257 ../src/guestfs-actions.pod:1936
8570 msgid "If C<directory> is not a directory, then this command returns an error."
8571 msgstr ""
8572
8573 #. type: textblock
8574 #: ../fish/guestfish-actions.pod:1260 ../src/guestfs-actions.pod:1939
8575 msgid "The returned list is sorted."
8576 msgstr ""
8577
8578 #. type: textblock
8579 #: ../fish/guestfish-actions.pod:1262
8580 msgid "See also L</find0>."
8581 msgstr "Див. також L</find0>."
8582
8583 #. type: =head2
8584 #: ../fish/guestfish-actions.pod:1267
8585 msgid "find0"
8586 msgstr "find0"
8587
8588 #. type: verbatim
8589 #: ../fish/guestfish-actions.pod:1269
8590 #, no-wrap
8591 msgid ""
8592 " find0 directory (files|-)\n"
8593 "\n"
8594 msgstr ""
8595 " find0 каталог (файли|-)\n"
8596 "\n"
8597
8598 #. type: textblock
8599 #: ../fish/guestfish-actions.pod:1271 ../src/guestfs-actions.pod:1959
8600 msgid ""
8601 "This command lists out all files and directories, recursively, starting at "
8602 "C<directory>, placing the resulting list in the external file called "
8603 "C<files>."
8604 msgstr ""
8605
8606 #. type: textblock
8607 #: ../fish/guestfish-actions.pod:1275
8608 msgid ""
8609 "This command works the same way as L</find> with the following exceptions:"
8610 msgstr ""
8611
8612 #. type: textblock
8613 #: ../fish/guestfish-actions.pod:1282 ../src/guestfs-actions.pod:1970
8614 msgid "The resulting list is written to an external file."
8615 msgstr ""
8616
8617 #. type: textblock
8618 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1974
8619 msgid ""
8620 "Items (filenames) in the result are separated by C<\\0> characters.  See "
8621 "L<find(1)> option I<-print0>."
8622 msgstr ""
8623
8624 #. type: textblock
8625 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1979
8626 msgid "This command is not limited in the number of names that it can return."
8627 msgstr ""
8628
8629 #. type: textblock
8630 #: ../fish/guestfish-actions.pod:1296 ../src/guestfs-actions.pod:1984
8631 msgid "The result list is not sorted."
8632 msgstr ""
8633
8634 #. type: =head2
8635 #: ../fish/guestfish-actions.pod:1302
8636 msgid "findfs-label"
8637 msgstr "findfs-label"
8638
8639 #. type: verbatim
8640 #: ../fish/guestfish-actions.pod:1304
8641 #, no-wrap
8642 msgid ""
8643 " findfs-label label\n"
8644 "\n"
8645 msgstr ""
8646 " findfs-label мітка\n"
8647 "\n"
8648
8649 #. type: textblock
8650 #: ../fish/guestfish-actions.pod:1306 ../src/guestfs-actions.pod:1998
8651 msgid ""
8652 "This command searches the filesystems and returns the one which has the "
8653 "given label.  An error is returned if no such filesystem can be found."
8654 msgstr ""
8655
8656 #. type: textblock
8657 #: ../fish/guestfish-actions.pod:1310
8658 msgid "To find the label of a filesystem, use L</vfs-label>."
8659 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
8660
8661 #. type: =head2
8662 #: ../fish/guestfish-actions.pod:1312
8663 msgid "findfs-uuid"
8664 msgstr "findfs-uuid"
8665
8666 #. type: verbatim
8667 #: ../fish/guestfish-actions.pod:1314
8668 #, no-wrap
8669 msgid ""
8670 " findfs-uuid uuid\n"
8671 "\n"
8672 msgstr ""
8673 " findfs-uuid uuid\n"
8674 "\n"
8675
8676 #. type: textblock
8677 #: ../fish/guestfish-actions.pod:1316 ../src/guestfs-actions.pod:2015
8678 msgid ""
8679 "This command searches the filesystems and returns the one which has the "
8680 "given UUID.  An error is returned if no such filesystem can be found."
8681 msgstr ""
8682
8683 #. type: textblock
8684 #: ../fish/guestfish-actions.pod:1320
8685 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
8686 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
8687
8688 #. type: =head2
8689 #: ../fish/guestfish-actions.pod:1322
8690 msgid "fsck"
8691 msgstr "fsck"
8692
8693 #. type: verbatim
8694 #: ../fish/guestfish-actions.pod:1324
8695 #, no-wrap
8696 msgid ""
8697 " fsck fstype device\n"
8698 "\n"
8699 msgstr ""
8700 " fsck тип_файлової_системи пристрій\n"
8701 "\n"
8702
8703 #. type: textblock
8704 #: ../fish/guestfish-actions.pod:1326 ../src/guestfs-actions.pod:2033
8705 msgid ""
8706 "This runs the filesystem checker (fsck) on C<device> which should have "
8707 "filesystem type C<fstype>."
8708 msgstr ""
8709
8710 #. type: textblock
8711 #: ../fish/guestfish-actions.pod:1329 ../src/guestfs-actions.pod:2036
8712 msgid ""
8713 "The returned integer is the status.  See L<fsck(8)> for the list of status "
8714 "codes from C<fsck>."
8715 msgstr ""
8716
8717 #. type: textblock
8718 #: ../fish/guestfish-actions.pod:1338 ../src/guestfs-actions.pod:2045
8719 msgid "Multiple status codes can be summed together."
8720 msgstr ""
8721
8722 #. type: textblock
8723 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2049
8724 msgid ""
8725 "A non-zero return code can mean \"success\", for example if errors have been "
8726 "corrected on the filesystem."
8727 msgstr ""
8728
8729 #. type: textblock
8730 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2054
8731 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8732 msgstr ""
8733
8734 #. type: textblock
8735 #: ../fish/guestfish-actions.pod:1352 ../src/guestfs-actions.pod:2059
8736 msgid ""
8737 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8738 msgstr ""
8739
8740 #. type: =head2
8741 #: ../fish/guestfish-actions.pod:1354
8742 msgid "get-append"
8743 msgstr "get-append"
8744
8745 #. type: verbatim
8746 #: ../fish/guestfish-actions.pod:1356
8747 #, no-wrap
8748 msgid ""
8749 " get-append\n"
8750 "\n"
8751 msgstr ""
8752 " get-append\n"
8753 "\n"
8754
8755 #. type: textblock
8756 #: ../fish/guestfish-actions.pod:1358 ../src/guestfs-actions.pod:2070
8757 msgid ""
8758 "Return the additional kernel options which are added to the guest kernel "
8759 "command line."
8760 msgstr ""
8761
8762 #. type: textblock
8763 #: ../fish/guestfish-actions.pod:1361 ../src/guestfs-actions.pod:2073
8764 msgid "If C<NULL> then no options are added."
8765 msgstr ""
8766
8767 #. type: =head2
8768 #: ../fish/guestfish-actions.pod:1363
8769 msgid "get-attach-method"
8770 msgstr "get-attach-method"
8771
8772 #. type: verbatim
8773 #: ../fish/guestfish-actions.pod:1365
8774 #, no-wrap
8775 msgid ""
8776 " get-attach-method\n"
8777 "\n"
8778 msgstr ""
8779 " get-attach-method\n"
8780 "\n"
8781
8782 #. type: textblock
8783 #: ../fish/guestfish-actions.pod:1367
8784 msgid "Return the current attach method.  See L</set-attach-method>."
8785 msgstr ""
8786
8787 #. type: =head2
8788 #: ../fish/guestfish-actions.pod:1369
8789 msgid "get-autosync"
8790 msgstr "get-autosync"
8791
8792 #. type: verbatim
8793 #: ../fish/guestfish-actions.pod:1371
8794 #, no-wrap
8795 msgid ""
8796 " get-autosync\n"
8797 "\n"
8798 msgstr ""
8799 " get-autosync\n"
8800 "\n"
8801
8802 #. type: textblock
8803 #: ../fish/guestfish-actions.pod:1373 ../src/guestfs-actions.pod:2098
8804 msgid "Get the autosync flag."
8805 msgstr ""
8806
8807 #. type: =head2
8808 #: ../fish/guestfish-actions.pod:1375
8809 msgid "get-direct"
8810 msgstr "get-direct"
8811
8812 #. type: verbatim
8813 #: ../fish/guestfish-actions.pod:1377
8814 #, no-wrap
8815 msgid ""
8816 " get-direct\n"
8817 "\n"
8818 msgstr ""
8819 " get-direct\n"
8820 "\n"
8821
8822 #. type: textblock
8823 #: ../fish/guestfish-actions.pod:1379 ../src/guestfs-actions.pod:2109
8824 msgid "Return the direct appliance mode flag."
8825 msgstr ""
8826
8827 #. type: =head2
8828 #: ../fish/guestfish-actions.pod:1381
8829 msgid "get-e2label"
8830 msgstr "get-e2label"
8831
8832 #. type: verbatim
8833 #: ../fish/guestfish-actions.pod:1383
8834 #, no-wrap
8835 msgid ""
8836 " get-e2label device\n"
8837 "\n"
8838 msgstr ""
8839 " get-e2label пристрій\n"
8840 "\n"
8841
8842 #. type: textblock
8843 #: ../fish/guestfish-actions.pod:1385 ../src/guestfs-actions.pod:2128
8844 msgid ""
8845 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8846 msgstr ""
8847
8848 #. type: textblock
8849 #: ../fish/guestfish-actions.pod:1388
8850 msgid ""
8851 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8852 "instead."
8853 msgstr ""
8854
8855 #. type: =head2
8856 #: ../fish/guestfish-actions.pod:1395
8857 msgid "get-e2uuid"
8858 msgstr "get-e2uuid"
8859
8860 #. type: verbatim
8861 #: ../fish/guestfish-actions.pod:1397
8862 #, no-wrap
8863 msgid ""
8864 " get-e2uuid device\n"
8865 "\n"
8866 msgstr ""
8867 " get-e2uuid пристрій\n"
8868 "\n"
8869
8870 #. type: textblock
8871 #: ../fish/guestfish-actions.pod:1399 ../src/guestfs-actions.pod:2149
8872 msgid ""
8873 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8874 msgstr ""
8875
8876 #. type: textblock
8877 #: ../fish/guestfish-actions.pod:1402
8878 msgid ""
8879 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8880 "instead."
8881 msgstr ""
8882
8883 #. type: =head2
8884 #: ../fish/guestfish-actions.pod:1409
8885 msgid "get-memsize"
8886 msgstr "get-memsize"
8887
8888 #. type: verbatim
8889 #: ../fish/guestfish-actions.pod:1411
8890 #, no-wrap
8891 msgid ""
8892 " get-memsize\n"
8893 "\n"
8894 msgstr ""
8895 " get-memsize\n"
8896 "\n"
8897
8898 #. type: textblock
8899 #: ../fish/guestfish-actions.pod:1413 ../src/guestfs-actions.pod:2162
8900 msgid ""
8901 "This gets the memory size in megabytes allocated to the qemu subprocess."
8902 msgstr ""
8903
8904 #. type: textblock
8905 #: ../fish/guestfish-actions.pod:1416
8906 msgid ""
8907 "If L</set-memsize> was not called on this handle, and if "
8908 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8909 "value for memsize."
8910 msgstr ""
8911
8912 #. type: textblock
8913 #: ../fish/guestfish-actions.pod:1420 ../fish/guestfish-actions.pod:1477
8914 #: ../fish/guestfish-actions.pod:4243 ../fish/guestfish-actions.pod:4345
8915 #: ../src/guestfs-actions.pod:2169 ../src/guestfs-actions.pod:2261
8916 #: ../src/guestfs-actions.pod:6455 ../src/guestfs-actions.pod:6581
8917 msgid ""
8918 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8919 msgstr ""
8920
8921 #. type: =head2
8922 #: ../fish/guestfish-actions.pod:1423
8923 msgid "get-network"
8924 msgstr "get-network"
8925
8926 #. type: verbatim
8927 #: ../fish/guestfish-actions.pod:1425
8928 #, no-wrap
8929 msgid ""
8930 " get-network\n"
8931 "\n"
8932 msgstr ""
8933 " get-network\n"
8934 "\n"
8935
8936 #. type: textblock
8937 #: ../fish/guestfish-actions.pod:1427 ../src/guestfs-actions.pod:2181
8938 msgid "This returns the enable network flag."
8939 msgstr ""
8940
8941 #. type: =head2
8942 #: ../fish/guestfish-actions.pod:1429
8943 msgid "get-path"
8944 msgstr "get-path"
8945
8946 #. type: verbatim
8947 #: ../fish/guestfish-actions.pod:1431
8948 #, no-wrap
8949 msgid ""
8950 " get-path\n"
8951 "\n"
8952 msgstr ""
8953 " get-path\n"
8954 "\n"
8955
8956 #. type: textblock
8957 #: ../fish/guestfish-actions.pod:1433 ../src/guestfs-actions.pod:2192
8958 msgid "Return the current search path."
8959 msgstr ""
8960
8961 #. type: textblock
8962 #: ../fish/guestfish-actions.pod:1435 ../src/guestfs-actions.pod:2194
8963 msgid ""
8964 "This is always non-NULL.  If it wasn't set already, then this will return "
8965 "the default path."
8966 msgstr ""
8967
8968 #. type: =head2
8969 #: ../fish/guestfish-actions.pod:1438
8970 msgid "get-pgroup"
8971 msgstr ""
8972
8973 #. type: verbatim
8974 #: ../fish/guestfish-actions.pod:1440
8975 #, no-wrap
8976 msgid ""
8977 " get-pgroup\n"
8978 "\n"
8979 msgstr ""
8980
8981 #. type: textblock
8982 #: ../fish/guestfish-actions.pod:1442 ../src/guestfs-actions.pod:2207
8983 msgid "This returns the process group flag."
8984 msgstr ""
8985
8986 #. type: =head2
8987 #: ../fish/guestfish-actions.pod:1444
8988 msgid "get-pid"
8989 msgstr "get-pid"
8990
8991 #. type: =head2
8992 #: ../fish/guestfish-actions.pod:1446
8993 msgid "pid"
8994 msgstr "PID"
8995
8996 #. type: verbatim
8997 #: ../fish/guestfish-actions.pod:1448
8998 #, no-wrap
8999 msgid ""
9000 " get-pid\n"
9001 "\n"
9002 msgstr ""
9003 " get-pid\n"
9004 "\n"
9005
9006 #. type: textblock
9007 #: ../fish/guestfish-actions.pod:1450 ../src/guestfs-actions.pod:2218
9008 msgid ""
9009 "Return the process ID of the qemu subprocess.  If there is no qemu "
9010 "subprocess, then this will return an error."
9011 msgstr ""
9012
9013 #. type: textblock
9014 #: ../fish/guestfish-actions.pod:1453 ../src/guestfs-actions.pod:2221
9015 msgid "This is an internal call used for debugging and testing."
9016 msgstr ""
9017
9018 #. type: =head2
9019 #: ../fish/guestfish-actions.pod:1455
9020 msgid "get-qemu"
9021 msgstr "get-qemu"
9022
9023 #. type: verbatim
9024 #: ../fish/guestfish-actions.pod:1457
9025 #, no-wrap
9026 msgid ""
9027 " get-qemu\n"
9028 "\n"
9029 msgstr ""
9030 " get-qemu\n"
9031 "\n"
9032
9033 #. type: textblock
9034 #: ../fish/guestfish-actions.pod:1459 ../src/guestfs-actions.pod:2232
9035 msgid "Return the current qemu binary."
9036 msgstr ""
9037
9038 #. type: textblock
9039 #: ../fish/guestfish-actions.pod:1461 ../src/guestfs-actions.pod:2234
9040 msgid ""
9041 "This is always non-NULL.  If it wasn't set already, then this will return "
9042 "the default qemu binary name."
9043 msgstr ""
9044
9045 #. type: =head2
9046 #: ../fish/guestfish-actions.pod:1464
9047 msgid "get-recovery-proc"
9048 msgstr "get-recovery-proc"
9049
9050 #. type: verbatim
9051 #: ../fish/guestfish-actions.pod:1466
9052 #, no-wrap
9053 msgid ""
9054 " get-recovery-proc\n"
9055 "\n"
9056 msgstr ""
9057 " get-recovery-proc\n"
9058 "\n"
9059
9060 #. type: textblock
9061 #: ../fish/guestfish-actions.pod:1468 ../src/guestfs-actions.pod:2247
9062 msgid "Return the recovery process enabled flag."
9063 msgstr ""
9064
9065 #. type: =head2
9066 #: ../fish/guestfish-actions.pod:1470
9067 msgid "get-selinux"
9068 msgstr "get-selinux"
9069
9070 #. type: verbatim
9071 #: ../fish/guestfish-actions.pod:1472
9072 #, no-wrap
9073 msgid ""
9074 " get-selinux\n"
9075 "\n"
9076 msgstr ""
9077 " get-selinux\n"
9078 "\n"
9079
9080 #. type: textblock
9081 #: ../fish/guestfish-actions.pod:1474
9082 msgid ""
9083 "This returns the current setting of the selinux flag which is passed to the "
9084 "appliance at boot time.  See L</set-selinux>."
9085 msgstr ""
9086
9087 #. type: =head2
9088 #: ../fish/guestfish-actions.pod:1480
9089 msgid "get-smp"
9090 msgstr ""
9091
9092 #. type: verbatim
9093 #: ../fish/guestfish-actions.pod:1482
9094 #, no-wrap
9095 msgid ""
9096 " get-smp\n"
9097 "\n"
9098 msgstr ""
9099
9100 #. type: textblock
9101 #: ../fish/guestfish-actions.pod:1484 ../src/guestfs-actions.pod:2273
9102 msgid "This returns the number of virtual CPUs assigned to the appliance."
9103 msgstr ""
9104
9105 #. type: =head2
9106 #: ../fish/guestfish-actions.pod:1486
9107 msgid "get-state"
9108 msgstr "get-state"
9109
9110 #. type: verbatim
9111 #: ../fish/guestfish-actions.pod:1488
9112 #, no-wrap
9113 msgid ""
9114 " get-state\n"
9115 "\n"
9116 msgstr ""
9117 " get-state\n"
9118 "\n"
9119
9120 #. type: textblock
9121 #: ../fish/guestfish-actions.pod:1490 ../src/guestfs-actions.pod:2284
9122 msgid ""
9123 "This returns the current state as an opaque integer.  This is only useful "
9124 "for printing debug and internal error messages."
9125 msgstr ""
9126
9127 #. type: textblock
9128 #: ../fish/guestfish-actions.pod:1493 ../fish/guestfish-actions.pod:2452
9129 #: ../fish/guestfish-actions.pod:2470 ../fish/guestfish-actions.pod:2508
9130 #: ../fish/guestfish-actions.pod:2524 ../src/guestfs-actions.pod:2287
9131 #: ../src/guestfs-actions.pod:3606 ../src/guestfs-actions.pod:3635
9132 #: ../src/guestfs-actions.pod:3696 ../src/guestfs-actions.pod:3723
9133 msgid "For more information on states, see L<guestfs(3)>."
9134 msgstr ""
9135
9136 #. type: =head2
9137 #: ../fish/guestfish-actions.pod:1495
9138 msgid "get-trace"
9139 msgstr "get-trace"
9140
9141 #. type: verbatim
9142 #: ../fish/guestfish-actions.pod:1497
9143 #, no-wrap
9144 msgid ""
9145 " get-trace\n"
9146 "\n"
9147 msgstr ""
9148 " get-trace\n"
9149 "\n"
9150
9151 #. type: textblock
9152 #: ../fish/guestfish-actions.pod:1499 ../src/guestfs-actions.pod:2298
9153 msgid "Return the command trace flag."
9154 msgstr ""
9155
9156 #. type: =head2
9157 #: ../fish/guestfish-actions.pod:1501
9158 msgid "get-umask"
9159 msgstr "get-umask"
9160
9161 #. type: verbatim
9162 #: ../fish/guestfish-actions.pod:1503
9163 #, no-wrap
9164 msgid ""
9165 " get-umask\n"
9166 "\n"
9167 msgstr ""
9168 " get-umask\n"
9169 "\n"
9170
9171 #. type: textblock
9172 #: ../fish/guestfish-actions.pod:1505
9173 msgid ""
9174 "Return the current umask.  By default the umask is C<022> unless it has been "
9175 "set by calling L</umask>."
9176 msgstr ""
9177
9178 #. type: =head2
9179 #: ../fish/guestfish-actions.pod:1508
9180 msgid "get-verbose"
9181 msgstr "get-verbose"
9182
9183 #. type: verbatim
9184 #: ../fish/guestfish-actions.pod:1510
9185 #, no-wrap
9186 msgid ""
9187 " get-verbose\n"
9188 "\n"
9189 msgstr ""
9190 " get-verbose\n"
9191 "\n"
9192
9193 #. type: textblock
9194 #: ../fish/guestfish-actions.pod:1512 ../src/guestfs-actions.pod:2321
9195 msgid "This returns the verbose messages flag."
9196 msgstr ""
9197
9198 #. type: =head2
9199 #: ../fish/guestfish-actions.pod:1514
9200 msgid "getcon"
9201 msgstr "getcon"
9202
9203 #. type: verbatim
9204 #: ../fish/guestfish-actions.pod:1516
9205 #, no-wrap
9206 msgid ""
9207 " getcon\n"
9208 "\n"
9209 msgstr ""
9210 " getcon\n"
9211 "\n"
9212
9213 #. type: textblock
9214 #: ../fish/guestfish-actions.pod:1518 ../src/guestfs-actions.pod:2332
9215 msgid "This gets the SELinux security context of the daemon."
9216 msgstr ""
9217
9218 #. type: textblock
9219 #: ../fish/guestfish-actions.pod:1520
9220 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
9221 msgstr ""
9222
9223 #. type: =head2
9224 #: ../fish/guestfish-actions.pod:1523
9225 msgid "getxattr"
9226 msgstr "getxattr"
9227
9228 #. type: verbatim
9229 #: ../fish/guestfish-actions.pod:1525
9230 #, no-wrap
9231 msgid ""
9232 " getxattr path name\n"
9233 "\n"
9234 msgstr ""
9235 " getxattr шлях назва\n"
9236 "\n"
9237
9238 #. type: textblock
9239 #: ../fish/guestfish-actions.pod:1527
9240 msgid ""
9241 "Get a single extended attribute from file C<path> named C<name>.  This call "
9242 "follows symlinks.  If you want to lookup an extended attribute for the "
9243 "symlink itself, use L</lgetxattr>."
9244 msgstr ""
9245
9246 #. type: textblock
9247 #: ../fish/guestfish-actions.pod:1531 ../fish/guestfish-actions.pod:2597
9248 msgid ""
9249 "Normally it is better to get all extended attributes from a file in one go "
9250 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
9251 "buggy and do not provide a way to list out attributes.  For these "
9252 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
9253 "attributes you want in advance and call this function."
9254 msgstr ""
9255
9256 #. type: textblock
9257 #: ../fish/guestfish-actions.pod:1538 ../fish/guestfish-actions.pod:2604
9258 #: ../src/guestfs-actions.pod:2361 ../src/guestfs-actions.pod:3856
9259 msgid ""
9260 "Extended attribute values are blobs of binary data.  If there is no extended "
9261 "attribute named C<name>, this returns an error."
9262 msgstr ""
9263
9264 #. type: textblock
9265 #: ../fish/guestfish-actions.pod:1541
9266 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9267 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
9268
9269 #. type: =head2
9270 #: ../fish/guestfish-actions.pod:1543
9271 msgid "getxattrs"
9272 msgstr "getxattrs"
9273
9274 #. type: verbatim
9275 #: ../fish/guestfish-actions.pod:1545
9276 #, no-wrap
9277 msgid ""
9278 " getxattrs path\n"
9279 "\n"
9280 msgstr ""
9281 " getxattrs шлях\n"
9282 "\n"
9283
9284 #. type: textblock
9285 #: ../fish/guestfish-actions.pod:1547 ../src/guestfs-actions.pod:2378
9286 msgid ""
9287 "This call lists the extended attributes of the file or directory C<path>."
9288 msgstr ""
9289
9290 #. type: textblock
9291 #: ../fish/guestfish-actions.pod:1550 ../src/guestfs-actions.pod:2381
9292 msgid ""
9293 "At the system call level, this is a combination of the L<listxattr(2)> and "
9294 "L<getxattr(2)> calls."
9295 msgstr ""
9296
9297 #. type: textblock
9298 #: ../fish/guestfish-actions.pod:1553
9299 msgid "See also: L</lgetxattrs>, L<attr(5)>."
9300 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
9301
9302 #. type: =head2
9303 #: ../fish/guestfish-actions.pod:1555
9304 msgid "glob-expand"
9305 msgstr "glob-expand"
9306
9307 #. type: verbatim
9308 #: ../fish/guestfish-actions.pod:1557
9309 #, no-wrap
9310 msgid ""
9311 " glob-expand pattern\n"
9312 "\n"
9313 msgstr ""
9314 " glob-expand шаблон\n"
9315 "\n"
9316
9317 #. type: textblock
9318 #: ../fish/guestfish-actions.pod:1559 ../src/guestfs-actions.pod:2398
9319 msgid ""
9320 "This command searches for all the pathnames matching C<pattern> according to "
9321 "the wildcard expansion rules used by the shell."
9322 msgstr ""
9323
9324 #. type: textblock
9325 #: ../fish/guestfish-actions.pod:1563 ../src/guestfs-actions.pod:2402
9326 msgid ""
9327 "If no paths match, then this returns an empty list (note: not an error)."
9328 msgstr ""
9329
9330 #. type: textblock
9331 #: ../fish/guestfish-actions.pod:1566 ../src/guestfs-actions.pod:2405
9332 msgid ""
9333 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
9334 "GLOB_BRACE>.  See that manual page for more details."
9335 msgstr ""
9336
9337 #. type: =head2
9338 #: ../fish/guestfish-actions.pod:1570
9339 msgid "grep"
9340 msgstr "grep"
9341
9342 #. type: verbatim
9343 #: ../fish/guestfish-actions.pod:1572
9344 #, no-wrap
9345 msgid ""
9346 " grep regex path\n"
9347 "\n"
9348 msgstr ""
9349 " grepi формальний_вираз шлях\n"
9350 "\n"
9351
9352 #. type: textblock
9353 #: ../fish/guestfish-actions.pod:1574 ../src/guestfs-actions.pod:2422
9354 msgid "This calls the external C<grep> program and returns the matching lines."
9355 msgstr ""
9356
9357 #. type: =head2
9358 #: ../fish/guestfish-actions.pod:1580
9359 msgid "grepi"
9360 msgstr "grepi"
9361
9362 #. type: verbatim
9363 #: ../fish/guestfish-actions.pod:1582
9364 #, no-wrap
9365 msgid ""
9366 " grepi regex path\n"
9367 "\n"
9368 msgstr ""
9369 " grepi формальний_вираз шлях\n"
9370 "\n"
9371
9372 #. type: textblock
9373 #: ../fish/guestfish-actions.pod:1584 ../src/guestfs-actions.pod:2441
9374 msgid ""
9375 "This calls the external C<grep -i> program and returns the matching lines."
9376 msgstr ""
9377
9378 #. type: =head2
9379 #: ../fish/guestfish-actions.pod:1590
9380 msgid "grub-install"
9381 msgstr "grub-install"
9382
9383 #. type: verbatim
9384 #: ../fish/guestfish-actions.pod:1592
9385 #, no-wrap
9386 msgid ""
9387 " grub-install root device\n"
9388 "\n"
9389 msgstr ""
9390 " grub-install кореневий пристрій\n"
9391 "\n"
9392
9393 #. type: textblock
9394 #: ../fish/guestfish-actions.pod:1594 ../src/guestfs-actions.pod:2460
9395 msgid ""
9396 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
9397 "with the root directory being C<root>."
9398 msgstr ""
9399
9400 #. type: textblock
9401 #: ../fish/guestfish-actions.pod:1603 ../src/guestfs-actions.pod:2469
9402 msgid ""
9403 "There is currently no way in the API to install grub2, which is used by most "
9404 "modern Linux guests.  It is possible to run the grub2 command from the "
9405 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
9406 msgstr ""
9407
9408 #. type: textblock
9409 #: ../fish/guestfish-actions.pod:1610 ../src/guestfs-actions.pod:2476
9410 msgid ""
9411 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
9412 "compatible with itself, so this only works in rather narrow circumstances.  "
9413 "Careful testing with each guest version is advisable."
9414 msgstr ""
9415
9416 #. type: textblock
9417 #: ../fish/guestfish-actions.pod:1617 ../src/guestfs-actions.pod:2483
9418 msgid ""
9419 "If grub-install reports the error \"No suitable drive was found in the "
9420 "generated device map.\" it may be that you need to create a C</boot/grub/"
9421 "device.map> file first that contains the mapping between grub device names "
9422 "and Linux device names.  It is usually sufficient to create a file "
9423 "containing:"
9424 msgstr ""
9425
9426 #. type: verbatim
9427 #: ../fish/guestfish-actions.pod:1624 ../src/guestfs-actions.pod:2490
9428 #, no-wrap
9429 msgid ""
9430 " (hd0) /dev/vda\n"
9431 "\n"
9432 msgstr ""
9433
9434 #. type: textblock
9435 #: ../fish/guestfish-actions.pod:1626 ../src/guestfs-actions.pod:2492
9436 msgid "replacing C</dev/vda> with the name of the installation device."
9437 msgstr ""
9438
9439 #. type: =head2
9440 #: ../fish/guestfish-actions.pod:1630
9441 msgid "head"
9442 msgstr "head"
9443
9444 #. type: verbatim
9445 #: ../fish/guestfish-actions.pod:1632
9446 #, no-wrap
9447 msgid ""
9448 " head path\n"
9449 "\n"
9450 msgstr ""
9451 " head шлях\n"
9452 "\n"
9453
9454 #. type: textblock
9455 #: ../fish/guestfish-actions.pod:1634 ../src/guestfs-actions.pod:2506
9456 msgid ""
9457 "This command returns up to the first 10 lines of a file as a list of strings."
9458 msgstr ""
9459
9460 #. type: =head2
9461 #: ../fish/guestfish-actions.pod:1640
9462 msgid "head-n"
9463 msgstr "head-n"
9464
9465 #. type: verbatim
9466 #: ../fish/guestfish-actions.pod:1642
9467 #, no-wrap
9468 msgid ""
9469 " head-n nrlines path\n"
9470 "\n"
9471 msgstr ""
9472
9473 #. type: textblock
9474 #: ../fish/guestfish-actions.pod:1644 ../src/guestfs-actions.pod:2525
9475 msgid ""
9476 "If the parameter C<nrlines> is a positive number, this returns the first "
9477 "C<nrlines> lines of the file C<path>."
9478 msgstr ""
9479
9480 #. type: textblock
9481 #: ../fish/guestfish-actions.pod:1647 ../src/guestfs-actions.pod:2528
9482 msgid ""
9483 "If the parameter C<nrlines> is a negative number, this returns lines from "
9484 "the file C<path>, excluding the last C<nrlines> lines."
9485 msgstr ""
9486
9487 #. type: textblock
9488 #: ../fish/guestfish-actions.pod:1650 ../fish/guestfish-actions.pod:4735
9489 #: ../src/guestfs-actions.pod:2531 ../src/guestfs-actions.pod:7169
9490 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
9491 msgstr ""
9492
9493 #. type: =head2
9494 #: ../fish/guestfish-actions.pod:1655
9495 msgid "hexdump"
9496 msgstr "hexdump"
9497
9498 #. type: verbatim
9499 #: ../fish/guestfish-actions.pod:1657
9500 #, no-wrap
9501 msgid ""
9502 " hexdump path\n"
9503 "\n"
9504 msgstr ""
9505 " hexdump шлях\n"
9506 "\n"
9507
9508 #. type: textblock
9509 #: ../fish/guestfish-actions.pod:1659 ../src/guestfs-actions.pod:2548
9510 msgid ""
9511 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
9512 "readable, canonical hex dump of the file."
9513 msgstr ""
9514
9515 #. type: =head2
9516 #: ../fish/guestfish-actions.pod:1665
9517 msgid "initrd-cat"
9518 msgstr "initrd-cat"
9519
9520 #. type: verbatim
9521 #: ../fish/guestfish-actions.pod:1667
9522 #, no-wrap
9523 msgid ""
9524 " initrd-cat initrdpath filename\n"
9525 "\n"
9526 msgstr ""
9527 " initrd-cat шлях_initrd назва_файла\n"
9528 "\n"
9529
9530 #. type: textblock
9531 #: ../fish/guestfish-actions.pod:1669 ../src/guestfs-actions.pod:2567
9532 msgid ""
9533 "This command unpacks the file C<filename> from the initrd file called "
9534 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
9535 "character."
9536 msgstr ""
9537
9538 #. type: textblock
9539 #: ../fish/guestfish-actions.pod:1673 ../src/guestfs-actions.pod:2571
9540 msgid ""
9541 "For example, in guestfish you could use the following command to examine the "
9542 "boot script (usually called C</init>)  contained in a Linux initrd or "
9543 "initramfs image:"
9544 msgstr ""
9545
9546 #. type: verbatim
9547 #: ../fish/guestfish-actions.pod:1677 ../src/guestfs-actions.pod:2575
9548 #, no-wrap
9549 msgid ""
9550 " initrd-cat /boot/initrd-<version>.img init\n"
9551 "\n"
9552 msgstr ""
9553
9554 #. type: textblock
9555 #: ../fish/guestfish-actions.pod:1679
9556 msgid "See also L</initrd-list>."
9557 msgstr "Див. також L</initrd-list>."
9558
9559 #. type: =head2
9560 #: ../fish/guestfish-actions.pod:1684
9561 msgid "initrd-list"
9562 msgstr "initrd-list"
9563
9564 #. type: verbatim
9565 #: ../fish/guestfish-actions.pod:1686
9566 #, no-wrap
9567 msgid ""
9568 " initrd-list path\n"
9569 "\n"
9570 msgstr ""
9571 " initrd-list шлях\n"
9572 "\n"
9573
9574 #. type: textblock
9575 #: ../fish/guestfish-actions.pod:1688 ../src/guestfs-actions.pod:2594
9576 msgid "This command lists out files contained in an initrd."
9577 msgstr ""
9578
9579 #. type: textblock
9580 #: ../fish/guestfish-actions.pod:1690 ../src/guestfs-actions.pod:2596
9581 msgid ""
9582 "The files are listed without any initial C</> character.  The files are "
9583 "listed in the order they appear (not necessarily alphabetical).  Directory "
9584 "names are listed as separate items."
9585 msgstr ""
9586
9587 #. type: textblock
9588 #: ../fish/guestfish-actions.pod:1694 ../src/guestfs-actions.pod:2600
9589 msgid ""
9590 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
9591 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
9592 "files)."
9593 msgstr ""
9594
9595 #. type: =head2
9596 #: ../fish/guestfish-actions.pod:1698
9597 msgid "inotify-add-watch"
9598 msgstr "inotify-add-watch"
9599
9600 #. type: verbatim
9601 #: ../fish/guestfish-actions.pod:1700
9602 #, no-wrap
9603 msgid ""
9604 " inotify-add-watch path mask\n"
9605 "\n"
9606 msgstr ""
9607 " inotify-add-watch шлях маска\n"
9608 "\n"
9609
9610 #. type: textblock
9611 #: ../fish/guestfish-actions.pod:1702 ../src/guestfs-actions.pod:2617
9612 msgid "Watch C<path> for the events listed in C<mask>."
9613 msgstr ""
9614
9615 #. type: textblock
9616 #: ../fish/guestfish-actions.pod:1704 ../src/guestfs-actions.pod:2619
9617 msgid ""
9618 "Note that if C<path> is a directory then events within that directory are "
9619 "watched, but this does I<not> happen recursively (in subdirectories)."
9620 msgstr ""
9621
9622 #. type: textblock
9623 #: ../fish/guestfish-actions.pod:1708 ../src/guestfs-actions.pod:2623
9624 msgid ""
9625 "Note for non-C or non-Linux callers: the inotify events are defined by the "
9626 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
9627 msgstr ""
9628
9629 #. type: =head2
9630 #: ../fish/guestfish-actions.pod:1712
9631 msgid "inotify-close"
9632 msgstr "inotify-close"
9633
9634 #. type: verbatim
9635 #: ../fish/guestfish-actions.pod:1714
9636 #, no-wrap
9637 msgid ""
9638 " inotify-close\n"
9639 "\n"
9640 msgstr ""
9641 " inotify-close\n"
9642 "\n"
9643
9644 #. type: textblock
9645 #: ../fish/guestfish-actions.pod:1716 ../src/guestfs-actions.pod:2636
9646 msgid ""
9647 "This closes the inotify handle which was previously opened by inotify_init.  "
9648 "It removes all watches, throws away any pending events, and deallocates all "
9649 "resources."
9650 msgstr ""
9651
9652 #. type: =head2
9653 #: ../fish/guestfish-actions.pod:1720
9654 msgid "inotify-files"
9655 msgstr "inotify-files"
9656
9657 #. type: verbatim
9658 #: ../fish/guestfish-actions.pod:1722
9659 #, no-wrap
9660 msgid ""
9661 " inotify-files\n"
9662 "\n"
9663 msgstr ""
9664 " inotify-files\n"
9665 "\n"
9666
9667 #. type: textblock
9668 #: ../fish/guestfish-actions.pod:1724
9669 msgid ""
9670 "This function is a helpful wrapper around L</inotify-read> which just "
9671 "returns a list of pathnames of objects that were touched.  The returned "
9672 "pathnames are sorted and deduplicated."
9673 msgstr ""
9674
9675 #. type: =head2
9676 #: ../fish/guestfish-actions.pod:1728
9677 msgid "inotify-init"
9678 msgstr "inotify-init"
9679
9680 #. type: verbatim
9681 #: ../fish/guestfish-actions.pod:1730
9682 #, no-wrap
9683 msgid ""
9684 " inotify-init maxevents\n"
9685 "\n"
9686 msgstr ""
9687
9688 #. type: textblock
9689 #: ../fish/guestfish-actions.pod:1732 ../src/guestfs-actions.pod:2665
9690 msgid ""
9691 "This command creates a new inotify handle.  The inotify subsystem can be "
9692 "used to notify events which happen to objects in the guest filesystem."
9693 msgstr ""
9694
9695 #. type: textblock
9696 #: ../fish/guestfish-actions.pod:1736
9697 msgid ""
9698 "C<maxevents> is the maximum number of events which will be queued up between "
9699 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
9700 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
9701 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
9702 "but records the fact that it threw them away by setting a flag "
9703 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
9704 msgstr ""
9705
9706 #. type: textblock
9707 #: ../fish/guestfish-actions.pod:1746
9708 msgid ""
9709 "Before any events are generated, you have to add some watches to the "
9710 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
9711 "L</inotify-watch-all>."
9712 msgstr ""
9713
9714 #. type: textblock
9715 #: ../fish/guestfish-actions.pod:1752
9716 msgid ""
9717 "Queued up events should be read periodically by calling L</inotify-read> (or "
9718 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
9719 "If you don't read the events out often enough then you risk the internal "
9720 "queue overflowing."
9721 msgstr ""
9722
9723 #. type: textblock
9724 #: ../fish/guestfish-actions.pod:1759
9725 msgid ""
9726 "The handle should be closed after use by calling L</inotify-close>.  This "
9727 "also removes any watches automatically."
9728 msgstr ""
9729
9730 #. type: textblock
9731 #: ../fish/guestfish-actions.pod:1763 ../src/guestfs-actions.pod:2696
9732 msgid ""
9733 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9734 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9735 "that there is one global inotify handle per libguestfs instance."
9736 msgstr ""
9737
9738 #. type: =head2
9739 #: ../fish/guestfish-actions.pod:1768
9740 msgid "inotify-read"
9741 msgstr "inotify-read"
9742
9743 #. type: verbatim
9744 #: ../fish/guestfish-actions.pod:1770
9745 #, no-wrap
9746 msgid ""
9747 " inotify-read\n"
9748 "\n"
9749 msgstr ""
9750 " inotify-read\n"
9751 "\n"
9752
9753 #. type: textblock
9754 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2710
9755 msgid ""
9756 "Return the complete queue of events that have happened since the previous "
9757 "read call."
9758 msgstr ""
9759
9760 #. type: textblock
9761 #: ../fish/guestfish-actions.pod:1775 ../src/guestfs-actions.pod:2713
9762 msgid "If no events have happened, this returns an empty list."
9763 msgstr ""
9764
9765 #. type: textblock
9766 #: ../fish/guestfish-actions.pod:1777 ../src/guestfs-actions.pod:2715
9767 msgid ""
9768 "I<Note>: In order to make sure that all events have been read, you must call "
9769 "this function repeatedly until it returns an empty list.  The reason is that "
9770 "the call will read events up to the maximum appliance-to-host message size "
9771 "and leave remaining events in the queue."
9772 msgstr ""
9773
9774 #. type: =head2
9775 #: ../fish/guestfish-actions.pod:1783
9776 msgid "inotify-rm-watch"
9777 msgstr "inotify-rm-watch"
9778
9779 #. type: verbatim
9780 #: ../fish/guestfish-actions.pod:1785
9781 #, no-wrap
9782 msgid ""
9783 " inotify-rm-watch wd\n"
9784 "\n"
9785 msgstr ""
9786
9787 #. type: textblock
9788 #: ../fish/guestfish-actions.pod:1787
9789 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9790 msgstr ""
9791
9792 #. type: =head2
9793 #: ../fish/guestfish-actions.pod:1790
9794 msgid "inspect-get-arch"
9795 msgstr "inspect-get-arch"
9796
9797 #. type: verbatim
9798 #: ../fish/guestfish-actions.pod:1792
9799 #, no-wrap
9800 msgid ""
9801 " inspect-get-arch root\n"
9802 "\n"
9803 msgstr ""
9804 " inspect-get-arch корінь\n"
9805 "\n"
9806
9807 #. type: textblock
9808 #: ../fish/guestfish-actions.pod:1794
9809 msgid ""
9810 "This returns the architecture of the inspected operating system.  The "
9811 "possible return values are listed under L</file-architecture>."
9812 msgstr ""
9813
9814 #. type: textblock
9815 #: ../fish/guestfish-actions.pod:1798 ../src/guestfs-actions.pod:2750
9816 msgid ""
9817 "If the architecture could not be determined, then the string C<unknown> is "
9818 "returned."
9819 msgstr ""
9820
9821 #. type: textblock
9822 #: ../fish/guestfish-actions.pod:1801 ../fish/guestfish-actions.pod:1896
9823 #: ../fish/guestfish-actions.pod:1975 ../fish/guestfish-actions.pod:1987
9824 #: ../fish/guestfish-actions.pod:2071 ../fish/guestfish-actions.pod:2133
9825 #: ../fish/guestfish-actions.pod:2154 ../fish/guestfish-actions.pod:2168
9826 #: ../fish/guestfish-actions.pod:2208 ../fish/guestfish-actions.pod:2244
9827 #: ../fish/guestfish-actions.pod:2257 ../fish/guestfish-actions.pod:2270
9828 #: ../fish/guestfish-actions.pod:2280 ../fish/guestfish-actions.pod:2290
9829 #: ../fish/guestfish-actions.pod:2302 ../fish/guestfish-actions.pod:2398
9830 #: ../fish/guestfish-actions.pod:2432 ../src/guestfs-actions.pod:2753
9831 #: ../src/guestfs-actions.pod:2855 ../src/guestfs-actions.pod:2959
9832 #: ../src/guestfs-actions.pod:2978 ../src/guestfs-actions.pod:3109
9833 #: ../src/guestfs-actions.pod:3193 ../src/guestfs-actions.pod:3221
9834 #: ../src/guestfs-actions.pod:3242 ../src/guestfs-actions.pod:3295
9835 #: ../src/guestfs-actions.pod:3339 ../src/guestfs-actions.pod:3359
9836 #: ../src/guestfs-actions.pod:3379 ../src/guestfs-actions.pod:3396
9837 #: ../src/guestfs-actions.pod:3412 ../src/guestfs-actions.pod:3430
9838 #: ../src/guestfs-actions.pod:3532 ../src/guestfs-actions.pod:3573
9839 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9840 msgstr ""
9841
9842 #. type: =head2
9843 #: ../fish/guestfish-actions.pod:1803
9844 msgid "inspect-get-distro"
9845 msgstr "inspect-get-distro"
9846
9847 #. type: verbatim
9848 #: ../fish/guestfish-actions.pod:1805
9849 #, no-wrap
9850 msgid ""
9851 " inspect-get-distro root\n"
9852 "\n"
9853 msgstr ""
9854 " inspect-get-distro корінь\n"
9855 "\n"
9856
9857 #. type: textblock
9858 #: ../fish/guestfish-actions.pod:1807 ../src/guestfs-actions.pod:2766
9859 msgid ""
9860 "This returns the distro (distribution) of the inspected operating system."
9861 msgstr ""
9862
9863 #. type: textblock
9864 #: ../fish/guestfish-actions.pod:1810 ../src/guestfs-actions.pod:2769
9865 msgid "Currently defined distros are:"
9866 msgstr ""
9867
9868 #. type: =item
9869 #: ../fish/guestfish-actions.pod:1814 ../src/guestfs-actions.pod:2773
9870 msgid "\"archlinux\""
9871 msgstr "\"archlinux\""
9872
9873 #. type: textblock
9874 #: ../fish/guestfish-actions.pod:1816 ../src/guestfs-actions.pod:2775
9875 msgid "Arch Linux."
9876 msgstr "Arch Linux."
9877
9878 #. type: =item
9879 #: ../fish/guestfish-actions.pod:1818 ../src/guestfs-actions.pod:2777
9880 msgid "\"centos\""
9881 msgstr ""
9882
9883 #. type: textblock
9884 #: ../fish/guestfish-actions.pod:1820 ../src/guestfs-actions.pod:2779
9885 msgid "CentOS."
9886 msgstr ""
9887
9888 #. type: =item
9889 #: ../fish/guestfish-actions.pod:1822 ../src/guestfs-actions.pod:2781
9890 msgid "\"debian\""
9891 msgstr "\"debian\""
9892
9893 #. type: textblock
9894 #: ../fish/guestfish-actions.pod:1824 ../src/guestfs-actions.pod:2783
9895 msgid "Debian."
9896 msgstr "Debian."
9897
9898 #. type: =item
9899 #: ../fish/guestfish-actions.pod:1826 ../src/guestfs-actions.pod:2785
9900 msgid "\"fedora\""
9901 msgstr "\"fedora\""
9902
9903 #. type: textblock
9904 #: ../fish/guestfish-actions.pod:1828 ../src/guestfs-actions.pod:2787
9905 msgid "Fedora."
9906 msgstr "Fedora."
9907
9908 #. type: =item
9909 #: ../fish/guestfish-actions.pod:1830 ../src/guestfs-actions.pod:2789
9910 msgid "\"gentoo\""
9911 msgstr "\"gentoo\""
9912
9913 #. type: textblock
9914 #: ../fish/guestfish-actions.pod:1832 ../src/guestfs-actions.pod:2791
9915 msgid "Gentoo."
9916 msgstr "Gentoo."
9917
9918 #. type: =item
9919 #: ../fish/guestfish-actions.pod:1834 ../src/guestfs-actions.pod:2793
9920 msgid "\"linuxmint\""
9921 msgstr "\"linuxmint\""
9922
9923 #. type: textblock
9924 #: ../fish/guestfish-actions.pod:1836 ../src/guestfs-actions.pod:2795
9925 msgid "Linux Mint."
9926 msgstr "Linux Mint."
9927
9928 #. type: =item
9929 #: ../fish/guestfish-actions.pod:1838 ../src/guestfs-actions.pod:2797
9930 msgid "\"mageia\""
9931 msgstr ""
9932
9933 #. type: textblock
9934 #: ../fish/guestfish-actions.pod:1840 ../src/guestfs-actions.pod:2799
9935 msgid "Mageia."
9936 msgstr ""
9937
9938 #. type: =item
9939 #: ../fish/guestfish-actions.pod:1842 ../src/guestfs-actions.pod:2801
9940 msgid "\"mandriva\""
9941 msgstr "\"mandriva\""
9942
9943 #. type: textblock
9944 #: ../fish/guestfish-actions.pod:1844 ../src/guestfs-actions.pod:2803
9945 msgid "Mandriva."
9946 msgstr "Mandriva."
9947
9948 #. type: =item
9949 #: ../fish/guestfish-actions.pod:1846 ../src/guestfs-actions.pod:2805
9950 msgid "\"meego\""
9951 msgstr "\"meego\""
9952
9953 #. type: textblock
9954 #: ../fish/guestfish-actions.pod:1848 ../src/guestfs-actions.pod:2807
9955 msgid "MeeGo."
9956 msgstr "MeeGo."
9957
9958 #. type: =item
9959 #: ../fish/guestfish-actions.pod:1850 ../src/guestfs-actions.pod:2809
9960 msgid "\"opensuse\""
9961 msgstr ""
9962
9963 #. type: textblock
9964 #: ../fish/guestfish-actions.pod:1852 ../src/guestfs-actions.pod:2811
9965 msgid "OpenSUSE."
9966 msgstr ""
9967
9968 #. type: =item
9969 #: ../fish/guestfish-actions.pod:1854 ../src/guestfs-actions.pod:2813
9970 msgid "\"pardus\""
9971 msgstr "\"pardus\""
9972
9973 #. type: textblock
9974 #: ../fish/guestfish-actions.pod:1856 ../src/guestfs-actions.pod:2815
9975 msgid "Pardus."
9976 msgstr "Pardus."
9977
9978 #. type: =item
9979 #: ../fish/guestfish-actions.pod:1858 ../src/guestfs-actions.pod:2817
9980 msgid "\"redhat-based\""
9981 msgstr "\"redhat-based\""
9982
9983 #. type: textblock
9984 #: ../fish/guestfish-actions.pod:1860 ../src/guestfs-actions.pod:2819
9985 msgid "Some Red Hat-derived distro."
9986 msgstr "Дистрибутив, що походить від Red Hat."
9987
9988 #. type: =item
9989 #: ../fish/guestfish-actions.pod:1862 ../src/guestfs-actions.pod:2821
9990 msgid "\"rhel\""
9991 msgstr "\"rhel\""
9992
9993 #. type: textblock
9994 #: ../fish/guestfish-actions.pod:1864 ../src/guestfs-actions.pod:2823
9995 msgid "Red Hat Enterprise Linux."
9996 msgstr "Red Hat Enterprise Linux."
9997
9998 #. type: =item
9999 #: ../fish/guestfish-actions.pod:1866 ../src/guestfs-actions.pod:2825
10000 msgid "\"scientificlinux\""
10001 msgstr "\"scientificlinux\""
10002
10003 #. type: textblock
10004 #: ../fish/guestfish-actions.pod:1868 ../src/guestfs-actions.pod:2827
10005 msgid "Scientific Linux."
10006 msgstr "Scientific Linux."
10007
10008 #. type: =item
10009 #: ../fish/guestfish-actions.pod:1870 ../src/guestfs-actions.pod:2829
10010 msgid "\"slackware\""
10011 msgstr "\"slackware\""
10012
10013 #. type: textblock
10014 #: ../fish/guestfish-actions.pod:1872 ../src/guestfs-actions.pod:2831
10015 msgid "Slackware."
10016 msgstr "Slackware."
10017
10018 #. type: =item
10019 #: ../fish/guestfish-actions.pod:1874 ../src/guestfs-actions.pod:2833
10020 msgid "\"ttylinux\""
10021 msgstr ""
10022
10023 #. type: textblock
10024 #: ../fish/guestfish-actions.pod:1876 ../src/guestfs-actions.pod:2835
10025 msgid "ttylinux."
10026 msgstr ""
10027
10028 #. type: =item
10029 #: ../fish/guestfish-actions.pod:1878 ../src/guestfs-actions.pod:2837
10030 msgid "\"ubuntu\""
10031 msgstr "\"ubuntu\""
10032
10033 #. type: textblock
10034 #: ../fish/guestfish-actions.pod:1880 ../src/guestfs-actions.pod:2839
10035 msgid "Ubuntu."
10036 msgstr "Ubuntu."
10037
10038 #. type: =item
10039 #: ../fish/guestfish-actions.pod:1882 ../fish/guestfish-actions.pod:1966
10040 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:2841
10041 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3330
10042 msgid "\"unknown\""
10043 msgstr "\"unknown\""
10044
10045 #. type: textblock
10046 #: ../fish/guestfish-actions.pod:1884 ../src/guestfs-actions.pod:2843
10047 msgid "The distro could not be determined."
10048 msgstr "Дистрибутив, тип якого не вдалося визначити."
10049
10050 #. type: =item
10051 #: ../fish/guestfish-actions.pod:1886 ../fish/guestfish-actions.pod:2223
10052 #: ../src/guestfs-actions.pod:2845 ../src/guestfs-actions.pod:3318
10053 msgid "\"windows\""
10054 msgstr "\"windows\""
10055
10056 #. type: textblock
10057 #: ../fish/guestfish-actions.pod:1888 ../src/guestfs-actions.pod:2847
10058 msgid ""
10059 "Windows does not have distributions.  This string is returned if the OS type "
10060 "is Windows."
10061 msgstr ""
10062
10063 #. type: textblock
10064 #: ../fish/guestfish-actions.pod:1893 ../fish/guestfish-actions.pod:1972
10065 #: ../fish/guestfish-actions.pod:2241 ../src/guestfs-actions.pod:2852
10066 #: ../src/guestfs-actions.pod:2956 ../src/guestfs-actions.pod:3336
10067 msgid ""
10068 "Future versions of libguestfs may return other strings here.  The caller "
10069 "should be prepared to handle any string."
10070 msgstr ""
10071
10072 #. type: =head2
10073 #: ../fish/guestfish-actions.pod:1898
10074 msgid "inspect-get-drive-mappings"
10075 msgstr ""
10076
10077 #. type: verbatim
10078 #: ../fish/guestfish-actions.pod:1900
10079 #, no-wrap
10080 msgid ""
10081 " inspect-get-drive-mappings root\n"
10082 "\n"
10083 msgstr ""
10084
10085 #. type: textblock
10086 #: ../fish/guestfish-actions.pod:1902 ../src/guestfs-actions.pod:2868
10087 msgid ""
10088 "This call is useful for Windows which uses a primitive system of assigning "
10089 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
10090 "Windows Registry to find out how disks/partitions are mapped to drive "
10091 "letters, and returns a hash table as in the example below:"
10092 msgstr ""
10093
10094 #. type: verbatim
10095 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2874
10096 #, no-wrap
10097 msgid ""
10098 " C      =>     /dev/vda2\n"
10099 " E      =>     /dev/vdb1\n"
10100 " F      =>     /dev/vdc1\n"
10101 "\n"
10102 msgstr ""
10103
10104 #. type: textblock
10105 #: ../fish/guestfish-actions.pod:1912 ../src/guestfs-actions.pod:2878
10106 msgid ""
10107 "Note that keys are drive letters.  For Windows, the key is case insensitive "
10108 "and just contains the drive letter, without the customary colon separator "
10109 "character."
10110 msgstr ""
10111
10112 #. type: textblock
10113 #: ../fish/guestfish-actions.pod:1916 ../src/guestfs-actions.pod:2882
10114 msgid ""
10115 "In future we may support other operating systems that also used drive "
10116 "letters, but the keys for those might not be case insensitive and might be "
10117 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
10118 "C<h1> etc."
10119 msgstr ""
10120
10121 #. type: textblock
10122 #: ../fish/guestfish-actions.pod:1921 ../src/guestfs-actions.pod:2887
10123 msgid ""
10124 "For Windows guests, currently only hard drive mappings are returned.  "
10125 "Removable disks (eg. DVD-ROMs) are ignored."
10126 msgstr ""
10127
10128 #. type: textblock
10129 #: ../fish/guestfish-actions.pod:1924 ../src/guestfs-actions.pod:2890
10130 msgid ""
10131 "For guests that do not use drive mappings, or if the drive mappings could "
10132 "not be determined, this returns an empty hash table."
10133 msgstr ""
10134
10135 #. type: textblock
10136 #: ../fish/guestfish-actions.pod:1927
10137 msgid ""
10138 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10139 "get-mountpoints>, L</inspect-get-filesystems>."
10140 msgstr ""
10141
10142 #. type: =head2
10143 #: ../fish/guestfish-actions.pod:1931
10144 msgid "inspect-get-filesystems"
10145 msgstr "inspect-get-filesystems"
10146
10147 #. type: verbatim
10148 #: ../fish/guestfish-actions.pod:1933
10149 #, no-wrap
10150 msgid ""
10151 " inspect-get-filesystems root\n"
10152 "\n"
10153 msgstr ""
10154 " inspect-get-filesystems корінь\n"
10155 "\n"
10156
10157 #. type: textblock
10158 #: ../fish/guestfish-actions.pod:1935 ../src/guestfs-actions.pod:2911
10159 msgid ""
10160 "This returns a list of all the filesystems that we think are associated with "
10161 "this operating system.  This includes the root filesystem, other ordinary "
10162 "filesystems, and non-mounted devices like swap partitions."
10163 msgstr ""
10164
10165 #. type: textblock
10166 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2916
10167 msgid ""
10168 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
10169 "to be shared between operating systems."
10170 msgstr ""
10171
10172 #. type: textblock
10173 #: ../fish/guestfish-actions.pod:1943
10174 msgid ""
10175 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10176 "get-mountpoints>."
10177 msgstr ""
10178
10179 #. type: =head2
10180 #: ../fish/guestfish-actions.pod:1946
10181 msgid "inspect-get-format"
10182 msgstr "inspect-get-format"
10183
10184 #. type: verbatim
10185 #: ../fish/guestfish-actions.pod:1948
10186 #, no-wrap
10187 msgid ""
10188 " inspect-get-format root\n"
10189 "\n"
10190 msgstr ""
10191 " inspect-get-format корінь\n"
10192 "\n"
10193
10194 #. type: textblock
10195 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2934
10196 msgid ""
10197 "This returns the format of the inspected operating system.  You can use it "
10198 "to detect install images, live CDs and similar."
10199 msgstr ""
10200
10201 #. type: textblock
10202 #: ../fish/guestfish-actions.pod:1953 ../src/guestfs-actions.pod:2937
10203 msgid "Currently defined formats are:"
10204 msgstr ""
10205
10206 #. type: =item
10207 #: ../fish/guestfish-actions.pod:1957 ../src/guestfs-actions.pod:2941
10208 msgid "\"installed\""
10209 msgstr "\"installed\""
10210
10211 #. type: textblock
10212 #: ../fish/guestfish-actions.pod:1959 ../src/guestfs-actions.pod:2943
10213 msgid "This is an installed operating system."
10214 msgstr "Це встановлена операційна система."
10215
10216 #. type: =item
10217 #: ../fish/guestfish-actions.pod:1961 ../src/guestfs-actions.pod:2945
10218 msgid "\"installer\""
10219 msgstr ""
10220
10221 #. type: textblock
10222 #: ../fish/guestfish-actions.pod:1963 ../src/guestfs-actions.pod:2947
10223 msgid ""
10224 "The disk image being inspected is not an installed operating system, but a "
10225 "I<bootable> install disk, live CD, or similar."
10226 msgstr ""
10227
10228 #. type: textblock
10229 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2952
10230 msgid "The format of this disk image is not known."
10231 msgstr ""
10232
10233 #. type: =head2
10234 #: ../fish/guestfish-actions.pod:1977
10235 msgid "inspect-get-hostname"
10236 msgstr "inspect-get-hostname"
10237
10238 #. type: verbatim
10239 #: ../fish/guestfish-actions.pod:1979
10240 #, no-wrap
10241 msgid ""
10242 " inspect-get-hostname root\n"
10243 "\n"
10244 msgstr ""
10245 " inspect-get-hostname корінь\n"
10246 "\n"
10247
10248 #. type: textblock
10249 #: ../fish/guestfish-actions.pod:1981 ../src/guestfs-actions.pod:2972
10250 msgid ""
10251 "This function returns the hostname of the operating system as found by "
10252 "inspection of the guest's configuration files."
10253 msgstr ""
10254
10255 #. type: textblock
10256 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2975
10257 msgid ""
10258 "If the hostname could not be determined, then the string C<unknown> is "
10259 "returned."
10260 msgstr ""
10261
10262 #. type: =head2
10263 #: ../fish/guestfish-actions.pod:1989
10264 msgid "inspect-get-icon"
10265 msgstr ""
10266
10267 #. type: verbatim
10268 #: ../fish/guestfish-actions.pod:1991
10269 #, no-wrap
10270 msgid ""
10271 " inspect-get-icon root [favicon:..] [highquality:..]\n"
10272 "\n"
10273 msgstr ""
10274
10275 #. type: textblock
10276 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3001
10277 msgid ""
10278 "This function returns an icon corresponding to the inspected operating "
10279 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
10280 "to PNG if necessary)."
10281 msgstr ""
10282
10283 #. type: textblock
10284 #: ../fish/guestfish-actions.pod:1997 ../src/guestfs-actions.pod:3005
10285 msgid ""
10286 "If it was not possible to get an icon this function returns a zero-length "
10287 "(non-NULL) buffer.  I<Callers must check for this case>."
10288 msgstr ""
10289
10290 #. type: textblock
10291 #: ../fish/guestfish-actions.pod:2000 ../src/guestfs-actions.pod:3008
10292 msgid ""
10293 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
10294 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
10295 "this file will be returned.  You can disable favicons by passing the "
10296 "optional C<favicon> boolean as false (default is true)."
10297 msgstr ""
10298
10299 #. type: textblock
10300 #: ../fish/guestfish-actions.pod:2006 ../src/guestfs-actions.pod:3014
10301 msgid ""
10302 "If finding the favicon fails, then we look in other places in the guest for "
10303 "a suitable icon."
10304 msgstr ""
10305
10306 #. type: textblock
10307 #: ../fish/guestfish-actions.pod:2009 ../src/guestfs-actions.pod:3017
10308 msgid ""
10309 "If the optional C<highquality> boolean is true then only high quality icons "
10310 "are returned, which means only icons of high resolution with an alpha "
10311 "channel.  The default (false) is to return any icon we can, even if it is of "
10312 "substandard quality."
10313 msgstr ""
10314
10315 #. type: textblock
10316 #: ../fish/guestfish-actions.pod:2020 ../src/guestfs-actions.pod:3028
10317 msgid ""
10318 "Unlike most other inspection API calls, the guest's disks must be mounted up "
10319 "before you call this, since it needs to read information from the guest "
10320 "filesystem during the call."
10321 msgstr ""
10322
10323 #. type: textblock
10324 #: ../fish/guestfish-actions.pod:2026 ../src/guestfs-actions.pod:3034
10325 msgid ""
10326 "B<Security:> The icon data comes from the untrusted guest, and should be "
10327 "treated with caution.  PNG files have been known to contain exploits.  "
10328 "Ensure that libpng (or other relevant libraries) are fully up to date before "
10329 "trying to process or display the icon."
10330 msgstr ""
10331
10332 #. type: textblock
10333 #: ../fish/guestfish-actions.pod:2034 ../src/guestfs-actions.pod:3042
10334 msgid ""
10335 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
10336 "tries to return the largest, highest quality icon available.  The "
10337 "application must scale the icon to the required size."
10338 msgstr ""
10339
10340 #. type: textblock
10341 #: ../fish/guestfish-actions.pod:2041 ../src/guestfs-actions.pod:3049
10342 msgid ""
10343 "Extracting icons from Windows guests requires the external C<wrestool> "
10344 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
10345 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
10346 "installed separately."
10347 msgstr ""
10348
10349 #. type: textblock
10350 #: ../fish/guestfish-actions.pod:2048 ../src/guestfs-actions.pod:3056
10351 msgid ""
10352 "Operating system icons are usually trademarks.  Seek legal advice before "
10353 "using trademarks in applications."
10354 msgstr ""
10355
10356 #. type: =head2
10357 #: ../fish/guestfish-actions.pod:2055
10358 msgid "inspect-get-major-version"
10359 msgstr "inspect-get-major-version"
10360
10361 #. type: verbatim
10362 #: ../fish/guestfish-actions.pod:2057
10363 #, no-wrap
10364 msgid ""
10365 " inspect-get-major-version root\n"
10366 "\n"
10367 msgstr ""
10368 " inspect-get-major-version корінь\n"
10369 "\n"
10370
10371 #. type: textblock
10372 #: ../fish/guestfish-actions.pod:2059 ../src/guestfs-actions.pod:3097
10373 msgid ""
10374 "This returns the major version number of the inspected operating system."
10375 msgstr ""
10376
10377 #. type: textblock
10378 #: ../fish/guestfish-actions.pod:2062 ../src/guestfs-actions.pod:3100
10379 msgid ""
10380 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
10381 "popular public names used by the operating system.  Notably the operating "
10382 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
10383 "1).  You can find out the real versions corresponding to releases of Windows "
10384 "by consulting Wikipedia or MSDN."
10385 msgstr ""
10386
10387 #. type: textblock
10388 #: ../fish/guestfish-actions.pod:2069 ../fish/guestfish-actions.pod:2080
10389 #: ../src/guestfs-actions.pod:3107 ../src/guestfs-actions.pod:3124
10390 msgid "If the version could not be determined, then C<0> is returned."
10391 msgstr ""
10392
10393 #. type: =head2
10394 #: ../fish/guestfish-actions.pod:2073
10395 msgid "inspect-get-minor-version"
10396 msgstr "inspect-get-minor-version"
10397
10398 #. type: verbatim
10399 #: ../fish/guestfish-actions.pod:2075
10400 #, no-wrap
10401 msgid ""
10402 " inspect-get-minor-version root\n"
10403 "\n"
10404 msgstr ""
10405 " inspect-get-minor-version корінь\n"
10406 "\n"
10407
10408 #. type: textblock
10409 #: ../fish/guestfish-actions.pod:2077 ../src/guestfs-actions.pod:3121
10410 msgid ""
10411 "This returns the minor version number of the inspected operating system."
10412 msgstr ""
10413
10414 #. type: textblock
10415 #: ../fish/guestfish-actions.pod:2082
10416 msgid ""
10417 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10418 "get-major-version>."
10419 msgstr ""
10420
10421 #. type: =head2
10422 #: ../fish/guestfish-actions.pod:2085
10423 msgid "inspect-get-mountpoints"
10424 msgstr "inspect-get-mountpoints"
10425
10426 #. type: verbatim
10427 #: ../fish/guestfish-actions.pod:2087
10428 #, no-wrap
10429 msgid ""
10430 " inspect-get-mountpoints root\n"
10431 "\n"
10432 msgstr ""
10433 " inspect-get-mountpoints корінь\n"
10434 "\n"
10435
10436 #. type: textblock
10437 #: ../fish/guestfish-actions.pod:2089 ../src/guestfs-actions.pod:3139
10438 msgid ""
10439 "This returns a hash of where we think the filesystems associated with this "
10440 "operating system should be mounted.  Callers should note that this is at "
10441 "best an educated guess made by reading configuration files such as C</etc/"
10442 "fstab>.  I<In particular note> that this may return filesystems which are "
10443 "non-existent or not mountable and callers should be prepared to handle or "
10444 "ignore failures if they try to mount them."
10445 msgstr ""
10446
10447 #. type: textblock
10448 #: ../fish/guestfish-actions.pod:2098 ../src/guestfs-actions.pod:3148
10449 msgid ""
10450 "Each element in the returned hashtable has a key which is the path of the "
10451 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
10452 "mounted there (eg. C</dev/sda1>)."
10453 msgstr ""
10454
10455 #. type: textblock
10456 #: ../fish/guestfish-actions.pod:2103 ../src/guestfs-actions.pod:3153
10457 msgid ""
10458 "Non-mounted devices such as swap devices are I<not> returned in this list."
10459 msgstr ""
10460
10461 #. type: textblock
10462 #: ../fish/guestfish-actions.pod:2106
10463 msgid ""
10464 "For operating systems like Windows which still use drive letters, this call "
10465 "will only return an entry for the first drive \"mounted on\" C</>.  For "
10466 "information about the mapping of drive letters to partitions, see L</inspect-"
10467 "get-drive-mappings>."
10468 msgstr ""
10469
10470 #. type: textblock
10471 #: ../fish/guestfish-actions.pod:2112
10472 msgid ""
10473 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10474 "get-filesystems>."
10475 msgstr ""
10476
10477 #. type: =head2
10478 #: ../fish/guestfish-actions.pod:2115
10479 msgid "inspect-get-package-format"
10480 msgstr "inspect-get-package-format"
10481
10482 #. type: verbatim
10483 #: ../fish/guestfish-actions.pod:2117
10484 #, no-wrap
10485 msgid ""
10486 " inspect-get-package-format root\n"
10487 "\n"
10488 msgstr ""
10489 " inspect-get-package-format корінь\n"
10490 "\n"
10491
10492 #. type: textblock
10493 #: ../fish/guestfish-actions.pod:2119
10494 msgid ""
10495 "This function and L</inspect-get-package-management> return the package "
10496 "format and package management tool used by the inspected operating system.  "
10497 "For example for Fedora these functions would return C<rpm> (package format) "
10498 "and C<yum> (package management)."
10499 msgstr ""
10500
10501 #. type: textblock
10502 #: ../fish/guestfish-actions.pod:2125 ../src/guestfs-actions.pod:3185
10503 msgid ""
10504 "This returns the string C<unknown> if we could not determine the package "
10505 "format I<or> if the operating system does not have a real packaging system "
10506 "(eg. Windows)."
10507 msgstr ""
10508
10509 #. type: textblock
10510 #: ../fish/guestfish-actions.pod:2129 ../src/guestfs-actions.pod:3189
10511 msgid ""
10512 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>, "
10513 "C<pkgsrc>.  Future versions of libguestfs may return other strings."
10514 msgstr ""
10515
10516 #. type: =head2
10517 #: ../fish/guestfish-actions.pod:2135
10518 msgid "inspect-get-package-management"
10519 msgstr "inspect-get-package-management"
10520
10521 #. type: verbatim
10522 #: ../fish/guestfish-actions.pod:2137
10523 #, no-wrap
10524 msgid ""
10525 " inspect-get-package-management root\n"
10526 "\n"
10527 msgstr ""
10528 " inspect-get-package-management корінь\n"
10529 "\n"
10530
10531 #. type: textblock
10532 #: ../fish/guestfish-actions.pod:2139
10533 msgid ""
10534 "L</inspect-get-package-format> and this function return the package format "
10535 "and package management tool used by the inspected operating system.  For "
10536 "example for Fedora these functions would return C<rpm> (package format) and "
10537 "C<yum> (package management)."
10538 msgstr ""
10539
10540 #. type: textblock
10541 #: ../fish/guestfish-actions.pod:2145 ../src/guestfs-actions.pod:3212
10542 msgid ""
10543 "This returns the string C<unknown> if we could not determine the package "
10544 "management tool I<or> if the operating system does not have a real packaging "
10545 "system (eg. Windows)."
10546 msgstr ""
10547
10548 #. type: textblock
10549 #: ../fish/guestfish-actions.pod:2149 ../src/guestfs-actions.pod:3216
10550 msgid ""
10551 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
10552 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>, C<zypper>.  Future "
10553 "versions of libguestfs may return other strings."
10554 msgstr ""
10555
10556 #. type: =head2
10557 #: ../fish/guestfish-actions.pod:2156
10558 msgid "inspect-get-product-name"
10559 msgstr "inspect-get-product-name"
10560
10561 #. type: verbatim
10562 #: ../fish/guestfish-actions.pod:2158
10563 #, no-wrap
10564 msgid ""
10565 " inspect-get-product-name root\n"
10566 "\n"
10567 msgstr ""
10568 " inspect-get-product-name корінь\n"
10569 "\n"
10570
10571 #. type: textblock
10572 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3234
10573 msgid ""
10574 "This returns the product name of the inspected operating system.  The "
10575 "product name is generally some freeform string which can be displayed to the "
10576 "user, but should not be parsed by programs."
10577 msgstr ""
10578
10579 #. type: textblock
10580 #: ../fish/guestfish-actions.pod:2165 ../src/guestfs-actions.pod:3239
10581 msgid ""
10582 "If the product name could not be determined, then the string C<unknown> is "
10583 "returned."
10584 msgstr ""
10585
10586 #. type: =head2
10587 #: ../fish/guestfish-actions.pod:2170
10588 msgid "inspect-get-product-variant"
10589 msgstr ""
10590
10591 #. type: verbatim
10592 #: ../fish/guestfish-actions.pod:2172
10593 #, no-wrap
10594 msgid ""
10595 " inspect-get-product-variant root\n"
10596 "\n"
10597 msgstr ""
10598
10599 #. type: textblock
10600 #: ../fish/guestfish-actions.pod:2174 ../src/guestfs-actions.pod:3255
10601 msgid "This returns the product variant of the inspected operating system."
10602 msgstr ""
10603
10604 #. type: textblock
10605 #: ../fish/guestfish-actions.pod:2177 ../src/guestfs-actions.pod:3258
10606 msgid ""
10607 "For Windows guests, this returns the contents of the Registry key C<HKLM"
10608 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
10609 "is usually a string such as C<Client> or C<Server> (other values are "
10610 "possible).  This can be used to distinguish consumer and enterprise versions "
10611 "of Windows that have the same version number (for example, Windows 7 and "
10612 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
10613 "the latter is C<Server>)."
10614 msgstr ""
10615
10616 #. type: textblock
10617 #: ../fish/guestfish-actions.pod:2186 ../src/guestfs-actions.pod:3267
10618 msgid ""
10619 "For enterprise Linux guests, in future we intend this to return the product "
10620 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
10621 "implemented at present."
10622 msgstr ""
10623
10624 #. type: textblock
10625 #: ../fish/guestfish-actions.pod:2190 ../src/guestfs-actions.pod:3271
10626 msgid ""
10627 "If the product variant could not be determined, then the string C<unknown> "
10628 "is returned."
10629 msgstr ""
10630
10631 #. type: textblock
10632 #: ../fish/guestfish-actions.pod:2193
10633 msgid ""
10634 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
10635 "get-product-name>, L</inspect-get-major-version>."
10636 msgstr ""
10637
10638 #. type: =head2
10639 #: ../fish/guestfish-actions.pod:2197
10640 msgid "inspect-get-roots"
10641 msgstr "inspect-get-roots"
10642
10643 #. type: verbatim
10644 #: ../fish/guestfish-actions.pod:2199
10645 #, no-wrap
10646 msgid ""
10647 " inspect-get-roots\n"
10648 "\n"
10649 msgstr ""
10650 " inspect-get-roots\n"
10651 "\n"
10652
10653 #. type: textblock
10654 #: ../fish/guestfish-actions.pod:2201
10655 msgid ""
10656 "This function is a convenient way to get the list of root devices, as "
10657 "returned from a previous call to L</inspect-os>, but without redoing the "
10658 "whole inspection process."
10659 msgstr ""
10660
10661 #. type: textblock
10662 #: ../fish/guestfish-actions.pod:2205
10663 msgid ""
10664 "This returns an empty list if either no root devices were found or the "
10665 "caller has not called L</inspect-os>."
10666 msgstr ""
10667
10668 #. type: =head2
10669 #: ../fish/guestfish-actions.pod:2210
10670 msgid "inspect-get-type"
10671 msgstr "inspect-get-type"
10672
10673 #. type: verbatim
10674 #: ../fish/guestfish-actions.pod:2212
10675 #, no-wrap
10676 msgid ""
10677 " inspect-get-type root\n"
10678 "\n"
10679 msgstr ""
10680 " inspect-get-type корінь\n"
10681 "\n"
10682
10683 #. type: textblock
10684 #: ../fish/guestfish-actions.pod:2214 ../src/guestfs-actions.pod:3309
10685 msgid ""
10686 "This returns the type of the inspected operating system.  Currently defined "
10687 "types are:"
10688 msgstr ""
10689
10690 #. type: =item
10691 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3314
10692 msgid "\"linux\""
10693 msgstr "\"linux\""
10694
10695 #. type: textblock
10696 #: ../fish/guestfish-actions.pod:2221 ../src/guestfs-actions.pod:3316
10697 msgid "Any Linux-based operating system."
10698 msgstr ""
10699
10700 #. type: textblock
10701 #: ../fish/guestfish-actions.pod:2225 ../src/guestfs-actions.pod:3320
10702 msgid "Any Microsoft Windows operating system."
10703 msgstr ""
10704
10705 #. type: =item
10706 #: ../fish/guestfish-actions.pod:2227 ../src/guestfs-actions.pod:3322
10707 msgid "\"freebsd\""
10708 msgstr "\"freebsd\""
10709
10710 #. type: textblock
10711 #: ../fish/guestfish-actions.pod:2229 ../src/guestfs-actions.pod:3324
10712 msgid "FreeBSD."
10713 msgstr "FreeBSD."
10714
10715 #. type: =item
10716 #: ../fish/guestfish-actions.pod:2231 ../src/guestfs-actions.pod:3326
10717 msgid "\"netbsd\""
10718 msgstr ""
10719
10720 #. type: textblock
10721 #: ../fish/guestfish-actions.pod:2233 ../src/guestfs-actions.pod:3328
10722 msgid "NetBSD."
10723 msgstr ""
10724
10725 #. type: textblock
10726 #: ../fish/guestfish-actions.pod:2237 ../src/guestfs-actions.pod:3332
10727 msgid "The operating system type could not be determined."
10728 msgstr ""
10729
10730 #. type: =head2
10731 #: ../fish/guestfish-actions.pod:2246
10732 msgid "inspect-get-windows-current-control-set"
10733 msgstr ""
10734
10735 #. type: verbatim
10736 #: ../fish/guestfish-actions.pod:2248
10737 #, no-wrap
10738 msgid ""
10739 " inspect-get-windows-current-control-set root\n"
10740 "\n"
10741 msgstr ""
10742
10743 #. type: textblock
10744 #: ../fish/guestfish-actions.pod:2250 ../src/guestfs-actions.pod:3352
10745 msgid ""
10746 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10747 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10748 msgstr ""
10749
10750 #. type: textblock
10751 #: ../fish/guestfish-actions.pod:2253 ../src/guestfs-actions.pod:3355
10752 msgid ""
10753 "This call assumes that the guest is Windows and that the Registry could be "
10754 "examined by inspection.  If this is not the case then an error is returned."
10755 msgstr ""
10756
10757 #. type: =head2
10758 #: ../fish/guestfish-actions.pod:2259
10759 msgid "inspect-get-windows-systemroot"
10760 msgstr "inspect-get-windows-systemroot"
10761
10762 #. type: verbatim
10763 #: ../fish/guestfish-actions.pod:2261
10764 #, no-wrap
10765 msgid ""
10766 " inspect-get-windows-systemroot root\n"
10767 "\n"
10768 msgstr ""
10769 " inspect-get-windows-systemroot корінь\n"
10770 "\n"
10771
10772 #. type: textblock
10773 #: ../fish/guestfish-actions.pod:2263 ../src/guestfs-actions.pod:3372
10774 msgid ""
10775 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10776 "is a directory path such as C</WINDOWS>."
10777 msgstr ""
10778
10779 #. type: textblock
10780 #: ../fish/guestfish-actions.pod:2266 ../src/guestfs-actions.pod:3375
10781 msgid ""
10782 "This call assumes that the guest is Windows and that the systemroot could be "
10783 "determined by inspection.  If this is not the case then an error is returned."
10784 msgstr ""
10785
10786 #. type: =head2
10787 #: ../fish/guestfish-actions.pod:2272
10788 msgid "inspect-is-live"
10789 msgstr "inspect-is-live"
10790
10791 #. type: verbatim
10792 #: ../fish/guestfish-actions.pod:2274
10793 #, no-wrap
10794 msgid ""
10795 " inspect-is-live root\n"
10796 "\n"
10797 msgstr ""
10798 " inspect-is-live корінь\n"
10799 "\n"
10800
10801 #. type: textblock
10802 #: ../fish/guestfish-actions.pod:2276
10803 msgid ""
10804 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10805 "then this returns true if a live image was detected on the disk."
10806 msgstr ""
10807
10808 #. type: =head2
10809 #: ../fish/guestfish-actions.pod:2282
10810 msgid "inspect-is-multipart"
10811 msgstr "inspect-is-multipart"
10812
10813 #. type: verbatim
10814 #: ../fish/guestfish-actions.pod:2284
10815 #, no-wrap
10816 msgid ""
10817 " inspect-is-multipart root\n"
10818 "\n"
10819 msgstr ""
10820 " inspect-is-multipart корінь\n"
10821 "\n"
10822
10823 #. type: textblock
10824 #: ../fish/guestfish-actions.pod:2286
10825 msgid ""
10826 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10827 "then this returns true if the disk is part of a set."
10828 msgstr ""
10829
10830 #. type: =head2
10831 #: ../fish/guestfish-actions.pod:2292
10832 msgid "inspect-is-netinst"
10833 msgstr "inspect-is-netinst"
10834
10835 #. type: verbatim
10836 #: ../fish/guestfish-actions.pod:2294
10837 #, no-wrap
10838 msgid ""
10839 " inspect-is-netinst root\n"
10840 "\n"
10841 msgstr ""
10842 " inspect-is-netinst корінь\n"
10843 "\n"
10844
10845 #. type: textblock
10846 #: ../fish/guestfish-actions.pod:2296
10847 msgid ""
10848 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10849 "then this returns true if the disk is a network installer, ie. not a self-"
10850 "contained install CD but one which is likely to require network access to "
10851 "complete the install."
10852 msgstr ""
10853
10854 #. type: =head2
10855 #: ../fish/guestfish-actions.pod:2304
10856 msgid "inspect-list-applications"
10857 msgstr "inspect-list-applications"
10858
10859 #. type: verbatim
10860 #: ../fish/guestfish-actions.pod:2306
10861 #, no-wrap
10862 msgid ""
10863 " inspect-list-applications root\n"
10864 "\n"
10865 msgstr ""
10866 " inspect-list-applications кореневий_каталог\n"
10867 "\n"
10868
10869 #. type: textblock
10870 #: ../fish/guestfish-actions.pod:2308 ../src/guestfs-actions.pod:3442
10871 msgid "Return the list of applications installed in the operating system."
10872 msgstr ""
10873
10874 #. type: textblock
10875 #: ../fish/guestfish-actions.pod:2310
10876 msgid ""
10877 "I<Note:> This call works differently from other parts of the inspection "
10878 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10879 "then mount up the disks, before calling this.  Listing applications is a "
10880 "significantly more difficult operation which requires access to the full "
10881 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10882 "are just returning data cached in the libguestfs handle, this call actually "
10883 "reads parts of the mounted filesystems during the call."
10884 msgstr ""
10885
10886 #. type: textblock
10887 #: ../fish/guestfish-actions.pod:2320 ../src/guestfs-actions.pod:3454
10888 msgid ""
10889 "This returns an empty list if the inspection code was not able to determine "
10890 "the list of applications."
10891 msgstr ""
10892
10893 #. type: textblock
10894 #: ../fish/guestfish-actions.pod:2323 ../src/guestfs-actions.pod:3457
10895 msgid "The application structure contains the following fields:"
10896 msgstr ""
10897
10898 #. type: =item
10899 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3461
10900 msgid "C<app_name>"
10901 msgstr "C<app_name>"
10902
10903 #. type: textblock
10904 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3463
10905 msgid ""
10906 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10907 "guests, this is the package name."
10908 msgstr ""
10909
10910 #. type: =item
10911 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3466
10912 msgid "C<app_display_name>"
10913 msgstr "C<app_display_name>"
10914
10915 #. type: textblock
10916 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3468
10917 msgid ""
10918 "The display name of the application, sometimes localized to the install "
10919 "language of the guest operating system."
10920 msgstr ""
10921
10922 #. type: textblock
10923 #: ../fish/guestfish-actions.pod:2337 ../src/guestfs-actions.pod:3471
10924 msgid ""
10925 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10926 "to display something can use C<app_name> instead."
10927 msgstr ""
10928
10929 #. type: =item
10930 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3474
10931 msgid "C<app_epoch>"
10932 msgstr "C<app_epoch>"
10933
10934 #. type: textblock
10935 #: ../fish/guestfish-actions.pod:2342 ../src/guestfs-actions.pod:3476
10936 msgid ""
10937 "For package managers which use epochs, this contains the epoch of the "
10938 "package (an integer).  If unavailable, this is returned as C<0>."
10939 msgstr ""
10940
10941 #. type: =item
10942 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3479
10943 msgid "C<app_version>"
10944 msgstr "C<app_version>"
10945
10946 #. type: textblock
10947 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3481
10948 msgid ""
10949 "The version string of the application or package.  If unavailable this is "
10950 "returned as an empty string C<\"\">."
10951 msgstr ""
10952
10953 #. type: =item
10954 #: ../fish/guestfish-actions.pod:2350 ../src/guestfs-actions.pod:3484
10955 msgid "C<app_release>"
10956 msgstr "C<app_release>"
10957
10958 #. type: textblock
10959 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3486
10960 msgid ""
10961 "The release string of the application or package, for package managers that "
10962 "use this.  If unavailable this is returned as an empty string C<\"\">."
10963 msgstr ""
10964
10965 #. type: =item
10966 #: ../fish/guestfish-actions.pod:2356 ../src/guestfs-actions.pod:3490
10967 msgid "C<app_install_path>"
10968 msgstr "C<app_install_path>"
10969
10970 #. type: textblock
10971 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3492
10972 msgid ""
10973 "The installation path of the application (on operating systems such as "
10974 "Windows which use installation paths).  This path is in the format used by "
10975 "the guest operating system, it is not a libguestfs path."
10976 msgstr ""
10977
10978 #. type: textblock
10979 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3497
10980 msgid "If unavailable this is returned as an empty string C<\"\">."
10981 msgstr ""
10982
10983 #. type: =item
10984 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3499
10985 msgid "C<app_trans_path>"
10986 msgstr "C<app_trans_path>"
10987
10988 #. type: textblock
10989 #: ../fish/guestfish-actions.pod:2367 ../src/guestfs-actions.pod:3501
10990 msgid ""
10991 "The install path translated into a libguestfs path.  If unavailable this is "
10992 "returned as an empty string C<\"\">."
10993 msgstr ""
10994
10995 #. type: =item
10996 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3504
10997 msgid "C<app_publisher>"
10998 msgstr "C<app_publisher>"
10999
11000 #. type: textblock
11001 #: ../fish/guestfish-actions.pod:2372 ../src/guestfs-actions.pod:3506
11002 msgid ""
11003 "The name of the publisher of the application, for package managers that use "
11004 "this.  If unavailable this is returned as an empty string C<\"\">."
11005 msgstr ""
11006
11007 #. type: =item
11008 #: ../fish/guestfish-actions.pod:2376 ../src/guestfs-actions.pod:3510
11009 msgid "C<app_url>"
11010 msgstr "C<app_url>"
11011
11012 #. type: textblock
11013 #: ../fish/guestfish-actions.pod:2378 ../src/guestfs-actions.pod:3512
11014 msgid ""
11015 "The URL (eg. upstream URL) of the application.  If unavailable this is "
11016 "returned as an empty string C<\"\">."
11017 msgstr ""
11018
11019 #. type: =item
11020 #: ../fish/guestfish-actions.pod:2381 ../src/guestfs-actions.pod:3515
11021 msgid "C<app_source_package>"
11022 msgstr "C<app_source_package>"
11023
11024 #. type: textblock
11025 #: ../fish/guestfish-actions.pod:2383 ../src/guestfs-actions.pod:3517
11026 msgid ""
11027 "For packaging systems which support this, the name of the source package.  "
11028 "If unavailable this is returned as an empty string C<\"\">."
11029 msgstr ""
11030
11031 #. type: =item
11032 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3520
11033 msgid "C<app_summary>"
11034 msgstr "C<app_summary>"
11035
11036 #. type: textblock
11037 #: ../fish/guestfish-actions.pod:2388 ../src/guestfs-actions.pod:3522
11038 msgid ""
11039 "A short (usually one line) description of the application or package.  If "
11040 "unavailable this is returned as an empty string C<\"\">."
11041 msgstr ""
11042
11043 #. type: =item
11044 #: ../fish/guestfish-actions.pod:2391 ../src/guestfs-actions.pod:3525
11045 msgid "C<app_description>"
11046 msgstr "C<app_description>"
11047
11048 #. type: textblock
11049 #: ../fish/guestfish-actions.pod:2393 ../src/guestfs-actions.pod:3527
11050 msgid ""
11051 "A longer description of the application or package.  If unavailable this is "
11052 "returned as an empty string C<\"\">."
11053 msgstr ""
11054
11055 #. type: =head2
11056 #: ../fish/guestfish-actions.pod:2400
11057 msgid "inspect-os"
11058 msgstr "inspect-os"
11059
11060 #. type: verbatim
11061 #: ../fish/guestfish-actions.pod:2402
11062 #, no-wrap
11063 msgid ""
11064 " inspect-os\n"
11065 "\n"
11066 msgstr ""
11067 " inspect-os\n"
11068 "\n"
11069
11070 #. type: textblock
11071 #: ../fish/guestfish-actions.pod:2404 ../src/guestfs-actions.pod:3545
11072 msgid ""
11073 "This function uses other libguestfs functions and certain heuristics to "
11074 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
11075 "for operating systems."
11076 msgstr ""
11077
11078 #. type: textblock
11079 #: ../fish/guestfish-actions.pod:2408 ../src/guestfs-actions.pod:3549
11080 msgid "The list returned is empty if no operating systems were found."
11081 msgstr ""
11082
11083 #. type: textblock
11084 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3551
11085 msgid ""
11086 "If one operating system was found, then this returns a list with a single "
11087 "element, which is the name of the root filesystem of this operating system.  "
11088 "It is also possible for this function to return a list containing more than "
11089 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
11090 "element being the root filesystem of one of the operating systems."
11091 msgstr ""
11092
11093 #. type: textblock
11094 #: ../fish/guestfish-actions.pod:2417
11095 msgid ""
11096 "You can pass the root string(s) returned to other L</inspect-get-*> "
11097 "functions in order to query further information about each operating system, "
11098 "such as the name and version."
11099 msgstr ""
11100
11101 #. type: textblock
11102 #: ../fish/guestfish-actions.pod:2422
11103 msgid ""
11104 "This function uses other libguestfs features such as L</mount-ro> and L</"
11105 "umount-all> in order to mount and unmount filesystems and look at the "
11106 "contents.  This should be called with no disks currently mounted.  The "
11107 "function may also use Augeas, so any existing Augeas handle will be closed."
11108 msgstr ""
11109
11110 #. type: textblock
11111 #: ../fish/guestfish-actions.pod:2428 ../src/guestfs-actions.pod:3569
11112 msgid ""
11113 "This function cannot decrypt encrypted disks.  The caller must do that first "
11114 "(supplying the necessary keys) if the disk is encrypted."
11115 msgstr ""
11116
11117 #. type: textblock
11118 #: ../fish/guestfish-actions.pod:2434 ../fish/guestfish-actions.pod:2632
11119 #: ../fish/guestfish-actions.pod:2691
11120 msgid "See also L</list-filesystems>."
11121 msgstr "Див. також L</list-filesystems>."
11122
11123 #. type: =head2
11124 #: ../fish/guestfish-actions.pod:2436
11125 msgid "is-blockdev"
11126 msgstr "is-blockdev"
11127
11128 #. type: verbatim
11129 #: ../fish/guestfish-actions.pod:2438
11130 #, no-wrap
11131 msgid ""
11132 " is-blockdev path\n"
11133 "\n"
11134 msgstr ""
11135 " is-blockdev шлях\n"
11136 "\n"
11137
11138 #. type: textblock
11139 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3589
11140 msgid ""
11141 "This returns C<true> if and only if there is a block device with the given "
11142 "C<path> name."
11143 msgstr ""
11144
11145 #. type: textblock
11146 #: ../fish/guestfish-actions.pod:2443 ../fish/guestfish-actions.pod:2461
11147 #: ../fish/guestfish-actions.pod:2480 ../fish/guestfish-actions.pod:2489
11148 #: ../fish/guestfish-actions.pod:2499 ../fish/guestfish-actions.pod:2533
11149 #: ../fish/guestfish-actions.pod:2542
11150 msgid "See also L</stat>."
11151 msgstr "Див. також L</stat>."
11152
11153 #. type: =head2
11154 #: ../fish/guestfish-actions.pod:2445
11155 msgid "is-busy"
11156 msgstr "is-busy"
11157
11158 #. type: verbatim
11159 #: ../fish/guestfish-actions.pod:2447
11160 #, no-wrap
11161 msgid ""
11162 " is-busy\n"
11163 "\n"
11164 msgstr ""
11165 " is-busy\n"
11166 "\n"
11167
11168 #. type: textblock
11169 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3603
11170 msgid ""
11171 "This returns true iff this handle is busy processing a command (in the "
11172 "C<BUSY> state)."
11173 msgstr ""
11174
11175 #. type: =head2
11176 #: ../fish/guestfish-actions.pod:2454
11177 msgid "is-chardev"
11178 msgstr "is-chardev"
11179
11180 #. type: verbatim
11181 #: ../fish/guestfish-actions.pod:2456
11182 #, no-wrap
11183 msgid ""
11184 " is-chardev path\n"
11185 "\n"
11186 msgstr ""
11187 " is-chardev шлях\n"
11188 "\n"
11189
11190 #. type: textblock
11191 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3618
11192 msgid ""
11193 "This returns C<true> if and only if there is a character device with the "
11194 "given C<path> name."
11195 msgstr ""
11196
11197 #. type: =head2
11198 #: ../fish/guestfish-actions.pod:2463
11199 msgid "is-config"
11200 msgstr "is-config"
11201
11202 #. type: verbatim
11203 #: ../fish/guestfish-actions.pod:2465
11204 #, no-wrap
11205 msgid ""
11206 " is-config\n"
11207 "\n"
11208 msgstr ""
11209 " is-config\n"
11210 "\n"
11211
11212 #. type: textblock
11213 #: ../fish/guestfish-actions.pod:2467 ../src/guestfs-actions.pod:3632
11214 msgid ""
11215 "This returns true iff this handle is being configured (in the C<CONFIG> "
11216 "state)."
11217 msgstr ""
11218
11219 #. type: =head2
11220 #: ../fish/guestfish-actions.pod:2472
11221 msgid "is-dir"
11222 msgstr "is-dir"
11223
11224 #. type: verbatim
11225 #: ../fish/guestfish-actions.pod:2474
11226 #, no-wrap
11227 msgid ""
11228 " is-dir path\n"
11229 "\n"
11230 msgstr ""
11231 " is-dir шлях\n"
11232 "\n"
11233
11234 #. type: textblock
11235 #: ../fish/guestfish-actions.pod:2476 ../src/guestfs-actions.pod:3647
11236 msgid ""
11237 "This returns C<true> if and only if there is a directory with the given "
11238 "C<path> name.  Note that it returns false for other objects like files."
11239 msgstr ""
11240
11241 #. type: =head2
11242 #: ../fish/guestfish-actions.pod:2482
11243 msgid "is-fifo"
11244 msgstr "is-fifo"
11245
11246 #. type: verbatim
11247 #: ../fish/guestfish-actions.pod:2484
11248 #, no-wrap
11249 msgid ""
11250 " is-fifo path\n"
11251 "\n"
11252 msgstr ""
11253 " is-fifo шлях\n"
11254 "\n"
11255
11256 #. type: textblock
11257 #: ../fish/guestfish-actions.pod:2486 ../src/guestfs-actions.pod:3663
11258 msgid ""
11259 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
11260 "given C<path> name."
11261 msgstr ""
11262
11263 #. type: =head2
11264 #: ../fish/guestfish-actions.pod:2491
11265 msgid "is-file"
11266 msgstr "is-file"
11267
11268 #. type: verbatim
11269 #: ../fish/guestfish-actions.pod:2493
11270 #, no-wrap
11271 msgid ""
11272 " is-file path\n"
11273 "\n"
11274 msgstr ""
11275 " is-file шлях\n"
11276 "\n"
11277
11278 #. type: textblock
11279 #: ../fish/guestfish-actions.pod:2495 ../src/guestfs-actions.pod:3678
11280 msgid ""
11281 "This returns C<true> if and only if there is a regular file with the given "
11282 "C<path> name.  Note that it returns false for other objects like directories."
11283 msgstr ""
11284
11285 #. type: =head2
11286 #: ../fish/guestfish-actions.pod:2501
11287 msgid "is-launching"
11288 msgstr "is-launching"
11289
11290 #. type: verbatim
11291 #: ../fish/guestfish-actions.pod:2503
11292 #, no-wrap
11293 msgid ""
11294 " is-launching\n"
11295 "\n"
11296 msgstr ""
11297 " is-launching\n"
11298 "\n"
11299
11300 #. type: textblock
11301 #: ../fish/guestfish-actions.pod:2505 ../src/guestfs-actions.pod:3693
11302 msgid ""
11303 "This returns true iff this handle is launching the subprocess (in the "
11304 "C<LAUNCHING> state)."
11305 msgstr ""
11306
11307 #. type: =head2
11308 #: ../fish/guestfish-actions.pod:2510
11309 msgid "is-lv"
11310 msgstr "is-lv"
11311
11312 #. type: verbatim
11313 #: ../fish/guestfish-actions.pod:2512
11314 #, no-wrap
11315 msgid ""
11316 " is-lv device\n"
11317 "\n"
11318 msgstr ""
11319 " is-lv пристрій\n"
11320 "\n"
11321
11322 #. type: textblock
11323 #: ../fish/guestfish-actions.pod:2514 ../src/guestfs-actions.pod:3708
11324 msgid ""
11325 "This command tests whether C<device> is a logical volume, and returns true "
11326 "iff this is the case."
11327 msgstr ""
11328
11329 #. type: =head2
11330 #: ../fish/guestfish-actions.pod:2517
11331 msgid "is-ready"
11332 msgstr "is-ready"
11333
11334 #. type: verbatim
11335 #: ../fish/guestfish-actions.pod:2519
11336 #, no-wrap
11337 msgid ""
11338 " is-ready\n"
11339 "\n"
11340 msgstr ""
11341 " is-ready\n"
11342 "\n"
11343
11344 #. type: textblock
11345 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3720
11346 msgid ""
11347 "This returns true iff this handle is ready to accept commands (in the "
11348 "C<READY> state)."
11349 msgstr ""
11350
11351 #. type: =head2
11352 #: ../fish/guestfish-actions.pod:2526
11353 msgid "is-socket"
11354 msgstr "is-socket"
11355
11356 #. type: verbatim
11357 #: ../fish/guestfish-actions.pod:2528
11358 #, no-wrap
11359 msgid ""
11360 " is-socket path\n"
11361 "\n"
11362 msgstr ""
11363 " is-socket шлях\n"
11364 "\n"
11365
11366 #. type: textblock
11367 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3735
11368 msgid ""
11369 "This returns C<true> if and only if there is a Unix domain socket with the "
11370 "given C<path> name."
11371 msgstr ""
11372
11373 #. type: =head2
11374 #: ../fish/guestfish-actions.pod:2535
11375 msgid "is-symlink"
11376 msgstr "is-symlink"
11377
11378 #. type: verbatim
11379 #: ../fish/guestfish-actions.pod:2537
11380 #, no-wrap
11381 msgid ""
11382 " is-symlink path\n"
11383 "\n"
11384 msgstr ""
11385 " is-symlink шлях\n"
11386 "\n"
11387
11388 #. type: textblock
11389 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3750
11390 msgid ""
11391 "This returns C<true> if and only if there is a symbolic link with the given "
11392 "C<path> name."
11393 msgstr ""
11394
11395 #. type: =head2
11396 #: ../fish/guestfish-actions.pod:2544
11397 msgid "is-zero"
11398 msgstr ""
11399
11400 #. type: verbatim
11401 #: ../fish/guestfish-actions.pod:2546
11402 #, no-wrap
11403 msgid ""
11404 " is-zero path\n"
11405 "\n"
11406 msgstr ""
11407
11408 #. type: textblock
11409 #: ../fish/guestfish-actions.pod:2548 ../src/guestfs-actions.pod:3765
11410 msgid ""
11411 "This returns true iff the file exists and the file is empty or it contains "
11412 "all zero bytes."
11413 msgstr ""
11414
11415 #. type: =head2
11416 #: ../fish/guestfish-actions.pod:2551
11417 msgid "is-zero-device"
11418 msgstr ""
11419
11420 #. type: verbatim
11421 #: ../fish/guestfish-actions.pod:2553
11422 #, no-wrap
11423 msgid ""
11424 " is-zero-device device\n"
11425 "\n"
11426 msgstr ""
11427
11428 #. type: textblock
11429 #: ../fish/guestfish-actions.pod:2555 ../src/guestfs-actions.pod:3778
11430 msgid "This returns true iff the device exists and contains all zero bytes."
11431 msgstr ""
11432
11433 #. type: textblock
11434 #: ../fish/guestfish-actions.pod:2557 ../src/guestfs-actions.pod:3780
11435 msgid "Note that for large devices this can take a long time to run."
11436 msgstr ""
11437
11438 #. type: =head2
11439 #: ../fish/guestfish-actions.pod:2559
11440 msgid "kill-subprocess"
11441 msgstr "kill-subprocess"
11442
11443 #. type: verbatim
11444 #: ../fish/guestfish-actions.pod:2561
11445 #, no-wrap
11446 msgid ""
11447 " kill-subprocess\n"
11448 "\n"
11449 msgstr ""
11450 " kill-subprocess\n"
11451 "\n"
11452
11453 #. type: textblock
11454 #: ../fish/guestfish-actions.pod:2563 ../src/guestfs-actions.pod:3791
11455 msgid "This kills the qemu subprocess.  You should never need to call this."
11456 msgstr ""
11457
11458 #. type: =head2
11459 #: ../fish/guestfish-actions.pod:2565
11460 msgid "launch"
11461 msgstr "launch"
11462
11463 #. type: =head2
11464 #: ../fish/guestfish-actions.pod:2567
11465 msgid "run"
11466 msgstr ""
11467
11468 #. type: verbatim
11469 #: ../fish/guestfish-actions.pod:2569
11470 #, no-wrap
11471 msgid ""
11472 " launch\n"
11473 "\n"
11474 msgstr ""
11475 " launch\n"
11476 "\n"
11477
11478 #. type: textblock
11479 #: ../fish/guestfish-actions.pod:2571 ../src/guestfs-actions.pod:3802
11480 msgid ""
11481 "Internally libguestfs is implemented by running a virtual machine using "
11482 "L<qemu(1)>."
11483 msgstr ""
11484
11485 #. type: textblock
11486 #: ../fish/guestfish-actions.pod:2574 ../src/guestfs-actions.pod:3805
11487 msgid ""
11488 "You should call this after configuring the handle (eg. adding drives) but "
11489 "before performing any actions."
11490 msgstr ""
11491
11492 #. type: =head2
11493 #: ../fish/guestfish-actions.pod:2577
11494 msgid "lchown"
11495 msgstr "lchown"
11496
11497 #. type: verbatim
11498 #: ../fish/guestfish-actions.pod:2579
11499 #, no-wrap
11500 msgid ""
11501 " lchown owner group path\n"
11502 "\n"
11503 msgstr ""
11504 " lchown власник група шлях\n"
11505 "\n"
11506
11507 #. type: textblock
11508 #: ../fish/guestfish-actions.pod:2581
11509 msgid ""
11510 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
11511 "chown> but if C<path> is a symlink then the link itself is changed, not the "
11512 "target."
11513 msgstr ""
11514
11515 #. type: =head2
11516 #: ../fish/guestfish-actions.pod:2589
11517 msgid "lgetxattr"
11518 msgstr "lgetxattr"
11519
11520 #. type: verbatim
11521 #: ../fish/guestfish-actions.pod:2591
11522 #, no-wrap
11523 msgid ""
11524 " lgetxattr path name\n"
11525 "\n"
11526 msgstr ""
11527 " lgetxattr шлях назва\n"
11528 "\n"
11529
11530 #. type: textblock
11531 #: ../fish/guestfish-actions.pod:2593 ../src/guestfs-actions.pod:3845
11532 msgid ""
11533 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
11534 "is a symlink, then this call returns an extended attribute from the symlink."
11535 msgstr ""
11536
11537 #. type: textblock
11538 #: ../fish/guestfish-actions.pod:2607
11539 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11540 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
11541
11542 #. type: =head2
11543 #: ../fish/guestfish-actions.pod:2609
11544 msgid "lgetxattrs"
11545 msgstr "lgetxattrs"
11546
11547 #. type: verbatim
11548 #: ../fish/guestfish-actions.pod:2611
11549 #, no-wrap
11550 msgid ""
11551 " lgetxattrs path\n"
11552 "\n"
11553 msgstr ""
11554 " lgetxattrs шлях\n"
11555 "\n"
11556
11557 #. type: textblock
11558 #: ../fish/guestfish-actions.pod:2613
11559 msgid ""
11560 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
11561 "it returns the extended attributes of the link itself."
11562 msgstr ""
11563
11564 #. type: =head2
11565 #: ../fish/guestfish-actions.pod:2617
11566 msgid "list-9p"
11567 msgstr ""
11568
11569 #. type: verbatim
11570 #: ../fish/guestfish-actions.pod:2619
11571 #, no-wrap
11572 msgid ""
11573 " list-9p\n"
11574 "\n"
11575 msgstr ""
11576
11577 #. type: textblock
11578 #: ../fish/guestfish-actions.pod:2621 ../src/guestfs-actions.pod:3888
11579 msgid ""
11580 "List all 9p filesystems attached to the guest.  A list of mount tags is "
11581 "returned."
11582 msgstr ""
11583
11584 #. type: =head2
11585 #: ../fish/guestfish-actions.pod:2624
11586 msgid "list-devices"
11587 msgstr "list-devices"
11588
11589 #. type: verbatim
11590 #: ../fish/guestfish-actions.pod:2626
11591 #, no-wrap
11592 msgid ""
11593 " list-devices\n"
11594 "\n"
11595 msgstr ""
11596 " list-devices\n"
11597 "\n"
11598
11599 #. type: textblock
11600 #: ../fish/guestfish-actions.pod:2628 ../src/guestfs-actions.pod:3902
11601 msgid "List all the block devices."
11602 msgstr ""
11603
11604 #. type: textblock
11605 #: ../fish/guestfish-actions.pod:2630 ../src/guestfs-actions.pod:3904
11606 msgid "The full block device names are returned, eg. C</dev/sda>."
11607 msgstr ""
11608
11609 #. type: =head2
11610 #: ../fish/guestfish-actions.pod:2634
11611 msgid "list-dm-devices"
11612 msgstr ""
11613
11614 #. type: verbatim
11615 #: ../fish/guestfish-actions.pod:2636
11616 #, no-wrap
11617 msgid ""
11618 " list-dm-devices\n"
11619 "\n"
11620 msgstr ""
11621
11622 #. type: textblock
11623 #: ../fish/guestfish-actions.pod:2638 ../src/guestfs-actions.pod:3919
11624 msgid "List all device mapper devices."
11625 msgstr ""
11626
11627 #. type: textblock
11628 #: ../fish/guestfish-actions.pod:2640
11629 msgid ""
11630 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
11631 "previous call to L</luks-open>."
11632 msgstr ""
11633
11634 #. type: textblock
11635 #: ../fish/guestfish-actions.pod:2643
11636 msgid ""
11637 "Device mapper devices which correspond to logical volumes are I<not> "
11638 "returned in this list.  Call L</lvs> if you want to list logical volumes."
11639 msgstr ""
11640
11641 #. type: =head2
11642 #: ../fish/guestfish-actions.pod:2647
11643 msgid "list-filesystems"
11644 msgstr "list-filesystems"
11645
11646 #. type: verbatim
11647 #: ../fish/guestfish-actions.pod:2649
11648 #, no-wrap
11649 msgid ""
11650 " list-filesystems\n"
11651 "\n"
11652 msgstr ""
11653 " list-filesystems\n"
11654 "\n"
11655
11656 #. type: textblock
11657 #: ../fish/guestfish-actions.pod:2651 ../src/guestfs-actions.pod:3939
11658 msgid ""
11659 "This inspection command looks for filesystems on partitions, block devices "
11660 "and logical volumes, returning a list of devices containing filesystems and "
11661 "their type."
11662 msgstr ""
11663
11664 #. type: textblock
11665 #: ../fish/guestfish-actions.pod:2655 ../src/guestfs-actions.pod:3943
11666 msgid ""
11667 "The return value is a hash, where the keys are the devices containing "
11668 "filesystems, and the values are the filesystem types.  For example:"
11669 msgstr ""
11670
11671 #. type: verbatim
11672 #: ../fish/guestfish-actions.pod:2659 ../src/guestfs-actions.pod:3947
11673 #, no-wrap
11674 msgid ""
11675 " \"/dev/sda1\" => \"ntfs\"\n"
11676 " \"/dev/sda2\" => \"ext2\"\n"
11677 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
11678 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
11679 "\n"
11680 msgstr ""
11681
11682 #. type: textblock
11683 #: ../fish/guestfish-actions.pod:2664 ../src/guestfs-actions.pod:3952
11684 msgid ""
11685 "The value can have the special value \"unknown\", meaning the content of the "
11686 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
11687 msgstr ""
11688
11689 #. type: textblock
11690 #: ../fish/guestfish-actions.pod:2668
11691 msgid ""
11692 "This command runs other libguestfs commands, which might include L</mount> "
11693 "and L</umount>, and therefore you should use this soon after launch and only "
11694 "when nothing is mounted."
11695 msgstr ""
11696
11697 #. type: textblock
11698 #: ../fish/guestfish-actions.pod:2672
11699 msgid ""
11700 "Not all of the filesystems returned will be mountable.  In particular, swap "
11701 "partitions are returned in the list.  Also this command does not check that "
11702 "each filesystem found is valid and mountable, and some filesystems might be "
11703 "mountable but require special options.  Filesystems may not all belong to a "
11704 "single logical operating system (use L</inspect-os> to look for OSes)."
11705 msgstr ""
11706
11707 #. type: =head2
11708 #: ../fish/guestfish-actions.pod:2680
11709 msgid "list-partitions"
11710 msgstr "list-partitions"
11711
11712 #. type: verbatim
11713 #: ../fish/guestfish-actions.pod:2682
11714 #, no-wrap
11715 msgid ""
11716 " list-partitions\n"
11717 "\n"
11718 msgstr ""
11719 " list-partitions\n"
11720 "\n"
11721
11722 #. type: textblock
11723 #: ../fish/guestfish-actions.pod:2684 ../src/guestfs-actions.pod:3981
11724 msgid "List all the partitions detected on all block devices."
11725 msgstr ""
11726
11727 #. type: textblock
11728 #: ../fish/guestfish-actions.pod:2686 ../src/guestfs-actions.pod:3983
11729 msgid "The full partition device names are returned, eg. C</dev/sda1>"
11730 msgstr ""
11731
11732 #. type: textblock
11733 #: ../fish/guestfish-actions.pod:2688
11734 msgid ""
11735 "This does not return logical volumes.  For that you will need to call L</"
11736 "lvs>."
11737 msgstr ""
11738
11739 #. type: =head2
11740 #: ../fish/guestfish-actions.pod:2693
11741 msgid "ll"
11742 msgstr "ll"
11743
11744 #. type: verbatim
11745 #: ../fish/guestfish-actions.pod:2695
11746 #, no-wrap
11747 msgid ""
11748 " ll directory\n"
11749 "\n"
11750 msgstr ""
11751 " ll каталог\n"
11752 "\n"
11753
11754 #. type: textblock
11755 #: ../fish/guestfish-actions.pod:2697 ../src/guestfs-actions.pod:4002
11756 msgid ""
11757 "List the files in C<directory> (relative to the root directory, there is no "
11758 "cwd) in the format of 'ls -la'."
11759 msgstr ""
11760
11761 #. type: textblock
11762 #: ../fish/guestfish-actions.pod:2700 ../src/guestfs-actions.pod:4005
11763 msgid ""
11764 "This command is mostly useful for interactive sessions.  It is I<not> "
11765 "intended that you try to parse the output string."
11766 msgstr ""
11767
11768 #. type: =head2
11769 #: ../fish/guestfish-actions.pod:2703
11770 msgid "ln"
11771 msgstr "ln"
11772
11773 #. type: verbatim
11774 #: ../fish/guestfish-actions.pod:2705
11775 #, no-wrap
11776 msgid ""
11777 " ln target linkname\n"
11778 "\n"
11779 msgstr ""
11780 " ln призначення назва_посилання\n"
11781 "\n"
11782
11783 #. type: textblock
11784 #: ../fish/guestfish-actions.pod:2707 ../src/guestfs-actions.pod:4020
11785 msgid "This command creates a hard link using the C<ln> command."
11786 msgstr ""
11787
11788 #. type: =head2
11789 #: ../fish/guestfish-actions.pod:2709
11790 msgid "ln-f"
11791 msgstr "ln-f"
11792
11793 #. type: verbatim
11794 #: ../fish/guestfish-actions.pod:2711
11795 #, no-wrap
11796 msgid ""
11797 " ln-f target linkname\n"
11798 "\n"
11799 msgstr ""
11800 " ln-f призначення назва_посилання\n"
11801 "\n"
11802
11803 #. type: textblock
11804 #: ../fish/guestfish-actions.pod:2713 ../src/guestfs-actions.pod:4033
11805 msgid ""
11806 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11807 "option removes the link (C<linkname>) if it exists already."
11808 msgstr ""
11809
11810 #. type: =head2
11811 #: ../fish/guestfish-actions.pod:2716
11812 msgid "ln-s"
11813 msgstr "ln-s"
11814
11815 #. type: verbatim
11816 #: ../fish/guestfish-actions.pod:2718
11817 #, no-wrap
11818 msgid ""
11819 " ln-s target linkname\n"
11820 "\n"
11821 msgstr ""
11822 " ln-s призначення назва_посилання\n"
11823 "\n"
11824
11825 #. type: textblock
11826 #: ../fish/guestfish-actions.pod:2720 ../src/guestfs-actions.pod:4047
11827 msgid "This command creates a symbolic link using the C<ln -s> command."
11828 msgstr ""
11829
11830 #. type: =head2
11831 #: ../fish/guestfish-actions.pod:2722
11832 msgid "ln-sf"
11833 msgstr "ln-sf"
11834
11835 #. type: verbatim
11836 #: ../fish/guestfish-actions.pod:2724
11837 #, no-wrap
11838 msgid ""
11839 " ln-sf target linkname\n"
11840 "\n"
11841 msgstr ""
11842 " ln-sf призначення назва_посилання\n"
11843 "\n"
11844
11845 #. type: textblock
11846 #: ../fish/guestfish-actions.pod:2726 ../src/guestfs-actions.pod:4060
11847 msgid ""
11848 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11849 "option removes the link (C<linkname>) if it exists already."
11850 msgstr ""
11851
11852 #. type: =head2
11853 #: ../fish/guestfish-actions.pod:2729
11854 msgid "lremovexattr"
11855 msgstr "lremovexattr"
11856
11857 #. type: verbatim
11858 #: ../fish/guestfish-actions.pod:2731
11859 #, no-wrap
11860 msgid ""
11861 " lremovexattr xattr path\n"
11862 "\n"
11863 msgstr ""
11864
11865 #. type: textblock
11866 #: ../fish/guestfish-actions.pod:2733
11867 msgid ""
11868 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11869 "it removes an extended attribute of the link itself."
11870 msgstr ""
11871
11872 #. type: =head2
11873 #: ../fish/guestfish-actions.pod:2737
11874 msgid "ls"
11875 msgstr "ls"
11876
11877 #. type: verbatim
11878 #: ../fish/guestfish-actions.pod:2739
11879 #, no-wrap
11880 msgid ""
11881 " ls directory\n"
11882 "\n"
11883 msgstr ""
11884 " ls каталог\n"
11885 "\n"
11886
11887 #. type: textblock
11888 #: ../fish/guestfish-actions.pod:2741 ../src/guestfs-actions.pod:4088
11889 msgid ""
11890 "List the files in C<directory> (relative to the root directory, there is no "
11891 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
11892 msgstr ""
11893
11894 #. type: textblock
11895 #: ../fish/guestfish-actions.pod:2745
11896 msgid ""
11897 "This command is mostly useful for interactive sessions.  Programs should "
11898 "probably use L</readdir> instead."
11899 msgstr ""
11900
11901 #. type: =head2
11902 #: ../fish/guestfish-actions.pod:2748
11903 msgid "lsetxattr"
11904 msgstr "lsetxattr"
11905
11906 #. type: verbatim
11907 #: ../fish/guestfish-actions.pod:2750
11908 #, no-wrap
11909 msgid ""
11910 " lsetxattr xattr val vallen path\n"
11911 "\n"
11912 msgstr ""
11913
11914 #. type: textblock
11915 #: ../fish/guestfish-actions.pod:2752
11916 msgid ""
11917 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11918 "sets an extended attribute of the link itself."
11919 msgstr ""
11920
11921 #. type: =head2
11922 #: ../fish/guestfish-actions.pod:2756
11923 msgid "lstat"
11924 msgstr "lstat"
11925
11926 #. type: verbatim
11927 #: ../fish/guestfish-actions.pod:2758
11928 #, no-wrap
11929 msgid ""
11930 " lstat path\n"
11931 "\n"
11932 msgstr ""
11933 " lstat шлях\n"
11934 "\n"
11935
11936 #. type: textblock
11937 #: ../fish/guestfish-actions.pod:2760 ../fish/guestfish-actions.pod:4570
11938 #: ../src/guestfs-actions.pod:4124 ../src/guestfs-actions.pod:6909
11939 msgid "Returns file information for the given C<path>."
11940 msgstr ""
11941
11942 #. type: textblock
11943 #: ../fish/guestfish-actions.pod:2762
11944 msgid ""
11945 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11946 "the link is stat-ed, not the file it refers to."
11947 msgstr ""
11948
11949 #. type: textblock
11950 #: ../fish/guestfish-actions.pod:2766 ../src/guestfs-actions.pod:4130
11951 msgid "This is the same as the C<lstat(2)> system call."
11952 msgstr ""
11953
11954 #. type: =head2
11955 #: ../fish/guestfish-actions.pod:2768
11956 msgid "lstatlist"
11957 msgstr "lstatlist"
11958
11959 #. type: verbatim
11960 #: ../fish/guestfish-actions.pod:2770
11961 #, no-wrap
11962 msgid ""
11963 " lstatlist path 'names ...'\n"
11964 "\n"
11965 msgstr ""
11966
11967 #. type: textblock
11968 #: ../fish/guestfish-actions.pod:2772
11969 msgid ""
11970 "This call allows you to perform the L</lstat> operation on multiple files, "
11971 "where all files are in the directory C<path>.  C<names> is the list of files "
11972 "from this directory."
11973 msgstr ""
11974
11975 #. type: textblock
11976 #: ../fish/guestfish-actions.pod:2776 ../src/guestfs-actions.pod:4149
11977 msgid ""
11978 "On return you get a list of stat structs, with a one-to-one correspondence "
11979 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11980 "then the C<ino> field of that structure is set to C<-1>."
11981 msgstr ""
11982
11983 #. type: textblock
11984 #: ../fish/guestfish-actions.pod:2781
11985 msgid ""
11986 "This call is intended for programs that want to efficiently list a directory "
11987 "contents without making many round-trips.  See also L</lxattrlist> for a "
11988 "similarly efficient call for getting extended attributes.  Very long "
11989 "directory listings might cause the protocol message size to be exceeded, "
11990 "causing this call to fail.  The caller must split up such requests into "
11991 "smaller groups of names."
11992 msgstr ""
11993
11994 #. type: =head2
11995 #: ../fish/guestfish-actions.pod:2789
11996 msgid "luks-add-key"
11997 msgstr "luks-add-key"
11998
11999 #. type: verbatim
12000 #: ../fish/guestfish-actions.pod:2791
12001 #, no-wrap
12002 msgid ""
12003 " luks-add-key device keyslot\n"
12004 "\n"
12005 msgstr ""
12006
12007 #. type: textblock
12008 #: ../fish/guestfish-actions.pod:2793 ../src/guestfs-actions.pod:4177
12009 msgid ""
12010 "This command adds a new key on LUKS device C<device>.  C<key> is any "
12011 "existing key, and is used to access the device.  C<newkey> is the new key to "
12012 "add.  C<keyslot> is the key slot that will be replaced."
12013 msgstr ""
12014
12015 #. type: textblock
12016 #: ../fish/guestfish-actions.pod:2798
12017 msgid ""
12018 "Note that if C<keyslot> already contains a key, then this command will "
12019 "fail.  You have to use L</luks-kill-slot> first to remove that key."
12020 msgstr ""
12021
12022 #. type: textblock
12023 #: ../fish/guestfish-actions.pod:2802 ../fish/guestfish-actions.pod:2824
12024 #: ../fish/guestfish-actions.pod:2837 ../fish/guestfish-actions.pod:2851
12025 #: ../fish/guestfish-actions.pod:2877 ../fish/guestfish-actions.pod:2887
12026 msgid ""
12027 "This command has one or more key or passphrase parameters.  Guestfish will "
12028 "prompt for these separately."
12029 msgstr ""
12030
12031 #. type: =head2
12032 #: ../fish/guestfish-actions.pod:2805
12033 msgid "luks-close"
12034 msgstr "luks-close"
12035
12036 #. type: verbatim
12037 #: ../fish/guestfish-actions.pod:2807
12038 #, no-wrap
12039 msgid ""
12040 " luks-close device\n"
12041 "\n"
12042 msgstr ""
12043 " luks-close пристрій\n"
12044 "\n"
12045
12046 #. type: textblock
12047 #: ../fish/guestfish-actions.pod:2809
12048 msgid ""
12049 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
12050 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
12051 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
12052 "block device."
12053 msgstr ""
12054
12055 #. type: =head2
12056 #: ../fish/guestfish-actions.pod:2815
12057 msgid "luks-format"
12058 msgstr "luks-format"
12059
12060 #. type: verbatim
12061 #: ../fish/guestfish-actions.pod:2817
12062 #, no-wrap
12063 msgid ""
12064 " luks-format device keyslot\n"
12065 "\n"
12066 msgstr ""
12067
12068 #. type: textblock
12069 #: ../fish/guestfish-actions.pod:2819 ../src/guestfs-actions.pod:4218
12070 msgid ""
12071 "This command erases existing data on C<device> and formats the device as a "
12072 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
12073 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
12074 msgstr ""
12075
12076 #. type: textblock
12077 #: ../fish/guestfish-actions.pod:2827 ../fish/guestfish-actions.pod:2840
12078 #: ../fish/guestfish-actions.pod:2927 ../fish/guestfish-actions.pod:3578
12079 #: ../fish/guestfish-actions.pod:4104 ../fish/guestfish-actions.pod:4441
12080 #: ../fish/guestfish-actions.pod:4464 ../fish/guestfish-actions.pod:4486
12081 #: ../fish/guestfish-actions.pod:5232 ../src/guestfs-actions.pod:4225
12082 #: ../src/guestfs-actions.pod:4248 ../src/guestfs-actions.pod:4391
12083 #: ../src/guestfs-actions.pod:5484 ../src/guestfs-actions.pod:6272
12084 #: ../src/guestfs-actions.pod:6723 ../src/guestfs-actions.pod:6753
12085 #: ../src/guestfs-actions.pod:6786 ../src/guestfs-actions.pod:7985
12086 msgid ""
12087 "B<This command is dangerous.  Without careful use you can easily destroy all "
12088 "your data>."
12089 msgstr ""
12090
12091 #. type: =head2
12092 #: ../fish/guestfish-actions.pod:2830
12093 msgid "luks-format-cipher"
12094 msgstr "luks-format-cipher"
12095
12096 #. type: verbatim
12097 #: ../fish/guestfish-actions.pod:2832
12098 #, no-wrap
12099 msgid ""
12100 " luks-format-cipher device keyslot cipher\n"
12101 "\n"
12102 msgstr ""
12103
12104 #. type: textblock
12105 #: ../fish/guestfish-actions.pod:2834
12106 msgid ""
12107 "This command is the same as L</luks-format> but it also allows you to set "
12108 "the C<cipher> used."
12109 msgstr ""
12110
12111 #. type: =head2
12112 #: ../fish/guestfish-actions.pod:2843
12113 msgid "luks-kill-slot"
12114 msgstr "luks-kill-slot"
12115
12116 #. type: verbatim
12117 #: ../fish/guestfish-actions.pod:2845
12118 #, no-wrap
12119 msgid ""
12120 " luks-kill-slot device keyslot\n"
12121 "\n"
12122 msgstr ""
12123
12124 #. type: textblock
12125 #: ../fish/guestfish-actions.pod:2847 ../src/guestfs-actions.pod:4265
12126 msgid ""
12127 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
12128 "device C<device>.  C<key> must be one of the I<other> keys."
12129 msgstr ""
12130
12131 #. type: =head2
12132 #: ../fish/guestfish-actions.pod:2854
12133 msgid "luks-open"
12134 msgstr "luks-open"
12135
12136 #. type: verbatim
12137 #: ../fish/guestfish-actions.pod:2856
12138 #, no-wrap
12139 msgid ""
12140 " luks-open device mapname\n"
12141 "\n"
12142 msgstr ""
12143
12144 #. type: textblock
12145 #: ../fish/guestfish-actions.pod:2858 ../src/guestfs-actions.pod:4285
12146 msgid ""
12147 "This command opens a block device which has been encrypted according to the "
12148 "Linux Unified Key Setup (LUKS) standard."
12149 msgstr ""
12150
12151 #. type: textblock
12152 #: ../fish/guestfish-actions.pod:2861 ../src/guestfs-actions.pod:4288
12153 msgid "C<device> is the encrypted block device or partition."
12154 msgstr ""
12155
12156 #. type: textblock
12157 #: ../fish/guestfish-actions.pod:2863 ../src/guestfs-actions.pod:4290
12158 msgid ""
12159 "The caller must supply one of the keys associated with the LUKS block "
12160 "device, in the C<key> parameter."
12161 msgstr ""
12162
12163 #. type: textblock
12164 #: ../fish/guestfish-actions.pod:2866 ../src/guestfs-actions.pod:4293
12165 msgid ""
12166 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
12167 "writes to this block device are decrypted from and encrypted to the "
12168 "underlying C<device> respectively."
12169 msgstr ""
12170
12171 #. type: textblock
12172 #: ../fish/guestfish-actions.pod:2870
12173 msgid ""
12174 "If this block device contains LVM volume groups, then calling L</vgscan> "
12175 "followed by L</vg-activate-all> will make them visible."
12176 msgstr ""
12177
12178 #. type: textblock
12179 #: ../fish/guestfish-actions.pod:2874
12180 msgid "Use L</list-dm-devices> to list all device mapper devices."
12181 msgstr ""
12182
12183 #. type: =head2
12184 #: ../fish/guestfish-actions.pod:2880
12185 msgid "luks-open-ro"
12186 msgstr "luks-open-ro"
12187
12188 #. type: verbatim
12189 #: ../fish/guestfish-actions.pod:2882
12190 #, no-wrap
12191 msgid ""
12192 " luks-open-ro device mapname\n"
12193 "\n"
12194 msgstr ""
12195
12196 #. type: textblock
12197 #: ../fish/guestfish-actions.pod:2884
12198 msgid ""
12199 "This is the same as L</luks-open> except that a read-only mapping is created."
12200 msgstr ""
12201
12202 #. type: =head2
12203 #: ../fish/guestfish-actions.pod:2890
12204 msgid "lvcreate"
12205 msgstr "lvcreate"
12206
12207 #. type: verbatim
12208 #: ../fish/guestfish-actions.pod:2892
12209 #, no-wrap
12210 msgid ""
12211 " lvcreate logvol volgroup mbytes\n"
12212 "\n"
12213 msgstr ""
12214
12215 #. type: textblock
12216 #: ../fish/guestfish-actions.pod:2894 ../src/guestfs-actions.pod:4339
12217 msgid ""
12218 "This creates an LVM logical volume called C<logvol> on the volume group "
12219 "C<volgroup>, with C<size> megabytes."
12220 msgstr ""
12221
12222 #. type: =head2
12223 #: ../fish/guestfish-actions.pod:2897
12224 msgid "lvm-canonical-lv-name"
12225 msgstr "lvm-canonical-lv-name"
12226
12227 #. type: verbatim
12228 #: ../fish/guestfish-actions.pod:2899
12229 #, no-wrap
12230 msgid ""
12231 " lvm-canonical-lv-name lvname\n"
12232 "\n"
12233 msgstr ""
12234
12235 #. type: textblock
12236 #: ../fish/guestfish-actions.pod:2901 ../src/guestfs-actions.pod:4352
12237 msgid ""
12238 "This converts alternative naming schemes for LVs that you might find to the "
12239 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
12240 "LV>."
12241 msgstr ""
12242
12243 #. type: textblock
12244 #: ../fish/guestfish-actions.pod:2905 ../src/guestfs-actions.pod:4356
12245 msgid ""
12246 "This command returns an error if the C<lvname> parameter does not refer to a "
12247 "logical volume."
12248 msgstr ""
12249
12250 #. type: textblock
12251 #: ../fish/guestfish-actions.pod:2908
12252 msgid "See also L</is-lv>."
12253 msgstr "Див. також L</is-lv>."
12254
12255 #. type: =head2
12256 #: ../fish/guestfish-actions.pod:2910
12257 msgid "lvm-clear-filter"
12258 msgstr "lvm-clear-filter"
12259
12260 #. type: verbatim
12261 #: ../fish/guestfish-actions.pod:2912
12262 #, no-wrap
12263 msgid ""
12264 " lvm-clear-filter\n"
12265 "\n"
12266 msgstr ""
12267 " lvm-clear-filter\n"
12268 "\n"
12269
12270 #. type: textblock
12271 #: ../fish/guestfish-actions.pod:2914
12272 msgid ""
12273 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
12274 "block device."
12275 msgstr ""
12276
12277 #. type: textblock
12278 #: ../fish/guestfish-actions.pod:2917 ../fish/guestfish-actions.pod:2948
12279 #: ../src/guestfs-actions.pod:4374 ../src/guestfs-actions.pod:4416
12280 msgid ""
12281 "This command also clears the LVM cache and performs a volume group scan."
12282 msgstr ""
12283
12284 #. type: =head2
12285 #: ../fish/guestfish-actions.pod:2920
12286 msgid "lvm-remove-all"
12287 msgstr "lvm-remove-all"
12288
12289 #. type: verbatim
12290 #: ../fish/guestfish-actions.pod:2922
12291 #, no-wrap
12292 msgid ""
12293 " lvm-remove-all\n"
12294 "\n"
12295 msgstr ""
12296 " lvm-remove-all\n"
12297 "\n"
12298
12299 #. type: textblock
12300 #: ../fish/guestfish-actions.pod:2924 ../src/guestfs-actions.pod:4386
12301 msgid ""
12302 "This command removes all LVM logical volumes, volume groups and physical "
12303 "volumes."
12304 msgstr ""
12305
12306 #. type: =head2
12307 #: ../fish/guestfish-actions.pod:2930
12308 msgid "lvm-set-filter"
12309 msgstr "lvm-set-filter"
12310
12311 #. type: verbatim
12312 #: ../fish/guestfish-actions.pod:2932
12313 #, no-wrap
12314 msgid ""
12315 " lvm-set-filter 'devices ...'\n"
12316 "\n"
12317 msgstr ""
12318 " lvm-set-filter 'пристрої...'\n"
12319 "\n"
12320
12321 #. type: textblock
12322 #: ../fish/guestfish-actions.pod:2934 ../src/guestfs-actions.pod:4402
12323 msgid ""
12324 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
12325 "block devices in the list C<devices>, and will ignore all other attached "
12326 "block devices."
12327 msgstr ""
12328
12329 #. type: textblock
12330 #: ../fish/guestfish-actions.pod:2938 ../src/guestfs-actions.pod:4406
12331 msgid ""
12332 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
12333 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
12334 "there are two types of duplication possible: either cloned PVs/VGs which "
12335 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
12336 "same name.  In normal operation you cannot create this situation, but you "
12337 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
12338 "inside the LVM metadata."
12339 msgstr ""
12340
12341 #. type: textblock
12342 #: ../fish/guestfish-actions.pod:2951 ../src/guestfs-actions.pod:4419
12343 msgid "You can filter whole block devices or individual partitions."
12344 msgstr ""
12345
12346 #. type: textblock
12347 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4421
12348 msgid ""
12349 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
12350 "filesystem), even if you are not filtering out that VG."
12351 msgstr ""
12352
12353 #. type: =head2
12354 #: ../fish/guestfish-actions.pod:2957
12355 msgid "lvremove"
12356 msgstr "lvremove"
12357
12358 #. type: verbatim
12359 #: ../fish/guestfish-actions.pod:2959
12360 #, no-wrap
12361 msgid ""
12362 " lvremove device\n"
12363 "\n"
12364 msgstr ""
12365 " lvremove пристрій\n"
12366 "\n"
12367
12368 #. type: textblock
12369 #: ../fish/guestfish-actions.pod:2961 ../src/guestfs-actions.pod:4435
12370 msgid ""
12371 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
12372 "LV, such as C</dev/VG/LV>."
12373 msgstr ""
12374
12375 #. type: textblock
12376 #: ../fish/guestfish-actions.pod:2964 ../src/guestfs-actions.pod:4438
12377 msgid ""
12378 "You can also remove all LVs in a volume group by specifying the VG name, C</"
12379 "dev/VG>."
12380 msgstr ""
12381
12382 #. type: =head2
12383 #: ../fish/guestfish-actions.pod:2967
12384 msgid "lvrename"
12385 msgstr "lvrename"
12386
12387 #. type: verbatim
12388 #: ../fish/guestfish-actions.pod:2969
12389 #, no-wrap
12390 msgid ""
12391 " lvrename logvol newlogvol\n"
12392 "\n"
12393 msgstr ""
12394
12395 #. type: textblock
12396 #: ../fish/guestfish-actions.pod:2971 ../src/guestfs-actions.pod:4452
12397 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
12398 msgstr ""
12399
12400 #. type: =head2
12401 #: ../fish/guestfish-actions.pod:2973
12402 msgid "lvresize"
12403 msgstr "lvresize"
12404
12405 #. type: verbatim
12406 #: ../fish/guestfish-actions.pod:2975
12407 #, no-wrap
12408 msgid ""
12409 " lvresize device mbytes\n"
12410 "\n"
12411 msgstr ""
12412
12413 #. type: textblock
12414 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4465
12415 msgid ""
12416 "This resizes (expands or shrinks) an existing LVM logical volume to "
12417 "C<mbytes>.  When reducing, data in the reduced part is lost."
12418 msgstr ""
12419
12420 #. type: =head2
12421 #: ../fish/guestfish-actions.pod:2981
12422 msgid "lvresize-free"
12423 msgstr "lvresize-free"
12424
12425 #. type: verbatim
12426 #: ../fish/guestfish-actions.pod:2983
12427 #, no-wrap
12428 msgid ""
12429 " lvresize-free lv percent\n"
12430 "\n"
12431 msgstr ""
12432
12433 #. type: textblock
12434 #: ../fish/guestfish-actions.pod:2985 ../src/guestfs-actions.pod:4480
12435 msgid ""
12436 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
12437 "remaining free space in the volume group.  Commonly you would call this with "
12438 "pc = 100 which expands the logical volume as much as possible, using all "
12439 "remaining free space in the volume group."
12440 msgstr ""
12441
12442 #. type: =head2
12443 #: ../fish/guestfish-actions.pod:2991
12444 msgid "lvs"
12445 msgstr "lvs"
12446
12447 #. type: verbatim
12448 #: ../fish/guestfish-actions.pod:2993
12449 #, no-wrap
12450 msgid ""
12451 " lvs\n"
12452 "\n"
12453 msgstr ""
12454 " lvs\n"
12455 "\n"
12456
12457 #. type: textblock
12458 #: ../fish/guestfish-actions.pod:2995 ../src/guestfs-actions.pod:4495
12459 msgid ""
12460 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12461 "(8)> command."
12462 msgstr ""
12463
12464 #. type: textblock
12465 #: ../fish/guestfish-actions.pod:2998 ../src/guestfs-actions.pod:4498
12466 msgid ""
12467 "This returns a list of the logical volume device names (eg. C</dev/"
12468 "VolGroup00/LogVol00>)."
12469 msgstr ""
12470
12471 #. type: textblock
12472 #: ../fish/guestfish-actions.pod:3001
12473 msgid "See also L</lvs-full>, L</list-filesystems>."
12474 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
12475
12476 #. type: =head2
12477 #: ../fish/guestfish-actions.pod:3003
12478 msgid "lvs-full"
12479 msgstr "lvs-full"
12480
12481 #. type: verbatim
12482 #: ../fish/guestfish-actions.pod:3005
12483 #, no-wrap
12484 msgid ""
12485 " lvs-full\n"
12486 "\n"
12487 msgstr ""
12488 " lvs-full\n"
12489 "\n"
12490
12491 #. type: textblock
12492 #: ../fish/guestfish-actions.pod:3007 ../src/guestfs-actions.pod:4514
12493 msgid ""
12494 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
12495 "(8)> command.  The \"full\" version includes all fields."
12496 msgstr ""
12497
12498 #. type: =head2
12499 #: ../fish/guestfish-actions.pod:3010
12500 msgid "lvuuid"
12501 msgstr "lvuuid"
12502
12503 #. type: verbatim
12504 #: ../fish/guestfish-actions.pod:3012
12505 #, no-wrap
12506 msgid ""
12507 " lvuuid device\n"
12508 "\n"
12509 msgstr ""
12510 " lvuuid пристрій\n"
12511 "\n"
12512
12513 #. type: textblock
12514 #: ../fish/guestfish-actions.pod:3014 ../src/guestfs-actions.pod:4529
12515 msgid "This command returns the UUID of the LVM LV C<device>."
12516 msgstr ""
12517
12518 #. type: =head2
12519 #: ../fish/guestfish-actions.pod:3016
12520 msgid "lxattrlist"
12521 msgstr "lxattrlist"
12522
12523 #. type: verbatim
12524 #: ../fish/guestfish-actions.pod:3018
12525 #, no-wrap
12526 msgid ""
12527 " lxattrlist path 'names ...'\n"
12528 "\n"
12529 msgstr ""
12530
12531 #. type: textblock
12532 #: ../fish/guestfish-actions.pod:3020 ../src/guestfs-actions.pod:4543
12533 msgid ""
12534 "This call allows you to get the extended attributes of multiple files, where "
12535 "all files are in the directory C<path>.  C<names> is the list of files from "
12536 "this directory."
12537 msgstr ""
12538
12539 #. type: textblock
12540 #: ../fish/guestfish-actions.pod:3024 ../src/guestfs-actions.pod:4547
12541 msgid ""
12542 "On return you get a flat list of xattr structs which must be interpreted "
12543 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
12544 "C<attrval> in this struct is zero-length to indicate there was an error "
12545 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
12546 "number (the number of following attributes for this file, which could be C<"
12547 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
12548 "for the first named file.  This repeats for the second and subsequent files."
12549 msgstr ""
12550
12551 #. type: textblock
12552 #: ../fish/guestfish-actions.pod:3034
12553 msgid ""
12554 "This call is intended for programs that want to efficiently list a directory "
12555 "contents without making many round-trips.  See also L</lstatlist> for a "
12556 "similarly efficient call for getting standard stats.  Very long directory "
12557 "listings might cause the protocol message size to be exceeded, causing this "
12558 "call to fail.  The caller must split up such requests into smaller groups of "
12559 "names."
12560 msgstr ""
12561
12562 #. type: =head2
12563 #: ../fish/guestfish-actions.pod:3042
12564 msgid "mkdir"
12565 msgstr "mkdir"
12566
12567 #. type: verbatim
12568 #: ../fish/guestfish-actions.pod:3044
12569 #, no-wrap
12570 msgid ""
12571 " mkdir path\n"
12572 "\n"
12573 msgstr ""
12574 " mkdir шлях\n"
12575 "\n"
12576
12577 #. type: textblock
12578 #: ../fish/guestfish-actions.pod:3046 ../src/guestfs-actions.pod:4577
12579 msgid "Create a directory named C<path>."
12580 msgstr ""
12581
12582 #. type: =head2
12583 #: ../fish/guestfish-actions.pod:3048
12584 msgid "mkdir-mode"
12585 msgstr "mkdir-mode"
12586
12587 #. type: verbatim
12588 #: ../fish/guestfish-actions.pod:3050
12589 #, no-wrap
12590 msgid ""
12591 " mkdir-mode path mode\n"
12592 "\n"
12593 msgstr ""
12594 " mkdir-mode шлях режим\n"
12595 "\n"
12596
12597 #. type: textblock
12598 #: ../fish/guestfish-actions.pod:3052 ../src/guestfs-actions.pod:4590
12599 msgid ""
12600 "This command creates a directory, setting the initial permissions of the "
12601 "directory to C<mode>."
12602 msgstr ""
12603
12604 #. type: textblock
12605 #: ../fish/guestfish-actions.pod:3055 ../src/guestfs-actions.pod:4593
12606 msgid ""
12607 "For common Linux filesystems, the actual mode which is set will be C<mode & "
12608 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
12609 "other ways."
12610 msgstr ""
12611
12612 #. type: textblock
12613 #: ../fish/guestfish-actions.pod:3059
12614 msgid "See also L</mkdir>, L</umask>"
12615 msgstr "Див. також L</mkdir>, L</umask>"
12616
12617 #. type: =head2
12618 #: ../fish/guestfish-actions.pod:3061
12619 msgid "mkdir-p"
12620 msgstr "mkdir-p"
12621
12622 #. type: verbatim
12623 #: ../fish/guestfish-actions.pod:3063
12624 #, no-wrap
12625 msgid ""
12626 " mkdir-p path\n"
12627 "\n"
12628 msgstr ""
12629 " mkdir-p шлях\n"
12630 "\n"
12631
12632 #. type: textblock
12633 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4609
12634 msgid ""
12635 "Create a directory named C<path>, creating any parent directories as "
12636 "necessary.  This is like the C<mkdir -p> shell command."
12637 msgstr ""
12638
12639 #. type: =head2
12640 #: ../fish/guestfish-actions.pod:3068
12641 msgid "mkdtemp"
12642 msgstr "mkdtemp"
12643
12644 #. type: verbatim
12645 #: ../fish/guestfish-actions.pod:3070
12646 #, no-wrap
12647 msgid ""
12648 " mkdtemp template\n"
12649 "\n"
12650 msgstr ""
12651 " mkdtemp шаблон\n"
12652 "\n"
12653
12654 #. type: textblock
12655 #: ../fish/guestfish-actions.pod:3072 ../src/guestfs-actions.pod:4622
12656 msgid ""
12657 "This command creates a temporary directory.  The C<template> parameter "
12658 "should be a full pathname for the temporary directory name with the final "
12659 "six characters being \"XXXXXX\"."
12660 msgstr ""
12661
12662 #. type: textblock
12663 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4627
12664 msgid ""
12665 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
12666 "being suitable for Windows filesystems."
12667 msgstr ""
12668
12669 #. type: textblock
12670 #: ../fish/guestfish-actions.pod:3080 ../src/guestfs-actions.pod:4630
12671 msgid "The name of the temporary directory that was created is returned."
12672 msgstr ""
12673
12674 #. type: textblock
12675 #: ../fish/guestfish-actions.pod:3083 ../src/guestfs-actions.pod:4633
12676 msgid "The temporary directory is created with mode 0700 and is owned by root."
12677 msgstr ""
12678
12679 #. type: textblock
12680 #: ../fish/guestfish-actions.pod:3086 ../src/guestfs-actions.pod:4636
12681 msgid ""
12682 "The caller is responsible for deleting the temporary directory and its "
12683 "contents after use."
12684 msgstr ""
12685
12686 #. type: textblock
12687 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4639
12688 msgid "See also: L<mkdtemp(3)>"
12689 msgstr "Див. також L<mkdtemp(3)>"
12690
12691 #. type: =head2
12692 #: ../fish/guestfish-actions.pod:3091
12693 msgid "mke2fs-J"
12694 msgstr "mke2fs-J"
12695
12696 #. type: verbatim
12697 #: ../fish/guestfish-actions.pod:3093
12698 #, no-wrap
12699 msgid ""
12700 " mke2fs-J fstype blocksize device journal\n"
12701 "\n"
12702 msgstr ""
12703
12704 #. type: textblock
12705 #: ../fish/guestfish-actions.pod:3095 ../src/guestfs-actions.pod:4655
12706 msgid ""
12707 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12708 "C<journal>.  It is equivalent to the command:"
12709 msgstr ""
12710
12711 #. type: verbatim
12712 #: ../fish/guestfish-actions.pod:3099 ../src/guestfs-actions.pod:4659
12713 #, no-wrap
12714 msgid ""
12715 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
12716 "\n"
12717 msgstr ""
12718 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
12719 "\n"
12720
12721 #. type: textblock
12722 #: ../fish/guestfish-actions.pod:3101
12723 msgid "See also L</mke2journal>."
12724 msgstr "Див. також L</mke2journal>."
12725
12726 #. type: =head2
12727 #: ../fish/guestfish-actions.pod:3103
12728 msgid "mke2fs-JL"
12729 msgstr "mke2fs-JL"
12730
12731 #. type: verbatim
12732 #: ../fish/guestfish-actions.pod:3105
12733 #, no-wrap
12734 msgid ""
12735 " mke2fs-JL fstype blocksize device label\n"
12736 "\n"
12737 msgstr ""
12738
12739 #. type: textblock
12740 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4676
12741 msgid ""
12742 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12743 "the journal labeled C<label>."
12744 msgstr ""
12745
12746 #. type: textblock
12747 #: ../fish/guestfish-actions.pod:3110
12748 msgid "See also L</mke2journal-L>."
12749 msgstr "Див. також L</mke2journal-L>."
12750
12751 #. type: =head2
12752 #: ../fish/guestfish-actions.pod:3112
12753 msgid "mke2fs-JU"
12754 msgstr "mke2fs-JU"
12755
12756 #. type: verbatim
12757 #: ../fish/guestfish-actions.pod:3114
12758 #, no-wrap
12759 msgid ""
12760 " mke2fs-JU fstype blocksize device uuid\n"
12761 "\n"
12762 msgstr ""
12763
12764 #. type: textblock
12765 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4694
12766 msgid ""
12767 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12768 "the journal with UUID C<uuid>."
12769 msgstr ""
12770
12771 #. type: textblock
12772 #: ../fish/guestfish-actions.pod:3119
12773 msgid "See also L</mke2journal-U>."
12774 msgstr "Див. також L</mke2journal-U>."
12775
12776 #. type: =head2
12777 #: ../fish/guestfish-actions.pod:3121
12778 msgid "mke2journal"
12779 msgstr "mke2journal"
12780
12781 #. type: verbatim
12782 #: ../fish/guestfish-actions.pod:3123
12783 #, no-wrap
12784 msgid ""
12785 " mke2journal blocksize device\n"
12786 "\n"
12787 msgstr ""
12788
12789 #. type: textblock
12790 #: ../fish/guestfish-actions.pod:3125 ../src/guestfs-actions.pod:4710
12791 msgid ""
12792 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12793 "command:"
12794 msgstr ""
12795
12796 #. type: verbatim
12797 #: ../fish/guestfish-actions.pod:3128 ../src/guestfs-actions.pod:4713
12798 #, no-wrap
12799 msgid ""
12800 " mke2fs -O journal_dev -b blocksize device\n"
12801 "\n"
12802 msgstr ""
12803
12804 #. type: =head2
12805 #: ../fish/guestfish-actions.pod:3130
12806 msgid "mke2journal-L"
12807 msgstr "mke2journal-L"
12808
12809 #. type: verbatim
12810 #: ../fish/guestfish-actions.pod:3132
12811 #, no-wrap
12812 msgid ""
12813 " mke2journal-L blocksize label device\n"
12814 "\n"
12815 msgstr ""
12816
12817 #. type: textblock
12818 #: ../fish/guestfish-actions.pod:3134 ../src/guestfs-actions.pod:4727
12819 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12820 msgstr ""
12821
12822 #. type: =head2
12823 #: ../fish/guestfish-actions.pod:3136
12824 msgid "mke2journal-U"
12825 msgstr "mke2journal-U"
12826
12827 #. type: verbatim
12828 #: ../fish/guestfish-actions.pod:3138
12829 #, no-wrap
12830 msgid ""
12831 " mke2journal-U blocksize uuid device\n"
12832 "\n"
12833 msgstr ""
12834
12835 #. type: textblock
12836 #: ../fish/guestfish-actions.pod:3140 ../src/guestfs-actions.pod:4741
12837 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12838 msgstr ""
12839
12840 #. type: =head2
12841 #: ../fish/guestfish-actions.pod:3142
12842 msgid "mkfifo"
12843 msgstr "mkfifo"
12844
12845 #. type: verbatim
12846 #: ../fish/guestfish-actions.pod:3144
12847 #, no-wrap
12848 msgid ""
12849 " mkfifo mode path\n"
12850 "\n"
12851 msgstr ""
12852 " mkfifo режим шлях\n"
12853 "\n"
12854
12855 #. type: textblock
12856 #: ../fish/guestfish-actions.pod:3146
12857 msgid ""
12858 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12859 "is just a convenient wrapper around L</mknod>."
12860 msgstr ""
12861
12862 #. type: =head2
12863 #: ../fish/guestfish-actions.pod:3152
12864 msgid "mkfs"
12865 msgstr "mkfs"
12866
12867 #. type: verbatim
12868 #: ../fish/guestfish-actions.pod:3154
12869 #, no-wrap
12870 msgid ""
12871 " mkfs fstype device\n"
12872 "\n"
12873 msgstr ""
12874 " mkfs тип_файлової_системи пристрій\n"
12875 "\n"
12876
12877 #. type: textblock
12878 #: ../fish/guestfish-actions.pod:3156 ../src/guestfs-actions.pod:4771
12879 msgid ""
12880 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12881 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12882 msgstr ""
12883
12884 #. type: =head2
12885 #: ../fish/guestfish-actions.pod:3160
12886 msgid "mkfs-b"
12887 msgstr "mkfs-b"
12888
12889 #. type: verbatim
12890 #: ../fish/guestfish-actions.pod:3162
12891 #, no-wrap
12892 msgid ""
12893 " mkfs-b fstype blocksize device\n"
12894 "\n"
12895 msgstr ""
12896
12897 #. type: textblock
12898 #: ../fish/guestfish-actions.pod:3164
12899 msgid ""
12900 "This call is similar to L</mkfs>, but it allows you to control the block "
12901 "size of the resulting filesystem.  Supported block sizes depend on the "
12902 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12903 msgstr ""
12904
12905 #. type: textblock
12906 #: ../fish/guestfish-actions.pod:3169 ../fish/guestfish-actions.pod:3196
12907 #: ../src/guestfs-actions.pod:4799 ../src/guestfs-actions.pod:4837
12908 msgid ""
12909 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12910 "cluster size."
12911 msgstr ""
12912
12913 #. type: textblock
12914 #: ../fish/guestfish-actions.pod:3172
12915 msgid ""
12916 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
12917 "instead."
12918 msgstr ""
12919
12920 #. type: =head2
12921 #: ../fish/guestfish-actions.pod:3179
12922 msgid "mkfs-opts"
12923 msgstr "mkfs-opts"
12924
12925 #. type: verbatim
12926 #: ../fish/guestfish-actions.pod:3181
12927 #, no-wrap
12928 msgid ""
12929 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
12930 "\n"
12931 msgstr ""
12932
12933 #. type: textblock
12934 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4824
12935 msgid ""
12936 "This function creates a filesystem on C<device>.  The filesystem type is "
12937 "C<fstype>, for example C<ext3>."
12938 msgstr ""
12939
12940 #. type: =item
12941 #: ../fish/guestfish-actions.pod:3190 ../src/guestfs-actions.pod:4831
12942 msgid "C<blocksize>"
12943 msgstr "C<blocksize>"
12944
12945 #. type: textblock
12946 #: ../fish/guestfish-actions.pod:3192 ../src/guestfs-actions.pod:4833
12947 msgid ""
12948 "The filesystem block size.  Supported block sizes depend on the filesystem "
12949 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12950 "filesystems."
12951 msgstr ""
12952
12953 #. type: textblock
12954 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4840
12955 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12956 msgstr ""
12957
12958 #. type: =item
12959 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4842
12960 msgid "C<features>"
12961 msgstr "C<features>"
12962
12963 #. type: textblock
12964 #: ../fish/guestfish-actions.pod:3203 ../src/guestfs-actions.pod:4844
12965 msgid "This passes the I<-O> parameter to the external mkfs program."
12966 msgstr ""
12967
12968 #. type: textblock
12969 #: ../fish/guestfish-actions.pod:3205 ../src/guestfs-actions.pod:4846
12970 msgid ""
12971 "For certain filesystem types, this allows extra filesystem features to be "
12972 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12973 msgstr ""
12974
12975 #. type: textblock
12976 #: ../fish/guestfish-actions.pod:3209 ../src/guestfs-actions.pod:4850
12977 msgid ""
12978 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
12979 "type."
12980 msgstr ""
12981
12982 #. type: =item
12983 #: ../fish/guestfish-actions.pod:3212 ../src/guestfs-actions.pod:4853
12984 msgid "C<inode>"
12985 msgstr "C<inode>"
12986
12987 #. type: textblock
12988 #: ../fish/guestfish-actions.pod:3214 ../src/guestfs-actions.pod:4855
12989 msgid ""
12990 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
12991 "sets the inode size (only for ext2/3/4 filesystems at present)."
12992 msgstr ""
12993
12994 #. type: =item
12995 #: ../fish/guestfish-actions.pod:3217 ../src/guestfs-actions.pod:4858
12996 msgid "C<sectorsize>"
12997 msgstr "C<sectorsize>"
12998
12999 #. type: textblock
13000 #: ../fish/guestfish-actions.pod:3219 ../src/guestfs-actions.pod:4860
13001 msgid ""
13002 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
13003 "sets sector size for ufs filesystem."
13004 msgstr ""
13005
13006 #. type: =head2
13007 #: ../fish/guestfish-actions.pod:3226
13008 msgid "mkmountpoint"
13009 msgstr "mkmountpoint"
13010
13011 #. type: verbatim
13012 #: ../fish/guestfish-actions.pod:3228
13013 #, no-wrap
13014 msgid ""
13015 " mkmountpoint exemptpath\n"
13016 "\n"
13017 msgstr ""
13018
13019 #. type: textblock
13020 #: ../fish/guestfish-actions.pod:3230
13021 msgid ""
13022 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
13023 "to create extra mountpoints before mounting the first filesystem."
13024 msgstr ""
13025
13026 #. type: textblock
13027 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4903
13028 msgid ""
13029 "These calls are I<only> necessary in some very limited circumstances, mainly "
13030 "the case where you want to mount a mix of unrelated and/or read-only "
13031 "filesystems together."
13032 msgstr ""
13033
13034 #. type: textblock
13035 #: ../fish/guestfish-actions.pod:3238 ../src/guestfs-actions.pod:4907
13036 msgid ""
13037 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
13038 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
13039 "inside that.  You can unpack this as follows in guestfish:"
13040 msgstr ""
13041
13042 #. type: verbatim
13043 #: ../fish/guestfish-actions.pod:3243 ../src/guestfs-actions.pod:4912
13044 #, no-wrap
13045 msgid ""
13046 " add-ro Fedora-11-i686-Live.iso\n"
13047 " run\n"
13048 " mkmountpoint /cd\n"
13049 " mkmountpoint /sqsh\n"
13050 " mkmountpoint /ext3fs\n"
13051 " mount /dev/sda /cd\n"
13052 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13053 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13054 "\n"
13055 msgstr ""
13056 " add-ro Fedora-11-i686-Live.iso\n"
13057 " run\n"
13058 " mkmountpoint /cd\n"
13059 " mkmountpoint /sqsh\n"
13060 " mkmountpoint /ext3fs\n"
13061 " mount /dev/sda /cd\n"
13062 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
13063 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
13064 "\n"
13065
13066 #. type: textblock
13067 #: ../fish/guestfish-actions.pod:3252 ../src/guestfs-actions.pod:4921
13068 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
13069 msgstr ""
13070
13071 #. type: textblock
13072 #: ../fish/guestfish-actions.pod:3254
13073 msgid ""
13074 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
13075 "unexpected errors if you try to mix these calls.  It is safest to manually "
13076 "unmount filesystems and remove mountpoints after use."
13077 msgstr ""
13078
13079 #. type: textblock
13080 #: ../fish/guestfish-actions.pod:3258
13081 msgid ""
13082 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
13083 "for this to work for manual mountpoints, you must ensure that the innermost "
13084 "mountpoints have the longest pathnames, as in the example code above."
13085 msgstr ""
13086
13087 #. type: textblock
13088 #: ../fish/guestfish-actions.pod:3263 ../src/guestfs-actions.pod:4932
13089 msgid ""
13090 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
13091 msgstr ""
13092
13093 #. type: textblock
13094 #: ../fish/guestfish-actions.pod:3265
13095 msgid ""
13096 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
13097 "L</umount-all> to be called when the handle is closed which can also trigger "
13098 "these issues."
13099 msgstr ""
13100
13101 #. type: =head2
13102 #: ../fish/guestfish-actions.pod:3269
13103 msgid "mknod"
13104 msgstr "mknod"
13105
13106 #. type: verbatim
13107 #: ../fish/guestfish-actions.pod:3271
13108 #, no-wrap
13109 msgid ""
13110 " mknod mode devmajor devminor path\n"
13111 "\n"
13112 msgstr ""
13113
13114 #. type: textblock
13115 #: ../fish/guestfish-actions.pod:3273 ../src/guestfs-actions.pod:4951
13116 msgid ""
13117 "This call creates block or character special devices, or named pipes (FIFOs)."
13118 msgstr ""
13119
13120 #. type: textblock
13121 #: ../fish/guestfish-actions.pod:3276 ../src/guestfs-actions.pod:4954
13122 msgid ""
13123 "The C<mode> parameter should be the mode, using the standard constants.  "
13124 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
13125 "used when creating block and character special devices."
13126 msgstr ""
13127
13128 #. type: textblock
13129 #: ../fish/guestfish-actions.pod:3281
13130 msgid ""
13131 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
13132 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
13133 "regular file).  These constants are available in the standard Linux header "
13134 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
13135 "wrappers around this command which bitwise OR in the appropriate constant "
13136 "for you."
13137 msgstr ""
13138
13139 #. type: =head2
13140 #: ../fish/guestfish-actions.pod:3291
13141 msgid "mknod-b"
13142 msgstr "mknod-b"
13143
13144 #. type: verbatim
13145 #: ../fish/guestfish-actions.pod:3293
13146 #, no-wrap
13147 msgid ""
13148 " mknod-b mode devmajor devminor path\n"
13149 "\n"
13150 msgstr ""
13151
13152 #. type: textblock
13153 #: ../fish/guestfish-actions.pod:3295
13154 msgid ""
13155 "This call creates a block device node called C<path> with mode C<mode> and "
13156 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13157 "wrapper around L</mknod>."
13158 msgstr ""
13159
13160 #. type: =head2
13161 #: ../fish/guestfish-actions.pod:3301
13162 msgid "mknod-c"
13163 msgstr "mknod-c"
13164
13165 #. type: verbatim
13166 #: ../fish/guestfish-actions.pod:3303
13167 #, no-wrap
13168 msgid ""
13169 " mknod-c mode devmajor devminor path\n"
13170 "\n"
13171 msgstr ""
13172
13173 #. type: textblock
13174 #: ../fish/guestfish-actions.pod:3305
13175 msgid ""
13176 "This call creates a char device node called C<path> with mode C<mode> and "
13177 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
13178 "wrapper around L</mknod>."
13179 msgstr ""
13180
13181 #. type: =head2
13182 #: ../fish/guestfish-actions.pod:3311
13183 msgid "mkswap"
13184 msgstr "mkswap"
13185
13186 #. type: verbatim
13187 #: ../fish/guestfish-actions.pod:3313
13188 #, no-wrap
13189 msgid ""
13190 " mkswap device\n"
13191 "\n"
13192 msgstr ""
13193 " mkswap пристрій\n"
13194 "\n"
13195
13196 #. type: textblock
13197 #: ../fish/guestfish-actions.pod:3315 ../src/guestfs-actions.pod:5017
13198 msgid "Create a swap partition on C<device>."
13199 msgstr ""
13200
13201 #. type: =head2
13202 #: ../fish/guestfish-actions.pod:3317
13203 msgid "mkswap-L"
13204 msgstr "mkswap-L"
13205
13206 #. type: verbatim
13207 #: ../fish/guestfish-actions.pod:3319
13208 #, no-wrap
13209 msgid ""
13210 " mkswap-L label device\n"
13211 "\n"
13212 msgstr ""
13213 " mkswap-L мітка пристрій\n"
13214 "\n"
13215
13216 #. type: textblock
13217 #: ../fish/guestfish-actions.pod:3321 ../src/guestfs-actions.pod:5030
13218 msgid "Create a swap partition on C<device> with label C<label>."
13219 msgstr ""
13220
13221 #. type: textblock
13222 #: ../fish/guestfish-actions.pod:3323 ../src/guestfs-actions.pod:5032
13223 msgid ""
13224 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
13225 "sda>), just to a partition.  This appears to be a limitation of the kernel "
13226 "or swap tools."
13227 msgstr ""
13228
13229 #. type: =head2
13230 #: ../fish/guestfish-actions.pod:3327
13231 msgid "mkswap-U"
13232 msgstr "mkswap-U"
13233
13234 #. type: verbatim
13235 #: ../fish/guestfish-actions.pod:3329
13236 #, no-wrap
13237 msgid ""
13238 " mkswap-U uuid device\n"
13239 "\n"
13240 msgstr ""
13241 " mkswap-U uuid пристрій\n"
13242 "\n"
13243
13244 #. type: textblock
13245 #: ../fish/guestfish-actions.pod:3331 ../src/guestfs-actions.pod:5047
13246 msgid "Create a swap partition on C<device> with UUID C<uuid>."
13247 msgstr ""
13248
13249 #. type: =head2
13250 #: ../fish/guestfish-actions.pod:3333
13251 msgid "mkswap-file"
13252 msgstr "mkswap-file"
13253
13254 #. type: verbatim
13255 #: ../fish/guestfish-actions.pod:3335
13256 #, no-wrap
13257 msgid ""
13258 " mkswap-file path\n"
13259 "\n"
13260 msgstr ""
13261 " mkswap-file шлях\n"
13262 "\n"
13263
13264 #. type: textblock
13265 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5059
13266 msgid "Create a swap file."
13267 msgstr "Створити файл резервної пам’яті."
13268
13269 #. type: textblock
13270 #: ../fish/guestfish-actions.pod:3339
13271 msgid ""
13272 "This command just writes a swap file signature to an existing file.  To "
13273 "create the file itself, use something like L</fallocate>."
13274 msgstr ""
13275
13276 #. type: =head2
13277 #: ../fish/guestfish-actions.pod:3342
13278 msgid "modprobe"
13279 msgstr "modprobe"
13280
13281 #. type: verbatim
13282 #: ../fish/guestfish-actions.pod:3344
13283 #, no-wrap
13284 msgid ""
13285 " modprobe modulename\n"
13286 "\n"
13287 msgstr ""
13288 " modprobe назва_модуля\n"
13289 "\n"
13290
13291 #. type: textblock
13292 #: ../fish/guestfish-actions.pod:3346 ../src/guestfs-actions.pod:5074
13293 msgid "This loads a kernel module in the appliance."
13294 msgstr ""
13295
13296 #. type: textblock
13297 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5076
13298 msgid ""
13299 "The kernel module must have been whitelisted when libguestfs was built (see "
13300 "C<appliance/kmod.whitelist.in> in the source)."
13301 msgstr ""
13302
13303 #. type: =head2
13304 #: ../fish/guestfish-actions.pod:3351
13305 msgid "mount"
13306 msgstr "mount"
13307
13308 #. type: verbatim
13309 #: ../fish/guestfish-actions.pod:3353
13310 #, no-wrap
13311 msgid ""
13312 " mount device mountpoint\n"
13313 "\n"
13314 msgstr ""
13315 " mount пристрій точка_монтування\n"
13316 "\n"
13317
13318 #. type: textblock
13319 #: ../fish/guestfish-actions.pod:3355 ../src/guestfs-actions.pod:5090
13320 msgid ""
13321 "Mount a guest disk at a position in the filesystem.  Block devices are named "
13322 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
13323 "those block devices contain partitions, they will have the usual names (eg. "
13324 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
13325 msgstr ""
13326
13327 #. type: textblock
13328 #: ../fish/guestfish-actions.pod:3361 ../src/guestfs-actions.pod:5096
13329 msgid ""
13330 "The rules are the same as for L<mount(2)>: A filesystem must first be "
13331 "mounted on C</> before others can be mounted.  Other filesystems can only be "
13332 "mounted on directories which already exist."
13333 msgstr ""
13334
13335 #. type: textblock
13336 #: ../fish/guestfish-actions.pod:3366 ../src/guestfs-actions.pod:5101
13337 msgid ""
13338 "The mounted filesystem is writable, if we have sufficient permissions on the "
13339 "underlying device."
13340 msgstr ""
13341
13342 #. type: textblock
13343 #: ../fish/guestfish-actions.pod:3369
13344 msgid ""
13345 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
13346 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
13347 "problems for users.  If your program might need to work with older versions "
13348 "of libguestfs, use L</mount-options> instead (using an empty string for the "
13349 "first parameter if you don't want any options)."
13350 msgstr ""
13351
13352 #. type: =head2
13353 #: ../fish/guestfish-actions.pod:3376
13354 msgid "mount-9p"
13355 msgstr ""
13356
13357 #. type: verbatim
13358 #: ../fish/guestfish-actions.pod:3378
13359 #, no-wrap
13360 msgid ""
13361 " mount-9p mounttag mountpoint [options:..]\n"
13362 "\n"
13363 msgstr ""
13364
13365 #. type: textblock
13366 #: ../fish/guestfish-actions.pod:3380 ../src/guestfs-actions.pod:5130
13367 msgid ""
13368 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
13369 "C<mountpoint>."
13370 msgstr ""
13371
13372 #. type: textblock
13373 #: ../fish/guestfish-actions.pod:3383 ../src/guestfs-actions.pod:5133
13374 msgid ""
13375 "If required, C<trans=virtio> will be automatically added to the options.  "
13376 "Any other options required can be passed in the optional C<options> "
13377 "parameter."
13378 msgstr ""
13379
13380 #. type: =head2
13381 #: ../fish/guestfish-actions.pod:3389
13382 msgid "mount-loop"
13383 msgstr "mount-loop"
13384
13385 #. type: verbatim
13386 #: ../fish/guestfish-actions.pod:3391
13387 #, no-wrap
13388 msgid ""
13389 " mount-loop file mountpoint\n"
13390 "\n"
13391 msgstr ""
13392
13393 #. type: textblock
13394 #: ../fish/guestfish-actions.pod:3393 ../src/guestfs-actions.pod:5172
13395 msgid ""
13396 "This command lets you mount C<file> (a filesystem image in a file) on a "
13397 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
13398 "mountpoint>."
13399 msgstr ""
13400
13401 #. type: =head2
13402 #: ../fish/guestfish-actions.pod:3397
13403 msgid "mount-options"
13404 msgstr "mount-options"
13405
13406 #. type: verbatim
13407 #: ../fish/guestfish-actions.pod:3399
13408 #, no-wrap
13409 msgid ""
13410 " mount-options options device mountpoint\n"
13411 "\n"
13412 msgstr ""
13413
13414 #. type: textblock
13415 #: ../fish/guestfish-actions.pod:3401
13416 msgid ""
13417 "This is the same as the L</mount> command, but it allows you to set the "
13418 "mount options as for the L<mount(8)> I<-o> flag."
13419 msgstr ""
13420
13421 #. type: textblock
13422 #: ../fish/guestfish-actions.pod:3405 ../src/guestfs-actions.pod:5192
13423 msgid ""
13424 "If the C<options> parameter is an empty string, then no options are passed "
13425 "(all options default to whatever the filesystem uses)."
13426 msgstr ""
13427
13428 #. type: =head2
13429 #: ../fish/guestfish-actions.pod:3409
13430 msgid "mount-ro"
13431 msgstr "mount-ro"
13432
13433 #. type: verbatim
13434 #: ../fish/guestfish-actions.pod:3411
13435 #, no-wrap
13436 msgid ""
13437 " mount-ro device mountpoint\n"
13438 "\n"
13439 msgstr ""
13440 " mount-ro пристрій точка_монтування\n"
13441 "\n"
13442
13443 #. type: textblock
13444 #: ../fish/guestfish-actions.pod:3413
13445 msgid ""
13446 "This is the same as the L</mount> command, but it mounts the filesystem with "
13447 "the read-only (I<-o ro>) flag."
13448 msgstr ""
13449
13450 #. type: =head2
13451 #: ../fish/guestfish-actions.pod:3416
13452 msgid "mount-vfs"
13453 msgstr "mount-vfs"
13454
13455 #. type: verbatim
13456 #: ../fish/guestfish-actions.pod:3418
13457 #, no-wrap
13458 msgid ""
13459 " mount-vfs options vfstype device mountpoint\n"
13460 "\n"
13461 msgstr ""
13462
13463 #. type: textblock
13464 #: ../fish/guestfish-actions.pod:3420
13465 msgid ""
13466 "This is the same as the L</mount> command, but it allows you to set both the "
13467 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
13468 msgstr ""
13469
13470 #. type: =head2
13471 #: ../fish/guestfish-actions.pod:3424
13472 msgid "mountpoints"
13473 msgstr "mountpoints"
13474
13475 #. type: verbatim
13476 #: ../fish/guestfish-actions.pod:3426
13477 #, no-wrap
13478 msgid ""
13479 " mountpoints\n"
13480 "\n"
13481 msgstr ""
13482 " mountpoints\n"
13483 "\n"
13484
13485 #. type: textblock
13486 #: ../fish/guestfish-actions.pod:3428
13487 msgid ""
13488 "This call is similar to L</mounts>.  That call returns a list of devices.  "
13489 "This one returns a hash table (map) of device name to directory where the "
13490 "device is mounted."
13491 msgstr ""
13492
13493 #. type: =head2
13494 #: ../fish/guestfish-actions.pod:3432
13495 msgid "mounts"
13496 msgstr "mounts"
13497
13498 #. type: verbatim
13499 #: ../fish/guestfish-actions.pod:3434
13500 #, no-wrap
13501 msgid ""
13502 " mounts\n"
13503 "\n"
13504 msgstr ""
13505 " mounts\n"
13506 "\n"
13507
13508 #. type: textblock
13509 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5253
13510 msgid ""
13511 "This returns the list of currently mounted filesystems.  It returns the list "
13512 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
13513 msgstr ""
13514
13515 #. type: textblock
13516 #: ../fish/guestfish-actions.pod:3439 ../src/guestfs-actions.pod:5256
13517 msgid "Some internal mounts are not shown."
13518 msgstr ""
13519
13520 #. type: textblock
13521 #: ../fish/guestfish-actions.pod:3441
13522 msgid "See also: L</mountpoints>"
13523 msgstr "Див. також L</mountpoints>"
13524
13525 #. type: =head2
13526 #: ../fish/guestfish-actions.pod:3443
13527 msgid "mv"
13528 msgstr "mv"
13529
13530 #. type: verbatim
13531 #: ../fish/guestfish-actions.pod:3445
13532 #, no-wrap
13533 msgid ""
13534 " mv src dest\n"
13535 "\n"
13536 msgstr ""
13537 " mv джерело призначення\n"
13538 "\n"
13539
13540 #. type: textblock
13541 #: ../fish/guestfish-actions.pod:3447 ../src/guestfs-actions.pod:5273
13542 msgid ""
13543 "This moves a file from C<src> to C<dest> where C<dest> is either a "
13544 "destination filename or destination directory."
13545 msgstr ""
13546
13547 #. type: =head2
13548 #: ../fish/guestfish-actions.pod:3450
13549 msgid "ntfs-3g-probe"
13550 msgstr "ntfs-3g-probe"
13551
13552 #. type: verbatim
13553 #: ../fish/guestfish-actions.pod:3452
13554 #, no-wrap
13555 msgid ""
13556 " ntfs-3g-probe true|false device\n"
13557 "\n"
13558 msgstr ""
13559
13560 #. type: textblock
13561 #: ../fish/guestfish-actions.pod:3454 ../src/guestfs-actions.pod:5287
13562 msgid ""
13563 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
13564 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
13565 "write, and some cannot be mounted at all)."
13566 msgstr ""
13567
13568 #. type: textblock
13569 #: ../fish/guestfish-actions.pod:3458 ../src/guestfs-actions.pod:5291
13570 msgid ""
13571 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
13572 "can be mounted read-write.  Set it to false if you want to test if the "
13573 "volume can be mounted read-only."
13574 msgstr ""
13575
13576 #. type: textblock
13577 #: ../fish/guestfish-actions.pod:3462 ../src/guestfs-actions.pod:5295
13578 msgid ""
13579 "The return value is an integer which C<0> if the operation would succeed, or "
13580 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
13581 msgstr ""
13582
13583 #. type: =head2
13584 #: ../fish/guestfish-actions.pod:3466
13585 msgid "ntfsresize"
13586 msgstr "ntfsresize"
13587
13588 #. type: verbatim
13589 #: ../fish/guestfish-actions.pod:3468
13590 #, no-wrap
13591 msgid ""
13592 " ntfsresize device\n"
13593 "\n"
13594 msgstr ""
13595 " ntfsresize пристрій\n"
13596 "\n"
13597
13598 #. type: textblock
13599 #: ../fish/guestfish-actions.pod:3470 ../fish/guestfish-actions.pod:3494
13600 #: ../src/guestfs-actions.pod:5316 ../src/guestfs-actions.pod:5348
13601 msgid ""
13602 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
13603 "size of the underlying device."
13604 msgstr ""
13605
13606 #. type: textblock
13607 #: ../fish/guestfish-actions.pod:3473 ../src/guestfs-actions.pod:5319
13608 msgid ""
13609 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
13610 "consistency check (for safety).  You have to boot into Windows to perform "
13611 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
13612 "resize filesystems which have been marked in this way.  So in effect it is "
13613 "not possible to call ntfsresize multiple times on a single filesystem "
13614 "without booting into Windows between each resize."
13615 msgstr ""
13616
13617 #. type: textblock
13618 #: ../fish/guestfish-actions.pod:3481 ../fish/guestfish-actions.pod:3520
13619 #: ../src/guestfs-actions.pod:5327 ../src/guestfs-actions.pod:5374
13620 msgid "See also L<ntfsresize(8)>."
13621 msgstr "Див. також L<ntfsresize(8)>."
13622
13623 #. type: textblock
13624 #: ../fish/guestfish-actions.pod:3483 ../fish/guestfish-actions.pod:3531
13625 msgid ""
13626 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
13627 "call instead."
13628 msgstr ""
13629
13630 #. type: =head2
13631 #: ../fish/guestfish-actions.pod:3490
13632 msgid "ntfsresize-opts"
13633 msgstr ""
13634
13635 #. type: verbatim
13636 #: ../fish/guestfish-actions.pod:3492
13637 #, no-wrap
13638 msgid ""
13639 " ntfsresize-opts device [size:..] [force:..]\n"
13640 "\n"
13641 msgstr ""
13642
13643 #. type: textblock
13644 #: ../fish/guestfish-actions.pod:3503 ../src/guestfs-actions.pod:5357
13645 msgid ""
13646 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
13647 "resized to fit the container (eg. partition)."
13648 msgstr ""
13649
13650 #. type: =item
13651 #: ../fish/guestfish-actions.pod:3506 ../src/guestfs-actions.pod:5360
13652 msgid "C<force>"
13653 msgstr "C<force>"
13654
13655 #. type: textblock
13656 #: ../fish/guestfish-actions.pod:3508 ../src/guestfs-actions.pod:5362
13657 msgid ""
13658 "If this option is true, then force the resize of the filesystem even if the "
13659 "filesystem is marked as requiring a consistency check."
13660 msgstr ""
13661
13662 #. type: textblock
13663 #: ../fish/guestfish-actions.pod:3511
13664 msgid ""
13665 "After the resize operation, the filesystem is always marked as requiring a "
13666 "consistency check (for safety).  You have to boot into Windows to perform "
13667 "this check and clear this condition.  If you I<don't> set the C<force> "
13668 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
13669 "a single filesystem without booting into Windows between each resize."
13670 msgstr ""
13671
13672 #. type: =head2
13673 #: ../fish/guestfish-actions.pod:3524
13674 msgid "ntfsresize-size"
13675 msgstr "ntfsresize-size"
13676
13677 #. type: verbatim
13678 #: ../fish/guestfish-actions.pod:3526
13679 #, no-wrap
13680 msgid ""
13681 " ntfsresize-size device size\n"
13682 "\n"
13683 msgstr ""
13684
13685 #. type: textblock
13686 #: ../fish/guestfish-actions.pod:3528
13687 msgid ""
13688 "This command is the same as L</ntfsresize> except that it allows you to "
13689 "specify the new size (in bytes) explicitly."
13690 msgstr ""
13691
13692 #. type: =head2
13693 #: ../fish/guestfish-actions.pod:3538
13694 msgid "part-add"
13695 msgstr "part-add"
13696
13697 #. type: verbatim
13698 #: ../fish/guestfish-actions.pod:3540
13699 #, no-wrap
13700 msgid ""
13701 " part-add device prlogex startsect endsect\n"
13702 "\n"
13703 msgstr ""
13704
13705 #. type: textblock
13706 #: ../fish/guestfish-actions.pod:3542
13707 msgid ""
13708 "This command adds a partition to C<device>.  If there is no partition table "
13709 "on the device, call L</part-init> first."
13710 msgstr ""
13711
13712 #. type: textblock
13713 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5435
13714 msgid ""
13715 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
13716 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
13717 "C<logical>) and C<e> (or C<extended>) partition types."
13718 msgstr ""
13719
13720 #. type: textblock
13721 #: ../fish/guestfish-actions.pod:3550 ../src/guestfs-actions.pod:5440
13722 msgid ""
13723 "C<startsect> and C<endsect> are the start and end of the partition in "
13724 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
13725 "from the end of the disk (C<-1> is the last sector)."
13726 msgstr ""
13727
13728 #. type: textblock
13729 #: ../fish/guestfish-actions.pod:3554
13730 msgid ""
13731 "Creating a partition which covers the whole disk is not so easy.  Use L</"
13732 "part-disk> to do that."
13733 msgstr ""
13734
13735 #. type: =head2
13736 #: ../fish/guestfish-actions.pod:3557
13737 msgid "part-del"
13738 msgstr "part-del"
13739
13740 #. type: verbatim
13741 #: ../fish/guestfish-actions.pod:3559
13742 #, no-wrap
13743 msgid ""
13744 " part-del device partnum\n"
13745 "\n"
13746 msgstr ""
13747
13748 #. type: textblock
13749 #: ../fish/guestfish-actions.pod:3561 ../src/guestfs-actions.pod:5458
13750 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13751 msgstr ""
13752
13753 #. type: textblock
13754 #: ../fish/guestfish-actions.pod:3563 ../src/guestfs-actions.pod:5460
13755 msgid ""
13756 "Note that in the case of MBR partitioning, deleting an extended partition "
13757 "also deletes any logical partitions it contains."
13758 msgstr ""
13759
13760 #. type: =head2
13761 #: ../fish/guestfish-actions.pod:3567
13762 msgid "part-disk"
13763 msgstr "part-disk"
13764
13765 #. type: verbatim
13766 #: ../fish/guestfish-actions.pod:3569
13767 #, no-wrap
13768 msgid ""
13769 " part-disk device parttype\n"
13770 "\n"
13771 msgstr ""
13772 " part-disk пристрій тип_розділу\n"
13773 "\n"
13774
13775 #. type: textblock
13776 #: ../fish/guestfish-actions.pod:3571
13777 msgid ""
13778 "This command is simply a combination of L</part-init> followed by L</part-"
13779 "add> to create a single primary partition covering the whole disk."
13780 msgstr ""
13781
13782 #. type: textblock
13783 #: ../fish/guestfish-actions.pod:3575
13784 msgid ""
13785 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13786 "possible values are described in L</part-init>."
13787 msgstr ""
13788
13789 #. type: =head2
13790 #: ../fish/guestfish-actions.pod:3581
13791 msgid "part-get-bootable"
13792 msgstr "part-get-bootable"
13793
13794 #. type: verbatim
13795 #: ../fish/guestfish-actions.pod:3583
13796 #, no-wrap
13797 msgid ""
13798 " part-get-bootable device partnum\n"
13799 "\n"
13800 msgstr ""
13801
13802 #. type: textblock
13803 #: ../fish/guestfish-actions.pod:3585 ../src/guestfs-actions.pod:5496
13804 msgid ""
13805 "This command returns true if the partition C<partnum> on C<device> has the "
13806 "bootable flag set."
13807 msgstr ""
13808
13809 #. type: textblock
13810 #: ../fish/guestfish-actions.pod:3588
13811 msgid "See also L</part-set-bootable>."
13812 msgstr "Див. також L</part-set-bootable>."
13813
13814 #. type: =head2
13815 #: ../fish/guestfish-actions.pod:3590
13816 msgid "part-get-mbr-id"
13817 msgstr "part-get-mbr-id"
13818
13819 #. type: verbatim
13820 #: ../fish/guestfish-actions.pod:3592
13821 #, no-wrap
13822 msgid ""
13823 " part-get-mbr-id device partnum\n"
13824 "\n"
13825 msgstr ""
13826
13827 #. type: textblock
13828 #: ../fish/guestfish-actions.pod:3594 ../src/guestfs-actions.pod:5512
13829 msgid ""
13830 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13831 "partition C<partnum>."
13832 msgstr ""
13833
13834 #. type: textblock
13835 #: ../fish/guestfish-actions.pod:3597 ../fish/guestfish-actions.pod:3741
13836 msgid ""
13837 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
13838 "undefined results for other partition table types (see L</part-get-"
13839 "parttype>)."
13840 msgstr ""
13841
13842 #. type: =head2
13843 #: ../fish/guestfish-actions.pod:3601
13844 msgid "part-get-parttype"
13845 msgstr "part-get-parttype"
13846
13847 #. type: verbatim
13848 #: ../fish/guestfish-actions.pod:3603
13849 #, no-wrap
13850 msgid ""
13851 " part-get-parttype device\n"
13852 "\n"
13853 msgstr ""
13854 " part-get-parttype пристрій\n"
13855 "\n"
13856
13857 #. type: textblock
13858 #: ../fish/guestfish-actions.pod:3605 ../src/guestfs-actions.pod:5529
13859 msgid ""
13860 "This command examines the partition table on C<device> and returns the "
13861 "partition table type (format) being used."
13862 msgstr ""
13863
13864 #. type: textblock
13865 #: ../fish/guestfish-actions.pod:3608
13866 msgid ""
13867 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13868 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13869 "possible, although unusual.  See L</part-init> for a full list."
13870 msgstr ""
13871
13872 #. type: =head2
13873 #: ../fish/guestfish-actions.pod:3613
13874 msgid "part-init"
13875 msgstr "part-init"
13876
13877 #. type: verbatim
13878 #: ../fish/guestfish-actions.pod:3615
13879 #, no-wrap
13880 msgid ""
13881 " part-init device parttype\n"
13882 "\n"
13883 msgstr ""
13884
13885 #. type: textblock
13886 #: ../fish/guestfish-actions.pod:3617 ../src/guestfs-actions.pod:5549
13887 msgid ""
13888 "This creates an empty partition table on C<device> of one of the partition "
13889 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
13890 "(for large disks)."
13891 msgstr ""
13892
13893 #. type: textblock
13894 #: ../fish/guestfish-actions.pod:3621
13895 msgid ""
13896 "Initially there are no partitions.  Following this, you should call L</part-"
13897 "add> for each partition required."
13898 msgstr ""
13899
13900 #. type: textblock
13901 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5556
13902 msgid "Possible values for C<parttype> are:"
13903 msgstr ""
13904
13905 #. type: =item
13906 #: ../fish/guestfish-actions.pod:3628 ../src/guestfs-actions.pod:5560
13907 msgid "B<efi>"
13908 msgstr "B<efi>"
13909
13910 #. type: =item
13911 #: ../fish/guestfish-actions.pod:3630 ../src/guestfs-actions.pod:5562
13912 msgid "B<gpt>"
13913 msgstr "B<gpt>"
13914
13915 #. type: textblock
13916 #: ../fish/guestfish-actions.pod:3632 ../src/guestfs-actions.pod:5564
13917 msgid "Intel EFI / GPT partition table."
13918 msgstr ""
13919
13920 #. type: textblock
13921 #: ../fish/guestfish-actions.pod:3634 ../src/guestfs-actions.pod:5566
13922 msgid ""
13923 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13924 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
13925 "the C<mbr> format."
13926 msgstr ""
13927
13928 #. type: =item
13929 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5570
13930 msgid "B<mbr>"
13931 msgstr "B<mbr>"
13932
13933 #. type: =item
13934 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5572
13935 msgid "B<msdos>"
13936 msgstr "B<msdos>"
13937
13938 #. type: textblock
13939 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5574
13940 msgid ""
13941 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13942 "Windows.  This partition type will B<only> work for device sizes up to 2 "
13943 "TB.  For large disks we recommend using C<gpt>."
13944 msgstr ""
13945
13946 #. type: textblock
13947 #: ../fish/guestfish-actions.pod:3649 ../src/guestfs-actions.pod:5581
13948 msgid ""
13949 "Other partition table types that may work but are not supported include:"
13950 msgstr ""
13951
13952 #. type: =item
13953 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5586
13954 msgid "B<aix>"
13955 msgstr "B<aix>"
13956
13957 #. type: textblock
13958 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5588
13959 msgid "AIX disk labels."
13960 msgstr "Мітки дисків AIX."
13961
13962 #. type: =item
13963 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5590
13964 msgid "B<amiga>"
13965 msgstr "B<amiga>"
13966
13967 #. type: =item
13968 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5592
13969 msgid "B<rdb>"
13970 msgstr "B<rdb>"
13971
13972 #. type: textblock
13973 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5594
13974 msgid "Amiga \"Rigid Disk Block\" format."
13975 msgstr "Формат \"Rigid Disk Block\" Amiga."
13976
13977 #. type: =item
13978 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5596
13979 msgid "B<bsd>"
13980 msgstr "B<bsd>"
13981
13982 #. type: textblock
13983 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5598
13984 msgid "BSD disk labels."
13985 msgstr "Мітки дисків BSD."
13986
13987 #. type: =item
13988 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5600
13989 msgid "B<dasd>"
13990 msgstr "B<dasd>"
13991
13992 #. type: textblock
13993 #: ../fish/guestfish-actions.pod:3670 ../src/guestfs-actions.pod:5602
13994 msgid "DASD, used on IBM mainframes."
13995 msgstr "DASD, використовувалися у мейнфреймах IBM."
13996
13997 #. type: =item
13998 #: ../fish/guestfish-actions.pod:3672 ../src/guestfs-actions.pod:5604
13999 msgid "B<dvh>"
14000 msgstr "B<dvh>"
14001
14002 #. type: textblock
14003 #: ../fish/guestfish-actions.pod:3674 ../src/guestfs-actions.pod:5606
14004 msgid "MIPS/SGI volumes."
14005 msgstr "Томи MIPS/SGI."
14006
14007 #. type: =item
14008 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5608
14009 msgid "B<mac>"
14010 msgstr "B<mac>"
14011
14012 #. type: textblock
14013 #: ../fish/guestfish-actions.pod:3678 ../src/guestfs-actions.pod:5610
14014 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
14015 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
14016
14017 #. type: =item
14018 #: ../fish/guestfish-actions.pod:3680 ../src/guestfs-actions.pod:5612
14019 msgid "B<pc98>"
14020 msgstr "B<pc98>"
14021
14022 #. type: textblock
14023 #: ../fish/guestfish-actions.pod:3682 ../src/guestfs-actions.pod:5614
14024 msgid "NEC PC-98 format, common in Japan apparently."
14025 msgstr "Формат NEC PC-98, поширений у Японії."
14026
14027 #. type: =item
14028 #: ../fish/guestfish-actions.pod:3684 ../src/guestfs-actions.pod:5616
14029 msgid "B<sun>"
14030 msgstr "B<sun>"
14031
14032 #. type: textblock
14033 #: ../fish/guestfish-actions.pod:3686 ../src/guestfs-actions.pod:5618
14034 msgid "Sun disk labels."
14035 msgstr "Мітки дисків Sun."
14036
14037 #. type: =head2
14038 #: ../fish/guestfish-actions.pod:3690
14039 msgid "part-list"
14040 msgstr "part-list"
14041
14042 #. type: verbatim
14043 #: ../fish/guestfish-actions.pod:3692
14044 #, no-wrap
14045 msgid ""
14046 " part-list device\n"
14047 "\n"
14048 msgstr ""
14049 " part-list device\n"
14050 "\n"
14051
14052 #. type: textblock
14053 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5632
14054 msgid ""
14055 "This command parses the partition table on C<device> and returns the list of "
14056 "partitions found."
14057 msgstr ""
14058
14059 #. type: textblock
14060 #: ../fish/guestfish-actions.pod:3697 ../src/guestfs-actions.pod:5635
14061 msgid "The fields in the returned structure are:"
14062 msgstr ""
14063
14064 #. type: =item
14065 #: ../fish/guestfish-actions.pod:3701 ../src/guestfs-actions.pod:5639
14066 msgid "B<part_num>"
14067 msgstr "B<part_num>"
14068
14069 #. type: textblock
14070 #: ../fish/guestfish-actions.pod:3703 ../src/guestfs-actions.pod:5641
14071 msgid "Partition number, counting from 1."
14072 msgstr ""
14073
14074 #. type: =item
14075 #: ../fish/guestfish-actions.pod:3705 ../src/guestfs-actions.pod:5643
14076 msgid "B<part_start>"
14077 msgstr "B<part_start>"
14078
14079 #. type: textblock
14080 #: ../fish/guestfish-actions.pod:3707
14081 msgid ""
14082 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
14083 "the device's sector size, see L</blockdev-getss>."
14084 msgstr ""
14085
14086 #. type: =item
14087 #: ../fish/guestfish-actions.pod:3710 ../src/guestfs-actions.pod:5648
14088 msgid "B<part_end>"
14089 msgstr "B<part_end>"
14090
14091 #. type: textblock
14092 #: ../fish/guestfish-actions.pod:3712 ../src/guestfs-actions.pod:5650
14093 msgid "End of the partition in bytes."
14094 msgstr ""
14095
14096 #. type: =item
14097 #: ../fish/guestfish-actions.pod:3714 ../src/guestfs-actions.pod:5652
14098 msgid "B<part_size>"
14099 msgstr "B<part_size>"
14100
14101 #. type: textblock
14102 #: ../fish/guestfish-actions.pod:3716 ../src/guestfs-actions.pod:5654
14103 msgid "Size of the partition in bytes."
14104 msgstr ""
14105
14106 #. type: =head2
14107 #: ../fish/guestfish-actions.pod:3720
14108 msgid "part-set-bootable"
14109 msgstr "part-set-bootable"
14110
14111 #. type: verbatim
14112 #: ../fish/guestfish-actions.pod:3722
14113 #, no-wrap
14114 msgid ""
14115 " part-set-bootable device partnum true|false\n"
14116 "\n"
14117 msgstr ""
14118
14119 #. type: textblock
14120 #: ../fish/guestfish-actions.pod:3724 ../src/guestfs-actions.pod:5672
14121 msgid ""
14122 "This sets the bootable flag on partition numbered C<partnum> on device "
14123 "C<device>.  Note that partitions are numbered from 1."
14124 msgstr ""
14125
14126 #. type: textblock
14127 #: ../fish/guestfish-actions.pod:3727 ../src/guestfs-actions.pod:5675
14128 msgid ""
14129 "The bootable flag is used by some operating systems (notably Windows) to "
14130 "determine which partition to boot from.  It is by no means universally "
14131 "recognized."
14132 msgstr ""
14133
14134 #. type: =head2
14135 #: ../fish/guestfish-actions.pod:3731
14136 msgid "part-set-mbr-id"
14137 msgstr "part-set-mbr-id"
14138
14139 #. type: verbatim
14140 #: ../fish/guestfish-actions.pod:3733
14141 #, no-wrap
14142 msgid ""
14143 " part-set-mbr-id device partnum idbyte\n"
14144 "\n"
14145 msgstr ""
14146
14147 #. type: textblock
14148 #: ../fish/guestfish-actions.pod:3735 ../src/guestfs-actions.pod:5691
14149 msgid ""
14150 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
14151 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
14152 "documentation are in fact hexadecimal numbers, but usually documented "
14153 "without any leading \"0x\" which might be confusing."
14154 msgstr ""
14155
14156 #. type: =head2
14157 #: ../fish/guestfish-actions.pod:3745
14158 msgid "part-set-name"
14159 msgstr "part-set-name"
14160
14161 #. type: verbatim
14162 #: ../fish/guestfish-actions.pod:3747
14163 #, no-wrap
14164 msgid ""
14165 " part-set-name device partnum name\n"
14166 "\n"
14167 msgstr ""
14168
14169 #. type: textblock
14170 #: ../fish/guestfish-actions.pod:3749 ../src/guestfs-actions.pod:5713
14171 msgid ""
14172 "This sets the partition name on partition numbered C<partnum> on device "
14173 "C<device>.  Note that partitions are numbered from 1."
14174 msgstr ""
14175
14176 #. type: textblock
14177 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5716
14178 msgid ""
14179 "The partition name can only be set on certain types of partition table.  "
14180 "This works on C<gpt> but not on C<mbr> partitions."
14181 msgstr ""
14182
14183 #. type: =head2
14184 #: ../fish/guestfish-actions.pod:3755
14185 msgid "part-to-dev"
14186 msgstr "part-to-dev"
14187
14188 #. type: verbatim
14189 #: ../fish/guestfish-actions.pod:3757
14190 #, no-wrap
14191 msgid ""
14192 " part-to-dev partition\n"
14193 "\n"
14194 msgstr ""
14195 " part-to-dev розділ\n"
14196 "\n"
14197
14198 #. type: textblock
14199 #: ../fish/guestfish-actions.pod:3759 ../src/guestfs-actions.pod:5729
14200 msgid ""
14201 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
14202 "partition number, returning the device name (eg. \"/dev/sdb\")."
14203 msgstr ""
14204
14205 #. type: textblock
14206 #: ../fish/guestfish-actions.pod:3763
14207 msgid ""
14208 "The named partition must exist, for example as a string returned from L</"
14209 "list-partitions>."
14210 msgstr ""
14211
14212 #. type: =head2
14213 #: ../fish/guestfish-actions.pod:3766
14214 msgid "ping-daemon"
14215 msgstr "ping-daemon"
14216
14217 #. type: verbatim
14218 #: ../fish/guestfish-actions.pod:3768
14219 #, no-wrap
14220 msgid ""
14221 " ping-daemon\n"
14222 "\n"
14223 msgstr ""
14224 " ping-daemon\n"
14225 "\n"
14226
14227 #. type: textblock
14228 #: ../fish/guestfish-actions.pod:3770 ../src/guestfs-actions.pod:5746
14229 msgid ""
14230 "This is a test probe into the guestfs daemon running inside the qemu "
14231 "subprocess.  Calling this function checks that the daemon responds to the "
14232 "ping message, without affecting the daemon or attached block device(s) in "
14233 "any other way."
14234 msgstr ""
14235
14236 #. type: =head2
14237 #: ../fish/guestfish-actions.pod:3775
14238 msgid "pread"
14239 msgstr "pread"
14240
14241 #. type: verbatim
14242 #: ../fish/guestfish-actions.pod:3777
14243 #, no-wrap
14244 msgid ""
14245 " pread path count offset\n"
14246 "\n"
14247 msgstr ""
14248
14249 #. type: textblock
14250 #: ../fish/guestfish-actions.pod:3779 ../src/guestfs-actions.pod:5764
14251 msgid ""
14252 "This command lets you read part of a file.  It reads C<count> bytes of the "
14253 "file, starting at C<offset>, from file C<path>."
14254 msgstr ""
14255
14256 #. type: textblock
14257 #: ../fish/guestfish-actions.pod:3782 ../fish/guestfish-actions.pod:3797
14258 #: ../src/guestfs-actions.pod:5767 ../src/guestfs-actions.pod:5793
14259 msgid ""
14260 "This may read fewer bytes than requested.  For further details see the "
14261 "L<pread(2)> system call."
14262 msgstr ""
14263
14264 #. type: textblock
14265 #: ../fish/guestfish-actions.pod:3785
14266 msgid "See also L</pwrite>, L</pread-device>."
14267 msgstr "Див. також L</pwrite>, L</pread-device>."
14268
14269 #. type: =head2
14270 #: ../fish/guestfish-actions.pod:3790
14271 msgid "pread-device"
14272 msgstr "pread-device"
14273
14274 #. type: verbatim
14275 #: ../fish/guestfish-actions.pod:3792
14276 #, no-wrap
14277 msgid ""
14278 " pread-device device count offset\n"
14279 "\n"
14280 msgstr ""
14281
14282 #. type: textblock
14283 #: ../fish/guestfish-actions.pod:3794 ../src/guestfs-actions.pod:5790
14284 msgid ""
14285 "This command lets you read part of a file.  It reads C<count> bytes of "
14286 "C<device>, starting at C<offset>."
14287 msgstr ""
14288
14289 #. type: textblock
14290 #: ../fish/guestfish-actions.pod:3800
14291 msgid "See also L</pread>."
14292 msgstr "Див. також L</pread>."
14293
14294 #. type: =head2
14295 #: ../fish/guestfish-actions.pod:3805
14296 msgid "pvcreate"
14297 msgstr "pvcreate"
14298
14299 #. type: verbatim
14300 #: ../fish/guestfish-actions.pod:3807
14301 #, no-wrap
14302 msgid ""
14303 " pvcreate device\n"
14304 "\n"
14305 msgstr ""
14306 " pvcreate пристрій\n"
14307 "\n"
14308
14309 #. type: textblock
14310 #: ../fish/guestfish-actions.pod:3809 ../src/guestfs-actions.pod:5813
14311 msgid ""
14312 "This creates an LVM physical volume on the named C<device>, where C<device> "
14313 "should usually be a partition name such as C</dev/sda1>."
14314 msgstr ""
14315
14316 #. type: =head2
14317 #: ../fish/guestfish-actions.pod:3813
14318 msgid "pvremove"
14319 msgstr "pvremove"
14320
14321 #. type: verbatim
14322 #: ../fish/guestfish-actions.pod:3815
14323 #, no-wrap
14324 msgid ""
14325 " pvremove device\n"
14326 "\n"
14327 msgstr ""
14328 " pvremove пристрій\n"
14329 "\n"
14330
14331 #. type: textblock
14332 #: ../fish/guestfish-actions.pod:3817 ../src/guestfs-actions.pod:5827
14333 msgid ""
14334 "This wipes a physical volume C<device> so that LVM will no longer recognise "
14335 "it."
14336 msgstr ""
14337
14338 #. type: textblock
14339 #: ../fish/guestfish-actions.pod:3820 ../src/guestfs-actions.pod:5830
14340 msgid ""
14341 "The implementation uses the C<pvremove> command which refuses to wipe "
14342 "physical volumes that contain any volume groups, so you have to remove those "
14343 "first."
14344 msgstr ""
14345
14346 #. type: =head2
14347 #: ../fish/guestfish-actions.pod:3824
14348 msgid "pvresize"
14349 msgstr "pvresize"
14350
14351 #. type: verbatim
14352 #: ../fish/guestfish-actions.pod:3826
14353 #, no-wrap
14354 msgid ""
14355 " pvresize device\n"
14356 "\n"
14357 msgstr ""
14358 " pvresize пристрій\n"
14359 "\n"
14360
14361 #. type: textblock
14362 #: ../fish/guestfish-actions.pod:3828 ../src/guestfs-actions.pod:5844
14363 msgid ""
14364 "This resizes (expands or shrinks) an existing LVM physical volume to match "
14365 "the new size of the underlying device."
14366 msgstr ""
14367
14368 #. type: =head2
14369 #: ../fish/guestfish-actions.pod:3831
14370 msgid "pvresize-size"
14371 msgstr "pvresize-size"
14372
14373 #. type: verbatim
14374 #: ../fish/guestfish-actions.pod:3833
14375 #, no-wrap
14376 msgid ""
14377 " pvresize-size device size\n"
14378 "\n"
14379 msgstr ""
14380
14381 #. type: textblock
14382 #: ../fish/guestfish-actions.pod:3835
14383 msgid ""
14384 "This command is the same as L</pvresize> except that it allows you to "
14385 "specify the new size (in bytes) explicitly."
14386 msgstr ""
14387
14388 #. type: =head2
14389 #: ../fish/guestfish-actions.pod:3838
14390 msgid "pvs"
14391 msgstr "pvs"
14392
14393 #. type: verbatim
14394 #: ../fish/guestfish-actions.pod:3840
14395 #, no-wrap
14396 msgid ""
14397 " pvs\n"
14398 "\n"
14399 msgstr ""
14400 " pvs\n"
14401 "\n"
14402
14403 #. type: textblock
14404 #: ../fish/guestfish-actions.pod:3842 ../src/guestfs-actions.pod:5870
14405 msgid ""
14406 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14407 "(8)> command."
14408 msgstr ""
14409
14410 #. type: textblock
14411 #: ../fish/guestfish-actions.pod:3845 ../src/guestfs-actions.pod:5873
14412 msgid ""
14413 "This returns a list of just the device names that contain PVs (eg. C</dev/"
14414 "sda2>)."
14415 msgstr ""
14416
14417 #. type: textblock
14418 #: ../fish/guestfish-actions.pod:3848
14419 msgid "See also L</pvs-full>."
14420 msgstr "Див. також L</pvs-full>."
14421
14422 #. type: =head2
14423 #: ../fish/guestfish-actions.pod:3850
14424 msgid "pvs-full"
14425 msgstr "pvs-full"
14426
14427 #. type: verbatim
14428 #: ../fish/guestfish-actions.pod:3852
14429 #, no-wrap
14430 msgid ""
14431 " pvs-full\n"
14432 "\n"
14433 msgstr ""
14434 " pvs-full\n"
14435 "\n"
14436
14437 #. type: textblock
14438 #: ../fish/guestfish-actions.pod:3854 ../src/guestfs-actions.pod:5889
14439 msgid ""
14440 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
14441 "(8)> command.  The \"full\" version includes all fields."
14442 msgstr ""
14443
14444 #. type: =head2
14445 #: ../fish/guestfish-actions.pod:3857
14446 msgid "pvuuid"
14447 msgstr "pvuuid"
14448
14449 #. type: verbatim
14450 #: ../fish/guestfish-actions.pod:3859
14451 #, no-wrap
14452 msgid ""
14453 " pvuuid device\n"
14454 "\n"
14455 msgstr ""
14456 " pvuuid пристрій\n"
14457 "\n"
14458
14459 #. type: textblock
14460 #: ../fish/guestfish-actions.pod:3861 ../src/guestfs-actions.pod:5904
14461 msgid "This command returns the UUID of the LVM PV C<device>."
14462 msgstr ""
14463
14464 #. type: =head2
14465 #: ../fish/guestfish-actions.pod:3863
14466 msgid "pwrite"
14467 msgstr "pwrite"
14468
14469 #. type: verbatim
14470 #: ../fish/guestfish-actions.pod:3865
14471 #, no-wrap
14472 msgid ""
14473 " pwrite path content offset\n"
14474 "\n"
14475 msgstr ""
14476
14477 #. type: textblock
14478 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5920
14479 msgid ""
14480 "This command writes to part of a file.  It writes the data buffer C<content> "
14481 "to the file C<path> starting at offset C<offset>."
14482 msgstr ""
14483
14484 #. type: textblock
14485 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5923
14486 msgid ""
14487 "This command implements the L<pwrite(2)> system call, and like that system "
14488 "call it may not write the full data requested.  The return value is the "
14489 "number of bytes that were actually written to the file.  This could even be "
14490 "0, although short writes are unlikely for regular files in ordinary "
14491 "circumstances."
14492 msgstr ""
14493
14494 #. type: textblock
14495 #: ../fish/guestfish-actions.pod:3876
14496 msgid "See also L</pread>, L</pwrite-device>."
14497 msgstr "Див. також L</pread>, L</pwrite-device>."
14498
14499 #. type: =head2
14500 #: ../fish/guestfish-actions.pod:3881
14501 msgid "pwrite-device"
14502 msgstr "pwrite-device"
14503
14504 #. type: verbatim
14505 #: ../fish/guestfish-actions.pod:3883
14506 #, no-wrap
14507 msgid ""
14508 " pwrite-device device content offset\n"
14509 "\n"
14510 msgstr ""
14511
14512 #. type: textblock
14513 #: ../fish/guestfish-actions.pod:3885 ../src/guestfs-actions.pod:5947
14514 msgid ""
14515 "This command writes to part of a device.  It writes the data buffer "
14516 "C<content> to C<device> starting at offset C<offset>."
14517 msgstr ""
14518
14519 #. type: textblock
14520 #: ../fish/guestfish-actions.pod:3888 ../src/guestfs-actions.pod:5950
14521 msgid ""
14522 "This command implements the L<pwrite(2)> system call, and like that system "
14523 "call it may not write the full data requested (although short writes to disk "
14524 "devices and partitions are probably impossible with standard Linux kernels)."
14525 msgstr ""
14526
14527 #. type: textblock
14528 #: ../fish/guestfish-actions.pod:3893
14529 msgid "See also L</pwrite>."
14530 msgstr "Див. також L</pwrite>."
14531
14532 #. type: =head2
14533 #: ../fish/guestfish-actions.pod:3898
14534 msgid "read-file"
14535 msgstr "read-file"
14536
14537 #. type: verbatim
14538 #: ../fish/guestfish-actions.pod:3900
14539 #, no-wrap
14540 msgid ""
14541 " read-file path\n"
14542 "\n"
14543 msgstr ""
14544 " read-file шлях\n"
14545 "\n"
14546
14547 #. type: textblock
14548 #: ../fish/guestfish-actions.pod:3902 ../src/guestfs-actions.pod:5971
14549 msgid "This calls returns the contents of the file C<path> as a buffer."
14550 msgstr ""
14551
14552 #. type: textblock
14553 #: ../fish/guestfish-actions.pod:3905
14554 msgid ""
14555 "Unlike L</cat>, this function can correctly handle files that contain "
14556 "embedded ASCII NUL characters.  However unlike L</download>, this function "
14557 "is limited in the total size of file that can be handled."
14558 msgstr ""
14559
14560 #. type: =head2
14561 #: ../fish/guestfish-actions.pod:3913
14562 msgid "read-lines"
14563 msgstr "read-lines"
14564
14565 #. type: verbatim
14566 #: ../fish/guestfish-actions.pod:3915
14567 #, no-wrap
14568 msgid ""
14569 " read-lines path\n"
14570 "\n"
14571 msgstr ""
14572 " read-lines шлях\n"
14573 "\n"
14574
14575 #. type: textblock
14576 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:5996
14577 msgid ""
14578 "The file contents are returned as a list of lines.  Trailing C<LF> and "
14579 "C<CRLF> character sequences are I<not> returned."
14580 msgstr ""
14581
14582 #. type: textblock
14583 #: ../fish/guestfish-actions.pod:3922
14584 msgid ""
14585 "Note that this function cannot correctly handle binary files (specifically, "
14586 "files containing C<\\0> character which is treated as end of line).  For "
14587 "those you need to use the L</read-file> function which has a more complex "
14588 "interface."
14589 msgstr ""
14590
14591 #. type: =head2
14592 #: ../fish/guestfish-actions.pod:3927
14593 msgid "readdir"
14594 msgstr "readdir"
14595
14596 #. type: verbatim
14597 #: ../fish/guestfish-actions.pod:3929
14598 #, no-wrap
14599 msgid ""
14600 " readdir dir\n"
14601 "\n"
14602 msgstr ""
14603 " readdir каталог\n"
14604 "\n"
14605
14606 #. type: textblock
14607 #: ../fish/guestfish-actions.pod:3931 ../src/guestfs-actions.pod:6016
14608 msgid "This returns the list of directory entries in directory C<dir>."
14609 msgstr ""
14610
14611 #. type: textblock
14612 #: ../fish/guestfish-actions.pod:3933 ../src/guestfs-actions.pod:6018
14613 msgid ""
14614 "All entries in the directory are returned, including C<.> and C<..>.  The "
14615 "entries are I<not> sorted, but returned in the same order as the underlying "
14616 "filesystem."
14617 msgstr ""
14618
14619 #. type: textblock
14620 #: ../fish/guestfish-actions.pod:3937 ../src/guestfs-actions.pod:6022
14621 msgid ""
14622 "Also this call returns basic file type information about each file.  The "
14623 "C<ftyp> field will contain one of the following characters:"
14624 msgstr ""
14625
14626 #. type: =item
14627 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6027
14628 msgid "'b'"
14629 msgstr "'b'"
14630
14631 #. type: textblock
14632 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6029
14633 msgid "Block special"
14634 msgstr "Блоковий особливий"
14635
14636 #. type: =item
14637 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6031
14638 msgid "'c'"
14639 msgstr "'c'"
14640
14641 #. type: textblock
14642 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6033
14643 msgid "Char special"
14644 msgstr "Символьний особливий"
14645
14646 #. type: =item
14647 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6035
14648 msgid "'d'"
14649 msgstr "'d'"
14650
14651 #. type: textblock
14652 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6037
14653 msgid "Directory"
14654 msgstr "Каталог"
14655
14656 #. type: =item
14657 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6039
14658 msgid "'f'"
14659 msgstr "'f'"
14660
14661 #. type: textblock
14662 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6041
14663 msgid "FIFO (named pipe)"
14664 msgstr "FIFO (іменований канал)"
14665
14666 #. type: =item
14667 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6043
14668 msgid "'l'"
14669 msgstr "'l'"
14670
14671 #. type: textblock
14672 #: ../fish/guestfish-actions.pod:3960 ../src/guestfs-actions.pod:6045
14673 msgid "Symbolic link"
14674 msgstr "Символічне посилання"
14675
14676 #. type: =item
14677 #: ../fish/guestfish-actions.pod:3962 ../src/guestfs-actions.pod:6047
14678 msgid "'r'"
14679 msgstr "'r'"
14680
14681 #. type: textblock
14682 #: ../fish/guestfish-actions.pod:3964 ../src/guestfs-actions.pod:6049
14683 msgid "Regular file"
14684 msgstr "Звичайний файл"
14685
14686 #. type: =item
14687 #: ../fish/guestfish-actions.pod:3966 ../src/guestfs-actions.pod:6051
14688 msgid "'s'"
14689 msgstr "'s'"
14690
14691 #. type: textblock
14692 #: ../fish/guestfish-actions.pod:3968 ../src/guestfs-actions.pod:6053
14693 msgid "Socket"
14694 msgstr "Сокет"
14695
14696 #. type: =item
14697 #: ../fish/guestfish-actions.pod:3970 ../src/guestfs-actions.pod:6055
14698 msgid "'u'"
14699 msgstr "'u'"
14700
14701 #. type: textblock
14702 #: ../fish/guestfish-actions.pod:3972 ../src/guestfs-actions.pod:6057
14703 msgid "Unknown file type"
14704 msgstr "Невідомий тип файла"
14705
14706 #. type: =item
14707 #: ../fish/guestfish-actions.pod:3974 ../src/guestfs-actions.pod:6059
14708 msgid "'?'"
14709 msgstr ""
14710
14711 #. type: textblock
14712 #: ../fish/guestfish-actions.pod:3976 ../src/guestfs-actions.pod:6061
14713 msgid ""
14714 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
14715 msgstr ""
14716
14717 #. type: textblock
14718 #: ../fish/guestfish-actions.pod:3981
14719 msgid ""
14720 "This function is primarily intended for use by programs.  To get a simple "
14721 "list of names, use L</ls>.  To get a printable directory for human "
14722 "consumption, use L</ll>."
14723 msgstr ""
14724
14725 #. type: =head2
14726 #: ../fish/guestfish-actions.pod:3985
14727 msgid "readlink"
14728 msgstr "readlink"
14729
14730 #. type: verbatim
14731 #: ../fish/guestfish-actions.pod:3987
14732 #, no-wrap
14733 msgid ""
14734 " readlink path\n"
14735 "\n"
14736 msgstr ""
14737 " readlink шлях\n"
14738 "\n"
14739
14740 #. type: textblock
14741 #: ../fish/guestfish-actions.pod:3989 ../src/guestfs-actions.pod:6082
14742 msgid "This command reads the target of a symbolic link."
14743 msgstr ""
14744
14745 #. type: =head2
14746 #: ../fish/guestfish-actions.pod:3991
14747 msgid "readlinklist"
14748 msgstr "readlinklist"
14749
14750 #. type: verbatim
14751 #: ../fish/guestfish-actions.pod:3993
14752 #, no-wrap
14753 msgid ""
14754 " readlinklist path 'names ...'\n"
14755 "\n"
14756 msgstr ""
14757
14758 #. type: textblock
14759 #: ../fish/guestfish-actions.pod:3995 ../src/guestfs-actions.pod:6096
14760 msgid ""
14761 "This call allows you to do a C<readlink> operation on multiple files, where "
14762 "all files are in the directory C<path>.  C<names> is the list of files from "
14763 "this directory."
14764 msgstr ""
14765
14766 #. type: textblock
14767 #: ../fish/guestfish-actions.pod:3999 ../src/guestfs-actions.pod:6100
14768 msgid ""
14769 "On return you get a list of strings, with a one-to-one correspondence to the "
14770 "C<names> list.  Each string is the value of the symbolic link."
14771 msgstr ""
14772
14773 #. type: textblock
14774 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6104
14775 msgid ""
14776 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14777 "result string is the empty string C<\"\">.  However the whole operation is "
14778 "completed even if there were C<readlink(2)> errors, and so you can call this "
14779 "function with names where you don't know if they are symbolic links already "
14780 "(albeit slightly less efficient)."
14781 msgstr ""
14782
14783 #. type: textblock
14784 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6111
14785 msgid ""
14786 "This call is intended for programs that want to efficiently list a directory "
14787 "contents without making many round-trips.  Very long directory listings "
14788 "might cause the protocol message size to be exceeded, causing this call to "
14789 "fail.  The caller must split up such requests into smaller groups of names."
14790 msgstr ""
14791
14792 #. type: =head2
14793 #: ../fish/guestfish-actions.pod:4017
14794 msgid "realpath"
14795 msgstr "realpath"
14796
14797 #. type: verbatim
14798 #: ../fish/guestfish-actions.pod:4019
14799 #, no-wrap
14800 msgid ""
14801 " realpath path\n"
14802 "\n"
14803 msgstr ""
14804 " realpath шлях\n"
14805 "\n"
14806
14807 #. type: textblock
14808 #: ../fish/guestfish-actions.pod:4021 ../src/guestfs-actions.pod:6130
14809 msgid ""
14810 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14811 "has no C<.>, C<..> or symbolic link path elements."
14812 msgstr ""
14813
14814 #. type: =head2
14815 #: ../fish/guestfish-actions.pod:4024
14816 msgid "removexattr"
14817 msgstr "removexattr"
14818
14819 #. type: verbatim
14820 #: ../fish/guestfish-actions.pod:4026
14821 #, no-wrap
14822 msgid ""
14823 " removexattr xattr path\n"
14824 "\n"
14825 msgstr ""
14826
14827 #. type: textblock
14828 #: ../fish/guestfish-actions.pod:4028 ../src/guestfs-actions.pod:6145
14829 msgid ""
14830 "This call removes the extended attribute named C<xattr> of the file C<path>."
14831 msgstr ""
14832
14833 #. type: textblock
14834 #: ../fish/guestfish-actions.pod:4031
14835 msgid "See also: L</lremovexattr>, L<attr(5)>."
14836 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
14837
14838 #. type: =head2
14839 #: ../fish/guestfish-actions.pod:4033
14840 msgid "resize2fs"
14841 msgstr "resize2fs"
14842
14843 #. type: verbatim
14844 #: ../fish/guestfish-actions.pod:4035
14845 #, no-wrap
14846 msgid ""
14847 " resize2fs device\n"
14848 "\n"
14849 msgstr ""
14850 " resize2fs пристрій\n"
14851 "\n"
14852
14853 #. type: textblock
14854 #: ../fish/guestfish-actions.pod:4037 ../src/guestfs-actions.pod:6160
14855 msgid ""
14856 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14857 "underlying device."
14858 msgstr ""
14859
14860 #. type: textblock
14861 #: ../fish/guestfish-actions.pod:4040
14862 msgid ""
14863 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14864 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
14865 "gives an error about this and sometimes not.  In any case, it is always safe "
14866 "to call L</e2fsck-f> before calling this function."
14867 msgstr ""
14868
14869 #. type: =head2
14870 #: ../fish/guestfish-actions.pod:4046
14871 msgid "resize2fs-M"
14872 msgstr "resize2fs-M"
14873
14874 #. type: verbatim
14875 #: ../fish/guestfish-actions.pod:4048
14876 #, no-wrap
14877 msgid ""
14878 " resize2fs-M device\n"
14879 "\n"
14880 msgstr ""
14881 " resize2fs-M пристрій\n"
14882 "\n"
14883
14884 #. type: textblock
14885 #: ../fish/guestfish-actions.pod:4050
14886 msgid ""
14887 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14888 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
14889 "command."
14890 msgstr ""
14891
14892 #. type: textblock
14893 #: ../fish/guestfish-actions.pod:4054
14894 msgid ""
14895 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14896 "and read the C<Block size> and C<Block count> values.  These two numbers, "
14897 "multiplied together, give the resulting size of the minimal filesystem in "
14898 "bytes."
14899 msgstr ""
14900
14901 #. type: =head2
14902 #: ../fish/guestfish-actions.pod:4059
14903 msgid "resize2fs-size"
14904 msgstr "resize2fs-size"
14905
14906 #. type: verbatim
14907 #: ../fish/guestfish-actions.pod:4061
14908 #, no-wrap
14909 msgid ""
14910 " resize2fs-size device size\n"
14911 "\n"
14912 msgstr ""
14913
14914 #. type: textblock
14915 #: ../fish/guestfish-actions.pod:4063
14916 msgid ""
14917 "This command is the same as L</resize2fs> except that it allows you to "
14918 "specify the new size (in bytes) explicitly."
14919 msgstr ""
14920
14921 #. type: =head2
14922 #: ../fish/guestfish-actions.pod:4066
14923 msgid "rm"
14924 msgstr "rm"
14925
14926 #. type: verbatim
14927 #: ../fish/guestfish-actions.pod:4068
14928 #, no-wrap
14929 msgid ""
14930 " rm path\n"
14931 "\n"
14932 msgstr ""
14933 " rm шлях\n"
14934 "\n"
14935
14936 #. type: textblock
14937 #: ../fish/guestfish-actions.pod:4070 ../src/guestfs-actions.pod:6212
14938 msgid "Remove the single file C<path>."
14939 msgstr ""
14940
14941 #. type: =head2
14942 #: ../fish/guestfish-actions.pod:4072
14943 msgid "rm-rf"
14944 msgstr "rm-rf"
14945
14946 #. type: verbatim
14947 #: ../fish/guestfish-actions.pod:4074
14948 #, no-wrap
14949 msgid ""
14950 " rm-rf path\n"
14951 "\n"
14952 msgstr ""
14953 " rm-rf шлях\n"
14954 "\n"
14955
14956 #. type: textblock
14957 #: ../fish/guestfish-actions.pod:4076 ../src/guestfs-actions.pod:6224
14958 msgid ""
14959 "Remove the file or directory C<path>, recursively removing the contents if "
14960 "its a directory.  This is like the C<rm -rf> shell command."
14961 msgstr ""
14962
14963 #. type: =head2
14964 #: ../fish/guestfish-actions.pod:4080
14965 msgid "rmdir"
14966 msgstr "rmdir"
14967
14968 #. type: verbatim
14969 #: ../fish/guestfish-actions.pod:4082
14970 #, no-wrap
14971 msgid ""
14972 " rmdir path\n"
14973 "\n"
14974 msgstr ""
14975 " rmdir шлях\n"
14976 "\n"
14977
14978 #. type: textblock
14979 #: ../fish/guestfish-actions.pod:4084 ../src/guestfs-actions.pod:6238
14980 msgid "Remove the single directory C<path>."
14981 msgstr ""
14982
14983 #. type: =head2
14984 #: ../fish/guestfish-actions.pod:4086
14985 msgid "rmmountpoint"
14986 msgstr "rmmountpoint"
14987
14988 #. type: verbatim
14989 #: ../fish/guestfish-actions.pod:4088
14990 #, no-wrap
14991 msgid ""
14992 " rmmountpoint exemptpath\n"
14993 "\n"
14994 msgstr ""
14995
14996 #. type: textblock
14997 #: ../fish/guestfish-actions.pod:4090
14998 msgid ""
14999 "This calls removes a mountpoint that was previously created with L</"
15000 "mkmountpoint>.  See L</mkmountpoint> for full details."
15001 msgstr ""
15002
15003 #. type: =head2
15004 #: ../fish/guestfish-actions.pod:4094
15005 msgid "scrub-device"
15006 msgstr "scrub-device"
15007
15008 #. type: verbatim
15009 #: ../fish/guestfish-actions.pod:4096
15010 #, no-wrap
15011 msgid ""
15012 " scrub-device device\n"
15013 "\n"
15014 msgstr ""
15015 " scrub-device пристрій\n"
15016 "\n"
15017
15018 #. type: textblock
15019 #: ../fish/guestfish-actions.pod:4098 ../src/guestfs-actions.pod:6264
15020 msgid ""
15021 "This command writes patterns over C<device> to make data retrieval more "
15022 "difficult."
15023 msgstr ""
15024
15025 #. type: textblock
15026 #: ../fish/guestfish-actions.pod:4101 ../fish/guestfish-actions.pod:4116
15027 #: ../fish/guestfish-actions.pod:4129 ../src/guestfs-actions.pod:6267
15028 #: ../src/guestfs-actions.pod:6288 ../src/guestfs-actions.pod:6307
15029 msgid ""
15030 "It is an interface to the L<scrub(1)> program.  See that manual page for "
15031 "more details."
15032 msgstr ""
15033
15034 #. type: =head2
15035 #: ../fish/guestfish-actions.pod:4107
15036 msgid "scrub-file"
15037 msgstr "scrub-file"
15038
15039 #. type: verbatim
15040 #: ../fish/guestfish-actions.pod:4109
15041 #, no-wrap
15042 msgid ""
15043 " scrub-file file\n"
15044 "\n"
15045 msgstr ""
15046 " scrub-file файл\n"
15047 "\n"
15048
15049 #. type: textblock
15050 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6283
15051 msgid ""
15052 "This command writes patterns over a file to make data retrieval more "
15053 "difficult."
15054 msgstr ""
15055
15056 #. type: textblock
15057 #: ../fish/guestfish-actions.pod:4114 ../src/guestfs-actions.pod:6286
15058 msgid "The file is I<removed> after scrubbing."
15059 msgstr ""
15060
15061 #. type: =head2
15062 #: ../fish/guestfish-actions.pod:4119
15063 msgid "scrub-freespace"
15064 msgstr "scrub-freespace"
15065
15066 #. type: verbatim
15067 #: ../fish/guestfish-actions.pod:4121
15068 #, no-wrap
15069 msgid ""
15070 " scrub-freespace dir\n"
15071 "\n"
15072 msgstr ""
15073 " scrub-freespace каталог\n"
15074 "\n"
15075
15076 #. type: textblock
15077 #: ../fish/guestfish-actions.pod:4123
15078 msgid ""
15079 "This command creates the directory C<dir> and then fills it with files until "
15080 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
15081 "deletes them.  The intention is to scrub any free space on the partition "
15082 "containing C<dir>."
15083 msgstr ""
15084
15085 #. type: =head2
15086 #: ../fish/guestfish-actions.pod:4132
15087 msgid "set-append"
15088 msgstr "set-append"
15089
15090 #. type: =head2
15091 #: ../fish/guestfish-actions.pod:4134
15092 msgid "append"
15093 msgstr ""
15094
15095 #. type: verbatim
15096 #: ../fish/guestfish-actions.pod:4136
15097 #, no-wrap
15098 msgid ""
15099 " set-append append\n"
15100 "\n"
15101 msgstr ""
15102
15103 #. type: textblock
15104 #: ../fish/guestfish-actions.pod:4138 ../src/guestfs-actions.pod:6320
15105 msgid ""
15106 "This function is used to add additional options to the guest kernel command "
15107 "line."
15108 msgstr ""
15109
15110 #. type: textblock
15111 #: ../fish/guestfish-actions.pod:4141 ../src/guestfs-actions.pod:6323
15112 msgid ""
15113 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
15114 "environment variable."
15115 msgstr ""
15116
15117 #. type: textblock
15118 #: ../fish/guestfish-actions.pod:4144 ../src/guestfs-actions.pod:6326
15119 msgid ""
15120 "Setting C<append> to C<NULL> means I<no> additional options are passed "
15121 "(libguestfs always adds a few of its own)."
15122 msgstr ""
15123
15124 #. type: =head2
15125 #: ../fish/guestfish-actions.pod:4147
15126 msgid "set-attach-method"
15127 msgstr "set-attach-method"
15128
15129 #. type: =head2
15130 #: ../fish/guestfish-actions.pod:4149
15131 msgid "attach-method"
15132 msgstr ""
15133
15134 #. type: verbatim
15135 #: ../fish/guestfish-actions.pod:4151
15136 #, no-wrap
15137 msgid ""
15138 " set-attach-method attachmethod\n"
15139 "\n"
15140 msgstr ""
15141
15142 #. type: textblock
15143 #: ../fish/guestfish-actions.pod:4153 ../src/guestfs-actions.pod:6339
15144 msgid ""
15145 "Set the method that libguestfs uses to connect to the back end guestfsd "
15146 "daemon.  Possible methods are:"
15147 msgstr ""
15148
15149 #. type: =item
15150 #: ../fish/guestfish-actions.pod:4158 ../src/guestfs-actions.pod:6344
15151 #: ../src/guestfs.pod:2901
15152 msgid "C<appliance>"
15153 msgstr "C<appliance>"
15154
15155 #. type: textblock
15156 #: ../fish/guestfish-actions.pod:4160 ../src/guestfs-actions.pod:6346
15157 msgid ""
15158 "Launch an appliance and connect to it.  This is the ordinary method and the "
15159 "default."
15160 msgstr ""
15161
15162 #. type: =item
15163 #: ../fish/guestfish-actions.pod:4163 ../src/guestfs-actions.pod:6349
15164 msgid "C<unix:I<path>>"
15165 msgstr "C<unix:I<шлях>>"
15166
15167 #. type: textblock
15168 #: ../fish/guestfish-actions.pod:4165 ../src/guestfs-actions.pod:6351
15169 msgid "Connect to the Unix domain socket I<path>."
15170 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
15171
15172 #. type: textblock
15173 #: ../fish/guestfish-actions.pod:4167 ../src/guestfs-actions.pod:6353
15174 msgid ""
15175 "This method lets you connect to an existing daemon or (using virtio-serial) "
15176 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
15177 "RUNNING DAEMONS>."
15178 msgstr ""
15179
15180 #. type: =head2
15181 #: ../fish/guestfish-actions.pod:4173
15182 msgid "set-autosync"
15183 msgstr "set-autosync"
15184
15185 #. type: =head2
15186 #: ../fish/guestfish-actions.pod:4175
15187 msgid "autosync"
15188 msgstr "autosync"
15189
15190 #. type: verbatim
15191 #: ../fish/guestfish-actions.pod:4177
15192 #, no-wrap
15193 msgid ""
15194 " set-autosync true|false\n"
15195 "\n"
15196 msgstr ""
15197 " set-autosync true|false\n"
15198 "\n"
15199
15200 #. type: textblock
15201 #: ../fish/guestfish-actions.pod:4179 ../src/guestfs-actions.pod:6369
15202 msgid ""
15203 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
15204 "effort attempt to make filesystems consistent and synchronized when the "
15205 "handle is closed (also if the program exits without closing handles)."
15206 msgstr ""
15207
15208 #. type: textblock
15209 #: ../fish/guestfish-actions.pod:4184 ../src/guestfs-actions.pod:6374
15210 msgid ""
15211 "This is enabled by default (since libguestfs 1.5.24, previously it was "
15212 "disabled by default)."
15213 msgstr ""
15214
15215 #. type: =head2
15216 #: ../fish/guestfish-actions.pod:4187
15217 msgid "set-direct"
15218 msgstr "set-direct"
15219
15220 #. type: =head2
15221 #: ../fish/guestfish-actions.pod:4189
15222 msgid "direct"
15223 msgstr "direct"
15224
15225 #. type: verbatim
15226 #: ../fish/guestfish-actions.pod:4191
15227 #, no-wrap
15228 msgid ""
15229 " set-direct true|false\n"
15230 "\n"
15231 msgstr ""
15232 " set-direct true|false\n"
15233 "\n"
15234
15235 #. type: textblock
15236 #: ../fish/guestfish-actions.pod:4193 ../src/guestfs-actions.pod:6387
15237 msgid ""
15238 "If the direct appliance mode flag is enabled, then stdin and stdout are "
15239 "passed directly through to the appliance once it is launched."
15240 msgstr ""
15241
15242 #. type: textblock
15243 #: ../fish/guestfish-actions.pod:4197
15244 msgid ""
15245 "One consequence of this is that log messages aren't caught by the library "
15246 "and handled by L</set-log-message-callback>, but go straight to stdout."
15247 msgstr ""
15248
15249 #. type: textblock
15250 #: ../fish/guestfish-actions.pod:4201 ../src/guestfs-actions.pod:6395
15251 msgid "You probably don't want to use this unless you know what you are doing."
15252 msgstr ""
15253
15254 #. type: textblock
15255 #: ../fish/guestfish-actions.pod:4204 ../src/guestfs-actions.pod:6398
15256 msgid "The default is disabled."
15257 msgstr ""
15258
15259 #. type: =head2
15260 #: ../fish/guestfish-actions.pod:4206
15261 msgid "set-e2label"
15262 msgstr "set-e2label"
15263
15264 #. type: verbatim
15265 #: ../fish/guestfish-actions.pod:4208
15266 #, no-wrap
15267 msgid ""
15268 " set-e2label device label\n"
15269 "\n"
15270 msgstr ""
15271
15272 #. type: textblock
15273 #: ../fish/guestfish-actions.pod:4210 ../src/guestfs-actions.pod:6411
15274 msgid ""
15275 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
15276 "C<label>.  Filesystem labels are limited to 16 characters."
15277 msgstr ""
15278
15279 #. type: textblock
15280 #: ../fish/guestfish-actions.pod:4214
15281 msgid ""
15282 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
15283 "label on a filesystem."
15284 msgstr ""
15285
15286 #. type: =head2
15287 #: ../fish/guestfish-actions.pod:4217
15288 msgid "set-e2uuid"
15289 msgstr "set-e2uuid"
15290
15291 #. type: verbatim
15292 #: ../fish/guestfish-actions.pod:4219
15293 #, no-wrap
15294 msgid ""
15295 " set-e2uuid device uuid\n"
15296 "\n"
15297 msgstr ""
15298
15299 #. type: textblock
15300 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6429
15301 msgid ""
15302 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
15303 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
15304 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
15305 msgstr ""
15306
15307 #. type: textblock
15308 #: ../fish/guestfish-actions.pod:4226
15309 msgid ""
15310 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
15311 "UUID of a filesystem."
15312 msgstr ""
15313
15314 #. type: =head2
15315 #: ../fish/guestfish-actions.pod:4229
15316 msgid "set-memsize"
15317 msgstr "set-memsize"
15318
15319 #. type: =head2
15320 #: ../fish/guestfish-actions.pod:4231
15321 msgid "memsize"
15322 msgstr ""
15323
15324 #. type: verbatim
15325 #: ../fish/guestfish-actions.pod:4233
15326 #, no-wrap
15327 msgid ""
15328 " set-memsize memsize\n"
15329 "\n"
15330 msgstr ""
15331
15332 #. type: textblock
15333 #: ../fish/guestfish-actions.pod:4235
15334 msgid ""
15335 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
15336 "This only has any effect if called before L</launch>."
15337 msgstr ""
15338
15339 #. type: textblock
15340 #: ../fish/guestfish-actions.pod:4239 ../src/guestfs-actions.pod:6451
15341 msgid ""
15342 "You can also change this by setting the environment variable "
15343 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
15344 msgstr ""
15345
15346 #. type: =head2
15347 #: ../fish/guestfish-actions.pod:4246
15348 msgid "set-network"
15349 msgstr "set-network"
15350
15351 #. type: =head2
15352 #: ../fish/guestfish-actions.pod:4248
15353 msgid "network"
15354 msgstr "network"
15355
15356 #. type: verbatim
15357 #: ../fish/guestfish-actions.pod:4250
15358 #, no-wrap
15359 msgid ""
15360 " set-network true|false\n"
15361 "\n"
15362 msgstr ""
15363 " set-network true|false\n"
15364 "\n"
15365
15366 #. type: textblock
15367 #: ../fish/guestfish-actions.pod:4252 ../src/guestfs-actions.pod:6468
15368 msgid ""
15369 "If C<network> is true, then the network is enabled in the libguestfs "
15370 "appliance.  The default is false."
15371 msgstr ""
15372
15373 #. type: textblock
15374 #: ../fish/guestfish-actions.pod:4255 ../src/guestfs-actions.pod:6471
15375 msgid ""
15376 "This affects whether commands are able to access the network (see L<guestfs"
15377 "(3)/RUNNING COMMANDS>)."
15378 msgstr ""
15379
15380 #. type: textblock
15381 #: ../fish/guestfish-actions.pod:4258
15382 msgid ""
15383 "You must call this before calling L</launch>, otherwise it has no effect."
15384 msgstr ""
15385
15386 #. type: =head2
15387 #: ../fish/guestfish-actions.pod:4261
15388 msgid "set-path"
15389 msgstr "set-path"
15390
15391 #. type: verbatim
15392 #: ../fish/guestfish-actions.pod:4265
15393 #, no-wrap
15394 msgid ""
15395 " set-path searchpath\n"
15396 "\n"
15397 msgstr ""
15398
15399 #. type: textblock
15400 #: ../fish/guestfish-actions.pod:4267 ../src/guestfs-actions.pod:6487
15401 msgid "Set the path that libguestfs searches for kernel and initrd.img."
15402 msgstr ""
15403
15404 #. type: textblock
15405 #: ../fish/guestfish-actions.pod:4269 ../src/guestfs-actions.pod:6489
15406 msgid ""
15407 "The default is C<$libdir/guestfs> unless overridden by setting "
15408 "C<LIBGUESTFS_PATH> environment variable."
15409 msgstr ""
15410
15411 #. type: textblock
15412 #: ../fish/guestfish-actions.pod:4272 ../src/guestfs-actions.pod:6492
15413 msgid "Setting C<path> to C<NULL> restores the default path."
15414 msgstr ""
15415
15416 #. type: =head2
15417 #: ../fish/guestfish-actions.pod:4274
15418 msgid "set-pgroup"
15419 msgstr ""
15420
15421 #. type: =head2
15422 #: ../fish/guestfish-actions.pod:4276
15423 msgid "pgroup"
15424 msgstr ""
15425
15426 #. type: verbatim
15427 #: ../fish/guestfish-actions.pod:4278
15428 #, no-wrap
15429 msgid ""
15430 " set-pgroup true|false\n"
15431 "\n"
15432 msgstr ""
15433
15434 #. type: textblock
15435 #: ../fish/guestfish-actions.pod:4280 ../src/guestfs-actions.pod:6504
15436 msgid ""
15437 "If C<pgroup> is true, child processes are placed into their own process "
15438 "group."
15439 msgstr ""
15440
15441 #. type: textblock
15442 #: ../fish/guestfish-actions.pod:4283 ../src/guestfs-actions.pod:6507
15443 msgid ""
15444 "The practical upshot of this is that signals like C<SIGINT> (from users "
15445 "pressing C<^C>) won't be received by the child process."
15446 msgstr ""
15447
15448 #. type: textblock
15449 #: ../fish/guestfish-actions.pod:4286 ../src/guestfs-actions.pod:6510
15450 msgid ""
15451 "The default for this flag is false, because usually you want C<^C> to kill "
15452 "the subprocess."
15453 msgstr ""
15454
15455 #. type: =head2
15456 #: ../fish/guestfish-actions.pod:4289
15457 msgid "set-qemu"
15458 msgstr "set-qemu"
15459
15460 #. type: =head2
15461 #: ../fish/guestfish-actions.pod:4291
15462 msgid "qemu"
15463 msgstr "qemu"
15464
15465 #. type: verbatim
15466 #: ../fish/guestfish-actions.pod:4293
15467 #, no-wrap
15468 msgid ""
15469 " set-qemu qemu\n"
15470 "\n"
15471 msgstr ""
15472 " set-qemu qemu\n"
15473 "\n"
15474
15475 #. type: textblock
15476 #: ../fish/guestfish-actions.pod:4295 ../src/guestfs-actions.pod:6523
15477 msgid "Set the qemu binary that we will use."
15478 msgstr ""
15479
15480 #. type: textblock
15481 #: ../fish/guestfish-actions.pod:4297 ../src/guestfs-actions.pod:6525
15482 msgid ""
15483 "The default is chosen when the library was compiled by the configure script."
15484 msgstr ""
15485
15486 #. type: textblock
15487 #: ../fish/guestfish-actions.pod:4300 ../src/guestfs-actions.pod:6528
15488 msgid ""
15489 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
15490 "variable."
15491 msgstr ""
15492
15493 #. type: textblock
15494 #: ../fish/guestfish-actions.pod:4303 ../src/guestfs-actions.pod:6531
15495 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
15496 msgstr ""
15497
15498 #. type: textblock
15499 #: ../fish/guestfish-actions.pod:4305 ../src/guestfs-actions.pod:6533
15500 msgid ""
15501 "Note that you should call this function as early as possible after creating "
15502 "the handle.  This is because some pre-launch operations depend on testing "
15503 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
15504 "don't retest features, and so you might see inconsistent results.  Using the "
15505 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
15506 "the qemu binary at the same time as the handle is created."
15507 msgstr ""
15508
15509 #. type: =head2
15510 #: ../fish/guestfish-actions.pod:4313
15511 msgid "set-recovery-proc"
15512 msgstr "set-recovery-proc"
15513
15514 #. type: =head2
15515 #: ../fish/guestfish-actions.pod:4315
15516 msgid "recovery-proc"
15517 msgstr "recovery-proc"
15518
15519 #. type: verbatim
15520 #: ../fish/guestfish-actions.pod:4317
15521 #, no-wrap
15522 msgid ""
15523 " set-recovery-proc true|false\n"
15524 "\n"
15525 msgstr ""
15526 " set-recovery-proc true|false\n"
15527 "\n"
15528
15529 #. type: textblock
15530 #: ../fish/guestfish-actions.pod:4319
15531 msgid ""
15532 "If this is called with the parameter C<false> then L</launch> does not "
15533 "create a recovery process.  The purpose of the recovery process is to stop "
15534 "runaway qemu processes in the case where the main program aborts abruptly."
15535 msgstr ""
15536
15537 #. type: textblock
15538 #: ../fish/guestfish-actions.pod:4324
15539 msgid ""
15540 "This only has any effect if called before L</launch>, and the default is "
15541 "true."
15542 msgstr ""
15543
15544 #. type: textblock
15545 #: ../fish/guestfish-actions.pod:4327 ../src/guestfs-actions.pod:6559
15546 msgid ""
15547 "About the only time when you would want to disable this is if the main "
15548 "process will fork itself into the background (\"daemonize\" itself).  In "
15549 "this case the recovery process thinks that the main program has disappeared "
15550 "and so kills qemu, which is not very helpful."
15551 msgstr ""
15552
15553 #. type: =head2
15554 #: ../fish/guestfish-actions.pod:4333
15555 msgid "set-selinux"
15556 msgstr "set-selinux"
15557
15558 #. type: =head2
15559 #: ../fish/guestfish-actions.pod:4335
15560 msgid "selinux"
15561 msgstr "selinux"
15562
15563 #. type: verbatim
15564 #: ../fish/guestfish-actions.pod:4337
15565 #, no-wrap
15566 msgid ""
15567 " set-selinux true|false\n"
15568 "\n"
15569 msgstr ""
15570 " set-selinux true|false\n"
15571 "\n"
15572
15573 #. type: textblock
15574 #: ../fish/guestfish-actions.pod:4339 ../src/guestfs-actions.pod:6575
15575 msgid ""
15576 "This sets the selinux flag that is passed to the appliance at boot time.  "
15577 "The default is C<selinux=0> (disabled)."
15578 msgstr ""
15579
15580 #. type: textblock
15581 #: ../fish/guestfish-actions.pod:4342 ../src/guestfs-actions.pod:6578
15582 msgid ""
15583 "Note that if SELinux is enabled, it is always in Permissive mode "
15584 "(C<enforcing=0>)."
15585 msgstr ""
15586
15587 #. type: =head2
15588 #: ../fish/guestfish-actions.pod:4348
15589 msgid "set-smp"
15590 msgstr ""
15591
15592 #. type: =head2
15593 #: ../fish/guestfish-actions.pod:4350
15594 msgid "smp"
15595 msgstr ""
15596
15597 #. type: verbatim
15598 #: ../fish/guestfish-actions.pod:4352
15599 #, no-wrap
15600 msgid ""
15601 " set-smp smp\n"
15602 "\n"
15603 msgstr ""
15604
15605 #. type: textblock
15606 #: ../fish/guestfish-actions.pod:4354 ../src/guestfs-actions.pod:6594
15607 msgid ""
15608 "Change the number of virtual CPUs assigned to the appliance.  The default is "
15609 "C<1>.  Increasing this may improve performance, though often it has no "
15610 "effect."
15611 msgstr ""
15612
15613 #. type: textblock
15614 #: ../fish/guestfish-actions.pod:4358
15615 msgid "This function must be called before L</launch>."
15616 msgstr ""
15617
15618 #. type: =head2
15619 #: ../fish/guestfish-actions.pod:4360
15620 msgid "set-trace"
15621 msgstr "set-trace"
15622
15623 #. type: =head2
15624 #: ../fish/guestfish-actions.pod:4362
15625 msgid "trace"
15626 msgstr "trace"
15627
15628 #. type: verbatim
15629 #: ../fish/guestfish-actions.pod:4364
15630 #, no-wrap
15631 msgid ""
15632 " set-trace true|false\n"
15633 "\n"
15634 msgstr ""
15635 " set-trace true|false\n"
15636 "\n"
15637
15638 #. type: textblock
15639 #: ../fish/guestfish-actions.pod:4366 ../src/guestfs-actions.pod:6610
15640 msgid ""
15641 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
15642 "return values are traced."
15643 msgstr ""
15644
15645 #. type: textblock
15646 #: ../fish/guestfish-actions.pod:4369 ../src/guestfs-actions.pod:6613
15647 msgid ""
15648 "If you want to trace C API calls into libguestfs (and other libraries) then "
15649 "possibly a better way is to use the external ltrace(1) command."
15650 msgstr ""
15651
15652 #. type: textblock
15653 #: ../fish/guestfish-actions.pod:4373 ../src/guestfs-actions.pod:6617
15654 msgid ""
15655 "Command traces are disabled unless the environment variable "
15656 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
15657 msgstr ""
15658
15659 #. type: textblock
15660 #: ../fish/guestfish-actions.pod:4376
15661 msgid ""
15662 "Trace messages are normally sent to C<stderr>, unless you register a "
15663 "callback to send them somewhere else (see L</set-event-callback>)."
15664 msgstr ""
15665
15666 #. type: =head2
15667 #: ../fish/guestfish-actions.pod:4380
15668 msgid "set-verbose"
15669 msgstr "set-verbose"
15670
15671 #. type: =head2
15672 #: ../fish/guestfish-actions.pod:4382
15673 msgid "verbose"
15674 msgstr "verbose"
15675
15676 #. type: verbatim
15677 #: ../fish/guestfish-actions.pod:4384
15678 #, no-wrap
15679 msgid ""
15680 " set-verbose true|false\n"
15681 "\n"
15682 msgstr ""
15683 " set-verbose true|false\n"
15684 "\n"
15685
15686 #. type: textblock
15687 #: ../fish/guestfish-actions.pod:4386 ../src/guestfs-actions.pod:6634
15688 msgid "If C<verbose> is true, this turns on verbose messages."
15689 msgstr ""
15690
15691 #. type: textblock
15692 #: ../fish/guestfish-actions.pod:4388 ../src/guestfs-actions.pod:6636
15693 msgid ""
15694 "Verbose messages are disabled unless the environment variable "
15695 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
15696 msgstr ""
15697
15698 #. type: textblock
15699 #: ../fish/guestfish-actions.pod:4391
15700 msgid ""
15701 "Verbose messages are normally sent to C<stderr>, unless you register a "
15702 "callback to send them somewhere else (see L</set-event-callback>)."
15703 msgstr ""
15704
15705 #. type: =head2
15706 #: ../fish/guestfish-actions.pod:4395
15707 msgid "setcon"
15708 msgstr "setcon"
15709
15710 #. type: verbatim
15711 #: ../fish/guestfish-actions.pod:4397
15712 #, no-wrap
15713 msgid ""
15714 " setcon context\n"
15715 "\n"
15716 msgstr ""
15717 " setcon контекст\n"
15718 "\n"
15719
15720 #. type: textblock
15721 #: ../fish/guestfish-actions.pod:4399 ../src/guestfs-actions.pod:6653
15722 msgid ""
15723 "This sets the SELinux security context of the daemon to the string "
15724 "C<context>."
15725 msgstr ""
15726
15727 #. type: textblock
15728 #: ../fish/guestfish-actions.pod:4402 ../src/guestfs-actions.pod:6656
15729 msgid "See the documentation about SELINUX in L<guestfs(3)>."
15730 msgstr ""
15731
15732 #. type: =head2
15733 #: ../fish/guestfish-actions.pod:4404
15734 msgid "setxattr"
15735 msgstr "setxattr"
15736
15737 #. type: verbatim
15738 #: ../fish/guestfish-actions.pod:4406
15739 #, no-wrap
15740 msgid ""
15741 " setxattr xattr val vallen path\n"
15742 "\n"
15743 msgstr ""
15744
15745 #. type: textblock
15746 #: ../fish/guestfish-actions.pod:4408 ../src/guestfs-actions.pod:6671
15747 msgid ""
15748 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15749 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15750 msgstr ""
15751
15752 #. type: textblock
15753 #: ../fish/guestfish-actions.pod:4412
15754 msgid "See also: L</lsetxattr>, L<attr(5)>."
15755 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
15756
15757 #. type: =head2
15758 #: ../fish/guestfish-actions.pod:4414
15759 msgid "sfdisk"
15760 msgstr "sfdisk"
15761
15762 #. type: verbatim
15763 #: ../fish/guestfish-actions.pod:4416
15764 #, no-wrap
15765 msgid ""
15766 " sfdisk device cyls heads sectors 'lines ...'\n"
15767 "\n"
15768 msgstr ""
15769
15770 #. type: textblock
15771 #: ../fish/guestfish-actions.pod:4418 ../src/guestfs-actions.pod:6698
15772 msgid ""
15773 "This is a direct interface to the L<sfdisk(8)> program for creating "
15774 "partitions on block devices."
15775 msgstr ""
15776
15777 #. type: textblock
15778 #: ../fish/guestfish-actions.pod:4421 ../src/guestfs-actions.pod:6701
15779 msgid "C<device> should be a block device, for example C</dev/sda>."
15780 msgstr ""
15781
15782 #. type: textblock
15783 #: ../fish/guestfish-actions.pod:4423 ../src/guestfs-actions.pod:6703
15784 msgid ""
15785 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15786 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
15787 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15788 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15789 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15790 "the kernel) cannot work out the right geometry and you will need to tell it."
15791 msgstr ""
15792
15793 #. type: textblock
15794 #: ../fish/guestfish-actions.pod:4431 ../src/guestfs-actions.pod:6711
15795 msgid ""
15796 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15797 "refer to the L<sfdisk(8)> manpage."
15798 msgstr ""
15799
15800 #. type: textblock
15801 #: ../fish/guestfish-actions.pod:4434 ../src/guestfs-actions.pod:6714
15802 msgid ""
15803 "To create a single partition occupying the whole disk, you would pass "
15804 "C<lines> as a single element list, when the single element being the string "
15805 "C<,> (comma)."
15806 msgstr ""
15807
15808 #. type: textblock
15809 #: ../fish/guestfish-actions.pod:4438
15810 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15811 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15812
15813 #. type: textblock
15814 #: ../fish/guestfish-actions.pod:4444 ../fish/guestfish-actions.pod:4467
15815 #: ../fish/guestfish-actions.pod:4489
15816 msgid ""
15817 "I<This function is deprecated.> In new code, use the L</part_add> call "
15818 "instead."
15819 msgstr ""
15820
15821 #. type: =head2
15822 #: ../fish/guestfish-actions.pod:4451
15823 msgid "sfdiskM"
15824 msgstr "sfdiskM"
15825
15826 #. type: verbatim
15827 #: ../fish/guestfish-actions.pod:4453
15828 #, no-wrap
15829 msgid ""
15830 " sfdiskM device 'lines ...'\n"
15831 "\n"
15832 msgstr ""
15833
15834 #. type: textblock
15835 #: ../fish/guestfish-actions.pod:4455
15836 msgid ""
15837 "This is a simplified interface to the L</sfdisk> command, where partition "
15838 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15839 "you don't need to specify the cyls, heads and sectors parameters which were "
15840 "rarely if ever used anyway."
15841 msgstr ""
15842
15843 #. type: textblock
15844 #: ../fish/guestfish-actions.pod:4461
15845 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15846 msgstr ""
15847 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
15848
15849 #. type: =head2
15850 #: ../fish/guestfish-actions.pod:4474
15851 msgid "sfdisk-N"
15852 msgstr "sfdisk-N"
15853
15854 #. type: verbatim
15855 #: ../fish/guestfish-actions.pod:4476
15856 #, no-wrap
15857 msgid ""
15858 " sfdisk-N device partnum cyls heads sectors line\n"
15859 "\n"
15860 msgstr ""
15861
15862 #. type: textblock
15863 #: ../fish/guestfish-actions.pod:4478 ../src/guestfs-actions.pod:6776
15864 msgid ""
15865 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15866 "(note: C<n> counts from 1)."
15867 msgstr ""
15868
15869 #. type: textblock
15870 #: ../fish/guestfish-actions.pod:4481
15871 msgid ""
15872 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
15873 "cyls/heads/sectors parameters."
15874 msgstr ""
15875
15876 #. type: textblock
15877 #: ../fish/guestfish-actions.pod:4484
15878 msgid "See also: L</part-add>"
15879 msgstr "Див. також L</part-add>"
15880
15881 #. type: =head2
15882 #: ../fish/guestfish-actions.pod:4496
15883 msgid "sfdisk-disk-geometry"
15884 msgstr "sfdisk-disk-geometry"
15885
15886 #. type: verbatim
15887 #: ../fish/guestfish-actions.pod:4498
15888 #, no-wrap
15889 msgid ""
15890 " sfdisk-disk-geometry device\n"
15891 "\n"
15892 msgstr ""
15893 " sfdisk-disk-geometry пристрій\n"
15894 "\n"
15895
15896 #. type: textblock
15897 #: ../fish/guestfish-actions.pod:4500
15898 msgid ""
15899 "This displays the disk geometry of C<device> read from the partition table.  "
15900 "Especially in the case where the underlying block device has been resized, "
15901 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
15902 "kernel-geometry>)."
15903 msgstr ""
15904
15905 #. type: textblock
15906 #: ../fish/guestfish-actions.pod:4505 ../fish/guestfish-actions.pod:4514
15907 #: ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6818
15908 msgid "The result is in human-readable format, and not designed to be parsed."
15909 msgstr ""
15910
15911 #. type: =head2
15912 #: ../fish/guestfish-actions.pod:4508
15913 msgid "sfdisk-kernel-geometry"
15914 msgstr "sfdisk-kernel-geometry"
15915
15916 #. type: verbatim
15917 #: ../fish/guestfish-actions.pod:4510
15918 #, no-wrap
15919 msgid ""
15920 " sfdisk-kernel-geometry device\n"
15921 "\n"
15922 msgstr ""
15923 " sfdisk-kernel-geometry пристрій\n"
15924 "\n"
15925
15926 #. type: textblock
15927 #: ../fish/guestfish-actions.pod:4512 ../src/guestfs-actions.pod:6816
15928 msgid "This displays the kernel's idea of the geometry of C<device>."
15929 msgstr ""
15930
15931 #. type: =head2
15932 #: ../fish/guestfish-actions.pod:4517
15933 msgid "sfdisk-l"
15934 msgstr "sfdisk-l"
15935
15936 #. type: verbatim
15937 #: ../fish/guestfish-actions.pod:4519
15938 #, no-wrap
15939 msgid ""
15940 " sfdisk-l device\n"
15941 "\n"
15942 msgstr ""
15943 " sfdisk-l пристрій\n"
15944 "\n"
15945
15946 #. type: textblock
15947 #: ../fish/guestfish-actions.pod:4521 ../src/guestfs-actions.pod:6839
15948 msgid ""
15949 "This displays the partition table on C<device>, in the human-readable output "
15950 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
15951 msgstr ""
15952
15953 #. type: textblock
15954 #: ../fish/guestfish-actions.pod:4525
15955 msgid "See also: L</part-list>"
15956 msgstr "Див. також L</part-list>"
15957
15958 #. type: textblock
15959 #: ../fish/guestfish-actions.pod:4527
15960 msgid ""
15961 "I<This function is deprecated.> In new code, use the L</part_list> call "
15962 "instead."
15963 msgstr ""
15964
15965 #. type: =head2
15966 #: ../fish/guestfish-actions.pod:4534
15967 msgid "sh"
15968 msgstr "sh"
15969
15970 #. type: verbatim
15971 #: ../fish/guestfish-actions.pod:4536
15972 #, no-wrap
15973 msgid ""
15974 " sh command\n"
15975 "\n"
15976 msgstr ""
15977 " sh команда\n"
15978 "\n"
15979
15980 #. type: textblock
15981 #: ../fish/guestfish-actions.pod:4538 ../src/guestfs-actions.pod:6856
15982 msgid ""
15983 "This call runs a command from the guest filesystem via the guest's C</bin/"
15984 "sh>."
15985 msgstr ""
15986
15987 #. type: textblock
15988 #: ../fish/guestfish-actions.pod:4541
15989 msgid "This is like L</command>, but passes the command to:"
15990 msgstr ""
15991
15992 #. type: verbatim
15993 #: ../fish/guestfish-actions.pod:4543 ../src/guestfs-actions.pod:6861
15994 #, no-wrap
15995 msgid ""
15996 " /bin/sh -c \"command\"\n"
15997 "\n"
15998 msgstr ""
15999
16000 #. type: textblock
16001 #: ../fish/guestfish-actions.pod:4545 ../src/guestfs-actions.pod:6863
16002 msgid ""
16003 "Depending on the guest's shell, this usually results in wildcards being "
16004 "expanded, shell expressions being interpolated and so on."
16005 msgstr ""
16006
16007 #. type: textblock
16008 #: ../fish/guestfish-actions.pod:4549
16009 msgid "All the provisos about L</command> apply to this call."
16010 msgstr ""
16011
16012 #. type: =head2
16013 #: ../fish/guestfish-actions.pod:4551
16014 msgid "sh-lines"
16015 msgstr "sh-lines"
16016
16017 #. type: verbatim
16018 #: ../fish/guestfish-actions.pod:4553
16019 #, no-wrap
16020 msgid ""
16021 " sh-lines command\n"
16022 "\n"
16023 msgstr ""
16024 " sh-lines команда\n"
16025 "\n"
16026
16027 #. type: textblock
16028 #: ../fish/guestfish-actions.pod:4555
16029 msgid "This is the same as L</sh>, but splits the result into a list of lines."
16030 msgstr ""
16031
16032 #. type: textblock
16033 #: ../fish/guestfish-actions.pod:4558
16034 msgid "See also: L</command-lines>"
16035 msgstr "Див. також L</command-lines>"
16036
16037 #. type: =head2
16038 #: ../fish/guestfish-actions.pod:4560
16039 msgid "sleep"
16040 msgstr "sleep"
16041
16042 #. type: verbatim
16043 #: ../fish/guestfish-actions.pod:4562
16044 #, no-wrap
16045 msgid ""
16046 " sleep secs\n"
16047 "\n"
16048 msgstr ""
16049 " sleep час_у_секундах\n"
16050 "\n"
16051
16052 #. type: textblock
16053 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6897
16054 msgid "Sleep for C<secs> seconds."
16055 msgstr ""
16056
16057 #. type: =head2
16058 #: ../fish/guestfish-actions.pod:4566
16059 msgid "stat"
16060 msgstr "stat"
16061
16062 #. type: verbatim
16063 #: ../fish/guestfish-actions.pod:4568
16064 #, no-wrap
16065 msgid ""
16066 " stat path\n"
16067 "\n"
16068 msgstr ""
16069 " stat шлях\n"
16070 "\n"
16071
16072 #. type: textblock
16073 #: ../fish/guestfish-actions.pod:4572 ../src/guestfs-actions.pod:6911
16074 msgid "This is the same as the C<stat(2)> system call."
16075 msgstr ""
16076
16077 #. type: =head2
16078 #: ../fish/guestfish-actions.pod:4574
16079 msgid "statvfs"
16080 msgstr "statvfs"
16081
16082 #. type: verbatim
16083 #: ../fish/guestfish-actions.pod:4576
16084 #, no-wrap
16085 msgid ""
16086 " statvfs path\n"
16087 "\n"
16088 msgstr ""
16089 " statvfs шлях\n"
16090 "\n"
16091
16092 #. type: textblock
16093 #: ../fish/guestfish-actions.pod:4578 ../src/guestfs-actions.pod:6925
16094 msgid ""
16095 "Returns file system statistics for any mounted file system.  C<path> should "
16096 "be a file or directory in the mounted file system (typically it is the mount "
16097 "point itself, but it doesn't need to be)."
16098 msgstr ""
16099
16100 #. type: textblock
16101 #: ../fish/guestfish-actions.pod:4582 ../src/guestfs-actions.pod:6929
16102 msgid "This is the same as the C<statvfs(2)> system call."
16103 msgstr ""
16104
16105 #. type: =head2
16106 #: ../fish/guestfish-actions.pod:4584
16107 msgid "strings"
16108 msgstr "strings"
16109
16110 #. type: verbatim
16111 #: ../fish/guestfish-actions.pod:4586
16112 #, no-wrap
16113 msgid ""
16114 " strings path\n"
16115 "\n"
16116 msgstr ""
16117 " strings шлях\n"
16118 "\n"
16119
16120 #. type: textblock
16121 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6943
16122 msgid ""
16123 "This runs the L<strings(1)> command on a file and returns the list of "
16124 "printable strings found."
16125 msgstr ""
16126
16127 #. type: =head2
16128 #: ../fish/guestfish-actions.pod:4594
16129 msgid "strings-e"
16130 msgstr "strings-e"
16131
16132 #. type: verbatim
16133 #: ../fish/guestfish-actions.pod:4596
16134 #, no-wrap
16135 msgid ""
16136 " strings-e encoding path\n"
16137 "\n"
16138 msgstr ""
16139 " strings-e кодування шлях\n"
16140 "\n"
16141
16142 #. type: textblock
16143 #: ../fish/guestfish-actions.pod:4598
16144 msgid ""
16145 "This is like the L</strings> command, but allows you to specify the encoding "
16146 "of strings that are looked for in the source file C<path>."
16147 msgstr ""
16148
16149 #. type: textblock
16150 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6966
16151 msgid "Allowed encodings are:"
16152 msgstr "Можливими кодуваннями є:"
16153
16154 #. type: =item
16155 #: ../fish/guestfish-actions.pod:4606 ../src/guestfs-actions.pod:6970
16156 msgid "s"
16157 msgstr "s"
16158
16159 #. type: textblock
16160 #: ../fish/guestfish-actions.pod:4608
16161 msgid ""
16162 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
16163 "ISO-8859-X (this is what L</strings> uses)."
16164 msgstr ""
16165
16166 #. type: =item
16167 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6975
16168 msgid "S"
16169 msgstr "S"
16170
16171 #. type: textblock
16172 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6977
16173 msgid "Single 8-bit-byte characters."
16174 msgstr "Окремі 8-бітові-байтові символи."
16175
16176 #. type: =item
16177 #: ../fish/guestfish-actions.pod:4615 ../src/guestfs-actions.pod:6979
16178 msgid "b"
16179 msgstr "b"
16180
16181 #. type: textblock
16182 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6981
16183 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
16184 msgstr ""
16185
16186 #. type: =item
16187 #: ../fish/guestfish-actions.pod:4620 ../src/guestfs-actions.pod:6984
16188 msgid "l (lower case letter L)"
16189 msgstr ""
16190
16191 #. type: textblock
16192 #: ../fish/guestfish-actions.pod:4622 ../src/guestfs-actions.pod:6986
16193 msgid ""
16194 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
16195 "examining binaries in Windows guests."
16196 msgstr ""
16197
16198 #. type: =item
16199 #: ../fish/guestfish-actions.pod:4625 ../src/guestfs-actions.pod:6989
16200 msgid "B"
16201 msgstr "B"
16202
16203 #. type: textblock
16204 #: ../fish/guestfish-actions.pod:4627 ../src/guestfs-actions.pod:6991
16205 msgid "32-bit big endian such as UCS-4BE."
16206 msgstr ""
16207
16208 #. type: =item
16209 #: ../fish/guestfish-actions.pod:4629 ../src/guestfs-actions.pod:6993
16210 msgid "L"
16211 msgstr "L"
16212
16213 #. type: textblock
16214 #: ../fish/guestfish-actions.pod:4631 ../src/guestfs-actions.pod:6995
16215 msgid "32-bit little endian such as UCS-4LE."
16216 msgstr ""
16217
16218 #. type: textblock
16219 #: ../fish/guestfish-actions.pod:4635 ../src/guestfs-actions.pod:6999
16220 msgid "The returned strings are transcoded to UTF-8."
16221 msgstr ""
16222
16223 #. type: =head2
16224 #: ../fish/guestfish-actions.pod:4640
16225 msgid "swapoff-device"
16226 msgstr "swapoff-device"
16227
16228 #. type: verbatim
16229 #: ../fish/guestfish-actions.pod:4642
16230 #, no-wrap
16231 msgid ""
16232 " swapoff-device device\n"
16233 "\n"
16234 msgstr ""
16235 " swapoff-device пристрій\n"
16236 "\n"
16237
16238 #. type: textblock
16239 #: ../fish/guestfish-actions.pod:4644
16240 msgid ""
16241 "This command disables the libguestfs appliance swap device or partition "
16242 "named C<device>.  See L</swapon-device>."
16243 msgstr ""
16244
16245 #. type: =head2
16246 #: ../fish/guestfish-actions.pod:4648
16247 msgid "swapoff-file"
16248 msgstr "swapoff-file"
16249
16250 #. type: verbatim
16251 #: ../fish/guestfish-actions.pod:4650
16252 #, no-wrap
16253 msgid ""
16254 " swapoff-file file\n"
16255 "\n"
16256 msgstr ""
16257 " swapoff-file файл\n"
16258 "\n"
16259
16260 #. type: textblock
16261 #: ../fish/guestfish-actions.pod:4652 ../src/guestfs-actions.pod:7030
16262 msgid "This command disables the libguestfs appliance swap on file."
16263 msgstr ""
16264
16265 #. type: =head2
16266 #: ../fish/guestfish-actions.pod:4654
16267 msgid "swapoff-label"
16268 msgstr "swapoff-label"
16269
16270 #. type: verbatim
16271 #: ../fish/guestfish-actions.pod:4656
16272 #, no-wrap
16273 msgid ""
16274 " swapoff-label label\n"
16275 "\n"
16276 msgstr ""
16277 " swapoff-label мітка\n"
16278 "\n"
16279
16280 #. type: textblock
16281 #: ../fish/guestfish-actions.pod:4658 ../src/guestfs-actions.pod:7042
16282 msgid ""
16283 "This command disables the libguestfs appliance swap on labeled swap "
16284 "partition."
16285 msgstr ""
16286
16287 #. type: =head2
16288 #: ../fish/guestfish-actions.pod:4661
16289 msgid "swapoff-uuid"
16290 msgstr "swapoff-uuid"
16291
16292 #. type: verbatim
16293 #: ../fish/guestfish-actions.pod:4663
16294 #, no-wrap
16295 msgid ""
16296 " swapoff-uuid uuid\n"
16297 "\n"
16298 msgstr ""
16299 " swapoff-uuid uuid\n"
16300 "\n"
16301
16302 #. type: textblock
16303 #: ../fish/guestfish-actions.pod:4665 ../src/guestfs-actions.pod:7055
16304 msgid ""
16305 "This command disables the libguestfs appliance swap partition with the given "
16306 "UUID."
16307 msgstr ""
16308
16309 #. type: =head2
16310 #: ../fish/guestfish-actions.pod:4668
16311 msgid "swapon-device"
16312 msgstr "swapon-device"
16313
16314 #. type: verbatim
16315 #: ../fish/guestfish-actions.pod:4670
16316 #, no-wrap
16317 msgid ""
16318 " swapon-device device\n"
16319 "\n"
16320 msgstr ""
16321 " swapon-device пристрій\n"
16322 "\n"
16323
16324 #. type: textblock
16325 #: ../fish/guestfish-actions.pod:4672
16326 msgid ""
16327 "This command enables the libguestfs appliance to use the swap device or "
16328 "partition named C<device>.  The increased memory is made available for all "
16329 "commands, for example those run using L</command> or L</sh>."
16330 msgstr ""
16331
16332 #. type: textblock
16333 #: ../fish/guestfish-actions.pod:4677 ../src/guestfs-actions.pod:7073
16334 msgid ""
16335 "Note that you should not swap to existing guest swap partitions unless you "
16336 "know what you are doing.  They may contain hibernation information, or other "
16337 "information that the guest doesn't want you to trash.  You also risk leaking "
16338 "information about the host to the guest this way.  Instead, attach a new "
16339 "host device to the guest and swap on that."
16340 msgstr ""
16341
16342 #. type: =head2
16343 #: ../fish/guestfish-actions.pod:4684
16344 msgid "swapon-file"
16345 msgstr "swapon-file"
16346
16347 #. type: verbatim
16348 #: ../fish/guestfish-actions.pod:4686
16349 #, no-wrap
16350 msgid ""
16351 " swapon-file file\n"
16352 "\n"
16353 msgstr ""
16354 " swapon-file файл\n"
16355 "\n"
16356
16357 #. type: textblock
16358 #: ../fish/guestfish-actions.pod:4688
16359 msgid ""
16360 "This command enables swap to a file.  See L</swapon-device> for other notes."
16361 msgstr ""
16362
16363 #. type: =head2
16364 #: ../fish/guestfish-actions.pod:4691
16365 msgid "swapon-label"
16366 msgstr "swapon-label"
16367
16368 #. type: verbatim
16369 #: ../fish/guestfish-actions.pod:4693
16370 #, no-wrap
16371 msgid ""
16372 " swapon-label label\n"
16373 "\n"
16374 msgstr ""
16375 " swapon-label мітка\n"
16376 "\n"
16377
16378 #. type: textblock
16379 #: ../fish/guestfish-actions.pod:4695
16380 msgid ""
16381 "This command enables swap to a labeled swap partition.  See L</swapon-"
16382 "device> for other notes."
16383 msgstr ""
16384
16385 #. type: =head2
16386 #: ../fish/guestfish-actions.pod:4698
16387 msgid "swapon-uuid"
16388 msgstr "swapon-uuid"
16389
16390 #. type: verbatim
16391 #: ../fish/guestfish-actions.pod:4700
16392 #, no-wrap
16393 msgid ""
16394 " swapon-uuid uuid\n"
16395 "\n"
16396 msgstr ""
16397 " swapon-uuid uuid\n"
16398 "\n"
16399
16400 #. type: textblock
16401 #: ../fish/guestfish-actions.pod:4702
16402 msgid ""
16403 "This command enables swap to a swap partition with the given UUID.  See L</"
16404 "swapon-device> for other notes."
16405 msgstr ""
16406
16407 #. type: =head2
16408 #: ../fish/guestfish-actions.pod:4705
16409 msgid "sync"
16410 msgstr "sync"
16411
16412 #. type: verbatim
16413 #: ../fish/guestfish-actions.pod:4707
16414 #, no-wrap
16415 msgid ""
16416 " sync\n"
16417 "\n"
16418 msgstr ""
16419 " sync\n"
16420 "\n"
16421
16422 #. type: textblock
16423 #: ../fish/guestfish-actions.pod:4709 ../src/guestfs-actions.pod:7128
16424 msgid ""
16425 "This syncs the disk, so that any writes are flushed through to the "
16426 "underlying disk image."
16427 msgstr ""
16428
16429 #. type: textblock
16430 #: ../fish/guestfish-actions.pod:4712 ../src/guestfs-actions.pod:7131
16431 msgid ""
16432 "You should always call this if you have modified a disk image, before "
16433 "closing the handle."
16434 msgstr ""
16435
16436 #. type: =head2
16437 #: ../fish/guestfish-actions.pod:4715
16438 msgid "tail"
16439 msgstr "tail"
16440
16441 #. type: verbatim
16442 #: ../fish/guestfish-actions.pod:4717
16443 #, no-wrap
16444 msgid ""
16445 " tail path\n"
16446 "\n"
16447 msgstr ""
16448 " tail шлях\n"
16449 "\n"
16450
16451 #. type: textblock
16452 #: ../fish/guestfish-actions.pod:4719 ../src/guestfs-actions.pod:7144
16453 msgid ""
16454 "This command returns up to the last 10 lines of a file as a list of strings."
16455 msgstr ""
16456
16457 #. type: =head2
16458 #: ../fish/guestfish-actions.pod:4725
16459 msgid "tail-n"
16460 msgstr "tail-n"
16461
16462 #. type: verbatim
16463 #: ../fish/guestfish-actions.pod:4727
16464 #, no-wrap
16465 msgid ""
16466 " tail-n nrlines path\n"
16467 "\n"
16468 msgstr ""
16469
16470 #. type: textblock
16471 #: ../fish/guestfish-actions.pod:4729 ../src/guestfs-actions.pod:7163
16472 msgid ""
16473 "If the parameter C<nrlines> is a positive number, this returns the last "
16474 "C<nrlines> lines of the file C<path>."
16475 msgstr ""
16476
16477 #. type: textblock
16478 #: ../fish/guestfish-actions.pod:4732 ../src/guestfs-actions.pod:7166
16479 msgid ""
16480 "If the parameter C<nrlines> is a negative number, this returns lines from "
16481 "the file C<path>, starting with the C<-nrlines>th line."
16482 msgstr ""
16483
16484 #. type: =head2
16485 #: ../fish/guestfish-actions.pod:4740
16486 msgid "tar-in"
16487 msgstr "tar-in"
16488
16489 #. type: verbatim
16490 #: ../fish/guestfish-actions.pod:4742
16491 #, no-wrap
16492 msgid ""
16493 " tar-in (tarfile|-) directory\n"
16494 "\n"
16495 msgstr ""
16496 " tar-in (файл_tar|-) каталог\n"
16497 "\n"
16498
16499 #. type: textblock
16500 #: ../fish/guestfish-actions.pod:4744 ../src/guestfs-actions.pod:7187
16501 msgid ""
16502 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
16503 "tar file) into C<directory>."
16504 msgstr ""
16505
16506 #. type: textblock
16507 #: ../fish/guestfish-actions.pod:4747
16508 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
16509 msgstr ""
16510
16511 #. type: =head2
16512 #: ../fish/guestfish-actions.pod:4752
16513 msgid "tar-out"
16514 msgstr "tar-out"
16515
16516 #. type: verbatim
16517 #: ../fish/guestfish-actions.pod:4754
16518 #, no-wrap
16519 msgid ""
16520 " tar-out directory (tarfile|-)\n"
16521 "\n"
16522 msgstr ""
16523 " tar-out каталог (файл tar|-)\n"
16524 "\n"
16525
16526 #. type: textblock
16527 #: ../fish/guestfish-actions.pod:4756 ../src/guestfs-actions.pod:7204
16528 msgid ""
16529 "This command packs the contents of C<directory> and downloads it to local "
16530 "file C<tarfile>."
16531 msgstr ""
16532
16533 #. type: textblock
16534 #: ../fish/guestfish-actions.pod:4759
16535 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
16536 msgstr ""
16537
16538 #. type: =head2
16539 #: ../fish/guestfish-actions.pod:4764
16540 msgid "tgz-in"
16541 msgstr "tgz-in"
16542
16543 #. type: verbatim
16544 #: ../fish/guestfish-actions.pod:4766
16545 #, no-wrap
16546 msgid ""
16547 " tgz-in (tarball|-) directory\n"
16548 "\n"
16549 msgstr ""
16550 " tgz-in (архів tar|-) каталог\n"
16551 "\n"
16552
16553 #. type: textblock
16554 #: ../fish/guestfish-actions.pod:4768 ../src/guestfs-actions.pod:7221
16555 msgid ""
16556 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
16557 "tar file) into C<directory>."
16558 msgstr ""
16559
16560 #. type: textblock
16561 #: ../fish/guestfish-actions.pod:4771
16562 msgid "To upload an uncompressed tarball, use L</tar-in>."
16563 msgstr ""
16564
16565 #. type: =head2
16566 #: ../fish/guestfish-actions.pod:4775
16567 msgid "tgz-out"
16568 msgstr "tgz-out"
16569
16570 #. type: verbatim
16571 #: ../fish/guestfish-actions.pod:4777
16572 #, no-wrap
16573 msgid ""
16574 " tgz-out directory (tarball|-)\n"
16575 "\n"
16576 msgstr ""
16577 " tgz-out каталог (архів tar|-)\n"
16578 "\n"
16579
16580 #. type: textblock
16581 #: ../fish/guestfish-actions.pod:4779 ../src/guestfs-actions.pod:7237
16582 msgid ""
16583 "This command packs the contents of C<directory> and downloads it to local "
16584 "file C<tarball>."
16585 msgstr ""
16586
16587 #. type: textblock
16588 #: ../fish/guestfish-actions.pod:4782
16589 msgid "To download an uncompressed tarball, use L</tar-out>."
16590 msgstr ""
16591
16592 #. type: =head2
16593 #: ../fish/guestfish-actions.pod:4786
16594 msgid "touch"
16595 msgstr "touch"
16596
16597 #. type: verbatim
16598 #: ../fish/guestfish-actions.pod:4788
16599 #, no-wrap
16600 msgid ""
16601 " touch path\n"
16602 "\n"
16603 msgstr ""
16604 " touch шлях\n"
16605 "\n"
16606
16607 #. type: textblock
16608 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7252
16609 msgid ""
16610 "Touch acts like the L<touch(1)> command.  It can be used to update the "
16611 "timestamps on a file, or, if the file does not exist, to create a new zero-"
16612 "length file."
16613 msgstr ""
16614
16615 #. type: textblock
16616 #: ../fish/guestfish-actions.pod:4794 ../src/guestfs-actions.pod:7256
16617 msgid ""
16618 "This command only works on regular files, and will fail on other file types "
16619 "such as directories, symbolic links, block special etc."
16620 msgstr ""
16621
16622 #. type: =head2
16623 #: ../fish/guestfish-actions.pod:4797
16624 msgid "truncate"
16625 msgstr "truncate"
16626
16627 #. type: verbatim
16628 #: ../fish/guestfish-actions.pod:4799
16629 #, no-wrap
16630 msgid ""
16631 " truncate path\n"
16632 "\n"
16633 msgstr ""
16634 " truncate шлях\n"
16635 "\n"
16636
16637 #. type: textblock
16638 #: ../fish/guestfish-actions.pod:4801 ../src/guestfs-actions.pod:7269
16639 msgid ""
16640 "This command truncates C<path> to a zero-length file.  The file must exist "
16641 "already."
16642 msgstr ""
16643
16644 #. type: =head2
16645 #: ../fish/guestfish-actions.pod:4804
16646 msgid "truncate-size"
16647 msgstr "truncate-size"
16648
16649 #. type: verbatim
16650 #: ../fish/guestfish-actions.pod:4806
16651 #, no-wrap
16652 msgid ""
16653 " truncate-size path size\n"
16654 "\n"
16655 msgstr ""
16656 " truncate-size шлях розмір\n"
16657 "\n"
16658
16659 #. type: textblock
16660 #: ../fish/guestfish-actions.pod:4808 ../src/guestfs-actions.pod:7283
16661 msgid ""
16662 "This command truncates C<path> to size C<size> bytes.  The file must exist "
16663 "already."
16664 msgstr ""
16665
16666 #. type: textblock
16667 #: ../fish/guestfish-actions.pod:4811
16668 msgid ""
16669 "If the current file size is less than C<size> then the file is extended to "
16670 "the required size with zero bytes.  This creates a sparse file (ie. disk "
16671 "blocks are not allocated for the file until you write to it).  To create a "
16672 "non-sparse file of zeroes, use L</fallocate64> instead."
16673 msgstr ""
16674
16675 #. type: =head2
16676 #: ../fish/guestfish-actions.pod:4817
16677 msgid "tune2fs-l"
16678 msgstr "tune2fs-l"
16679
16680 #. type: verbatim
16681 #: ../fish/guestfish-actions.pod:4819
16682 #, no-wrap
16683 msgid ""
16684 " tune2fs-l device\n"
16685 "\n"
16686 msgstr ""
16687 " tune2fs-l пристрій\n"
16688 "\n"
16689
16690 #. type: textblock
16691 #: ../fish/guestfish-actions.pod:4821 ../src/guestfs-actions.pod:7302
16692 msgid ""
16693 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
16694 "C<device>."
16695 msgstr ""
16696
16697 #. type: textblock
16698 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7305
16699 msgid ""
16700 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
16701 "for more details.  The list of fields returned isn't clearly defined, and "
16702 "depends on both the version of C<tune2fs> that libguestfs was built against, "
16703 "and the filesystem itself."
16704 msgstr ""
16705
16706 #. type: =head2
16707 #: ../fish/guestfish-actions.pod:4829
16708 msgid "txz-in"
16709 msgstr "txz-in"
16710
16711 #. type: verbatim
16712 #: ../fish/guestfish-actions.pod:4831
16713 #, no-wrap
16714 msgid ""
16715 " txz-in (tarball|-) directory\n"
16716 "\n"
16717 msgstr ""
16718 " txz-in (архів tar|-) каталог\n"
16719 "\n"
16720
16721 #. type: textblock
16722 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7325
16723 msgid ""
16724 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
16725 "tar file) into C<directory>."
16726 msgstr ""
16727
16728 #. type: =head2
16729 #: ../fish/guestfish-actions.pod:4838
16730 msgid "txz-out"
16731 msgstr "txz-out"
16732
16733 #. type: verbatim
16734 #: ../fish/guestfish-actions.pod:4840
16735 #, no-wrap
16736 msgid ""
16737 " txz-out directory (tarball|-)\n"
16738 "\n"
16739 msgstr ""
16740 " txz-out каталог (архів tar|-)\n"
16741 "\n"
16742
16743 #. type: textblock
16744 #: ../fish/guestfish-actions.pod:4842 ../src/guestfs-actions.pod:7339
16745 msgid ""
16746 "This command packs the contents of C<directory> and downloads it to local "
16747 "file C<tarball> (as an xz compressed tar archive)."
16748 msgstr ""
16749
16750 #. type: =head2
16751 #: ../fish/guestfish-actions.pod:4847
16752 msgid "umask"
16753 msgstr "umask"
16754
16755 #. type: verbatim
16756 #: ../fish/guestfish-actions.pod:4849
16757 #, no-wrap
16758 msgid ""
16759 " umask mask\n"
16760 "\n"
16761 msgstr ""
16762 " umask маска\n"
16763 "\n"
16764
16765 #. type: textblock
16766 #: ../fish/guestfish-actions.pod:4851 ../src/guestfs-actions.pod:7352
16767 msgid ""
16768 "This function sets the mask used for creating new files and device nodes to "
16769 "C<mask & 0777>."
16770 msgstr ""
16771
16772 #. type: textblock
16773 #: ../fish/guestfish-actions.pod:4854 ../src/guestfs-actions.pod:7355
16774 msgid ""
16775 "Typical umask values would be C<022> which creates new files with "
16776 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16777 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16778 msgstr ""
16779
16780 #. type: textblock
16781 #: ../fish/guestfish-actions.pod:4859 ../src/guestfs-actions.pod:7360
16782 msgid ""
16783 "The default umask is C<022>.  This is important because it means that "
16784 "directories and device nodes will be created with C<0644> or C<0755> mode "
16785 "even if you specify C<0777>."
16786 msgstr ""
16787
16788 #. type: textblock
16789 #: ../fish/guestfish-actions.pod:4863
16790 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16791 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16792
16793 #. type: textblock
16794 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7367
16795 msgid "This call returns the previous umask."
16796 msgstr ""
16797
16798 #. type: =head2
16799 #: ../fish/guestfish-actions.pod:4868
16800 msgid "umount"
16801 msgstr "umount"
16802
16803 #. type: =head2
16804 #: ../fish/guestfish-actions.pod:4870
16805 msgid "unmount"
16806 msgstr "unmount"
16807
16808 #. type: verbatim
16809 #: ../fish/guestfish-actions.pod:4872
16810 #, no-wrap
16811 msgid ""
16812 " umount pathordevice\n"
16813 "\n"
16814 msgstr ""
16815 " umount шлях_або_пристрій\n"
16816 "\n"
16817
16818 #. type: textblock
16819 #: ../fish/guestfish-actions.pod:4874 ../src/guestfs-actions.pod:7379
16820 msgid ""
16821 "This unmounts the given filesystem.  The filesystem may be specified either "
16822 "by its mountpoint (path) or the device which contains the filesystem."
16823 msgstr ""
16824
16825 #. type: =head2
16826 #: ../fish/guestfish-actions.pod:4878
16827 msgid "umount-all"
16828 msgstr "umount-all"
16829
16830 #. type: =head2
16831 #: ../fish/guestfish-actions.pod:4880
16832 msgid "unmount-all"
16833 msgstr "unmount-all"
16834
16835 #. type: verbatim
16836 #: ../fish/guestfish-actions.pod:4882
16837 #, no-wrap
16838 msgid ""
16839 " umount-all\n"
16840 "\n"
16841 msgstr ""
16842 " umount-all\n"
16843 "\n"
16844
16845 #. type: textblock
16846 #: ../fish/guestfish-actions.pod:4884 ../src/guestfs-actions.pod:7392
16847 msgid "This unmounts all mounted filesystems."
16848 msgstr ""
16849
16850 #. type: textblock
16851 #: ../fish/guestfish-actions.pod:4886 ../src/guestfs-actions.pod:7394
16852 msgid "Some internal mounts are not unmounted by this call."
16853 msgstr ""
16854
16855 #. type: =head2
16856 #: ../fish/guestfish-actions.pod:4888
16857 msgid "upload"
16858 msgstr "upload"
16859
16860 #. type: verbatim
16861 #: ../fish/guestfish-actions.pod:4890
16862 #, no-wrap
16863 msgid ""
16864 " upload (filename|-) remotefilename\n"
16865 "\n"
16866 msgstr ""
16867 " upload (назва_файла|-) назва_віддаленого_файла\n"
16868 "\n"
16869
16870 #. type: textblock
16871 #: ../fish/guestfish-actions.pod:4892 ../fish/guestfish-actions.pod:4905
16872 #: ../src/guestfs-actions.pod:7407 ../src/guestfs-actions.pod:7431
16873 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16874 msgstr ""
16875
16876 #. type: textblock
16877 #: ../fish/guestfish-actions.pod:4897
16878 msgid "See also L</download>."
16879 msgstr "Див. також L</download>."
16880
16881 #. type: =head2
16882 #: ../fish/guestfish-actions.pod:4901
16883 msgid "upload-offset"
16884 msgstr "upload-offset"
16885
16886 #. type: verbatim
16887 #: ../fish/guestfish-actions.pod:4903
16888 #, no-wrap
16889 msgid ""
16890 " upload-offset (filename|-) remotefilename offset\n"
16891 "\n"
16892 msgstr ""
16893 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
16894 "\n"
16895
16896 #. type: textblock
16897 #: ../fish/guestfish-actions.pod:4908 ../src/guestfs-actions.pod:7434
16898 msgid ""
16899 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
16900 "The intention is to overwrite parts of existing files or devices, although "
16901 "if a non-existant file is specified then it is created with a \"hole\" "
16902 "before C<offset>.  The size of the data written is implicit in the size of "
16903 "the source C<filename>."
16904 msgstr ""
16905
16906 #. type: textblock
16907 #: ../fish/guestfish-actions.pod:4915
16908 msgid ""
16909 "Note that there is no limit on the amount of data that can be uploaded with "
16910 "this call, unlike with L</pwrite>, and this call always writes the full "
16911 "amount unless an error occurs."
16912 msgstr ""
16913
16914 #. type: textblock
16915 #: ../fish/guestfish-actions.pod:4920
16916 msgid "See also L</upload>, L</pwrite>."
16917 msgstr "Див. також L</upload>, L</pwrite>."
16918
16919 #. type: =head2
16920 #: ../fish/guestfish-actions.pod:4924
16921 msgid "utimens"
16922 msgstr "utimens"
16923
16924 #. type: verbatim
16925 #: ../fish/guestfish-actions.pod:4926
16926 #, no-wrap
16927 msgid ""
16928 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
16929 "\n"
16930 msgstr ""
16931
16932 #. type: textblock
16933 #: ../fish/guestfish-actions.pod:4928 ../src/guestfs-actions.pod:7467
16934 msgid "This command sets the timestamps of a file with nanosecond precision."
16935 msgstr ""
16936
16937 #. type: textblock
16938 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7470
16939 msgid ""
16940 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16941 "from the epoch."
16942 msgstr ""
16943
16944 #. type: textblock
16945 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7473
16946 msgid ""
16947 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16948 "nanoseconds from the epoch."
16949 msgstr ""
16950
16951 #. type: textblock
16952 #: ../fish/guestfish-actions.pod:4937 ../src/guestfs-actions.pod:7476
16953 msgid ""
16954 "If the C<*nsecs> field contains the special value C<-1> then the "
16955 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
16956 "ignored in this case)."
16957 msgstr ""
16958
16959 #. type: textblock
16960 #: ../fish/guestfish-actions.pod:4941 ../src/guestfs-actions.pod:7480
16961 msgid ""
16962 "If the C<*nsecs> field contains the special value C<-2> then the "
16963 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
16964 "in this case)."
16965 msgstr ""
16966
16967 #. type: =head2
16968 #: ../fish/guestfish-actions.pod:4945
16969 msgid "version"
16970 msgstr "version"
16971
16972 #. type: verbatim
16973 #: ../fish/guestfish-actions.pod:4947
16974 #, no-wrap
16975 msgid ""
16976 " version\n"
16977 "\n"
16978 msgstr ""
16979 " version\n"
16980 "\n"
16981
16982 #. type: textblock
16983 #: ../fish/guestfish-actions.pod:4949 ../src/guestfs-actions.pod:7493
16984 msgid ""
16985 "Return the libguestfs version number that the program is linked against."
16986 msgstr ""
16987
16988 #. type: textblock
16989 #: ../fish/guestfish-actions.pod:4952 ../src/guestfs-actions.pod:7496
16990 msgid ""
16991 "Note that because of dynamic linking this is not necessarily the version of "
16992 "libguestfs that you compiled against.  You can compile the program, and then "
16993 "at runtime dynamically link against a completely different C<libguestfs.so> "
16994 "library."
16995 msgstr ""
16996
16997 #. type: textblock
16998 #: ../fish/guestfish-actions.pod:4957 ../src/guestfs-actions.pod:7501
16999 msgid ""
17000 "This call was added in version C<1.0.58>.  In previous versions of "
17001 "libguestfs there was no way to get the version number.  From C code you can "
17002 "use dynamic linker functions to find out if this symbol exists (if it "
17003 "doesn't, then it's an earlier version)."
17004 msgstr ""
17005
17006 #. type: textblock
17007 #: ../fish/guestfish-actions.pod:4963 ../src/guestfs-actions.pod:7507
17008 msgid ""
17009 "The call returns a structure with four elements.  The first three (C<major>, "
17010 "C<minor> and C<release>) are numbers and correspond to the usual version "
17011 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
17012 "but may be used for distro-specific information."
17013 msgstr ""
17014
17015 #. type: textblock
17016 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7513
17017 msgid ""
17018 "To construct the original version string: C<$major.$minor.$release$extra>"
17019 msgstr ""
17020
17021 #. type: textblock
17022 #: ../fish/guestfish-actions.pod:4972 ../src/guestfs-actions.pod:7516
17023 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17024 msgstr "Див також: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
17025
17026 #. type: textblock
17027 #: ../fish/guestfish-actions.pod:4974
17028 msgid ""
17029 "I<Note:> Don't use this call to test for availability of features.  In "
17030 "enterprise distributions we backport features from later versions into "
17031 "earlier versions, making this an unreliable way to test for features.  Use "
17032 "L</available> instead."
17033 msgstr ""
17034
17035 #. type: =head2
17036 #: ../fish/guestfish-actions.pod:4980
17037 msgid "vfs-label"
17038 msgstr "vfs-label"
17039
17040 #. type: verbatim
17041 #: ../fish/guestfish-actions.pod:4982
17042 #, no-wrap
17043 msgid ""
17044 " vfs-label device\n"
17045 "\n"
17046 msgstr ""
17047 " vfs-label пристрій\n"
17048 "\n"
17049
17050 #. type: textblock
17051 #: ../fish/guestfish-actions.pod:4984 ../src/guestfs-actions.pod:7536
17052 msgid "This returns the filesystem label of the filesystem on C<device>."
17053 msgstr ""
17054
17055 #. type: textblock
17056 #: ../fish/guestfish-actions.pod:4987 ../src/guestfs-actions.pod:7539
17057 msgid "If the filesystem is unlabeled, this returns the empty string."
17058 msgstr ""
17059
17060 #. type: textblock
17061 #: ../fish/guestfish-actions.pod:4989
17062 msgid "To find a filesystem from the label, use L</findfs-label>."
17063 msgstr ""
17064
17065 #. type: =head2
17066 #: ../fish/guestfish-actions.pod:4991
17067 msgid "vfs-type"
17068 msgstr "vfs-type"
17069
17070 #. type: verbatim
17071 #: ../fish/guestfish-actions.pod:4993
17072 #, no-wrap
17073 msgid ""
17074 " vfs-type device\n"
17075 "\n"
17076 msgstr ""
17077 " vfs-type пристрій\n"
17078 "\n"
17079
17080 #. type: textblock
17081 #: ../fish/guestfish-actions.pod:4995 ../src/guestfs-actions.pod:7554
17082 msgid ""
17083 "This command gets the filesystem type corresponding to the filesystem on "
17084 "C<device>."
17085 msgstr ""
17086
17087 #. type: textblock
17088 #: ../fish/guestfish-actions.pod:4998 ../src/guestfs-actions.pod:7557
17089 msgid ""
17090 "For most filesystems, the result is the name of the Linux VFS module which "
17091 "would be used to mount this filesystem if you mounted it without specifying "
17092 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
17093 msgstr ""
17094
17095 #. type: =head2
17096 #: ../fish/guestfish-actions.pod:5003
17097 msgid "vfs-uuid"
17098 msgstr "vfs-uuid"
17099
17100 #. type: verbatim
17101 #: ../fish/guestfish-actions.pod:5005
17102 #, no-wrap
17103 msgid ""
17104 " vfs-uuid device\n"
17105 "\n"
17106 msgstr ""
17107 " vfs-uuid пристрій\n"
17108 "\n"
17109
17110 #. type: textblock
17111 #: ../fish/guestfish-actions.pod:5007 ../src/guestfs-actions.pod:7573
17112 msgid "This returns the filesystem UUID of the filesystem on C<device>."
17113 msgstr ""
17114
17115 #. type: textblock
17116 #: ../fish/guestfish-actions.pod:5010 ../src/guestfs-actions.pod:7576
17117 msgid "If the filesystem does not have a UUID, this returns the empty string."
17118 msgstr ""
17119
17120 #. type: textblock
17121 #: ../fish/guestfish-actions.pod:5012
17122 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
17123 msgstr ""
17124
17125 #. type: =head2
17126 #: ../fish/guestfish-actions.pod:5014
17127 msgid "vg-activate"
17128 msgstr "vg-activate"
17129
17130 #. type: verbatim
17131 #: ../fish/guestfish-actions.pod:5016
17132 #, no-wrap
17133 msgid ""
17134 " vg-activate true|false 'volgroups ...'\n"
17135 "\n"
17136 msgstr ""
17137
17138 #. type: textblock
17139 #: ../fish/guestfish-actions.pod:5018 ../src/guestfs-actions.pod:7592
17140 msgid ""
17141 "This command activates or (if C<activate> is false) deactivates all logical "
17142 "volumes in the listed volume groups C<volgroups>."
17143 msgstr ""
17144
17145 #. type: textblock
17146 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7595
17147 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
17148 msgstr ""
17149
17150 #. type: textblock
17151 #: ../fish/guestfish-actions.pod:5023 ../src/guestfs-actions.pod:7597
17152 msgid ""
17153 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
17154 "activated or deactivated."
17155 msgstr ""
17156
17157 #. type: =head2
17158 #: ../fish/guestfish-actions.pod:5026
17159 msgid "vg-activate-all"
17160 msgstr "vg-activate-all"
17161
17162 #. type: verbatim
17163 #: ../fish/guestfish-actions.pod:5028
17164 #, no-wrap
17165 msgid ""
17166 " vg-activate-all true|false\n"
17167 "\n"
17168 msgstr ""
17169 " vg-activate-all true|false\n"
17170 "\n"
17171
17172 #. type: textblock
17173 #: ../fish/guestfish-actions.pod:5030 ../src/guestfs-actions.pod:7610
17174 msgid ""
17175 "This command activates or (if C<activate> is false) deactivates all logical "
17176 "volumes in all volume groups."
17177 msgstr ""
17178
17179 #. type: textblock
17180 #: ../fish/guestfish-actions.pod:5033 ../src/guestfs-actions.pod:7613
17181 msgid "This command is the same as running C<vgchange -a y|n>"
17182 msgstr ""
17183
17184 #. type: =head2
17185 #: ../fish/guestfish-actions.pod:5035
17186 msgid "vgcreate"
17187 msgstr "vgcreate"
17188
17189 #. type: verbatim
17190 #: ../fish/guestfish-actions.pod:5037
17191 #, no-wrap
17192 msgid ""
17193 " vgcreate volgroup 'physvols ...'\n"
17194 "\n"
17195 msgstr ""
17196
17197 #. type: textblock
17198 #: ../fish/guestfish-actions.pod:5039 ../src/guestfs-actions.pod:7626
17199 msgid ""
17200 "This creates an LVM volume group called C<volgroup> from the non-empty list "
17201 "of physical volumes C<physvols>."
17202 msgstr ""
17203
17204 #. type: =head2
17205 #: ../fish/guestfish-actions.pod:5042
17206 msgid "vglvuuids"
17207 msgstr "vglvuuids"
17208
17209 #. type: verbatim
17210 #: ../fish/guestfish-actions.pod:5044
17211 #, no-wrap
17212 msgid ""
17213 " vglvuuids vgname\n"
17214 "\n"
17215 msgstr ""
17216
17217 #. type: textblock
17218 #: ../fish/guestfish-actions.pod:5046 ../src/guestfs-actions.pod:7639
17219 msgid ""
17220 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
17221 "volumes created in this volume group."
17222 msgstr ""
17223
17224 #. type: textblock
17225 #: ../fish/guestfish-actions.pod:5049
17226 msgid ""
17227 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
17228 "logical volumes and volume groups."
17229 msgstr ""
17230
17231 #. type: textblock
17232 #: ../fish/guestfish-actions.pod:5052
17233 msgid "See also L</vgpvuuids>."
17234 msgstr "Див. також L</vgpvuuids>."
17235
17236 #. type: =head2
17237 #: ../fish/guestfish-actions.pod:5054
17238 msgid "vgpvuuids"
17239 msgstr "vgpvuuids"
17240
17241 #. type: verbatim
17242 #: ../fish/guestfish-actions.pod:5056
17243 #, no-wrap
17244 msgid ""
17245 " vgpvuuids vgname\n"
17246 "\n"
17247 msgstr ""
17248
17249 #. type: textblock
17250 #: ../fish/guestfish-actions.pod:5058 ../src/guestfs-actions.pod:7659
17251 msgid ""
17252 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
17253 "volumes that this volume group resides on."
17254 msgstr ""
17255
17256 #. type: textblock
17257 #: ../fish/guestfish-actions.pod:5061
17258 msgid ""
17259 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
17260 "physical volumes and volume groups."
17261 msgstr ""
17262
17263 #. type: textblock
17264 #: ../fish/guestfish-actions.pod:5064
17265 msgid "See also L</vglvuuids>."
17266 msgstr "Див. також L</vglvuuids>."
17267
17268 #. type: =head2
17269 #: ../fish/guestfish-actions.pod:5066
17270 msgid "vgremove"
17271 msgstr "vgremove"
17272
17273 #. type: verbatim
17274 #: ../fish/guestfish-actions.pod:5068
17275 #, no-wrap
17276 msgid ""
17277 " vgremove vgname\n"
17278 "\n"
17279 msgstr ""
17280
17281 #. type: textblock
17282 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7679
17283 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
17284 msgstr ""
17285
17286 #. type: textblock
17287 #: ../fish/guestfish-actions.pod:5072 ../src/guestfs-actions.pod:7681
17288 msgid ""
17289 "This also forcibly removes all logical volumes in the volume group (if any)."
17290 msgstr ""
17291
17292 #. type: =head2
17293 #: ../fish/guestfish-actions.pod:5075
17294 msgid "vgrename"
17295 msgstr "vgrename"
17296
17297 #. type: verbatim
17298 #: ../fish/guestfish-actions.pod:5077
17299 #, no-wrap
17300 msgid ""
17301 " vgrename volgroup newvolgroup\n"
17302 "\n"
17303 msgstr ""
17304
17305 #. type: textblock
17306 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7695
17307 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
17308 msgstr ""
17309
17310 #. type: =head2
17311 #: ../fish/guestfish-actions.pod:5081
17312 msgid "vgs"
17313 msgstr "vgs"
17314
17315 #. type: verbatim
17316 #: ../fish/guestfish-actions.pod:5083
17317 #, no-wrap
17318 msgid ""
17319 " vgs\n"
17320 "\n"
17321 msgstr ""
17322 " vgs\n"
17323 "\n"
17324
17325 #. type: textblock
17326 #: ../fish/guestfish-actions.pod:5085 ../src/guestfs-actions.pod:7706
17327 msgid ""
17328 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17329 "> command."
17330 msgstr ""
17331
17332 #. type: textblock
17333 #: ../fish/guestfish-actions.pod:5088 ../src/guestfs-actions.pod:7709
17334 msgid ""
17335 "This returns a list of just the volume group names that were detected (eg. "
17336 "C<VolGroup00>)."
17337 msgstr ""
17338
17339 #. type: textblock
17340 #: ../fish/guestfish-actions.pod:5091
17341 msgid "See also L</vgs-full>."
17342 msgstr "Див. також L</vgs-full>."
17343
17344 #. type: =head2
17345 #: ../fish/guestfish-actions.pod:5093
17346 msgid "vgs-full"
17347 msgstr "vgs-full"
17348
17349 #. type: verbatim
17350 #: ../fish/guestfish-actions.pod:5095
17351 #, no-wrap
17352 msgid ""
17353 " vgs-full\n"
17354 "\n"
17355 msgstr ""
17356 " vgs-full\n"
17357 "\n"
17358
17359 #. type: textblock
17360 #: ../fish/guestfish-actions.pod:5097 ../src/guestfs-actions.pod:7725
17361 msgid ""
17362 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
17363 "> command.  The \"full\" version includes all fields."
17364 msgstr ""
17365
17366 #. type: =head2
17367 #: ../fish/guestfish-actions.pod:5100
17368 msgid "vgscan"
17369 msgstr "vgscan"
17370
17371 #. type: verbatim
17372 #: ../fish/guestfish-actions.pod:5102
17373 #, no-wrap
17374 msgid ""
17375 " vgscan\n"
17376 "\n"
17377 msgstr ""
17378 " vgscan\n"
17379 "\n"
17380
17381 #. type: textblock
17382 #: ../fish/guestfish-actions.pod:5104 ../src/guestfs-actions.pod:7739
17383 msgid ""
17384 "This rescans all block devices and rebuilds the list of LVM physical "
17385 "volumes, volume groups and logical volumes."
17386 msgstr ""
17387
17388 #. type: =head2
17389 #: ../fish/guestfish-actions.pod:5107
17390 msgid "vguuid"
17391 msgstr "vguuid"
17392
17393 #. type: verbatim
17394 #: ../fish/guestfish-actions.pod:5109
17395 #, no-wrap
17396 msgid ""
17397 " vguuid vgname\n"
17398 "\n"
17399 msgstr ""
17400
17401 #. type: textblock
17402 #: ../fish/guestfish-actions.pod:5111 ../src/guestfs-actions.pod:7752
17403 msgid "This command returns the UUID of the LVM VG named C<vgname>."
17404 msgstr ""
17405
17406 #. type: =head2
17407 #: ../fish/guestfish-actions.pod:5113
17408 msgid "wc-c"
17409 msgstr "wc-c"
17410
17411 #. type: verbatim
17412 #: ../fish/guestfish-actions.pod:5115
17413 #, no-wrap
17414 msgid ""
17415 " wc-c path\n"
17416 "\n"
17417 msgstr ""
17418 " wc-c шлях\n"
17419 "\n"
17420
17421 #. type: textblock
17422 #: ../fish/guestfish-actions.pod:5117 ../src/guestfs-actions.pod:7792
17423 msgid ""
17424 "This command counts the characters in a file, using the C<wc -c> external "
17425 "command."
17426 msgstr ""
17427
17428 #. type: =head2
17429 #: ../fish/guestfish-actions.pod:5120
17430 msgid "wc-l"
17431 msgstr "wc-l"
17432
17433 #. type: verbatim
17434 #: ../fish/guestfish-actions.pod:5122
17435 #, no-wrap
17436 msgid ""
17437 " wc-l path\n"
17438 "\n"
17439 msgstr ""
17440 " wc-l шлях\n"
17441 "\n"
17442
17443 #. type: textblock
17444 #: ../fish/guestfish-actions.pod:5124 ../src/guestfs-actions.pod:7805
17445 msgid ""
17446 "This command counts the lines in a file, using the C<wc -l> external command."
17447 msgstr ""
17448
17449 #. type: =head2
17450 #: ../fish/guestfish-actions.pod:5127
17451 msgid "wc-w"
17452 msgstr "wc-w"
17453
17454 #. type: verbatim
17455 #: ../fish/guestfish-actions.pod:5129
17456 #, no-wrap
17457 msgid ""
17458 " wc-w path\n"
17459 "\n"
17460 msgstr ""
17461 " wc-w шлях\n"
17462 "\n"
17463
17464 #. type: textblock
17465 #: ../fish/guestfish-actions.pod:5131 ../src/guestfs-actions.pod:7818
17466 msgid ""
17467 "This command counts the words in a file, using the C<wc -w> external command."
17468 msgstr ""
17469
17470 #. type: =head2
17471 #: ../fish/guestfish-actions.pod:5134
17472 msgid "write"
17473 msgstr "write"
17474
17475 #. type: verbatim
17476 #: ../fish/guestfish-actions.pod:5136
17477 #, no-wrap
17478 msgid ""
17479 " write path content\n"
17480 "\n"
17481 msgstr ""
17482 " write шлях дані\n"
17483 "\n"
17484
17485 #. type: textblock
17486 #: ../fish/guestfish-actions.pod:5138 ../src/guestfs-actions.pod:7833
17487 msgid ""
17488 "This call creates a file called C<path>.  The content of the file is the "
17489 "string C<content> (which can contain any 8 bit data)."
17490 msgstr ""
17491
17492 #. type: textblock
17493 #: ../fish/guestfish-actions.pod:5141
17494 msgid "See also L</write-append>."
17495 msgstr "Див. також L</write-append>."
17496
17497 #. type: =head2
17498 #: ../fish/guestfish-actions.pod:5146
17499 msgid "write-append"
17500 msgstr ""
17501
17502 #. type: verbatim
17503 #: ../fish/guestfish-actions.pod:5148
17504 #, no-wrap
17505 msgid ""
17506 " write-append path content\n"
17507 "\n"
17508 msgstr ""
17509
17510 #. type: textblock
17511 #: ../fish/guestfish-actions.pod:5150 ../src/guestfs-actions.pod:7853
17512 msgid ""
17513 "This call appends C<content> to the end of file C<path>.  If C<path> does "
17514 "not exist, then a new file is created."
17515 msgstr ""
17516
17517 #. type: textblock
17518 #: ../fish/guestfish-actions.pod:5153
17519 msgid "See also L</write>."
17520 msgstr "Див. також L</write>."
17521
17522 #. type: =head2
17523 #: ../fish/guestfish-actions.pod:5158
17524 msgid "write-file"
17525 msgstr "write-file"
17526
17527 #. type: verbatim
17528 #: ../fish/guestfish-actions.pod:5160
17529 #, no-wrap
17530 msgid ""
17531 " write-file path content size\n"
17532 "\n"
17533 msgstr ""
17534
17535 #. type: textblock
17536 #: ../fish/guestfish-actions.pod:5162 ../src/guestfs-actions.pod:7880
17537 msgid ""
17538 "This call creates a file called C<path>.  The contents of the file is the "
17539 "string C<content> (which can contain any 8 bit data), with length C<size>."
17540 msgstr ""
17541
17542 #. type: textblock
17543 #: ../fish/guestfish-actions.pod:5166 ../src/guestfs-actions.pod:7884
17544 msgid ""
17545 "As a special case, if C<size> is C<0> then the length is calculated using "
17546 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
17547 msgstr ""
17548
17549 #. type: textblock
17550 #: ../fish/guestfish-actions.pod:5170 ../src/guestfs-actions.pod:7888
17551 msgid ""
17552 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
17553 "I<not> work, even if the length is specified."
17554 msgstr ""
17555
17556 #. type: textblock
17557 #: ../fish/guestfish-actions.pod:5176
17558 msgid ""
17559 "I<This function is deprecated.> In new code, use the L</write> call instead."
17560 msgstr ""
17561
17562 #. type: =head2
17563 #: ../fish/guestfish-actions.pod:5183
17564 msgid "zegrep"
17565 msgstr "zegrep"
17566
17567 #. type: verbatim
17568 #: ../fish/guestfish-actions.pod:5185
17569 #, no-wrap
17570 msgid ""
17571 " zegrep regex path\n"
17572 "\n"
17573 msgstr ""
17574 " zegrep формальний_вираз шлях\n"
17575 "\n"
17576
17577 #. type: textblock
17578 #: ../fish/guestfish-actions.pod:5187 ../src/guestfs-actions.pod:7905
17579 msgid ""
17580 "This calls the external C<zegrep> program and returns the matching lines."
17581 msgstr ""
17582
17583 #. type: =head2
17584 #: ../fish/guestfish-actions.pod:5193
17585 msgid "zegrepi"
17586 msgstr "zegrepi"
17587
17588 #. type: verbatim
17589 #: ../fish/guestfish-actions.pod:5195
17590 #, no-wrap
17591 msgid ""
17592 " zegrepi regex path\n"
17593 "\n"
17594 msgstr ""
17595
17596 #. type: textblock
17597 #: ../fish/guestfish-actions.pod:5197 ../src/guestfs-actions.pod:7924
17598 msgid ""
17599 "This calls the external C<zegrep -i> program and returns the matching lines."
17600 msgstr ""
17601
17602 #. type: =head2
17603 #: ../fish/guestfish-actions.pod:5203
17604 msgid "zero"
17605 msgstr "zero"
17606
17607 #. type: verbatim
17608 #: ../fish/guestfish-actions.pod:5205
17609 #, no-wrap
17610 msgid ""
17611 " zero device\n"
17612 "\n"
17613 msgstr ""
17614 " zero пристрій\n"
17615 "\n"
17616
17617 #. type: textblock
17618 #: ../fish/guestfish-actions.pod:5207 ../src/guestfs-actions.pod:7942
17619 msgid "This command writes zeroes over the first few blocks of C<device>."
17620 msgstr ""
17621
17622 #. type: textblock
17623 #: ../fish/guestfish-actions.pod:5209 ../src/guestfs-actions.pod:7944
17624 msgid ""
17625 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
17626 "securely wipe the device).  It should be sufficient to remove any partition "
17627 "tables, filesystem superblocks and so on."
17628 msgstr ""
17629
17630 #. type: textblock
17631 #: ../fish/guestfish-actions.pod:5213 ../fish/guestfish-actions.pod:5228
17632 #: ../src/guestfs-actions.pod:7948 ../src/guestfs-actions.pod:7974
17633 msgid ""
17634 "If blocks are already zero, then this command avoids writing zeroes.  This "
17635 "prevents the underlying device from becoming non-sparse or growing "
17636 "unnecessarily."
17637 msgstr ""
17638
17639 #. type: textblock
17640 #: ../fish/guestfish-actions.pod:5217
17641 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
17642 msgstr ""
17643
17644 #. type: =head2
17645 #: ../fish/guestfish-actions.pod:5220
17646 msgid "zero-device"
17647 msgstr "zero-device"
17648
17649 #. type: verbatim
17650 #: ../fish/guestfish-actions.pod:5222
17651 #, no-wrap
17652 msgid ""
17653 " zero-device device\n"
17654 "\n"
17655 msgstr ""
17656 " zero-device пристрій\n"
17657 "\n"
17658
17659 #. type: textblock
17660 #: ../fish/guestfish-actions.pod:5224
17661 msgid ""
17662 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
17663 "which just zeroes the first few blocks of a device."
17664 msgstr ""
17665
17666 #. type: =head2
17667 #: ../fish/guestfish-actions.pod:5235
17668 msgid "zerofree"
17669 msgstr "zerofree"
17670
17671 #. type: verbatim
17672 #: ../fish/guestfish-actions.pod:5237
17673 #, no-wrap
17674 msgid ""
17675 " zerofree device\n"
17676 "\n"
17677 msgstr ""
17678 " zerofree пристрій\n"
17679 "\n"
17680
17681 #. type: textblock
17682 #: ../fish/guestfish-actions.pod:5239 ../src/guestfs-actions.pod:7996
17683 msgid ""
17684 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
17685 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
17686 "possible to compress the filesystem more effectively."
17687 msgstr ""
17688
17689 #. type: textblock
17690 #: ../fish/guestfish-actions.pod:5244 ../src/guestfs-actions.pod:8001
17691 msgid "You should B<not> run this program if the filesystem is mounted."
17692 msgstr ""
17693
17694 #. type: textblock
17695 #: ../fish/guestfish-actions.pod:5247 ../src/guestfs-actions.pod:8004
17696 msgid ""
17697 "It is possible that using this program can damage the filesystem or data on "
17698 "the filesystem."
17699 msgstr ""
17700
17701 #. type: =head2
17702 #: ../fish/guestfish-actions.pod:5250
17703 msgid "zfgrep"
17704 msgstr "zfgrep"
17705
17706 #. type: verbatim
17707 #: ../fish/guestfish-actions.pod:5252
17708 #, no-wrap
17709 msgid ""
17710 " zfgrep pattern path\n"
17711 "\n"
17712 msgstr ""
17713 " zfgrep шаблон шлях\n"
17714 "\n"
17715
17716 #. type: textblock
17717 #: ../fish/guestfish-actions.pod:5254 ../src/guestfs-actions.pod:8018
17718 msgid ""
17719 "This calls the external C<zfgrep> program and returns the matching lines."
17720 msgstr ""
17721
17722 #. type: =head2
17723 #: ../fish/guestfish-actions.pod:5260
17724 msgid "zfgrepi"
17725 msgstr "zfgrepi"
17726
17727 #. type: verbatim
17728 #: ../fish/guestfish-actions.pod:5262
17729 #, no-wrap
17730 msgid ""
17731 " zfgrepi pattern path\n"
17732 "\n"
17733 msgstr ""
17734 " zfgrepi шаблон шлях\n"
17735 "\n"
17736
17737 #. type: textblock
17738 #: ../fish/guestfish-actions.pod:5264 ../src/guestfs-actions.pod:8037
17739 msgid ""
17740 "This calls the external C<zfgrep -i> program and returns the matching lines."
17741 msgstr ""
17742
17743 #. type: =head2
17744 #: ../fish/guestfish-actions.pod:5270
17745 msgid "zfile"
17746 msgstr "zfile"
17747
17748 #. type: verbatim
17749 #: ../fish/guestfish-actions.pod:5272
17750 #, no-wrap
17751 msgid ""
17752 " zfile meth path\n"
17753 "\n"
17754 msgstr ""
17755 " zfile метод шлях\n"
17756 "\n"
17757
17758 #. type: textblock
17759 #: ../fish/guestfish-actions.pod:5274 ../src/guestfs-actions.pod:8063
17760 msgid ""
17761 "This command runs C<file> after first decompressing C<path> using C<method>."
17762 msgstr ""
17763
17764 #. type: textblock
17765 #: ../fish/guestfish-actions.pod:5277 ../src/guestfs-actions.pod:8066
17766 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17767 msgstr ""
17768
17769 #. type: textblock
17770 #: ../fish/guestfish-actions.pod:5279
17771 msgid ""
17772 "Since 1.0.63, use L</file> instead which can now process compressed files."
17773 msgstr ""
17774
17775 #. type: textblock
17776 #: ../fish/guestfish-actions.pod:5282
17777 msgid ""
17778 "I<This function is deprecated.> In new code, use the L</file> call instead."
17779 msgstr ""
17780
17781 #. type: =head2
17782 #: ../fish/guestfish-actions.pod:5289
17783 msgid "zgrep"
17784 msgstr "zgrep"
17785
17786 #. type: verbatim
17787 #: ../fish/guestfish-actions.pod:5291
17788 #, no-wrap
17789 msgid ""
17790 " zgrep regex path\n"
17791 "\n"
17792 msgstr ""
17793 " zgrep формальний_вираз шлях\n"
17794 "\n"
17795
17796 #. type: textblock
17797 #: ../fish/guestfish-actions.pod:5293 ../src/guestfs-actions.pod:8083
17798 msgid ""
17799 "This calls the external C<zgrep> program and returns the matching lines."
17800 msgstr ""
17801
17802 #. type: =head2
17803 #: ../fish/guestfish-actions.pod:5299
17804 msgid "zgrepi"
17805 msgstr "zgrepi"
17806
17807 #. type: verbatim
17808 #: ../fish/guestfish-actions.pod:5301
17809 #, no-wrap
17810 msgid ""
17811 " zgrepi regex path\n"
17812 "\n"
17813 msgstr ""
17814 " zgrepi формальний_вираз шлях\n"
17815 "\n"
17816
17817 #. type: textblock
17818 #: ../fish/guestfish-actions.pod:5303 ../src/guestfs-actions.pod:8102
17819 msgid ""
17820 "This calls the external C<zgrep -i> program and returns the matching lines."
17821 msgstr ""
17822
17823 #. type: =head2
17824 #: ../fish/guestfish-commands.pod:1
17825 msgid "alloc"
17826 msgstr "alloc"
17827
17828 #. type: =head2
17829 #: ../fish/guestfish-commands.pod:3
17830 msgid "allocate"
17831 msgstr ""
17832
17833 #. type: verbatim
17834 #: ../fish/guestfish-commands.pod:5
17835 #, no-wrap
17836 msgid ""
17837 " alloc filename size\n"
17838 "\n"
17839 msgstr ""
17840
17841 #. type: textblock
17842 #: ../fish/guestfish-commands.pod:7
17843 msgid ""
17844 "This creates an empty (zeroed) file of the given size, and then adds so it "
17845 "can be further examined."
17846 msgstr ""
17847
17848 #. type: textblock
17849 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
17850 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
17851 msgstr ""
17852
17853 #. type: textblock
17854 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
17855 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17856 msgstr ""
17857
17858 #. type: textblock
17859 #: ../fish/guestfish-commands.pod:14
17860 msgid ""
17861 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
17862 "image, see L</PREPARED DISK IMAGES>."
17863 msgstr ""
17864
17865 #. type: =head2
17866 #: ../fish/guestfish-commands.pod:17
17867 msgid "copy-in"
17868 msgstr "copy-in"
17869
17870 #. type: verbatim
17871 #: ../fish/guestfish-commands.pod:19
17872 #, no-wrap
17873 msgid ""
17874 " copy-in local [local ...] /remotedir\n"
17875 "\n"
17876 msgstr ""
17877
17878 #. type: textblock
17879 #: ../fish/guestfish-commands.pod:21
17880 msgid ""
17881 "C<copy-in> copies local files or directories recursively into the disk "
17882 "image, placing them in the directory called C</remotedir> (which must "
17883 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
17884 "other commands as necessary."
17885 msgstr ""
17886
17887 #. type: textblock
17888 #: ../fish/guestfish-commands.pod:26
17889 msgid ""
17890 "Multiple local files and directories can be specified, but the last "
17891 "parameter must always be a remote directory.  Wildcards cannot be used."
17892 msgstr ""
17893
17894 #. type: =head2
17895 #: ../fish/guestfish-commands.pod:30
17896 msgid "copy-out"
17897 msgstr "copy-out"
17898
17899 #. type: verbatim
17900 #: ../fish/guestfish-commands.pod:32
17901 #, no-wrap
17902 msgid ""
17903 " copy-out remote [remote ...] localdir\n"
17904 "\n"
17905 msgstr ""
17906
17907 #. type: textblock
17908 #: ../fish/guestfish-commands.pod:34
17909 msgid ""
17910 "C<copy-out> copies remote files or directories recursively out of the disk "
17911 "image, placing them on the host disk in a local directory called C<localdir> "
17912 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
17913 "download>, L</tar-out> and other commands as necessary."
17914 msgstr ""
17915
17916 #. type: textblock
17917 #: ../fish/guestfish-commands.pod:40
17918 msgid ""
17919 "Multiple remote files and directories can be specified, but the last "
17920 "parameter must always be a local directory.  To download to the current "
17921 "directory, use C<.> as in:"
17922 msgstr ""
17923
17924 #. type: verbatim
17925 #: ../fish/guestfish-commands.pod:44
17926 #, no-wrap
17927 msgid ""
17928 " copy-out /home .\n"
17929 "\n"
17930 msgstr ""
17931 " copy-out /home .\n"
17932 "\n"
17933
17934 #. type: textblock
17935 #: ../fish/guestfish-commands.pod:46
17936 msgid ""
17937 "Wildcards cannot be used in the ordinary command, but you can use them with "
17938 "the help of L</glob> like this:"
17939 msgstr ""
17940
17941 #. type: verbatim
17942 #: ../fish/guestfish-commands.pod:49
17943 #, no-wrap
17944 msgid ""
17945 " glob copy-out /home/* .\n"
17946 "\n"
17947 msgstr ""
17948 " glob copy-out /home/* .\n"
17949 "\n"
17950
17951 #. type: =head2
17952 #: ../fish/guestfish-commands.pod:51
17953 msgid "display"
17954 msgstr ""
17955
17956 #. type: verbatim
17957 #: ../fish/guestfish-commands.pod:53
17958 #, no-wrap
17959 msgid ""
17960 " display filename\n"
17961 "\n"
17962 msgstr ""
17963
17964 #. type: textblock
17965 #: ../fish/guestfish-commands.pod:55
17966 msgid ""
17967 "Use C<display> (a graphical display program) to display an image file.  It "
17968 "downloads the file, and runs C<display> on it."
17969 msgstr ""
17970
17971 #. type: textblock
17972 #: ../fish/guestfish-commands.pod:58
17973 msgid ""
17974 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
17975 "environment variable.  For example to use the GNOME display program:"
17976 msgstr ""
17977
17978 #. type: verbatim
17979 #: ../fish/guestfish-commands.pod:61
17980 #, no-wrap
17981 msgid ""
17982 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
17983 "\n"
17984 msgstr ""
17985
17986 #. type: textblock
17987 #: ../fish/guestfish-commands.pod:63
17988 msgid "See also L<display(1)>."
17989 msgstr "Див. також L<display(1)>."
17990
17991 #. type: =head2
17992 #: ../fish/guestfish-commands.pod:65
17993 msgid "echo"
17994 msgstr "echo"
17995
17996 #. type: verbatim
17997 #: ../fish/guestfish-commands.pod:67
17998 #, no-wrap
17999 msgid ""
18000 " echo [params ...]\n"
18001 "\n"
18002 msgstr ""
18003 " echo [параметри...]\n"
18004 "\n"
18005
18006 #. type: textblock
18007 #: ../fish/guestfish-commands.pod:69
18008 msgid "This echos the parameters to the terminal."
18009 msgstr ""
18010
18011 #. type: =head2
18012 #: ../fish/guestfish-commands.pod:71
18013 msgid "edit"
18014 msgstr "edit"
18015
18016 #. type: =head2
18017 #: ../fish/guestfish-commands.pod:73
18018 msgid "vi"
18019 msgstr "vi"
18020
18021 #. type: =head2
18022 #: ../fish/guestfish-commands.pod:75
18023 msgid "emacs"
18024 msgstr "emacs"
18025
18026 #. type: verbatim
18027 #: ../fish/guestfish-commands.pod:77
18028 #, no-wrap
18029 msgid ""
18030 " edit filename\n"
18031 "\n"
18032 msgstr ""
18033 " edit назва_файла\n"
18034 "\n"
18035
18036 #. type: textblock
18037 #: ../fish/guestfish-commands.pod:79
18038 msgid ""
18039 "This is used to edit a file.  It downloads the file, edits it locally using "
18040 "your editor, then uploads the result."
18041 msgstr ""
18042
18043 #. type: textblock
18044 #: ../fish/guestfish-commands.pod:82
18045 msgid ""
18046 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
18047 "or C<emacs> you will get those corresponding editors."
18048 msgstr ""
18049
18050 #. type: =head2
18051 #: ../fish/guestfish-commands.pod:86
18052 msgid "glob"
18053 msgstr "glob"
18054
18055 #. type: verbatim
18056 #: ../fish/guestfish-commands.pod:88
18057 #, no-wrap
18058 msgid ""
18059 " glob command args...\n"
18060 "\n"
18061 msgstr ""
18062 " glob команда параметри...\n"
18063 "\n"
18064
18065 #. type: textblock
18066 #: ../fish/guestfish-commands.pod:90
18067 msgid ""
18068 "Expand wildcards in any paths in the args list, and run C<command> "
18069 "repeatedly on each matching path."
18070 msgstr ""
18071
18072 #. type: textblock
18073 #: ../fish/guestfish-commands.pod:93
18074 msgid "See L</WILDCARDS AND GLOBBING>."
18075 msgstr "Див. L</WILDCARDS AND GLOBBING>."
18076
18077 #. type: =head2
18078 #: ../fish/guestfish-commands.pod:95
18079 msgid "hexedit"
18080 msgstr "hexedit"
18081
18082 #. type: verbatim
18083 #: ../fish/guestfish-commands.pod:97
18084 #, no-wrap
18085 msgid ""
18086 " hexedit <filename|device>\n"
18087 " hexedit <filename|device> <max>\n"
18088 " hexedit <filename|device> <start> <max>\n"
18089 "\n"
18090 msgstr ""
18091
18092 #. type: textblock
18093 #: ../fish/guestfish-commands.pod:101
18094 msgid ""
18095 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
18096 "device."
18097 msgstr ""
18098
18099 #. type: textblock
18100 #: ../fish/guestfish-commands.pod:104
18101 msgid ""
18102 "This command works by downloading potentially the whole file or device, "
18103 "editing it locally, then uploading it.  If the file or device is large, you "
18104 "have to specify which part you wish to edit by using C<max> and/or C<start> "
18105 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
18106 "usual modifiers allowed such as C<1M> (1 megabyte)."
18107 msgstr ""
18108
18109 #. type: textblock
18110 #: ../fish/guestfish-commands.pod:111
18111 msgid "For example to edit the first few sectors of a disk you might do:"
18112 msgstr ""
18113
18114 #. type: verbatim
18115 #: ../fish/guestfish-commands.pod:114
18116 #, no-wrap
18117 msgid ""
18118 " hexedit /dev/sda 1M\n"
18119 "\n"
18120 msgstr ""
18121 " hexedit /dev/sda 1M\n"
18122 "\n"
18123
18124 #. type: textblock
18125 #: ../fish/guestfish-commands.pod:116
18126 msgid ""
18127 "which would allow you to edit anywhere within the first megabyte of the disk."
18128 msgstr ""
18129
18130 #. type: textblock
18131 #: ../fish/guestfish-commands.pod:119
18132 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
18133 msgstr ""
18134
18135 #. type: verbatim
18136 #: ../fish/guestfish-commands.pod:121
18137 #, no-wrap
18138 msgid ""
18139 " hexedit /dev/sda1 0x400 0x400\n"
18140 "\n"
18141 msgstr ""
18142 " hexedit /dev/sda1 0x400 0x400\n"
18143 "\n"
18144
18145 #. type: textblock
18146 #: ../fish/guestfish-commands.pod:123
18147 msgid "(assuming the superblock is in the standard location)."
18148 msgstr ""
18149
18150 #. type: textblock
18151 #: ../fish/guestfish-commands.pod:125
18152 msgid ""
18153 "This command requires the external L<hexedit(1)> program.  You can specify "
18154 "another program to use by setting the C<HEXEDITOR> environment variable."
18155 msgstr ""
18156
18157 #. type: textblock
18158 #: ../fish/guestfish-commands.pod:129
18159 msgid "See also L</hexdump>."
18160 msgstr "Див. також L</hexdump>."
18161
18162 #. type: =head2
18163 #: ../fish/guestfish-commands.pod:131
18164 msgid "lcd"
18165 msgstr "lcd"
18166
18167 #. type: verbatim
18168 #: ../fish/guestfish-commands.pod:133
18169 #, no-wrap
18170 msgid ""
18171 " lcd directory\n"
18172 "\n"
18173 msgstr ""
18174
18175 #. type: textblock
18176 #: ../fish/guestfish-commands.pod:135
18177 msgid ""
18178 "Change the local directory, ie. the current directory of guestfish itself."
18179 msgstr ""
18180
18181 #. type: textblock
18182 #: ../fish/guestfish-commands.pod:138
18183 msgid "Note that C<!cd> won't do what you might expect."
18184 msgstr ""
18185
18186 #. type: =head2
18187 #: ../fish/guestfish-commands.pod:140
18188 msgid "man"
18189 msgstr "man"
18190
18191 #. type: =head2
18192 #: ../fish/guestfish-commands.pod:142
18193 msgid "manual"
18194 msgstr "підручник"
18195
18196 #. type: verbatim
18197 #: ../fish/guestfish-commands.pod:144
18198 #, no-wrap
18199 msgid ""
18200 "  man\n"
18201 "\n"
18202 msgstr ""
18203 "  man\n"
18204 "\n"
18205
18206 #. type: textblock
18207 #: ../fish/guestfish-commands.pod:146
18208 msgid "Opens the manual page for guestfish."
18209 msgstr ""
18210
18211 #. type: =head2
18212 #: ../fish/guestfish-commands.pod:148
18213 msgid "more"
18214 msgstr "more"
18215
18216 #. type: =head2
18217 #: ../fish/guestfish-commands.pod:150
18218 msgid "less"
18219 msgstr "less"
18220
18221 #. type: verbatim
18222 #: ../fish/guestfish-commands.pod:152
18223 #, no-wrap
18224 msgid ""
18225 " more filename\n"
18226 "\n"
18227 msgstr ""
18228
18229 #. type: verbatim
18230 #: ../fish/guestfish-commands.pod:154
18231 #, no-wrap
18232 msgid ""
18233 " less filename\n"
18234 "\n"
18235 msgstr ""
18236
18237 #. type: textblock
18238 #: ../fish/guestfish-commands.pod:156
18239 msgid "This is used to view a file."
18240 msgstr ""
18241
18242 #. type: textblock
18243 #: ../fish/guestfish-commands.pod:158
18244 msgid ""
18245 "The default viewer is C<$PAGER>.  However if you use the alternate command "
18246 "C<less> you will get the C<less> command specifically."
18247 msgstr ""
18248
18249 #. type: =head2
18250 #: ../fish/guestfish-commands.pod:161
18251 msgid "reopen"
18252 msgstr "reopen"
18253
18254 #. type: verbatim
18255 #: ../fish/guestfish-commands.pod:163
18256 #, no-wrap
18257 msgid ""
18258 "  reopen\n"
18259 "\n"
18260 msgstr ""
18261
18262 #. type: textblock
18263 #: ../fish/guestfish-commands.pod:165
18264 msgid ""
18265 "Close and reopen the libguestfs handle.  It is not necessary to use this "
18266 "normally, because the handle is closed properly when guestfish exits.  "
18267 "However this is occasionally useful for testing."
18268 msgstr ""
18269
18270 #. type: =head2
18271 #: ../fish/guestfish-commands.pod:169
18272 msgid "setenv"
18273 msgstr ""
18274
18275 #. type: verbatim
18276 #: ../fish/guestfish-commands.pod:171
18277 #, no-wrap
18278 msgid ""
18279 "  setenv VAR value\n"
18280 "\n"
18281 msgstr ""
18282
18283 #. type: textblock
18284 #: ../fish/guestfish-commands.pod:173
18285 msgid "Set the environment variable C<VAR> to the string C<value>."
18286 msgstr ""
18287
18288 #. type: textblock
18289 #: ../fish/guestfish-commands.pod:175
18290 msgid ""
18291 "To print the value of an environment variable use a shell command such as:"
18292 msgstr ""
18293
18294 #. type: verbatim
18295 #: ../fish/guestfish-commands.pod:178
18296 #, no-wrap
18297 msgid ""
18298 " !echo $VAR\n"
18299 "\n"
18300 msgstr ""
18301
18302 #. type: =head2
18303 #: ../fish/guestfish-commands.pod:180
18304 msgid "sparse"
18305 msgstr "sparse"
18306
18307 #. type: verbatim
18308 #: ../fish/guestfish-commands.pod:182
18309 #, no-wrap
18310 msgid ""
18311 " sparse filename size\n"
18312 "\n"
18313 msgstr ""
18314
18315 #. type: textblock
18316 #: ../fish/guestfish-commands.pod:184
18317 msgid ""
18318 "This creates an empty sparse file of the given size, and then adds so it can "
18319 "be further examined."
18320 msgstr ""
18321
18322 #. type: textblock
18323 #: ../fish/guestfish-commands.pod:187
18324 msgid ""
18325 "In all respects it works the same as the L</alloc> command, except that the "
18326 "image file is allocated sparsely, which means that disk blocks are not "
18327 "assigned to the file until they are needed.  Sparse disk files only use "
18328 "space when written to, but they are slower and there is a danger you could "
18329 "run out of real disk space during a write operation."
18330 msgstr ""
18331
18332 #. type: =head2
18333 #: ../fish/guestfish-commands.pod:197
18334 msgid "supported"
18335 msgstr "supported"
18336
18337 #. type: verbatim
18338 #: ../fish/guestfish-commands.pod:199
18339 #, no-wrap
18340 msgid ""
18341 " supported\n"
18342 "\n"
18343 msgstr ""
18344 " supported\n"
18345 "\n"
18346
18347 #. type: textblock
18348 #: ../fish/guestfish-commands.pod:201
18349 msgid ""
18350 "This command returns a list of the optional groups known to the daemon, and "
18351 "indicates which ones are supported by this build of the libguestfs appliance."
18352 msgstr ""
18353
18354 #. type: textblock
18355 #: ../fish/guestfish-commands.pod:205
18356 msgid "See also L<guestfs(3)/AVAILABILITY>."
18357 msgstr "Див. також L<guestfs(3)/AVAILABILITY>."
18358
18359 #. type: =head2
18360 #: ../fish/guestfish-commands.pod:207
18361 msgid "time"
18362 msgstr "time"
18363
18364 #. type: verbatim
18365 #: ../fish/guestfish-commands.pod:209
18366 #, no-wrap
18367 msgid ""
18368 " time command args...\n"
18369 "\n"
18370 msgstr ""
18371
18372 #. type: textblock
18373 #: ../fish/guestfish-commands.pod:211
18374 msgid ""
18375 "Run the command as usual, but print the elapsed time afterwards.  This can "
18376 "be useful for benchmarking operations."
18377 msgstr ""
18378
18379 #. type: =head2
18380 #: ../fish/guestfish-commands.pod:214
18381 msgid "unsetenv"
18382 msgstr ""
18383
18384 #. type: verbatim
18385 #: ../fish/guestfish-commands.pod:216
18386 #, no-wrap
18387 msgid ""
18388 "  unsetenv VAR\n"
18389 "\n"
18390 msgstr ""
18391
18392 #. type: textblock
18393 #: ../fish/guestfish-commands.pod:218
18394 msgid "Remove C<VAR> from the environment."
18395 msgstr ""
18396
18397 #. type: textblock
18398 #: ../fish/guestfish.pod:5
18399 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
18400 msgstr ""
18401
18402 #. type: verbatim
18403 #: ../fish/guestfish.pod:9
18404 #, no-wrap
18405 msgid ""
18406 " guestfish [--options] [commands]\n"
18407 "\n"
18408 msgstr ""
18409
18410 #. type: verbatim
18411 #: ../fish/guestfish.pod:11
18412 #, no-wrap
18413 msgid ""
18414 " guestfish\n"
18415 "\n"
18416 msgstr ""
18417
18418 #. type: verbatim
18419 #: ../fish/guestfish.pod:13
18420 #, no-wrap
18421 msgid ""
18422 " guestfish [--ro|--rw] -a disk.img\n"
18423 "\n"
18424 msgstr ""
18425
18426 #. type: verbatim
18427 #: ../fish/guestfish.pod:15
18428 #, no-wrap
18429 msgid ""
18430 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
18431 "\n"
18432 msgstr ""
18433
18434 #. type: verbatim
18435 #: ../fish/guestfish.pod:17
18436 #, no-wrap
18437 msgid ""
18438 " guestfish -d libvirt-domain\n"
18439 "\n"
18440 msgstr ""
18441
18442 #. type: verbatim
18443 #: ../fish/guestfish.pod:19
18444 #, no-wrap
18445 msgid ""
18446 " guestfish [--ro|--rw] -a disk.img -i\n"
18447 "\n"
18448 msgstr ""
18449
18450 #. type: verbatim
18451 #: ../fish/guestfish.pod:21
18452 #, no-wrap
18453 msgid ""
18454 " guestfish -d libvirt-domain -i\n"
18455 "\n"
18456 msgstr ""
18457
18458 #. type: textblock
18459 #: ../fish/guestfish.pod:25
18460 msgid ""
18461 "Using guestfish in read/write mode on live virtual machines can be "
18462 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
18463 "option to use guestfish safely if the disk image or virtual machine might be "
18464 "live."
18465 msgstr ""
18466
18467 #. type: textblock
18468 #: ../fish/guestfish.pod:32
18469 msgid ""
18470 "Guestfish is a shell and command-line tool for examining and modifying "
18471 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
18472 "functionality of the guestfs API, see L<guestfs(3)>."
18473 msgstr ""
18474
18475 #. type: textblock
18476 #: ../fish/guestfish.pod:36
18477 msgid ""
18478 "Guestfish gives you structured access to the libguestfs API, from shell "
18479 "scripts or the command line or interactively.  If you want to rescue a "
18480 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
18481 "command."
18482 msgstr ""
18483
18484 #. type: =head2
18485 #: ../fish/guestfish.pod:43
18486 msgid "As an interactive shell"
18487 msgstr ""
18488
18489 #. type: verbatim
18490 #: ../fish/guestfish.pod:45
18491 #, no-wrap
18492 msgid ""
18493 " $ guestfish\n"
18494 " \n"
18495 msgstr ""
18496
18497 #. type: verbatim
18498 #: ../fish/guestfish.pod:47
18499 #, no-wrap
18500 msgid ""
18501 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
18502 " editing virtual machine filesystems.\n"
18503 " \n"
18504 msgstr ""
18505
18506 #. type: verbatim
18507 #: ../fish/guestfish.pod:50
18508 #, no-wrap
18509 msgid ""
18510 " Type: 'help' for a list of commands\n"
18511 "       'man' to read the manual\n"
18512 "       'quit' to quit the shell\n"
18513 " \n"
18514 msgstr ""
18515
18516 #. type: verbatim
18517 #: ../fish/guestfish.pod:54
18518 #, no-wrap
18519 msgid ""
18520 " ><fs> add-ro disk.img\n"
18521 " ><fs> run\n"
18522 " ><fs> list-filesystems\n"
18523 " /dev/sda1: ext4\n"
18524 " /dev/vg_guest/lv_root: ext4\n"
18525 " /dev/vg_guest/lv_swap: swap\n"
18526 " ><fs> mount /dev/vg_guest/lv_root /\n"
18527 " ><fs> cat /etc/fstab\n"
18528 " # /etc/fstab\n"
18529 " # Created by anaconda\n"
18530 " [...]\n"
18531 " ><fs> exit\n"
18532 "\n"
18533 msgstr ""
18534
18535 #. type: =head2
18536 #: ../fish/guestfish.pod:67
18537 msgid "From shell scripts"
18538 msgstr ""
18539
18540 #. type: textblock
18541 #: ../fish/guestfish.pod:69
18542 msgid "Create a new C</etc/motd> file in a guest or disk image:"
18543 msgstr ""
18544
18545 #. type: verbatim
18546 #: ../fish/guestfish.pod:71
18547 #, no-wrap
18548 msgid ""
18549 " guestfish <<_EOF_\n"
18550 " add disk.img\n"
18551 " run\n"
18552 " mount /dev/vg_guest/lv_root /\n"
18553 " write /etc/motd \"Welcome, new users\"\n"
18554 " _EOF_\n"
18555 "\n"
18556 msgstr ""
18557
18558 #. type: textblock
18559 #: ../fish/guestfish.pod:78
18560 msgid "List the LVM logical volumes in a disk image:"
18561 msgstr ""
18562
18563 #. type: verbatim
18564 #: ../fish/guestfish.pod:80
18565 #, no-wrap
18566 msgid ""
18567 " guestfish -a disk.img --ro <<_EOF_\n"
18568 " run\n"
18569 " lvs\n"
18570 " _EOF_\n"
18571 "\n"
18572 msgstr ""
18573
18574 #. type: textblock
18575 #: ../fish/guestfish.pod:85
18576 msgid "List all the filesystems in a disk image:"
18577 msgstr ""
18578
18579 #. type: verbatim
18580 #: ../fish/guestfish.pod:87
18581 #, no-wrap
18582 msgid ""
18583 " guestfish -a disk.img --ro <<_EOF_\n"
18584 " run\n"
18585 " list-filesystems\n"
18586 " _EOF_\n"
18587 "\n"
18588 msgstr ""
18589
18590 #. type: =head2
18591 #: ../fish/guestfish.pod:92
18592 msgid "On one command line"
18593 msgstr ""
18594
18595 #. type: textblock
18596 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
18597 msgid "Update C</etc/resolv.conf> in a guest:"
18598 msgstr ""
18599
18600 #. type: verbatim
18601 #: ../fish/guestfish.pod:96
18602 #, no-wrap
18603 msgid ""
18604 " guestfish \\\n"
18605 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
18606 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
18607 "\n"
18608 msgstr ""
18609
18610 #. type: textblock
18611 #: ../fish/guestfish.pod:100
18612 msgid "Edit C</boot/grub/grub.conf> interactively:"
18613 msgstr ""
18614
18615 #. type: verbatim
18616 #: ../fish/guestfish.pod:102
18617 #, no-wrap
18618 msgid ""
18619 " guestfish --rw --add disk.img \\\n"
18620 "   --mount /dev/vg_guest/lv_root \\\n"
18621 "   --mount /dev/sda1:/boot \\\n"
18622 "   edit /boot/grub/grub.conf\n"
18623 "\n"
18624 msgstr ""
18625
18626 #. type: =head2
18627 #: ../fish/guestfish.pod:107
18628 msgid "Mount disks automatically"
18629 msgstr ""
18630
18631 #. type: textblock
18632 #: ../fish/guestfish.pod:109
18633 msgid ""
18634 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
18635 msgstr ""
18636
18637 #. type: verbatim
18638 #: ../fish/guestfish.pod:112
18639 #, no-wrap
18640 msgid ""
18641 " guestfish --ro -a disk.img -i cat /etc/group\n"
18642 "\n"
18643 msgstr ""
18644
18645 #. type: verbatim
18646 #: ../fish/guestfish.pod:114
18647 #, no-wrap
18648 msgid ""
18649 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
18650 "\n"
18651 msgstr ""
18652
18653 #. type: textblock
18654 #: ../fish/guestfish.pod:116
18655 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
18656 msgstr ""
18657
18658 #. type: verbatim
18659 #: ../fish/guestfish.pod:118
18660 #, no-wrap
18661 msgid ""
18662 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
18663 "\n"
18664 msgstr ""
18665
18666 #. type: =head2
18667 #: ../fish/guestfish.pod:120
18668 msgid "As a script interpreter"
18669 msgstr ""
18670
18671 #. type: textblock
18672 #: ../fish/guestfish.pod:122
18673 msgid "Create a 100MB disk containing an ext2-formatted partition:"
18674 msgstr ""
18675
18676 #. type: verbatim
18677 #: ../fish/guestfish.pod:124
18678 #, no-wrap
18679 msgid ""
18680 " #!/usr/bin/guestfish -f\n"
18681 " sparse test1.img 100M\n"
18682 " run\n"
18683 " part-disk /dev/sda mbr\n"
18684 " mkfs ext2 /dev/sda1\n"
18685 "\n"
18686 msgstr ""
18687
18688 #. type: =head2
18689 #: ../fish/guestfish.pod:130
18690 msgid "Start with a prepared disk"
18691 msgstr ""
18692
18693 #. type: textblock
18694 #: ../fish/guestfish.pod:132
18695 msgid ""
18696 "An alternate way to create a 100MB disk called C<test1.img> containing a "
18697 "single ext2-formatted partition:"
18698 msgstr ""
18699
18700 #. type: verbatim
18701 #: ../fish/guestfish.pod:135 ../src/guestfs.pod:2228
18702 #, no-wrap
18703 msgid ""
18704 " guestfish -N fs\n"
18705 "\n"
18706 msgstr ""
18707
18708 #. type: textblock
18709 #: ../fish/guestfish.pod:137
18710 msgid "To list what is available do:"
18711 msgstr ""
18712
18713 #. type: verbatim
18714 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1042
18715 #, no-wrap
18716 msgid ""
18717 " guestfish -N help | less\n"
18718 "\n"
18719 msgstr ""
18720
18721 #. type: =head2
18722 #: ../fish/guestfish.pod:141
18723 msgid "Remote control"
18724 msgstr "Дистанційне керування"
18725
18726 #. type: verbatim
18727 #: ../fish/guestfish.pod:143
18728 #, no-wrap
18729 msgid ""
18730 " eval \"`guestfish --listen`\"\n"
18731 " guestfish --remote add-ro disk.img\n"
18732 " guestfish --remote run\n"
18733 " guestfish --remote lvs\n"
18734 "\n"
18735 msgstr ""
18736 " eval \"`guestfish --listen`\"\n"
18737 " guestfish --remote add-ro disk.img\n"
18738 " guestfish --remote run\n"
18739 " guestfish --remote lvs\n"
18740 "\n"
18741
18742 #. type: textblock
18743 #: ../fish/guestfish.pod:154
18744 msgid "Displays general help on options."
18745 msgstr ""
18746
18747 #. type: =item
18748 #: ../fish/guestfish.pod:158
18749 msgid "B<--cmd-help>"
18750 msgstr "B<--cmd-help>"
18751
18752 #. type: textblock
18753 #: ../fish/guestfish.pod:160
18754 msgid "Lists all available guestfish commands."
18755 msgstr ""
18756
18757 #. type: =item
18758 #: ../fish/guestfish.pod:162
18759 msgid "B<-h cmd>"
18760 msgstr "B<-h команда>"
18761
18762 #. type: =item
18763 #: ../fish/guestfish.pod:164
18764 msgid "B<--cmd-help cmd>"
18765 msgstr "B<--cmd-help команда>"
18766
18767 #. type: textblock
18768 #: ../fish/guestfish.pod:166
18769 msgid "Displays detailed help on a single command C<cmd>."
18770 msgstr ""
18771
18772 #. type: =item
18773 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:96
18774 msgid "B<-a image>"
18775 msgstr "B<-a образ>"
18776
18777 #. type: =item
18778 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:98
18779 msgid "B<--add image>"
18780 msgstr "B<--add образ>"
18781
18782 #. type: textblock
18783 #: ../fish/guestfish.pod:172
18784 msgid "Add a block device or virtual machine image to the shell."
18785 msgstr ""
18786
18787 #. type: textblock
18788 #: ../fish/guestfish.pod:177
18789 msgid ""
18790 "Using this flag is mostly equivalent to using the C<add> command, with "
18791 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18792 "the I<--format=...> flag was given."
18793 msgstr ""
18794
18795 #. type: textblock
18796 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:109
18797 msgid ""
18798 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18799 "URI to use.  The default is to use the default libvirt connection."
18800 msgstr ""
18801
18802 #. type: =item
18803 #: ../fish/guestfish.pod:189
18804 msgid "B<--csh>"
18805 msgstr "B<--csh>"
18806
18807 #. type: textblock
18808 #: ../fish/guestfish.pod:191
18809 msgid ""
18810 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18811 "section L</REMOTE CONTROL AND CSH> below."
18812 msgstr ""
18813
18814 #. type: =item
18815 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:113
18816 msgid "B<-d libvirt-domain>"
18817 msgstr "B<-d домен-libvirt>"
18818
18819 #. type: =item
18820 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:115
18821 msgid "B<--domain libvirt-domain>"
18822 msgstr "B<--domain домен-libvirt>"
18823
18824 #. type: textblock
18825 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:117
18826 msgid ""
18827 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18828 "used, then any libvirt domain can be used.  However in write mode, only "
18829 "libvirt domains which are shut down can be named here."
18830 msgstr ""
18831
18832 #. type: textblock
18833 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:121
18834 msgid "Domain UUIDs can be used instead of names."
18835 msgstr ""
18836
18837 #. type: textblock
18838 #: ../fish/guestfish.pod:204
18839 msgid ""
18840 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18841 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18842 "if the I<--format:...> flag was given."
18843 msgstr ""
18844
18845 #. type: =item
18846 #: ../fish/guestfish.pod:208
18847 msgid "B<-D>"
18848 msgstr "B<-D>"
18849
18850 #. type: =item
18851 #: ../fish/guestfish.pod:210
18852 msgid "B<--no-dest-paths>"
18853 msgstr "B<--no-dest-paths>"
18854
18855 #. type: textblock
18856 #: ../fish/guestfish.pod:212
18857 msgid ""
18858 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18859 "to hit the tab key to complete paths on the guest filesystem, but this "
18860 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18861 "allow this feature to be disabled."
18862 msgstr ""
18863
18864 #. type: textblock
18865 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:137
18866 msgid ""
18867 "When prompting for keys and passphrases, guestfish normally turns echoing "
18868 "off so you cannot see what you are typing.  If you are not worried about "
18869 "Tempest attacks and there is no one else in the room you can specify this "
18870 "flag to see what you are typing."
18871 msgstr ""
18872
18873 #. type: =item
18874 #: ../fish/guestfish.pod:224
18875 msgid "B<-f file>"
18876 msgstr "B<-f файл>"
18877
18878 #. type: =item
18879 #: ../fish/guestfish.pod:226
18880 msgid "B<--file file>"
18881 msgstr "B<--file файл>"
18882
18883 #. type: textblock
18884 #: ../fish/guestfish.pod:228
18885 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
18886 msgstr ""
18887
18888 #. type: verbatim
18889 #: ../fish/guestfish.pod:231
18890 #, no-wrap
18891 msgid ""
18892 " #!/usr/bin/guestfish -f\n"
18893 "\n"
18894 msgstr ""
18895 " #!/usr/bin/guestfish -f\n"
18896 "\n"
18897
18898 #. type: verbatim
18899 #: ../fish/guestfish.pod:244
18900 #, no-wrap
18901 msgid ""
18902 " guestfish --format=raw -a disk.img\n"
18903 "\n"
18904 msgstr ""
18905 " guestfish --format=raw -a disk.img\n"
18906 "\n"
18907
18908 #. type: verbatim
18909 #: ../fish/guestfish.pod:248
18910 #, no-wrap
18911 msgid ""
18912 " guestfish --format=raw -a disk.img --format -a another.img\n"
18913 "\n"
18914 msgstr ""
18915 " guestfish --format=raw -a disk.img --format -a another.img\n"
18916 "\n"
18917
18918 #. type: textblock
18919 #: ../fish/guestfish.pod:253
18920 msgid ""
18921 "If you have untrusted raw-format guest disk images, you should use this "
18922 "option to specify the disk format.  This avoids a possible security problem "
18923 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
18924 msgstr ""
18925
18926 #. type: =item
18927 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:166
18928 msgid "B<--inspector>"
18929 msgstr "B<--inspector>"
18930
18931 #. type: textblock
18932 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:168
18933 msgid ""
18934 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18935 "system and mount filesystems as they would be mounted on the real virtual "
18936 "machine."
18937 msgstr ""
18938
18939 #. type: textblock
18940 #: ../fish/guestfish.pod:266
18941 msgid "Typical usage is either:"
18942 msgstr ""
18943
18944 #. type: verbatim
18945 #: ../fish/guestfish.pod:268
18946 #, no-wrap
18947 msgid ""
18948 " guestfish -d myguest -i\n"
18949 "\n"
18950 msgstr ""
18951 " guestfish -d myguest -i\n"
18952 "\n"
18953
18954 #. type: textblock
18955 #: ../fish/guestfish.pod:270
18956 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18957 msgstr ""
18958
18959 #. type: verbatim
18960 #: ../fish/guestfish.pod:272
18961 #, no-wrap
18962 msgid ""
18963 " guestfish --ro -d myguest -i\n"
18964 "\n"
18965 msgstr ""
18966 " guestfish --ro -d myguest -i\n"
18967 "\n"
18968
18969 #. type: textblock
18970 #: ../fish/guestfish.pod:274
18971 msgid "(for active domains, readonly), or specify the block device directly:"
18972 msgstr ""
18973
18974 #. type: verbatim
18975 #: ../fish/guestfish.pod:276
18976 #, no-wrap
18977 msgid ""
18978 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18979 "\n"
18980 msgstr ""
18981 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18982 "\n"
18983
18984 #. type: textblock
18985 #: ../fish/guestfish.pod:278
18986 msgid ""
18987 "Note that the command line syntax changed slightly over older versions of "
18988 "guestfish.  You can still use the old syntax:"
18989 msgstr ""
18990
18991 #. type: verbatim
18992 #: ../fish/guestfish.pod:281
18993 #, no-wrap
18994 msgid ""
18995 " guestfish [--ro] -i disk.img\n"
18996 "\n"
18997 msgstr ""
18998 " guestfish [--ro] -i disk.img\n"
18999 "\n"
19000
19001 #. type: verbatim
19002 #: ../fish/guestfish.pod:283
19003 #, no-wrap
19004 msgid ""
19005 " guestfish [--ro] -i libvirt-domain\n"
19006 "\n"
19007 msgstr ""
19008
19009 #. type: textblock
19010 #: ../fish/guestfish.pod:285
19011 msgid ""
19012 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
19013 "then using other commands to mount the filesystems that were found."
19014 msgstr ""
19015
19016 #. type: =item
19017 #: ../fish/guestfish.pod:294
19018 msgid "B<--listen>"
19019 msgstr "B<--listen>"
19020
19021 #. type: textblock
19022 #: ../fish/guestfish.pod:296
19023 msgid ""
19024 "Fork into the background and listen for remote commands.  See section L</"
19025 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
19026 msgstr ""
19027
19028 #. type: =item
19029 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:177
19030 msgid "B<--live>"
19031 msgstr "B<--live>"
19032
19033 #. type: textblock
19034 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:179
19035 msgid ""
19036 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
19037 "ATTACHING TO RUNNING DAEMONS>)."
19038 msgstr ""
19039
19040 #. type: =item
19041 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:182
19042 msgid "B<-m dev[:mountpoint[:options]]>"
19043 msgstr "B<-m пристрій[:точка_монтування[:параметри]]>"
19044
19045 #. type: =item
19046 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:184
19047 msgid "B<--mount dev[:mountpoint[:options]]>"
19048 msgstr "B<--mount пристрій[:точка_монтування[:параметри]]>"
19049
19050 #. type: textblock
19051 #: ../fish/guestfish.pod:308
19052 msgid "Mount the named partition or logical volume on the given mountpoint."
19053 msgstr ""
19054
19055 #. type: textblock
19056 #: ../fish/guestfish.pod:310
19057 msgid "If the mountpoint is omitted, it defaults to C</>."
19058 msgstr ""
19059
19060 #. type: textblock
19061 #: ../fish/guestfish.pod:312
19062 msgid "You have to mount something on C</> before most commands will work."
19063 msgstr ""
19064
19065 #. type: textblock
19066 #: ../fish/guestfish.pod:314
19067 msgid ""
19068 "If any I<-m> or I<--mount> options are given, the guest is automatically "
19069 "launched."
19070 msgstr ""
19071
19072 #. type: textblock
19073 #: ../fish/guestfish.pod:317
19074 msgid ""
19075 "If you don't know what filesystems a disk image contains, you can either run "
19076 "guestfish without this option, then list the partitions, filesystems and LVs "
19077 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
19078 "commands), or you can use the L<virt-filesystems(1)> program."
19079 msgstr ""
19080
19081 #. type: textblock
19082 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:192
19083 msgid ""
19084 "The third (and rarely used) part of the mount parameter is the list of mount "
19085 "options used to mount the underlying filesystem.  If this is not given, then "
19086 "the mount options are either the empty string or C<ro> (the latter if the "
19087 "I<--ro> flag is used).  By specifying the mount options, you override this "
19088 "default choice.  Probably the only time you would use this is to enable ACLs "
19089 "and/or extended attributes if the filesystem can support them:"
19090 msgstr ""
19091
19092 #. type: verbatim
19093 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:200
19094 #, no-wrap
19095 msgid ""
19096 " -m /dev/sda1:/:acl,user_xattr\n"
19097 "\n"
19098 msgstr ""
19099
19100 #. type: textblock
19101 #: ../fish/guestfish.pod:333
19102 msgid "Using this flag is equivalent to using the C<mount-options> command."
19103 msgstr ""
19104
19105 #. type: =item
19106 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:202
19107 #: ../resize/virt-resize.pod:414
19108 msgid "B<-n>"
19109 msgstr "B<-n>"
19110
19111 #. type: =item
19112 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:204
19113 msgid "B<--no-sync>"
19114 msgstr "B<--no-sync>"
19115
19116 #. type: textblock
19117 #: ../fish/guestfish.pod:339
19118 msgid ""
19119 "Disable autosync.  This is enabled by default.  See the discussion of "
19120 "autosync in the L<guestfs(3)> manpage."
19121 msgstr ""
19122
19123 #. type: =item
19124 #: ../fish/guestfish.pod:342
19125 msgid "B<-N type>"
19126 msgstr "B<-N тип>"
19127
19128 #. type: =item
19129 #: ../fish/guestfish.pod:344
19130 msgid "B<--new type>"
19131 msgstr "B<--new тип>"
19132
19133 #. type: =item
19134 #: ../fish/guestfish.pod:346
19135 msgid "B<-N help>"
19136 msgstr "B<-N help>"
19137
19138 #. type: textblock
19139 #: ../fish/guestfish.pod:348
19140 msgid ""
19141 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
19142 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
19143 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
19144 "IMAGES> below."
19145 msgstr ""
19146
19147 #. type: =item
19148 #: ../fish/guestfish.pod:353
19149 msgid "B<--progress-bars>"
19150 msgstr "B<--progress-bars>"
19151
19152 #. type: textblock
19153 #: ../fish/guestfish.pod:355
19154 msgid "Enable progress bars, even when guestfish is used non-interactively."
19155 msgstr ""
19156
19157 #. type: textblock
19158 #: ../fish/guestfish.pod:357
19159 msgid ""
19160 "Progress bars are enabled by default when guestfish is used as an "
19161 "interactive shell."
19162 msgstr ""
19163
19164 #. type: =item
19165 #: ../fish/guestfish.pod:360
19166 msgid "B<--no-progress-bars>"
19167 msgstr "B<--no-progress-bars>"
19168
19169 #. type: textblock
19170 #: ../fish/guestfish.pod:362
19171 msgid "Disable progress bars."
19172 msgstr ""
19173
19174 #. type: =item
19175 #: ../fish/guestfish.pod:364
19176 msgid "B<--remote[=pid]>"
19177 msgstr "B<--remote[=pid]>"
19178
19179 #. type: textblock
19180 #: ../fish/guestfish.pod:366
19181 msgid ""
19182 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
19183 "CONTROL GUESTFISH OVER A SOCKET> below."
19184 msgstr ""
19185
19186 #. type: =item
19187 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:248
19188 #: ../rescue/virt-rescue.pod:161
19189 msgid "B<-r>"
19190 msgstr "B<-r>"
19191
19192 #. type: =item
19193 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:250
19194 #: ../rescue/virt-rescue.pod:163
19195 msgid "B<--ro>"
19196 msgstr "B<--ro>"
19197
19198 #. type: textblock
19199 #: ../fish/guestfish.pod:373
19200 msgid ""
19201 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19202 "mounts are done read-only."
19203 msgstr ""
19204
19205 #. type: textblock
19206 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
19207 msgid ""
19208 "The option must always be used if the disk image or virtual machine might be "
19209 "running, and is generally recommended in cases where you don't need write "
19210 "access to the disk."
19211 msgstr ""
19212
19213 #. type: textblock
19214 #: ../fish/guestfish.pod:380
19215 msgid ""
19216 "Note that prepared disk images created with I<-N> are not affected by this "
19217 "option.  Also commands like C<add> are not affected - you have to specify "
19218 "the C<readonly:true> option explicitly if you need it."
19219 msgstr ""
19220
19221 #. type: textblock
19222 #: ../fish/guestfish.pod:384
19223 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
19224 msgstr ""
19225
19226 #. type: =item
19227 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:262
19228 #: ../rescue/virt-rescue.pod:173
19229 msgid "B<--selinux>"
19230 msgstr "B<--selinux>"
19231
19232 #. type: textblock
19233 #: ../fish/guestfish.pod:388
19234 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
19235 msgstr ""
19236
19237 #. type: textblock
19238 #: ../fish/guestfish.pod:394
19239 msgid ""
19240 "Enable very verbose messages.  This is particularly useful if you find a bug."
19241 msgstr ""
19242
19243 #. type: textblock
19244 #: ../fish/guestfish.pod:401
19245 msgid "Display the guestfish / libguestfs version number and exit."
19246 msgstr ""
19247
19248 #. type: =item
19249 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:278
19250 #: ../rescue/virt-rescue.pod:194
19251 msgid "B<-w>"
19252 msgstr "B<-w>"
19253
19254 #. type: =item
19255 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:280
19256 #: ../rescue/virt-rescue.pod:196
19257 msgid "B<--rw>"
19258 msgstr "B<--rw>"
19259
19260 #. type: textblock
19261 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:282
19262 msgid ""
19263 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
19264 "mounts are done read-write."
19265 msgstr ""
19266
19267 #. type: textblock
19268 #: ../fish/guestfish.pod:410
19269 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
19270 msgstr ""
19271
19272 #. type: textblock
19273 #: ../fish/guestfish.pod:414
19274 msgid "Echo each command before executing it."
19275 msgstr ""
19276
19277 #. type: =head1
19278 #: ../fish/guestfish.pod:418
19279 msgid "COMMANDS ON COMMAND LINE"
19280 msgstr ""
19281
19282 #. type: textblock
19283 #: ../fish/guestfish.pod:420
19284 msgid ""
19285 "Any additional (non-option) arguments are treated as commands to execute."
19286 msgstr ""
19287
19288 #. type: textblock
19289 #: ../fish/guestfish.pod:423
19290 msgid ""
19291 "Commands to execute should be separated by a colon (C<:>), where the colon "
19292 "is a separate parameter.  Thus:"
19293 msgstr ""
19294
19295 #. type: verbatim
19296 #: ../fish/guestfish.pod:426
19297 #, no-wrap
19298 msgid ""
19299 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
19300 "\n"
19301 msgstr ""
19302
19303 #. type: textblock
19304 #: ../fish/guestfish.pod:428
19305 msgid ""
19306 "If there are no additional arguments, then we enter a shell, either an "
19307 "interactive shell with a prompt (if the input is a terminal) or a non-"
19308 "interactive shell."
19309 msgstr ""
19310
19311 #. type: textblock
19312 #: ../fish/guestfish.pod:432
19313 msgid ""
19314 "In either command line mode or non-interactive shell, the first command that "
19315 "gives an error causes the whole shell to exit.  In interactive mode (with a "
19316 "prompt) if a command fails, you can continue to enter commands."
19317 msgstr ""
19318
19319 #. type: =head1
19320 #: ../fish/guestfish.pod:437
19321 msgid "USING launch (OR run)"
19322 msgstr ""
19323
19324 #. type: textblock
19325 #: ../fish/guestfish.pod:439
19326 msgid ""
19327 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
19328 "then launch it, then mount any disks you need, and finally issue actions/"
19329 "commands.  So the general order of the day is:"
19330 msgstr ""
19331
19332 #. type: textblock
19333 #: ../fish/guestfish.pod:447
19334 msgid "add or -a/--add"
19335 msgstr ""
19336
19337 #. type: textblock
19338 #: ../fish/guestfish.pod:451
19339 msgid "launch (aka run)"
19340 msgstr ""
19341
19342 #. type: textblock
19343 #: ../fish/guestfish.pod:455
19344 msgid "mount or -m/--mount"
19345 msgstr ""
19346
19347 #. type: textblock
19348 #: ../fish/guestfish.pod:459
19349 msgid "any other commands"
19350 msgstr ""
19351
19352 #. type: textblock
19353 #: ../fish/guestfish.pod:463
19354 msgid ""
19355 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
19356 "guest before mounting or performing any other commands."
19357 msgstr ""
19358
19359 #. type: textblock
19360 #: ../fish/guestfish.pod:466
19361 msgid ""
19362 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
19363 "I<--new> options were given then C<run> is done automatically, simply "
19364 "because guestfish can't perform the action you asked for without doing this."
19365 msgstr ""
19366
19367 #. type: =head1
19368 #: ../fish/guestfish.pod:471
19369 msgid "OPENING DISKS FOR READ AND WRITE"
19370 msgstr ""
19371
19372 #. type: textblock
19373 #: ../fish/guestfish.pod:473
19374 msgid ""
19375 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
19376 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
19377 "I<-i> and I<-m> open disk images read-only or for writing."
19378 msgstr ""
19379
19380 #. type: textblock
19381 #: ../fish/guestfish.pod:478
19382 msgid ""
19383 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
19384 "opening disk images supplied on the command line for write.  To open a disk "
19385 "image read-only you have to do I<-a image --ro>."
19386 msgstr ""
19387
19388 #. type: textblock
19389 #: ../fish/guestfish.pod:482
19390 msgid ""
19391 "This matters: If you accidentally open a live VM disk image writable then "
19392 "you will cause irreversible disk corruption."
19393 msgstr ""
19394
19395 #. type: textblock
19396 #: ../fish/guestfish.pod:485
19397 msgid ""
19398 "In a future libguestfs we intend to change the default the other way.  Disk "
19399 "images will be opened read-only.  You will have to either specify "
19400 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
19401 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
19402 "access for disk images specified by those other command line options."
19403 msgstr ""
19404
19405 #. type: textblock
19406 #: ../fish/guestfish.pod:492
19407 msgid ""
19408 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
19409 "which does nothing (it is already the default).  However it is highly "
19410 "recommended that you use this option to indicate that you need write access, "
19411 "and prepare your scripts for the day when this option will be required for "
19412 "write access."
19413 msgstr ""
19414
19415 #. type: textblock
19416 #: ../fish/guestfish.pod:498
19417 msgid ""
19418 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
19419 "other libguestfs program apart from guestfish and guestmount."
19420 msgstr ""
19421
19422 #. type: =head1
19423 #: ../fish/guestfish.pod:501
19424 msgid "QUOTING"
19425 msgstr ""
19426
19427 #. type: textblock
19428 #: ../fish/guestfish.pod:503
19429 msgid ""
19430 "You can quote ordinary parameters using either single or double quotes.  For "
19431 "example:"
19432 msgstr ""
19433
19434 #. type: verbatim
19435 #: ../fish/guestfish.pod:506
19436 #, no-wrap
19437 msgid ""
19438 " add \"file with a space.img\"\n"
19439 "\n"
19440 msgstr ""
19441
19442 #. type: verbatim
19443 #: ../fish/guestfish.pod:508
19444 #, no-wrap
19445 msgid ""
19446 " rm '/file name'\n"
19447 "\n"
19448 msgstr ""
19449
19450 #. type: verbatim
19451 #: ../fish/guestfish.pod:510
19452 #, no-wrap
19453 msgid ""
19454 " rm '/\"'\n"
19455 "\n"
19456 msgstr ""
19457
19458 #. type: textblock
19459 #: ../fish/guestfish.pod:512
19460 msgid ""
19461 "A few commands require a list of strings to be passed.  For these, use a "
19462 "whitespace-separated list, enclosed in quotes.  Strings containing "
19463 "whitespace to be passed through must be enclosed in single quotes.  A "
19464 "literal single quote must be escaped with a backslash."
19465 msgstr ""
19466
19467 #. type: verbatim
19468 #: ../fish/guestfish.pod:517
19469 #, no-wrap
19470 msgid ""
19471 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
19472 " command \"/bin/echo 'foo      bar'\"\n"
19473 " command \"/bin/echo \\'foo\\'\"\n"
19474 "\n"
19475 msgstr ""
19476
19477 #. type: =head2
19478 #: ../fish/guestfish.pod:521
19479 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
19480 msgstr ""
19481
19482 #. type: textblock
19483 #: ../fish/guestfish.pod:523
19484 msgid ""
19485 "In double-quoted arguments (only) use backslash to insert special characters:"
19486 msgstr ""
19487
19488 #. type: =item
19489 #: ../fish/guestfish.pod:528
19490 msgid "C<\\a>"
19491 msgstr "C<\\a>"
19492
19493 #. type: textblock
19494 #: ../fish/guestfish.pod:530
19495 msgid "Alert (bell) character."
19496 msgstr "Символ гудка (дзвінка)."
19497
19498 #. type: =item
19499 #: ../fish/guestfish.pod:532
19500 msgid "C<\\b>"
19501 msgstr "C<\\b>"
19502
19503 #. type: textblock
19504 #: ../fish/guestfish.pod:534
19505 msgid "Backspace character."
19506 msgstr ""
19507
19508 #. type: =item
19509 #: ../fish/guestfish.pod:536
19510 msgid "C<\\f>"
19511 msgstr "C<\\f>"
19512
19513 #. type: textblock
19514 #: ../fish/guestfish.pod:538
19515 msgid "Form feed character."
19516 msgstr ""
19517
19518 #. type: =item
19519 #: ../fish/guestfish.pod:540
19520 msgid "C<\\n>"
19521 msgstr "C<\\n>"
19522
19523 #. type: textblock
19524 #: ../fish/guestfish.pod:542
19525 msgid "Newline character."
19526 msgstr ""
19527
19528 #. type: =item
19529 #: ../fish/guestfish.pod:544
19530 msgid "C<\\r>"
19531 msgstr "C<\\r>"
19532
19533 #. type: textblock
19534 #: ../fish/guestfish.pod:546
19535 msgid "Carriage return character."
19536 msgstr "Символ повернення каретки."
19537
19538 #. type: =item
19539 #: ../fish/guestfish.pod:548
19540 msgid "C<\\t>"
19541 msgstr "C<\\t>"
19542
19543 #. type: textblock
19544 #: ../fish/guestfish.pod:550
19545 msgid "Horizontal tab character."
19546 msgstr "Символ горизонтальної табуляції"
19547
19548 #. type: =item
19549 #: ../fish/guestfish.pod:552
19550 msgid "C<\\v>"
19551 msgstr "C<\\v>"
19552
19553 #. type: textblock
19554 #: ../fish/guestfish.pod:554
19555 msgid "Vertical tab character."
19556 msgstr "Символ вертикальної табуляції."
19557
19558 #. type: =item
19559 #: ../fish/guestfish.pod:556
19560 msgid "C<\\\">"
19561 msgstr "C<\\\">"
19562
19563 #. type: textblock
19564 #: ../fish/guestfish.pod:558
19565 msgid "A literal double quote character."
19566 msgstr ""
19567
19568 #. type: =item
19569 #: ../fish/guestfish.pod:560
19570 msgid "C<\\ooo>"
19571 msgstr "C<\\ooo>"
19572
19573 #. type: textblock
19574 #: ../fish/guestfish.pod:562
19575 msgid ""
19576 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
19577 "(unlike C)."
19578 msgstr ""
19579
19580 #. type: =item
19581 #: ../fish/guestfish.pod:565
19582 msgid "C<\\xhh>"
19583 msgstr "C<\\xhh>"
19584
19585 #. type: textblock
19586 #: ../fish/guestfish.pod:567
19587 msgid ""
19588 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
19589 msgstr ""
19590
19591 #. type: textblock
19592 #: ../fish/guestfish.pod:570
19593 msgid ""
19594 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
19595 "strings."
19596 msgstr ""
19597
19598 #. type: =item
19599 #: ../fish/guestfish.pod:573
19600 msgid "C<\\\\>"
19601 msgstr "C<\\\\>"
19602
19603 #. type: textblock
19604 #: ../fish/guestfish.pod:575
19605 msgid "A literal backslash character."
19606 msgstr ""
19607
19608 #. type: =head1
19609 #: ../fish/guestfish.pod:579
19610 msgid "OPTIONAL ARGUMENTS"
19611 msgstr ""
19612
19613 #. type: textblock
19614 #: ../fish/guestfish.pod:581
19615 msgid ""
19616 "Some commands take optional arguments.  These arguments appear in this "
19617 "documentation as C<[argname:..]>.  You can use them as in these examples:"
19618 msgstr ""
19619
19620 #. type: verbatim
19621 #: ../fish/guestfish.pod:585
19622 #, no-wrap
19623 msgid ""
19624 " add-drive-opts filename\n"
19625 "\n"
19626 msgstr ""
19627
19628 #. type: verbatim
19629 #: ../fish/guestfish.pod:587
19630 #, no-wrap
19631 msgid ""
19632 " add-drive-opts filename readonly:true\n"
19633 "\n"
19634 msgstr ""
19635
19636 #. type: verbatim
19637 #: ../fish/guestfish.pod:589
19638 #, no-wrap
19639 msgid ""
19640 " add-drive-opts filename format:qcow2 readonly:false\n"
19641 "\n"
19642 msgstr ""
19643
19644 #. type: textblock
19645 #: ../fish/guestfish.pod:591
19646 msgid ""
19647 "Each optional argument can appear at most once.  All optional arguments must "
19648 "appear after the required ones."
19649 msgstr ""
19650
19651 #. type: =head1
19652 #: ../fish/guestfish.pod:594
19653 msgid "NUMBERS"
19654 msgstr "ЧИСЛА"
19655
19656 #. type: textblock
19657 #: ../fish/guestfish.pod:596
19658 msgid ""
19659 "This section applies to all commands which can take integers as parameters."
19660 msgstr ""
19661
19662 #. type: =head2
19663 #: ../fish/guestfish.pod:599
19664 msgid "SIZE SUFFIX"
19665 msgstr ""
19666
19667 #. type: textblock
19668 #: ../fish/guestfish.pod:601
19669 msgid ""
19670 "When the command takes a parameter measured in bytes, you can use one of the "
19671 "following suffixes to specify kilobytes, megabytes and larger sizes:"
19672 msgstr ""
19673
19674 #. type: =item
19675 #: ../fish/guestfish.pod:607
19676 msgid "B<k> or B<K> or B<KiB>"
19677 msgstr "B<k>, B<K> або B<KiB>"
19678
19679 #. type: textblock
19680 #: ../fish/guestfish.pod:609
19681 msgid "The size in kilobytes (multiplied by 1024)."
19682 msgstr "Розмір у кілобайтах (у одному кілобайті 1024 байтів)."
19683
19684 #. type: =item
19685 #: ../fish/guestfish.pod:611
19686 msgid "B<KB>"
19687 msgstr "B<KB>"
19688
19689 #. type: textblock
19690 #: ../fish/guestfish.pod:613
19691 msgid "The size in SI 1000 byte units."
19692 msgstr "Розмір у одиницях СІ: 1000 байтів."
19693
19694 #. type: =item
19695 #: ../fish/guestfish.pod:615
19696 msgid "B<M> or B<MiB>"
19697 msgstr "B<M> або B<MiB>"
19698
19699 #. type: textblock
19700 #: ../fish/guestfish.pod:617
19701 msgid "The size in megabytes (multiplied by 1048576)."
19702 msgstr "Розмір у мегабайтах (у одному мегабайті 1048576 байтів)."
19703
19704 #. type: =item
19705 #: ../fish/guestfish.pod:619
19706 msgid "B<MB>"
19707 msgstr "B<MB>"
19708
19709 #. type: textblock
19710 #: ../fish/guestfish.pod:621
19711 msgid "The size in SI 1000000 byte units."
19712 msgstr "Розмір у одиницях СІ: 1000000 байтів."
19713
19714 #. type: =item
19715 #: ../fish/guestfish.pod:623
19716 msgid "B<G> or B<GiB>"
19717 msgstr "B<G> або B<GiB>"
19718
19719 #. type: textblock
19720 #: ../fish/guestfish.pod:625
19721 msgid "The size in gigabytes (multiplied by 2**30)."
19722 msgstr "Розмір у гігабайтах (з множником 2**30)."
19723
19724 #. type: =item
19725 #: ../fish/guestfish.pod:627
19726 msgid "B<GB>"
19727 msgstr "B<GB>"
19728
19729 #. type: textblock
19730 #: ../fish/guestfish.pod:629
19731 msgid "The size in SI 10**9 byte units."
19732 msgstr "Розмір у одиницях СІ: 10**9 байтів."
19733
19734 #. type: =item
19735 #: ../fish/guestfish.pod:631
19736 msgid "B<T> or B<TiB>"
19737 msgstr "B<T> або B<TiB>"
19738
19739 #. type: textblock
19740 #: ../fish/guestfish.pod:633
19741 msgid "The size in terabytes (multiplied by 2**40)."
19742 msgstr "Розмір у терабайтах (з множником 2**40)."
19743
19744 #. type: =item
19745 #: ../fish/guestfish.pod:635
19746 msgid "B<TB>"
19747 msgstr "B<TB>"
19748
19749 #. type: textblock
19750 #: ../fish/guestfish.pod:637
19751 msgid "The size in SI 10**12 byte units."
19752 msgstr "Розмір у одиницях СІ: 10**12 байтів."
19753
19754 #. type: =item
19755 #: ../fish/guestfish.pod:639
19756 msgid "B<P> or B<PiB>"
19757 msgstr "B<P> або B<PiB>"
19758
19759 #. type: textblock
19760 #: ../fish/guestfish.pod:641
19761 msgid "The size in petabytes (multiplied by 2**50)."
19762 msgstr "Розмір у петабайтах (у одному петабайті 2**50 байтів)."
19763
19764 #. type: =item
19765 #: ../fish/guestfish.pod:643
19766 msgid "B<PB>"
19767 msgstr "B<PB>"
19768
19769 #. type: textblock
19770 #: ../fish/guestfish.pod:645
19771 msgid "The size in SI 10**15 byte units."
19772 msgstr "Розмір у одиницях СІ: 10**15 байтів."
19773
19774 #. type: =item
19775 #: ../fish/guestfish.pod:647
19776 msgid "B<E> or B<EiB>"
19777 msgstr "B<E> або B<EiB>"
19778
19779 #. type: textblock
19780 #: ../fish/guestfish.pod:649
19781 msgid "The size in exabytes (multiplied by 2**60)."
19782 msgstr "Розмір у ексабайтах (у одному ексабайті 2**60 байтів)."
19783
19784 #. type: =item
19785 #: ../fish/guestfish.pod:651
19786 msgid "B<EB>"
19787 msgstr "B<EB>"
19788
19789 #. type: textblock
19790 #: ../fish/guestfish.pod:653
19791 msgid "The size in SI 10**18 byte units."
19792 msgstr "Розмір у одиницях СІ: 10**18 байтів."
19793
19794 #. type: =item
19795 #: ../fish/guestfish.pod:655
19796 msgid "B<Z> or B<ZiB>"
19797 msgstr "B<Z> або B<ZiB>"
19798
19799 #. type: textblock
19800 #: ../fish/guestfish.pod:657
19801 msgid "The size in zettabytes (multiplied by 2**70)."
19802 msgstr "Розмір у зетабайтах (у одному зетабайті 2**70 байтів)."
19803
19804 #. type: =item
19805 #: ../fish/guestfish.pod:659
19806 msgid "B<ZB>"
19807 msgstr "B<ZB>"
19808
19809 #. type: textblock
19810 #: ../fish/guestfish.pod:661
19811 msgid "The size in SI 10**21 byte units."
19812 msgstr "Розмір у одиницях СІ: 10**21 байтів."
19813
19814 #. type: =item
19815 #: ../fish/guestfish.pod:663
19816 msgid "B<Y> or B<YiB>"
19817 msgstr "B<Y> або B<YiB>"
19818
19819 #. type: textblock
19820 #: ../fish/guestfish.pod:665
19821 msgid "The size in yottabytes (multiplied by 2**80)."
19822 msgstr "Розмір у йотабайтах (у одному йотабайті 2**80 байтів)."
19823
19824 #. type: =item
19825 #: ../fish/guestfish.pod:667
19826 msgid "B<YB>"
19827 msgstr "B<YB>"
19828
19829 #. type: textblock
19830 #: ../fish/guestfish.pod:669
19831 msgid "The size in SI 10**24 byte units."
19832 msgstr "Розмір у одиницях СІ: 10**24 байтів."
19833
19834 #. type: verbatim
19835 #: ../fish/guestfish.pod:675
19836 #, no-wrap
19837 msgid ""
19838 " truncate-size /file 1G\n"
19839 "\n"
19840 msgstr ""
19841
19842 #. type: textblock
19843 #: ../fish/guestfish.pod:677
19844 msgid "would truncate the file to 1 gigabyte."
19845 msgstr ""
19846
19847 #. type: textblock
19848 #: ../fish/guestfish.pod:679
19849 msgid ""
19850 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
19851 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
19852 "suffix will probably not do what you expect."
19853 msgstr ""
19854
19855 #. type: =head2
19856 #: ../fish/guestfish.pod:683
19857 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19858 msgstr ""
19859
19860 #. type: textblock
19861 #: ../fish/guestfish.pod:685
19862 msgid ""
19863 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19864 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19865 msgstr ""
19866
19867 #. type: verbatim
19868 #: ../fish/guestfish.pod:688
19869 #, no-wrap
19870 msgid ""
19871 " 1234      decimal number 1234\n"
19872 " 02322     octal number, equivalent to decimal 1234\n"
19873 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19874 "\n"
19875 msgstr ""
19876
19877 #. type: textblock
19878 #: ../fish/guestfish.pod:692
19879 msgid ""
19880 "When using the C<chmod> command, you almost always want to specify an octal "
19881 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19882 "L<chmod(1)> program):"
19883 msgstr ""
19884
19885 #. type: verbatim
19886 #: ../fish/guestfish.pod:696
19887 #, no-wrap
19888 msgid ""
19889 " chmod 0777 /public  # OK\n"
19890 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
19891 "\n"
19892 msgstr ""
19893
19894 #. type: textblock
19895 #: ../fish/guestfish.pod:699
19896 msgid ""
19897 "Commands that return numbers usually print them in decimal, but some "
19898 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19899 "octal, preceeded by C<0>)."
19900 msgstr ""
19901
19902 #. type: =head1
19903 #: ../fish/guestfish.pod:703
19904 msgid "WILDCARDS AND GLOBBING"
19905 msgstr ""
19906
19907 #. type: textblock
19908 #: ../fish/guestfish.pod:705
19909 msgid ""
19910 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19911 "(globbing) by default.  So for example the following will not do what you "
19912 "expect:"
19913 msgstr ""
19914
19915 #. type: verbatim
19916 #: ../fish/guestfish.pod:709
19917 #, no-wrap
19918 msgid ""
19919 " rm-rf /home/*\n"
19920 "\n"
19921 msgstr ""
19922
19923 #. type: textblock
19924 #: ../fish/guestfish.pod:711
19925 msgid ""
19926 "Assuming you don't have a directory called literally C</home/*> then the "
19927 "above command will return an error."
19928 msgstr ""
19929
19930 #. type: textblock
19931 #: ../fish/guestfish.pod:714
19932 msgid "To perform wildcard expansion, use the C<glob> command."
19933 msgstr ""
19934
19935 #. type: verbatim
19936 #: ../fish/guestfish.pod:716
19937 #, no-wrap
19938 msgid ""
19939 " glob rm-rf /home/*\n"
19940 "\n"
19941 msgstr ""
19942
19943 #. type: textblock
19944 #: ../fish/guestfish.pod:718
19945 msgid ""
19946 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19947 "many times), equivalent to:"
19948 msgstr ""
19949
19950 #. type: verbatim
19951 #: ../fish/guestfish.pod:721
19952 #, no-wrap
19953 msgid ""
19954 " rm-rf /home/jim\n"
19955 " rm-rf /home/joe\n"
19956 " rm-rf /home/mary\n"
19957 "\n"
19958 msgstr ""
19959
19960 #. type: textblock
19961 #: ../fish/guestfish.pod:725
19962 msgid "C<glob> only works on simple guest paths and not on device names."
19963 msgstr ""
19964
19965 #. type: textblock
19966 #: ../fish/guestfish.pod:727
19967 msgid ""
19968 "If you have several parameters, each containing a wildcard, then glob will "
19969 "perform a Cartesian product."
19970 msgstr ""
19971
19972 #. type: =head1
19973 #: ../fish/guestfish.pod:730
19974 msgid "COMMENTS"
19975 msgstr "КОМЕНТАРІ"
19976
19977 #. type: textblock
19978 #: ../fish/guestfish.pod:732
19979 msgid ""
19980 "Any line which starts with a I<#> character is treated as a comment and "
19981 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
19982 "a command.  For example:"
19983 msgstr ""
19984
19985 #. type: verbatim
19986 #: ../fish/guestfish.pod:736
19987 #, no-wrap
19988 msgid ""
19989 " # this is a comment\n"
19990 "         # this is a comment\n"
19991 " foo # NOT a comment\n"
19992 "\n"
19993 msgstr ""
19994
19995 #. type: textblock
19996 #: ../fish/guestfish.pod:740
19997 msgid "Blank lines are also ignored."
19998 msgstr ""
19999
20000 #. type: =head1
20001 #: ../fish/guestfish.pod:742
20002 msgid "RUNNING COMMANDS LOCALLY"
20003 msgstr ""
20004
20005 #. type: textblock
20006 #: ../fish/guestfish.pod:744
20007 msgid ""
20008 "Any line which starts with a I<!> character is treated as a command sent to "
20009 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
20010 msgstr ""
20011
20012 #. type: verbatim
20013 #: ../fish/guestfish.pod:748
20014 #, no-wrap
20015 msgid ""
20016 " !mkdir local\n"
20017 " tgz-out /remote local/remote-data.tar.gz\n"
20018 "\n"
20019 msgstr ""
20020
20021 #. type: textblock
20022 #: ../fish/guestfish.pod:751
20023 msgid ""
20024 "will create a directory C<local> on the host, and then export the contents "
20025 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
20026 "(See C<tgz-out>)."
20027 msgstr ""
20028
20029 #. type: textblock
20030 #: ../fish/guestfish.pod:755
20031 msgid ""
20032 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
20033 "effect, due to the way that subprocesses work in Unix."
20034 msgstr ""
20035
20036 #. type: =head2
20037 #: ../fish/guestfish.pod:758
20038 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
20039 msgstr ""
20040
20041 #. type: textblock
20042 #: ../fish/guestfish.pod:760
20043 msgid ""
20044 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
20045 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
20046 "and executed as guestfish commands."
20047 msgstr ""
20048
20049 #. type: textblock
20050 #: ../fish/guestfish.pod:764
20051 msgid ""
20052 "Thus you can use shell script to construct arbitrary guestfish commands "
20053 "which are then parsed by guestfish."
20054 msgstr ""
20055
20056 #. type: textblock
20057 #: ../fish/guestfish.pod:767
20058 msgid ""
20059 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
20060 "through C</foo.100>) using guestfish commands alone.  However this is simple "
20061 "if we use a shell script to create the guestfish commands for us:"
20062 msgstr ""
20063
20064 #. type: verbatim
20065 #: ../fish/guestfish.pod:772
20066 #, no-wrap
20067 msgid ""
20068 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
20069 "\n"
20070 msgstr ""
20071
20072 #. type: textblock
20073 #: ../fish/guestfish.pod:774
20074 msgid "or with names like C</foo.001>:"
20075 msgstr ""
20076
20077 #. type: verbatim
20078 #: ../fish/guestfish.pod:776
20079 #, no-wrap
20080 msgid ""
20081 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
20082 "\n"
20083 msgstr ""
20084
20085 #. type: textblock
20086 #: ../fish/guestfish.pod:778
20087 msgid ""
20088 "When using guestfish interactively it can be helpful to just run the shell "
20089 "script first (ie. remove the initial C<E<lt>> character so it is just an "
20090 "ordinary I<!> local command), see what guestfish commands it would run, and "
20091 "when you are happy with those prepend the C<E<lt>> character to run the "
20092 "guestfish commands for real."
20093 msgstr ""
20094
20095 #. type: =head1
20096 #: ../fish/guestfish.pod:784
20097 msgid "PIPES"
20098 msgstr "КАНАЛИ"
20099
20100 #. type: textblock
20101 #: ../fish/guestfish.pod:786
20102 msgid ""
20103 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
20104 "command (a guestfish command) to the second command (any host command).  For "
20105 "example:"
20106 msgstr ""
20107
20108 #. type: verbatim
20109 #: ../fish/guestfish.pod:790
20110 #, no-wrap
20111 msgid ""
20112 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
20113 "\n"
20114 msgstr ""
20115
20116 #. type: textblock
20117 #: ../fish/guestfish.pod:792
20118 msgid ""
20119 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
20120 "program).  The above command would list all accounts in the guest filesystem "
20121 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
20122 msgstr ""
20123
20124 #. type: verbatim
20125 #: ../fish/guestfish.pod:797
20126 #, no-wrap
20127 msgid ""
20128 " hexdump /bin/ls | head\n"
20129 " list-devices | tail -1\n"
20130 " tgz-out / - | tar ztf -\n"
20131 "\n"
20132 msgstr ""
20133
20134 #. type: textblock
20135 #: ../fish/guestfish.pod:801
20136 msgid ""
20137 "The space before the pipe symbol is required, any space after the pipe "
20138 "symbol is optional.  Everything after the pipe symbol is just passed "
20139 "straight to the host shell, so it can contain redirections, globs and "
20140 "anything else that makes sense on the host side."
20141 msgstr ""
20142
20143 #. type: textblock
20144 #: ../fish/guestfish.pod:806
20145 msgid ""
20146 "To use a literal argument which begins with a pipe symbol, you have to quote "
20147 "it, eg:"
20148 msgstr ""
20149
20150 #. type: verbatim
20151 #: ../fish/guestfish.pod:809
20152 #, no-wrap
20153 msgid ""
20154 " echo \"|\"\n"
20155 "\n"
20156 msgstr ""
20157
20158 #. type: =head1
20159 #: ../fish/guestfish.pod:811
20160 msgid "HOME DIRECTORIES"
20161 msgstr ""
20162
20163 #. type: textblock
20164 #: ../fish/guestfish.pod:813
20165 msgid ""
20166 "If a parameter starts with the character C<~> then the tilde may be expanded "
20167 "as a home directory path (either C<~> for the current user's home directory, "
20168 "or C<~user> for another user)."
20169 msgstr ""
20170
20171 #. type: textblock
20172 #: ../fish/guestfish.pod:817
20173 msgid ""
20174 "Note that home directory expansion happens for users known I<on the host>, "
20175 "not in the guest filesystem."
20176 msgstr ""
20177
20178 #. type: textblock
20179 #: ../fish/guestfish.pod:820
20180 msgid ""
20181 "To use a literal argument which begins with a tilde, you have to quote it, "
20182 "eg:"
20183 msgstr ""
20184
20185 #. type: verbatim
20186 #: ../fish/guestfish.pod:823
20187 #, no-wrap
20188 msgid ""
20189 " echo \"~\"\n"
20190 "\n"
20191 msgstr ""
20192
20193 #. type: =head2
20194 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
20195 msgid "ENCRYPTED DISKS"
20196 msgstr "ЗАШИФРОВАНІ ДИСКИ"
20197
20198 #. type: textblock
20199 #: ../fish/guestfish.pod:827
20200 msgid ""
20201 "Libguestfs has some support for Linux guests encrypted according to the "
20202 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
20203 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
20204 "LUKS is supported."
20205 msgstr ""
20206
20207 #. type: textblock
20208 #: ../fish/guestfish.pod:832
20209 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
20210 msgstr ""
20211
20212 #. type: verbatim
20213 #: ../fish/guestfish.pod:834
20214 #, no-wrap
20215 msgid ""
20216 " ><fs> vfs-type /dev/sda2\n"
20217 " crypto_LUKS\n"
20218 "\n"
20219 msgstr ""
20220
20221 #. type: textblock
20222 #: ../fish/guestfish.pod:837
20223 msgid ""
20224 "Then open those devices using L</luks-open>.  This creates a device-mapper "
20225 "device called C</dev/mapper/luksdev>."
20226 msgstr ""
20227
20228 #. type: verbatim
20229 #: ../fish/guestfish.pod:840
20230 #, no-wrap
20231 msgid ""
20232 " ><fs> luks-open /dev/sda2 luksdev\n"
20233 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
20234 "\n"
20235 msgstr ""
20236
20237 #. type: textblock
20238 #: ../fish/guestfish.pod:843
20239 msgid ""
20240 "Finally you have to tell LVM to scan for volume groups on the newly created "
20241 "mapper device:"
20242 msgstr ""
20243
20244 #. type: verbatim
20245 #: ../fish/guestfish.pod:846
20246 #, no-wrap
20247 msgid ""
20248 " vgscan\n"
20249 " vg-activate-all true\n"
20250 "\n"
20251 msgstr ""
20252
20253 #. type: textblock
20254 #: ../fish/guestfish.pod:849
20255 msgid "The logical volume(s) can now be mounted in the usual way."
20256 msgstr ""
20257
20258 #. type: textblock
20259 #: ../fish/guestfish.pod:851
20260 msgid ""
20261 "Before closing a LUKS device you must unmount any logical volumes on it and "
20262 "deactivate the volume groups by calling C<vg-activate false VG> on each "
20263 "one.  Then you can close the mapper device:"
20264 msgstr ""
20265
20266 #. type: verbatim
20267 #: ../fish/guestfish.pod:855
20268 #, no-wrap
20269 msgid ""
20270 " vg-activate false /dev/VG\n"
20271 " luks-close /dev/mapper/luksdev\n"
20272 "\n"
20273 msgstr ""
20274
20275 #. type: textblock
20276 #: ../fish/guestfish.pod:860
20277 msgid ""
20278 "If a path is prefixed with C<win:> then you can use Windows-style drive "
20279 "letters and paths (with some limitations).  The following commands are "
20280 "equivalent:"
20281 msgstr ""
20282
20283 #. type: verbatim
20284 #: ../fish/guestfish.pod:864
20285 #, no-wrap
20286 msgid ""
20287 " file /WINDOWS/system32/config/system.LOG\n"
20288 "\n"
20289 msgstr ""
20290
20291 #. type: verbatim
20292 #: ../fish/guestfish.pod:866
20293 #, no-wrap
20294 msgid ""
20295 " file win:\\windows\\system32\\config\\system.log\n"
20296 "\n"
20297 msgstr ""
20298
20299 #. type: verbatim
20300 #: ../fish/guestfish.pod:868
20301 #, no-wrap
20302 msgid ""
20303 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
20304 "\n"
20305 msgstr ""
20306
20307 #. type: textblock
20308 #: ../fish/guestfish.pod:870
20309 msgid ""
20310 "The parameter is rewritten \"behind the scenes\" by looking up the position "
20311 "where the drive is mounted, prepending that to the path, changing all "
20312 "backslash characters to forward slash, then resolving the result using L</"
20313 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
20314 "the parameter might be rewritten like this:"
20315 msgstr ""
20316
20317 #. type: verbatim
20318 #: ../fish/guestfish.pod:876
20319 #, no-wrap
20320 msgid ""
20321 " win:e:\\foo\\bar => /e/FOO/bar\n"
20322 "\n"
20323 msgstr ""
20324
20325 #. type: textblock
20326 #: ../fish/guestfish.pod:878
20327 msgid "This only works in argument positions that expect a path."
20328 msgstr ""
20329
20330 #. type: =head1
20331 #: ../fish/guestfish.pod:880
20332 msgid "UPLOADING AND DOWNLOADING FILES"
20333 msgstr ""
20334
20335 #. type: textblock
20336 #: ../fish/guestfish.pod:882
20337 msgid ""
20338 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
20339 "others which upload from or download to a local file, you can use the "
20340 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
20341 msgstr ""
20342
20343 #. type: verbatim
20344 #: ../fish/guestfish.pod:886
20345 #, no-wrap
20346 msgid ""
20347 " upload - /foo\n"
20348 "\n"
20349 msgstr ""
20350
20351 #. type: textblock
20352 #: ../fish/guestfish.pod:888
20353 msgid ""
20354 "reads stdin and creates from that a file C</foo> in the disk image, and:"
20355 msgstr ""
20356
20357 #. type: verbatim
20358 #: ../fish/guestfish.pod:891
20359 #, no-wrap
20360 msgid ""
20361 " tar-out /etc - | tar tf -\n"
20362 "\n"
20363 msgstr ""
20364
20365 #. type: textblock
20366 #: ../fish/guestfish.pod:893
20367 msgid ""
20368 "writes the tarball to stdout and then pipes that into the external \"tar\" "
20369 "command (see L</PIPES>)."
20370 msgstr ""
20371
20372 #. type: textblock
20373 #: ../fish/guestfish.pod:896
20374 msgid ""
20375 "When using C<-> to read from stdin, the input is read up to the end of "
20376 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
20377 "some arbitrary end marker:"
20378 msgstr ""
20379
20380 #. type: verbatim
20381 #: ../fish/guestfish.pod:900
20382 #, no-wrap
20383 msgid ""
20384 " upload -<<END /foo\n"
20385 " input line 1\n"
20386 " input line 2\n"
20387 " input line 3\n"
20388 " END\n"
20389 "\n"
20390 msgstr ""
20391
20392 #. type: textblock
20393 #: ../fish/guestfish.pod:906
20394 msgid ""
20395 "Any string of characters can be used instead of C<END>.  The end marker must "
20396 "appear on a line of its own, without any preceeding or following characters "
20397 "(not even spaces)."
20398 msgstr ""
20399
20400 #. type: textblock
20401 #: ../fish/guestfish.pod:910
20402 msgid ""
20403 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
20404 "upload local files (so-called \"FileIn\" parameters in the generator)."
20405 msgstr ""
20406
20407 #. type: =head1
20408 #: ../fish/guestfish.pod:913
20409 msgid "EXIT ON ERROR BEHAVIOUR"
20410 msgstr ""
20411
20412 #. type: textblock
20413 #: ../fish/guestfish.pod:915
20414 msgid ""
20415 "By default, guestfish will ignore any errors when in interactive mode (ie. "
20416 "taking commands from a human over a tty), and will exit on the first error "
20417 "in non-interactive mode (scripts, commands given on the command line)."
20418 msgstr ""
20419
20420 #. type: textblock
20421 #: ../fish/guestfish.pod:920
20422 msgid ""
20423 "If you prefix a command with a I<-> character, then that command will not "
20424 "cause guestfish to exit, even if that (one) command returns an error."
20425 msgstr ""
20426
20427 #. type: =head1
20428 #: ../fish/guestfish.pod:924
20429 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
20430 msgstr ""
20431
20432 #. type: textblock
20433 #: ../fish/guestfish.pod:926
20434 msgid ""
20435 "Guestfish can be remote-controlled over a socket.  This is useful "
20436 "particularly in shell scripts where you want to make several different "
20437 "changes to a filesystem, but you don't want the overhead of starting up a "
20438 "guestfish process each time."
20439 msgstr ""
20440
20441 #. type: textblock
20442 #: ../fish/guestfish.pod:931
20443 msgid "Start a guestfish server process using:"
20444 msgstr ""
20445
20446 #. type: verbatim
20447 #: ../fish/guestfish.pod:933
20448 #, no-wrap
20449 msgid ""
20450 " eval \"`guestfish --listen`\"\n"
20451 "\n"
20452 msgstr ""
20453
20454 #. type: textblock
20455 #: ../fish/guestfish.pod:935
20456 msgid "and then send it commands by doing:"
20457 msgstr ""
20458
20459 #. type: verbatim
20460 #: ../fish/guestfish.pod:937
20461 #, no-wrap
20462 msgid ""
20463 " guestfish --remote cmd [...]\n"
20464 "\n"
20465 msgstr ""
20466
20467 #. type: textblock
20468 #: ../fish/guestfish.pod:939
20469 msgid "To cause the server to exit, send it the exit command:"
20470 msgstr ""
20471
20472 #. type: textblock
20473 #: ../fish/guestfish.pod:943
20474 msgid ""
20475 "Note that the server will normally exit if there is an error in a command.  "
20476 "You can change this in the usual way.  See section L</EXIT ON ERROR "
20477 "BEHAVIOUR>."
20478 msgstr ""
20479
20480 #. type: =head2
20481 #: ../fish/guestfish.pod:947
20482 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
20483 msgstr ""
20484
20485 #. type: textblock
20486 #: ../fish/guestfish.pod:949
20487 msgid ""
20488 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
20489 "is how the I<--remote> option knows where to send the commands.  You can "
20490 "have several guestfish listener processes running using:"
20491 msgstr ""
20492
20493 #. type: verbatim
20494 #: ../fish/guestfish.pod:953
20495 #, no-wrap
20496 msgid ""
20497 " eval \"`guestfish --listen`\"\n"
20498 " pid1=$GUESTFISH_PID\n"
20499 " eval \"`guestfish --listen`\"\n"
20500 " pid2=$GUESTFISH_PID\n"
20501 " ...\n"
20502 " guestfish --remote=$pid1 cmd\n"
20503 " guestfish --remote=$pid2 cmd\n"
20504 "\n"
20505 msgstr ""
20506
20507 #. type: =head2
20508 #: ../fish/guestfish.pod:961
20509 msgid "REMOTE CONTROL AND CSH"
20510 msgstr ""
20511
20512 #. type: textblock
20513 #: ../fish/guestfish.pod:963
20514 msgid ""
20515 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
20516 "option:"
20517 msgstr ""
20518
20519 #. type: verbatim
20520 #: ../fish/guestfish.pod:966
20521 #, no-wrap
20522 msgid ""
20523 " eval \"`guestfish --listen --csh`\"\n"
20524 "\n"
20525 msgstr ""
20526
20527 #. type: =head2
20528 #: ../fish/guestfish.pod:968
20529 msgid "REMOTE CONTROL DETAILS"
20530 msgstr ""
20531
20532 #. type: textblock
20533 #: ../fish/guestfish.pod:970
20534 msgid ""
20535 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
20536 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
20537 "and C<$PID> is the process ID of the server."
20538 msgstr ""
20539
20540 #. type: textblock
20541 #: ../fish/guestfish.pod:974
20542 msgid "Guestfish client and server versions must match exactly."
20543 msgstr ""
20544
20545 #. type: =head2
20546 #: ../fish/guestfish.pod:976
20547 msgid "USING REMOTE CONTROL ROBUSTLY FROM SHELL SCRIPTS"
20548 msgstr ""
20549
20550 #. type: textblock
20551 #: ../fish/guestfish.pod:978
20552 msgid ""
20553 "From Bash, you can use the following code which creates a guestfish "
20554 "instance, correctly quotes the command line, handles failure to start, and "
20555 "cleans up guestfish when the script exits:"
20556 msgstr ""
20557
20558 #. type: verbatim
20559 #: ../fish/guestfish.pod:982 ../src/guestfs.pod:965
20560 #, no-wrap
20561 msgid ""
20562 " #!/bin/bash -\n"
20563 " \n"
20564 msgstr ""
20565
20566 #. type: verbatim
20567 #: ../fish/guestfish.pod:986
20568 #, no-wrap
20569 msgid ""
20570 " guestfish[0]=\"guestfish\"\n"
20571 " guestfish[1]=\"--listen\"\n"
20572 " guestfish[2]=\"--ro\"\n"
20573 " guestfish[3]=\"-a\"\n"
20574 " guestfish[4]=\"disk.img\"\n"
20575 " \n"
20576 msgstr ""
20577
20578 #. type: verbatim
20579 #: ../fish/guestfish.pod:992
20580 #, no-wrap
20581 msgid ""
20582 " GUESTFISH_PID=\n"
20583 " eval $(\"${guestfish[@]}\")\n"
20584 " if [ -z \"$GUESTFISH_PID\" ]; then\n"
20585 "     echo \"error: guestfish didn't start up, see error messages above\"\n"
20586 "     exit 1\n"
20587 " fi\n"
20588 " \n"
20589 msgstr ""
20590
20591 #. type: verbatim
20592 #: ../fish/guestfish.pod:999
20593 #, no-wrap
20594 msgid ""
20595 " cleanup_guestfish ()\n"
20596 " {\n"
20597 "     guestfish --remote -- exit >/dev/null 2>&1 ||:\n"
20598 " }\n"
20599 " trap cleanup_guestfish EXIT ERR\n"
20600 " \n"
20601 msgstr ""
20602
20603 #. type: verbatim
20604 #: ../fish/guestfish.pod:1005
20605 #, no-wrap
20606 msgid ""
20607 " guestfish --remote -- run\n"
20608 " \n"
20609 msgstr ""
20610
20611 #. type: verbatim
20612 #: ../fish/guestfish.pod:1007
20613 #, no-wrap
20614 msgid ""
20615 " # ...\n"
20616 "\n"
20617 msgstr ""
20618
20619 #. type: =head2
20620 #: ../fish/guestfish.pod:1009
20621 msgid "REMOTE CONTROL RUN COMMAND HANGING"
20622 msgstr ""
20623
20624 #. type: textblock
20625 #: ../fish/guestfish.pod:1011
20626 msgid ""
20627 "Using the C<run> (or C<launch>) command remotely in a command substitution "
20628 "context hangs, ie. don't do (note the backquotes):"
20629 msgstr ""
20630
20631 #. type: verbatim
20632 #: ../fish/guestfish.pod:1014
20633 #, no-wrap
20634 msgid ""
20635 " a=`guestfish --remote run`\n"
20636 "\n"
20637 msgstr ""
20638
20639 #. type: textblock
20640 #: ../fish/guestfish.pod:1016
20641 msgid ""
20642 "Since the C<run> command produces no output on stdout, this is not useful "
20643 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
20644 "cgi?id=592910>."
20645 msgstr ""
20646
20647 #. type: =head1
20648 #: ../fish/guestfish.pod:1020
20649 msgid "PREPARED DISK IMAGES"
20650 msgstr ""
20651
20652 #. type: textblock
20653 #: ../fish/guestfish.pod:1022
20654 msgid ""
20655 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
20656 "preformatted disk images that guestfish can make for you to save typing.  "
20657 "This is particularly useful for testing purposes.  This option is used "
20658 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
20659 "can be mixed with I<-a>)."
20660 msgstr ""
20661
20662 #. type: textblock
20663 #: ../fish/guestfish.pod:1028
20664 msgid ""
20665 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
20666 "the second and so on.  Existing files in the current directory are "
20667 "I<overwritten>."
20668 msgstr ""
20669
20670 #. type: textblock
20671 #: ../fish/guestfish.pod:1032
20672 msgid ""
20673 "The type briefly describes how the disk should be sized, partitioned, how "
20674 "filesystem(s) should be created, and how content should be added.  "
20675 "Optionally the type can be followed by extra parameters, separated by C<:> "
20676 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
20677 "allocated disk, containing a single partition, with the partition formatted "
20678 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
20679 "disk instead."
20680 msgstr ""
20681
20682 #. type: textblock
20683 #: ../fish/guestfish.pod:1040
20684 msgid "To list the available types and any extra parameters they take, run:"
20685 msgstr ""
20686
20687 #. type: textblock
20688 #: ../fish/guestfish.pod:1044
20689 msgid ""
20690 "Note that the prepared filesystem is not mounted.  You would usually have to "
20691 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
20692 msgstr ""
20693
20694 #. type: textblock
20695 #: ../fish/guestfish.pod:1048
20696 msgid ""
20697 "If any I<-N> or I<--new> options are given, the guest is automatically "
20698 "launched."
20699 msgstr ""
20700
20701 #. type: textblock
20702 #: ../fish/guestfish.pod:1053
20703 msgid "Create a 100MB disk with an ext4-formatted partition:"
20704 msgstr ""
20705
20706 #. type: verbatim
20707 #: ../fish/guestfish.pod:1055
20708 #, no-wrap
20709 msgid ""
20710 " guestfish -N fs:ext4\n"
20711 "\n"
20712 msgstr ""
20713
20714 #. type: textblock
20715 #: ../fish/guestfish.pod:1057
20716 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
20717 msgstr ""
20718
20719 #. type: verbatim
20720 #: ../fish/guestfish.pod:1059
20721 #, no-wrap
20722 msgid ""
20723 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
20724 "\n"
20725 msgstr ""
20726
20727 #. type: textblock
20728 #: ../fish/guestfish.pod:1061
20729 msgid "Create a blank 200MB disk:"
20730 msgstr ""
20731
20732 #. type: verbatim
20733 #: ../fish/guestfish.pod:1063
20734 #, no-wrap
20735 msgid ""
20736 " guestfish -N disk:200M\n"
20737 "\n"
20738 msgstr ""
20739
20740 #. type: =head1
20741 #: ../fish/guestfish.pod:1065
20742 msgid "PROGRESS BARS"
20743 msgstr ""
20744
20745 #. type: textblock
20746 #: ../fish/guestfish.pod:1067
20747 msgid ""
20748 "Some (not all) long-running commands send progress notification messages as "
20749 "they are running.  Guestfish turns these messages into progress bars."
20750 msgstr ""
20751
20752 #. type: textblock
20753 #: ../fish/guestfish.pod:1071
20754 msgid ""
20755 "When a command that supports progress bars takes longer than two seconds to "
20756 "run, and if progress bars are enabled, then you will see one appearing below "
20757 "the command:"
20758 msgstr ""
20759
20760 #. type: verbatim
20761 #: ../fish/guestfish.pod:1075
20762 #, no-wrap
20763 msgid ""
20764 " ><fs> copy-size /large-file /another-file 2048M\n"
20765 " / 10% [#####-----------------------------------------] 00:30\n"
20766 "\n"
20767 msgstr ""
20768
20769 #. type: textblock
20770 #: ../fish/guestfish.pod:1078
20771 msgid ""
20772 "The spinner on the left hand side moves round once for every progress "
20773 "notification received from the backend.  This is a (reasonably) golden "
20774 "assurance that the command is \"doing something\" even if the progress bar "
20775 "is not moving, because the command is able to send the progress "
20776 "notifications.  When the bar reaches 100% and the command finishes, the "
20777 "spinner disappears."
20778 msgstr ""
20779
20780 #. type: textblock
20781 #: ../fish/guestfish.pod:1085
20782 msgid ""
20783 "Progress bars are enabled by default when guestfish is used interactively.  "
20784 "You can enable them even for non-interactive modes using I<--progress-bars>, "
20785 "and you can disable them completely using I<--no-progress-bars>."
20786 msgstr ""
20787
20788 #. type: =head1
20789 #: ../fish/guestfish.pod:1090
20790 msgid "GUESTFISH COMMANDS"
20791 msgstr ""
20792
20793 #. type: textblock
20794 #: ../fish/guestfish.pod:1092
20795 msgid ""
20796 "The commands in this section are guestfish convenience commands, in other "
20797 "words, they are not part of the L<guestfs(3)> API."
20798 msgstr ""
20799
20800 #. type: =head2
20801 #: ../fish/guestfish.pod:1095
20802 msgid "help"
20803 msgstr "help"
20804
20805 #. type: verbatim
20806 #: ../fish/guestfish.pod:1097
20807 #, no-wrap
20808 msgid ""
20809 " help\n"
20810 " help cmd\n"
20811 "\n"
20812 msgstr ""
20813 " help\n"
20814 " help команда\n"
20815 "\n"
20816
20817 #. type: textblock
20818 #: ../fish/guestfish.pod:1100
20819 msgid "Without any parameter, this provides general help."
20820 msgstr "Без параметра показує загальну довідкову інформацію."
20821
20822 #. type: textblock
20823 #: ../fish/guestfish.pod:1102
20824 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20825 msgstr ""
20826
20827 #. type: =head2
20828 #: ../fish/guestfish.pod:1104
20829 msgid "quit | exit"
20830 msgstr ""
20831
20832 #. type: textblock
20833 #: ../fish/guestfish.pod:1106
20834 msgid "This exits guestfish.  You can also use C<^D> key."
20835 msgstr ""
20836
20837 #. type: textblock
20838 #: ../fish/guestfish.pod:1108
20839 msgid "@FISH_COMMANDS@"
20840 msgstr ""
20841
20842 #. type: =head1
20843 #: ../fish/guestfish.pod:1110
20844 msgid "COMMANDS"
20845 msgstr "КОМАНДИ"
20846
20847 #. type: textblock
20848 #: ../fish/guestfish.pod:1112 ../src/guestfs.pod:1505
20849 msgid "@ACTIONS@"
20850 msgstr "@ACTIONS@"
20851
20852 #. type: textblock
20853 #: ../fish/guestfish.pod:1116
20854 msgid ""
20855 "guestfish returns 0 if the commands completed without error, or 1 if there "
20856 "was an error."
20857 msgstr ""
20858
20859 #. type: =item
20860 #: ../fish/guestfish.pod:1123
20861 msgid "EDITOR"
20862 msgstr "РЕДАКТОР"
20863
20864 #. type: textblock
20865 #: ../fish/guestfish.pod:1125
20866 msgid ""
20867 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
20868 "C<vi>."
20869 msgstr ""
20870
20871 #. type: =item
20872 #: ../fish/guestfish.pod:1128 ../src/guestfs.pod:3198
20873 msgid "FEBOOTSTRAP_KERNEL"
20874 msgstr ""
20875
20876 #. type: =item
20877 #: ../fish/guestfish.pod:1130 ../src/guestfs.pod:3200
20878 msgid "FEBOOTSTRAP_MODULES"
20879 msgstr ""
20880
20881 #. type: textblock
20882 #: ../fish/guestfish.pod:1132 ../src/guestfs.pod:3202
20883 msgid ""
20884 "These two environment variables allow the kernel that libguestfs uses in the "
20885 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20886 "most recent host kernel is chosen.  For more information about kernel "
20887 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
20888 "available in febootstrap E<ge> 3.8."
20889 msgstr ""
20890
20891 #. type: =item
20892 #: ../fish/guestfish.pod:1138
20893 msgid "GUESTFISH_DISPLAY_IMAGE"
20894 msgstr ""
20895
20896 #. type: textblock
20897 #: ../fish/guestfish.pod:1140
20898 msgid ""
20899 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
20900 "If not set, it uses L<display(1)>."
20901 msgstr ""
20902
20903 #. type: =item
20904 #: ../fish/guestfish.pod:1143
20905 msgid "GUESTFISH_PID"
20906 msgstr ""
20907
20908 #. type: textblock
20909 #: ../fish/guestfish.pod:1145
20910 msgid ""
20911 "Used with the I<--remote> option to specify the remote guestfish process to "
20912 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20913 msgstr ""
20914
20915 #. type: =item
20916 #: ../fish/guestfish.pod:1149
20917 msgid "HEXEDITOR"
20918 msgstr ""
20919
20920 #. type: textblock
20921 #: ../fish/guestfish.pod:1151
20922 msgid ""
20923 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
20924 "not specified, the external L<hexedit(1)> program is used."
20925 msgstr ""
20926
20927 #. type: =item
20928 #: ../fish/guestfish.pod:1155
20929 msgid "HOME"
20930 msgstr "ДОМІВКА"
20931
20932 #. type: textblock
20933 #: ../fish/guestfish.pod:1157
20934 msgid ""
20935 "If compiled with GNU readline support, various files in the home directory "
20936 "can be used.  See L</FILES>."
20937 msgstr ""
20938
20939 #. type: =item
20940 #: ../fish/guestfish.pod:1160 ../src/guestfs.pod:3208
20941 msgid "LIBGUESTFS_APPEND"
20942 msgstr ""
20943
20944 #. type: textblock
20945 #: ../fish/guestfish.pod:1162 ../src/guestfs.pod:3210
20946 msgid "Pass additional options to the guest kernel."
20947 msgstr ""
20948
20949 #. type: =item
20950 #: ../fish/guestfish.pod:1164 ../src/guestfs.pod:3212
20951 msgid "LIBGUESTFS_DEBUG"
20952 msgstr "LIBGUESTFS_DEBUG"
20953
20954 #. type: textblock
20955 #: ../fish/guestfish.pod:1166
20956 msgid ""
20957 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
20958 "effect as using the B<-v> option."
20959 msgstr ""
20960
20961 #. type: =item
20962 #: ../fish/guestfish.pod:1169 ../src/guestfs.pod:3217
20963 msgid "LIBGUESTFS_MEMSIZE"
20964 msgstr "LIBGUESTFS_MEMSIZE"
20965
20966 #. type: textblock
20967 #: ../fish/guestfish.pod:1171 ../src/guestfs.pod:3219
20968 msgid ""
20969 "Set the memory allocated to the qemu process, in megabytes.  For example:"
20970 msgstr ""
20971
20972 #. type: verbatim
20973 #: ../fish/guestfish.pod:1174 ../src/guestfs.pod:3222
20974 #, no-wrap
20975 msgid ""
20976 " LIBGUESTFS_MEMSIZE=700\n"
20977 "\n"
20978 msgstr ""
20979 " LIBGUESTFS_MEMSIZE=700\n"
20980 "\n"
20981
20982 #. type: =item
20983 #: ../fish/guestfish.pod:1176 ../src/guestfs.pod:3224
20984 msgid "LIBGUESTFS_PATH"
20985 msgstr ""
20986
20987 #. type: textblock
20988 #: ../fish/guestfish.pod:1178
20989 msgid ""
20990 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
20991 "the discussion of paths in L<guestfs(3)>."
20992 msgstr ""
20993
20994 #. type: =item
20995 #: ../fish/guestfish.pod:1181 ../src/guestfs.pod:3229
20996 msgid "LIBGUESTFS_QEMU"
20997 msgstr ""
20998
20999 #. type: textblock
21000 #: ../fish/guestfish.pod:1183 ../src/guestfs.pod:3231
21001 msgid ""
21002 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
21003 "which was found at compile time by the configure script is used."
21004 msgstr ""
21005
21006 #. type: =item
21007 #: ../fish/guestfish.pod:1187 ../src/guestfs.pod:3237
21008 msgid "LIBGUESTFS_TRACE"
21009 msgstr ""
21010
21011 #. type: textblock
21012 #: ../fish/guestfish.pod:1189
21013 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
21014 msgstr ""
21015
21016 #. type: =item
21017 #: ../fish/guestfish.pod:1191
21018 msgid "PAGER"
21019 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
21020
21021 #. type: textblock
21022 #: ../fish/guestfish.pod:1193
21023 msgid ""
21024 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
21025 "C<more>."
21026 msgstr ""
21027
21028 #. type: =item
21029 #: ../fish/guestfish.pod:1196 ../sparsify/virt-sparsify.pod:236
21030 #: ../src/guestfs.pod:3242
21031 msgid "TMPDIR"
21032 msgstr ""
21033
21034 #. type: textblock
21035 #: ../fish/guestfish.pod:1198 ../src/guestfs.pod:3244
21036 msgid ""
21037 "Location of temporary directory, defaults to C</tmp> except for the cached "
21038 "supermin appliance which defaults to C</var/tmp>."
21039 msgstr ""
21040
21041 #. type: textblock
21042 #: ../fish/guestfish.pod:1201 ../src/guestfs.pod:3247
21043 msgid ""
21044 "If libguestfs was compiled to use the supermin appliance then the real "
21045 "appliance is cached in this directory, shared between all handles belonging "
21046 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
21047 "use in case C</var/tmp> is not large enough."
21048 msgstr ""
21049
21050 #. type: =head1
21051 #: ../fish/guestfish.pod:1209 ../fuse/guestmount.pod:297
21052 #: ../rescue/virt-rescue.pod:273
21053 msgid "FILES"
21054 msgstr "ФАЙЛИ"
21055
21056 #. type: =item
21057 #: ../fish/guestfish.pod:1213 ../fuse/guestmount.pod:301
21058 #: ../rescue/virt-rescue.pod:277
21059 msgid "$HOME/.libguestfs-tools.rc"
21060 msgstr ""
21061
21062 #. type: =item
21063 #: ../fish/guestfish.pod:1215 ../fuse/guestmount.pod:303
21064 #: ../rescue/virt-rescue.pod:279
21065 msgid "/etc/libguestfs-tools.conf"
21066 msgstr ""
21067
21068 #. type: textblock
21069 #: ../fish/guestfish.pod:1217 ../fuse/guestmount.pod:305
21070 #: ../rescue/virt-rescue.pod:281
21071 msgid ""
21072 "This configuration file controls the default read-only or read-write mode "
21073 "(I<--ro> or I<--rw>)."
21074 msgstr ""
21075
21076 #. type: textblock
21077 #: ../fish/guestfish.pod:1220
21078 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
21079 msgstr "Див. L</OPENING DISKS FOR READ AND WRITE>."
21080
21081 #. type: =item
21082 #: ../fish/guestfish.pod:1222
21083 msgid "$HOME/.guestfish"
21084 msgstr ""
21085
21086 #. type: textblock
21087 #: ../fish/guestfish.pod:1224
21088 msgid ""
21089 "If compiled with GNU readline support, then the command history is saved in "
21090 "this file."
21091 msgstr ""
21092
21093 #. type: =item
21094 #: ../fish/guestfish.pod:1227
21095 msgid "$HOME/.inputrc"
21096 msgstr ""
21097
21098 #. type: =item
21099 #: ../fish/guestfish.pod:1229
21100 msgid "/etc/inputrc"
21101 msgstr ""
21102
21103 #. type: textblock
21104 #: ../fish/guestfish.pod:1231
21105 msgid ""
21106 "If compiled with GNU readline support, then these files can be used to "
21107 "configure readline.  For further information, please see L<readline(3)/"
21108 "INITIALIZATION FILE>."
21109 msgstr ""
21110
21111 #. type: textblock
21112 #: ../fish/guestfish.pod:1235
21113 msgid "To write rules which only apply to guestfish, use:"
21114 msgstr ""
21115
21116 #. type: verbatim
21117 #: ../fish/guestfish.pod:1237
21118 #, no-wrap
21119 msgid ""
21120 " $if guestfish\n"
21121 " ...\n"
21122 " $endif\n"
21123 "\n"
21124 msgstr ""
21125
21126 #. type: textblock
21127 #: ../fish/guestfish.pod:1241
21128 msgid ""
21129 "Variables that you can set in inputrc that change the behaviour of guestfish "
21130 "in useful ways include:"
21131 msgstr ""
21132
21133 #. type: =item
21134 #: ../fish/guestfish.pod:1246
21135 msgid "completion-ignore-case (default: on)"
21136 msgstr ""
21137
21138 #. type: textblock
21139 #: ../fish/guestfish.pod:1248
21140 msgid ""
21141 "By default, guestfish will ignore case when tab-completing paths on the "
21142 "disk.  Use:"
21143 msgstr ""
21144
21145 #. type: verbatim
21146 #: ../fish/guestfish.pod:1251
21147 #, no-wrap
21148 msgid ""
21149 " set completion-ignore-case off\n"
21150 "\n"
21151 msgstr ""
21152
21153 #. type: textblock
21154 #: ../fish/guestfish.pod:1253
21155 msgid "to make guestfish case sensitive."
21156 msgstr ""
21157
21158 #. type: =item
21159 #: ../fish/guestfish.pod:1257
21160 msgid "test1.img"
21161 msgstr ""
21162
21163 #. type: =item
21164 #: ../fish/guestfish.pod:1259
21165 msgid "test2.img (etc)"
21166 msgstr ""
21167
21168 #. type: textblock
21169 #: ../fish/guestfish.pod:1261
21170 msgid ""
21171 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
21172 "will be created in the file C<test1.img> in the current directory.  The "
21173 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
21174 "the same name will be overwritten."
21175 msgstr ""
21176
21177 #. type: textblock
21178 #: ../fish/guestfish.pod:1270
21179 msgid ""
21180 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
21181 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
21182 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
21183 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
21184 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, "
21185 "L<virt-tar(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, "
21186 "L<display(1)>, L<hexedit(1)>, L<febootstrap-supermin-helper(8)>."
21187 msgstr ""
21188
21189 #. type: textblock
21190 #: ../fish/guestfish.pod:1302 ../src/guestfs.pod:3339
21191 #: ../test-tool/libguestfs-test-tool.pod:112
21192 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
21193 msgstr ""
21194
21195 #. type: textblock
21196 #: ../fish/virt-copy-in.pod:5
21197 msgid ""
21198 "virt-copy-in - Copy files and directories into a virtual machine disk image."
21199 msgstr ""
21200
21201 #. type: verbatim
21202 #: ../fish/virt-copy-in.pod:9
21203 #, no-wrap
21204 msgid ""
21205 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
21206 "\n"
21207 msgstr ""
21208
21209 #. type: verbatim
21210 #: ../fish/virt-copy-in.pod:11
21211 #, no-wrap
21212 msgid ""
21213 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
21214 "\n"
21215 msgstr ""
21216
21217 #. type: textblock
21218 #: ../fish/virt-copy-in.pod:15
21219 msgid ""
21220 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
21221 "causing disk corruption.  The virtual machine must be shut down before you "
21222 "use this command."
21223 msgstr ""
21224
21225 #. type: textblock
21226 #: ../fish/virt-copy-in.pod:21
21227 msgid ""
21228 "C<virt-copy-in> copies files and directories from the local disk into a "
21229 "virtual machine disk image or named libvirt domain."
21230 msgstr ""
21231
21232 #. type: textblock
21233 #: ../fish/virt-copy-in.pod:24
21234 msgid ""
21235 "You can give one of more filenames and directories on the command line.  "
21236 "Directories are copied in recursively.  The final parameter must be the "
21237 "destination directory in the disk image which must be an absolute path "
21238 "starting with a C</> character."
21239 msgstr ""
21240
21241 #. type: verbatim
21242 #: ../fish/virt-copy-in.pod:33
21243 #, no-wrap
21244 msgid ""
21245 " virt-copy-in -d MyGuest resolv.conf /etc\n"
21246 "\n"
21247 msgstr ""
21248
21249 #. type: textblock
21250 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
21251 msgid "Upload a home directory to a guest:"
21252 msgstr ""
21253
21254 #. type: verbatim
21255 #: ../fish/virt-copy-in.pod:37
21256 #, no-wrap
21257 msgid ""
21258 " virt-copy-in -d MyGuest skel /home\n"
21259 "\n"
21260 msgstr ""
21261
21262 #. type: =head1
21263 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
21264 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
21265 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
21266 msgstr ""
21267
21268 #. type: textblock
21269 #: ../fish/virt-copy-in.pod:41
21270 msgid ""
21271 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21272 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
21273 "are probably better off using guestfish directly."
21274 msgstr ""
21275
21276 #. type: textblock
21277 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
21278 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
21279 msgid ""
21280 "Since the shell script just passes options straight to guestfish, read "
21281 "L<guestfish(1)> to see the full list of options."
21282 msgstr ""
21283
21284 #. type: textblock
21285 #: ../fish/virt-copy-in.pod:52
21286 msgid ""
21287 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
21288 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21289 msgstr ""
21290
21291 #. type: textblock
21292 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
21293 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
21294 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
21295 msgstr ""
21296
21297 #. type: textblock
21298 #: ../fish/virt-copy-out.pod:5
21299 msgid ""
21300 "virt-copy-out - Copy files and directories out of a virtual machine disk "
21301 "image."
21302 msgstr ""
21303
21304 #. type: verbatim
21305 #: ../fish/virt-copy-out.pod:9
21306 #, no-wrap
21307 msgid ""
21308 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
21309 "\n"
21310 msgstr ""
21311
21312 #. type: verbatim
21313 #: ../fish/virt-copy-out.pod:11
21314 #, no-wrap
21315 msgid ""
21316 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
21317 "\n"
21318 msgstr ""
21319
21320 #. type: textblock
21321 #: ../fish/virt-copy-out.pod:15
21322 msgid ""
21323 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
21324 "image or named libvirt domain."
21325 msgstr ""
21326
21327 #. type: textblock
21328 #: ../fish/virt-copy-out.pod:18
21329 msgid ""
21330 "You can give one of more filenames and directories on the command line.  "
21331 "Directories are copied out recursively."
21332 msgstr ""
21333
21334 #. type: textblock
21335 #: ../fish/virt-copy-out.pod:23
21336 msgid "Download the home directories from a virtual machine:"
21337 msgstr ""
21338
21339 #. type: verbatim
21340 #: ../fish/virt-copy-out.pod:25
21341 #, no-wrap
21342 msgid ""
21343 " mkdir homes\n"
21344 " virt-copy-out -d MyGuest /home homes\n"
21345 "\n"
21346 msgstr ""
21347
21348 #. type: textblock
21349 #: ../fish/virt-copy-out.pod:30
21350 msgid ""
21351 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21352 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
21353 "are probably better off using guestfish directly."
21354 msgstr ""
21355
21356 #. type: textblock
21357 #: ../fish/virt-copy-out.pod:41
21358 msgid ""
21359 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
21360 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
21361 msgstr ""
21362
21363 #. type: textblock
21364 #: ../fish/virt-tar-in.pod:5
21365 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
21366 msgstr ""
21367
21368 #. type: verbatim
21369 #: ../fish/virt-tar-in.pod:9
21370 #, no-wrap
21371 msgid ""
21372 " virt-tar-in -a disk.img data.tar /destination\n"
21373 "\n"
21374 msgstr ""
21375
21376 #. type: verbatim
21377 #: ../fish/virt-tar-in.pod:11
21378 #, no-wrap
21379 msgid ""
21380 " virt-tar-in -d domain data.tar /destination\n"
21381 "\n"
21382 msgstr ""
21383
21384 #. type: verbatim
21385 #: ../fish/virt-tar-in.pod:13
21386 #, no-wrap
21387 msgid ""
21388 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
21389 "\n"
21390 msgstr ""
21391
21392 #. type: textblock
21393 #: ../fish/virt-tar-in.pod:17
21394 msgid ""
21395 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
21396 "causing disk corruption.  The virtual machine must be shut down before you "
21397 "use this command."
21398 msgstr ""
21399
21400 #. type: textblock
21401 #: ../fish/virt-tar-in.pod:23
21402 msgid ""
21403 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
21404 "image or named libvirt domain."
21405 msgstr ""
21406
21407 #. type: textblock
21408 #: ../fish/virt-tar-in.pod:26
21409 msgid ""
21410 "The first parameter is the tar file.  Use C<-> to read the tar file from "
21411 "standard input.  The second parameter is the absolute target directory to "
21412 "unpack into."
21413 msgstr ""
21414
21415 #. type: verbatim
21416 #: ../fish/virt-tar-in.pod:34
21417 #, no-wrap
21418 msgid ""
21419 " virt-tar-in -d MyGuest homes.tar /home\n"
21420 "\n"
21421 msgstr ""
21422
21423 #. type: textblock
21424 #: ../fish/virt-tar-in.pod:38
21425 msgid ""
21426 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21427 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
21428 "probably better off using guestfish directly."
21429 msgstr ""
21430
21431 #. type: textblock
21432 #: ../fish/virt-tar-in.pod:49
21433 msgid ""
21434 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21435 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
21436 "org/>."
21437 msgstr ""
21438
21439 #. type: textblock
21440 #: ../fish/virt-tar-out.pod:5
21441 msgid ""
21442 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
21443 msgstr ""
21444
21445 #. type: verbatim
21446 #: ../fish/virt-tar-out.pod:9
21447 #, no-wrap
21448 msgid ""
21449 " virt-tar-out -a disk.img /dir files.tar\n"
21450 "\n"
21451 msgstr ""
21452
21453 #. type: verbatim
21454 #: ../fish/virt-tar-out.pod:11
21455 #, no-wrap
21456 msgid ""
21457 " virt-tar-out -d domain /dir files.tar\n"
21458 "\n"
21459 msgstr ""
21460
21461 #. type: verbatim
21462 #: ../fish/virt-tar-out.pod:13
21463 #, no-wrap
21464 msgid ""
21465 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
21466 "\n"
21467 msgstr ""
21468
21469 #. type: textblock
21470 #: ../fish/virt-tar-out.pod:17
21471 msgid ""
21472 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
21473 msgstr ""
21474
21475 #. type: textblock
21476 #: ../fish/virt-tar-out.pod:20
21477 msgid ""
21478 "The first parameter is the absolute path of the virtual machine directory.  "
21479 "The second parameter is the tar file to write.  Use C<-> to write to "
21480 "standard output."
21481 msgstr ""
21482
21483 #. type: textblock
21484 #: ../fish/virt-tar-out.pod:26
21485 msgid "Download the home directories from a guest:"
21486 msgstr ""
21487
21488 #. type: verbatim
21489 #: ../fish/virt-tar-out.pod:28
21490 #, no-wrap
21491 msgid ""
21492 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
21493 "\n"
21494 msgstr ""
21495
21496 #. type: textblock
21497 #: ../fish/virt-tar-out.pod:32
21498 msgid ""
21499 "This command is just a simple shell script wrapper around the L<guestfish(1)"
21500 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
21501 "are probably better off using guestfish directly."
21502 msgstr ""
21503
21504 #. type: textblock
21505 #: ../fish/virt-tar-out.pod:43
21506 msgid ""
21507 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
21508 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
21509 msgstr ""
21510
21511 #. type: textblock
21512 #: ../fuse/guestmount.pod:5
21513 msgid ""
21514 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
21515 msgstr ""
21516
21517 #. type: verbatim
21518 #: ../fuse/guestmount.pod:9
21519 #, no-wrap
21520 msgid ""
21521 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
21522 "\n"
21523 msgstr ""
21524
21525 #. type: verbatim
21526 #: ../fuse/guestmount.pod:11
21527 #, no-wrap
21528 msgid ""
21529 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
21530 "\n"
21531 msgstr ""
21532
21533 #. type: verbatim
21534 #: ../fuse/guestmount.pod:13
21535 #, no-wrap
21536 msgid ""
21537 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
21538 "\n"
21539 msgstr ""
21540
21541 #. type: textblock
21542 #: ../fuse/guestmount.pod:17
21543 msgid ""
21544 "You must I<not> use C<guestmount> in read-write mode on live virtual "
21545 "machines.  If you do this, you risk disk corruption in the VM."
21546 msgstr ""
21547
21548 #. type: textblock
21549 #: ../fuse/guestmount.pod:22
21550 msgid ""
21551 "The guestmount program can be used to mount virtual machine filesystems and "
21552 "other disk images on the host.  It uses libguestfs for access to the guest "
21553 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
21554 "a mountable device."
21555 msgstr ""
21556
21557 #. type: textblock
21558 #: ../fuse/guestmount.pod:27
21559 msgid ""
21560 "Along with other options, you have to give at least one device (I<-a> "
21561 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
21562 "option) or use the I<-i> inspection option.  How this works is better "
21563 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
21564 "below."
21565 msgstr ""
21566
21567 #. type: textblock
21568 #: ../fuse/guestmount.pod:33
21569 msgid ""
21570 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
21571 "by you, and the filesystem will not be visible to any other users unless you "
21572 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
21573 "the filesystem, use the C<fusermount -u> command."
21574 msgstr ""
21575
21576 #. type: textblock
21577 #: ../fuse/guestmount.pod:41
21578 msgid ""
21579 "For a typical Windows guest which has its main filesystem on the first "
21580 "partition:"
21581 msgstr ""
21582
21583 #. type: verbatim
21584 #: ../fuse/guestmount.pod:44
21585 #, no-wrap
21586 msgid ""
21587 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
21588 "\n"
21589 msgstr ""
21590
21591 #. type: textblock
21592 #: ../fuse/guestmount.pod:46
21593 msgid ""
21594 "For a typical Linux guest which has a /boot filesystem on the first "
21595 "partition, and the root filesystem on a logical volume:"
21596 msgstr ""
21597
21598 #. type: verbatim
21599 #: ../fuse/guestmount.pod:49
21600 #, no-wrap
21601 msgid ""
21602 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
21603 "\n"
21604 msgstr ""
21605
21606 #. type: textblock
21607 #: ../fuse/guestmount.pod:51
21608 msgid "To get libguestfs to detect guest mountpoints for you:"
21609 msgstr ""
21610
21611 #. type: verbatim
21612 #: ../fuse/guestmount.pod:53
21613 #, no-wrap
21614 msgid ""
21615 " guestmount -a guest.img -i --ro /mnt\n"
21616 "\n"
21617 msgstr ""
21618
21619 #. type: textblock
21620 #: ../fuse/guestmount.pod:55
21621 msgid "For a libvirt guest called \"Guest\" you could do:"
21622 msgstr ""
21623
21624 #. type: verbatim
21625 #: ../fuse/guestmount.pod:57
21626 #, no-wrap
21627 msgid ""
21628 " guestmount -d Guest -i --ro /mnt\n"
21629 "\n"
21630 msgstr ""
21631
21632 #. type: textblock
21633 #: ../fuse/guestmount.pod:59
21634 msgid ""
21635 "If you don't know what filesystems are contained in a guest or disk image, "
21636 "use L<virt-filesystems(1)> first:"
21637 msgstr ""
21638
21639 #. type: verbatim
21640 #: ../fuse/guestmount.pod:62
21641 #, no-wrap
21642 msgid ""
21643 " virt-filesystems MyGuest\n"
21644 "\n"
21645 msgstr ""
21646
21647 #. type: textblock
21648 #: ../fuse/guestmount.pod:64
21649 msgid ""
21650 "If you want to trace the libguestfs calls but without excessive debugging "
21651 "information, we recommend:"
21652 msgstr ""
21653
21654 #. type: verbatim
21655 #: ../fuse/guestmount.pod:67
21656 #, no-wrap
21657 msgid ""
21658 " guestmount [...] --trace /mnt\n"
21659 "\n"
21660 msgstr ""
21661
21662 #. type: textblock
21663 #: ../fuse/guestmount.pod:69
21664 msgid "If you want to debug the program, we recommend:"
21665 msgstr ""
21666
21667 #. type: verbatim
21668 #: ../fuse/guestmount.pod:71
21669 #, no-wrap
21670 msgid ""
21671 " guestmount [...] --trace --verbose /mnt\n"
21672 "\n"
21673 msgstr ""
21674
21675 #. type: =head1
21676 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
21677 #: ../resize/virt-resize.pod:600
21678 msgid "NOTES"
21679 msgstr "ПРИМІТКИ"
21680
21681 #. type: =head2
21682 #: ../fuse/guestmount.pod:75
21683 msgid "Other users cannot see the filesystem by default"
21684 msgstr ""
21685
21686 #. type: textblock
21687 #: ../fuse/guestmount.pod:77
21688 msgid ""
21689 "If you mount a filesystem as one user (eg. root), then other users will not "
21690 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
21691 "option when mounting:"
21692 msgstr ""
21693
21694 #. type: verbatim
21695 #: ../fuse/guestmount.pod:81
21696 #, no-wrap
21697 msgid ""
21698 " sudo guestmount [...] -o allow_other /mnt\n"
21699 "\n"
21700 msgstr ""
21701
21702 #. type: =head2
21703 #: ../fuse/guestmount.pod:83
21704 msgid "Enabling FUSE"
21705 msgstr ""
21706
21707 #. type: textblock
21708 #: ../fuse/guestmount.pod:85
21709 msgid ""
21710 "On some distros, you may need to add yourself to a special group (eg. "
21711 "C<fuse>) before you can use any FUSE filesystem.  This is necessary on "
21712 "Debian and derivatives."
21713 msgstr ""
21714
21715 #. type: textblock
21716 #: ../fuse/guestmount.pod:89
21717 msgid ""
21718 "On other distros, no special group is required.  It is not necessary on "
21719 "Fedora or Red Hat Enterprise Linux."
21720 msgstr ""
21721
21722 #. type: textblock
21723 #: ../fuse/guestmount.pod:100
21724 msgid "Add a block device or virtual machine image."
21725 msgstr ""
21726
21727 #. type: =item
21728 #: ../fuse/guestmount.pod:123
21729 msgid "B<--dir-cache-timeout N>"
21730 msgstr "B<--dir-cache-timeout N>"
21731
21732 #. type: textblock
21733 #: ../fuse/guestmount.pod:125
21734 msgid ""
21735 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
21736 "seconds.  The readdir cache [actually, there are several semi-independent "
21737 "caches] is populated after a readdir(2) call with the stat and extended "
21738 "attributes of the files in the directory, in anticipation that they will be "
21739 "requested soon after."
21740 msgstr ""
21741
21742 #. type: textblock
21743 #: ../fuse/guestmount.pod:131
21744 msgid ""
21745 "There is also a different attribute cache implemented by FUSE (see the FUSE "
21746 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
21747 "requests, only cache existing ones."
21748 msgstr ""
21749
21750 #. type: textblock
21751 #: ../fuse/guestmount.pod:151
21752 msgid ""
21753 "If you have untrusted raw-format guest disk images, you should use this "
21754 "option to specify the disk format.  This avoids a possible security problem "
21755 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
21756 "guestfs_add_drive_opts>."
21757 msgstr ""
21758
21759 #. type: =item
21760 #: ../fuse/guestmount.pod:156
21761 msgid "B<--fuse-help>"
21762 msgstr "B<--fuse-help>"
21763
21764 #. type: textblock
21765 #: ../fuse/guestmount.pod:158
21766 msgid "Display help on special FUSE options (see I<-o> below)."
21767 msgstr ""
21768
21769 #. type: textblock
21770 #: ../fuse/guestmount.pod:162
21771 msgid "Display brief help and exit."
21772 msgstr ""
21773
21774 #. type: textblock
21775 #: ../fuse/guestmount.pod:186
21776 msgid ""
21777 "Mount the named partition or logical volume on the given mountpoint B<in the "
21778 "guest> (this has nothing to do with mountpoints in the host)."
21779 msgstr ""
21780
21781 #. type: textblock
21782 #: ../fuse/guestmount.pod:189
21783 msgid ""
21784 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21785 "something on C</>."
21786 msgstr ""
21787
21788 #. type: textblock
21789 #: ../fuse/guestmount.pod:206
21790 msgid ""
21791 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21792 "unmounted.  If you specify this option, then we don't attempt to sync the "
21793 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21794 msgstr ""
21795
21796 #. type: =item
21797 #: ../fuse/guestmount.pod:211
21798 msgid "B<-o option>"
21799 msgstr "B<-o параметр>"
21800
21801 #. type: =item
21802 #: ../fuse/guestmount.pod:213
21803 msgid "B<--option option>"
21804 msgstr "B<--option параметр>"
21805
21806 #. type: textblock
21807 #: ../fuse/guestmount.pod:215
21808 msgid "Pass extra options to FUSE."
21809 msgstr ""
21810
21811 #. type: textblock
21812 #: ../fuse/guestmount.pod:217
21813 msgid ""
21814 "To get a list of all the extra options supported by FUSE, use the command "
21815 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
21816 "of them are a good idea."
21817 msgstr ""
21818
21819 #. type: verbatim
21820 #: ../fuse/guestmount.pod:221
21821 #, no-wrap
21822 msgid ""
21823 " guestmount --fuse-help\n"
21824 "\n"
21825 msgstr ""
21826
21827 #. type: textblock
21828 #: ../fuse/guestmount.pod:223
21829 msgid "Some potentially useful FUSE options:"
21830 msgstr ""
21831
21832 #. type: =item
21833 #: ../fuse/guestmount.pod:227
21834 msgid "B<-o allow_other>"
21835 msgstr ""
21836
21837 #. type: textblock
21838 #: ../fuse/guestmount.pod:229
21839 msgid "Allow other users to see the filesystem."
21840 msgstr ""
21841
21842 #. type: =item
21843 #: ../fuse/guestmount.pod:231
21844 msgid "B<-o attr_timeout=N>"
21845 msgstr "B<-o attr_timeout=N>"
21846
21847 #. type: textblock
21848 #: ../fuse/guestmount.pod:233
21849 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21850 msgstr ""
21851
21852 #. type: =item
21853 #: ../fuse/guestmount.pod:235
21854 msgid "B<-o kernel_cache>"
21855 msgstr ""
21856
21857 #. type: textblock
21858 #: ../fuse/guestmount.pod:237
21859 msgid ""
21860 "Allow the kernel to cache files (reduces the number of reads that have to go "
21861 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
21862 "afford the extra memory usage."
21863 msgstr ""
21864
21865 #. type: =item
21866 #: ../fuse/guestmount.pod:241
21867 msgid "B<-o uid=N> B<-o gid=N>"
21868 msgstr "B<-o uid=N> B<-o gid=N>"
21869
21870 #. type: textblock
21871 #: ../fuse/guestmount.pod:243
21872 msgid ""
21873 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21874 "the chosen values."
21875 msgstr ""
21876
21877 #. type: textblock
21878 #: ../fuse/guestmount.pod:252
21879 msgid ""
21880 "Add devices and mount everything read-only.  Also disallow writes and make "
21881 "the disk appear read-only to FUSE."
21882 msgstr ""
21883
21884 #. type: textblock
21885 #: ../fuse/guestmount.pod:255
21886 msgid ""
21887 "This is highly recommended if you are not going to edit the guest disk.  If "
21888 "the guest is running and this option is I<not> supplied, then there is a "
21889 "strong risk of disk corruption in the guest.  We try to prevent this from "
21890 "happening, but it is not always possible."
21891 msgstr ""
21892
21893 #. type: textblock
21894 #: ../fuse/guestmount.pod:260 ../rescue/virt-rescue.pod:171
21895 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21896 msgstr "Див. також L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21897
21898 #. type: textblock
21899 #: ../fuse/guestmount.pod:264
21900 msgid "Enable SELinux support for the guest."
21901 msgstr ""
21902
21903 #. type: textblock
21904 #: ../fuse/guestmount.pod:270
21905 msgid "Enable verbose messages from underlying libguestfs."
21906 msgstr ""
21907
21908 #. type: textblock
21909 #: ../fuse/guestmount.pod:276
21910 msgid "Display the program version and exit."
21911 msgstr ""
21912
21913 #. type: textblock
21914 #: ../fuse/guestmount.pod:285 ../fuse/guestmount.pod:308
21915 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
21916 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21917 msgstr "Див. L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21918
21919 #. type: =item
21920 #: ../fuse/guestmount.pod:289
21921 msgid "B<--trace>"
21922 msgstr "B<--trace>"
21923
21924 #. type: textblock
21925 #: ../fuse/guestmount.pod:291
21926 msgid "Trace libguestfs calls and entry into each FUSE function."
21927 msgstr ""
21928
21929 #. type: textblock
21930 #: ../fuse/guestmount.pod:293
21931 msgid "This also stops the daemon from forking into the background."
21932 msgstr ""
21933
21934 #. type: textblock
21935 #: ../fuse/guestmount.pod:319
21936 msgid ""
21937 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21938 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21939 "net/>."
21940 msgstr ""
21941 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21942 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21943 "net/>."
21944
21945 #. type: textblock
21946 #: ../fuse/guestmount.pod:334
21947 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
21948 msgstr ""
21949
21950 #. type: textblock
21951 #: ../inspector/virt-inspector.pod:5
21952 msgid ""
21953 "virt-inspector - Display operating system version and other information "
21954 "about a virtual machine"
21955 msgstr ""
21956
21957 #. type: verbatim
21958 #: ../inspector/virt-inspector.pod:9
21959 #, no-wrap
21960 msgid ""
21961 " virt-inspector [--options] -d domname\n"
21962 "\n"
21963 msgstr ""
21964
21965 #. type: verbatim
21966 #: ../inspector/virt-inspector.pod:11
21967 #, no-wrap
21968 msgid ""
21969 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21970 "\n"
21971 msgstr ""
21972
21973 #. type: verbatim
21974 #: ../inspector/virt-inspector.pod:15
21975 #, no-wrap
21976 msgid ""
21977 " virt-inspector domname\n"
21978 "\n"
21979 msgstr ""
21980
21981 #. type: verbatim
21982 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
21983 #, no-wrap
21984 msgid ""
21985 " virt-inspector disk.img [disk.img ...]\n"
21986 "\n"
21987 msgstr ""
21988
21989 #. type: textblock
21990 #: ../inspector/virt-inspector.pod:21
21991 msgid ""
21992 "B<virt-inspector> examines a virtual machine or disk image and tries to "
21993 "determine the version of the operating system and other information about "
21994 "the virtual machine."
21995 msgstr ""
21996
21997 #. type: textblock
21998 #: ../inspector/virt-inspector.pod:25
21999 msgid "Virt-inspector produces XML output for feeding into other programs."
22000 msgstr ""
22001
22002 #. type: textblock
22003 #: ../inspector/virt-inspector.pod:27
22004 msgid ""
22005 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
22006 "the libvirt domain (see: C<virsh list --all>)."
22007 msgstr ""
22008
22009 #. type: textblock
22010 #: ../inspector/virt-inspector.pod:30
22011 msgid ""
22012 "You can also run virt-inspector directly on disk images from a single "
22013 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
22014 "has several block devices, in which case you should list several I<-a> "
22015 "options one after another, with the first corresponding to the guest's C</"
22016 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
22017 msgstr ""
22018
22019 #. type: textblock
22020 #: ../inspector/virt-inspector.pod:37
22021 msgid ""
22022 "You can also run virt-inspector on install disks, live CDs, bootable USB "
22023 "keys and similar."
22024 msgstr ""
22025
22026 #. type: textblock
22027 #: ../inspector/virt-inspector.pod:40
22028 msgid ""
22029 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
22030 "inspect several virtual machines, you have to run virt-inspector several "
22031 "times (for example, from a shell script for-loop)."
22032 msgstr ""
22033
22034 #. type: textblock
22035 #: ../inspector/virt-inspector.pod:45
22036 msgid ""
22037 "Because virt-inspector needs direct access to guest images, it won't "
22038 "normally work over remote libvirt connections."
22039 msgstr ""
22040
22041 #. type: textblock
22042 #: ../inspector/virt-inspector.pod:48
22043 msgid ""
22044 "All of the information available from virt-inspector is also available "
22045 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
22046 "The same information can also be fetched using guestfish or via libguestfs "
22047 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
22048 "WITH OTHER PROGRAMMING LANGUAGES>)."
22049 msgstr ""
22050
22051 #. type: textblock
22052 #: ../inspector/virt-inspector.pod:81
22053 msgid ""
22054 "Libvirt is only used if you specify a C<domname> on the command line.  If "
22055 "you specify guest block devices directly (I<-a>), then libvirt is not used "
22056 "at all."
22057 msgstr ""
22058
22059 #. type: textblock
22060 #: ../inspector/virt-inspector.pod:94
22061 msgid ""
22062 "When prompting for keys and passphrases, virt-inspector normally turns "
22063 "echoing off so you cannot see what you are typing.  If you are not worried "
22064 "about Tempest attacks and there is no one else in the room you can specify "
22065 "this flag to see what you are typing."
22066 msgstr ""
22067
22068 #. type: textblock
22069 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
22070 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
22071 #: ../tools/virt-win-reg.pl:144
22072 msgid ""
22073 "Specify the format of disk images given on the command line.  If this is "
22074 "omitted then the format is autodetected from the content of the disk image."
22075 msgstr ""
22076
22077 #. type: textblock
22078 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
22079 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
22080 #: ../tools/virt-win-reg.pl:148
22081 msgid ""
22082 "If disk images are requested from libvirt, then this program asks libvirt "
22083 "for this information.  In this case, the value of the format parameter is "
22084 "ignored."
22085 msgstr ""
22086
22087 #. type: textblock
22088 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:370
22089 #: ../resize/virt-resize.pod:462 ../sparsify/virt-sparsify.pod:132
22090 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
22091 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
22092 msgid ""
22093 "If working with untrusted raw-format guest disk images, you should ensure "
22094 "the format is always specified."
22095 msgstr ""
22096
22097 #. type: textblock
22098 #: ../inspector/virt-inspector.pod:139
22099 msgid "Previous versions of virt-inspector allowed you to write either:"
22100 msgstr ""
22101
22102 #. type: verbatim
22103 #: ../inspector/virt-inspector.pod:145
22104 #, no-wrap
22105 msgid ""
22106 " virt-inspector guestname\n"
22107 "\n"
22108 msgstr ""
22109
22110 #. type: =head1
22111 #: ../inspector/virt-inspector.pod:153
22112 msgid "XML FORMAT"
22113 msgstr ""
22114
22115 #. type: textblock
22116 #: ../inspector/virt-inspector.pod:155
22117 msgid ""
22118 "The virt-inspector XML is described precisely in a RELAX NG schema file "
22119 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
22120 "just an overview."
22121 msgstr ""
22122
22123 #. type: textblock
22124 #: ../inspector/virt-inspector.pod:159
22125 msgid ""
22126 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
22127 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
22128 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
22129 "which is vanishingly rare in real world VMs."
22130 msgstr ""
22131
22132 #. type: =head2
22133 #: ../inspector/virt-inspector.pod:164
22134 msgid "E<lt>operatingsystemE<gt>"
22135 msgstr ""
22136
22137 #. type: textblock
22138 #: ../inspector/virt-inspector.pod:166
22139 msgid ""
22140 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
22141 "describe the operating system, its architecture, the descriptive \"product "
22142 "name\" string, the type of OS and so on, as in this example:"
22143 msgstr ""
22144
22145 #. type: verbatim
22146 #: ../inspector/virt-inspector.pod:170
22147 #, no-wrap
22148 msgid ""
22149 " <operatingsystems>\n"
22150 "   <operatingsystem>\n"
22151 "     <root>/dev/sda2</root>\n"
22152 "     <name>windows</name>\n"
22153 "     <arch>i386</arch>\n"
22154 "     <distro>windows</distro>\n"
22155 "     <product_name>Windows 7 Enterprise</product_name>\n"
22156 "     <product_variant>Client</product_variant>\n"
22157 "     <major_version>6</major_version>\n"
22158 "     <minor_version>1</minor_version>\n"
22159 "     <windows_systemroot>/Windows</windows_systemroot>\n"
22160 "     <format>installed</format>\n"
22161 "\n"
22162 msgstr ""
22163
22164 #. type: textblock
22165 #: ../inspector/virt-inspector.pod:183
22166 msgid ""
22167 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
22168 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
22169 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
22170 "architecture.  The other fields are fairly self-explanatory, but because "
22171 "these fields are taken directly from the libguestfs inspection API you can "
22172 "find precise information from L<guestfs(3)/INSPECTION>."
22173 msgstr ""
22174
22175 #. type: textblock
22176 #: ../inspector/virt-inspector.pod:191
22177 msgid ""
22178 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
22179 "of view of libguestfs (block devices may have completely different names "
22180 "inside the VM itself)."
22181 msgstr ""
22182
22183 #. type: =head2
22184 #: ../inspector/virt-inspector.pod:195
22185 msgid "E<lt>mountpointsE<gt>"
22186 msgstr ""
22187
22188 #. type: textblock
22189 #: ../inspector/virt-inspector.pod:197
22190 msgid ""
22191 "Un*x-like guests typically have multiple filesystems which are mounted at "
22192 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
22193 "element which looks like this:"
22194 msgstr ""
22195
22196 #. type: verbatim
22197 #: ../inspector/virt-inspector.pod:201
22198 #, no-wrap
22199 msgid ""
22200 " <operatingsystems>\n"
22201 "   <operatingsystem>\n"
22202 "     ...\n"
22203 "     <mountpoints>\n"
22204 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
22205 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
22206 "     </mountpoints>\n"
22207 "\n"
22208 msgstr ""
22209
22210 #. type: textblock
22211 #: ../inspector/virt-inspector.pod:209
22212 msgid ""
22213 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
22214 "and may have completely different names inside the guest.  Only mountable "
22215 "filesystems appear in this list, not things like swap devices."
22216 msgstr ""
22217
22218 #. type: =head2
22219 #: ../inspector/virt-inspector.pod:214
22220 msgid "E<lt>filesystemsE<gt>"
22221 msgstr ""
22222
22223 #. type: textblock
22224 #: ../inspector/virt-inspector.pod:216
22225 msgid ""
22226 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
22227 "filesystems belonging to the guest, including swap and empty partitions.  "
22228 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
22229 "this OS or shared with this OS and other OSes)."
22230 msgstr ""
22231
22232 #. type: textblock
22233 #: ../inspector/virt-inspector.pod:222
22234 msgid "You might see something like this:"
22235 msgstr ""
22236
22237 #. type: verbatim
22238 #: ../inspector/virt-inspector.pod:224
22239 #, no-wrap
22240 msgid ""
22241 " <operatingsystems>\n"
22242 "   <operatingsystem>\n"
22243 "     ...\n"
22244 "     <filesystems>\n"
22245 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22246 "         <type>ext4</type>\n"
22247 "         <label>Fedora-13-x86_64</label>\n"
22248 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
22249 "       </filesystem>\n"
22250 "\n"
22251 msgstr ""
22252
22253 #. type: textblock
22254 #: ../inspector/virt-inspector.pod:234
22255 msgid ""
22256 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
22257 "the label, and the UUID."
22258 msgstr ""
22259
22260 #. type: =head2
22261 #: ../inspector/virt-inspector.pod:237
22262 msgid "E<lt>applicationsE<gt>"
22263 msgstr ""
22264
22265 #. type: textblock
22266 #: ../inspector/virt-inspector.pod:239
22267 msgid ""
22268 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
22269 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
22270 "machine."
22271 msgstr ""
22272
22273 #. type: textblock
22274 #: ../inspector/virt-inspector.pod:243
22275 msgid ""
22276 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
22277 "Typical values would be C<rpm> and C<deb>."
22278 msgstr ""
22279
22280 #. type: textblock
22281 #: ../inspector/virt-inspector.pod:246
22282 msgid ""
22283 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
22284 "Typical values include C<yum>, C<up2date> and C<apt>"
22285 msgstr ""
22286
22287 #. type: textblock
22288 #: ../inspector/virt-inspector.pod:249
22289 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
22290 msgstr ""
22291
22292 #. type: verbatim
22293 #: ../inspector/virt-inspector.pod:252
22294 #, no-wrap
22295 msgid ""
22296 " <operatingsystems>\n"
22297 "   <operatingsystem>\n"
22298 "     ...\n"
22299 "     <applications>\n"
22300 "       <application>\n"
22301 "         <name>coreutils</name>\n"
22302 "         <version>8.5</version>\n"
22303 "         <release>1</release>\n"
22304 "       </application>\n"
22305 "\n"
22306 msgstr ""
22307
22308 #. type: textblock
22309 #: ../inspector/virt-inspector.pod:262
22310 msgid ""
22311 "The version and release fields may not be available for some types guests.  "
22312 "Other fields are possible, see L<guestfs(3)/"
22313 "guestfs_inspect_list_applications>."
22314 msgstr ""
22315
22316 #. type: =head2
22317 #: ../inspector/virt-inspector.pod:266
22318 msgid "E<lt>drive_mappingsE<gt>"
22319 msgstr ""
22320
22321 #. type: textblock
22322 #: ../inspector/virt-inspector.pod:268
22323 msgid ""
22324 "For operating systems like Windows which use drive letters, virt-inspector "
22325 "is able to find out how drive letters map to filesystems."
22326 msgstr ""
22327
22328 #. type: verbatim
22329 #: ../inspector/virt-inspector.pod:272
22330 #, no-wrap
22331 msgid ""
22332 " <operatingsystems>\n"
22333 "   <operatingsystem>\n"
22334 "     ...\n"
22335 "     <drive_mappings>\n"
22336 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
22337 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
22338 "     </drive_mappings>\n"
22339 "\n"
22340 msgstr ""
22341
22342 #. type: textblock
22343 #: ../inspector/virt-inspector.pod:280
22344 msgid ""
22345 "In the example above, drive C maps to the filesystem on the second partition "
22346 "on the first disk, and drive E maps to the filesystem on the first partition "
22347 "on the second disk."
22348 msgstr ""
22349
22350 #. type: textblock
22351 #: ../inspector/virt-inspector.pod:284
22352 msgid ""
22353 "Note that this only covers permanent local filesystem mappings, not things "
22354 "like network shares.  Furthermore NTFS volume mount points may not be listed "
22355 "here."
22356 msgstr ""
22357
22358 #. type: =head2
22359 #: ../inspector/virt-inspector.pod:288
22360 msgid "E<lt>iconE<gt>"
22361 msgstr ""
22362
22363 #. type: textblock
22364 #: ../inspector/virt-inspector.pod:290
22365 msgid ""
22366 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
22367 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
22368 "very large and high quality."
22369 msgstr ""
22370
22371 #. type: verbatim
22372 #: ../inspector/virt-inspector.pod:294
22373 #, no-wrap
22374 msgid ""
22375 " <operatingsystems>\n"
22376 "   <operatingsystem>\n"
22377 "     ...\n"
22378 "     <icon>\n"
22379 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
22380 "       [... many lines of base64 data ...]\n"
22381 "     </icon>\n"
22382 "\n"
22383 msgstr ""
22384
22385 #. type: textblock
22386 #: ../inspector/virt-inspector.pod:302
22387 msgid ""
22388 "To display the icon, you have to extract it and convert the base64 data back "
22389 "to a binary file.  Use an XPath query or simply an editor to extract the "
22390 "data, then use the coreutils L<base64(1)> program to do the conversion back "
22391 "to a PNG file:"
22392 msgstr ""
22393
22394 #. type: verbatim
22395 #: ../inspector/virt-inspector.pod:307
22396 #, no-wrap
22397 msgid ""
22398 " base64 -i -d < icon.data > icon.png\n"
22399 "\n"
22400 msgstr ""
22401
22402 #. type: =head2
22403 #: ../inspector/virt-inspector.pod:309
22404 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
22405 msgstr ""
22406
22407 #. type: textblock
22408 #: ../inspector/virt-inspector.pod:311
22409 msgid ""
22410 "Virt-inspector can detect some operating system installers on install disks, "
22411 "live CDs, bootable USB keys and more."
22412 msgstr ""
22413
22414 #. type: textblock
22415 #: ../inspector/virt-inspector.pod:314
22416 msgid ""
22417 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
22418 "fields may be present to indicate a live CD, network installer, or one part "
22419 "of a multipart CD.  For example:"
22420 msgstr ""
22421
22422 #. type: verbatim
22423 #: ../inspector/virt-inspector.pod:318
22424 #, no-wrap
22425 msgid ""
22426 " <operatingsystems>\n"
22427 "   <operatingsystem>\n"
22428 "     <root>/dev/sda</root>\n"
22429 "     <name>linux</name>\n"
22430 "     <arch>i386</arch>\n"
22431 "     <distro>ubuntu</distro>\n"
22432 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
22433 "     <major_version>10</major_version>\n"
22434 "     <minor_version>10</minor_version>\n"
22435 "     <format>installer</format>\n"
22436 "     <live/>\n"
22437 "\n"
22438 msgstr ""
22439
22440 #. type: =head1
22441 #: ../inspector/virt-inspector.pod:330
22442 msgid "USING XPATH"
22443 msgstr ""
22444
22445 #. type: textblock
22446 #: ../inspector/virt-inspector.pod:332
22447 msgid ""
22448 "You can use the XPath query language to select parts of the XML.  We "
22449 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
22450 msgstr ""
22451
22452 #. type: verbatim
22453 #: ../inspector/virt-inspector.pod:338
22454 #, no-wrap
22455 msgid ""
22456 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
22457 " <filesystems>\n"
22458 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
22459 "        <type>ext4</type>\n"
22460 " [...]\n"
22461 "\n"
22462 msgstr ""
22463
22464 #. type: verbatim
22465 #: ../inspector/virt-inspector.pod:344
22466 #, no-wrap
22467 msgid ""
22468 " $ virt-inspector -d Guest | \\\n"
22469 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
22470 " ext4\n"
22471 "\n"
22472 msgstr ""
22473
22474 #. type: verbatim
22475 #: ../inspector/virt-inspector.pod:348
22476 #, no-wrap
22477 msgid ""
22478 " $ virt-inspector -d Guest | \\\n"
22479 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
22480 " [displays the guest icon, if there is one]\n"
22481 "\n"
22482 msgstr ""
22483
22484 #. type: =head1
22485 #: ../inspector/virt-inspector.pod:359
22486 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
22487 msgstr ""
22488
22489 #. type: textblock
22490 #: ../inspector/virt-inspector.pod:361
22491 msgid ""
22492 "Early versions of libguestfs shipped with a different virt-inspector program "
22493 "written in Perl (the current version is written in C).  The XML output of "
22494 "the Perl virt-inspector was different and it could also output in other "
22495 "formats like text."
22496 msgstr ""
22497
22498 #. type: textblock
22499 #: ../inspector/virt-inspector.pod:366
22500 msgid ""
22501 "The old virt-inspector is no longer supported or shipped with libguestfs."
22502 msgstr ""
22503
22504 #. type: textblock
22505 #: ../inspector/virt-inspector.pod:369
22506 msgid ""
22507 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
22508 "versions of virt-inspector with different names:"
22509 msgstr ""
22510
22511 #. type: verbatim
22512 #: ../inspector/virt-inspector.pod:372
22513 #, no-wrap
22514 msgid ""
22515 " virt-inspector     Old Perl version.\n"
22516 " virt-inspector2    New C version.\n"
22517 "\n"
22518 msgstr ""
22519
22520 #. type: textblock
22521 #: ../inspector/virt-inspector.pod:382
22522 msgid ""
22523 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
22524 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
22525 msgstr ""
22526
22527 #. type: textblock
22528 #: ../inspector/virt-inspector.pod:399
22529 msgid "Matthew Booth L<mbooth@redhat.com>"
22530 msgstr ""
22531
22532 #. type: textblock
22533 #: ../java/examples/guestfs-java.pod:5
22534 msgid "guestfs-java - How to use libguestfs from Java"
22535 msgstr ""
22536
22537 #. type: verbatim
22538 #: ../java/examples/guestfs-java.pod:9
22539 #, no-wrap
22540 msgid ""
22541 " import com.redhat.et.libguestfs.*;\n"
22542 " \n"
22543 msgstr ""
22544
22545 #. type: verbatim
22546 #: ../java/examples/guestfs-java.pod:11
22547 #, no-wrap
22548 msgid ""
22549 " GuestFS g = new GuestFS ();\n"
22550 " g.add_drive_opts (\"disk.img\", null);\n"
22551 " g.launch ();\n"
22552 "\n"
22553 msgstr ""
22554
22555 #. type: textblock
22556 #: ../java/examples/guestfs-java.pod:17
22557 msgid ""
22558 "This manual page documents how to call libguestfs from the Java programming "
22559 "language.  This page just documents the differences from the C API and gives "
22560 "some examples.  If you are not familiar with using libguestfs, you also need "
22561 "to read L<guestfs(3)>."
22562 msgstr ""
22563
22564 #. type: =head2
22565 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
22566 msgid "CLOSING THE HANDLE"
22567 msgstr ""
22568
22569 #. type: textblock
22570 #: ../java/examples/guestfs-java.pod:24
22571 msgid ""
22572 "The handle is closed when it is reaped by the garbage collector.  Because "
22573 "libguestfs handles include a lot of state, it is also possible to close (and "
22574 "hence free) them explicitly by calling the C<close> method."
22575 msgstr ""
22576
22577 #. type: =head2
22578 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
22579 #: ../python/examples/guestfs-python.pod:21
22580 #: ../ruby/examples/guestfs-ruby.pod:22
22581 msgid "EXCEPTIONS"
22582 msgstr "ВИНЯТКИ"
22583
22584 #. type: textblock
22585 #: ../java/examples/guestfs-java.pod:31
22586 msgid ""
22587 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
22588 "exception.  This has a single parameter which is the error message (a "
22589 "C<String>)."
22590 msgstr ""
22591
22592 #. type: textblock
22593 #: ../java/examples/guestfs-java.pod:35
22594 msgid "Calling any method on a closed handle raises the same exception."
22595 msgstr ""
22596
22597 #. type: textblock
22598 #: ../java/examples/guestfs-java.pod:47
22599 msgid ""
22600 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
22601 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22602 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22603 msgstr ""
22604
22605 #. type: textblock
22606 #: ../ocaml/examples/guestfs-ocaml.pod:5
22607 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
22608 msgstr ""
22609
22610 #. type: textblock
22611 #: ../ocaml/examples/guestfs-ocaml.pod:9
22612 msgid "Module style:"
22613 msgstr ""
22614
22615 #. type: verbatim
22616 #: ../ocaml/examples/guestfs-ocaml.pod:11
22617 #, no-wrap
22618 msgid ""
22619 " let g = Guestfs.create () in\n"
22620 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22621 " Guestfs.launch g;\n"
22622 "\n"
22623 msgstr ""
22624
22625 #. type: textblock
22626 #: ../ocaml/examples/guestfs-ocaml.pod:15
22627 msgid "Object-oriented style:"
22628 msgstr ""
22629
22630 #. type: verbatim
22631 #: ../ocaml/examples/guestfs-ocaml.pod:17
22632 #, no-wrap
22633 msgid ""
22634 " let g = new Guestfs.guestfs () in\n"
22635 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
22636 " g#launch ();\n"
22637 "\n"
22638 msgstr ""
22639
22640 #. type: verbatim
22641 #: ../ocaml/examples/guestfs-ocaml.pod:21
22642 #, no-wrap
22643 msgid ""
22644 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
22645 "or:\n"
22646 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
22647 "\n"
22648 msgstr ""
22649
22650 #. type: textblock
22651 #: ../ocaml/examples/guestfs-ocaml.pod:27
22652 msgid ""
22653 "This manual page documents how to call libguestfs from the OCaml programming "
22654 "language.  This page just documents the differences from the C API and gives "
22655 "some examples.  If you are not familiar with using libguestfs, you also need "
22656 "to read L<guestfs(3)>."
22657 msgstr ""
22658
22659 #. type: =head2
22660 #: ../ocaml/examples/guestfs-ocaml.pod:32
22661 msgid "PROGRAMMING STYLES"
22662 msgstr ""
22663
22664 #. type: textblock
22665 #: ../ocaml/examples/guestfs-ocaml.pod:34
22666 msgid ""
22667 "There are two different programming styles supported by the OCaml bindings.  "
22668 "You can use a module style, with each C function mapped to an OCaml function:"
22669 msgstr ""
22670
22671 #. type: verbatim
22672 #: ../ocaml/examples/guestfs-ocaml.pod:38
22673 #, no-wrap
22674 msgid ""
22675 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
22676 "\n"
22677 msgstr ""
22678
22679 #. type: textblock
22680 #: ../ocaml/examples/guestfs-ocaml.pod:40
22681 msgid "becomes:"
22682 msgstr ""
22683
22684 #. type: verbatim
22685 #: ../ocaml/examples/guestfs-ocaml.pod:42
22686 #, no-wrap
22687 msgid ""
22688 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
22689 "\n"
22690 msgstr ""
22691
22692 #. type: textblock
22693 #: ../ocaml/examples/guestfs-ocaml.pod:44
22694 msgid ""
22695 "Alternately you can use an object-oriented style, calling methods on the "
22696 "class C<Guestfs.guestfs>:"
22697 msgstr ""
22698
22699 #. type: verbatim
22700 #: ../ocaml/examples/guestfs-ocaml.pod:47
22701 #, no-wrap
22702 msgid ""
22703 " method set_verbose : bool -> unit\n"
22704 "\n"
22705 msgstr ""
22706
22707 #. type: textblock
22708 #: ../ocaml/examples/guestfs-ocaml.pod:49
22709 msgid ""
22710 "The object-oriented style is usually briefer, and the minor performance "
22711 "penalty isn't noticable in the general overhead of performing libguestfs "
22712 "functions."
22713 msgstr ""
22714
22715 #. type: textblock
22716 #: ../ocaml/examples/guestfs-ocaml.pod:55
22717 msgid ""
22718 "The handle is closed when it is reaped by the garbage collector.  Because "
22719 "libguestfs handles include a lot of state, it is also possible to close (and "
22720 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
22721 "method."
22722 msgstr ""
22723
22724 #. type: textblock
22725 #: ../ocaml/examples/guestfs-ocaml.pod:62
22726 msgid ""
22727 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22728 "exception.  This has a single parameter which is the error message (a "
22729 "string)."
22730 msgstr ""
22731
22732 #. type: textblock
22733 #: ../ocaml/examples/guestfs-ocaml.pod:66
22734 msgid ""
22735 "Calling any function/method on a closed handle raises C<Guestfs."
22736 "Handle_closed>.  The single parameter is the name of the function that you "
22737 "called."
22738 msgstr ""
22739
22740 #. type: textblock
22741 #: ../ocaml/examples/guestfs-ocaml.pod:80
22742 msgid ""
22743 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22744 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22745 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22746 msgstr ""
22747
22748 #. type: textblock
22749 #: ../perl/examples/guestfs-perl.pod:5
22750 msgid "guestfs-perl - How to use libguestfs from Perl"
22751 msgstr ""
22752
22753 #. type: verbatim
22754 #: ../perl/examples/guestfs-perl.pod:9
22755 #, no-wrap
22756 msgid ""
22757 " use Sys::Guestfs;\n"
22758 " \n"
22759 msgstr ""
22760
22761 #. type: verbatim
22762 #: ../perl/examples/guestfs-perl.pod:11
22763 #, no-wrap
22764 msgid ""
22765 " my $h = Sys::Guestfs->new ();\n"
22766 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22767 " $h->launch ();\n"
22768 " $h->mount_options ('', '/dev/sda1', '/');\n"
22769 " $h->touch ('/hello');\n"
22770 " $h->sync ();\n"
22771 "\n"
22772 msgstr ""
22773
22774 #. type: textblock
22775 #: ../perl/examples/guestfs-perl.pod:20
22776 msgid ""
22777 "This manual page documents how to call libguestfs from the Perl programming "
22778 "language.  This page just documents the differences from the C API and gives "
22779 "some examples.  If you are not familiar with using libguestfs, you also need "
22780 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
22781 msgstr ""
22782
22783 #. type: =head2
22784 #: ../perl/examples/guestfs-perl.pod:26
22785 msgid "ERRORS"
22786 msgstr "ПОМИЛКИ"
22787
22788 #. type: textblock
22789 #: ../perl/examples/guestfs-perl.pod:28
22790 msgid ""
22791 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
22792 ">)."
22793 msgstr ""
22794
22795 #. type: textblock
22796 #: ../perl/examples/guestfs-perl.pod:41
22797 msgid ""
22798 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
22799 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
22800 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22801 msgstr ""
22802
22803 #. type: textblock
22804 #: ../python/examples/guestfs-python.pod:5
22805 msgid "guestfs-python - How to use libguestfs from Python"
22806 msgstr ""
22807
22808 #. type: verbatim
22809 #: ../python/examples/guestfs-python.pod:9
22810 #, no-wrap
22811 msgid ""
22812 " import guestfs\n"
22813 " g = guestfs.GuestFS ()\n"
22814 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22815 " g.launch\n"
22816 "\n"
22817 msgstr ""
22818
22819 #. type: textblock
22820 #: ../python/examples/guestfs-python.pod:16
22821 msgid ""
22822 "This manual page documents how to call libguestfs from the Python "
22823 "programming language.  This page just documents the differences from the C "
22824 "API and gives some examples.  If you are not familiar with using libguestfs, "
22825 "you also need to read L<guestfs(3)>."
22826 msgstr ""
22827
22828 #. type: textblock
22829 #: ../python/examples/guestfs-python.pod:23
22830 msgid ""
22831 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22832 "single string argument which is the error message."
22833 msgstr ""
22834
22835 #. type: =head2
22836 #: ../python/examples/guestfs-python.pod:26
22837 msgid "MORE DOCUMENTATION"
22838 msgstr ""
22839
22840 #. type: textblock
22841 #: ../python/examples/guestfs-python.pod:28
22842 msgid "Type:"
22843 msgstr "Тип:"
22844
22845 #. type: verbatim
22846 #: ../python/examples/guestfs-python.pod:30
22847 #, no-wrap
22848 msgid ""
22849 " $ python\n"
22850 " >>> import guestfs\n"
22851 " >>> help (guestfs)\n"
22852 "\n"
22853 msgstr ""
22854
22855 #. type: textblock
22856 #: ../python/examples/guestfs-python.pod:44
22857 msgid ""
22858 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22859 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
22860 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22861 msgstr ""
22862
22863 #. type: textblock
22864 #: ../rescue/virt-rescue.pod:5
22865 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22866 msgstr ""
22867
22868 #. type: verbatim
22869 #: ../rescue/virt-rescue.pod:9
22870 #, no-wrap
22871 msgid ""
22872 " virt-rescue [--options] -d domname\n"
22873 "\n"
22874 msgstr ""
22875
22876 #. type: verbatim
22877 #: ../rescue/virt-rescue.pod:11
22878 #, no-wrap
22879 msgid ""
22880 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22881 "\n"
22882 msgstr ""
22883
22884 #. type: verbatim
22885 #: ../rescue/virt-rescue.pod:15
22886 #, no-wrap
22887 msgid ""
22888 " virt-rescue [--options] domname\n"
22889 "\n"
22890 msgstr ""
22891
22892 #. type: verbatim
22893 #: ../rescue/virt-rescue.pod:17
22894 #, no-wrap
22895 msgid ""
22896 " virt-rescue [--options] disk.img [disk.img ...]\n"
22897 "\n"
22898 msgstr ""
22899
22900 #. type: textblock
22901 #: ../rescue/virt-rescue.pod:21
22902 msgid ""
22903 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
22904 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
22905 "you from doing this, but doesn't catch all cases."
22906 msgstr ""
22907
22908 #. type: textblock
22909 #: ../rescue/virt-rescue.pod:25
22910 msgid ""
22911 "However if you use the I<--ro> (read only) option, then you can attach a "
22912 "shell to a live virtual machine.  The results might be strange or "
22913 "inconsistent at times but you won't get disk corruption."
22914 msgstr ""
22915
22916 #. type: textblock
22917 #: ../rescue/virt-rescue.pod:31
22918 msgid ""
22919 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22920 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
22921 "recovery tools which you can use to examine or rescue a virtual machine or "
22922 "disk image."
22923 msgstr ""
22924
22925 #. type: textblock
22926 #: ../rescue/virt-rescue.pod:36
22927 msgid ""
22928 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22929 "on disk image(s):"
22930 msgstr ""
22931
22932 #. type: verbatim
22933 #: ../rescue/virt-rescue.pod:39
22934 #, no-wrap
22935 msgid ""
22936 " virt-rescue -d GuestName\n"
22937 "\n"
22938 msgstr ""
22939
22940 #. type: verbatim
22941 #: ../rescue/virt-rescue.pod:41
22942 #, no-wrap
22943 msgid ""
22944 " virt-rescue --ro -a /path/to/disk.img\n"
22945 "\n"
22946 msgstr ""
22947
22948 #. type: verbatim
22949 #: ../rescue/virt-rescue.pod:43
22950 #, no-wrap
22951 msgid ""
22952 " virt-rescue -a /dev/sdc\n"
22953 "\n"
22954 msgstr ""
22955
22956 #. type: textblock
22957 #: ../rescue/virt-rescue.pod:45
22958 msgid "For live VMs you I<must> use the --ro option."
22959 msgstr ""
22960
22961 #. type: textblock
22962 #: ../rescue/virt-rescue.pod:47
22963 msgid ""
22964 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22965 "in an interactive bash shell where you can use many ordinary Linux "
22966 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
22967 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
22968 "is an empty directory called C</sysroot> where you can mount filesystems."
22969 msgstr ""
22970
22971 #. type: textblock
22972 #: ../rescue/virt-rescue.pod:54
22973 msgid ""
22974 "In the example below, we list logical volumes, then choose one to mount "
22975 "under C</sysroot>:"
22976 msgstr ""
22977
22978 #. type: verbatim
22979 #: ../rescue/virt-rescue.pod:57
22980 #, no-wrap
22981 msgid ""
22982 " ><rescue> lvs\n"
22983 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
22984 " lv_root vg_f11x64 -wi-a-   8.83G\n"
22985 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
22986 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
22987 " ><rescue> ls /sysroot\n"
22988 "\n"
22989 msgstr ""
22990
22991 #. type: textblock
22992 #: ../rescue/virt-rescue.pod:64
22993 msgid ""
22994 "If you don't know what filesystems are available on the virtual machine then "
22995 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
22996 msgstr ""
22997
22998 #. type: textblock
22999 #: ../rescue/virt-rescue.pod:70
23000 msgid ""
23001 "Virt-rescue can be used on I<any> disk image file or device, not just a "
23002 "virtual machine.  For example you can use it on a blank file if you want to "
23003 "partition that file (although we would recommend using L<guestfish(1)> "
23004 "instead as it is more suitable for this purpose).  You can even use virt-"
23005 "rescue on things like SD cards."
23006 msgstr ""
23007
23008 #. type: textblock
23009 #: ../rescue/virt-rescue.pod:76
23010 msgid ""
23011 "Virt-rescue does not require root.  You only need to run it as root if you "
23012 "need root to open the disk image."
23013 msgstr ""
23014
23015 #. type: textblock
23016 #: ../rescue/virt-rescue.pod:79
23017 msgid ""
23018 "This tool is just designed for quick interactive hacking on a virtual "
23019 "machine.  For more structured access to a virtual machine disk image, you "
23020 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
23021 "make scripted changes to guests, use L<guestfish(1)>."
23022 msgstr ""
23023
23024 #. type: =item
23025 #: ../rescue/virt-rescue.pod:103
23026 msgid "B<--append kernelopts>"
23027 msgstr "B<--append параметри_ядра>"
23028
23029 #. type: textblock
23030 #: ../rescue/virt-rescue.pod:105
23031 msgid "Pass additional options to the rescue kernel."
23032 msgstr ""
23033
23034 #. type: verbatim
23035 #: ../rescue/virt-rescue.pod:135
23036 #, no-wrap
23037 msgid ""
23038 " virt-rescue --format=raw -a disk.img\n"
23039 "\n"
23040 msgstr ""
23041
23042 #. type: verbatim
23043 #: ../rescue/virt-rescue.pod:139
23044 #, no-wrap
23045 msgid ""
23046 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
23047 "\n"
23048 msgstr ""
23049
23050 #. type: =item
23051 #: ../rescue/virt-rescue.pod:148
23052 msgid "B<-m MB>"
23053 msgstr "B<-m МБ>"
23054
23055 #. type: =item
23056 #: ../rescue/virt-rescue.pod:150
23057 msgid "B<--memsize MB>"
23058 msgstr "B<--memsize МБ>"
23059
23060 #. type: textblock
23061 #: ../rescue/virt-rescue.pod:152
23062 msgid ""
23063 "Change the amount of memory allocated to the rescue system.  The default is "
23064 "set by libguestfs and is small but adequate for running system tools.  The "
23065 "occasional program might need more memory.  The parameter is specified in "
23066 "megabytes."
23067 msgstr ""
23068
23069 #. type: =item
23070 #: ../rescue/virt-rescue.pod:157
23071 msgid "B<--network>"
23072 msgstr "B<--network>"
23073
23074 #. type: textblock
23075 #: ../rescue/virt-rescue.pod:159
23076 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
23077 msgstr ""
23078
23079 #. type: textblock
23080 #: ../rescue/virt-rescue.pod:165
23081 msgid "Open the image read-only."
23082 msgstr ""
23083
23084 #. type: textblock
23085 #: ../rescue/virt-rescue.pod:175
23086 msgid ""
23087 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
23088 "SELINUX> before using this option."
23089 msgstr ""
23090
23091 #. type: =item
23092 #: ../rescue/virt-rescue.pod:178
23093 msgid "B<--smp> N"
23094 msgstr ""
23095
23096 #. type: textblock
23097 #: ../rescue/virt-rescue.pod:180
23098 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
23099 msgstr ""
23100
23101 #. type: textblock
23102 #: ../rescue/virt-rescue.pod:198
23103 msgid ""
23104 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
23105 "are done read-write."
23106 msgstr ""
23107
23108 #. type: textblock
23109 #: ../rescue/virt-rescue.pod:211
23110 msgid "Previous versions of virt-rescue allowed you to write either:"
23111 msgstr ""
23112
23113 #. type: verbatim
23114 #: ../rescue/virt-rescue.pod:213
23115 #, no-wrap
23116 msgid ""
23117 " virt-rescue disk.img [disk.img ...]\n"
23118 "\n"
23119 msgstr ""
23120
23121 #. type: verbatim
23122 #: ../rescue/virt-rescue.pod:217
23123 #, no-wrap
23124 msgid ""
23125 " virt-rescue guestname\n"
23126 "\n"
23127 msgstr ""
23128
23129 #. type: =head1
23130 #: ../rescue/virt-rescue.pod:225
23131 msgid "NETWORK"
23132 msgstr "МЕРЕЖА"
23133
23134 #. type: textblock
23135 #: ../rescue/virt-rescue.pod:227
23136 msgid ""
23137 "Adding the I<--network> option enables QEMU user networking in the rescue "
23138 "appliance.  There are some differences between user networking and ordinary "
23139 "networking:"
23140 msgstr ""
23141
23142 #. type: =item
23143 #: ../rescue/virt-rescue.pod:233
23144 msgid "ping does not work"
23145 msgstr ""
23146
23147 #. type: textblock
23148 #: ../rescue/virt-rescue.pod:235
23149 msgid ""
23150 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
23151 "send the ping packets, and because virt-rescue must be able to run as non-"
23152 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
23153 "The ping command will appear to resolve addresses but will not be able to "
23154 "send or receive any packets.  This does not mean that the network is not "
23155 "working."
23156 msgstr ""
23157
23158 #. type: =item
23159 #: ../rescue/virt-rescue.pod:242
23160 msgid "cannot receive connections"
23161 msgstr ""
23162
23163 #. type: textblock
23164 #: ../rescue/virt-rescue.pod:244
23165 msgid "QEMU user networking cannot receive incoming connections."
23166 msgstr ""
23167
23168 #. type: =item
23169 #: ../rescue/virt-rescue.pod:246
23170 msgid "making TCP connections"
23171 msgstr ""
23172
23173 #. type: textblock
23174 #: ../rescue/virt-rescue.pod:248
23175 msgid ""
23176 "The virt-rescue appliance needs to be small and so does not include many "
23177 "network tools.  In particular there is no L<telnet(1)> command.  You can "
23178 "make TCP connections from the shell using the magical C</dev/tcp/"
23179 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
23180 msgstr ""
23181
23182 #. type: verbatim
23183 #: ../rescue/virt-rescue.pod:253
23184 #, no-wrap
23185 msgid ""
23186 " exec 3<>/dev/tcp/redhat.com/80\n"
23187 " echo \"GET /\" >&3\n"
23188 " cat <&3\n"
23189 "\n"
23190 msgstr ""
23191
23192 #. type: textblock
23193 #: ../rescue/virt-rescue.pod:257
23194 msgid "See L<bash(1)> for more details."
23195 msgstr ""
23196
23197 #. type: textblock
23198 #: ../rescue/virt-rescue.pod:263
23199 msgid ""
23200 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
23201 "ENVIRONMENT VARIABLES> for the complete list."
23202 msgstr ""
23203
23204 #. type: textblock
23205 #: ../rescue/virt-rescue.pod:290
23206 msgid ""
23207 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
23208 "libguestfs.org/>."
23209 msgstr ""
23210
23211 #. type: textblock
23212 #: ../resize/virt-resize.pod:5
23213 msgid "virt-resize - Resize a virtual machine disk"
23214 msgstr ""
23215
23216 #. type: verbatim
23217 #: ../resize/virt-resize.pod:9
23218 #, no-wrap
23219 msgid ""
23220 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
23221 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
23222 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
23223 "\n"
23224 msgstr ""
23225
23226 #. type: textblock
23227 #: ../resize/virt-resize.pod:15
23228 msgid ""
23229 "Virt-resize is a tool which can resize a virtual machine disk, making it "
23230 "larger or smaller overall, and resizing or deleting any partitions contained "
23231 "within."
23232 msgstr ""
23233
23234 #. type: textblock
23235 #: ../resize/virt-resize.pod:19
23236 msgid ""
23237 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
23238 "not> be used on live virtual machines - for consistent results, shut the "
23239 "virtual machine down before resizing it."
23240 msgstr ""
23241
23242 #. type: textblock
23243 #: ../resize/virt-resize.pod:23
23244 msgid ""
23245 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
23246 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
23247 msgstr ""
23248
23249 #. type: =item
23250 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:576
23251 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469
23252 #: ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2675
23253 msgid "1."
23254 msgstr "1."
23255
23256 #. type: textblock
23257 #: ../resize/virt-resize.pod:33
23258 msgid ""
23259 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
23260 "fill the extra 5GB of space."
23261 msgstr ""
23262
23263 #. type: verbatim
23264 #: ../resize/virt-resize.pod:36
23265 #, no-wrap
23266 msgid ""
23267 " virt-filesystems --long -h --all -a olddisk\n"
23268 " \n"
23269 msgstr ""
23270
23271 #. type: verbatim
23272 #: ../resize/virt-resize.pod:38
23273 #, no-wrap
23274 msgid ""
23275 " truncate -r olddisk newdisk\n"
23276 " truncate -s +5G newdisk\n"
23277 " \n"
23278 msgstr ""
23279
23280 #. type: verbatim
23281 #: ../resize/virt-resize.pod:41
23282 #, no-wrap
23283 msgid ""
23284 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
23285 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
23286 "\n"
23287 msgstr ""
23288
23289 #. type: =item
23290 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:583
23291 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475
23292 #: ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2700
23293 msgid "2."
23294 msgstr "2."
23295
23296 #. type: textblock
23297 #: ../resize/virt-resize.pod:46
23298 msgid ""
23299 "As above, but make the /boot partition 200MB bigger, while giving the "
23300 "remaining space to /dev/sda2:"
23301 msgstr ""
23302
23303 #. type: verbatim
23304 #: ../resize/virt-resize.pod:49
23305 #, no-wrap
23306 msgid ""
23307 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23308 "   olddisk newdisk\n"
23309 "\n"
23310 msgstr ""
23311
23312 #. type: =item
23313 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:589
23314 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486
23315 #: ../src/guestfs.pod:1436
23316 msgid "3."
23317 msgstr "3."
23318
23319 #. type: textblock
23320 #: ../resize/virt-resize.pod:54
23321 msgid ""
23322 "As in the first example, but expand a logical volume as the final step.  "
23323 "This is what you would typically use for Linux guests that use LVM:"
23324 msgstr ""
23325
23326 #. type: verbatim
23327 #: ../resize/virt-resize.pod:58
23328 #, no-wrap
23329 msgid ""
23330 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
23331 "   olddisk newdisk\n"
23332 "\n"
23333 msgstr ""
23334
23335 #. type: =item
23336 #: ../resize/virt-resize.pod:61
23337 msgid "4."
23338 msgstr ""
23339
23340 #. type: textblock
23341 #: ../resize/virt-resize.pod:63
23342 msgid ""
23343 "As in the first example, but the output format will be qcow2 instead of a "
23344 "raw disk:"
23345 msgstr ""
23346
23347 #. type: verbatim
23348 #: ../resize/virt-resize.pod:66
23349 #, no-wrap
23350 msgid ""
23351 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
23352 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
23353 "\n"
23354 msgstr ""
23355
23356 #. type: =head1
23357 #: ../resize/virt-resize.pod:71
23358 msgid "DETAILED USAGE"
23359 msgstr "ДОКЛАДНІШЕ ЩОДО ВИКОРИСТАННЯ"
23360
23361 #. type: =head2
23362 #: ../resize/virt-resize.pod:73
23363 msgid "EXPANDING A VIRTUAL MACHINE DISK"
23364 msgstr "РОЗШИРЕННЯ ДИСКА ВІРТУАЛЬНОЇ МАШИНИ"
23365
23366 #. type: =item
23367 #: ../resize/virt-resize.pod:77
23368 msgid "1. Shut down the virtual machine"
23369 msgstr ""
23370
23371 #. type: =item
23372 #: ../resize/virt-resize.pod:79
23373 msgid "2. Locate input disk image"
23374 msgstr ""
23375
23376 #. type: textblock
23377 #: ../resize/virt-resize.pod:81
23378 msgid ""
23379 "Locate the input disk image (ie. the file or device on the host containing "
23380 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
23381 "dumpxml> like this to find the disk image name:"
23382 msgstr ""
23383
23384 #. type: verbatim
23385 #: ../resize/virt-resize.pod:85
23386 #, no-wrap
23387 msgid ""
23388 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
23389 " Found 1 nodes:\n"
23390 " -- NODE --\n"
23391 " <source dev=\"/dev/vg/lv_guest\" />\n"
23392 "\n"
23393 msgstr ""
23394
23395 #. type: =item
23396 #: ../resize/virt-resize.pod:90
23397 msgid "3. Look at current sizing"
23398 msgstr ""
23399
23400 #. type: textblock
23401 #: ../resize/virt-resize.pod:92
23402 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
23403 msgstr ""
23404
23405 #. type: verbatim
23406 #: ../resize/virt-resize.pod:95
23407 #, no-wrap
23408 msgid ""
23409 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
23410 " Name       Type       Size  Parent\n"
23411 " /dev/sda1  partition  101M  /dev/sda\n"
23412 " /dev/sda2  partition  7.9G  /dev/sda\n"
23413 " /dev/sda   device     8.0G  -\n"
23414 "\n"
23415 msgstr ""
23416
23417 #. type: textblock
23418 #: ../resize/virt-resize.pod:101
23419 msgid ""
23420 "(This example is a virtual machine with an 8 GB disk which we would like to "
23421 "expand up to 10 GB)."
23422 msgstr ""
23423
23424 #. type: =item
23425 #: ../resize/virt-resize.pod:104
23426 msgid "4. Create output disk"
23427 msgstr ""
23428
23429 #. type: textblock
23430 #: ../resize/virt-resize.pod:106
23431 msgid ""
23432 "Virt-resize cannot do in-place disk modifications.  You have to have space "
23433 "to store the resized output disk."
23434 msgstr ""
23435
23436 #. type: textblock
23437 #: ../resize/virt-resize.pod:109
23438 msgid ""
23439 "To store the resized disk image in a file, create a file of a suitable size:"
23440 msgstr ""
23441
23442 #. type: verbatim
23443 #: ../resize/virt-resize.pod:112
23444 #, no-wrap
23445 msgid ""
23446 " # rm -f outdisk\n"
23447 " # truncate -s 10G outdisk\n"
23448 "\n"
23449 msgstr ""
23450
23451 #. type: textblock
23452 #: ../resize/virt-resize.pod:115
23453 msgid "Or use L<lvcreate(1)> to create a logical volume:"
23454 msgstr ""
23455
23456 #. type: verbatim
23457 #: ../resize/virt-resize.pod:117
23458 #, no-wrap
23459 msgid ""
23460 " # lvcreate -L 10G -n lv_name vg_name\n"
23461 "\n"
23462 msgstr ""
23463
23464 #. type: textblock
23465 #: ../resize/virt-resize.pod:119
23466 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
23467 msgstr ""
23468
23469 #. type: verbatim
23470 #: ../resize/virt-resize.pod:121
23471 #, no-wrap
23472 msgid ""
23473 " # virsh pool-list\n"
23474 " # virsh vol-create-as poolname newvol 10G\n"
23475 "\n"
23476 msgstr ""
23477
23478 #. type: =item
23479 #: ../resize/virt-resize.pod:124
23480 msgid "5. Resize"
23481 msgstr "5. Зміна розміру"
23482
23483 #. type: textblock
23484 #: ../resize/virt-resize.pod:126
23485 msgid ""
23486 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
23487 "file) and the output disk.  The output disk is the one created in the "
23488 "previous step."
23489 msgstr ""
23490
23491 #. type: verbatim
23492 #: ../resize/virt-resize.pod:130
23493 #, no-wrap
23494 msgid ""
23495 " # virt-resize indisk outdisk\n"
23496 "\n"
23497 msgstr ""
23498
23499 #. type: textblock
23500 #: ../resize/virt-resize.pod:132
23501 msgid ""
23502 "This command just copies disk image C<indisk> to disk image C<outdisk> "
23503 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
23504 "larger, then an extra, empty partition is created at the end of the disk "
23505 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
23506 "error."
23507 msgstr ""
23508
23509 #. type: textblock
23510 #: ../resize/virt-resize.pod:138
23511 msgid ""
23512 "More realistically you'd want to expand existing partitions in the disk "
23513 "image by passing extra options (for the full list see the L</OPTIONS> "
23514 "section below)."
23515 msgstr ""
23516
23517 #. type: textblock
23518 #: ../resize/virt-resize.pod:142
23519 msgid ""
23520 "L</--expand> is the most useful option.  It expands the named partition "
23521 "within the disk to fill any extra space:"
23522 msgstr ""
23523
23524 #. type: verbatim
23525 #: ../resize/virt-resize.pod:145
23526 #, no-wrap
23527 msgid ""
23528 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
23529 "\n"
23530 msgstr ""
23531
23532 #. type: textblock
23533 #: ../resize/virt-resize.pod:147
23534 msgid ""
23535 "(In this case, an extra partition is I<not> created at the end of the disk, "
23536 "because there will be no unused space)."
23537 msgstr ""
23538
23539 #. type: textblock
23540 #: ../resize/virt-resize.pod:150
23541 msgid ""
23542 "L</--resize> is the other commonly used option.  The following would "
23543 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
23544 "rest of the available space:"
23545 msgstr ""
23546
23547 #. type: verbatim
23548 #: ../resize/virt-resize.pod:154
23549 #, no-wrap
23550 msgid ""
23551 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
23552 "     indisk outdisk\n"
23553 "\n"
23554 msgstr ""
23555
23556 #. type: textblock
23557 #: ../resize/virt-resize.pod:157
23558 msgid ""
23559 "If the expanded partition in the image contains a filesystem or LVM PV, then "
23560 "if virt-resize knows how, it will resize the contents, the equivalent of "
23561 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
23562 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
23563 "filesystems, so you would have to online resize them after booting the guest."
23564 msgstr ""
23565
23566 #. type: textblock
23567 #: ../resize/virt-resize.pod:164
23568 msgid "Other options are covered below."
23569 msgstr ""
23570
23571 #. type: =item
23572 #: ../resize/virt-resize.pod:166
23573 msgid "6. Test"
23574 msgstr "6. Перевірка"
23575
23576 #. type: textblock
23577 #: ../resize/virt-resize.pod:168
23578 msgid "Thoroughly test the new disk image I<before> discarding the old one."
23579 msgstr ""
23580
23581 #. type: textblock
23582 #: ../resize/virt-resize.pod:170
23583 msgid "If you are using libvirt, edit the XML to point at the new disk:"
23584 msgstr ""
23585
23586 #. type: verbatim
23587 #: ../resize/virt-resize.pod:172
23588 #, no-wrap
23589 msgid ""
23590 " # virsh edit guestname\n"
23591 "\n"
23592 msgstr ""
23593
23594 #. type: textblock
23595 #: ../resize/virt-resize.pod:174
23596 msgid ""
23597 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
23598 "html#elementsDisks>"
23599 msgstr ""
23600
23601 #. type: textblock
23602 #: ../resize/virt-resize.pod:177
23603 msgid "Then start up the domain with the new, resized disk:"
23604 msgstr ""
23605
23606 #. type: verbatim
23607 #: ../resize/virt-resize.pod:179
23608 #, no-wrap
23609 msgid ""
23610 " # virsh start guestname\n"
23611 "\n"
23612 msgstr ""
23613
23614 #. type: textblock
23615 #: ../resize/virt-resize.pod:181
23616 msgid ""
23617 "and check that it still works.  See also the L</NOTES> section below for "
23618 "additional information."
23619 msgstr ""
23620
23621 #. type: =item
23622 #: ../resize/virt-resize.pod:184
23623 msgid "7. Resize LVs etc inside the guest"
23624 msgstr ""
23625
23626 #. type: textblock
23627 #: ../resize/virt-resize.pod:186
23628 msgid "(This can also be done offline using L<guestfish(1)>)"
23629 msgstr ""
23630
23631 #. type: textblock
23632 #: ../resize/virt-resize.pod:188
23633 msgid ""
23634 "Once the guest has booted you should see the new space available, at least "
23635 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
23636 "may need to resize LVs inside PVs, and also resize filesystem types that "
23637 "virt-resize does not know how to expand."
23638 msgstr ""
23639
23640 #. type: =head2
23641 #: ../resize/virt-resize.pod:195
23642 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23643 msgstr ""
23644
23645 #. type: textblock
23646 #: ../resize/virt-resize.pod:197
23647 msgid ""
23648 "Shrinking is somewhat more complex than expanding, and only an overview is "
23649 "given here."
23650 msgstr ""
23651
23652 #. type: textblock
23653 #: ../resize/virt-resize.pod:200
23654 msgid ""
23655 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23656 "filesystems).  The user has to shrink content before passing the disk image "
23657 "to virt-resize, and virt-resize will check that the content has been shrunk "
23658 "properly."
23659 msgstr ""
23660
23661 #. type: textblock
23662 #: ../resize/virt-resize.pod:205
23663 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23664 msgstr ""
23665
23666 #. type: textblock
23667 #: ../resize/virt-resize.pod:207
23668 msgid ""
23669 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23670 "steps 3 and 4 above to allocate a new disk image."
23671 msgstr ""
23672
23673 #. type: textblock
23674 #: ../resize/virt-resize.pod:210
23675 msgid ""
23676 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23677 msgstr ""
23678
23679 #. type: =head2
23680 #: ../resize/virt-resize.pod:213
23681 msgid "IGNORING OR DELETING PARTITIONS"
23682 msgstr ""
23683
23684 #. type: textblock
23685 #: ../resize/virt-resize.pod:215
23686 msgid ""
23687 "virt-resize also gives a convenient way to ignore or delete partitions when "
23688 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23689 "up the copy where you don't care about the existing contents of a "
23690 "partition.  Deleting a partition removes it completely, but note that it "
23691 "also renumbers any partitions after the one which is deleted, which can "
23692 "leave some guests unbootable."
23693 msgstr ""
23694
23695 #. type: =head2
23696 #: ../resize/virt-resize.pod:222
23697 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23698 msgstr ""
23699
23700 #. type: textblock
23701 #: ../resize/virt-resize.pod:224
23702 msgid ""
23703 "If the input disk is in qcow2 format, then you may prefer that the output is "
23704 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23705 "the fly.  The output format is simply determined by the format of the empty "
23706 "output container that you provide.  Thus to create qcow2 output, use:"
23707 msgstr ""
23708
23709 #. type: verbatim
23710 #: ../resize/virt-resize.pod:230
23711 #, no-wrap
23712 msgid ""
23713 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23714 "\n"
23715 msgstr ""
23716
23717 #. type: textblock
23718 #: ../resize/virt-resize.pod:232
23719 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23720 msgstr ""
23721
23722 #. type: textblock
23723 #: ../resize/virt-resize.pod:234
23724 msgid "Similarly, to get non-sparse raw output use:"
23725 msgstr ""
23726
23727 #. type: verbatim
23728 #: ../resize/virt-resize.pod:236
23729 #, no-wrap
23730 msgid ""
23731 " fallocate -l size outdisk\n"
23732 "\n"
23733 msgstr ""
23734
23735 #. type: textblock
23736 #: ../resize/virt-resize.pod:238
23737 msgid ""
23738 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
23739 "dev/zero of=outdisk bs=1M count=..>)"
23740 msgstr ""
23741
23742 #. type: textblock
23743 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
23744 msgid "Display help."
23745 msgstr ""
23746
23747 #. type: =item
23748 #: ../resize/virt-resize.pod:249
23749 #, fuzzy
23750 #| msgid "B<--ignore part>"
23751 msgid "B<--align-first auto>"
23752 msgstr "B<--ignore розділ>"
23753
23754 #. type: =item
23755 #: ../resize/virt-resize.pod:251
23756 #, fuzzy
23757 #| msgid "B<--listen>"
23758 msgid "B<--align-first never>"
23759 msgstr "B<--listen>"
23760
23761 #. type: =item
23762 #: ../resize/virt-resize.pod:253
23763 msgid "B<--align-first always>"
23764 msgstr ""
23765
23766 #. type: textblock
23767 #: ../resize/virt-resize.pod:255
23768 msgid ""
23769 "Align the first partition for improved performance (see also the I<--"
23770 "alignment> option)."
23771 msgstr ""
23772
23773 #. type: textblock
23774 #: ../resize/virt-resize.pod:258
23775 msgid ""
23776 "The default is I<--align-first auto> which only aligns the first partition "
23777 "if it is safe to do so.  That is, only when we know how to fix the "
23778 "bootloader automatically, and at the moment that can only be done for "
23779 "Windows guests."
23780 msgstr ""
23781
23782 #. type: textblock
23783 #: ../resize/virt-resize.pod:263
23784 msgid ""
23785 "I<--align-first never> means we never move the first partition.  This is the "
23786 "safest option.  Try this if the guest does not boot after resizing."
23787 msgstr ""
23788
23789 #. type: textblock
23790 #: ../resize/virt-resize.pod:267
23791 msgid ""
23792 "I<--align-first always> means we always align the first partition (if it "
23793 "needs to be aligned).  For some guests this will break the bootloader, "
23794 "making the guest unbootable."
23795 msgstr ""
23796
23797 #. type: =item
23798 #: ../resize/virt-resize.pod:271
23799 #, fuzzy
23800 #| msgid "B<--time-t>"
23801 msgid "B<--alignment N>"
23802 msgstr "B<--time-t>"
23803
23804 #. type: textblock
23805 #: ../resize/virt-resize.pod:273
23806 msgid ""
23807 "Set the alignment of partitions to C<N> sectors.  The default in virt-resize "
23808 "E<lt> 1.13.19 was 64 sectors, and after that is 128 sectors."
23809 msgstr ""
23810
23811 #. type: textblock
23812 #: ../resize/virt-resize.pod:277
23813 msgid ""
23814 "Assuming 512 byte sector size inside the guest, here are some suitable "
23815 "values for this:"
23816 msgstr ""
23817
23818 #. type: =item
23819 #: ../resize/virt-resize.pod:282
23820 msgid "I<--alignment 1> (512 bytes)"
23821 msgstr ""
23822
23823 #. type: textblock
23824 #: ../resize/virt-resize.pod:284
23825 msgid ""
23826 "The partitions would be packed together as closely as possible, but would be "
23827 "completely unaligned.  In some cases this can cause very poor performance.  "
23828 "See L<virt-alignment-scan(1)> for further details."
23829 msgstr ""
23830
23831 #. type: =item
23832 #: ../resize/virt-resize.pod:288
23833 msgid "I<--alignment 8> (4K)"
23834 msgstr ""
23835
23836 #. type: textblock
23837 #: ../resize/virt-resize.pod:290
23838 msgid ""
23839 "This would be the minimum acceptable alignment for reasonable performance on "
23840 "modern hosts."
23841 msgstr ""
23842
23843 #. type: =item
23844 #: ../resize/virt-resize.pod:293
23845 msgid "I<--alignment 128> (64K)"
23846 msgstr ""
23847
23848 #. type: textblock
23849 #: ../resize/virt-resize.pod:295
23850 msgid ""
23851 "This alignment provides good performance when the host is using high end "
23852 "network storage."
23853 msgstr ""
23854
23855 #. type: =item
23856 #: ../resize/virt-resize.pod:298
23857 msgid "I<--alignment 2048> (1M)"
23858 msgstr ""
23859
23860 #. type: textblock
23861 #: ../resize/virt-resize.pod:300
23862 msgid ""
23863 "This is the standard alignment used by all newly installed guests since "
23864 "around 2008."
23865 msgstr ""
23866
23867 #. type: =item
23868 #: ../resize/virt-resize.pod:305
23869 msgid "B<-d>"
23870 msgstr "B<-d>"
23871
23872 #. type: =item
23873 #: ../resize/virt-resize.pod:307 ../tools/virt-make-fs.pl:177
23874 #: ../tools/virt-win-reg.pl:120
23875 msgid "B<--debug>"
23876 msgstr "B<--debug>"
23877
23878 #. type: textblock
23879 #: ../resize/virt-resize.pod:309 ../tools/virt-win-reg.pl:122
23880 msgid "Enable debugging messages."
23881 msgstr ""
23882
23883 #. type: =item
23884 #: ../resize/virt-resize.pod:311
23885 msgid "B<--delete part>"
23886 msgstr "B<--delete розділ>"
23887
23888 #. type: textblock
23889 #: ../resize/virt-resize.pod:313
23890 msgid ""
23891 "Delete the named partition.  It would be more accurate to describe this as "
23892 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
23893 "the original disk image is left intact."
23894 msgstr ""
23895
23896 #. type: textblock
23897 #: ../resize/virt-resize.pod:317
23898 msgid ""
23899 "Note that when you delete a partition, then anything contained in the "
23900 "partition is also deleted.  Furthermore, this causes any partitions that "
23901 "come after to be I<renumbered>, which can easily make your guest unbootable."
23902 msgstr ""
23903
23904 #. type: textblock
23905 #: ../resize/virt-resize.pod:322 ../resize/virt-resize.pod:383
23906 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:145
23907 msgid "You can give this option multiple times."
23908 msgstr ""
23909
23910 #. type: =item
23911 #: ../resize/virt-resize.pod:324
23912 msgid "B<--expand part>"
23913 msgstr "B<--expand розділ>"
23914
23915 #. type: textblock
23916 #: ../resize/virt-resize.pod:326
23917 msgid ""
23918 "Expand the named partition so it uses up all extra space (space left over "
23919 "after any other resize changes that you request have been done)."
23920 msgstr ""
23921
23922 #. type: textblock
23923 #: ../resize/virt-resize.pod:329
23924 msgid ""
23925 "If virt-resize knows how, it will expand the direct content of the "
23926 "partition.  For example, if the partition is an LVM PV, it will expand the "
23927 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
23928 "content it doesn't know about alone."
23929 msgstr ""
23930
23931 #. type: textblock
23932 #: ../resize/virt-resize.pod:334
23933 msgid "Currently virt-resize can resize:"
23934 msgstr ""
23935
23936 #. type: textblock
23937 #: ../resize/virt-resize.pod:340
23938 msgid "ext2, ext3 and ext4 filesystems."
23939 msgstr ""
23940
23941 #. type: textblock
23942 #: ../resize/virt-resize.pod:344
23943 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
23944 msgstr ""
23945
23946 #. type: textblock
23947 #: ../resize/virt-resize.pod:346
23948 msgid ""
23949 "The filesystem must have been shut down consistently last time it was used.  "
23950 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
23951 "consistency check, so at the first boot after resizing Windows will check "
23952 "the disk."
23953 msgstr ""
23954
23955 #. type: textblock
23956 #: ../resize/virt-resize.pod:353
23957 msgid ""
23958 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
23959 "inside the PV, but see the I<--LV-expand> option.  The user could also "
23960 "resize LVs as desired after boot."
23961 msgstr ""
23962
23963 #. type: textblock
23964 #: ../resize/virt-resize.pod:359
23965 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
23966 msgstr ""
23967
23968 #. type: textblock
23969 #: ../resize/virt-resize.pod:363 ../resize/virt-resize.pod:538
23970 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
23971 msgstr ""
23972
23973 #. type: =item
23974 #: ../resize/virt-resize.pod:365 ../sparsify/virt-sparsify.pod:125
23975 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
23976 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
23977 msgid "B<--format> raw"
23978 msgstr "B<--format> raw"
23979
23980 #. type: textblock
23981 #: ../resize/virt-resize.pod:367 ../sparsify/virt-sparsify.pod:129
23982 msgid ""
23983 "Specify the format of the input disk image.  If this flag is not given then "
23984 "it is auto-detected from the image itself."
23985 msgstr ""
23986
23987 #. type: textblock
23988 #: ../resize/virt-resize.pod:373
23989 msgid ""
23990 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
23991 "AND NON-SPARSE RAW FORMATS>."
23992 msgstr ""
23993
23994 #. type: =item
23995 #: ../resize/virt-resize.pod:376
23996 msgid "B<--ignore part>"
23997 msgstr "B<--ignore розділ>"
23998
23999 #. type: textblock
24000 #: ../resize/virt-resize.pod:378
24001 msgid ""
24002 "Ignore the named partition.  Effectively this means the partition is "
24003 "allocated on the destination disk, but the content is not copied across from "
24004 "the source disk.  The content of the partition will be blank (all zero "
24005 "bytes)."
24006 msgstr ""
24007
24008 #. type: =item
24009 #: ../resize/virt-resize.pod:385
24010 msgid "B<--LV-expand logvol>"
24011 msgstr "B<--LV-expand логічний_том>"
24012
24013 #. type: textblock
24014 #: ../resize/virt-resize.pod:387
24015 msgid ""
24016 "This takes the logical volume and, as a final step, expands it to fill all "
24017 "the space available in its volume group.  A typical usage, assuming a Linux "
24018 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
24019 "lv_root> would be:"
24020 msgstr ""
24021
24022 #. type: verbatim
24023 #: ../resize/virt-resize.pod:392
24024 #, no-wrap
24025 msgid ""
24026 " virt-resize indisk outdisk \\\n"
24027 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
24028 "\n"
24029 msgstr ""
24030
24031 #. type: textblock
24032 #: ../resize/virt-resize.pod:395
24033 msgid ""
24034 "This would first expand the partition (and PV), and then expand the root "
24035 "device to fill the extra space in the PV."
24036 msgstr ""
24037
24038 #. type: textblock
24039 #: ../resize/virt-resize.pod:398
24040 msgid ""
24041 "The contents of the LV are also resized if virt-resize knows how to do "
24042 "that.  You can stop virt-resize from trying to expand the content by using "
24043 "the option I<--no-expand-content>."
24044 msgstr ""
24045
24046 #. type: textblock
24047 #: ../resize/virt-resize.pod:402
24048 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
24049 msgstr ""
24050
24051 #. type: textblock
24052 #: ../resize/virt-resize.pod:404
24053 msgid ""
24054 "You can give this option multiple times, I<but> it doesn't make sense to do "
24055 "this unless the logical volumes you specify are all in different volume "
24056 "groups."
24057 msgstr ""
24058
24059 #. type: =item
24060 #: ../resize/virt-resize.pod:408 ../sparsify/virt-sparsify.pod:147
24061 msgid "B<--machine-readable>"
24062 msgstr ""
24063
24064 #. type: textblock
24065 #: ../resize/virt-resize.pod:410 ../sparsify/virt-sparsify.pod:149
24066 msgid ""
24067 "This option is used to make the output more machine friendly when being "
24068 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
24069 msgstr ""
24070
24071 #. type: =item
24072 #: ../resize/virt-resize.pod:416
24073 msgid "B<--dryrun>"
24074 msgstr "B<--dryrun>"
24075
24076 #. type: textblock
24077 #: ../resize/virt-resize.pod:418
24078 msgid "Print a summary of what would be done, but don't do anything."
24079 msgstr ""
24080
24081 #. type: =item
24082 #: ../resize/virt-resize.pod:420
24083 msgid "B<--no-copy-boot-loader>"
24084 msgstr "B<--no-copy-boot-loader>"
24085
24086 #. type: textblock
24087 #: ../resize/virt-resize.pod:422
24088 msgid ""
24089 "By default, virt-resize copies over some sectors at the start of the disk "
24090 "(up to the beginning of the first partition).  Commonly these sectors "
24091 "contain the Master Boot Record (MBR) and the boot loader, and are required "
24092 "in order for the guest to boot correctly."
24093 msgstr ""
24094
24095 #. type: textblock
24096 #: ../resize/virt-resize.pod:427
24097 msgid ""
24098 "If you specify this flag, then this initial copy is not done.  You may need "
24099 "to reinstall the boot loader in this case."
24100 msgstr ""
24101
24102 #. type: =item
24103 #: ../resize/virt-resize.pod:430
24104 msgid "B<--no-extra-partition>"
24105 msgstr "B<--no-extra-partition>"
24106
24107 #. type: textblock
24108 #: ../resize/virt-resize.pod:432
24109 msgid ""
24110 "By default, virt-resize creates an extra partition if there is any extra, "
24111 "unused space after all resizing has happened.  Use this option to prevent "
24112 "the extra partition from being created.  If you do this then the extra space "
24113 "will be inaccessible until you run fdisk, parted, or some other partitioning "
24114 "tool in the guest."
24115 msgstr ""
24116
24117 #. type: textblock
24118 #: ../resize/virt-resize.pod:438
24119 msgid ""
24120 "Note that if the surplus space is smaller than 10 MB, no extra partition "
24121 "will be created."
24122 msgstr ""
24123
24124 #. type: =item
24125 #: ../resize/virt-resize.pod:441
24126 msgid "B<--no-expand-content>"
24127 msgstr "B<--no-expand-content>"
24128
24129 #. type: textblock
24130 #: ../resize/virt-resize.pod:443
24131 msgid ""
24132 "By default, virt-resize will try to expand the direct contents of "
24133 "partitions, if it knows how (see I<--expand> option above)."
24134 msgstr ""
24135
24136 #. type: textblock
24137 #: ../resize/virt-resize.pod:446
24138 msgid ""
24139 "If you give the I<--no-expand-content> option then virt-resize will not "
24140 "attempt this."
24141 msgstr ""
24142
24143 #. type: =item
24144 #: ../resize/virt-resize.pod:449
24145 msgid "B<--ntfsresize-force>"
24146 msgstr "B<--ntfsresize-force>"
24147
24148 #. type: textblock
24149 #: ../resize/virt-resize.pod:451
24150 msgid ""
24151 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
24152 "the NTFS disk is marked as needing a consistency check.  You have to use "
24153 "this option if you want to resize a Windows guest multiple times without "
24154 "booting into Windows between each resize."
24155 msgstr ""
24156
24157 #. type: =item
24158 #: ../resize/virt-resize.pod:457
24159 msgid "B<--output-format> raw"
24160 msgstr "B<--output-format> raw"
24161
24162 #. type: textblock
24163 #: ../resize/virt-resize.pod:459
24164 msgid ""
24165 "Specify the format of the output disk image.  If this flag is not given then "
24166 "it is auto-detected from the image itself."
24167 msgstr ""
24168
24169 #. type: textblock
24170 #: ../resize/virt-resize.pod:465
24171 msgid ""
24172 "Note that this option I<does not create> the output format.  This option "
24173 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
24174 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
24175 "SPARSE RAW FORMATS>."
24176 msgstr ""
24177
24178 #. type: textblock
24179 #: ../resize/virt-resize.pod:474
24180 msgid "Don't print the summary."
24181 msgstr ""
24182
24183 #. type: =item
24184 #: ../resize/virt-resize.pod:476
24185 msgid "B<--resize part=size>"
24186 msgstr "B<--resize розділ=розмір>"
24187
24188 #. type: textblock
24189 #: ../resize/virt-resize.pod:478
24190 msgid ""
24191 "Resize the named partition (expanding or shrinking it) so that it has the "
24192 "given size."
24193 msgstr ""
24194
24195 #. type: textblock
24196 #: ../resize/virt-resize.pod:481
24197 msgid ""
24198 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
24199 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
24200 "size; or as a relative number or percentage.  For example:"
24201 msgstr ""
24202
24203 #. type: verbatim
24204 #: ../resize/virt-resize.pod:487
24205 #, no-wrap
24206 msgid ""
24207 " --resize /dev/sda2=10G\n"
24208 "\n"
24209 msgstr ""
24210
24211 #. type: verbatim
24212 #: ../resize/virt-resize.pod:489
24213 #, no-wrap
24214 msgid ""
24215 " --resize /dev/sda4=90%\n"
24216 "\n"
24217 msgstr ""
24218
24219 #. type: verbatim
24220 #: ../resize/virt-resize.pod:491
24221 #, no-wrap
24222 msgid ""
24223 " --resize /dev/sda2=+1G\n"
24224 "\n"
24225 msgstr ""
24226
24227 #. type: verbatim
24228 #: ../resize/virt-resize.pod:493
24229 #, no-wrap
24230 msgid ""
24231 " --resize /dev/sda2=-200M\n"
24232 "\n"
24233 msgstr ""
24234
24235 #. type: verbatim
24236 #: ../resize/virt-resize.pod:495
24237 #, no-wrap
24238 msgid ""
24239 " --resize /dev/sda1=+128K\n"
24240 "\n"
24241 msgstr ""
24242
24243 #. type: verbatim
24244 #: ../resize/virt-resize.pod:497
24245 #, no-wrap
24246 msgid ""
24247 " --resize /dev/sda1=+10%\n"
24248 "\n"
24249 msgstr ""
24250
24251 #. type: verbatim
24252 #: ../resize/virt-resize.pod:499
24253 #, no-wrap
24254 msgid ""
24255 " --resize /dev/sda1=-10%\n"
24256 "\n"
24257 msgstr ""
24258
24259 #. type: textblock
24260 #: ../resize/virt-resize.pod:501
24261 msgid ""
24262 "You can increase the size of any partition.  Virt-resize will expand the "
24263 "direct content of the partition if it knows how (see I<--expand> below)."
24264 msgstr ""
24265
24266 #. type: textblock
24267 #: ../resize/virt-resize.pod:505
24268 msgid ""
24269 "You can only I<decrease> the size of partitions that contain filesystems or "
24270 "PVs which have already been shrunk.  Virt-resize will check this has been "
24271 "done before proceeding, or else will print an error (see also I<--resize-"
24272 "force>)."
24273 msgstr ""
24274
24275 #. type: =item
24276 #: ../resize/virt-resize.pod:512
24277 msgid "B<--resize-force part=size>"
24278 msgstr "B<--resize-force розділ=розмір>"
24279
24280 #. type: textblock
24281 #: ../resize/virt-resize.pod:514
24282 msgid ""
24283 "This is the same as I<--resize> except that it will let you decrease the "
24284 "size of any partition.  Generally this means you will lose any data which "
24285 "was at the end of the partition you shrink, but you may not care about that "
24286 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
24287 "as a swap partition)."
24288 msgstr ""
24289
24290 #. type: textblock
24291 #: ../resize/virt-resize.pod:520
24292 msgid "See also the I<--ignore> option."
24293 msgstr ""
24294
24295 #. type: =item
24296 #: ../resize/virt-resize.pod:522
24297 msgid "B<--shrink part>"
24298 msgstr "B<--shrink розділ>"
24299
24300 #. type: textblock
24301 #: ../resize/virt-resize.pod:524
24302 msgid ""
24303 "Shrink the named partition until the overall disk image fits in the "
24304 "destination.  The named partition B<must> contain a filesystem or PV which "
24305 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
24306 "online tools).  Virt-resize will check this and give an error if it has not "
24307 "been done."
24308 msgstr ""
24309
24310 #. type: textblock
24311 #: ../resize/virt-resize.pod:530
24312 msgid ""
24313 "The amount by which the overall disk must be shrunk (after carrying out all "
24314 "other operations requested by the user) is called the \"deficit\".  For "
24315 "example, a straight copy (assume no other operations)  from a 5GB disk image "
24316 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
24317 "would give an error unless the user specified a partition to shrink and that "
24318 "partition had more than a gigabyte of free space."
24319 msgstr ""
24320
24321 #. type: =head1
24322 #: ../resize/virt-resize.pod:548 ../sparsify/virt-sparsify.pod:177
24323 msgid "MACHINE READABLE OUTPUT"
24324 msgstr ""
24325
24326 #. type: textblock
24327 #: ../resize/virt-resize.pod:550
24328 msgid ""
24329 "The I<--machine-readable> option can be used to make the output more machine "
24330 "friendly, which is useful when calling virt-resize from other programs, GUIs "
24331 "etc."
24332 msgstr ""
24333
24334 #. type: textblock
24335 #: ../resize/virt-resize.pod:554 ../sparsify/virt-sparsify.pod:183
24336 msgid "There are two ways to use this option."
24337 msgstr ""
24338
24339 #. type: textblock
24340 #: ../resize/virt-resize.pod:556
24341 msgid ""
24342 "Firstly use the option on its own to query the capabilities of the virt-"
24343 "resize binary.  Typical output looks like this:"
24344 msgstr ""
24345
24346 #. type: verbatim
24347 #: ../resize/virt-resize.pod:559
24348 #, no-wrap
24349 msgid ""
24350 " $ virt-resize --machine-readable\n"
24351 " virt-resize\n"
24352 " ntfsresize-force\n"
24353 " 32bitok\n"
24354 " ntfs\n"
24355 " btrfs\n"
24356 "\n"
24357 msgstr ""
24358
24359 #. type: textblock
24360 #: ../resize/virt-resize.pod:566 ../sparsify/virt-sparsify.pod:193
24361 msgid ""
24362 "A list of features is printed, one per line, and the program exits with "
24363 "status 0."
24364 msgstr ""
24365
24366 #. type: textblock
24367 #: ../resize/virt-resize.pod:569 ../sparsify/virt-sparsify.pod:196
24368 msgid ""
24369 "Secondly use the option in conjunction with other options to make the "
24370 "regular program output more machine friendly."
24371 msgstr ""
24372
24373 #. type: textblock
24374 #: ../resize/virt-resize.pod:572 ../sparsify/virt-sparsify.pod:199
24375 msgid "At the moment this means:"
24376 msgstr ""
24377
24378 #. type: textblock
24379 #: ../resize/virt-resize.pod:578 ../sparsify/virt-sparsify.pod:205
24380 msgid ""
24381 "Progress bar messages can be parsed from stdout by looking for this regular "
24382 "expression:"
24383 msgstr ""
24384
24385 #. type: verbatim
24386 #: ../resize/virt-resize.pod:581 ../sparsify/virt-sparsify.pod:208
24387 #, no-wrap
24388 msgid ""
24389 " ^[0-9]+/[0-9]+$\n"
24390 "\n"
24391 msgstr ""
24392
24393 #. type: textblock
24394 #: ../resize/virt-resize.pod:585 ../sparsify/virt-sparsify.pod:212
24395 msgid ""
24396 "The calling program should treat messages sent to stdout (except for "
24397 "progress bar messages) as status messages.  They can be logged and/or "
24398 "displayed to the user."
24399 msgstr ""
24400
24401 #. type: textblock
24402 #: ../resize/virt-resize.pod:591
24403 msgid ""
24404 "The calling program should treat messages sent to stderr as error messages.  "
24405 "In addition, virt-resize exits with a non-zero status code if there was a "
24406 "fatal error."
24407 msgstr ""
24408
24409 #. type: textblock
24410 #: ../resize/virt-resize.pod:597
24411 msgid ""
24412 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
24413 "readable> option and will return an error."
24414 msgstr ""
24415
24416 #. type: =head2
24417 #: ../resize/virt-resize.pod:602
24418 msgid "\"Partition 1 does not end on cylinder boundary.\""
24419 msgstr ""
24420
24421 #. type: textblock
24422 #: ../resize/virt-resize.pod:604
24423 msgid ""
24424 "Virt-resize aligns partitions to multiples of 128 sectors (see the I<--"
24425 "alignment> parameter).  Usually this means the partitions will not be "
24426 "aligned to the ancient CHS geometry.  However CHS geometry is meaningless "
24427 "for disks manufactured since the early 1990s, and doubly so for virtual hard "
24428 "drives.  Alignment of partitions to cylinders is not required by any modern "
24429 "operating system."
24430 msgstr ""
24431
24432 #. type: =head2
24433 #: ../resize/virt-resize.pod:611
24434 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
24435 msgstr ""
24436
24437 #. type: textblock
24438 #: ../resize/virt-resize.pod:613
24439 msgid ""
24440 "In Windows Vista and later versions, Microsoft switched to using a separate "
24441 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
24442 "and C</dev/sda2> is the main (C:) drive.  Resizing the first (boot) "
24443 "partition causes the bootloader to fail with C<0xC0000225> error.  Resizing "
24444 "the second partition (ie. C: drive)  should work."
24445 msgstr ""
24446
24447 #. type: textblock
24448 #: ../resize/virt-resize.pod:620
24449 msgid ""
24450 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
24451 "NTFS partitions have been expanded.  This is just a safety check and (unless "
24452 "it find errors) is nothing to worry about."
24453 msgstr ""
24454
24455 #. type: =head2
24456 #: ../resize/virt-resize.pod:624
24457 msgid "GUEST BOOT STUCK AT \"GRUB\""
24458 msgstr ""
24459
24460 #. type: textblock
24461 #: ../resize/virt-resize.pod:626
24462 msgid ""
24463 "If a Linux guest does not boot after resizing, and the boot is stuck after "
24464 "printing C<GRUB> on the console, try reinstalling grub."
24465 msgstr ""
24466
24467 #. type: verbatim
24468 #: ../resize/virt-resize.pod:629
24469 #, no-wrap
24470 msgid ""
24471 " guestfish -i -a newdisk\n"
24472 " ><fs> cat /boot/grub/device.map\n"
24473 " # check the contents of this file are sensible or\n"
24474 " # edit the file if necessary\n"
24475 " ><fs> grub-install / /dev/vda\n"
24476 " ><fs> exit\n"
24477 "\n"
24478 msgstr ""
24479
24480 #. type: textblock
24481 #: ../resize/virt-resize.pod:636
24482 msgid ""
24483 "For more flexible guest reconfiguration, including if you need to specify "
24484 "other parameters to grub-install, use L<virt-rescue(1)>."
24485 msgstr ""
24486
24487 #. type: =head1
24488 #: ../resize/virt-resize.pod:639
24489 msgid "ALTERNATIVE TOOLS"
24490 msgstr ""
24491
24492 #. type: textblock
24493 #: ../resize/virt-resize.pod:641
24494 msgid ""
24495 "There are several proprietary tools for resizing partitions.  We won't "
24496 "mention any here."
24497 msgstr ""
24498
24499 #. type: textblock
24500 #: ../resize/virt-resize.pod:644
24501 msgid ""
24502 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
24503 "operations on disk images.  They can resize and move partitions, but I don't "
24504 "think they can do anything with the contents, and they certainly don't "
24505 "understand LVM."
24506 msgstr ""
24507
24508 #. type: textblock
24509 #: ../resize/virt-resize.pod:649
24510 msgid ""
24511 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
24512 "but at a much lower level.  You will probably end up hand-calculating sector "
24513 "offsets, which is something that virt-resize was designed to avoid.  If you "
24514 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
24515 "I<--debug> flag."
24516 msgstr ""
24517
24518 #. type: textblock
24519 #: ../resize/virt-resize.pod:669
24520 msgid ""
24521 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
24522 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
24523 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
24524 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
24525 "L<virt-alignment-scan(1)>, L<http://libguestfs.org/>."
24526 msgstr ""
24527
24528 #. type: textblock
24529 #: ../ruby/examples/guestfs-ruby.pod:5
24530 msgid "guestfs-ruby - How to use libguestfs from Ruby"
24531 msgstr ""
24532
24533 #. type: verbatim
24534 #: ../ruby/examples/guestfs-ruby.pod:9
24535 #, no-wrap
24536 msgid ""
24537 " require 'guestfs'\n"
24538 " g = Guestfs::Guestfs.new()\n"
24539 " g.add_drive_opts(\"disk.img\",\n"
24540 "                  :readonly => 1, :format => \"raw\")\n"
24541 " g.launch()\n"
24542 "\n"
24543 msgstr ""
24544
24545 #. type: textblock
24546 #: ../ruby/examples/guestfs-ruby.pod:17
24547 msgid ""
24548 "This manual page documents how to call libguestfs from the Ruby programming "
24549 "language.  This page just documents the differences from the C API and gives "
24550 "some examples.  If you are not familiar with using libguestfs, you also need "
24551 "to read L<guestfs(3)>."
24552 msgstr ""
24553
24554 #. type: textblock
24555 #: ../ruby/examples/guestfs-ruby.pod:24
24556 msgid ""
24557 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
24558 "This has a single parameter which is the error message (a string)."
24559 msgstr ""
24560
24561 #. type: textblock
24562 #: ../ruby/examples/guestfs-ruby.pod:38
24563 msgid ""
24564 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
24565 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
24566 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
24567 msgstr ""
24568
24569 #. type: textblock
24570 #: ../sparsify/virt-sparsify.pod:5
24571 msgid "virt-sparsify - Make a virtual machine disk sparse"
24572 msgstr ""
24573
24574 #. type: verbatim
24575 #: ../sparsify/virt-sparsify.pod:9
24576 #, no-wrap
24577 msgid ""
24578 " virt-sparsify [--options] indisk outdisk\n"
24579 "\n"
24580 msgstr ""
24581
24582 #. type: textblock
24583 #: ../sparsify/virt-sparsify.pod:13
24584 msgid ""
24585 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
24586 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
24587 "the disk image can be converted back to free space on the host."
24588 msgstr ""
24589
24590 #. type: textblock
24591 #: ../sparsify/virt-sparsify.pod:18
24592 msgid ""
24593 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
24594 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
24595 msgstr ""
24596
24597 #. type: textblock
24598 #: ../sparsify/virt-sparsify.pod:21
24599 msgid ""
24600 "Virt-sparsify can also convert between some disk formats, for example "
24601 "converting a raw disk image to a thin-provisioned qcow2 image."
24602 msgstr ""
24603
24604 #. type: textblock
24605 #: ../sparsify/virt-sparsify.pod:24
24606 msgid ""
24607 "Virt-sparsify can operate on any disk image, not just ones from virtual "
24608 "machines.  If a virtual machine has more than one attached disk, you must "
24609 "sparsify each one separately."
24610 msgstr ""
24611
24612 #. type: =head2
24613 #: ../sparsify/virt-sparsify.pod:28
24614 msgid "IMPORTANT LIMITATIONS"
24615 msgstr ""
24616
24617 #. type: textblock
24618 #: ../sparsify/virt-sparsify.pod:34
24619 msgid ""
24620 "Virt-sparsify does not do in-place modifications.  It copies from a source "
24621 "image to a destination image, leaving the source unchanged.  I<Check that "
24622 "the sparsification was successful before deleting the source image>."
24623 msgstr ""
24624
24625 #. type: textblock
24626 #: ../sparsify/virt-sparsify.pod:41
24627 msgid "The virtual machine I<must be shut down> before using this tool."
24628 msgstr ""
24629
24630 #. type: textblock
24631 #: ../sparsify/virt-sparsify.pod:45
24632 msgid ""
24633 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
24634 "(1 temporary copy + 1 destination image).  This is in the worst case and "
24635 "usually much less space is required."
24636 msgstr ""
24637
24638 #. type: textblock
24639 #: ../sparsify/virt-sparsify.pod:51
24640 msgid ""
24641 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
24642 msgstr ""
24643
24644 #. type: textblock
24645 #: ../sparsify/virt-sparsify.pod:56
24646 msgid "Virt-sparsify cannot handle encrypted disks."
24647 msgstr ""
24648
24649 #. type: textblock
24650 #: ../sparsify/virt-sparsify.pod:60
24651 msgid ""
24652 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
24653 "this space is often used for critical items like bootloaders so it's not "
24654 "really unused."
24655 msgstr ""
24656
24657 #. type: textblock
24658 #: ../sparsify/virt-sparsify.pod:66
24659 msgid ""
24660 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
24661 "to do this unless we can be sure there is no hibernation data, so at the "
24662 "moment swap partitions are ignored."
24663 msgstr ""
24664
24665 #. type: textblock
24666 #: ../sparsify/virt-sparsify.pod:72
24667 msgid ""
24668 "You may also want to read the manual pages for the associated tools L<virt-"
24669 "filesystems(1)> and L<virt-df(1)> before starting."
24670 msgstr ""
24671
24672 #. type: textblock
24673 #: ../sparsify/virt-sparsify.pod:77
24674 msgid "Typical usage is:"
24675 msgstr ""
24676
24677 #. type: verbatim
24678 #: ../sparsify/virt-sparsify.pod:79
24679 #, no-wrap
24680 msgid ""
24681 " virt-sparsify indisk outdisk\n"
24682 "\n"
24683 msgstr ""
24684
24685 #. type: textblock
24686 #: ../sparsify/virt-sparsify.pod:81
24687 msgid ""
24688 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24689 "is created, or overwritten if it already exists.  The format of the input "
24690 "disk is detected (eg. qcow2) and the same format is used for the output disk."
24691 msgstr ""
24692
24693 #. type: textblock
24694 #: ../sparsify/virt-sparsify.pod:86
24695 msgid "To convert between formats, use the I<--convert> option:"
24696 msgstr ""
24697
24698 #. type: verbatim
24699 #: ../sparsify/virt-sparsify.pod:88
24700 #, no-wrap
24701 msgid ""
24702 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24703 "\n"
24704 msgstr ""
24705
24706 #. type: textblock
24707 #: ../sparsify/virt-sparsify.pod:90
24708 msgid ""
24709 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24710 "can find within the source disk image.  You can get it to ignore (don't zero "
24711 "free space on) certain filesystems by doing:"
24712 msgstr ""
24713
24714 #. type: verbatim
24715 #: ../sparsify/virt-sparsify.pod:94
24716 #, no-wrap
24717 msgid ""
24718 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24719 "\n"
24720 msgstr ""
24721
24722 #. type: textblock
24723 #: ../sparsify/virt-sparsify.pod:96
24724 msgid ""
24725 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24726 msgstr ""
24727
24728 #. type: =item
24729 #: ../sparsify/virt-sparsify.pod:107
24730 msgid "B<--convert> raw"
24731 msgstr ""
24732
24733 #. type: =item
24734 #: ../sparsify/virt-sparsify.pod:109
24735 msgid "B<--convert> qcow2"
24736 msgstr ""
24737
24738 #. type: =item
24739 #: ../sparsify/virt-sparsify.pod:111
24740 msgid "B<--convert> [other formats]"
24741 msgstr ""
24742
24743 #. type: textblock
24744 #: ../sparsify/virt-sparsify.pod:113
24745 msgid ""
24746 "Use C<output-format> as the format for the destination image.  If this is "
24747 "not specified, then the input format is used."
24748 msgstr ""
24749
24750 #. type: textblock
24751 #: ../sparsify/virt-sparsify.pod:116
24752 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24753 msgstr ""
24754
24755 #. type: textblock
24756 #: ../sparsify/virt-sparsify.pod:118
24757 msgid ""
24758 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
24759 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
24760 msgstr ""
24761
24762 #. type: textblock
24763 #: ../sparsify/virt-sparsify.pod:122
24764 msgid ""
24765 "Specifying the I<--convert> option is usually a good idea, because then virt-"
24766 "sparsify doesn't need to try to guess the input format."
24767 msgstr ""
24768
24769 #. type: =item
24770 #: ../sparsify/virt-sparsify.pod:127
24771 msgid "B<--format> qcow2"
24772 msgstr ""
24773
24774 #. type: =item
24775 #: ../sparsify/virt-sparsify.pod:135
24776 msgid "B<--ignore> filesystem"
24777 msgstr ""
24778
24779 #. type: =item
24780 #: ../sparsify/virt-sparsify.pod:137
24781 msgid "B<--ignore> volgroup"
24782 msgstr ""
24783
24784 #. type: textblock
24785 #: ../sparsify/virt-sparsify.pod:139
24786 msgid ""
24787 "Ignore the named filesystem.  Free space on the filesystem will not be "
24788 "zeroed, but existing blocks of zeroes will still be sparsified."
24789 msgstr ""
24790
24791 #. type: textblock
24792 #: ../sparsify/virt-sparsify.pod:142
24793 msgid ""
24794 "In the second form, this ignores the named volume group.  Use the volume "
24795 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24796 msgstr ""
24797
24798 #. type: textblock
24799 #: ../sparsify/virt-sparsify.pod:157
24800 msgid "This disables progress bars and other unnecessary output."
24801 msgstr ""
24802
24803 #. type: textblock
24804 #: ../sparsify/virt-sparsify.pod:179
24805 msgid ""
24806 "The I<--machine-readable> option can be used to make the output more machine "
24807 "friendly, which is useful when calling virt-sparsify from other programs, "
24808 "GUIs etc."
24809 msgstr ""
24810
24811 #. type: textblock
24812 #: ../sparsify/virt-sparsify.pod:185
24813 msgid ""
24814 "Firstly use the option on its own to query the capabilities of the virt-"
24815 "sparsify binary.  Typical output looks like this:"
24816 msgstr ""
24817
24818 #. type: verbatim
24819 #: ../sparsify/virt-sparsify.pod:188
24820 #, no-wrap
24821 msgid ""
24822 " $ virt-sparsify --machine-readable\n"
24823 " virt-sparsify\n"
24824 " ntfs\n"
24825 " btrfs\n"
24826 "\n"
24827 msgstr ""
24828
24829 #. type: textblock
24830 #: ../sparsify/virt-sparsify.pod:218
24831 msgid ""
24832 "The calling program should treat messages sent to stderr as error messages.  "
24833 "In addition, virt-sparsify exits with a non-zero status code if there was a "
24834 "fatal error."
24835 msgstr ""
24836
24837 #. type: textblock
24838 #: ../sparsify/virt-sparsify.pod:224
24839 msgid ""
24840 "All versions of virt-sparsify have supported the I<--machine-readable> "
24841 "option."
24842 msgstr ""
24843
24844 #. type: textblock
24845 #: ../sparsify/virt-sparsify.pod:238
24846 msgid ""
24847 "Location of the temporary directory used for the potentially large temporary "
24848 "overlay file."
24849 msgstr ""
24850
24851 #. type: textblock
24852 #: ../sparsify/virt-sparsify.pod:241
24853 msgid ""
24854 "You should ensure there is enough free space in the worst case for a full "
24855 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
24856 "to another directory that has enough space."
24857 msgstr ""
24858
24859 #. type: textblock
24860 #: ../sparsify/virt-sparsify.pod:245
24861 msgid "This defaults to C</tmp>."
24862 msgstr ""
24863
24864 #. type: textblock
24865 #: ../sparsify/virt-sparsify.pod:249
24866 msgid ""
24867 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
24868 msgstr ""
24869
24870 #. type: textblock
24871 #: ../sparsify/virt-sparsify.pod:253
24872 msgid ""
24873 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
24874 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
24875 "(1)>, L<http://libguestfs.org/>."
24876 msgstr ""
24877
24878 #. type: =head2
24879 #: ../src/guestfs-actions.pod:1
24880 msgid "guestfs_add_cdrom"
24881 msgstr ""
24882
24883 #. type: verbatim
24884 #: ../src/guestfs-actions.pod:3
24885 #, no-wrap
24886 msgid ""
24887 " int\n"
24888 " guestfs_add_cdrom (guestfs_h *g,\n"
24889 "                    const char *filename);\n"
24890 "\n"
24891 msgstr ""
24892
24893 #. type: textblock
24894 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:255
24895 #: ../src/guestfs-actions.pod:276
24896 msgid ""
24897 "I<This function is deprecated.> In new code, use the L</"
24898 "guestfs_add_drive_opts> call instead."
24899 msgstr ""
24900
24901 #. type: textblock
24902 #: ../src/guestfs-actions.pod:24
24903 msgid ""
24904 "This call checks for the existence of C<filename>.  This stops you from "
24905 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24906 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
24907 "instead."
24908 msgstr ""
24909
24910 #. type: textblock
24911 #: ../src/guestfs-actions.pod:31
24912 msgid ""
24913 "If you just want to add an ISO file (often you use this as an efficient way "
24914 "to transfer large files into the guest), then you should probably use "
24915 "C<guestfs_add_drive_ro> instead."
24916 msgstr ""
24917
24918 #. type: textblock
24919 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
24920 #: ../src/guestfs-actions.pod:207 ../src/guestfs-actions.pod:244
24921 #: ../src/guestfs-actions.pod:265 ../src/guestfs-actions.pod:286
24922 #: ../src/guestfs-actions.pod:299 ../src/guestfs-actions.pod:313
24923 #: ../src/guestfs-actions.pod:433 ../src/guestfs-actions.pod:453
24924 #: ../src/guestfs-actions.pod:467 ../src/guestfs-actions.pod:512
24925 #: ../src/guestfs-actions.pod:540 ../src/guestfs-actions.pod:558
24926 #: ../src/guestfs-actions.pod:625 ../src/guestfs-actions.pod:658
24927 #: ../src/guestfs-actions.pod:672 ../src/guestfs-actions.pod:687
24928 #: ../src/guestfs-actions.pod:786 ../src/guestfs-actions.pod:804
24929 #: ../src/guestfs-actions.pod:818 ../src/guestfs-actions.pod:832
24930 #: ../src/guestfs-actions.pod:869 ../src/guestfs-actions.pod:1052
24931 #: ../src/guestfs-actions.pod:1072 ../src/guestfs-actions.pod:1090
24932 #: ../src/guestfs-actions.pod:1180 ../src/guestfs-actions.pod:1239
24933 #: ../src/guestfs-actions.pod:1285 ../src/guestfs-actions.pod:1303
24934 #: ../src/guestfs-actions.pod:1322 ../src/guestfs-actions.pod:1336
24935 #: ../src/guestfs-actions.pod:1356 ../src/guestfs-actions.pod:1426
24936 #: ../src/guestfs-actions.pod:1457 ../src/guestfs-actions.pod:1482
24937 #: ../src/guestfs-actions.pod:1524 ../src/guestfs-actions.pod:1637
24938 #: ../src/guestfs-actions.pod:1664 ../src/guestfs-actions.pod:1879
24939 #: ../src/guestfs-actions.pod:1901 ../src/guestfs-actions.pod:1988
24940 #: ../src/guestfs-actions.pod:2496 ../src/guestfs-actions.pod:2640
24941 #: ../src/guestfs-actions.pod:2701 ../src/guestfs-actions.pod:2736
24942 #: ../src/guestfs-actions.pod:3793 ../src/guestfs-actions.pod:3808
24943 #: ../src/guestfs-actions.pod:3833 ../src/guestfs-actions.pod:4022
24944 #: ../src/guestfs-actions.pod:4036 ../src/guestfs-actions.pod:4049
24945 #: ../src/guestfs-actions.pod:4063 ../src/guestfs-actions.pod:4078
24946 #: ../src/guestfs-actions.pod:4114 ../src/guestfs-actions.pod:4186
24947 #: ../src/guestfs-actions.pod:4206 ../src/guestfs-actions.pod:4223
24948 #: ../src/guestfs-actions.pod:4246 ../src/guestfs-actions.pod:4269
24949 #: ../src/guestfs-actions.pod:4304 ../src/guestfs-actions.pod:4323
24950 #: ../src/guestfs-actions.pod:4342 ../src/guestfs-actions.pod:4377
24951 #: ../src/guestfs-actions.pod:4389 ../src/guestfs-actions.pod:4425
24952 #: ../src/guestfs-actions.pod:4441 ../src/guestfs-actions.pod:4454
24953 #: ../src/guestfs-actions.pod:4469 ../src/guestfs-actions.pod:4486
24954 #: ../src/guestfs-actions.pod:4579 ../src/guestfs-actions.pod:4599
24955 #: ../src/guestfs-actions.pod:4612 ../src/guestfs-actions.pod:4663
24956 #: ../src/guestfs-actions.pod:4681 ../src/guestfs-actions.pod:4699
24957 #: ../src/guestfs-actions.pod:4715 ../src/guestfs-actions.pod:4729
24958 #: ../src/guestfs-actions.pod:4743 ../src/guestfs-actions.pod:4760
24959 #: ../src/guestfs-actions.pod:4775 ../src/guestfs-actions.pod:4802
24960 #: ../src/guestfs-actions.pod:4865 ../src/guestfs-actions.pod:4938
24961 #: ../src/guestfs-actions.pod:4969 ../src/guestfs-actions.pod:4988
24962 #: ../src/guestfs-actions.pod:5007 ../src/guestfs-actions.pod:5019
24963 #: ../src/guestfs-actions.pod:5036 ../src/guestfs-actions.pod:5049
24964 #: ../src/guestfs-actions.pod:5064 ../src/guestfs-actions.pod:5079
24965 #: ../src/guestfs-actions.pod:5111 ../src/guestfs-actions.pod:5137
24966 #: ../src/guestfs-actions.pod:5176 ../src/guestfs-actions.pod:5196
24967 #: ../src/guestfs-actions.pod:5210 ../src/guestfs-actions.pod:5227
24968 #: ../src/guestfs-actions.pod:5276 ../src/guestfs-actions.pod:5329
24969 #: ../src/guestfs-actions.pod:5376 ../src/guestfs-actions.pod:5419
24970 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5464
24971 #: ../src/guestfs-actions.pod:5482 ../src/guestfs-actions.pod:5622
24972 #: ../src/guestfs-actions.pod:5679 ../src/guestfs-actions.pod:5701
24973 #: ../src/guestfs-actions.pod:5719 ../src/guestfs-actions.pod:5751
24974 #: ../src/guestfs-actions.pod:5817 ../src/guestfs-actions.pod:5834
24975 #: ../src/guestfs-actions.pod:5847 ../src/guestfs-actions.pod:5861
24976 #: ../src/guestfs-actions.pod:6150 ../src/guestfs-actions.pod:6169
24977 #: ../src/guestfs-actions.pod:6188 ../src/guestfs-actions.pod:6202
24978 #: ../src/guestfs-actions.pod:6214 ../src/guestfs-actions.pod:6228
24979 #: ../src/guestfs-actions.pod:6240 ../src/guestfs-actions.pod:6254
24980 #: ../src/guestfs-actions.pod:6270 ../src/guestfs-actions.pod:6291
24981 #: ../src/guestfs-actions.pod:6310 ../src/guestfs-actions.pod:6329
24982 #: ../src/guestfs-actions.pod:6359 ../src/guestfs-actions.pod:6377
24983 #: ../src/guestfs-actions.pod:6400 ../src/guestfs-actions.pod:6418
24984 #: ../src/guestfs-actions.pod:6437 ../src/guestfs-actions.pod:6458
24985 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6494
24986 #: ../src/guestfs-actions.pod:6513 ../src/guestfs-actions.pod:6541
24987 #: ../src/guestfs-actions.pod:6565 ../src/guestfs-actions.pod:6584
24988 #: ../src/guestfs-actions.pod:6600 ../src/guestfs-actions.pod:6624
24989 #: ../src/guestfs-actions.pod:6643 ../src/guestfs-actions.pod:6658
24990 #: ../src/guestfs-actions.pod:6677 ../src/guestfs-actions.pod:6721
24991 #: ../src/guestfs-actions.pod:6751 ../src/guestfs-actions.pod:6784
24992 #: ../src/guestfs-actions.pod:6899 ../src/guestfs-actions.pod:7020
24993 #: ../src/guestfs-actions.pod:7032 ../src/guestfs-actions.pod:7045
24994 #: ../src/guestfs-actions.pod:7058 ../src/guestfs-actions.pod:7080
24995 #: ../src/guestfs-actions.pod:7093 ../src/guestfs-actions.pod:7106
24996 #: ../src/guestfs-actions.pod:7119 ../src/guestfs-actions.pod:7134
24997 #: ../src/guestfs-actions.pod:7193 ../src/guestfs-actions.pod:7210
24998 #: ../src/guestfs-actions.pod:7226 ../src/guestfs-actions.pod:7242
24999 #: ../src/guestfs-actions.pod:7259 ../src/guestfs-actions.pod:7272
25000 #: ../src/guestfs-actions.pod:7292 ../src/guestfs-actions.pod:7328
25001 #: ../src/guestfs-actions.pod:7342 ../src/guestfs-actions.pod:7383
25002 #: ../src/guestfs-actions.pod:7396 ../src/guestfs-actions.pod:7414
25003 #: ../src/guestfs-actions.pod:7448 ../src/guestfs-actions.pod:7484
25004 #: ../src/guestfs-actions.pod:7600 ../src/guestfs-actions.pod:7615
25005 #: ../src/guestfs-actions.pod:7629 ../src/guestfs-actions.pod:7684
25006 #: ../src/guestfs-actions.pod:7697 ../src/guestfs-actions.pod:7742
25007 #: ../src/guestfs-actions.pod:7782 ../src/guestfs-actions.pod:7838
25008 #: ../src/guestfs-actions.pod:7858 ../src/guestfs-actions.pod:7891
25009 #: ../src/guestfs-actions.pod:7955 ../src/guestfs-actions.pod:7978
25010 #: ../src/guestfs-actions.pod:8007
25011 msgid "This function returns 0 on success or -1 on error."
25012 msgstr ""
25013
25014 #. type: textblock
25015 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
25016 #: ../src/guestfs-actions.pod:1287 ../src/guestfs-actions.pod:2102
25017 #: ../src/guestfs-actions.pod:2200 ../src/guestfs-actions.pod:2325
25018 #: ../src/guestfs-actions.pod:3795 ../src/guestfs-actions.pod:3815
25019 #: ../src/guestfs-actions.pod:5113 ../src/guestfs-actions.pod:6379
25020 #: ../src/guestfs-actions.pod:6496 ../src/guestfs-actions.pod:6645
25021 #: ../src/guestfs-actions.pod:7136 ../src/guestfs-actions.pod:7261
25022 #: ../src/guestfs-actions.pod:7784
25023 msgid "(Added in 0.3)"
25024 msgstr "(Додано у 0.3)"
25025
25026 #. type: =head2
25027 #: ../src/guestfs-actions.pod:41
25028 msgid "guestfs_add_domain"
25029 msgstr ""
25030
25031 #. type: verbatim
25032 #: ../src/guestfs-actions.pod:43
25033 #, no-wrap
25034 msgid ""
25035 " int\n"
25036 " guestfs_add_domain (guestfs_h *g,\n"
25037 "                     const char *dom,\n"
25038 "                     ...);\n"
25039 "\n"
25040 msgstr ""
25041
25042 #. type: textblock
25043 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
25044 #: ../src/guestfs-actions.pod:843 ../src/guestfs-actions.pod:1167
25045 #: ../src/guestfs-actions.pod:1219 ../src/guestfs-actions.pod:2993
25046 #: ../src/guestfs-actions.pod:4814 ../src/guestfs-actions.pod:5123
25047 #: ../src/guestfs-actions.pod:5340
25048 msgid ""
25049 "You may supply a list of optional arguments to this call.  Use zero or more "
25050 "of the following pairs of parameters, and terminate the list with C<-1> on "
25051 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
25052 msgstr ""
25053
25054 #. type: verbatim
25055 #: ../src/guestfs-actions.pod:53
25056 #, no-wrap
25057 msgid ""
25058 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
25059 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
25060 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
25061 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
25062 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
25063 "\n"
25064 msgstr ""
25065
25066 #. type: textblock
25067 #: ../src/guestfs-actions.pod:59
25068 msgid ""
25069 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
25070 "It works by connecting to libvirt, requesting the domain and domain XML from "
25071 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
25072 "one."
25073 msgstr ""
25074
25075 #. type: textblock
25076 #: ../src/guestfs-actions.pod:94
25077 msgid ""
25078 "The other optional parameters are passed directly through to "
25079 "C<guestfs_add_drive_opts>."
25080 msgstr ""
25081
25082 #. type: textblock
25083 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:356
25084 #: ../src/guestfs-actions.pod:526 ../src/guestfs-actions.pod:704
25085 #: ../src/guestfs-actions.pod:735 ../src/guestfs-actions.pod:753
25086 #: ../src/guestfs-actions.pod:772 ../src/guestfs-actions.pod:1502
25087 #: ../src/guestfs-actions.pod:1858 ../src/guestfs-actions.pod:2061
25088 #: ../src/guestfs-actions.pod:2172 ../src/guestfs-actions.pod:2223
25089 #: ../src/guestfs-actions.pod:2275 ../src/guestfs-actions.pod:2289
25090 #: ../src/guestfs-actions.pod:2312 ../src/guestfs-actions.pod:2627
25091 #: ../src/guestfs-actions.pod:3111 ../src/guestfs-actions.pod:3129
25092 #: ../src/guestfs-actions.pod:5299 ../src/guestfs-actions.pod:5519
25093 #: ../src/guestfs-actions.pod:5931 ../src/guestfs-actions.pod:5957
25094 #: ../src/guestfs-actions.pod:7369 ../src/guestfs-actions.pod:7795
25095 #: ../src/guestfs-actions.pod:7808 ../src/guestfs-actions.pod:7821
25096 msgid "On error this function returns -1."
25097 msgstr ""
25098
25099 #. type: textblock
25100 #: ../src/guestfs-actions.pod:99
25101 msgid "(Added in 1.7.4)"
25102 msgstr "(Додано у 1.7.4)"
25103
25104 #. type: =head2
25105 #: ../src/guestfs-actions.pod:101
25106 msgid "guestfs_add_domain_va"
25107 msgstr ""
25108
25109 #. type: verbatim
25110 #: ../src/guestfs-actions.pod:103
25111 #, no-wrap
25112 msgid ""
25113 " int\n"
25114 " guestfs_add_domain_va (guestfs_h *g,\n"
25115 "                        const char *dom,\n"
25116 "                        va_list args);\n"
25117 "\n"
25118 msgstr ""
25119
25120 #. type: textblock
25121 #: ../src/guestfs-actions.pod:108
25122 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
25123 msgstr ""
25124
25125 #. type: textblock
25126 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
25127 #: ../src/guestfs-actions.pod:220 ../src/guestfs-actions.pod:231
25128 #: ../src/guestfs-actions.pod:882 ../src/guestfs-actions.pod:893
25129 #: ../src/guestfs-actions.pod:1195 ../src/guestfs-actions.pod:1208
25130 #: ../src/guestfs-actions.pod:1254 ../src/guestfs-actions.pod:1267
25131 #: ../src/guestfs-actions.pod:3077 ../src/guestfs-actions.pod:3089
25132 #: ../src/guestfs-actions.pod:4879 ../src/guestfs-actions.pod:4891
25133 #: ../src/guestfs-actions.pod:5151 ../src/guestfs-actions.pod:5163
25134 #: ../src/guestfs-actions.pod:5389 ../src/guestfs-actions.pod:5400
25135 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
25136 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
25137
25138 #. type: =head2
25139 #: ../src/guestfs-actions.pod:112
25140 msgid "guestfs_add_domain_argv"
25141 msgstr "guestfs_add_domain_argv"
25142
25143 #. type: verbatim
25144 #: ../src/guestfs-actions.pod:114
25145 #, no-wrap
25146 msgid ""
25147 " int\n"
25148 " guestfs_add_domain_argv (guestfs_h *g,\n"
25149 "                          const char *dom,\n"
25150 "                          const struct guestfs_add_domain_argv *optargs);\n"
25151 "\n"
25152 msgstr ""
25153
25154 #. type: textblock
25155 #: ../src/guestfs-actions.pod:119
25156 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
25157 msgstr ""
25158
25159 #. type: =head2
25160 #: ../src/guestfs-actions.pod:123
25161 msgid "guestfs_add_drive"
25162 msgstr ""
25163
25164 #. type: verbatim
25165 #: ../src/guestfs-actions.pod:125
25166 #, no-wrap
25167 msgid ""
25168 " int\n"
25169 " guestfs_add_drive (guestfs_h *g,\n"
25170 "                    const char *filename);\n"
25171 "\n"
25172 msgstr ""
25173
25174 #. type: textblock
25175 #: ../src/guestfs-actions.pod:129
25176 msgid ""
25177 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
25178 "optional parameters, so the disk is added writable, with the format being "
25179 "detected automatically."
25180 msgstr ""
25181
25182 #. type: textblock
25183 #: ../src/guestfs-actions.pod:133
25184 msgid ""
25185 "Automatic detection of the format opens you up to a potential security hole "
25186 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
25187 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
25188 "you should think about replacing calls to this function with calls to "
25189 "C<guestfs_add_drive_opts>, and specifying the format."
25190 msgstr ""
25191
25192 #. type: =head2
25193 #: ../src/guestfs-actions.pod:144
25194 msgid "guestfs_add_drive_opts"
25195 msgstr ""
25196
25197 #. type: verbatim
25198 #: ../src/guestfs-actions.pod:146
25199 #, no-wrap
25200 msgid ""
25201 " int\n"
25202 " guestfs_add_drive_opts (guestfs_h *g,\n"
25203 "                         const char *filename,\n"
25204 "                         ...);\n"
25205 "\n"
25206 msgstr ""
25207
25208 #. type: verbatim
25209 #: ../src/guestfs-actions.pod:156
25210 #, no-wrap
25211 msgid ""
25212 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
25213 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
25214 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
25215 " GUESTFS_ADD_DRIVE_OPTS_NAME, const char *name,\n"
25216 "\n"
25217 msgstr ""
25218
25219 #. type: textblock
25220 #: ../src/guestfs-actions.pod:186
25221 msgid ""
25222 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
25223 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
25224 "Possible formats include C<raw> and C<qcow2>."
25225 msgstr ""
25226
25227 #. type: textblock
25228 #: ../src/guestfs-actions.pod:197
25229 msgid ""
25230 "This rarely-used option lets you emulate the behaviour of the deprecated "
25231 "C<guestfs_add_drive_with_if> call (q.v.)"
25232 msgstr ""
25233
25234 #. type: textblock
25235 #: ../src/guestfs-actions.pod:209
25236 msgid "(Added in 1.5.23)"
25237 msgstr "(Додано у 1.5.23)"
25238
25239 #. type: =head2
25240 #: ../src/guestfs-actions.pod:211
25241 msgid "guestfs_add_drive_opts_va"
25242 msgstr ""
25243
25244 #. type: verbatim
25245 #: ../src/guestfs-actions.pod:213
25246 #, no-wrap
25247 msgid ""
25248 " int\n"
25249 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
25250 "                            const char *filename,\n"
25251 "                            va_list args);\n"
25252 "\n"
25253 msgstr ""
25254
25255 #. type: textblock
25256 #: ../src/guestfs-actions.pod:218
25257 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
25258 msgstr ""
25259
25260 #. type: =head2
25261 #: ../src/guestfs-actions.pod:222
25262 msgid "guestfs_add_drive_opts_argv"
25263 msgstr ""
25264
25265 #. type: verbatim
25266 #: ../src/guestfs-actions.pod:224
25267 #, no-wrap
25268 msgid ""
25269 " int\n"
25270 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
25271 "                              const char *filename,\n"
25272 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
25273 "\n"
25274 msgstr ""
25275
25276 #. type: textblock
25277 #: ../src/guestfs-actions.pod:229
25278 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
25279 msgstr ""
25280
25281 #. type: =head2
25282 #: ../src/guestfs-actions.pod:233
25283 msgid "guestfs_add_drive_ro"
25284 msgstr ""
25285
25286 #. type: verbatim
25287 #: ../src/guestfs-actions.pod:235
25288 #, no-wrap
25289 msgid ""
25290 " int\n"
25291 " guestfs_add_drive_ro (guestfs_h *g,\n"
25292 "                       const char *filename);\n"
25293 "\n"
25294 msgstr ""
25295
25296 #. type: textblock
25297 #: ../src/guestfs-actions.pod:239
25298 msgid ""
25299 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
25300 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
25301 "disk is added read-only, with the format being detected automatically."
25302 msgstr ""
25303
25304 #. type: textblock
25305 #: ../src/guestfs-actions.pod:246
25306 msgid "(Added in 1.0.38)"
25307 msgstr "(Додано у 1.0.38)"
25308
25309 #. type: =head2
25310 #: ../src/guestfs-actions.pod:248
25311 msgid "guestfs_add_drive_ro_with_if"
25312 msgstr ""
25313
25314 #. type: verbatim
25315 #: ../src/guestfs-actions.pod:250
25316 #, no-wrap
25317 msgid ""
25318 " int\n"
25319 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
25320 "                               const char *filename,\n"
25321 "                               const char *iface);\n"
25322 "\n"
25323 msgstr ""
25324
25325 #. type: textblock
25326 #: ../src/guestfs-actions.pod:262
25327 msgid ""
25328 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
25329 "QEMU interface emulation to use at run time."
25330 msgstr ""
25331
25332 #. type: textblock
25333 #: ../src/guestfs-actions.pod:267 ../src/guestfs-actions.pod:288
25334 #: ../src/guestfs-actions.pod:2586
25335 msgid "(Added in 1.0.84)"
25336 msgstr "(Додано у 1.0.84)"
25337
25338 #. type: =head2
25339 #: ../src/guestfs-actions.pod:269
25340 msgid "guestfs_add_drive_with_if"
25341 msgstr ""
25342
25343 #. type: verbatim
25344 #: ../src/guestfs-actions.pod:271
25345 #, no-wrap
25346 msgid ""
25347 " int\n"
25348 " guestfs_add_drive_with_if (guestfs_h *g,\n"
25349 "                            const char *filename,\n"
25350 "                            const char *iface);\n"
25351 "\n"
25352 msgstr ""
25353
25354 #. type: textblock
25355 #: ../src/guestfs-actions.pod:283
25356 msgid ""
25357 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
25358 "QEMU interface emulation to use at run time."
25359 msgstr ""
25360
25361 #. type: =head2
25362 #: ../src/guestfs-actions.pod:290
25363 msgid "guestfs_aug_clear"
25364 msgstr ""
25365
25366 #. type: verbatim
25367 #: ../src/guestfs-actions.pod:292
25368 #, no-wrap
25369 msgid ""
25370 " int\n"
25371 " guestfs_aug_clear (guestfs_h *g,\n"
25372 "                    const char *augpath);\n"
25373 "\n"
25374 msgstr ""
25375
25376 #. type: textblock
25377 #: ../src/guestfs-actions.pod:301 ../src/guestfs-actions.pod:2314
25378 msgid "(Added in 1.3.4)"
25379 msgstr "(Додано у 1.3.4)"
25380
25381 #. type: =head2
25382 #: ../src/guestfs-actions.pod:303
25383 msgid "guestfs_aug_close"
25384 msgstr ""
25385
25386 #. type: verbatim
25387 #: ../src/guestfs-actions.pod:305
25388 #, no-wrap
25389 msgid ""
25390 " int\n"
25391 " guestfs_aug_close (guestfs_h *g);\n"
25392 "\n"
25393 msgstr ""
25394
25395 #. type: textblock
25396 #: ../src/guestfs-actions.pod:308
25397 msgid ""
25398 "Close the current Augeas handle and free up any resources used by it.  After "
25399 "calling this, you have to call C<guestfs_aug_init> again before you can use "
25400 "any other Augeas functions."
25401 msgstr ""
25402
25403 #. type: textblock
25404 #: ../src/guestfs-actions.pod:315 ../src/guestfs-actions.pod:340
25405 #: ../src/guestfs-actions.pod:358 ../src/guestfs-actions.pod:372
25406 #: ../src/guestfs-actions.pod:435 ../src/guestfs-actions.pod:455
25407 #: ../src/guestfs-actions.pod:469 ../src/guestfs-actions.pod:500
25408 #: ../src/guestfs-actions.pod:514 ../src/guestfs-actions.pod:528
25409 #: ../src/guestfs-actions.pod:542 ../src/guestfs-actions.pod:560
25410 #: ../src/guestfs-actions.pod:6008
25411 msgid "(Added in 0.7)"
25412 msgstr "(Додано у 0.7)"
25413
25414 #. type: =head2
25415 #: ../src/guestfs-actions.pod:317
25416 msgid "guestfs_aug_defnode"
25417 msgstr ""
25418
25419 #. type: verbatim
25420 #: ../src/guestfs-actions.pod:319
25421 #, no-wrap
25422 msgid ""
25423 " struct guestfs_int_bool *\n"
25424 " guestfs_aug_defnode (guestfs_h *g,\n"
25425 "                      const char *name,\n"
25426 "                      const char *expr,\n"
25427 "                      const char *val);\n"
25428 "\n"
25429 msgstr ""
25430
25431 #. type: textblock
25432 #: ../src/guestfs-actions.pod:328
25433 msgid ""
25434 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
25435 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
25436 "containing that single node."
25437 msgstr ""
25438
25439 #. type: textblock
25440 #: ../src/guestfs-actions.pod:336
25441 msgid ""
25442 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
25443 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
25444 msgstr ""
25445
25446 #. type: =head2
25447 #: ../src/guestfs-actions.pod:342
25448 msgid "guestfs_aug_defvar"
25449 msgstr ""
25450
25451 #. type: verbatim
25452 #: ../src/guestfs-actions.pod:344
25453 #, no-wrap
25454 msgid ""
25455 " int\n"
25456 " guestfs_aug_defvar (guestfs_h *g,\n"
25457 "                     const char *name,\n"
25458 "                     const char *expr);\n"
25459 "\n"
25460 msgstr ""
25461
25462 #. type: =head2
25463 #: ../src/guestfs-actions.pod:360
25464 msgid "guestfs_aug_get"
25465 msgstr "guestfs_aug_get"
25466
25467 #. type: verbatim
25468 #: ../src/guestfs-actions.pod:362
25469 #, no-wrap
25470 msgid ""
25471 " char *\n"
25472 " guestfs_aug_get (guestfs_h *g,\n"
25473 "                  const char *augpath);\n"
25474 "\n"
25475 msgstr ""
25476 " char *\n"
25477 " guestfs_aug_get (guestfs_h *g,\n"
25478 "                  const char *augpath);\n"
25479 "\n"
25480
25481 #. type: textblock
25482 #: ../src/guestfs-actions.pod:369 ../src/guestfs-actions.pod:933
25483 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:1011
25484 #: ../src/guestfs-actions.pod:1027 ../src/guestfs-actions.pod:1130
25485 #: ../src/guestfs-actions.pod:1371 ../src/guestfs-actions.pod:1388
25486 #: ../src/guestfs-actions.pod:1407 ../src/guestfs-actions.pod:1541
25487 #: ../src/guestfs-actions.pod:1729 ../src/guestfs-actions.pod:1841
25488 #: ../src/guestfs-actions.pod:2004 ../src/guestfs-actions.pod:2021
25489 #: ../src/guestfs-actions.pod:2088 ../src/guestfs-actions.pod:2131
25490 #: ../src/guestfs-actions.pod:2152 ../src/guestfs-actions.pod:2337
25491 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:2755
25492 #: ../src/guestfs-actions.pod:2857 ../src/guestfs-actions.pod:2961
25493 #: ../src/guestfs-actions.pod:2980 ../src/guestfs-actions.pod:3195
25494 #: ../src/guestfs-actions.pod:3223 ../src/guestfs-actions.pod:3244
25495 #: ../src/guestfs-actions.pod:3278 ../src/guestfs-actions.pod:3341
25496 #: ../src/guestfs-actions.pod:3361 ../src/guestfs-actions.pod:3381
25497 #: ../src/guestfs-actions.pod:4008 ../src/guestfs-actions.pod:4361
25498 #: ../src/guestfs-actions.pod:4531 ../src/guestfs-actions.pod:4641
25499 #: ../src/guestfs-actions.pod:5537 ../src/guestfs-actions.pod:5736
25500 #: ../src/guestfs-actions.pod:5906 ../src/guestfs-actions.pod:6084
25501 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6805
25502 #: ../src/guestfs-actions.pod:6821 ../src/guestfs-actions.pod:6845
25503 #: ../src/guestfs-actions.pod:6869 ../src/guestfs-actions.pod:7543
25504 #: ../src/guestfs-actions.pod:7562 ../src/guestfs-actions.pod:7580
25505 #: ../src/guestfs-actions.pod:7754 ../src/guestfs-actions.pod:8071
25506 msgid ""
25507 "This function returns a string, or NULL on error.  I<The caller must free "
25508 "the returned string after use>."
25509 msgstr ""
25510
25511 #. type: =head2
25512 #: ../src/guestfs-actions.pod:374
25513 msgid "guestfs_aug_init"
25514 msgstr "guestfs_aug_init"
25515
25516 #. type: verbatim
25517 #: ../src/guestfs-actions.pod:376
25518 #, no-wrap
25519 msgid ""
25520 " int\n"
25521 " guestfs_aug_init (guestfs_h *g,\n"
25522 "                   const char *root,\n"
25523 "                   int flags);\n"
25524 "\n"
25525 msgstr ""
25526 " int\n"
25527 " guestfs_aug_init (guestfs_h *g,\n"
25528 "                   const char *root,\n"
25529 "                   int flags);\n"
25530 "\n"
25531
25532 #. type: textblock
25533 #: ../src/guestfs-actions.pod:385
25534 msgid "You must call this before using any other C<guestfs_aug_*> commands."
25535 msgstr ""
25536
25537 #. type: textblock
25538 #: ../src/guestfs-actions.pod:410
25539 msgid ""
25540 "This option is only useful when debugging Augeas lenses.  Use of this option "
25541 "may require additional memory for the libguestfs appliance.  You may need to "
25542 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
25543 "C<guestfs_set_memsize>."
25544 msgstr ""
25545
25546 #. type: textblock
25547 #: ../src/guestfs-actions.pod:425
25548 msgid "Do not load the tree in C<guestfs_aug_init>."
25549 msgstr ""
25550
25551 #. type: textblock
25552 #: ../src/guestfs-actions.pod:429
25553 msgid "To close the handle, you can call C<guestfs_aug_close>."
25554 msgstr ""
25555
25556 #. type: =head2
25557 #: ../src/guestfs-actions.pod:437
25558 msgid "guestfs_aug_insert"
25559 msgstr "guestfs_aug_insert"
25560
25561 #. type: verbatim
25562 #: ../src/guestfs-actions.pod:439
25563 #, no-wrap
25564 msgid ""
25565 " int\n"
25566 " guestfs_aug_insert (guestfs_h *g,\n"
25567 "                     const char *augpath,\n"
25568 "                     const char *label,\n"
25569 "                     int before);\n"
25570 "\n"
25571 msgstr ""
25572 " int\n"
25573 " guestfs_aug_insert (guestfs_h *g,\n"
25574 "                     const char *augpath,\n"
25575 "                     const char *label,\n"
25576 "                     int before);\n"
25577 "\n"
25578
25579 #. type: =head2
25580 #: ../src/guestfs-actions.pod:457
25581 msgid "guestfs_aug_load"
25582 msgstr "guestfs_aug_load"
25583
25584 #. type: verbatim
25585 #: ../src/guestfs-actions.pod:459
25586 #, no-wrap
25587 msgid ""
25588 " int\n"
25589 " guestfs_aug_load (guestfs_h *g);\n"
25590 "\n"
25591 msgstr ""
25592 " int\n"
25593 " guestfs_aug_load (guestfs_h *g);\n"
25594 "\n"
25595
25596 #. type: =head2
25597 #: ../src/guestfs-actions.pod:471
25598 msgid "guestfs_aug_ls"
25599 msgstr "guestfs_aug_ls"
25600
25601 #. type: verbatim
25602 #: ../src/guestfs-actions.pod:473
25603 #, no-wrap
25604 msgid ""
25605 " char **\n"
25606 " guestfs_aug_ls (guestfs_h *g,\n"
25607 "                 const char *augpath);\n"
25608 "\n"
25609 msgstr ""
25610 " char **\n"
25611 " guestfs_aug_ls (guestfs_h *g,\n"
25612 "                 const char *augpath);\n"
25613 "\n"
25614
25615 #. type: textblock
25616 #: ../src/guestfs-actions.pod:477
25617 msgid ""
25618 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
25619 "sorting the resulting nodes into alphabetical order."
25620 msgstr ""
25621
25622 #. type: textblock
25623 #: ../src/guestfs-actions.pod:480 ../src/guestfs-actions.pod:496
25624 #: ../src/guestfs-actions.pod:642 ../src/guestfs-actions.pod:1149
25625 #: ../src/guestfs-actions.pod:1556 ../src/guestfs-actions.pod:1575
25626 #: ../src/guestfs-actions.pod:1678 ../src/guestfs-actions.pod:1697
25627 #: ../src/guestfs-actions.pod:1943 ../src/guestfs-actions.pod:2409
25628 #: ../src/guestfs-actions.pod:2425 ../src/guestfs-actions.pod:2444
25629 #: ../src/guestfs-actions.pod:2509 ../src/guestfs-actions.pod:2533
25630 #: ../src/guestfs-actions.pod:2604 ../src/guestfs-actions.pod:2653
25631 #: ../src/guestfs-actions.pod:2922 ../src/guestfs-actions.pod:3297
25632 #: ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3891
25633 #: ../src/guestfs-actions.pod:3908 ../src/guestfs-actions.pod:3928
25634 #: ../src/guestfs-actions.pod:3990 ../src/guestfs-actions.pod:4095
25635 #: ../src/guestfs-actions.pod:4503 ../src/guestfs-actions.pod:5260
25636 #: ../src/guestfs-actions.pod:5878 ../src/guestfs-actions.pod:6004
25637 #: ../src/guestfs-actions.pod:6118 ../src/guestfs-actions.pod:6885
25638 #: ../src/guestfs-actions.pod:6946 ../src/guestfs-actions.pod:7001
25639 #: ../src/guestfs-actions.pod:7147 ../src/guestfs-actions.pod:7171
25640 #: ../src/guestfs-actions.pod:7647 ../src/guestfs-actions.pod:7667
25641 #: ../src/guestfs-actions.pod:7714 ../src/guestfs-actions.pod:7908
25642 #: ../src/guestfs-actions.pod:7927 ../src/guestfs-actions.pod:8021
25643 #: ../src/guestfs-actions.pod:8040 ../src/guestfs-actions.pod:8086
25644 #: ../src/guestfs-actions.pod:8105
25645 msgid ""
25646 "This function returns a NULL-terminated array of strings (like L<environ(3)"
25647 ">), or NULL if there was an error.  I<The caller must free the strings and "
25648 "the array after use>."
25649 msgstr ""
25650
25651 #. type: textblock
25652 #: ../src/guestfs-actions.pod:484 ../src/guestfs-actions.pod:1074
25653 #: ../src/guestfs-actions.pod:1092 ../src/guestfs-actions.pod:1613
25654 #: ../src/guestfs-actions.pod:3655 ../src/guestfs-actions.pod:3686
25655 #: ../src/guestfs-actions.pod:4344 ../src/guestfs-actions.pod:4394
25656 #: ../src/guestfs-actions.pod:4581 ../src/guestfs-actions.pod:4614
25657 #: ../src/guestfs-actions.pod:4777 ../src/guestfs-actions.pod:5264
25658 #: ../src/guestfs-actions.pod:5819 ../src/guestfs-actions.pod:6216
25659 #: ../src/guestfs-actions.pod:6230 ../src/guestfs-actions.pod:6242
25660 #: ../src/guestfs-actions.pod:6726 ../src/guestfs-actions.pod:7385
25661 #: ../src/guestfs-actions.pod:7398 ../src/guestfs-actions.pod:7631
25662 #: ../src/guestfs-actions.pod:7896
25663 msgid "(Added in 0.8)"
25664 msgstr "(Додано у 0.8)"
25665
25666 #. type: =head2
25667 #: ../src/guestfs-actions.pod:486
25668 msgid "guestfs_aug_match"
25669 msgstr "guestfs_aug_match"
25670
25671 #. type: verbatim
25672 #: ../src/guestfs-actions.pod:488
25673 #, no-wrap
25674 msgid ""
25675 " char **\n"
25676 " guestfs_aug_match (guestfs_h *g,\n"
25677 "                    const char *augpath);\n"
25678 "\n"
25679 msgstr ""
25680 " char **\n"
25681 " guestfs_aug_match (guestfs_h *g,\n"
25682 "                    const char *augpath);\n"
25683 "\n"
25684
25685 #. type: =head2
25686 #: ../src/guestfs-actions.pod:502
25687 msgid "guestfs_aug_mv"
25688 msgstr "guestfs_aug_mv"
25689
25690 #. type: verbatim
25691 #: ../src/guestfs-actions.pod:504
25692 #, no-wrap
25693 msgid ""
25694 " int\n"
25695 " guestfs_aug_mv (guestfs_h *g,\n"
25696 "                 const char *src,\n"
25697 "                 const char *dest);\n"
25698 "\n"
25699 msgstr ""
25700 " int\n"
25701 " guestfs_aug_mv (guestfs_h *g,\n"
25702 "                 const char *src,\n"
25703 "                 const char *dest);\n"
25704 "\n"
25705
25706 #. type: =head2
25707 #: ../src/guestfs-actions.pod:516
25708 msgid "guestfs_aug_rm"
25709 msgstr "guestfs_aug_rm"
25710
25711 #. type: verbatim
25712 #: ../src/guestfs-actions.pod:518
25713 #, no-wrap
25714 msgid ""
25715 " int\n"
25716 " guestfs_aug_rm (guestfs_h *g,\n"
25717 "                 const char *augpath);\n"
25718 "\n"
25719 msgstr ""
25720 " int\n"
25721 " guestfs_aug_rm (guestfs_h *g,\n"
25722 "                 const char *augpath);\n"
25723 "\n"
25724
25725 #. type: =head2
25726 #: ../src/guestfs-actions.pod:530
25727 msgid "guestfs_aug_save"
25728 msgstr "guestfs_aug_save"
25729
25730 #. type: verbatim
25731 #: ../src/guestfs-actions.pod:532
25732 #, no-wrap
25733 msgid ""
25734 " int\n"
25735 " guestfs_aug_save (guestfs_h *g);\n"
25736 "\n"
25737 msgstr ""
25738 " int\n"
25739 " guestfs_aug_save (guestfs_h *g);\n"
25740 "\n"
25741
25742 #. type: textblock
25743 #: ../src/guestfs-actions.pod:537
25744 msgid ""
25745 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25746 "are saved."
25747 msgstr ""
25748
25749 #. type: =head2
25750 #: ../src/guestfs-actions.pod:544
25751 msgid "guestfs_aug_set"
25752 msgstr "guestfs_aug_set"
25753
25754 #. type: verbatim
25755 #: ../src/guestfs-actions.pod:546
25756 #, no-wrap
25757 msgid ""
25758 " int\n"
25759 " guestfs_aug_set (guestfs_h *g,\n"
25760 "                  const char *augpath,\n"
25761 "                  const char *val);\n"
25762 "\n"
25763 msgstr ""
25764 " int\n"
25765 " guestfs_aug_set (guestfs_h *g,\n"
25766 "                  const char *augpath,\n"
25767 "                  const char *val);\n"
25768 "\n"
25769
25770 #. type: textblock
25771 #: ../src/guestfs-actions.pod:553
25772 msgid ""
25773 "In the Augeas API, it is possible to clear a node by setting the value to "
25774 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25775 "this call.  Instead you must use the C<guestfs_aug_clear> call."
25776 msgstr ""
25777
25778 #. type: =head2
25779 #: ../src/guestfs-actions.pod:562
25780 msgid "guestfs_available"
25781 msgstr "guestfs_available"
25782
25783 #. type: verbatim
25784 #: ../src/guestfs-actions.pod:564
25785 #, no-wrap
25786 msgid ""
25787 " int\n"
25788 " guestfs_available (guestfs_h *g,\n"
25789 "                    char *const *groups);\n"
25790 "\n"
25791 msgstr ""
25792 " int\n"
25793 " guestfs_available (guestfs_h *g,\n"
25794 "                    char *const *groups);\n"
25795 "\n"
25796
25797 #. type: textblock
25798 #: ../src/guestfs-actions.pod:572
25799 msgid ""
25800 "The libguestfs groups, and the functions that those groups correspond to, "
25801 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25802 "runtime by calling C<guestfs_available_all_groups>."
25803 msgstr ""
25804
25805 #. type: textblock
25806 #: ../src/guestfs-actions.pod:596
25807 msgid "You must call C<guestfs_launch> before calling this function."
25808 msgstr ""
25809
25810 #. type: textblock
25811 #: ../src/guestfs-actions.pod:618
25812 msgid ""
25813 "This call was added in version C<1.0.80>.  In previous versions of "
25814 "libguestfs all you could do would be to speculatively execute a command to "
25815 "find out if the daemon implemented it.  See also C<guestfs_version>."
25816 msgstr ""
25817
25818 #. type: textblock
25819 #: ../src/guestfs-actions.pod:627 ../src/guestfs-actions.pod:1358
25820 msgid "(Added in 1.0.80)"
25821 msgstr "(Додано у 1.0.80)"
25822
25823 #. type: =head2
25824 #: ../src/guestfs-actions.pod:629
25825 msgid "guestfs_available_all_groups"
25826 msgstr "guestfs_available_all_groups"
25827
25828 #. type: verbatim
25829 #: ../src/guestfs-actions.pod:631
25830 #, no-wrap
25831 msgid ""
25832 " char **\n"
25833 " guestfs_available_all_groups (guestfs_h *g);\n"
25834 "\n"
25835 msgstr ""
25836 " char **\n"
25837 " guestfs_available_all_groups (guestfs_h *g);\n"
25838 "\n"
25839
25840 #. type: textblock
25841 #: ../src/guestfs-actions.pod:634
25842 msgid ""
25843 "This command returns a list of all optional groups that this daemon knows "
25844 "about.  Note this returns both supported and unsupported groups.  To find "
25845 "out which ones the daemon can actually support you have to call "
25846 "C<guestfs_available> on each member of the returned list."
25847 msgstr ""
25848
25849 #. type: textblock
25850 #: ../src/guestfs-actions.pod:640
25851 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25852 msgstr ""
25853
25854 #. type: textblock
25855 #: ../src/guestfs-actions.pod:646
25856 msgid "(Added in 1.3.15)"
25857 msgstr "(Додано у 1.3.15)"
25858
25859 #. type: =head2
25860 #: ../src/guestfs-actions.pod:648
25861 msgid "guestfs_base64_in"
25862 msgstr "guestfs_base64_in"
25863
25864 #. type: verbatim
25865 #: ../src/guestfs-actions.pod:650
25866 #, no-wrap
25867 msgid ""
25868 " int\n"
25869 " guestfs_base64_in (guestfs_h *g,\n"
25870 "                    const char *base64file,\n"
25871 "                    const char *filename);\n"
25872 "\n"
25873 msgstr ""
25874 " int\n"
25875 " guestfs_base64_in (guestfs_h *g,\n"
25876 "                    const char *base64file,\n"
25877 "                    const char *filename);\n"
25878 "\n"
25879
25880 #. type: textblock
25881 #: ../src/guestfs-actions.pod:660 ../src/guestfs-actions.pod:674
25882 msgid "(Added in 1.3.5)"
25883 msgstr "(Додано у 1.3.5)"
25884
25885 #. type: =head2
25886 #: ../src/guestfs-actions.pod:662
25887 msgid "guestfs_base64_out"
25888 msgstr "guestfs_base64_out"
25889
25890 #. type: verbatim
25891 #: ../src/guestfs-actions.pod:664
25892 #, no-wrap
25893 msgid ""
25894 " int\n"
25895 " guestfs_base64_out (guestfs_h *g,\n"
25896 "                     const char *filename,\n"
25897 "                     const char *base64file);\n"
25898 "\n"
25899 msgstr ""
25900 " int\n"
25901 " guestfs_base64_out (guestfs_h *g,\n"
25902 "                     const char *filename,\n"
25903 "                     const char *base64file);\n"
25904 "\n"
25905
25906 #. type: =head2
25907 #: ../src/guestfs-actions.pod:676
25908 msgid "guestfs_blockdev_flushbufs"
25909 msgstr "guestfs_blockdev_flushbufs"
25910
25911 #. type: verbatim
25912 #: ../src/guestfs-actions.pod:678
25913 #, no-wrap
25914 msgid ""
25915 " int\n"
25916 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25917 "                             const char *device);\n"
25918 "\n"
25919 msgstr ""
25920 " int\n"
25921 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25922 "                             const char *device);\n"
25923 "\n"
25924
25925 #. type: textblock
25926 #: ../src/guestfs-actions.pod:689 ../src/guestfs-actions.pod:706
25927 #: ../src/guestfs-actions.pod:721 ../src/guestfs-actions.pod:737
25928 #: ../src/guestfs-actions.pod:755 ../src/guestfs-actions.pod:774
25929 #: ../src/guestfs-actions.pod:788 ../src/guestfs-actions.pod:806
25930 #: ../src/guestfs-actions.pod:820 ../src/guestfs-actions.pod:834
25931 msgid "(Added in 0.9.3)"
25932 msgstr "(Додано у 0.9.3)"
25933
25934 #. type: =head2
25935 #: ../src/guestfs-actions.pod:691
25936 msgid "guestfs_blockdev_getbsz"
25937 msgstr "guestfs_blockdev_getbsz"
25938
25939 #. type: verbatim
25940 #: ../src/guestfs-actions.pod:693
25941 #, no-wrap
25942 msgid ""
25943 " int\n"
25944 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25945 "                          const char *device);\n"
25946 "\n"
25947 msgstr ""
25948 " int\n"
25949 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25950 "                          const char *device);\n"
25951 "\n"
25952
25953 #. type: =head2
25954 #: ../src/guestfs-actions.pod:708
25955 msgid "guestfs_blockdev_getro"
25956 msgstr "guestfs_blockdev_getro"
25957
25958 #. type: verbatim
25959 #: ../src/guestfs-actions.pod:710
25960 #, no-wrap
25961 msgid ""
25962 " int\n"
25963 " guestfs_blockdev_getro (guestfs_h *g,\n"
25964 "                         const char *device);\n"
25965 "\n"
25966 msgstr ""
25967 " int\n"
25968 " guestfs_blockdev_getro (guestfs_h *g,\n"
25969 "                         const char *device);\n"
25970 "\n"
25971
25972 #. type: textblock
25973 #: ../src/guestfs-actions.pod:719 ../src/guestfs-actions.pod:1596
25974 #: ../src/guestfs-actions.pod:1611 ../src/guestfs-actions.pod:2100
25975 #: ../src/guestfs-actions.pod:2111 ../src/guestfs-actions.pod:2183
25976 #: ../src/guestfs-actions.pod:2209 ../src/guestfs-actions.pod:2249
25977 #: ../src/guestfs-actions.pod:2264 ../src/guestfs-actions.pod:2300
25978 #: ../src/guestfs-actions.pod:2323 ../src/guestfs-actions.pod:3398
25979 #: ../src/guestfs-actions.pod:3414 ../src/guestfs-actions.pod:3432
25980 #: ../src/guestfs-actions.pod:3594 ../src/guestfs-actions.pod:3608
25981 #: ../src/guestfs-actions.pod:3623 ../src/guestfs-actions.pod:3637
25982 #: ../src/guestfs-actions.pod:3653 ../src/guestfs-actions.pod:3668
25983 #: ../src/guestfs-actions.pod:3684 ../src/guestfs-actions.pod:3698
25984 #: ../src/guestfs-actions.pod:3711 ../src/guestfs-actions.pod:3725
25985 #: ../src/guestfs-actions.pod:3740 ../src/guestfs-actions.pod:3755
25986 #: ../src/guestfs-actions.pod:3768 ../src/guestfs-actions.pod:3782
25987 #: ../src/guestfs-actions.pod:5501
25988 msgid "This function returns a C truth value on success or -1 on error."
25989 msgstr ""
25990
25991 #. type: =head2
25992 #: ../src/guestfs-actions.pod:723
25993 msgid "guestfs_blockdev_getsize64"
25994 msgstr "guestfs_blockdev_getsize64"
25995
25996 #. type: verbatim
25997 #: ../src/guestfs-actions.pod:725
25998 #, no-wrap
25999 msgid ""
26000 " int64_t\n"
26001 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26002 "                             const char *device);\n"
26003 "\n"
26004 msgstr ""
26005 " int64_t\n"
26006 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
26007 "                             const char *device);\n"
26008 "\n"
26009
26010 #. type: textblock
26011 #: ../src/guestfs-actions.pod:731
26012 msgid "See also C<guestfs_blockdev_getsz>."
26013 msgstr ""
26014
26015 #. type: =head2
26016 #: ../src/guestfs-actions.pod:739
26017 msgid "guestfs_blockdev_getss"
26018 msgstr "guestfs_blockdev_getss"
26019
26020 #. type: verbatim
26021 #: ../src/guestfs-actions.pod:741
26022 #, no-wrap
26023 msgid ""
26024 " int\n"
26025 " guestfs_blockdev_getss (guestfs_h *g,\n"
26026 "                         const char *device);\n"
26027 "\n"
26028 msgstr ""
26029 " int\n"
26030 " guestfs_blockdev_getss (guestfs_h *g,\n"
26031 "                         const char *device);\n"
26032 "\n"
26033
26034 #. type: textblock
26035 #: ../src/guestfs-actions.pod:748
26036 msgid ""
26037 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
26038 "that)."
26039 msgstr ""
26040
26041 #. type: =head2
26042 #: ../src/guestfs-actions.pod:757
26043 msgid "guestfs_blockdev_getsz"
26044 msgstr "guestfs_blockdev_getsz"
26045
26046 #. type: verbatim
26047 #: ../src/guestfs-actions.pod:759
26048 #, no-wrap
26049 msgid ""
26050 " int64_t\n"
26051 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26052 "                         const char *device);\n"
26053 "\n"
26054 msgstr ""
26055 " int64_t\n"
26056 " guestfs_blockdev_getsz (guestfs_h *g,\n"
26057 "                         const char *device);\n"
26058 "\n"
26059
26060 #. type: textblock
26061 #: ../src/guestfs-actions.pod:766
26062 msgid ""
26063 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
26064 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
26065 msgstr ""
26066
26067 #. type: =head2
26068 #: ../src/guestfs-actions.pod:776
26069 msgid "guestfs_blockdev_rereadpt"
26070 msgstr "guestfs_blockdev_rereadpt"
26071
26072 #. type: verbatim
26073 #: ../src/guestfs-actions.pod:778
26074 #, no-wrap
26075 msgid ""
26076 " int\n"
26077 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26078 "                            const char *device);\n"
26079 "\n"
26080 msgstr ""
26081 " int\n"
26082 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
26083 "                            const char *device);\n"
26084 "\n"
26085
26086 #. type: =head2
26087 #: ../src/guestfs-actions.pod:790
26088 msgid "guestfs_blockdev_setbsz"
26089 msgstr "guestfs_blockdev_setbsz"
26090
26091 #. type: verbatim
26092 #: ../src/guestfs-actions.pod:792
26093 #, no-wrap
26094 msgid ""
26095 " int\n"
26096 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26097 "                          const char *device,\n"
26098 "                          int blocksize);\n"
26099 "\n"
26100 msgstr ""
26101 " int\n"
26102 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
26103 "                          const char *device,\n"
26104 "                          int blocksize);\n"
26105 "\n"
26106
26107 #. type: =head2
26108 #: ../src/guestfs-actions.pod:808
26109 msgid "guestfs_blockdev_setro"
26110 msgstr "guestfs_blockdev_setro"
26111
26112 #. type: verbatim
26113 #: ../src/guestfs-actions.pod:810
26114 #, no-wrap
26115 msgid ""
26116 " int\n"
26117 " guestfs_blockdev_setro (guestfs_h *g,\n"
26118 "                         const char *device);\n"
26119 "\n"
26120 msgstr ""
26121 " int\n"
26122 " guestfs_blockdev_setro (guestfs_h *g,\n"
26123 "                         const char *device);\n"
26124 "\n"
26125
26126 #. type: =head2
26127 #: ../src/guestfs-actions.pod:822
26128 msgid "guestfs_blockdev_setrw"
26129 msgstr "guestfs_blockdev_setrw"
26130
26131 #. type: verbatim
26132 #: ../src/guestfs-actions.pod:824
26133 #, no-wrap
26134 msgid ""
26135 " int\n"
26136 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26137 "                         const char *device);\n"
26138 "\n"
26139 msgstr ""
26140 " int\n"
26141 " guestfs_blockdev_setrw (guestfs_h *g,\n"
26142 "                         const char *device);\n"
26143 "\n"
26144
26145 #. type: =head2
26146 #: ../src/guestfs-actions.pod:836
26147 msgid "guestfs_btrfs_filesystem_resize"
26148 msgstr "guestfs_btrfs_filesystem_resize"
26149
26150 #. type: verbatim
26151 #: ../src/guestfs-actions.pod:838
26152 #, no-wrap
26153 msgid ""
26154 " int\n"
26155 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26156 "                                  const char *mountpoint,\n"
26157 "                                  ...);\n"
26158 "\n"
26159 msgstr ""
26160 " int\n"
26161 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
26162 "                                  const char *mountpoint,\n"
26163 "                                  ...);\n"
26164 "\n"
26165
26166 #. type: verbatim
26167 #: ../src/guestfs-actions.pod:848
26168 #, no-wrap
26169 msgid ""
26170 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26171 "\n"
26172 msgstr ""
26173 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
26174 "\n"
26175
26176 #. type: textblock
26177 #: ../src/guestfs-actions.pod:871
26178 msgid "(Added in 1.11.17)"
26179 msgstr "(Додано у 1.11.17)"
26180
26181 #. type: =head2
26182 #: ../src/guestfs-actions.pod:873
26183 msgid "guestfs_btrfs_filesystem_resize_va"
26184 msgstr "guestfs_btrfs_filesystem_resize_va"
26185
26186 #. type: verbatim
26187 #: ../src/guestfs-actions.pod:875
26188 #, no-wrap
26189 msgid ""
26190 " int\n"
26191 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26192 "                                     const char *mountpoint,\n"
26193 "                                     va_list args);\n"
26194 "\n"
26195 msgstr ""
26196 " int\n"
26197 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
26198 "                                     const char *mountpoint,\n"
26199 "                                     va_list args);\n"
26200 "\n"
26201
26202 #. type: textblock
26203 #: ../src/guestfs-actions.pod:880
26204 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
26205 msgstr ""
26206
26207 #. type: =head2
26208 #: ../src/guestfs-actions.pod:884
26209 msgid "guestfs_btrfs_filesystem_resize_argv"
26210 msgstr "guestfs_btrfs_filesystem_resize_argv"
26211
26212 #. type: verbatim
26213 #: ../src/guestfs-actions.pod:886
26214 #, no-wrap
26215 msgid ""
26216 " int\n"
26217 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26218 "                                       const char *mountpoint,\n"
26219 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26220 "\n"
26221 msgstr ""
26222 " int\n"
26223 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
26224 "                                       const char *mountpoint,\n"
26225 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
26226 "\n"
26227
26228 #. type: textblock
26229 #: ../src/guestfs-actions.pod:891
26230 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
26231 msgstr ""
26232
26233 #. type: =head2
26234 #: ../src/guestfs-actions.pod:895
26235 msgid "guestfs_case_sensitive_path"
26236 msgstr ""
26237
26238 #. type: verbatim
26239 #: ../src/guestfs-actions.pod:897
26240 #, no-wrap
26241 msgid ""
26242 " char *\n"
26243 " guestfs_case_sensitive_path (guestfs_h *g,\n"
26244 "                              const char *path);\n"
26245 "\n"
26246 msgstr ""
26247
26248 #. type: textblock
26249 #: ../src/guestfs-actions.pod:923
26250 msgid ""
26251 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
26252 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
26253 "how the directories were originally created under Windows)."
26254 msgstr ""
26255
26256 #. type: textblock
26257 #: ../src/guestfs-actions.pod:931
26258 msgid "See also C<guestfs_realpath>."
26259 msgstr ""
26260
26261 #. type: textblock
26262 #: ../src/guestfs-actions.pod:936 ../src/guestfs-actions.pod:7565
26263 msgid "(Added in 1.0.75)"
26264 msgstr "(Додано у 1.0.75)"
26265
26266 #. type: =head2
26267 #: ../src/guestfs-actions.pod:938
26268 msgid "guestfs_cat"
26269 msgstr ""
26270
26271 #. type: verbatim
26272 #: ../src/guestfs-actions.pod:940
26273 #, no-wrap
26274 msgid ""
26275 " char *\n"
26276 " guestfs_cat (guestfs_h *g,\n"
26277 "              const char *path);\n"
26278 "\n"
26279 msgstr ""
26280
26281 #. type: textblock
26282 #: ../src/guestfs-actions.pod:946
26283 msgid ""
26284 "Note that this function cannot correctly handle binary files (specifically, "
26285 "files containing C<\\0> character which is treated as end of string).  For "
26286 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
26287 "functions which have a more complex interface."
26288 msgstr ""
26289
26290 #. type: textblock
26291 #: ../src/guestfs-actions.pod:957 ../src/guestfs-actions.pod:3912
26292 #: ../src/guestfs-actions.pod:3994 ../src/guestfs-actions.pod:4011
26293 #: ../src/guestfs-actions.pod:4099 ../src/guestfs-actions.pod:4507
26294 #: ../src/guestfs-actions.pod:4521 ../src/guestfs-actions.pod:5882
26295 #: ../src/guestfs-actions.pod:5896 ../src/guestfs-actions.pod:7718
26296 #: ../src/guestfs-actions.pod:7732
26297 msgid "(Added in 0.4)"
26298 msgstr "(Додано у 0.4)"
26299
26300 #. type: =head2
26301 #: ../src/guestfs-actions.pod:959
26302 msgid "guestfs_checksum"
26303 msgstr ""
26304
26305 #. type: verbatim
26306 #: ../src/guestfs-actions.pod:961
26307 #, no-wrap
26308 msgid ""
26309 " char *\n"
26310 " guestfs_checksum (guestfs_h *g,\n"
26311 "                   const char *csumtype,\n"
26312 "                   const char *path);\n"
26313 "\n"
26314 msgstr ""
26315
26316 #. type: textblock
26317 #: ../src/guestfs-actions.pod:1007
26318 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
26319 msgstr ""
26320
26321 #. type: textblock
26322 #: ../src/guestfs-actions.pod:1009
26323 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
26324 msgstr ""
26325
26326 #. type: textblock
26327 #: ../src/guestfs-actions.pod:1014 ../src/guestfs-actions.pod:1433
26328 #: ../src/guestfs-actions.pod:2291 ../src/guestfs-actions.pod:3610
26329 #: ../src/guestfs-actions.pod:3639 ../src/guestfs-actions.pod:3700
26330 #: ../src/guestfs-actions.pod:3727 ../src/guestfs-actions.pod:7421
26331 msgid "(Added in 1.0.2)"
26332 msgstr "(Додано у 1.0.2)"
26333
26334 #. type: =head2
26335 #: ../src/guestfs-actions.pod:1016
26336 msgid "guestfs_checksum_device"
26337 msgstr ""
26338
26339 #. type: verbatim
26340 #: ../src/guestfs-actions.pod:1018
26341 #, no-wrap
26342 msgid ""
26343 " char *\n"
26344 " guestfs_checksum_device (guestfs_h *g,\n"
26345 "                          const char *csumtype,\n"
26346 "                          const char *device);\n"
26347 "\n"
26348 msgstr ""
26349
26350 #. type: textblock
26351 #: ../src/guestfs-actions.pod:1023
26352 msgid ""
26353 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
26354 "device named C<device>.  For the types of checksums supported see the "
26355 "C<guestfs_checksum> command."
26356 msgstr ""
26357
26358 #. type: textblock
26359 #: ../src/guestfs-actions.pod:1030 ../src/guestfs-actions.pod:5331
26360 #: ../src/guestfs-actions.pod:5466 ../src/guestfs-actions.pod:5503
26361 #: ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5703
26362 #: ../src/guestfs-actions.pod:7330 ../src/guestfs-actions.pod:7344
26363 #: ../src/guestfs-actions.pod:7744
26364 msgid "(Added in 1.3.2)"
26365 msgstr "(Додано у 1.3.2)"
26366
26367 #. type: =head2
26368 #: ../src/guestfs-actions.pod:1032
26369 msgid "guestfs_checksums_out"
26370 msgstr ""
26371
26372 #. type: verbatim
26373 #: ../src/guestfs-actions.pod:1034
26374 #, no-wrap
26375 msgid ""
26376 " int\n"
26377 " guestfs_checksums_out (guestfs_h *g,\n"
26378 "                        const char *csumtype,\n"
26379 "                        const char *directory,\n"
26380 "                        const char *sumsfile);\n"
26381 "\n"
26382 msgstr ""
26383
26384 #. type: textblock
26385 #: ../src/guestfs-actions.pod:1054
26386 msgid "(Added in 1.3.7)"
26387 msgstr "(Додано у 1.3.7)"
26388
26389 #. type: =head2
26390 #: ../src/guestfs-actions.pod:1056
26391 msgid "guestfs_chmod"
26392 msgstr ""
26393
26394 #. type: verbatim
26395 #: ../src/guestfs-actions.pod:1058
26396 #, no-wrap
26397 msgid ""
26398 " int\n"
26399 " guestfs_chmod (guestfs_h *g,\n"
26400 "                int mode,\n"
26401 "                const char *path);\n"
26402 "\n"
26403 msgstr ""
26404
26405 #. type: =head2
26406 #: ../src/guestfs-actions.pod:1076
26407 msgid "guestfs_chown"
26408 msgstr ""
26409
26410 #. type: verbatim
26411 #: ../src/guestfs-actions.pod:1078
26412 #, no-wrap
26413 msgid ""
26414 " int\n"
26415 " guestfs_chown (guestfs_h *g,\n"
26416 "                int owner,\n"
26417 "                int group,\n"
26418 "                const char *path);\n"
26419 "\n"
26420 msgstr ""
26421
26422 #. type: =head2
26423 #: ../src/guestfs-actions.pod:1094
26424 msgid "guestfs_command"
26425 msgstr ""
26426
26427 #. type: verbatim
26428 #: ../src/guestfs-actions.pod:1096
26429 #, no-wrap
26430 msgid ""
26431 " char *\n"
26432 " guestfs_command (guestfs_h *g,\n"
26433 "                  char *const *arguments);\n"
26434 "\n"
26435 msgstr ""
26436
26437 #. type: textblock
26438 #: ../src/guestfs-actions.pod:1105
26439 msgid ""
26440 "The single parameter is an argv-style list of arguments.  The first element "
26441 "is the name of the program to run.  Subsequent elements are parameters.  The "
26442 "list must be non-empty (ie. must contain a program name).  Note that the "
26443 "command runs directly, and is I<not> invoked via the shell (see "
26444 "C<guestfs_sh>)."
26445 msgstr ""
26446
26447 #. type: textblock
26448 #: ../src/guestfs-actions.pod:1136 ../src/guestfs-actions.pod:1156
26449 #: ../src/guestfs-actions.pod:1732
26450 msgid "(Added in 0.9.1)"
26451 msgstr "(Додано у 0.9.1)"
26452
26453 #. type: =head2
26454 #: ../src/guestfs-actions.pod:1138
26455 msgid "guestfs_command_lines"
26456 msgstr ""
26457
26458 #. type: verbatim
26459 #: ../src/guestfs-actions.pod:1140
26460 #, no-wrap
26461 msgid ""
26462 " char **\n"
26463 " guestfs_command_lines (guestfs_h *g,\n"
26464 "                        char *const *arguments);\n"
26465 "\n"
26466 msgstr ""
26467
26468 #. type: textblock
26469 #: ../src/guestfs-actions.pod:1144
26470 msgid ""
26471 "This is the same as C<guestfs_command>, but splits the result into a list of "
26472 "lines."
26473 msgstr ""
26474
26475 #. type: textblock
26476 #: ../src/guestfs-actions.pod:1147
26477 msgid "See also: C<guestfs_sh_lines>"
26478 msgstr ""
26479
26480 #. type: =head2
26481 #: ../src/guestfs-actions.pod:1158
26482 msgid "guestfs_compress_device_out"
26483 msgstr ""
26484
26485 #. type: verbatim
26486 #: ../src/guestfs-actions.pod:1160
26487 #, no-wrap
26488 msgid ""
26489 " int\n"
26490 " guestfs_compress_device_out (guestfs_h *g,\n"
26491 "                              const char *ctype,\n"
26492 "                              const char *device,\n"
26493 "                              const char *zdevice,\n"
26494 "                              ...);\n"
26495 "\n"
26496 msgstr ""
26497
26498 #. type: verbatim
26499 #: ../src/guestfs-actions.pod:1172
26500 #, no-wrap
26501 msgid ""
26502 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
26503 "\n"
26504 msgstr ""
26505
26506 #. type: textblock
26507 #: ../src/guestfs-actions.pod:1177
26508 msgid ""
26509 "The C<ctype> and optional C<level> parameters have the same meaning as in "
26510 "C<guestfs_compress_out>."
26511 msgstr ""
26512
26513 #. type: textblock
26514 #: ../src/guestfs-actions.pod:1182 ../src/guestfs-actions.pod:1241
26515 #: ../src/guestfs-actions.pod:2277 ../src/guestfs-actions.pod:6602
26516 msgid "(Added in 1.13.15)"
26517 msgstr ""
26518
26519 #. type: =head2
26520 #: ../src/guestfs-actions.pod:1184
26521 msgid "guestfs_compress_device_out_va"
26522 msgstr ""
26523
26524 #. type: verbatim
26525 #: ../src/guestfs-actions.pod:1186
26526 #, no-wrap
26527 msgid ""
26528 " int\n"
26529 " guestfs_compress_device_out_va (guestfs_h *g,\n"
26530 "                                 const char *ctype,\n"
26531 "                                 const char *device,\n"
26532 "                                 const char *zdevice,\n"
26533 "                                 va_list args);\n"
26534 "\n"
26535 msgstr ""
26536
26537 #. type: textblock
26538 #: ../src/guestfs-actions.pod:1193
26539 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
26540 msgstr ""
26541
26542 #. type: =head2
26543 #: ../src/guestfs-actions.pod:1197
26544 msgid "guestfs_compress_device_out_argv"
26545 msgstr ""
26546
26547 #. type: verbatim
26548 #: ../src/guestfs-actions.pod:1199
26549 #, no-wrap
26550 msgid ""
26551 " int\n"
26552 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
26553 "                                   const char *ctype,\n"
26554 "                                   const char *device,\n"
26555 "                                   const char *zdevice,\n"
26556 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
26557 "\n"
26558 msgstr ""
26559
26560 #. type: textblock
26561 #: ../src/guestfs-actions.pod:1206
26562 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
26563 msgstr ""
26564
26565 #. type: =head2
26566 #: ../src/guestfs-actions.pod:1210
26567 msgid "guestfs_compress_out"
26568 msgstr ""
26569
26570 #. type: verbatim
26571 #: ../src/guestfs-actions.pod:1212
26572 #, no-wrap
26573 msgid ""
26574 " int\n"
26575 " guestfs_compress_out (guestfs_h *g,\n"
26576 "                       const char *ctype,\n"
26577 "                       const char *file,\n"
26578 "                       const char *zfile,\n"
26579 "                       ...);\n"
26580 "\n"
26581 msgstr ""
26582
26583 #. type: verbatim
26584 #: ../src/guestfs-actions.pod:1224
26585 #, no-wrap
26586 msgid ""
26587 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
26588 "\n"
26589 msgstr ""
26590
26591 #. type: =head2
26592 #: ../src/guestfs-actions.pod:1243
26593 msgid "guestfs_compress_out_va"
26594 msgstr ""
26595
26596 #. type: verbatim
26597 #: ../src/guestfs-actions.pod:1245
26598 #, no-wrap
26599 msgid ""
26600 " int\n"
26601 " guestfs_compress_out_va (guestfs_h *g,\n"
26602 "                          const char *ctype,\n"
26603 "                          const char *file,\n"
26604 "                          const char *zfile,\n"
26605 "                          va_list args);\n"
26606 "\n"
26607 msgstr ""
26608
26609 #. type: textblock
26610 #: ../src/guestfs-actions.pod:1252
26611 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
26612 msgstr ""
26613
26614 #. type: =head2
26615 #: ../src/guestfs-actions.pod:1256
26616 msgid "guestfs_compress_out_argv"
26617 msgstr ""
26618
26619 #. type: verbatim
26620 #: ../src/guestfs-actions.pod:1258
26621 #, no-wrap
26622 msgid ""
26623 " int\n"
26624 " guestfs_compress_out_argv (guestfs_h *g,\n"
26625 "                            const char *ctype,\n"
26626 "                            const char *file,\n"
26627 "                            const char *zfile,\n"
26628 "                            const struct guestfs_compress_out_argv *optargs);\n"
26629 "\n"
26630 msgstr ""
26631
26632 #. type: textblock
26633 #: ../src/guestfs-actions.pod:1265
26634 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
26635 msgstr ""
26636
26637 #. type: =head2
26638 #: ../src/guestfs-actions.pod:1269
26639 msgid "guestfs_config"
26640 msgstr ""
26641
26642 #. type: verbatim
26643 #: ../src/guestfs-actions.pod:1271
26644 #, no-wrap
26645 msgid ""
26646 " int\n"
26647 " guestfs_config (guestfs_h *g,\n"
26648 "                 const char *qemuparam,\n"
26649 "                 const char *qemuvalue);\n"
26650 "\n"
26651 msgstr ""
26652
26653 #. type: =head2
26654 #: ../src/guestfs-actions.pod:1289
26655 msgid "guestfs_copy_size"
26656 msgstr ""
26657
26658 #. type: verbatim
26659 #: ../src/guestfs-actions.pod:1291
26660 #, no-wrap
26661 msgid ""
26662 " int\n"
26663 " guestfs_copy_size (guestfs_h *g,\n"
26664 "                    const char *src,\n"
26665 "                    const char *dest,\n"
26666 "                    int64_t size);\n"
26667 "\n"
26668 msgstr ""
26669
26670 #. type: textblock
26671 #: ../src/guestfs-actions.pod:1305 ../src/guestfs-actions.pod:1428
26672 #: ../src/guestfs-actions.pod:1459 ../src/guestfs-actions.pod:1504
26673 #: ../src/guestfs-actions.pod:1881 ../src/guestfs-actions.pod:1903
26674 #: ../src/guestfs-actions.pod:3810 ../src/guestfs-actions.pod:7416
26675 #: ../src/guestfs-actions.pod:7450 ../src/guestfs-actions.pod:7957
26676 #: ../src/guestfs-actions.pod:7980
26677 msgid ""
26678 "This long-running command can generate progress notification messages so "
26679 "that the caller can display a progress bar or indicator.  To receive these "
26680 "messages, the caller must register a progress event callback.  See L<guestfs"
26681 "(3)/GUESTFS_EVENT_PROGRESS>."
26682 msgstr ""
26683
26684 #. type: textblock
26685 #: ../src/guestfs-actions.pod:1310 ../src/guestfs-actions.pod:4534
26686 #: ../src/guestfs-actions.pod:5909 ../src/guestfs-actions.pod:7651
26687 #: ../src/guestfs-actions.pod:7671 ../src/guestfs-actions.pod:7757
26688 msgid "(Added in 1.0.87)"
26689 msgstr "(Додано у 1.0.87)"
26690
26691 #. type: =head2
26692 #: ../src/guestfs-actions.pod:1312
26693 msgid "guestfs_cp"
26694 msgstr ""
26695
26696 #. type: verbatim
26697 #: ../src/guestfs-actions.pod:1314
26698 #, no-wrap
26699 msgid ""
26700 " int\n"
26701 " guestfs_cp (guestfs_h *g,\n"
26702 "             const char *src,\n"
26703 "             const char *dest);\n"
26704 "\n"
26705 msgstr ""
26706
26707 #. type: textblock
26708 #: ../src/guestfs-actions.pod:1324 ../src/guestfs-actions.pod:1338
26709 #: ../src/guestfs-actions.pod:1410 ../src/guestfs-actions.pod:1484
26710 #: ../src/guestfs-actions.pod:1598 ../src/guestfs-actions.pod:5278
26711 #: ../src/guestfs-actions.pod:5753
26712 msgid "(Added in 1.0.18)"
26713 msgstr "(Додано у 1.0.18)"
26714
26715 #. type: =head2
26716 #: ../src/guestfs-actions.pod:1326
26717 msgid "guestfs_cp_a"
26718 msgstr ""
26719
26720 #. type: verbatim
26721 #: ../src/guestfs-actions.pod:1328
26722 #, no-wrap
26723 msgid ""
26724 " int\n"
26725 " guestfs_cp_a (guestfs_h *g,\n"
26726 "               const char *src,\n"
26727 "               const char *dest);\n"
26728 "\n"
26729 msgstr ""
26730
26731 #. type: =head2
26732 #: ../src/guestfs-actions.pod:1340
26733 msgid "guestfs_dd"
26734 msgstr ""
26735
26736 #. type: verbatim
26737 #: ../src/guestfs-actions.pod:1342
26738 #, no-wrap
26739 msgid ""
26740 " int\n"
26741 " guestfs_dd (guestfs_h *g,\n"
26742 "             const char *src,\n"
26743 "             const char *dest);\n"
26744 "\n"
26745 msgstr ""
26746
26747 #. type: textblock
26748 #: ../src/guestfs-actions.pod:1352
26749 msgid ""
26750 "If the destination is a device, it must be as large or larger than the "
26751 "source file or device, otherwise the copy will fail.  This command cannot do "
26752 "partial copies (see C<guestfs_copy_size>)."
26753 msgstr ""
26754
26755 #. type: =head2
26756 #: ../src/guestfs-actions.pod:1360
26757 msgid "guestfs_df"
26758 msgstr ""
26759
26760 #. type: verbatim
26761 #: ../src/guestfs-actions.pod:1362
26762 #, no-wrap
26763 msgid ""
26764 " char *\n"
26765 " guestfs_df (guestfs_h *g);\n"
26766 "\n"
26767 msgstr ""
26768
26769 #. type: textblock
26770 #: ../src/guestfs-actions.pod:1367 ../src/guestfs-actions.pod:1384
26771 msgid ""
26772 "This command is mostly useful for interactive sessions.  It is I<not> "
26773 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
26774 "from programs."
26775 msgstr ""
26776
26777 #. type: textblock
26778 #: ../src/guestfs-actions.pod:1374 ../src/guestfs-actions.pod:1391
26779 #: ../src/guestfs-actions.pod:1509 ../src/guestfs-actions.pod:2516
26780 #: ../src/guestfs-actions.pod:2540 ../src/guestfs-actions.pod:2608
26781 #: ../src/guestfs-actions.pod:4644 ../src/guestfs-actions.pod:5178
26782 #: ../src/guestfs-actions.pod:7154 ../src/guestfs-actions.pod:7178
26783 #: ../src/guestfs-actions.pod:7797 ../src/guestfs-actions.pod:7810
26784 #: ../src/guestfs-actions.pod:7823
26785 msgid "(Added in 1.0.54)"
26786 msgstr "(Додано у 1.0.54)"
26787
26788 #. type: =head2
26789 #: ../src/guestfs-actions.pod:1376
26790 msgid "guestfs_df_h"
26791 msgstr ""
26792
26793 #. type: verbatim
26794 #: ../src/guestfs-actions.pod:1378
26795 #, no-wrap
26796 msgid ""
26797 " char *\n"
26798 " guestfs_df_h (guestfs_h *g);\n"
26799 "\n"
26800 msgstr ""
26801
26802 #. type: =head2
26803 #: ../src/guestfs-actions.pod:1393
26804 msgid "guestfs_dmesg"
26805 msgstr ""
26806
26807 #. type: verbatim
26808 #: ../src/guestfs-actions.pod:1395
26809 #, no-wrap
26810 msgid ""
26811 " char *\n"
26812 " guestfs_dmesg (guestfs_h *g);\n"
26813 "\n"
26814 msgstr ""
26815
26816 #. type: textblock
26817 #: ../src/guestfs-actions.pod:1402
26818 msgid ""
26819 "Another way to get the same information is to enable verbose messages with "
26820 "C<guestfs_set_verbose> or by setting the environment variable "
26821 "C<LIBGUESTFS_DEBUG=1> before running the program."
26822 msgstr ""
26823
26824 #. type: =head2
26825 #: ../src/guestfs-actions.pod:1412
26826 msgid "guestfs_download"
26827 msgstr ""
26828
26829 #. type: verbatim
26830 #: ../src/guestfs-actions.pod:1414
26831 #, no-wrap
26832 msgid ""
26833 " int\n"
26834 " guestfs_download (guestfs_h *g,\n"
26835 "                   const char *remotefilename,\n"
26836 "                   const char *filename);\n"
26837 "\n"
26838 msgstr ""
26839
26840 #. type: textblock
26841 #: ../src/guestfs-actions.pod:1424
26842 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
26843 msgstr ""
26844
26845 #. type: =head2
26846 #: ../src/guestfs-actions.pod:1435
26847 msgid "guestfs_download_offset"
26848 msgstr ""
26849
26850 #. type: verbatim
26851 #: ../src/guestfs-actions.pod:1437
26852 #, no-wrap
26853 msgid ""
26854 " int\n"
26855 " guestfs_download_offset (guestfs_h *g,\n"
26856 "                          const char *remotefilename,\n"
26857 "                          const char *filename,\n"
26858 "                          int64_t offset,\n"
26859 "                          int64_t size);\n"
26860 "\n"
26861 msgstr ""
26862
26863 #. type: textblock
26864 #: ../src/guestfs-actions.pod:1450
26865 msgid ""
26866 "Note that there is no limit on the amount of data that can be downloaded "
26867 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
26868 "full amount unless an error occurs."
26869 msgstr ""
26870
26871 #. type: textblock
26872 #: ../src/guestfs-actions.pod:1455
26873 msgid "See also C<guestfs_download>, C<guestfs_pread>."
26874 msgstr ""
26875
26876 #. type: textblock
26877 #: ../src/guestfs-actions.pod:1464 ../src/guestfs-actions.pod:7455
26878 msgid "(Added in 1.5.17)"
26879 msgstr "(Додано у 1.5.17)"
26880
26881 #. type: =head2
26882 #: ../src/guestfs-actions.pod:1466
26883 msgid "guestfs_drop_caches"
26884 msgstr ""
26885
26886 #. type: verbatim
26887 #: ../src/guestfs-actions.pod:1468
26888 #, no-wrap
26889 msgid ""
26890 " int\n"
26891 " guestfs_drop_caches (guestfs_h *g,\n"
26892 "                      int whattodrop);\n"
26893 "\n"
26894 msgstr ""
26895
26896 #. type: =head2
26897 #: ../src/guestfs-actions.pod:1486
26898 msgid "guestfs_du"
26899 msgstr ""
26900
26901 #. type: verbatim
26902 #: ../src/guestfs-actions.pod:1488
26903 #, no-wrap
26904 msgid ""
26905 " int64_t\n"
26906 " guestfs_du (guestfs_h *g,\n"
26907 "             const char *path);\n"
26908 "\n"
26909 msgstr ""
26910
26911 #. type: =head2
26912 #: ../src/guestfs-actions.pod:1511
26913 msgid "guestfs_e2fsck_f"
26914 msgstr ""
26915
26916 #. type: verbatim
26917 #: ../src/guestfs-actions.pod:1513
26918 #, no-wrap
26919 msgid ""
26920 " int\n"
26921 " guestfs_e2fsck_f (guestfs_h *g,\n"
26922 "                   const char *device);\n"
26923 "\n"
26924 msgstr ""
26925
26926 #. type: textblock
26927 #: ../src/guestfs-actions.pod:1521
26928 msgid ""
26929 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
26930 "Normally you should use C<guestfs_fsck>."
26931 msgstr ""
26932
26933 #. type: textblock
26934 #: ../src/guestfs-actions.pod:1526
26935 msgid "(Added in 1.0.29)"
26936 msgstr "(Додано у 1.0.29)"
26937
26938 #. type: =head2
26939 #: ../src/guestfs-actions.pod:1528
26940 msgid "guestfs_echo_daemon"
26941 msgstr "guestfs_echo_daemon"
26942
26943 #. type: verbatim
26944 #: ../src/guestfs-actions.pod:1530
26945 #, no-wrap
26946 msgid ""
26947 " char *\n"
26948 " guestfs_echo_daemon (guestfs_h *g,\n"
26949 "                      char *const *words);\n"
26950 "\n"
26951 msgstr ""
26952 " char *\n"
26953 " guestfs_echo_daemon (guestfs_h *g,\n"
26954 "                      char *const *words);\n"
26955 "\n"
26956
26957 #. type: textblock
26958 #: ../src/guestfs-actions.pod:1539
26959 msgid "See also C<guestfs_ping_daemon>."
26960 msgstr ""
26961
26962 #. type: textblock
26963 #: ../src/guestfs-actions.pod:1544 ../src/guestfs-actions.pod:2302
26964 #: ../src/guestfs-actions.pod:6626
26965 msgid "(Added in 1.0.69)"
26966 msgstr "(Додано у 1.0.69)"
26967
26968 #. type: =head2
26969 #: ../src/guestfs-actions.pod:1546
26970 msgid "guestfs_egrep"
26971 msgstr "guestfs_egrep"
26972
26973 #. type: verbatim
26974 #: ../src/guestfs-actions.pod:1548
26975 #, no-wrap
26976 msgid ""
26977 " char **\n"
26978 " guestfs_egrep (guestfs_h *g,\n"
26979 "                const char *regex,\n"
26980 "                const char *path);\n"
26981 "\n"
26982 msgstr ""
26983 " char **\n"
26984 " guestfs_egrep (guestfs_h *g,\n"
26985 "                const char *regex,\n"
26986 "                const char *path);\n"
26987 "\n"
26988
26989 #. type: textblock
26990 #: ../src/guestfs-actions.pod:1563 ../src/guestfs-actions.pod:1582
26991 #: ../src/guestfs-actions.pod:1639 ../src/guestfs-actions.pod:1685
26992 #: ../src/guestfs-actions.pod:1704 ../src/guestfs-actions.pod:2432
26993 #: ../src/guestfs-actions.pod:2451 ../src/guestfs-actions.pod:2629
26994 #: ../src/guestfs-actions.pod:2642 ../src/guestfs-actions.pod:2657
26995 #: ../src/guestfs-actions.pod:2703 ../src/guestfs-actions.pod:2725
26996 #: ../src/guestfs-actions.pod:2738 ../src/guestfs-actions.pod:4024
26997 #: ../src/guestfs-actions.pod:4038 ../src/guestfs-actions.pod:4051
26998 #: ../src/guestfs-actions.pod:4065 ../src/guestfs-actions.pod:5066
26999 #: ../src/guestfs-actions.pod:6087 ../src/guestfs-actions.pod:6136
27000 #: ../src/guestfs-actions.pod:7022 ../src/guestfs-actions.pod:7034
27001 #: ../src/guestfs-actions.pod:7047 ../src/guestfs-actions.pod:7060
27002 #: ../src/guestfs-actions.pod:7082 ../src/guestfs-actions.pod:7095
27003 #: ../src/guestfs-actions.pod:7108 ../src/guestfs-actions.pod:7121
27004 #: ../src/guestfs-actions.pod:7915 ../src/guestfs-actions.pod:7934
27005 #: ../src/guestfs-actions.pod:8028 ../src/guestfs-actions.pod:8047
27006 #: ../src/guestfs-actions.pod:8093 ../src/guestfs-actions.pod:8112
27007 msgid "(Added in 1.0.66)"
27008 msgstr "(Додано у 1.0.66)"
27009
27010 #. type: =head2
27011 #: ../src/guestfs-actions.pod:1565
27012 msgid "guestfs_egrepi"
27013 msgstr "guestfs_egrepi"
27014
27015 #. type: verbatim
27016 #: ../src/guestfs-actions.pod:1567
27017 #, no-wrap
27018 msgid ""
27019 " char **\n"
27020 " guestfs_egrepi (guestfs_h *g,\n"
27021 "                 const char *regex,\n"
27022 "                 const char *path);\n"
27023 "\n"
27024 msgstr ""
27025
27026 #. type: =head2
27027 #: ../src/guestfs-actions.pod:1584
27028 msgid "guestfs_equal"
27029 msgstr ""
27030
27031 #. type: verbatim
27032 #: ../src/guestfs-actions.pod:1586
27033 #, no-wrap
27034 msgid ""
27035 " int\n"
27036 " guestfs_equal (guestfs_h *g,\n"
27037 "                const char *file1,\n"
27038 "                const char *file2);\n"
27039 "\n"
27040 msgstr ""
27041
27042 #. type: =head2
27043 #: ../src/guestfs-actions.pod:1600
27044 msgid "guestfs_exists"
27045 msgstr ""
27046
27047 #. type: verbatim
27048 #: ../src/guestfs-actions.pod:1602
27049 #, no-wrap
27050 msgid ""
27051 " int\n"
27052 " guestfs_exists (guestfs_h *g,\n"
27053 "                 const char *path);\n"
27054 "\n"
27055 msgstr ""
27056
27057 #. type: textblock
27058 #: ../src/guestfs-actions.pod:1609
27059 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
27060 msgstr ""
27061
27062 #. type: =head2
27063 #: ../src/guestfs-actions.pod:1615
27064 msgid "guestfs_fallocate"
27065 msgstr ""
27066
27067 #. type: verbatim
27068 #: ../src/guestfs-actions.pod:1617
27069 #, no-wrap
27070 msgid ""
27071 " int\n"
27072 " guestfs_fallocate (guestfs_h *g,\n"
27073 "                    const char *path,\n"
27074 "                    int len);\n"
27075 "\n"
27076 msgstr ""
27077
27078 #. type: textblock
27079 #: ../src/guestfs-actions.pod:1622
27080 msgid ""
27081 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
27082 "call instead."
27083 msgstr ""
27084
27085 #. type: =head2
27086 #: ../src/guestfs-actions.pod:1641
27087 msgid "guestfs_fallocate64"
27088 msgstr ""
27089
27090 #. type: verbatim
27091 #: ../src/guestfs-actions.pod:1643
27092 #, no-wrap
27093 msgid ""
27094 " int\n"
27095 " guestfs_fallocate64 (guestfs_h *g,\n"
27096 "                      const char *path,\n"
27097 "                      int64_t len);\n"
27098 "\n"
27099 msgstr ""
27100
27101 #. type: textblock
27102 #: ../src/guestfs-actions.pod:1652
27103 msgid ""
27104 "Note that this call allocates disk blocks for the file.  To create a sparse "
27105 "file use C<guestfs_truncate_size> instead."
27106 msgstr ""
27107
27108 #. type: textblock
27109 #: ../src/guestfs-actions.pod:1655
27110 msgid ""
27111 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
27112 "oversight it only allowed 30 bit lengths to be specified, effectively "
27113 "limiting the maximum size of files created through that call to 1GB."
27114 msgstr ""
27115
27116 #. type: textblock
27117 #: ../src/guestfs-actions.pod:1666
27118 msgid "(Added in 1.3.17)"
27119 msgstr "(Додано у 1.3.17)"
27120
27121 #. type: =head2
27122 #: ../src/guestfs-actions.pod:1668
27123 msgid "guestfs_fgrep"
27124 msgstr ""
27125
27126 #. type: verbatim
27127 #: ../src/guestfs-actions.pod:1670
27128 #, no-wrap
27129 msgid ""
27130 " char **\n"
27131 " guestfs_fgrep (guestfs_h *g,\n"
27132 "                const char *pattern,\n"
27133 "                const char *path);\n"
27134 "\n"
27135 msgstr ""
27136
27137 #. type: =head2
27138 #: ../src/guestfs-actions.pod:1687
27139 msgid "guestfs_fgrepi"
27140 msgstr ""
27141
27142 #. type: verbatim
27143 #: ../src/guestfs-actions.pod:1689
27144 #, no-wrap
27145 msgid ""
27146 " char **\n"
27147 " guestfs_fgrepi (guestfs_h *g,\n"
27148 "                 const char *pattern,\n"
27149 "                 const char *path);\n"
27150 "\n"
27151 msgstr ""
27152
27153 #. type: =head2
27154 #: ../src/guestfs-actions.pod:1706
27155 msgid "guestfs_file"
27156 msgstr ""
27157
27158 #. type: verbatim
27159 #: ../src/guestfs-actions.pod:1708
27160 #, no-wrap
27161 msgid ""
27162 " char *\n"
27163 " guestfs_file (guestfs_h *g,\n"
27164 "               const char *path);\n"
27165 "\n"
27166 msgstr ""
27167
27168 #. type: textblock
27169 #: ../src/guestfs-actions.pod:1726
27170 msgid ""
27171 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
27172 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
27173 msgstr ""
27174
27175 #. type: =head2
27176 #: ../src/guestfs-actions.pod:1734
27177 msgid "guestfs_file_architecture"
27178 msgstr ""
27179
27180 #. type: verbatim
27181 #: ../src/guestfs-actions.pod:1736
27182 #, no-wrap
27183 msgid ""
27184 " char *\n"
27185 " guestfs_file_architecture (guestfs_h *g,\n"
27186 "                            const char *filename);\n"
27187 "\n"
27188 msgstr ""
27189
27190 #. type: textblock
27191 #: ../src/guestfs-actions.pod:1844 ../src/guestfs-actions.pod:2007
27192 #: ../src/guestfs-actions.pod:2024 ../src/guestfs-actions.pod:2758
27193 #: ../src/guestfs-actions.pod:2860 ../src/guestfs-actions.pod:2926
27194 #: ../src/guestfs-actions.pod:3113 ../src/guestfs-actions.pod:3131
27195 #: ../src/guestfs-actions.pod:3171 ../src/guestfs-actions.pod:3247
27196 #: ../src/guestfs-actions.pod:3344 ../src/guestfs-actions.pod:3581
27197 #: ../src/guestfs-actions.pod:3713
27198 msgid "(Added in 1.5.3)"
27199 msgstr "(Додано у 1.5.3)"
27200
27201 #. type: =head2
27202 #: ../src/guestfs-actions.pod:1846
27203 msgid "guestfs_filesize"
27204 msgstr ""
27205
27206 #. type: verbatim
27207 #: ../src/guestfs-actions.pod:1848
27208 #, no-wrap
27209 msgid ""
27210 " int64_t\n"
27211 " guestfs_filesize (guestfs_h *g,\n"
27212 "                   const char *file);\n"
27213 "\n"
27214 msgstr ""
27215
27216 #. type: textblock
27217 #: ../src/guestfs-actions.pod:1854
27218 msgid ""
27219 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
27220 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
27221 "devices, use C<guestfs_blockdev_getsize64>."
27222 msgstr ""
27223
27224 #. type: textblock
27225 #: ../src/guestfs-actions.pod:1860
27226 msgid "(Added in 1.0.82)"
27227 msgstr "(Додано у 1.0.82)"
27228
27229 #. type: =head2
27230 #: ../src/guestfs-actions.pod:1862
27231 msgid "guestfs_fill"
27232 msgstr ""
27233
27234 #. type: verbatim
27235 #: ../src/guestfs-actions.pod:1864
27236 #, no-wrap
27237 msgid ""
27238 " int\n"
27239 " guestfs_fill (guestfs_h *g,\n"
27240 "               int c,\n"
27241 "               int len,\n"
27242 "               const char *path);\n"
27243 "\n"
27244 msgstr ""
27245
27246 #. type: textblock
27247 #: ../src/guestfs-actions.pod:1874
27248 msgid ""
27249 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
27250 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
27251 "bytes use C<guestfs_fill_pattern>."
27252 msgstr ""
27253
27254 #. type: textblock
27255 #: ../src/guestfs-actions.pod:1886
27256 msgid "(Added in 1.0.79)"
27257 msgstr "(Додано у 1.0.79)"
27258
27259 #. type: =head2
27260 #: ../src/guestfs-actions.pod:1888
27261 msgid "guestfs_fill_pattern"
27262 msgstr ""
27263
27264 #. type: verbatim
27265 #: ../src/guestfs-actions.pod:1890
27266 #, no-wrap
27267 msgid ""
27268 " int\n"
27269 " guestfs_fill_pattern (guestfs_h *g,\n"
27270 "                       const char *pattern,\n"
27271 "                       int len,\n"
27272 "                       const char *path);\n"
27273 "\n"
27274 msgstr ""
27275
27276 #. type: textblock
27277 #: ../src/guestfs-actions.pod:1896
27278 msgid ""
27279 "This function is like C<guestfs_fill> except that it creates a new file of "
27280 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
27281 "pattern is truncated if necessary to ensure the length of the file is "
27282 "exactly C<len> bytes."
27283 msgstr ""
27284
27285 #. type: textblock
27286 #: ../src/guestfs-actions.pod:1908
27287 msgid "(Added in 1.3.12)"
27288 msgstr "(Додано у 1.3.12)"
27289
27290 #. type: =head2
27291 #: ../src/guestfs-actions.pod:1910
27292 msgid "guestfs_find"
27293 msgstr ""
27294
27295 #. type: verbatim
27296 #: ../src/guestfs-actions.pod:1912
27297 #, no-wrap
27298 msgid ""
27299 " char **\n"
27300 " guestfs_find (guestfs_h *g,\n"
27301 "               const char *directory);\n"
27302 "\n"
27303 msgstr ""
27304
27305 #. type: textblock
27306 #: ../src/guestfs-actions.pod:1928
27307 msgid ""
27308 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
27309 msgstr ""
27310
27311 #. type: textblock
27312 #: ../src/guestfs-actions.pod:1941
27313 msgid "See also C<guestfs_find0>."
27314 msgstr ""
27315
27316 #. type: textblock
27317 #: ../src/guestfs-actions.pod:1950 ../src/guestfs-actions.pod:4471
27318 #: ../src/guestfs-actions.pod:6171
27319 msgid "(Added in 1.0.27)"
27320 msgstr "(Додано у 1.0.27)"
27321
27322 #. type: =head2
27323 #: ../src/guestfs-actions.pod:1952
27324 msgid "guestfs_find0"
27325 msgstr ""
27326
27327 #. type: verbatim
27328 #: ../src/guestfs-actions.pod:1954
27329 #, no-wrap
27330 msgid ""
27331 " int\n"
27332 " guestfs_find0 (guestfs_h *g,\n"
27333 "                const char *directory,\n"
27334 "                const char *files);\n"
27335 "\n"
27336 msgstr ""
27337
27338 #. type: textblock
27339 #: ../src/guestfs-actions.pod:1963
27340 msgid ""
27341 "This command works the same way as C<guestfs_find> with the following "
27342 "exceptions:"
27343 msgstr ""
27344
27345 #. type: textblock
27346 #: ../src/guestfs-actions.pod:1990
27347 msgid "(Added in 1.0.74)"
27348 msgstr "(Додано у 1.0.74)"
27349
27350 #. type: =head2
27351 #: ../src/guestfs-actions.pod:1992
27352 msgid "guestfs_findfs_label"
27353 msgstr ""
27354
27355 #. type: verbatim
27356 #: ../src/guestfs-actions.pod:1994
27357 #, no-wrap
27358 msgid ""
27359 " char *\n"
27360 " guestfs_findfs_label (guestfs_h *g,\n"
27361 "                       const char *label);\n"
27362 "\n"
27363 msgstr ""
27364
27365 #. type: textblock
27366 #: ../src/guestfs-actions.pod:2002
27367 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
27368 msgstr ""
27369
27370 #. type: =head2
27371 #: ../src/guestfs-actions.pod:2009
27372 msgid "guestfs_findfs_uuid"
27373 msgstr ""
27374
27375 #. type: verbatim
27376 #: ../src/guestfs-actions.pod:2011
27377 #, no-wrap
27378 msgid ""
27379 " char *\n"
27380 " guestfs_findfs_uuid (guestfs_h *g,\n"
27381 "                      const char *uuid);\n"
27382 "\n"
27383 msgstr ""
27384
27385 #. type: textblock
27386 #: ../src/guestfs-actions.pod:2019
27387 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
27388 msgstr ""
27389
27390 #. type: =head2
27391 #: ../src/guestfs-actions.pod:2026
27392 msgid "guestfs_fsck"
27393 msgstr ""
27394
27395 #. type: verbatim
27396 #: ../src/guestfs-actions.pod:2028
27397 #, no-wrap
27398 msgid ""
27399 " int\n"
27400 " guestfs_fsck (guestfs_h *g,\n"
27401 "               const char *fstype,\n"
27402 "               const char *device);\n"
27403 "\n"
27404 msgstr ""
27405
27406 #. type: textblock
27407 #: ../src/guestfs-actions.pod:2063 ../src/guestfs-actions.pod:7962
27408 msgid "(Added in 1.0.16)"
27409 msgstr "(Додано у 1.0.16)"
27410
27411 #. type: =head2
27412 #: ../src/guestfs-actions.pod:2065
27413 msgid "guestfs_get_append"
27414 msgstr ""
27415
27416 #. type: verbatim
27417 #: ../src/guestfs-actions.pod:2067
27418 #, no-wrap
27419 msgid ""
27420 " const char *\n"
27421 " guestfs_get_append (guestfs_h *g);\n"
27422 "\n"
27423 msgstr ""
27424
27425 #. type: textblock
27426 #: ../src/guestfs-actions.pod:2075
27427 msgid ""
27428 "This function returns a string which may be NULL.  There is no way to return "
27429 "an error from this function.  The string is owned by the guest handle and "
27430 "must I<not> be freed."
27431 msgstr ""
27432
27433 #. type: textblock
27434 #: ../src/guestfs-actions.pod:2079 ../src/guestfs-actions.pod:5849
27435 #: ../src/guestfs-actions.pod:6331 ../src/guestfs-actions.pod:6789
27436 #: ../src/guestfs-actions.pod:6808 ../src/guestfs-actions.pod:6824
27437 #: ../src/guestfs-actions.pod:6848 ../src/guestfs-actions.pod:7602
27438 #: ../src/guestfs-actions.pod:7617 ../src/guestfs-actions.pod:8009
27439 msgid "(Added in 1.0.26)"
27440 msgstr "(Додано у 1.0.26)"
27441
27442 #. type: =head2
27443 #: ../src/guestfs-actions.pod:2081
27444 msgid "guestfs_get_attach_method"
27445 msgstr ""
27446
27447 #. type: verbatim
27448 #: ../src/guestfs-actions.pod:2083
27449 #, no-wrap
27450 msgid ""
27451 " char *\n"
27452 " guestfs_get_attach_method (guestfs_h *g);\n"
27453 "\n"
27454 msgstr ""
27455
27456 #. type: textblock
27457 #: ../src/guestfs-actions.pod:2086
27458 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
27459 msgstr ""
27460
27461 #. type: textblock
27462 #: ../src/guestfs-actions.pod:2091 ../src/guestfs-actions.pod:6361
27463 msgid "(Added in 1.9.8)"
27464 msgstr "(Додано у 1.9.8)"
27465
27466 #. type: =head2
27467 #: ../src/guestfs-actions.pod:2093
27468 msgid "guestfs_get_autosync"
27469 msgstr ""
27470
27471 #. type: verbatim
27472 #: ../src/guestfs-actions.pod:2095
27473 #, no-wrap
27474 msgid ""
27475 " int\n"
27476 " guestfs_get_autosync (guestfs_h *g);\n"
27477 "\n"
27478 msgstr ""
27479
27480 #. type: =head2
27481 #: ../src/guestfs-actions.pod:2104
27482 msgid "guestfs_get_direct"
27483 msgstr ""
27484
27485 #. type: verbatim
27486 #: ../src/guestfs-actions.pod:2106
27487 #, no-wrap
27488 msgid ""
27489 " int\n"
27490 " guestfs_get_direct (guestfs_h *g);\n"
27491 "\n"
27492 msgstr ""
27493
27494 #. type: textblock
27495 #: ../src/guestfs-actions.pod:2113 ../src/guestfs-actions.pod:6402
27496 msgid "(Added in 1.0.72)"
27497 msgstr "(Додано у 1.0.72)"
27498
27499 #. type: =head2
27500 #: ../src/guestfs-actions.pod:2115
27501 msgid "guestfs_get_e2label"
27502 msgstr ""
27503
27504 #. type: verbatim
27505 #: ../src/guestfs-actions.pod:2117
27506 #, no-wrap
27507 msgid ""
27508 " char *\n"
27509 " guestfs_get_e2label (guestfs_h *g,\n"
27510 "                      const char *device);\n"
27511 "\n"
27512 msgstr ""
27513
27514 #. type: textblock
27515 #: ../src/guestfs-actions.pod:2121
27516 msgid ""
27517 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
27518 "call instead."
27519 msgstr ""
27520
27521 #. type: textblock
27522 #: ../src/guestfs-actions.pod:2134 ../src/guestfs-actions.pod:2155
27523 #: ../src/guestfs-actions.pod:6420 ../src/guestfs-actions.pod:6439
27524 msgid "(Added in 1.0.15)"
27525 msgstr "(Додано у 1.0.15)"
27526
27527 #. type: =head2
27528 #: ../src/guestfs-actions.pod:2136
27529 msgid "guestfs_get_e2uuid"
27530 msgstr ""
27531
27532 #. type: verbatim
27533 #: ../src/guestfs-actions.pod:2138
27534 #, no-wrap
27535 msgid ""
27536 " char *\n"
27537 " guestfs_get_e2uuid (guestfs_h *g,\n"
27538 "                     const char *device);\n"
27539 "\n"
27540 msgstr ""
27541
27542 #. type: textblock
27543 #: ../src/guestfs-actions.pod:2142
27544 msgid ""
27545 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
27546 "call instead."
27547 msgstr ""
27548
27549 #. type: =head2
27550 #: ../src/guestfs-actions.pod:2157
27551 msgid "guestfs_get_memsize"
27552 msgstr ""
27553
27554 #. type: verbatim
27555 #: ../src/guestfs-actions.pod:2159
27556 #, no-wrap
27557 msgid ""
27558 " int\n"
27559 " guestfs_get_memsize (guestfs_h *g);\n"
27560 "\n"
27561 msgstr ""
27562
27563 #. type: textblock
27564 #: ../src/guestfs-actions.pod:2165
27565 msgid ""
27566 "If C<guestfs_set_memsize> was not called on this handle, and if "
27567 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
27568 "value for memsize."
27569 msgstr ""
27570
27571 #. type: textblock
27572 #: ../src/guestfs-actions.pod:2174 ../src/guestfs-actions.pod:4762
27573 #: ../src/guestfs-actions.pod:4971 ../src/guestfs-actions.pod:4990
27574 #: ../src/guestfs-actions.pod:5009 ../src/guestfs-actions.pod:5021
27575 #: ../src/guestfs-actions.pod:5038 ../src/guestfs-actions.pod:5051
27576 #: ../src/guestfs-actions.pod:6074 ../src/guestfs-actions.pod:6460
27577 #: ../src/guestfs-actions.pod:6756 ../src/guestfs-actions.pod:7371
27578 msgid "(Added in 1.0.55)"
27579 msgstr "(Додано у 1.0.55)"
27580
27581 #. type: =head2
27582 #: ../src/guestfs-actions.pod:2176
27583 msgid "guestfs_get_network"
27584 msgstr ""
27585
27586 #. type: verbatim
27587 #: ../src/guestfs-actions.pod:2178
27588 #, no-wrap
27589 msgid ""
27590 " int\n"
27591 " guestfs_get_network (guestfs_h *g);\n"
27592 "\n"
27593 msgstr ""
27594
27595 #. type: textblock
27596 #: ../src/guestfs-actions.pod:2185 ../src/guestfs-actions.pod:6479
27597 msgid "(Added in 1.5.4)"
27598 msgstr "(Додано у 1.5.4)"
27599
27600 #. type: =head2
27601 #: ../src/guestfs-actions.pod:2187
27602 msgid "guestfs_get_path"
27603 msgstr ""
27604
27605 #. type: verbatim
27606 #: ../src/guestfs-actions.pod:2189
27607 #, no-wrap
27608 msgid ""
27609 " const char *\n"
27610 " guestfs_get_path (guestfs_h *g);\n"
27611 "\n"
27612 msgstr ""
27613
27614 #. type: textblock
27615 #: ../src/guestfs-actions.pod:2197 ../src/guestfs-actions.pod:2237
27616 msgid ""
27617 "This function returns a string, or NULL on error.  The string is owned by "
27618 "the guest handle and must I<not> be freed."
27619 msgstr ""
27620
27621 #. type: =head2
27622 #: ../src/guestfs-actions.pod:2202
27623 msgid "guestfs_get_pgroup"
27624 msgstr ""
27625
27626 #. type: verbatim
27627 #: ../src/guestfs-actions.pod:2204
27628 #, no-wrap
27629 msgid ""
27630 " int\n"
27631 " guestfs_get_pgroup (guestfs_h *g);\n"
27632 "\n"
27633 msgstr ""
27634
27635 #. type: textblock
27636 #: ../src/guestfs-actions.pod:2211 ../src/guestfs-actions.pod:6515
27637 #: ../src/guestfs-actions.pod:7863
27638 msgid "(Added in 1.11.18)"
27639 msgstr "(Додано у 1.11.18)"
27640
27641 #. type: =head2
27642 #: ../src/guestfs-actions.pod:2213
27643 msgid "guestfs_get_pid"
27644 msgstr ""
27645
27646 #. type: verbatim
27647 #: ../src/guestfs-actions.pod:2215
27648 #, no-wrap
27649 msgid ""
27650 " int\n"
27651 " guestfs_get_pid (guestfs_h *g);\n"
27652 "\n"
27653 msgstr ""
27654
27655 #. type: textblock
27656 #: ../src/guestfs-actions.pod:2225
27657 msgid "(Added in 1.0.56)"
27658 msgstr "(Додано у 1.0.56)"
27659
27660 #. type: =head2
27661 #: ../src/guestfs-actions.pod:2227
27662 msgid "guestfs_get_qemu"
27663 msgstr ""
27664
27665 #. type: verbatim
27666 #: ../src/guestfs-actions.pod:2229
27667 #, no-wrap
27668 msgid ""
27669 " const char *\n"
27670 " guestfs_get_qemu (guestfs_h *g);\n"
27671 "\n"
27672 msgstr ""
27673
27674 #. type: textblock
27675 #: ../src/guestfs-actions.pod:2240 ../src/guestfs-actions.pod:6543
27676 msgid "(Added in 1.0.6)"
27677 msgstr "(Додано у 1.0.6)"
27678
27679 #. type: =head2
27680 #: ../src/guestfs-actions.pod:2242
27681 msgid "guestfs_get_recovery_proc"
27682 msgstr ""
27683
27684 #. type: verbatim
27685 #: ../src/guestfs-actions.pod:2244
27686 #, no-wrap
27687 msgid ""
27688 " int\n"
27689 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27690 "\n"
27691 msgstr ""
27692
27693 #. type: textblock
27694 #: ../src/guestfs-actions.pod:2251 ../src/guestfs-actions.pod:3835
27695 #: ../src/guestfs-actions.pod:4166 ../src/guestfs-actions.pod:4569
27696 #: ../src/guestfs-actions.pod:4601 ../src/guestfs-actions.pod:5779
27697 #: ../src/guestfs-actions.pod:6122 ../src/guestfs-actions.pod:6567
27698 #: ../src/guestfs-actions.pod:7274 ../src/guestfs-actions.pod:7294
27699 #: ../src/guestfs-actions.pod:7486
27700 msgid "(Added in 1.0.77)"
27701 msgstr "(Додано у 1.0.77)"
27702
27703 #. type: =head2
27704 #: ../src/guestfs-actions.pod:2253
27705 msgid "guestfs_get_selinux"
27706 msgstr ""
27707
27708 #. type: verbatim
27709 #: ../src/guestfs-actions.pod:2255
27710 #, no-wrap
27711 msgid ""
27712 " int\n"
27713 " guestfs_get_selinux (guestfs_h *g);\n"
27714 "\n"
27715 msgstr ""
27716
27717 #. type: textblock
27718 #: ../src/guestfs-actions.pod:2258
27719 msgid ""
27720 "This returns the current setting of the selinux flag which is passed to the "
27721 "appliance at boot time.  See C<guestfs_set_selinux>."
27722 msgstr ""
27723
27724 #. type: textblock
27725 #: ../src/guestfs-actions.pod:2266 ../src/guestfs-actions.pod:2340
27726 #: ../src/guestfs-actions.pod:6586 ../src/guestfs-actions.pod:6660
27727 msgid "(Added in 1.0.67)"
27728 msgstr "(Додано у 1.0.67)"
27729
27730 #. type: =head2
27731 #: ../src/guestfs-actions.pod:2268
27732 msgid "guestfs_get_smp"
27733 msgstr ""
27734
27735 #. type: verbatim
27736 #: ../src/guestfs-actions.pod:2270
27737 #, no-wrap
27738 msgid ""
27739 " int\n"
27740 " guestfs_get_smp (guestfs_h *g);\n"
27741 "\n"
27742 msgstr ""
27743
27744 #. type: =head2
27745 #: ../src/guestfs-actions.pod:2279
27746 msgid "guestfs_get_state"
27747 msgstr ""
27748
27749 #. type: verbatim
27750 #: ../src/guestfs-actions.pod:2281
27751 #, no-wrap
27752 msgid ""
27753 " int\n"
27754 " guestfs_get_state (guestfs_h *g);\n"
27755 "\n"
27756 msgstr ""
27757
27758 #. type: =head2
27759 #: ../src/guestfs-actions.pod:2293
27760 msgid "guestfs_get_trace"
27761 msgstr ""
27762
27763 #. type: verbatim
27764 #: ../src/guestfs-actions.pod:2295
27765 #, no-wrap
27766 msgid ""
27767 " int\n"
27768 " guestfs_get_trace (guestfs_h *g);\n"
27769 "\n"
27770 msgstr ""
27771
27772 #. type: =head2
27773 #: ../src/guestfs-actions.pod:2304
27774 msgid "guestfs_get_umask"
27775 msgstr ""
27776
27777 #. type: verbatim
27778 #: ../src/guestfs-actions.pod:2306
27779 #, no-wrap
27780 msgid ""
27781 " int\n"
27782 " guestfs_get_umask (guestfs_h *g);\n"
27783 "\n"
27784 msgstr ""
27785
27786 #. type: textblock
27787 #: ../src/guestfs-actions.pod:2309
27788 msgid ""
27789 "Return the current umask.  By default the umask is C<022> unless it has been "
27790 "set by calling C<guestfs_umask>."
27791 msgstr ""
27792
27793 #. type: =head2
27794 #: ../src/guestfs-actions.pod:2316
27795 msgid "guestfs_get_verbose"
27796 msgstr ""
27797
27798 #. type: verbatim
27799 #: ../src/guestfs-actions.pod:2318
27800 #, no-wrap
27801 msgid ""
27802 " int\n"
27803 " guestfs_get_verbose (guestfs_h *g);\n"
27804 "\n"
27805 msgstr ""
27806
27807 #. type: =head2
27808 #: ../src/guestfs-actions.pod:2327
27809 msgid "guestfs_getcon"
27810 msgstr ""
27811
27812 #. type: verbatim
27813 #: ../src/guestfs-actions.pod:2329
27814 #, no-wrap
27815 msgid ""
27816 " char *\n"
27817 " guestfs_getcon (guestfs_h *g);\n"
27818 "\n"
27819 msgstr ""
27820
27821 #. type: textblock
27822 #: ../src/guestfs-actions.pod:2334
27823 msgid ""
27824 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
27825 msgstr ""
27826
27827 #. type: =head2
27828 #: ../src/guestfs-actions.pod:2342
27829 msgid "guestfs_getxattr"
27830 msgstr ""
27831
27832 #. type: verbatim
27833 #: ../src/guestfs-actions.pod:2344
27834 #, no-wrap
27835 msgid ""
27836 " char *\n"
27837 " guestfs_getxattr (guestfs_h *g,\n"
27838 "                   const char *path,\n"
27839 "                   const char *name,\n"
27840 "                   size_t *size_r);\n"
27841 "\n"
27842 msgstr ""
27843
27844 #. type: textblock
27845 #: ../src/guestfs-actions.pod:2350
27846 msgid ""
27847 "Get a single extended attribute from file C<path> named C<name>.  This call "
27848 "follows symlinks.  If you want to lookup an extended attribute for the "
27849 "symlink itself, use C<guestfs_lgetxattr>."
27850 msgstr ""
27851
27852 #. type: textblock
27853 #: ../src/guestfs-actions.pod:2354 ../src/guestfs-actions.pod:3849
27854 msgid ""
27855 "Normally it is better to get all extended attributes from a file in one go "
27856 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
27857 "implementations are buggy and do not provide a way to list out attributes.  "
27858 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
27859 "extended attributes you want in advance and call this function."
27860 msgstr ""
27861
27862 #. type: textblock
27863 #: ../src/guestfs-actions.pod:2364
27864 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
27865 msgstr ""
27866
27867 #. type: textblock
27868 #: ../src/guestfs-actions.pod:2366 ../src/guestfs-actions.pod:2579
27869 #: ../src/guestfs-actions.pod:3061 ../src/guestfs-actions.pod:3861
27870 #: ../src/guestfs-actions.pod:5772 ../src/guestfs-actions.pod:5798
27871 #: ../src/guestfs-actions.pod:5979
27872 msgid ""
27873 "This function returns a buffer, or NULL on error.  The size of the returned "
27874 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
27875 "after use>."
27876 msgstr ""
27877
27878 #. type: textblock
27879 #: ../src/guestfs-actions.pod:2370 ../src/guestfs-actions.pod:3865
27880 msgid "(Added in 1.7.24)"
27881 msgstr "(Додано у 1.7.24)"
27882
27883 #. type: =head2
27884 #: ../src/guestfs-actions.pod:2372
27885 msgid "guestfs_getxattrs"
27886 msgstr ""
27887
27888 #. type: verbatim
27889 #: ../src/guestfs-actions.pod:2374
27890 #, no-wrap
27891 msgid ""
27892 " struct guestfs_xattr_list *\n"
27893 " guestfs_getxattrs (guestfs_h *g,\n"
27894 "                    const char *path);\n"
27895 "\n"
27896 msgstr ""
27897
27898 #. type: textblock
27899 #: ../src/guestfs-actions.pod:2384
27900 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
27901 msgstr ""
27902
27903 #. type: textblock
27904 #: ../src/guestfs-actions.pod:2386 ../src/guestfs-actions.pod:3877
27905 #: ../src/guestfs-actions.pod:4565
27906 msgid ""
27907 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
27908 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
27909 msgstr ""
27910
27911 #. type: textblock
27912 #: ../src/guestfs-actions.pod:2390 ../src/guestfs-actions.pod:3881
27913 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4116
27914 #: ../src/guestfs-actions.pod:6152 ../src/guestfs-actions.pod:6679
27915 #: ../src/guestfs-actions.pod:8074
27916 msgid "(Added in 1.0.59)"
27917 msgstr "(Додано у 1.0.59)"
27918
27919 #. type: =head2
27920 #: ../src/guestfs-actions.pod:2392
27921 msgid "guestfs_glob_expand"
27922 msgstr ""
27923
27924 #. type: verbatim
27925 #: ../src/guestfs-actions.pod:2394
27926 #, no-wrap
27927 msgid ""
27928 " char **\n"
27929 " guestfs_glob_expand (guestfs_h *g,\n"
27930 "                      const char *pattern);\n"
27931 "\n"
27932 msgstr ""
27933
27934 #. type: textblock
27935 #: ../src/guestfs-actions.pod:2413 ../src/guestfs-actions.pod:6872
27936 #: ../src/guestfs-actions.pod:6889
27937 msgid "(Added in 1.0.50)"
27938 msgstr "(Додано у 1.0.50)"
27939
27940 #. type: =head2
27941 #: ../src/guestfs-actions.pod:2415
27942 msgid "guestfs_grep"
27943 msgstr ""
27944
27945 #. type: verbatim
27946 #: ../src/guestfs-actions.pod:2417
27947 #, no-wrap
27948 msgid ""
27949 " char **\n"
27950 " guestfs_grep (guestfs_h *g,\n"
27951 "               const char *regex,\n"
27952 "               const char *path);\n"
27953 "\n"
27954 msgstr ""
27955
27956 #. type: =head2
27957 #: ../src/guestfs-actions.pod:2434
27958 msgid "guestfs_grepi"
27959 msgstr ""
27960
27961 #. type: verbatim
27962 #: ../src/guestfs-actions.pod:2436
27963 #, no-wrap
27964 msgid ""
27965 " char **\n"
27966 " guestfs_grepi (guestfs_h *g,\n"
27967 "                const char *regex,\n"
27968 "                const char *path);\n"
27969 "\n"
27970 msgstr ""
27971
27972 #. type: =head2
27973 #: ../src/guestfs-actions.pod:2453
27974 msgid "guestfs_grub_install"
27975 msgstr ""
27976
27977 #. type: verbatim
27978 #: ../src/guestfs-actions.pod:2455
27979 #, no-wrap
27980 msgid ""
27981 " int\n"
27982 " guestfs_grub_install (guestfs_h *g,\n"
27983 "                       const char *root,\n"
27984 "                       const char *device);\n"
27985 "\n"
27986 msgstr ""
27987
27988 #. type: textblock
27989 #: ../src/guestfs-actions.pod:2498
27990 msgid "(Added in 1.0.17)"
27991 msgstr "(Додано у 1.0.17)"
27992
27993 #. type: =head2
27994 #: ../src/guestfs-actions.pod:2500
27995 msgid "guestfs_head"
27996 msgstr ""
27997
27998 #. type: verbatim
27999 #: ../src/guestfs-actions.pod:2502
28000 #, no-wrap
28001 msgid ""
28002 " char **\n"
28003 " guestfs_head (guestfs_h *g,\n"
28004 "               const char *path);\n"
28005 "\n"
28006 msgstr ""
28007
28008 #. type: =head2
28009 #: ../src/guestfs-actions.pod:2518
28010 msgid "guestfs_head_n"
28011 msgstr ""
28012
28013 #. type: verbatim
28014 #: ../src/guestfs-actions.pod:2520
28015 #, no-wrap
28016 msgid ""
28017 " char **\n"
28018 " guestfs_head_n (guestfs_h *g,\n"
28019 "                 int nrlines,\n"
28020 "                 const char *path);\n"
28021 "\n"
28022 msgstr ""
28023
28024 #. type: =head2
28025 #: ../src/guestfs-actions.pod:2542
28026 msgid "guestfs_hexdump"
28027 msgstr ""
28028
28029 #. type: verbatim
28030 #: ../src/guestfs-actions.pod:2544
28031 #, no-wrap
28032 msgid ""
28033 " char *\n"
28034 " guestfs_hexdump (guestfs_h *g,\n"
28035 "                  const char *path);\n"
28036 "\n"
28037 msgstr ""
28038
28039 #. type: textblock
28040 #: ../src/guestfs-actions.pod:2557 ../src/guestfs-actions.pod:6953
28041 #: ../src/guestfs-actions.pod:7008
28042 msgid "(Added in 1.0.22)"
28043 msgstr "(Додано у 1.0.22)"
28044
28045 #. type: =head2
28046 #: ../src/guestfs-actions.pod:2559
28047 msgid "guestfs_initrd_cat"
28048 msgstr ""
28049
28050 #. type: verbatim
28051 #: ../src/guestfs-actions.pod:2561
28052 #, no-wrap
28053 msgid ""
28054 " char *\n"
28055 " guestfs_initrd_cat (guestfs_h *g,\n"
28056 "                     const char *initrdpath,\n"
28057 "                     const char *filename,\n"
28058 "                     size_t *size_r);\n"
28059 "\n"
28060 msgstr ""
28061
28062 #. type: textblock
28063 #: ../src/guestfs-actions.pod:2577
28064 msgid "See also C<guestfs_initrd_list>."
28065 msgstr ""
28066
28067 #. type: =head2
28068 #: ../src/guestfs-actions.pod:2588
28069 msgid "guestfs_initrd_list"
28070 msgstr ""
28071
28072 #. type: verbatim
28073 #: ../src/guestfs-actions.pod:2590
28074 #, no-wrap
28075 msgid ""
28076 " char **\n"
28077 " guestfs_initrd_list (guestfs_h *g,\n"
28078 "                      const char *path);\n"
28079 "\n"
28080 msgstr ""
28081
28082 #. type: =head2
28083 #: ../src/guestfs-actions.pod:2610
28084 msgid "guestfs_inotify_add_watch"
28085 msgstr ""
28086
28087 #. type: verbatim
28088 #: ../src/guestfs-actions.pod:2612
28089 #, no-wrap
28090 msgid ""
28091 " int64_t\n"
28092 " guestfs_inotify_add_watch (guestfs_h *g,\n"
28093 "                            const char *path,\n"
28094 "                            int mask);\n"
28095 "\n"
28096 msgstr ""
28097
28098 #. type: =head2
28099 #: ../src/guestfs-actions.pod:2631
28100 msgid "guestfs_inotify_close"
28101 msgstr ""
28102
28103 #. type: verbatim
28104 #: ../src/guestfs-actions.pod:2633
28105 #, no-wrap
28106 msgid ""
28107 " int\n"
28108 " guestfs_inotify_close (guestfs_h *g);\n"
28109 "\n"
28110 msgstr ""
28111
28112 #. type: =head2
28113 #: ../src/guestfs-actions.pod:2644
28114 msgid "guestfs_inotify_files"
28115 msgstr ""
28116
28117 #. type: verbatim
28118 #: ../src/guestfs-actions.pod:2646
28119 #, no-wrap
28120 msgid ""
28121 " char **\n"
28122 " guestfs_inotify_files (guestfs_h *g);\n"
28123 "\n"
28124 msgstr ""
28125
28126 #. type: textblock
28127 #: ../src/guestfs-actions.pod:2649
28128 msgid ""
28129 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
28130 "returns a list of pathnames of objects that were touched.  The returned "
28131 "pathnames are sorted and deduplicated."
28132 msgstr ""
28133
28134 #. type: =head2
28135 #: ../src/guestfs-actions.pod:2659
28136 msgid "guestfs_inotify_init"
28137 msgstr ""
28138
28139 #. type: verbatim
28140 #: ../src/guestfs-actions.pod:2661
28141 #, no-wrap
28142 msgid ""
28143 " int\n"
28144 " guestfs_inotify_init (guestfs_h *g,\n"
28145 "                       int maxevents);\n"
28146 "\n"
28147 msgstr ""
28148
28149 #. type: textblock
28150 #: ../src/guestfs-actions.pod:2669
28151 msgid ""
28152 "C<maxevents> is the maximum number of events which will be queued up between "
28153 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
28154 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
28155 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
28156 "throws away events, but records the fact that it threw them away by setting "
28157 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
28158 "C<guestfs_inotify_read>)."
28159 msgstr ""
28160
28161 #. type: textblock
28162 #: ../src/guestfs-actions.pod:2679
28163 msgid ""
28164 "Before any events are generated, you have to add some watches to the "
28165 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
28166 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
28167 msgstr ""
28168
28169 #. type: textblock
28170 #: ../src/guestfs-actions.pod:2685
28171 msgid ""
28172 "Queued up events should be read periodically by calling "
28173 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
28174 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
28175 "often enough then you risk the internal queue overflowing."
28176 msgstr ""
28177
28178 #. type: textblock
28179 #: ../src/guestfs-actions.pod:2692
28180 msgid ""
28181 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
28182 "This also removes any watches automatically."
28183 msgstr ""
28184
28185 #. type: =head2
28186 #: ../src/guestfs-actions.pod:2705
28187 msgid "guestfs_inotify_read"
28188 msgstr ""
28189
28190 #. type: verbatim
28191 #: ../src/guestfs-actions.pod:2707
28192 #, no-wrap
28193 msgid ""
28194 " struct guestfs_inotify_event_list *\n"
28195 " guestfs_inotify_read (guestfs_h *g);\n"
28196 "\n"
28197 msgstr ""
28198
28199 #. type: textblock
28200 #: ../src/guestfs-actions.pod:2721
28201 msgid ""
28202 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
28203 "there was an error.  I<The caller must call "
28204 "C<guestfs_free_inotify_event_list> after use>."
28205 msgstr ""
28206
28207 #. type: =head2
28208 #: ../src/guestfs-actions.pod:2727
28209 msgid "guestfs_inotify_rm_watch"
28210 msgstr ""
28211
28212 #. type: verbatim
28213 #: ../src/guestfs-actions.pod:2729
28214 #, no-wrap
28215 msgid ""
28216 " int\n"
28217 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
28218 "                           int wd);\n"
28219 "\n"
28220 msgstr ""
28221
28222 #. type: textblock
28223 #: ../src/guestfs-actions.pod:2733
28224 msgid ""
28225 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
28226 msgstr ""
28227
28228 #. type: =head2
28229 #: ../src/guestfs-actions.pod:2740
28230 msgid "guestfs_inspect_get_arch"
28231 msgstr ""
28232
28233 #. type: verbatim
28234 #: ../src/guestfs-actions.pod:2742
28235 #, no-wrap
28236 msgid ""
28237 " char *\n"
28238 " guestfs_inspect_get_arch (guestfs_h *g,\n"
28239 "                           const char *root);\n"
28240 "\n"
28241 msgstr ""
28242
28243 #. type: textblock
28244 #: ../src/guestfs-actions.pod:2746
28245 msgid ""
28246 "This returns the architecture of the inspected operating system.  The "
28247 "possible return values are listed under C<guestfs_file_architecture>."
28248 msgstr ""
28249
28250 #. type: =head2
28251 #: ../src/guestfs-actions.pod:2760
28252 msgid "guestfs_inspect_get_distro"
28253 msgstr ""
28254
28255 #. type: verbatim
28256 #: ../src/guestfs-actions.pod:2762
28257 #, no-wrap
28258 msgid ""
28259 " char *\n"
28260 " guestfs_inspect_get_distro (guestfs_h *g,\n"
28261 "                             const char *root);\n"
28262 "\n"
28263 msgstr ""
28264
28265 #. type: =head2
28266 #: ../src/guestfs-actions.pod:2862
28267 msgid "guestfs_inspect_get_drive_mappings"
28268 msgstr ""
28269
28270 #. type: verbatim
28271 #: ../src/guestfs-actions.pod:2864
28272 #, no-wrap
28273 msgid ""
28274 " char **\n"
28275 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
28276 "                                     const char *root);\n"
28277 "\n"
28278 msgstr ""
28279
28280 #. type: textblock
28281 #: ../src/guestfs-actions.pod:2893
28282 msgid ""
28283 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28284 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
28285 msgstr ""
28286
28287 #. type: textblock
28288 #: ../src/guestfs-actions.pod:2897 ../src/guestfs-actions.pod:3165
28289 #: ../src/guestfs-actions.pod:3968 ../src/guestfs-actions.pod:5240
28290 #: ../src/guestfs-actions.pod:7310
28291 msgid ""
28292 "This function returns a NULL-terminated array of strings, or NULL if there "
28293 "was an error.  The array of strings will always have length C<2n+1>, where "
28294 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
28295 "caller must free the strings and the array after use>."
28296 msgstr ""
28297
28298 #. type: textblock
28299 #: ../src/guestfs-actions.pod:2903 ../src/guestfs-actions.pod:3364
28300 msgid "(Added in 1.9.17)"
28301 msgstr "(Додано у 1.9.17)"
28302
28303 #. type: =head2
28304 #: ../src/guestfs-actions.pod:2905
28305 msgid "guestfs_inspect_get_filesystems"
28306 msgstr ""
28307
28308 #. type: verbatim
28309 #: ../src/guestfs-actions.pod:2907
28310 #, no-wrap
28311 msgid ""
28312 " char **\n"
28313 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
28314 "                                  const char *root);\n"
28315 "\n"
28316 msgstr ""
28317
28318 #. type: textblock
28319 #: ../src/guestfs-actions.pod:2919
28320 msgid ""
28321 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28322 "C<guestfs_inspect_get_mountpoints>."
28323 msgstr ""
28324
28325 #. type: =head2
28326 #: ../src/guestfs-actions.pod:2928
28327 msgid "guestfs_inspect_get_format"
28328 msgstr ""
28329
28330 #. type: verbatim
28331 #: ../src/guestfs-actions.pod:2930
28332 #, no-wrap
28333 msgid ""
28334 " char *\n"
28335 " guestfs_inspect_get_format (guestfs_h *g,\n"
28336 "                             const char *root);\n"
28337 "\n"
28338 msgstr ""
28339
28340 #. type: textblock
28341 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3400
28342 #: ../src/guestfs-actions.pod:3416 ../src/guestfs-actions.pod:3434
28343 #: ../src/guestfs-actions.pod:6190
28344 msgid "(Added in 1.9.4)"
28345 msgstr "(Додано у 1.9.4)"
28346
28347 #. type: =head2
28348 #: ../src/guestfs-actions.pod:2966
28349 msgid "guestfs_inspect_get_hostname"
28350 msgstr ""
28351
28352 #. type: verbatim
28353 #: ../src/guestfs-actions.pod:2968
28354 #, no-wrap
28355 msgid ""
28356 " char *\n"
28357 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
28358 "                               const char *root);\n"
28359 "\n"
28360 msgstr ""
28361
28362 #. type: textblock
28363 #: ../src/guestfs-actions.pod:2983
28364 msgid "(Added in 1.7.9)"
28365 msgstr "(Додано у 1.7.9)"
28366
28367 #. type: =head2
28368 #: ../src/guestfs-actions.pod:2985
28369 msgid "guestfs_inspect_get_icon"
28370 msgstr ""
28371
28372 #. type: verbatim
28373 #: ../src/guestfs-actions.pod:2987
28374 #, no-wrap
28375 msgid ""
28376 " char *\n"
28377 " guestfs_inspect_get_icon (guestfs_h *g,\n"
28378 "                           const char *root,\n"
28379 "                           size_t *size_r,\n"
28380 "                           ...);\n"
28381 "\n"
28382 msgstr ""
28383
28384 #. type: verbatim
28385 #: ../src/guestfs-actions.pod:2998
28386 #, no-wrap
28387 msgid ""
28388 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
28389 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
28390 "\n"
28391 msgstr ""
28392
28393 #. type: textblock
28394 #: ../src/guestfs-actions.pod:3065 ../src/guestfs-actions.pod:3895
28395 #: ../src/guestfs-actions.pod:5139
28396 msgid "(Added in 1.11.12)"
28397 msgstr "(Додано у 1.11.12)"
28398
28399 #. type: =head2
28400 #: ../src/guestfs-actions.pod:3067
28401 msgid "guestfs_inspect_get_icon_va"
28402 msgstr ""
28403
28404 #. type: verbatim
28405 #: ../src/guestfs-actions.pod:3069
28406 #, no-wrap
28407 msgid ""
28408 " char *\n"
28409 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
28410 "                              const char *root,\n"
28411 "                              size_t *size_r,\n"
28412 "                              va_list args);\n"
28413 "\n"
28414 msgstr ""
28415
28416 #. type: textblock
28417 #: ../src/guestfs-actions.pod:3075
28418 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
28419 msgstr ""
28420
28421 #. type: =head2
28422 #: ../src/guestfs-actions.pod:3079
28423 msgid "guestfs_inspect_get_icon_argv"
28424 msgstr ""
28425
28426 #. type: verbatim
28427 #: ../src/guestfs-actions.pod:3081
28428 #, no-wrap
28429 msgid ""
28430 " char *\n"
28431 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
28432 "                                const char *root,\n"
28433 "                                size_t *size_r,\n"
28434 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
28435 "\n"
28436 msgstr ""
28437
28438 #. type: textblock
28439 #: ../src/guestfs-actions.pod:3087
28440 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
28441 msgstr ""
28442
28443 #. type: =head2
28444 #: ../src/guestfs-actions.pod:3091
28445 msgid "guestfs_inspect_get_major_version"
28446 msgstr ""
28447
28448 #. type: verbatim
28449 #: ../src/guestfs-actions.pod:3093
28450 #, no-wrap
28451 msgid ""
28452 " int\n"
28453 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
28454 "                                    const char *root);\n"
28455 "\n"
28456 msgstr ""
28457
28458 #. type: =head2
28459 #: ../src/guestfs-actions.pod:3115
28460 msgid "guestfs_inspect_get_minor_version"
28461 msgstr ""
28462
28463 #. type: verbatim
28464 #: ../src/guestfs-actions.pod:3117
28465 #, no-wrap
28466 msgid ""
28467 " int\n"
28468 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
28469 "                                    const char *root);\n"
28470 "\n"
28471 msgstr ""
28472
28473 #. type: textblock
28474 #: ../src/guestfs-actions.pod:3126
28475 msgid ""
28476 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28477 "C<guestfs_inspect_get_major_version>."
28478 msgstr ""
28479
28480 #. type: =head2
28481 #: ../src/guestfs-actions.pod:3133
28482 msgid "guestfs_inspect_get_mountpoints"
28483 msgstr ""
28484
28485 #. type: verbatim
28486 #: ../src/guestfs-actions.pod:3135
28487 #, no-wrap
28488 msgid ""
28489 " char **\n"
28490 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
28491 "                                  const char *root);\n"
28492 "\n"
28493 msgstr ""
28494
28495 #. type: textblock
28496 #: ../src/guestfs-actions.pod:3156
28497 msgid ""
28498 "For operating systems like Windows which still use drive letters, this call "
28499 "will only return an entry for the first drive \"mounted on\" C</>.  For "
28500 "information about the mapping of drive letters to partitions, see "
28501 "C<guestfs_inspect_get_drive_mappings>."
28502 msgstr ""
28503
28504 #. type: textblock
28505 #: ../src/guestfs-actions.pod:3162
28506 msgid ""
28507 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28508 "C<guestfs_inspect_get_filesystems>."
28509 msgstr ""
28510
28511 #. type: =head2
28512 #: ../src/guestfs-actions.pod:3173
28513 msgid "guestfs_inspect_get_package_format"
28514 msgstr ""
28515
28516 #. type: verbatim
28517 #: ../src/guestfs-actions.pod:3175
28518 #, no-wrap
28519 msgid ""
28520 " char *\n"
28521 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
28522 "                                     const char *root);\n"
28523 "\n"
28524 msgstr ""
28525
28526 #. type: textblock
28527 #: ../src/guestfs-actions.pod:3179
28528 msgid ""
28529 "This function and C<guestfs_inspect_get_package_management> return the "
28530 "package format and package management tool used by the inspected operating "
28531 "system.  For example for Fedora these functions would return C<rpm> (package "
28532 "format) and C<yum> (package management)."
28533 msgstr ""
28534
28535 #. type: textblock
28536 #: ../src/guestfs-actions.pod:3198 ../src/guestfs-actions.pod:3226
28537 msgid "(Added in 1.7.5)"
28538 msgstr "(Додано у 1.7.5)"
28539
28540 #. type: =head2
28541 #: ../src/guestfs-actions.pod:3200
28542 msgid "guestfs_inspect_get_package_management"
28543 msgstr ""
28544
28545 #. type: verbatim
28546 #: ../src/guestfs-actions.pod:3202
28547 #, no-wrap
28548 msgid ""
28549 " char *\n"
28550 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
28551 "                                         const char *root);\n"
28552 "\n"
28553 msgstr ""
28554
28555 #. type: textblock
28556 #: ../src/guestfs-actions.pod:3206
28557 msgid ""
28558 "C<guestfs_inspect_get_package_format> and this function return the package "
28559 "format and package management tool used by the inspected operating system.  "
28560 "For example for Fedora these functions would return C<rpm> (package format) "
28561 "and C<yum> (package management)."
28562 msgstr ""
28563
28564 #. type: =head2
28565 #: ../src/guestfs-actions.pod:3228
28566 msgid "guestfs_inspect_get_product_name"
28567 msgstr ""
28568
28569 #. type: verbatim
28570 #: ../src/guestfs-actions.pod:3230
28571 #, no-wrap
28572 msgid ""
28573 " char *\n"
28574 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
28575 "                                   const char *root);\n"
28576 "\n"
28577 msgstr ""
28578
28579 #. type: =head2
28580 #: ../src/guestfs-actions.pod:3249
28581 msgid "guestfs_inspect_get_product_variant"
28582 msgstr ""
28583
28584 #. type: verbatim
28585 #: ../src/guestfs-actions.pod:3251
28586 #, no-wrap
28587 msgid ""
28588 " char *\n"
28589 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
28590 "                                      const char *root);\n"
28591 "\n"
28592 msgstr ""
28593
28594 #. type: textblock
28595 #: ../src/guestfs-actions.pod:3274
28596 msgid ""
28597 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
28598 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
28599 msgstr ""
28600
28601 #. type: textblock
28602 #: ../src/guestfs-actions.pod:3281
28603 msgid "(Added in 1.9.13)"
28604 msgstr "(Додано у 1.9.13)"
28605
28606 #. type: =head2
28607 #: ../src/guestfs-actions.pod:3283
28608 msgid "guestfs_inspect_get_roots"
28609 msgstr ""
28610
28611 #. type: verbatim
28612 #: ../src/guestfs-actions.pod:3285
28613 #, no-wrap
28614 msgid ""
28615 " char **\n"
28616 " guestfs_inspect_get_roots (guestfs_h *g);\n"
28617 "\n"
28618 msgstr ""
28619
28620 #. type: textblock
28621 #: ../src/guestfs-actions.pod:3288
28622 msgid ""
28623 "This function is a convenient way to get the list of root devices, as "
28624 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
28625 "the whole inspection process."
28626 msgstr ""
28627
28628 #. type: textblock
28629 #: ../src/guestfs-actions.pod:3292
28630 msgid ""
28631 "This returns an empty list if either no root devices were found or the "
28632 "caller has not called C<guestfs_inspect_os>."
28633 msgstr ""
28634
28635 #. type: textblock
28636 #: ../src/guestfs-actions.pod:3301
28637 msgid "(Added in 1.7.3)"
28638 msgstr "(Додано у 1.7.3)"
28639
28640 #. type: =head2
28641 #: ../src/guestfs-actions.pod:3303
28642 msgid "guestfs_inspect_get_type"
28643 msgstr ""
28644
28645 #. type: verbatim
28646 #: ../src/guestfs-actions.pod:3305
28647 #, no-wrap
28648 msgid ""
28649 " char *\n"
28650 " guestfs_inspect_get_type (guestfs_h *g,\n"
28651 "                           const char *root);\n"
28652 "\n"
28653 msgstr ""
28654
28655 #. type: =head2
28656 #: ../src/guestfs-actions.pod:3346
28657 msgid "guestfs_inspect_get_windows_current_control_set"
28658 msgstr ""
28659
28660 #. type: verbatim
28661 #: ../src/guestfs-actions.pod:3348
28662 #, no-wrap
28663 msgid ""
28664 " char *\n"
28665 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
28666 "                                                  const char *root);\n"
28667 "\n"
28668 msgstr ""
28669
28670 #. type: =head2
28671 #: ../src/guestfs-actions.pod:3366
28672 msgid "guestfs_inspect_get_windows_systemroot"
28673 msgstr ""
28674
28675 #. type: verbatim
28676 #: ../src/guestfs-actions.pod:3368
28677 #, no-wrap
28678 msgid ""
28679 " char *\n"
28680 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28681 "                                         const char *root);\n"
28682 "\n"
28683 msgstr ""
28684
28685 #. type: textblock
28686 #: ../src/guestfs-actions.pod:3384
28687 msgid "(Added in 1.5.25)"
28688 msgstr "(Додано у 1.5.25)"
28689
28690 #. type: =head2
28691 #: ../src/guestfs-actions.pod:3386
28692 msgid "guestfs_inspect_is_live"
28693 msgstr ""
28694
28695 #. type: verbatim
28696 #: ../src/guestfs-actions.pod:3388
28697 #, no-wrap
28698 msgid ""
28699 " int\n"
28700 " guestfs_inspect_is_live (guestfs_h *g,\n"
28701 "                          const char *root);\n"
28702 "\n"
28703 msgstr ""
28704
28705 #. type: textblock
28706 #: ../src/guestfs-actions.pod:3392
28707 msgid ""
28708 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28709 "disk), then this returns true if a live image was detected on the disk."
28710 msgstr ""
28711
28712 #. type: =head2
28713 #: ../src/guestfs-actions.pod:3402
28714 msgid "guestfs_inspect_is_multipart"
28715 msgstr ""
28716
28717 #. type: verbatim
28718 #: ../src/guestfs-actions.pod:3404
28719 #, no-wrap
28720 msgid ""
28721 " int\n"
28722 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
28723 "                               const char *root);\n"
28724 "\n"
28725 msgstr ""
28726
28727 #. type: textblock
28728 #: ../src/guestfs-actions.pod:3408
28729 msgid ""
28730 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28731 "disk), then this returns true if the disk is part of a set."
28732 msgstr ""
28733
28734 #. type: =head2
28735 #: ../src/guestfs-actions.pod:3418
28736 msgid "guestfs_inspect_is_netinst"
28737 msgstr ""
28738
28739 #. type: verbatim
28740 #: ../src/guestfs-actions.pod:3420
28741 #, no-wrap
28742 msgid ""
28743 " int\n"
28744 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28745 "                             const char *root);\n"
28746 "\n"
28747 msgstr ""
28748
28749 #. type: textblock
28750 #: ../src/guestfs-actions.pod:3424
28751 msgid ""
28752 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28753 "disk), then this returns true if the disk is a network installer, ie. not a "
28754 "self-contained install CD but one which is likely to require network access "
28755 "to complete the install."
28756 msgstr ""
28757
28758 #. type: =head2
28759 #: ../src/guestfs-actions.pod:3436
28760 msgid "guestfs_inspect_list_applications"
28761 msgstr ""
28762
28763 #. type: verbatim
28764 #: ../src/guestfs-actions.pod:3438
28765 #, no-wrap
28766 msgid ""
28767 " struct guestfs_application_list *\n"
28768 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28769 "                                    const char *root);\n"
28770 "\n"
28771 msgstr ""
28772
28773 #. type: textblock
28774 #: ../src/guestfs-actions.pod:3444
28775 msgid ""
28776 "I<Note:> This call works differently from other parts of the inspection "
28777 "API.  You have to call C<guestfs_inspect_os>, then "
28778 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28779 "this.  Listing applications is a significantly more difficult operation "
28780 "which requires access to the full filesystem.  Also note that unlike the "
28781 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28782 "the libguestfs handle, this call actually reads parts of the mounted "
28783 "filesystems during the call."
28784 msgstr ""
28785
28786 #. type: textblock
28787 #: ../src/guestfs-actions.pod:3534
28788 msgid ""
28789 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28790 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
28791 "after use>."
28792 msgstr ""
28793
28794 #. type: textblock
28795 #: ../src/guestfs-actions.pod:3538
28796 msgid "(Added in 1.7.8)"
28797 msgstr "(Додано у 1.7.8)"
28798
28799 #. type: =head2
28800 #: ../src/guestfs-actions.pod:3540
28801 msgid "guestfs_inspect_os"
28802 msgstr ""
28803
28804 #. type: verbatim
28805 #: ../src/guestfs-actions.pod:3542
28806 #, no-wrap
28807 msgid ""
28808 " char **\n"
28809 " guestfs_inspect_os (guestfs_h *g);\n"
28810 "\n"
28811 msgstr ""
28812
28813 #. type: textblock
28814 #: ../src/guestfs-actions.pod:3558
28815 msgid ""
28816 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
28817 "functions in order to query further information about each operating system, "
28818 "such as the name and version."
28819 msgstr ""
28820
28821 #. type: textblock
28822 #: ../src/guestfs-actions.pod:3563
28823 msgid ""
28824 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
28825 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
28826 "the contents.  This should be called with no disks currently mounted.  The "
28827 "function may also use Augeas, so any existing Augeas handle will be closed."
28828 msgstr ""
28829
28830 #. type: textblock
28831 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3906
28832 #: ../src/guestfs-actions.pod:3988
28833 msgid "See also C<guestfs_list_filesystems>."
28834 msgstr ""
28835
28836 #. type: =head2
28837 #: ../src/guestfs-actions.pod:3583
28838 msgid "guestfs_is_blockdev"
28839 msgstr ""
28840
28841 #. type: verbatim
28842 #: ../src/guestfs-actions.pod:3585
28843 #, no-wrap
28844 msgid ""
28845 " int\n"
28846 " guestfs_is_blockdev (guestfs_h *g,\n"
28847 "                      const char *path);\n"
28848 "\n"
28849 msgstr ""
28850
28851 #. type: textblock
28852 #: ../src/guestfs-actions.pod:3592 ../src/guestfs-actions.pod:3621
28853 #: ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3666
28854 #: ../src/guestfs-actions.pod:3682 ../src/guestfs-actions.pod:3738
28855 #: ../src/guestfs-actions.pod:3753
28856 msgid "See also C<guestfs_stat>."
28857 msgstr ""
28858
28859 #. type: textblock
28860 #: ../src/guestfs-actions.pod:3596 ../src/guestfs-actions.pod:3625
28861 #: ../src/guestfs-actions.pod:3670 ../src/guestfs-actions.pod:3742
28862 #: ../src/guestfs-actions.pod:3757
28863 msgid "(Added in 1.5.10)"
28864 msgstr "(Додано у 1.5.10)"
28865
28866 #. type: =head2
28867 #: ../src/guestfs-actions.pod:3598
28868 msgid "guestfs_is_busy"
28869 msgstr ""
28870
28871 #. type: verbatim
28872 #: ../src/guestfs-actions.pod:3600
28873 #, no-wrap
28874 msgid ""
28875 " int\n"
28876 " guestfs_is_busy (guestfs_h *g);\n"
28877 "\n"
28878 msgstr ""
28879
28880 #. type: =head2
28881 #: ../src/guestfs-actions.pod:3612
28882 msgid "guestfs_is_chardev"
28883 msgstr ""
28884
28885 #. type: verbatim
28886 #: ../src/guestfs-actions.pod:3614
28887 #, no-wrap
28888 msgid ""
28889 " int\n"
28890 " guestfs_is_chardev (guestfs_h *g,\n"
28891 "                     const char *path);\n"
28892 "\n"
28893 msgstr ""
28894
28895 #. type: =head2
28896 #: ../src/guestfs-actions.pod:3627
28897 msgid "guestfs_is_config"
28898 msgstr ""
28899
28900 #. type: verbatim
28901 #: ../src/guestfs-actions.pod:3629
28902 #, no-wrap
28903 msgid ""
28904 " int\n"
28905 " guestfs_is_config (guestfs_h *g);\n"
28906 "\n"
28907 msgstr ""
28908
28909 #. type: =head2
28910 #: ../src/guestfs-actions.pod:3641
28911 msgid "guestfs_is_dir"
28912 msgstr ""
28913
28914 #. type: verbatim
28915 #: ../src/guestfs-actions.pod:3643
28916 #, no-wrap
28917 msgid ""
28918 " int\n"
28919 " guestfs_is_dir (guestfs_h *g,\n"
28920 "                 const char *path);\n"
28921 "\n"
28922 msgstr ""
28923
28924 #. type: =head2
28925 #: ../src/guestfs-actions.pod:3657
28926 msgid "guestfs_is_fifo"
28927 msgstr ""
28928
28929 #. type: verbatim
28930 #: ../src/guestfs-actions.pod:3659
28931 #, no-wrap
28932 msgid ""
28933 " int\n"
28934 " guestfs_is_fifo (guestfs_h *g,\n"
28935 "                  const char *path);\n"
28936 "\n"
28937 msgstr ""
28938
28939 #. type: =head2
28940 #: ../src/guestfs-actions.pod:3672
28941 msgid "guestfs_is_file"
28942 msgstr ""
28943
28944 #. type: verbatim
28945 #: ../src/guestfs-actions.pod:3674
28946 #, no-wrap
28947 msgid ""
28948 " int\n"
28949 " guestfs_is_file (guestfs_h *g,\n"
28950 "                  const char *path);\n"
28951 "\n"
28952 msgstr ""
28953
28954 #. type: =head2
28955 #: ../src/guestfs-actions.pod:3688
28956 msgid "guestfs_is_launching"
28957 msgstr ""
28958
28959 #. type: verbatim
28960 #: ../src/guestfs-actions.pod:3690
28961 #, no-wrap
28962 msgid ""
28963 " int\n"
28964 " guestfs_is_launching (guestfs_h *g);\n"
28965 "\n"
28966 msgstr ""
28967
28968 #. type: =head2
28969 #: ../src/guestfs-actions.pod:3702
28970 msgid "guestfs_is_lv"
28971 msgstr ""
28972
28973 #. type: verbatim
28974 #: ../src/guestfs-actions.pod:3704
28975 #, no-wrap
28976 msgid ""
28977 " int\n"
28978 " guestfs_is_lv (guestfs_h *g,\n"
28979 "                const char *device);\n"
28980 "\n"
28981 msgstr ""
28982
28983 #. type: =head2
28984 #: ../src/guestfs-actions.pod:3715
28985 msgid "guestfs_is_ready"
28986 msgstr ""
28987
28988 #. type: verbatim
28989 #: ../src/guestfs-actions.pod:3717
28990 #, no-wrap
28991 msgid ""
28992 " int\n"
28993 " guestfs_is_ready (guestfs_h *g);\n"
28994 "\n"
28995 msgstr ""
28996
28997 #. type: =head2
28998 #: ../src/guestfs-actions.pod:3729
28999 msgid "guestfs_is_socket"
29000 msgstr ""
29001
29002 #. type: verbatim
29003 #: ../src/guestfs-actions.pod:3731
29004 #, no-wrap
29005 msgid ""
29006 " int\n"
29007 " guestfs_is_socket (guestfs_h *g,\n"
29008 "                    const char *path);\n"
29009 "\n"
29010 msgstr ""
29011
29012 #. type: =head2
29013 #: ../src/guestfs-actions.pod:3744
29014 msgid "guestfs_is_symlink"
29015 msgstr ""
29016
29017 #. type: verbatim
29018 #: ../src/guestfs-actions.pod:3746
29019 #, no-wrap
29020 msgid ""
29021 " int\n"
29022 " guestfs_is_symlink (guestfs_h *g,\n"
29023 "                     const char *path);\n"
29024 "\n"
29025 msgstr ""
29026
29027 #. type: =head2
29028 #: ../src/guestfs-actions.pod:3759
29029 msgid "guestfs_is_zero"
29030 msgstr ""
29031
29032 #. type: verbatim
29033 #: ../src/guestfs-actions.pod:3761
29034 #, no-wrap
29035 msgid ""
29036 " int\n"
29037 " guestfs_is_zero (guestfs_h *g,\n"
29038 "                  const char *path);\n"
29039 "\n"
29040 msgstr ""
29041
29042 #. type: textblock
29043 #: ../src/guestfs-actions.pod:3770 ../src/guestfs-actions.pod:3784
29044 msgid "(Added in 1.11.8)"
29045 msgstr "(Додано у 1.11.8)"
29046
29047 #. type: =head2
29048 #: ../src/guestfs-actions.pod:3772
29049 msgid "guestfs_is_zero_device"
29050 msgstr ""
29051
29052 #. type: verbatim
29053 #: ../src/guestfs-actions.pod:3774
29054 #, no-wrap
29055 msgid ""
29056 " int\n"
29057 " guestfs_is_zero_device (guestfs_h *g,\n"
29058 "                         const char *device);\n"
29059 "\n"
29060 msgstr ""
29061
29062 #. type: =head2
29063 #: ../src/guestfs-actions.pod:3786
29064 msgid "guestfs_kill_subprocess"
29065 msgstr ""
29066
29067 #. type: verbatim
29068 #: ../src/guestfs-actions.pod:3788
29069 #, no-wrap
29070 msgid ""
29071 " int\n"
29072 " guestfs_kill_subprocess (guestfs_h *g);\n"
29073 "\n"
29074 msgstr ""
29075
29076 #. type: =head2
29077 #: ../src/guestfs-actions.pod:3797
29078 msgid "guestfs_launch"
29079 msgstr ""
29080
29081 #. type: verbatim
29082 #: ../src/guestfs-actions.pod:3799
29083 #, no-wrap
29084 msgid ""
29085 " int\n"
29086 " guestfs_launch (guestfs_h *g);\n"
29087 "\n"
29088 msgstr ""
29089
29090 #. type: =head2
29091 #: ../src/guestfs-actions.pod:3817
29092 msgid "guestfs_lchown"
29093 msgstr ""
29094
29095 #. type: verbatim
29096 #: ../src/guestfs-actions.pod:3819
29097 #, no-wrap
29098 msgid ""
29099 " int\n"
29100 " guestfs_lchown (guestfs_h *g,\n"
29101 "                 int owner,\n"
29102 "                 int group,\n"
29103 "                 const char *path);\n"
29104 "\n"
29105 msgstr ""
29106
29107 #. type: textblock
29108 #: ../src/guestfs-actions.pod:3825
29109 msgid ""
29110 "Change the file owner to C<owner> and group to C<group>.  This is like "
29111 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
29112 "changed, not the target."
29113 msgstr ""
29114
29115 #. type: =head2
29116 #: ../src/guestfs-actions.pod:3837
29117 msgid "guestfs_lgetxattr"
29118 msgstr ""
29119
29120 #. type: verbatim
29121 #: ../src/guestfs-actions.pod:3839
29122 #, no-wrap
29123 msgid ""
29124 " char *\n"
29125 " guestfs_lgetxattr (guestfs_h *g,\n"
29126 "                    const char *path,\n"
29127 "                    const char *name,\n"
29128 "                    size_t *size_r);\n"
29129 "\n"
29130 msgstr ""
29131
29132 #. type: textblock
29133 #: ../src/guestfs-actions.pod:3859
29134 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
29135 msgstr ""
29136
29137 #. type: =head2
29138 #: ../src/guestfs-actions.pod:3867
29139 msgid "guestfs_lgetxattrs"
29140 msgstr ""
29141
29142 #. type: verbatim
29143 #: ../src/guestfs-actions.pod:3869
29144 #, no-wrap
29145 msgid ""
29146 " struct guestfs_xattr_list *\n"
29147 " guestfs_lgetxattrs (guestfs_h *g,\n"
29148 "                     const char *path);\n"
29149 "\n"
29150 msgstr ""
29151
29152 #. type: textblock
29153 #: ../src/guestfs-actions.pod:3873
29154 msgid ""
29155 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
29156 "then it returns the extended attributes of the link itself."
29157 msgstr ""
29158
29159 #. type: =head2
29160 #: ../src/guestfs-actions.pod:3883
29161 msgid "guestfs_list_9p"
29162 msgstr ""
29163
29164 #. type: verbatim
29165 #: ../src/guestfs-actions.pod:3885
29166 #, no-wrap
29167 msgid ""
29168 " char **\n"
29169 " guestfs_list_9p (guestfs_h *g);\n"
29170 "\n"
29171 msgstr ""
29172
29173 #. type: =head2
29174 #: ../src/guestfs-actions.pod:3897
29175 msgid "guestfs_list_devices"
29176 msgstr ""
29177
29178 #. type: verbatim
29179 #: ../src/guestfs-actions.pod:3899
29180 #, no-wrap
29181 msgid ""
29182 " char **\n"
29183 " guestfs_list_devices (guestfs_h *g);\n"
29184 "\n"
29185 msgstr ""
29186
29187 #. type: =head2
29188 #: ../src/guestfs-actions.pod:3914
29189 msgid "guestfs_list_dm_devices"
29190 msgstr ""
29191
29192 #. type: verbatim
29193 #: ../src/guestfs-actions.pod:3916
29194 #, no-wrap
29195 msgid ""
29196 " char **\n"
29197 " guestfs_list_dm_devices (guestfs_h *g);\n"
29198 "\n"
29199 msgstr ""
29200
29201 #. type: textblock
29202 #: ../src/guestfs-actions.pod:3921
29203 msgid ""
29204 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
29205 "previous call to C<guestfs_luks_open>."
29206 msgstr ""
29207
29208 #. type: textblock
29209 #: ../src/guestfs-actions.pod:3924
29210 msgid ""
29211 "Device mapper devices which correspond to logical volumes are I<not> "
29212 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
29213 "volumes."
29214 msgstr ""
29215
29216 #. type: textblock
29217 #: ../src/guestfs-actions.pod:3932 ../src/guestfs-actions.pod:5378
29218 msgid "(Added in 1.11.15)"
29219 msgstr "(Додано у 1.11.15)"
29220
29221 #. type: =head2
29222 #: ../src/guestfs-actions.pod:3934
29223 msgid "guestfs_list_filesystems"
29224 msgstr ""
29225
29226 #. type: verbatim
29227 #: ../src/guestfs-actions.pod:3936
29228 #, no-wrap
29229 msgid ""
29230 " char **\n"
29231 " guestfs_list_filesystems (guestfs_h *g);\n"
29232 "\n"
29233 msgstr ""
29234
29235 #. type: textblock
29236 #: ../src/guestfs-actions.pod:3956
29237 msgid ""
29238 "This command runs other libguestfs commands, which might include "
29239 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
29240 "soon after launch and only when nothing is mounted."
29241 msgstr ""
29242
29243 #. type: textblock
29244 #: ../src/guestfs-actions.pod:3960
29245 msgid ""
29246 "Not all of the filesystems returned will be mountable.  In particular, swap "
29247 "partitions are returned in the list.  Also this command does not check that "
29248 "each filesystem found is valid and mountable, and some filesystems might be "
29249 "mountable but require special options.  Filesystems may not all belong to a "
29250 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
29251 msgstr ""
29252
29253 #. type: textblock
29254 #: ../src/guestfs-actions.pod:3974 ../src/guestfs-actions.pod:5739
29255 msgid "(Added in 1.5.15)"
29256 msgstr "(Додано у 1.5.15)"
29257
29258 #. type: =head2
29259 #: ../src/guestfs-actions.pod:3976
29260 msgid "guestfs_list_partitions"
29261 msgstr "guestfs_list_partitions"
29262
29263 #. type: verbatim
29264 #: ../src/guestfs-actions.pod:3978
29265 #, no-wrap
29266 msgid ""
29267 " char **\n"
29268 " guestfs_list_partitions (guestfs_h *g);\n"
29269 "\n"
29270 msgstr ""
29271 " char **\n"
29272 " guestfs_list_partitions (guestfs_h *g);\n"
29273 "\n"
29274
29275 #. type: textblock
29276 #: ../src/guestfs-actions.pod:3985
29277 msgid ""
29278 "This does not return logical volumes.  For that you will need to call "
29279 "C<guestfs_lvs>."
29280 msgstr ""
29281
29282 #. type: =head2
29283 #: ../src/guestfs-actions.pod:3996
29284 msgid "guestfs_ll"
29285 msgstr "guestfs_ll"
29286
29287 #. type: verbatim
29288 #: ../src/guestfs-actions.pod:3998
29289 #, no-wrap
29290 msgid ""
29291 " char *\n"
29292 " guestfs_ll (guestfs_h *g,\n"
29293 "             const char *directory);\n"
29294 "\n"
29295 msgstr ""
29296 " char *\n"
29297 " guestfs_ll (guestfs_h *g,\n"
29298 "             const char *directory);\n"
29299 "\n"
29300
29301 #. type: =head2
29302 #: ../src/guestfs-actions.pod:4013
29303 msgid "guestfs_ln"
29304 msgstr "guestfs_ln"
29305
29306 #. type: verbatim
29307 #: ../src/guestfs-actions.pod:4015
29308 #, no-wrap
29309 msgid ""
29310 " int\n"
29311 " guestfs_ln (guestfs_h *g,\n"
29312 "             const char *target,\n"
29313 "             const char *linkname);\n"
29314 "\n"
29315 msgstr ""
29316 " int\n"
29317 " guestfs_ln (guestfs_h *g,\n"
29318 "             const char *target,\n"
29319 "             const char *linkname);\n"
29320 "\n"
29321
29322 #. type: =head2
29323 #: ../src/guestfs-actions.pod:4026
29324 msgid "guestfs_ln_f"
29325 msgstr "guestfs_ln_f"
29326
29327 #. type: verbatim
29328 #: ../src/guestfs-actions.pod:4028
29329 #, no-wrap
29330 msgid ""
29331 " int\n"
29332 " guestfs_ln_f (guestfs_h *g,\n"
29333 "               const char *target,\n"
29334 "               const char *linkname);\n"
29335 "\n"
29336 msgstr ""
29337 " int\n"
29338 " guestfs_ln_f (guestfs_h *g,\n"
29339 "               const char *target,\n"
29340 "               const char *linkname);\n"
29341 "\n"
29342
29343 #. type: =head2
29344 #: ../src/guestfs-actions.pod:4040
29345 msgid "guestfs_ln_s"
29346 msgstr "guestfs_ln_s"
29347
29348 #. type: verbatim
29349 #: ../src/guestfs-actions.pod:4042
29350 #, no-wrap
29351 msgid ""
29352 " int\n"
29353 " guestfs_ln_s (guestfs_h *g,\n"
29354 "               const char *target,\n"
29355 "               const char *linkname);\n"
29356 "\n"
29357 msgstr ""
29358 " int\n"
29359 " guestfs_ln_s (guestfs_h *g,\n"
29360 "               const char *target,\n"
29361 "               const char *linkname);\n"
29362 "\n"
29363
29364 #. type: =head2
29365 #: ../src/guestfs-actions.pod:4053
29366 msgid "guestfs_ln_sf"
29367 msgstr "guestfs_ln_sf"
29368
29369 #. type: verbatim
29370 #: ../src/guestfs-actions.pod:4055
29371 #, no-wrap
29372 msgid ""
29373 " int\n"
29374 " guestfs_ln_sf (guestfs_h *g,\n"
29375 "                const char *target,\n"
29376 "                const char *linkname);\n"
29377 "\n"
29378 msgstr ""
29379 " int\n"
29380 " guestfs_ln_sf (guestfs_h *g,\n"
29381 "                const char *target,\n"
29382 "                const char *linkname);\n"
29383 "\n"
29384
29385 #. type: =head2
29386 #: ../src/guestfs-actions.pod:4067
29387 msgid "guestfs_lremovexattr"
29388 msgstr "guestfs_lremovexattr"
29389
29390 #. type: verbatim
29391 #: ../src/guestfs-actions.pod:4069
29392 #, no-wrap
29393 msgid ""
29394 " int\n"
29395 " guestfs_lremovexattr (guestfs_h *g,\n"
29396 "                       const char *xattr,\n"
29397 "                       const char *path);\n"
29398 "\n"
29399 msgstr ""
29400 " int\n"
29401 " guestfs_lremovexattr (guestfs_h *g,\n"
29402 "                       const char *xattr,\n"
29403 "                       const char *path);\n"
29404 "\n"
29405
29406 #. type: textblock
29407 #: ../src/guestfs-actions.pod:4074
29408 msgid ""
29409 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
29410 "link, then it removes an extended attribute of the link itself."
29411 msgstr ""
29412
29413 #. type: =head2
29414 #: ../src/guestfs-actions.pod:4082
29415 msgid "guestfs_ls"
29416 msgstr "guestfs_ls"
29417
29418 #. type: verbatim
29419 #: ../src/guestfs-actions.pod:4084
29420 #, no-wrap
29421 msgid ""
29422 " char **\n"
29423 " guestfs_ls (guestfs_h *g,\n"
29424 "             const char *directory);\n"
29425 "\n"
29426 msgstr ""
29427 " char **\n"
29428 " guestfs_ls (guestfs_h *g,\n"
29429 "             const char *directory);\n"
29430 "\n"
29431
29432 #. type: textblock
29433 #: ../src/guestfs-actions.pod:4092
29434 msgid ""
29435 "This command is mostly useful for interactive sessions.  Programs should "
29436 "probably use C<guestfs_readdir> instead."
29437 msgstr ""
29438
29439 #. type: =head2
29440 #: ../src/guestfs-actions.pod:4101
29441 msgid "guestfs_lsetxattr"
29442 msgstr "guestfs_lsetxattr"
29443
29444 #. type: verbatim
29445 #: ../src/guestfs-actions.pod:4103
29446 #, no-wrap
29447 msgid ""
29448 " int\n"
29449 " guestfs_lsetxattr (guestfs_h *g,\n"
29450 "                    const char *xattr,\n"
29451 "                    const char *val,\n"
29452 "                    int vallen,\n"
29453 "                    const char *path);\n"
29454 "\n"
29455 msgstr ""
29456 " int\n"
29457 " guestfs_lsetxattr (guestfs_h *g,\n"
29458 "                    const char *xattr,\n"
29459 "                    const char *val,\n"
29460 "                    int vallen,\n"
29461 "                    const char *path);\n"
29462 "\n"
29463
29464 #. type: textblock
29465 #: ../src/guestfs-actions.pod:4110
29466 msgid ""
29467 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
29468 "then it sets an extended attribute of the link itself."
29469 msgstr ""
29470
29471 #. type: =head2
29472 #: ../src/guestfs-actions.pod:4118
29473 msgid "guestfs_lstat"
29474 msgstr "guestfs_lstat"
29475
29476 #. type: verbatim
29477 #: ../src/guestfs-actions.pod:4120
29478 #, no-wrap
29479 msgid ""
29480 " struct guestfs_stat *\n"
29481 " guestfs_lstat (guestfs_h *g,\n"
29482 "                const char *path);\n"
29483 "\n"
29484 msgstr ""
29485 " struct guestfs_stat *\n"
29486 " guestfs_lstat (guestfs_h *g,\n"
29487 "                const char *path);\n"
29488 "\n"
29489
29490 #. type: textblock
29491 #: ../src/guestfs-actions.pod:4126
29492 msgid ""
29493 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
29494 "link, then the link is stat-ed, not the file it refers to."
29495 msgstr ""
29496
29497 #. type: textblock
29498 #: ../src/guestfs-actions.pod:4132 ../src/guestfs-actions.pod:6913
29499 msgid ""
29500 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
29501 "error.  I<The caller must call C<guestfs_free_stat> after use>."
29502 msgstr ""
29503
29504 #. type: textblock
29505 #: ../src/guestfs-actions.pod:4136 ../src/guestfs-actions.pod:6917
29506 #: ../src/guestfs-actions.pod:6935 ../src/guestfs-actions.pod:7316
29507 msgid "(Added in 0.9.2)"
29508 msgstr "(Додано у 0.9.2)"
29509
29510 #. type: =head2
29511 #: ../src/guestfs-actions.pod:4138
29512 msgid "guestfs_lstatlist"
29513 msgstr "guestfs_lstatlist"
29514
29515 #. type: verbatim
29516 #: ../src/guestfs-actions.pod:4140
29517 #, no-wrap
29518 msgid ""
29519 " struct guestfs_stat_list *\n"
29520 " guestfs_lstatlist (guestfs_h *g,\n"
29521 "                    const char *path,\n"
29522 "                    char *const *names);\n"
29523 "\n"
29524 msgstr ""
29525 " struct guestfs_stat_list *\n"
29526 " guestfs_lstatlist (guestfs_h *g,\n"
29527 "                    const char *path,\n"
29528 "                    char *const *names);\n"
29529 "\n"
29530
29531 #. type: textblock
29532 #: ../src/guestfs-actions.pod:4145
29533 msgid ""
29534 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
29535 "files, where all files are in the directory C<path>.  C<names> is the list "
29536 "of files from this directory."
29537 msgstr ""
29538
29539 #. type: textblock
29540 #: ../src/guestfs-actions.pod:4154
29541 msgid ""
29542 "This call is intended for programs that want to efficiently list a directory "
29543 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
29544 "for a similarly efficient call for getting extended attributes.  Very long "
29545 "directory listings might cause the protocol message size to be exceeded, "
29546 "causing this call to fail.  The caller must split up such requests into "
29547 "smaller groups of names."
29548 msgstr ""
29549
29550 #. type: textblock
29551 #: ../src/guestfs-actions.pod:4162
29552 msgid ""
29553 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
29554 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
29555 msgstr ""
29556
29557 #. type: =head2
29558 #: ../src/guestfs-actions.pod:4168
29559 msgid "guestfs_luks_add_key"
29560 msgstr "guestfs_luks_add_key"
29561
29562 #. type: verbatim
29563 #: ../src/guestfs-actions.pod:4170
29564 #, no-wrap
29565 msgid ""
29566 " int\n"
29567 " guestfs_luks_add_key (guestfs_h *g,\n"
29568 "                       const char *device,\n"
29569 "                       const char *key,\n"
29570 "                       const char *newkey,\n"
29571 "                       int keyslot);\n"
29572 "\n"
29573 msgstr ""
29574 " int\n"
29575 " guestfs_luks_add_key (guestfs_h *g,\n"
29576 "                       const char *device,\n"
29577 "                       const char *key,\n"
29578 "                       const char *newkey,\n"
29579 "                       int keyslot);\n"
29580 "\n"
29581
29582 #. type: textblock
29583 #: ../src/guestfs-actions.pod:4182
29584 msgid ""
29585 "Note that if C<keyslot> already contains a key, then this command will "
29586 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
29587 msgstr ""
29588
29589 #. type: textblock
29590 #: ../src/guestfs-actions.pod:4188 ../src/guestfs-actions.pod:4228
29591 #: ../src/guestfs-actions.pod:4251 ../src/guestfs-actions.pod:4271
29592 #: ../src/guestfs-actions.pod:4306 ../src/guestfs-actions.pod:4325
29593 msgid ""
29594 "This function takes a key or passphrase parameter which could contain "
29595 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
29596 "information."
29597 msgstr ""
29598
29599 #. type: textblock
29600 #: ../src/guestfs-actions.pod:4192 ../src/guestfs-actions.pod:4232
29601 #: ../src/guestfs-actions.pod:4255 ../src/guestfs-actions.pod:4275
29602 msgid "(Added in 1.5.2)"
29603 msgstr "(Додано у 1.5.2)"
29604
29605 #. type: =head2
29606 #: ../src/guestfs-actions.pod:4194
29607 msgid "guestfs_luks_close"
29608 msgstr "guestfs_luks_close"
29609
29610 #. type: verbatim
29611 #: ../src/guestfs-actions.pod:4196
29612 #, no-wrap
29613 msgid ""
29614 " int\n"
29615 " guestfs_luks_close (guestfs_h *g,\n"
29616 "                     const char *device);\n"
29617 "\n"
29618 msgstr ""
29619 " int\n"
29620 " guestfs_luks_close (guestfs_h *g,\n"
29621 "                     const char *device);\n"
29622 "\n"
29623
29624 #. type: textblock
29625 #: ../src/guestfs-actions.pod:4200
29626 msgid ""
29627 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
29628 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
29629 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
29630 "underlying block device."
29631 msgstr ""
29632
29633 #. type: textblock
29634 #: ../src/guestfs-actions.pod:4208 ../src/guestfs-actions.pod:4310
29635 #: ../src/guestfs-actions.pod:4329 ../src/guestfs-actions.pod:4379
29636 #: ../src/guestfs-actions.pod:4427
29637 msgid "(Added in 1.5.1)"
29638 msgstr "(Додано у 1.5.1)"
29639
29640 #. type: =head2
29641 #: ../src/guestfs-actions.pod:4210
29642 msgid "guestfs_luks_format"
29643 msgstr "guestfs_luks_format"
29644
29645 #. type: verbatim
29646 #: ../src/guestfs-actions.pod:4212
29647 #, no-wrap
29648 msgid ""
29649 " int\n"
29650 " guestfs_luks_format (guestfs_h *g,\n"
29651 "                      const char *device,\n"
29652 "                      const char *key,\n"
29653 "                      int keyslot);\n"
29654 "\n"
29655 msgstr ""
29656 " int\n"
29657 " guestfs_luks_format (guestfs_h *g,\n"
29658 "                      const char *device,\n"
29659 "                      const char *key,\n"
29660 "                      int keyslot);\n"
29661 "\n"
29662
29663 #. type: =head2
29664 #: ../src/guestfs-actions.pod:4234
29665 msgid "guestfs_luks_format_cipher"
29666 msgstr "guestfs_luks_format_cipher"
29667
29668 #. type: verbatim
29669 #: ../src/guestfs-actions.pod:4236
29670 #, no-wrap
29671 msgid ""
29672 " int\n"
29673 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29674 "                             const char *device,\n"
29675 "                             const char *key,\n"
29676 "                             int keyslot,\n"
29677 "                             const char *cipher);\n"
29678 "\n"
29679 msgstr ""
29680 " int\n"
29681 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29682 "                             const char *device,\n"
29683 "                             const char *key,\n"
29684 "                             int keyslot,\n"
29685 "                             const char *cipher);\n"
29686 "\n"
29687
29688 #. type: textblock
29689 #: ../src/guestfs-actions.pod:4243
29690 msgid ""
29691 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29692 "set the C<cipher> used."
29693 msgstr ""
29694
29695 #. type: =head2
29696 #: ../src/guestfs-actions.pod:4257
29697 msgid "guestfs_luks_kill_slot"
29698 msgstr "guestfs_luks_kill_slot"
29699
29700 #. type: verbatim
29701 #: ../src/guestfs-actions.pod:4259
29702 #, no-wrap
29703 msgid ""
29704 " int\n"
29705 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29706 "                         const char *device,\n"
29707 "                         const char *key,\n"
29708 "                         int keyslot);\n"
29709 "\n"
29710 msgstr ""
29711 " int\n"
29712 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29713 "                         const char *device,\n"
29714 "                         const char *key,\n"
29715 "                         int keyslot);\n"
29716 "\n"
29717
29718 #. type: =head2
29719 #: ../src/guestfs-actions.pod:4277
29720 msgid "guestfs_luks_open"
29721 msgstr "guestfs_luks_open"
29722
29723 #. type: verbatim
29724 #: ../src/guestfs-actions.pod:4279
29725 #, no-wrap
29726 msgid ""
29727 " int\n"
29728 " guestfs_luks_open (guestfs_h *g,\n"
29729 "                    const char *device,\n"
29730 "                    const char *key,\n"
29731 "                    const char *mapname);\n"
29732 "\n"
29733 msgstr ""
29734 " int\n"
29735 " guestfs_luks_open (guestfs_h *g,\n"
29736 "                    const char *device,\n"
29737 "                    const char *key,\n"
29738 "                    const char *mapname);\n"
29739 "\n"
29740
29741 #. type: textblock
29742 #: ../src/guestfs-actions.pod:4297
29743 msgid ""
29744 "If this block device contains LVM volume groups, then calling "
29745 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29746 "visible."
29747 msgstr ""
29748
29749 #. type: textblock
29750 #: ../src/guestfs-actions.pod:4301
29751 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29752 msgstr ""
29753
29754 #. type: =head2
29755 #: ../src/guestfs-actions.pod:4312
29756 msgid "guestfs_luks_open_ro"
29757 msgstr "guestfs_luks_open_ro"
29758
29759 #. type: verbatim
29760 #: ../src/guestfs-actions.pod:4314
29761 #, no-wrap
29762 msgid ""
29763 " int\n"
29764 " guestfs_luks_open_ro (guestfs_h *g,\n"
29765 "                       const char *device,\n"
29766 "                       const char *key,\n"
29767 "                       const char *mapname);\n"
29768 "\n"
29769 msgstr ""
29770 " int\n"
29771 " guestfs_luks_open_ro (guestfs_h *g,\n"
29772 "                       const char *device,\n"
29773 "                       const char *key,\n"
29774 "                       const char *mapname);\n"
29775 "\n"
29776
29777 #. type: textblock
29778 #: ../src/guestfs-actions.pod:4320
29779 msgid ""
29780 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29781 "created."
29782 msgstr ""
29783
29784 #. type: =head2
29785 #: ../src/guestfs-actions.pod:4331
29786 msgid "guestfs_lvcreate"
29787 msgstr "guestfs_lvcreate"
29788
29789 #. type: verbatim
29790 #: ../src/guestfs-actions.pod:4333
29791 #, no-wrap
29792 msgid ""
29793 " int\n"
29794 " guestfs_lvcreate (guestfs_h *g,\n"
29795 "                   const char *logvol,\n"
29796 "                   const char *volgroup,\n"
29797 "                   int mbytes);\n"
29798 "\n"
29799 msgstr ""
29800 " int\n"
29801 " guestfs_lvcreate (guestfs_h *g,\n"
29802 "                   const char *logvol,\n"
29803 "                   const char *volgroup,\n"
29804 "                   int mbytes);\n"
29805 "\n"
29806
29807 #. type: =head2
29808 #: ../src/guestfs-actions.pod:4346
29809 msgid "guestfs_lvm_canonical_lv_name"
29810 msgstr "guestfs_lvm_canonical_lv_name"
29811
29812 #. type: verbatim
29813 #: ../src/guestfs-actions.pod:4348
29814 #, no-wrap
29815 msgid ""
29816 " char *\n"
29817 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29818 "                                const char *lvname);\n"
29819 "\n"
29820 msgstr ""
29821 " char *\n"
29822 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29823 "                                const char *lvname);\n"
29824 "\n"
29825
29826 #. type: textblock
29827 #: ../src/guestfs-actions.pod:4359
29828 msgid "See also C<guestfs_is_lv>."
29829 msgstr ""
29830
29831 #. type: textblock
29832 #: ../src/guestfs-actions.pod:4364
29833 msgid "(Added in 1.5.24)"
29834 msgstr "(Додано у 1.5.24)"
29835
29836 #. type: =head2
29837 #: ../src/guestfs-actions.pod:4366
29838 msgid "guestfs_lvm_clear_filter"
29839 msgstr "guestfs_lvm_clear_filter"
29840
29841 #. type: verbatim
29842 #: ../src/guestfs-actions.pod:4368
29843 #, no-wrap
29844 msgid ""
29845 " int\n"
29846 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29847 "\n"
29848 msgstr ""
29849 " int\n"
29850 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29851 "\n"
29852
29853 #. type: textblock
29854 #: ../src/guestfs-actions.pod:4371
29855 msgid ""
29856 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
29857 "see every block device."
29858 msgstr ""
29859
29860 #. type: =head2
29861 #: ../src/guestfs-actions.pod:4381
29862 msgid "guestfs_lvm_remove_all"
29863 msgstr "guestfs_lvm_remove_all"
29864
29865 #. type: verbatim
29866 #: ../src/guestfs-actions.pod:4383
29867 #, no-wrap
29868 msgid ""
29869 " int\n"
29870 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29871 "\n"
29872 msgstr ""
29873 " int\n"
29874 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29875 "\n"
29876
29877 #. type: =head2
29878 #: ../src/guestfs-actions.pod:4396
29879 msgid "guestfs_lvm_set_filter"
29880 msgstr "guestfs_lvm_set_filter"
29881
29882 #. type: verbatim
29883 #: ../src/guestfs-actions.pod:4398
29884 #, no-wrap
29885 msgid ""
29886 " int\n"
29887 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29888 "                         char *const *devices);\n"
29889 "\n"
29890 msgstr ""
29891 " int\n"
29892 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29893 "                         char *const *devices);\n"
29894 "\n"
29895
29896 #. type: =head2
29897 #: ../src/guestfs-actions.pod:4429
29898 msgid "guestfs_lvremove"
29899 msgstr "guestfs_lvremove"
29900
29901 #. type: verbatim
29902 #: ../src/guestfs-actions.pod:4431
29903 #, no-wrap
29904 msgid ""
29905 " int\n"
29906 " guestfs_lvremove (guestfs_h *g,\n"
29907 "                   const char *device);\n"
29908 "\n"
29909 msgstr ""
29910 " int\n"
29911 " guestfs_lvremove (guestfs_h *g,\n"
29912 "                   const char *device);\n"
29913 "\n"
29914
29915 #. type: textblock
29916 #: ../src/guestfs-actions.pod:4443 ../src/guestfs-actions.pod:5836
29917 #: ../src/guestfs-actions.pod:7686
29918 msgid "(Added in 1.0.13)"
29919 msgstr "(Додано у 1.0.13)"
29920
29921 #. type: =head2
29922 #: ../src/guestfs-actions.pod:4445
29923 msgid "guestfs_lvrename"
29924 msgstr "guestfs_lvrename"
29925
29926 #. type: verbatim
29927 #: ../src/guestfs-actions.pod:4447
29928 #, no-wrap
29929 msgid ""
29930 " int\n"
29931 " guestfs_lvrename (guestfs_h *g,\n"
29932 "                   const char *logvol,\n"
29933 "                   const char *newlogvol);\n"
29934 "\n"
29935 msgstr ""
29936 " int\n"
29937 " guestfs_lvrename (guestfs_h *g,\n"
29938 "                   const char *logvol,\n"
29939 "                   const char *newlogvol);\n"
29940 "\n"
29941
29942 #. type: textblock
29943 #: ../src/guestfs-actions.pod:4456 ../src/guestfs-actions.pod:7699
29944 msgid "(Added in 1.0.83)"
29945 msgstr "(Додано у 1.0.83)"
29946
29947 #. type: =head2
29948 #: ../src/guestfs-actions.pod:4458
29949 msgid "guestfs_lvresize"
29950 msgstr "guestfs_lvresize"
29951
29952 #. type: verbatim
29953 #: ../src/guestfs-actions.pod:4460
29954 #, no-wrap
29955 msgid ""
29956 " int\n"
29957 " guestfs_lvresize (guestfs_h *g,\n"
29958 "                   const char *device,\n"
29959 "                   int mbytes);\n"
29960 "\n"
29961 msgstr ""
29962 " int\n"
29963 " guestfs_lvresize (guestfs_h *g,\n"
29964 "                   const char *device,\n"
29965 "                   int mbytes);\n"
29966 "\n"
29967
29968 #. type: =head2
29969 #: ../src/guestfs-actions.pod:4473
29970 msgid "guestfs_lvresize_free"
29971 msgstr "guestfs_lvresize_free"
29972
29973 #. type: verbatim
29974 #: ../src/guestfs-actions.pod:4475
29975 #, no-wrap
29976 msgid ""
29977 " int\n"
29978 " guestfs_lvresize_free (guestfs_h *g,\n"
29979 "                        const char *lv,\n"
29980 "                        int percent);\n"
29981 "\n"
29982 msgstr ""
29983 " int\n"
29984 " guestfs_lvresize_free (guestfs_h *g,\n"
29985 "                        const char *lv,\n"
29986 "                        int percent);\n"
29987 "\n"
29988
29989 #. type: textblock
29990 #: ../src/guestfs-actions.pod:4488
29991 msgid "(Added in 1.3.3)"
29992 msgstr "(Додано у 1.3.3)"
29993
29994 #. type: =head2
29995 #: ../src/guestfs-actions.pod:4490
29996 msgid "guestfs_lvs"
29997 msgstr "guestfs_lvs"
29998
29999 #. type: verbatim
30000 #: ../src/guestfs-actions.pod:4492
30001 #, no-wrap
30002 msgid ""
30003 " char **\n"
30004 " guestfs_lvs (guestfs_h *g);\n"
30005 "\n"
30006 msgstr ""
30007 " char **\n"
30008 " guestfs_lvs (guestfs_h *g);\n"
30009 "\n"
30010
30011 #. type: textblock
30012 #: ../src/guestfs-actions.pod:4501
30013 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
30014 msgstr ""
30015
30016 #. type: =head2
30017 #: ../src/guestfs-actions.pod:4509
30018 msgid "guestfs_lvs_full"
30019 msgstr "guestfs_lvs_full"
30020
30021 #. type: verbatim
30022 #: ../src/guestfs-actions.pod:4511
30023 #, no-wrap
30024 msgid ""
30025 " struct guestfs_lvm_lv_list *\n"
30026 " guestfs_lvs_full (guestfs_h *g);\n"
30027 "\n"
30028 msgstr ""
30029 " struct guestfs_lvm_lv_list *\n"
30030 " guestfs_lvs_full (guestfs_h *g);\n"
30031 "\n"
30032
30033 #. type: textblock
30034 #: ../src/guestfs-actions.pod:4517
30035 msgid ""
30036 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
30037 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
30038 msgstr ""
30039
30040 #. type: =head2
30041 #: ../src/guestfs-actions.pod:4523
30042 msgid "guestfs_lvuuid"
30043 msgstr "guestfs_lvuuid"
30044
30045 #. type: verbatim
30046 #: ../src/guestfs-actions.pod:4525
30047 #, no-wrap
30048 msgid ""
30049 " char *\n"
30050 " guestfs_lvuuid (guestfs_h *g,\n"
30051 "                 const char *device);\n"
30052 "\n"
30053 msgstr ""
30054 " char *\n"
30055 " guestfs_lvuuid (guestfs_h *g,\n"
30056 "                 const char *device);\n"
30057 "\n"
30058
30059 #. type: =head2
30060 #: ../src/guestfs-actions.pod:4536
30061 msgid "guestfs_lxattrlist"
30062 msgstr "guestfs_lxattrlist"
30063
30064 #. type: verbatim
30065 #: ../src/guestfs-actions.pod:4538
30066 #, no-wrap
30067 msgid ""
30068 " struct guestfs_xattr_list *\n"
30069 " guestfs_lxattrlist (guestfs_h *g,\n"
30070 "                     const char *path,\n"
30071 "                     char *const *names);\n"
30072 "\n"
30073 msgstr ""
30074 " struct guestfs_xattr_list *\n"
30075 " guestfs_lxattrlist (guestfs_h *g,\n"
30076 "                     const char *path,\n"
30077 "                     char *const *names);\n"
30078 "\n"
30079
30080 #. type: textblock
30081 #: ../src/guestfs-actions.pod:4557
30082 msgid ""
30083 "This call is intended for programs that want to efficiently list a directory "
30084 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
30085 "a similarly efficient call for getting standard stats.  Very long directory "
30086 "listings might cause the protocol message size to be exceeded, causing this "
30087 "call to fail.  The caller must split up such requests into smaller groups of "
30088 "names."
30089 msgstr ""
30090
30091 #. type: =head2
30092 #: ../src/guestfs-actions.pod:4571
30093 msgid "guestfs_mkdir"
30094 msgstr "guestfs_mkdir"
30095
30096 #. type: verbatim
30097 #: ../src/guestfs-actions.pod:4573
30098 #, no-wrap
30099 msgid ""
30100 " int\n"
30101 " guestfs_mkdir (guestfs_h *g,\n"
30102 "                const char *path);\n"
30103 "\n"
30104 msgstr ""
30105 " int\n"
30106 " guestfs_mkdir (guestfs_h *g,\n"
30107 "                const char *path);\n"
30108 "\n"
30109
30110 #. type: =head2
30111 #: ../src/guestfs-actions.pod:4583
30112 msgid "guestfs_mkdir_mode"
30113 msgstr "guestfs_mkdir_mode"
30114
30115 #. type: verbatim
30116 #: ../src/guestfs-actions.pod:4585
30117 #, no-wrap
30118 msgid ""
30119 " int\n"
30120 " guestfs_mkdir_mode (guestfs_h *g,\n"
30121 "                     const char *path,\n"
30122 "                     int mode);\n"
30123 "\n"
30124 msgstr ""
30125 " int\n"
30126 " guestfs_mkdir_mode (guestfs_h *g,\n"
30127 "                     const char *path,\n"
30128 "                     int mode);\n"
30129 "\n"
30130
30131 #. type: textblock
30132 #: ../src/guestfs-actions.pod:4597
30133 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
30134 msgstr ""
30135
30136 #. type: =head2
30137 #: ../src/guestfs-actions.pod:4603
30138 msgid "guestfs_mkdir_p"
30139 msgstr "guestfs_mkdir_p"
30140
30141 #. type: verbatim
30142 #: ../src/guestfs-actions.pod:4605
30143 #, no-wrap
30144 msgid ""
30145 " int\n"
30146 " guestfs_mkdir_p (guestfs_h *g,\n"
30147 "                  const char *path);\n"
30148 "\n"
30149 msgstr ""
30150 " int\n"
30151 " guestfs_mkdir_p (guestfs_h *g,\n"
30152 "                  const char *path);\n"
30153 "\n"
30154
30155 #. type: =head2
30156 #: ../src/guestfs-actions.pod:4616
30157 msgid "guestfs_mkdtemp"
30158 msgstr "guestfs_mkdtemp"
30159
30160 #. type: verbatim
30161 #: ../src/guestfs-actions.pod:4618
30162 #, no-wrap
30163 msgid ""
30164 " char *\n"
30165 " guestfs_mkdtemp (guestfs_h *g,\n"
30166 "                  const char *template);\n"
30167 "\n"
30168 msgstr ""
30169 " char *\n"
30170 " guestfs_mkdtemp (guestfs_h *g,\n"
30171 "                  const char *template);\n"
30172 "\n"
30173
30174 #. type: =head2
30175 #: ../src/guestfs-actions.pod:4646
30176 msgid "guestfs_mke2fs_J"
30177 msgstr "guestfs_mke2fs_J"
30178
30179 #. type: verbatim
30180 #: ../src/guestfs-actions.pod:4648
30181 #, no-wrap
30182 msgid ""
30183 " int\n"
30184 " guestfs_mke2fs_J (guestfs_h *g,\n"
30185 "                   const char *fstype,\n"
30186 "                   int blocksize,\n"
30187 "                   const char *device,\n"
30188 "                   const char *journal);\n"
30189 "\n"
30190 msgstr ""
30191 " int\n"
30192 " guestfs_mke2fs_J (guestfs_h *g,\n"
30193 "                   const char *fstype,\n"
30194 "                   int blocksize,\n"
30195 "                   const char *device,\n"
30196 "                   const char *journal);\n"
30197 "\n"
30198
30199 #. type: textblock
30200 #: ../src/guestfs-actions.pod:4661
30201 msgid "See also C<guestfs_mke2journal>."
30202 msgstr ""
30203
30204 #. type: textblock
30205 #: ../src/guestfs-actions.pod:4665 ../src/guestfs-actions.pod:4683
30206 #: ../src/guestfs-actions.pod:4701 ../src/guestfs-actions.pod:4717
30207 #: ../src/guestfs-actions.pod:4731 ../src/guestfs-actions.pod:4745
30208 #: ../src/guestfs-actions.pod:4804 ../src/guestfs-actions.pod:5081
30209 msgid "(Added in 1.0.68)"
30210 msgstr "(Додано у 1.0.68)"
30211
30212 #. type: =head2
30213 #: ../src/guestfs-actions.pod:4667
30214 msgid "guestfs_mke2fs_JL"
30215 msgstr "guestfs_mke2fs_JL"
30216
30217 #. type: verbatim
30218 #: ../src/guestfs-actions.pod:4669
30219 #, no-wrap
30220 msgid ""
30221 " int\n"
30222 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30223 "                    const char *fstype,\n"
30224 "                    int blocksize,\n"
30225 "                    const char *device,\n"
30226 "                    const char *label);\n"
30227 "\n"
30228 msgstr ""
30229 " int\n"
30230 " guestfs_mke2fs_JL (guestfs_h *g,\n"
30231 "                    const char *fstype,\n"
30232 "                    int blocksize,\n"
30233 "                    const char *device,\n"
30234 "                    const char *label);\n"
30235 "\n"
30236
30237 #. type: textblock
30238 #: ../src/guestfs-actions.pod:4679
30239 msgid "See also C<guestfs_mke2journal_L>."
30240 msgstr ""
30241
30242 #. type: =head2
30243 #: ../src/guestfs-actions.pod:4685
30244 msgid "guestfs_mke2fs_JU"
30245 msgstr "guestfs_mke2fs_JU"
30246
30247 #. type: verbatim
30248 #: ../src/guestfs-actions.pod:4687
30249 #, no-wrap
30250 msgid ""
30251 " int\n"
30252 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30253 "                    const char *fstype,\n"
30254 "                    int blocksize,\n"
30255 "                    const char *device,\n"
30256 "                    const char *uuid);\n"
30257 "\n"
30258 msgstr ""
30259 " int\n"
30260 " guestfs_mke2fs_JU (guestfs_h *g,\n"
30261 "                    const char *fstype,\n"
30262 "                    int blocksize,\n"
30263 "                    const char *device,\n"
30264 "                    const char *uuid);\n"
30265 "\n"
30266
30267 #. type: textblock
30268 #: ../src/guestfs-actions.pod:4697
30269 msgid "See also C<guestfs_mke2journal_U>."
30270 msgstr ""
30271
30272 #. type: =head2
30273 #: ../src/guestfs-actions.pod:4703
30274 msgid "guestfs_mke2journal"
30275 msgstr "guestfs_mke2journal"
30276
30277 #. type: verbatim
30278 #: ../src/guestfs-actions.pod:4705
30279 #, no-wrap
30280 msgid ""
30281 " int\n"
30282 " guestfs_mke2journal (guestfs_h *g,\n"
30283 "                      int blocksize,\n"
30284 "                      const char *device);\n"
30285 "\n"
30286 msgstr ""
30287 " int\n"
30288 " guestfs_mke2journal (guestfs_h *g,\n"
30289 "                      int blocksize,\n"
30290 "                      const char *device);\n"
30291 "\n"
30292
30293 #. type: =head2
30294 #: ../src/guestfs-actions.pod:4719
30295 msgid "guestfs_mke2journal_L"
30296 msgstr "guestfs_mke2journal_L"
30297
30298 #. type: verbatim
30299 #: ../src/guestfs-actions.pod:4721
30300 #, no-wrap
30301 msgid ""
30302 " int\n"
30303 " guestfs_mke2journal_L (guestfs_h *g,\n"
30304 "                        int blocksize,\n"
30305 "                        const char *label,\n"
30306 "                        const char *device);\n"
30307 "\n"
30308 msgstr ""
30309 " int\n"
30310 " guestfs_mke2journal_L (guestfs_h *g,\n"
30311 "                        int blocksize,\n"
30312 "                        const char *label,\n"
30313 "                        const char *device);\n"
30314 "\n"
30315
30316 #. type: =head2
30317 #: ../src/guestfs-actions.pod:4733
30318 msgid "guestfs_mke2journal_U"
30319 msgstr "guestfs_mke2journal_U"
30320
30321 #. type: verbatim
30322 #: ../src/guestfs-actions.pod:4735
30323 #, no-wrap
30324 msgid ""
30325 " int\n"
30326 " guestfs_mke2journal_U (guestfs_h *g,\n"
30327 "                        int blocksize,\n"
30328 "                        const char *uuid,\n"
30329 "                        const char *device);\n"
30330 "\n"
30331 msgstr ""
30332 " int\n"
30333 " guestfs_mke2journal_U (guestfs_h *g,\n"
30334 "                        int blocksize,\n"
30335 "                        const char *uuid,\n"
30336 "                        const char *device);\n"
30337 "\n"
30338
30339 #. type: =head2
30340 #: ../src/guestfs-actions.pod:4747
30341 msgid "guestfs_mkfifo"
30342 msgstr "guestfs_mkfifo"
30343
30344 #. type: verbatim
30345 #: ../src/guestfs-actions.pod:4749
30346 #, no-wrap
30347 msgid ""
30348 " int\n"
30349 " guestfs_mkfifo (guestfs_h *g,\n"
30350 "                 int mode,\n"
30351 "                 const char *path);\n"
30352 "\n"
30353 msgstr ""
30354 " int\n"
30355 " guestfs_mkfifo (guestfs_h *g,\n"
30356 "                 int mode,\n"
30357 "                 const char *path);\n"
30358 "\n"
30359
30360 #. type: textblock
30361 #: ../src/guestfs-actions.pod:4754
30362 msgid ""
30363 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
30364 "is just a convenient wrapper around C<guestfs_mknod>."
30365 msgstr ""
30366
30367 #. type: =head2
30368 #: ../src/guestfs-actions.pod:4764
30369 msgid "guestfs_mkfs"
30370 msgstr "guestfs_mkfs"
30371
30372 #. type: verbatim
30373 #: ../src/guestfs-actions.pod:4766
30374 #, no-wrap
30375 msgid ""
30376 " int\n"
30377 " guestfs_mkfs (guestfs_h *g,\n"
30378 "               const char *fstype,\n"
30379 "               const char *device);\n"
30380 "\n"
30381 msgstr ""
30382 " int\n"
30383 " guestfs_mkfs (guestfs_h *g,\n"
30384 "               const char *fstype,\n"
30385 "               const char *device);\n"
30386 "\n"
30387
30388 #. type: =head2
30389 #: ../src/guestfs-actions.pod:4779
30390 msgid "guestfs_mkfs_b"
30391 msgstr "guestfs_mkfs_b"
30392
30393 #. type: verbatim
30394 #: ../src/guestfs-actions.pod:4781
30395 #, no-wrap
30396 msgid ""
30397 " int\n"
30398 " guestfs_mkfs_b (guestfs_h *g,\n"
30399 "                 const char *fstype,\n"
30400 "                 int blocksize,\n"
30401 "                 const char *device);\n"
30402 "\n"
30403 msgstr ""
30404 " int\n"
30405 " guestfs_mkfs_b (guestfs_h *g,\n"
30406 "                 const char *fstype,\n"
30407 "                 int blocksize,\n"
30408 "                 const char *device);\n"
30409 "\n"
30410
30411 #. type: textblock
30412 #: ../src/guestfs-actions.pod:4787
30413 msgid ""
30414 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
30415 "call instead."
30416 msgstr ""
30417
30418 #. type: textblock
30419 #: ../src/guestfs-actions.pod:4794
30420 msgid ""
30421 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
30422 "block size of the resulting filesystem.  Supported block sizes depend on the "
30423 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
30424 msgstr ""
30425
30426 #. type: =head2
30427 #: ../src/guestfs-actions.pod:4806
30428 msgid "guestfs_mkfs_opts"
30429 msgstr "guestfs_mkfs_opts"
30430
30431 #. type: verbatim
30432 #: ../src/guestfs-actions.pod:4808
30433 #, no-wrap
30434 msgid ""
30435 " int\n"
30436 " guestfs_mkfs_opts (guestfs_h *g,\n"
30437 "                    const char *fstype,\n"
30438 "                    const char *device,\n"
30439 "                    ...);\n"
30440 "\n"
30441 msgstr ""
30442 " int\n"
30443 " guestfs_mkfs_opts (guestfs_h *g,\n"
30444 "                    const char *fstype,\n"
30445 "                    const char *device,\n"
30446 "                    ...);\n"
30447 "\n"
30448
30449 #. type: verbatim
30450 #: ../src/guestfs-actions.pod:4819
30451 #, no-wrap
30452 msgid ""
30453 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
30454 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
30455 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
30456 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
30457 "\n"
30458 msgstr ""
30459
30460 #. type: textblock
30461 #: ../src/guestfs-actions.pod:4867
30462 msgid "(Added in 1.7.19)"
30463 msgstr "(Додано у 1.7.19)"
30464
30465 #. type: =head2
30466 #: ../src/guestfs-actions.pod:4869
30467 msgid "guestfs_mkfs_opts_va"
30468 msgstr "guestfs_mkfs_opts_va"
30469
30470 #. type: verbatim
30471 #: ../src/guestfs-actions.pod:4871
30472 #, no-wrap
30473 msgid ""
30474 " int\n"
30475 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30476 "                       const char *fstype,\n"
30477 "                       const char *device,\n"
30478 "                       va_list args);\n"
30479 "\n"
30480 msgstr ""
30481 " int\n"
30482 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
30483 "                       const char *fstype,\n"
30484 "                       const char *device,\n"
30485 "                       va_list args);\n"
30486 "\n"
30487
30488 #. type: textblock
30489 #: ../src/guestfs-actions.pod:4877
30490 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
30491 msgstr ""
30492
30493 #. type: =head2
30494 #: ../src/guestfs-actions.pod:4881
30495 msgid "guestfs_mkfs_opts_argv"
30496 msgstr "guestfs_mkfs_opts_argv"
30497
30498 #. type: verbatim
30499 #: ../src/guestfs-actions.pod:4883
30500 #, no-wrap
30501 msgid ""
30502 " int\n"
30503 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30504 "                         const char *fstype,\n"
30505 "                         const char *device,\n"
30506 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30507 "\n"
30508 msgstr ""
30509 " int\n"
30510 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
30511 "                         const char *fstype,\n"
30512 "                         const char *device,\n"
30513 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
30514 "\n"
30515
30516 #. type: textblock
30517 #: ../src/guestfs-actions.pod:4889
30518 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
30519 msgstr ""
30520
30521 #. type: =head2
30522 #: ../src/guestfs-actions.pod:4893
30523 msgid "guestfs_mkmountpoint"
30524 msgstr "guestfs_mkmountpoint"
30525
30526 #. type: verbatim
30527 #: ../src/guestfs-actions.pod:4895
30528 #, no-wrap
30529 msgid ""
30530 " int\n"
30531 " guestfs_mkmountpoint (guestfs_h *g,\n"
30532 "                       const char *exemptpath);\n"
30533 "\n"
30534 msgstr ""
30535 " int\n"
30536 " guestfs_mkmountpoint (guestfs_h *g,\n"
30537 "                       const char *exemptpath);\n"
30538 "\n"
30539
30540 #. type: textblock
30541 #: ../src/guestfs-actions.pod:4899
30542 msgid ""
30543 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
30544 "that can be used to create extra mountpoints before mounting the first "
30545 "filesystem."
30546 msgstr ""
30547
30548 #. type: textblock
30549 #: ../src/guestfs-actions.pod:4923
30550 msgid ""
30551 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
30552 "may get unexpected errors if you try to mix these calls.  It is safest to "
30553 "manually unmount filesystems and remove mountpoints after use."
30554 msgstr ""
30555
30556 #. type: textblock
30557 #: ../src/guestfs-actions.pod:4927
30558 msgid ""
30559 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
30560 "first, so for this to work for manual mountpoints, you must ensure that the "
30561 "innermost mountpoints have the longest pathnames, as in the example code "
30562 "above."
30563 msgstr ""
30564
30565 #. type: textblock
30566 #: ../src/guestfs-actions.pod:4934
30567 msgid ""
30568 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
30569 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
30570 "can also trigger these issues."
30571 msgstr ""
30572
30573 #. type: textblock
30574 #: ../src/guestfs-actions.pod:4940 ../src/guestfs-actions.pod:5246
30575 #: ../src/guestfs-actions.pod:6256
30576 msgid "(Added in 1.0.62)"
30577 msgstr "(Додано у 1.0.62)"
30578
30579 #. type: =head2
30580 #: ../src/guestfs-actions.pod:4942
30581 msgid "guestfs_mknod"
30582 msgstr ""
30583
30584 #. type: verbatim
30585 #: ../src/guestfs-actions.pod:4944
30586 #, no-wrap
30587 msgid ""
30588 " int\n"
30589 " guestfs_mknod (guestfs_h *g,\n"
30590 "                int mode,\n"
30591 "                int devmajor,\n"
30592 "                int devminor,\n"
30593 "                const char *path);\n"
30594 "\n"
30595 msgstr ""
30596
30597 #. type: textblock
30598 #: ../src/guestfs-actions.pod:4959
30599 msgid ""
30600 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
30601 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
30602 "regular file).  These constants are available in the standard Linux header "
30603 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
30604 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
30605 "the appropriate constant for you."
30606 msgstr ""
30607
30608 #. type: =head2
30609 #: ../src/guestfs-actions.pod:4973
30610 msgid "guestfs_mknod_b"
30611 msgstr ""
30612
30613 #. type: verbatim
30614 #: ../src/guestfs-actions.pod:4975
30615 #, no-wrap
30616 msgid ""
30617 " int\n"
30618 " guestfs_mknod_b (guestfs_h *g,\n"
30619 "                  int mode,\n"
30620 "                  int devmajor,\n"
30621 "                  int devminor,\n"
30622 "                  const char *path);\n"
30623 "\n"
30624 msgstr ""
30625
30626 #. type: textblock
30627 #: ../src/guestfs-actions.pod:4982
30628 msgid ""
30629 "This call creates a block device node called C<path> with mode C<mode> and "
30630 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30631 "wrapper around C<guestfs_mknod>."
30632 msgstr ""
30633
30634 #. type: =head2
30635 #: ../src/guestfs-actions.pod:4992
30636 msgid "guestfs_mknod_c"
30637 msgstr ""
30638
30639 #. type: verbatim
30640 #: ../src/guestfs-actions.pod:4994
30641 #, no-wrap
30642 msgid ""
30643 " int\n"
30644 " guestfs_mknod_c (guestfs_h *g,\n"
30645 "                  int mode,\n"
30646 "                  int devmajor,\n"
30647 "                  int devminor,\n"
30648 "                  const char *path);\n"
30649 "\n"
30650 msgstr ""
30651
30652 #. type: textblock
30653 #: ../src/guestfs-actions.pod:5001
30654 msgid ""
30655 "This call creates a char device node called C<path> with mode C<mode> and "
30656 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
30657 "wrapper around C<guestfs_mknod>."
30658 msgstr ""
30659
30660 #. type: =head2
30661 #: ../src/guestfs-actions.pod:5011
30662 msgid "guestfs_mkswap"
30663 msgstr ""
30664
30665 #. type: verbatim
30666 #: ../src/guestfs-actions.pod:5013
30667 #, no-wrap
30668 msgid ""
30669 " int\n"
30670 " guestfs_mkswap (guestfs_h *g,\n"
30671 "                 const char *device);\n"
30672 "\n"
30673 msgstr ""
30674
30675 #. type: =head2
30676 #: ../src/guestfs-actions.pod:5023
30677 msgid "guestfs_mkswap_L"
30678 msgstr ""
30679
30680 #. type: verbatim
30681 #: ../src/guestfs-actions.pod:5025
30682 #, no-wrap
30683 msgid ""
30684 " int\n"
30685 " guestfs_mkswap_L (guestfs_h *g,\n"
30686 "                   const char *label,\n"
30687 "                   const char *device);\n"
30688 "\n"
30689 msgstr ""
30690
30691 #. type: =head2
30692 #: ../src/guestfs-actions.pod:5040
30693 msgid "guestfs_mkswap_U"
30694 msgstr ""
30695
30696 #. type: verbatim
30697 #: ../src/guestfs-actions.pod:5042
30698 #, no-wrap
30699 msgid ""
30700 " int\n"
30701 " guestfs_mkswap_U (guestfs_h *g,\n"
30702 "                   const char *uuid,\n"
30703 "                   const char *device);\n"
30704 "\n"
30705 msgstr ""
30706
30707 #. type: =head2
30708 #: ../src/guestfs-actions.pod:5053
30709 msgid "guestfs_mkswap_file"
30710 msgstr ""
30711
30712 #. type: verbatim
30713 #: ../src/guestfs-actions.pod:5055
30714 #, no-wrap
30715 msgid ""
30716 " int\n"
30717 " guestfs_mkswap_file (guestfs_h *g,\n"
30718 "                      const char *path);\n"
30719 "\n"
30720 msgstr ""
30721
30722 #. type: textblock
30723 #: ../src/guestfs-actions.pod:5061
30724 msgid ""
30725 "This command just writes a swap file signature to an existing file.  To "
30726 "create the file itself, use something like C<guestfs_fallocate>."
30727 msgstr ""
30728
30729 #. type: =head2
30730 #: ../src/guestfs-actions.pod:5068
30731 msgid "guestfs_modprobe"
30732 msgstr ""
30733
30734 #. type: verbatim
30735 #: ../src/guestfs-actions.pod:5070
30736 #, no-wrap
30737 msgid ""
30738 " int\n"
30739 " guestfs_modprobe (guestfs_h *g,\n"
30740 "                   const char *modulename);\n"
30741 "\n"
30742 msgstr ""
30743
30744 #. type: =head2
30745 #: ../src/guestfs-actions.pod:5083
30746 msgid "guestfs_mount"
30747 msgstr ""
30748
30749 #. type: verbatim
30750 #: ../src/guestfs-actions.pod:5085
30751 #, no-wrap
30752 msgid ""
30753 " int\n"
30754 " guestfs_mount (guestfs_h *g,\n"
30755 "                const char *device,\n"
30756 "                const char *mountpoint);\n"
30757 "\n"
30758 msgstr ""
30759
30760 #. type: textblock
30761 #: ../src/guestfs-actions.pod:5104
30762 msgid ""
30763 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
30764 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
30765 "problems for users.  If your program might need to work with older versions "
30766 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
30767 "for the first parameter if you don't want any options)."
30768 msgstr ""
30769
30770 #. type: =head2
30771 #: ../src/guestfs-actions.pod:5115
30772 msgid "guestfs_mount_9p"
30773 msgstr ""
30774
30775 #. type: verbatim
30776 #: ../src/guestfs-actions.pod:5117
30777 #, no-wrap
30778 msgid ""
30779 " int\n"
30780 " guestfs_mount_9p (guestfs_h *g,\n"
30781 "                   const char *mounttag,\n"
30782 "                   const char *mountpoint,\n"
30783 "                   ...);\n"
30784 "\n"
30785 msgstr ""
30786
30787 #. type: verbatim
30788 #: ../src/guestfs-actions.pod:5128
30789 #, no-wrap
30790 msgid ""
30791 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
30792 "\n"
30793 msgstr ""
30794
30795 #. type: =head2
30796 #: ../src/guestfs-actions.pod:5141
30797 msgid "guestfs_mount_9p_va"
30798 msgstr ""
30799
30800 #. type: verbatim
30801 #: ../src/guestfs-actions.pod:5143
30802 #, no-wrap
30803 msgid ""
30804 " int\n"
30805 " guestfs_mount_9p_va (guestfs_h *g,\n"
30806 "                      const char *mounttag,\n"
30807 "                      const char *mountpoint,\n"
30808 "                      va_list args);\n"
30809 "\n"
30810 msgstr ""
30811
30812 #. type: textblock
30813 #: ../src/guestfs-actions.pod:5149
30814 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30815 msgstr ""
30816
30817 #. type: =head2
30818 #: ../src/guestfs-actions.pod:5153
30819 msgid "guestfs_mount_9p_argv"
30820 msgstr ""
30821
30822 #. type: verbatim
30823 #: ../src/guestfs-actions.pod:5155
30824 #, no-wrap
30825 msgid ""
30826 " int\n"
30827 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30828 "                        const char *mounttag,\n"
30829 "                        const char *mountpoint,\n"
30830 "                        const struct guestfs_mount_9p_argv *optargs);\n"
30831 "\n"
30832 msgstr ""
30833
30834 #. type: textblock
30835 #: ../src/guestfs-actions.pod:5161
30836 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30837 msgstr ""
30838
30839 #. type: =head2
30840 #: ../src/guestfs-actions.pod:5165
30841 msgid "guestfs_mount_loop"
30842 msgstr ""
30843
30844 #. type: verbatim
30845 #: ../src/guestfs-actions.pod:5167
30846 #, no-wrap
30847 msgid ""
30848 " int\n"
30849 " guestfs_mount_loop (guestfs_h *g,\n"
30850 "                     const char *file,\n"
30851 "                     const char *mountpoint);\n"
30852 "\n"
30853 msgstr ""
30854
30855 #. type: =head2
30856 #: ../src/guestfs-actions.pod:5180
30857 msgid "guestfs_mount_options"
30858 msgstr ""
30859
30860 #. type: verbatim
30861 #: ../src/guestfs-actions.pod:5182
30862 #, no-wrap
30863 msgid ""
30864 " int\n"
30865 " guestfs_mount_options (guestfs_h *g,\n"
30866 "                        const char *options,\n"
30867 "                        const char *device,\n"
30868 "                        const char *mountpoint);\n"
30869 "\n"
30870 msgstr ""
30871
30872 #. type: textblock
30873 #: ../src/guestfs-actions.pod:5188
30874 msgid ""
30875 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30876 "the mount options as for the L<mount(8)> I<-o> flag."
30877 msgstr ""
30878
30879 #. type: textblock
30880 #: ../src/guestfs-actions.pod:5198 ../src/guestfs-actions.pod:5212
30881 #: ../src/guestfs-actions.pod:5229
30882 msgid "(Added in 1.0.10)"
30883 msgstr "(Додано у 1.0.10)"
30884
30885 #. type: =head2
30886 #: ../src/guestfs-actions.pod:5200
30887 msgid "guestfs_mount_ro"
30888 msgstr ""
30889
30890 #. type: verbatim
30891 #: ../src/guestfs-actions.pod:5202
30892 #, no-wrap
30893 msgid ""
30894 " int\n"
30895 " guestfs_mount_ro (guestfs_h *g,\n"
30896 "                   const char *device,\n"
30897 "                   const char *mountpoint);\n"
30898 "\n"
30899 msgstr ""
30900
30901 #. type: textblock
30902 #: ../src/guestfs-actions.pod:5207
30903 msgid ""
30904 "This is the same as the C<guestfs_mount> command, but it mounts the "
30905 "filesystem with the read-only (I<-o ro>) flag."
30906 msgstr ""
30907
30908 #. type: =head2
30909 #: ../src/guestfs-actions.pod:5214
30910 msgid "guestfs_mount_vfs"
30911 msgstr ""
30912
30913 #. type: verbatim
30914 #: ../src/guestfs-actions.pod:5216
30915 #, no-wrap
30916 msgid ""
30917 " int\n"
30918 " guestfs_mount_vfs (guestfs_h *g,\n"
30919 "                    const char *options,\n"
30920 "                    const char *vfstype,\n"
30921 "                    const char *device,\n"
30922 "                    const char *mountpoint);\n"
30923 "\n"
30924 msgstr ""
30925
30926 #. type: textblock
30927 #: ../src/guestfs-actions.pod:5223
30928 msgid ""
30929 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30930 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
30931 "t> flags."
30932 msgstr ""
30933
30934 #. type: =head2
30935 #: ../src/guestfs-actions.pod:5231
30936 msgid "guestfs_mountpoints"
30937 msgstr ""
30938
30939 #. type: verbatim
30940 #: ../src/guestfs-actions.pod:5233
30941 #, no-wrap
30942 msgid ""
30943 " char **\n"
30944 " guestfs_mountpoints (guestfs_h *g);\n"
30945 "\n"
30946 msgstr ""
30947
30948 #. type: textblock
30949 #: ../src/guestfs-actions.pod:5236
30950 msgid ""
30951 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
30952 "devices.  This one returns a hash table (map) of device name to directory "
30953 "where the device is mounted."
30954 msgstr ""
30955
30956 #. type: =head2
30957 #: ../src/guestfs-actions.pod:5248
30958 msgid "guestfs_mounts"
30959 msgstr ""
30960
30961 #. type: verbatim
30962 #: ../src/guestfs-actions.pod:5250
30963 #, no-wrap
30964 msgid ""
30965 " char **\n"
30966 " guestfs_mounts (guestfs_h *g);\n"
30967 "\n"
30968 msgstr ""
30969
30970 #. type: textblock
30971 #: ../src/guestfs-actions.pod:5258
30972 msgid "See also: C<guestfs_mountpoints>"
30973 msgstr ""
30974
30975 #. type: =head2
30976 #: ../src/guestfs-actions.pod:5266
30977 msgid "guestfs_mv"
30978 msgstr ""
30979
30980 #. type: verbatim
30981 #: ../src/guestfs-actions.pod:5268
30982 #, no-wrap
30983 msgid ""
30984 " int\n"
30985 " guestfs_mv (guestfs_h *g,\n"
30986 "             const char *src,\n"
30987 "             const char *dest);\n"
30988 "\n"
30989 msgstr ""
30990
30991 #. type: =head2
30992 #: ../src/guestfs-actions.pod:5280
30993 msgid "guestfs_ntfs_3g_probe"
30994 msgstr ""
30995
30996 #. type: verbatim
30997 #: ../src/guestfs-actions.pod:5282
30998 #, no-wrap
30999 msgid ""
31000 " int\n"
31001 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
31002 "                        int rw,\n"
31003 "                        const char *device);\n"
31004 "\n"
31005 msgstr ""
31006
31007 #. type: textblock
31008 #: ../src/guestfs-actions.pod:5301
31009 msgid "(Added in 1.0.43)"
31010 msgstr "(Додано у 1.0.43)"
31011
31012 #. type: =head2
31013 #: ../src/guestfs-actions.pod:5303
31014 msgid "guestfs_ntfsresize"
31015 msgstr ""
31016
31017 #. type: verbatim
31018 #: ../src/guestfs-actions.pod:5305
31019 #, no-wrap
31020 msgid ""
31021 " int\n"
31022 " guestfs_ntfsresize (guestfs_h *g,\n"
31023 "                     const char *device);\n"
31024 "\n"
31025 msgstr ""
31026
31027 #. type: textblock
31028 #: ../src/guestfs-actions.pod:5309 ../src/guestfs-actions.pod:5409
31029 msgid ""
31030 "I<This function is deprecated.> In new code, use the L</"
31031 "guestfs_ntfsresize_opts> call instead."
31032 msgstr ""
31033
31034 #. type: =head2
31035 #: ../src/guestfs-actions.pod:5333
31036 msgid "guestfs_ntfsresize_opts"
31037 msgstr ""
31038
31039 #. type: verbatim
31040 #: ../src/guestfs-actions.pod:5335
31041 #, no-wrap
31042 msgid ""
31043 " int\n"
31044 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
31045 "                          const char *device,\n"
31046 "                          ...);\n"
31047 "\n"
31048 msgstr ""
31049
31050 #. type: verbatim
31051 #: ../src/guestfs-actions.pod:5345
31052 #, no-wrap
31053 msgid ""
31054 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
31055 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
31056 "\n"
31057 msgstr ""
31058
31059 #. type: textblock
31060 #: ../src/guestfs-actions.pod:5365
31061 msgid ""
31062 "After the resize operation, the filesystem is always marked as requiring a "
31063 "consistency check (for safety).  You have to boot into Windows to perform "
31064 "this check and clear this condition.  If you I<don't> set the C<force> "
31065 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
31066 "times on a single filesystem without booting into Windows between each "
31067 "resize."
31068 msgstr ""
31069
31070 #. type: =head2
31071 #: ../src/guestfs-actions.pod:5380
31072 msgid "guestfs_ntfsresize_opts_va"
31073 msgstr ""
31074
31075 #. type: verbatim
31076 #: ../src/guestfs-actions.pod:5382
31077 #, no-wrap
31078 msgid ""
31079 " int\n"
31080 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
31081 "                             const char *device,\n"
31082 "                             va_list args);\n"
31083 "\n"
31084 msgstr ""
31085
31086 #. type: textblock
31087 #: ../src/guestfs-actions.pod:5387
31088 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
31089 msgstr ""
31090
31091 #. type: =head2
31092 #: ../src/guestfs-actions.pod:5391
31093 msgid "guestfs_ntfsresize_opts_argv"
31094 msgstr ""
31095
31096 #. type: verbatim
31097 #: ../src/guestfs-actions.pod:5393
31098 #, no-wrap
31099 msgid ""
31100 " int\n"
31101 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
31102 "                               const char *device,\n"
31103 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
31104 "\n"
31105 msgstr ""
31106
31107 #. type: textblock
31108 #: ../src/guestfs-actions.pod:5398
31109 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
31110 msgstr ""
31111
31112 #. type: =head2
31113 #: ../src/guestfs-actions.pod:5402
31114 msgid "guestfs_ntfsresize_size"
31115 msgstr ""
31116
31117 #. type: verbatim
31118 #: ../src/guestfs-actions.pod:5404
31119 #, no-wrap
31120 msgid ""
31121 " int\n"
31122 " guestfs_ntfsresize_size (guestfs_h *g,\n"
31123 "                          const char *device,\n"
31124 "                          int64_t size);\n"
31125 "\n"
31126 msgstr ""
31127
31128 #. type: textblock
31129 #: ../src/guestfs-actions.pod:5416
31130 msgid ""
31131 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
31132 "to specify the new size (in bytes) explicitly."
31133 msgstr ""
31134
31135 #. type: textblock
31136 #: ../src/guestfs-actions.pod:5421 ../src/guestfs-actions.pod:5863
31137 #: ../src/guestfs-actions.pod:5936 ../src/guestfs-actions.pod:6204
31138 #: ../src/guestfs-actions.pod:7843
31139 msgid "(Added in 1.3.14)"
31140 msgstr "(Додано у 1.3.14)"
31141
31142 #. type: =head2
31143 #: ../src/guestfs-actions.pod:5423
31144 msgid "guestfs_part_add"
31145 msgstr ""
31146
31147 #. type: verbatim
31148 #: ../src/guestfs-actions.pod:5425
31149 #, no-wrap
31150 msgid ""
31151 " int\n"
31152 " guestfs_part_add (guestfs_h *g,\n"
31153 "                   const char *device,\n"
31154 "                   const char *prlogex,\n"
31155 "                   int64_t startsect,\n"
31156 "                   int64_t endsect);\n"
31157 "\n"
31158 msgstr ""
31159
31160 #. type: textblock
31161 #: ../src/guestfs-actions.pod:5432
31162 msgid ""
31163 "This command adds a partition to C<device>.  If there is no partition table "
31164 "on the device, call C<guestfs_part_init> first."
31165 msgstr ""
31166
31167 #. type: textblock
31168 #: ../src/guestfs-actions.pod:5444
31169 msgid ""
31170 "Creating a partition which covers the whole disk is not so easy.  Use "
31171 "C<guestfs_part_disk> to do that."
31172 msgstr ""
31173
31174 #. type: textblock
31175 #: ../src/guestfs-actions.pod:5449 ../src/guestfs-actions.pod:5487
31176 #: ../src/guestfs-actions.pod:5540 ../src/guestfs-actions.pod:5624
31177 #: ../src/guestfs-actions.pod:5662 ../src/guestfs-actions.pod:5681
31178 #: ../src/guestfs-actions.pod:5721
31179 msgid "(Added in 1.0.78)"
31180 msgstr "(Додано у 1.0.78)"
31181
31182 #. type: =head2
31183 #: ../src/guestfs-actions.pod:5451
31184 msgid "guestfs_part_del"
31185 msgstr ""
31186
31187 #. type: verbatim
31188 #: ../src/guestfs-actions.pod:5453
31189 #, no-wrap
31190 msgid ""
31191 " int\n"
31192 " guestfs_part_del (guestfs_h *g,\n"
31193 "                   const char *device,\n"
31194 "                   int partnum);\n"
31195 "\n"
31196 msgstr ""
31197
31198 #. type: =head2
31199 #: ../src/guestfs-actions.pod:5468
31200 msgid "guestfs_part_disk"
31201 msgstr ""
31202
31203 #. type: verbatim
31204 #: ../src/guestfs-actions.pod:5470
31205 #, no-wrap
31206 msgid ""
31207 " int\n"
31208 " guestfs_part_disk (guestfs_h *g,\n"
31209 "                    const char *device,\n"
31210 "                    const char *parttype);\n"
31211 "\n"
31212 msgstr ""
31213
31214 #. type: textblock
31215 #: ../src/guestfs-actions.pod:5475
31216 msgid ""
31217 "This command is simply a combination of C<guestfs_part_init> followed by "
31218 "C<guestfs_part_add> to create a single primary partition covering the whole "
31219 "disk."
31220 msgstr ""
31221
31222 #. type: textblock
31223 #: ../src/guestfs-actions.pod:5479
31224 msgid ""
31225 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
31226 "possible values are described in C<guestfs_part_init>."
31227 msgstr ""
31228
31229 #. type: =head2
31230 #: ../src/guestfs-actions.pod:5489
31231 msgid "guestfs_part_get_bootable"
31232 msgstr ""
31233
31234 #. type: verbatim
31235 #: ../src/guestfs-actions.pod:5491
31236 #, no-wrap
31237 msgid ""
31238 " int\n"
31239 " guestfs_part_get_bootable (guestfs_h *g,\n"
31240 "                            const char *device,\n"
31241 "                            int partnum);\n"
31242 "\n"
31243 msgstr ""
31244
31245 #. type: textblock
31246 #: ../src/guestfs-actions.pod:5499
31247 msgid "See also C<guestfs_part_set_bootable>."
31248 msgstr ""
31249
31250 #. type: =head2
31251 #: ../src/guestfs-actions.pod:5505
31252 msgid "guestfs_part_get_mbr_id"
31253 msgstr ""
31254
31255 #. type: verbatim
31256 #: ../src/guestfs-actions.pod:5507
31257 #, no-wrap
31258 msgid ""
31259 " int\n"
31260 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
31261 "                          const char *device,\n"
31262 "                          int partnum);\n"
31263 "\n"
31264 msgstr ""
31265
31266 #. type: textblock
31267 #: ../src/guestfs-actions.pod:5515 ../src/guestfs-actions.pod:5697
31268 msgid ""
31269 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
31270 "undefined results for other partition table types (see "
31271 "C<guestfs_part_get_parttype>)."
31272 msgstr ""
31273
31274 #. type: =head2
31275 #: ../src/guestfs-actions.pod:5523
31276 msgid "guestfs_part_get_parttype"
31277 msgstr ""
31278
31279 #. type: verbatim
31280 #: ../src/guestfs-actions.pod:5525
31281 #, no-wrap
31282 msgid ""
31283 " char *\n"
31284 " guestfs_part_get_parttype (guestfs_h *g,\n"
31285 "                            const char *device);\n"
31286 "\n"
31287 msgstr ""
31288
31289 #. type: textblock
31290 #: ../src/guestfs-actions.pod:5532
31291 msgid ""
31292 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
31293 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
31294 "possible, although unusual.  See C<guestfs_part_init> for a full list."
31295 msgstr ""
31296
31297 #. type: =head2
31298 #: ../src/guestfs-actions.pod:5542
31299 msgid "guestfs_part_init"
31300 msgstr ""
31301
31302 #. type: verbatim
31303 #: ../src/guestfs-actions.pod:5544
31304 #, no-wrap
31305 msgid ""
31306 " int\n"
31307 " guestfs_part_init (guestfs_h *g,\n"
31308 "                    const char *device,\n"
31309 "                    const char *parttype);\n"
31310 "\n"
31311 msgstr ""
31312
31313 #. type: textblock
31314 #: ../src/guestfs-actions.pod:5553
31315 msgid ""
31316 "Initially there are no partitions.  Following this, you should call "
31317 "C<guestfs_part_add> for each partition required."
31318 msgstr ""
31319
31320 #. type: =head2
31321 #: ../src/guestfs-actions.pod:5626
31322 msgid "guestfs_part_list"
31323 msgstr "guestfs_part_list"
31324
31325 #. type: verbatim
31326 #: ../src/guestfs-actions.pod:5628
31327 #, no-wrap
31328 msgid ""
31329 " struct guestfs_partition_list *\n"
31330 " guestfs_part_list (guestfs_h *g,\n"
31331 "                    const char *device);\n"
31332 "\n"
31333 msgstr ""
31334 " struct guestfs_partition_list *\n"
31335 " guestfs_part_list (guestfs_h *g,\n"
31336 "                    const char *device);\n"
31337 "\n"
31338
31339 #. type: textblock
31340 #: ../src/guestfs-actions.pod:5645
31341 msgid ""
31342 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
31343 "the device's sector size, see C<guestfs_blockdev_getss>."
31344 msgstr ""
31345
31346 #. type: textblock
31347 #: ../src/guestfs-actions.pod:5658
31348 msgid ""
31349 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
31350 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
31351 "use>."
31352 msgstr ""
31353
31354 #. type: =head2
31355 #: ../src/guestfs-actions.pod:5664
31356 msgid "guestfs_part_set_bootable"
31357 msgstr ""
31358
31359 #. type: verbatim
31360 #: ../src/guestfs-actions.pod:5666
31361 #, no-wrap
31362 msgid ""
31363 " int\n"
31364 " guestfs_part_set_bootable (guestfs_h *g,\n"
31365 "                            const char *device,\n"
31366 "                            int partnum,\n"
31367 "                            int bootable);\n"
31368 "\n"
31369 msgstr ""
31370
31371 #. type: =head2
31372 #: ../src/guestfs-actions.pod:5683
31373 msgid "guestfs_part_set_mbr_id"
31374 msgstr ""
31375
31376 #. type: verbatim
31377 #: ../src/guestfs-actions.pod:5685
31378 #, no-wrap
31379 msgid ""
31380 " int\n"
31381 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
31382 "                          const char *device,\n"
31383 "                          int partnum,\n"
31384 "                          int idbyte);\n"
31385 "\n"
31386 msgstr ""
31387
31388 #. type: =head2
31389 #: ../src/guestfs-actions.pod:5705
31390 msgid "guestfs_part_set_name"
31391 msgstr ""
31392
31393 #. type: verbatim
31394 #: ../src/guestfs-actions.pod:5707
31395 #, no-wrap
31396 msgid ""
31397 " int\n"
31398 " guestfs_part_set_name (guestfs_h *g,\n"
31399 "                        const char *device,\n"
31400 "                        int partnum,\n"
31401 "                        const char *name);\n"
31402 "\n"
31403 msgstr ""
31404
31405 #. type: =head2
31406 #: ../src/guestfs-actions.pod:5723
31407 msgid "guestfs_part_to_dev"
31408 msgstr ""
31409
31410 #. type: verbatim
31411 #: ../src/guestfs-actions.pod:5725
31412 #, no-wrap
31413 msgid ""
31414 " char *\n"
31415 " guestfs_part_to_dev (guestfs_h *g,\n"
31416 "                      const char *partition);\n"
31417 "\n"
31418 msgstr ""
31419
31420 #. type: textblock
31421 #: ../src/guestfs-actions.pod:5733
31422 msgid ""
31423 "The named partition must exist, for example as a string returned from "
31424 "C<guestfs_list_partitions>."
31425 msgstr ""
31426
31427 #. type: =head2
31428 #: ../src/guestfs-actions.pod:5741
31429 msgid "guestfs_ping_daemon"
31430 msgstr ""
31431
31432 #. type: verbatim
31433 #: ../src/guestfs-actions.pod:5743
31434 #, no-wrap
31435 msgid ""
31436 " int\n"
31437 " guestfs_ping_daemon (guestfs_h *g);\n"
31438 "\n"
31439 msgstr ""
31440
31441 #. type: =head2
31442 #: ../src/guestfs-actions.pod:5755
31443 msgid "guestfs_pread"
31444 msgstr ""
31445
31446 #. type: verbatim
31447 #: ../src/guestfs-actions.pod:5757
31448 #, no-wrap
31449 msgid ""
31450 " char *\n"
31451 " guestfs_pread (guestfs_h *g,\n"
31452 "                const char *path,\n"
31453 "                int count,\n"
31454 "                int64_t offset,\n"
31455 "                size_t *size_r);\n"
31456 "\n"
31457 msgstr ""
31458
31459 #. type: textblock
31460 #: ../src/guestfs-actions.pod:5770
31461 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
31462 msgstr ""
31463
31464 #. type: =head2
31465 #: ../src/guestfs-actions.pod:5781
31466 msgid "guestfs_pread_device"
31467 msgstr ""
31468
31469 #. type: verbatim
31470 #: ../src/guestfs-actions.pod:5783
31471 #, no-wrap
31472 msgid ""
31473 " char *\n"
31474 " guestfs_pread_device (guestfs_h *g,\n"
31475 "                       const char *device,\n"
31476 "                       int count,\n"
31477 "                       int64_t offset,\n"
31478 "                       size_t *size_r);\n"
31479 "\n"
31480 msgstr ""
31481
31482 #. type: textblock
31483 #: ../src/guestfs-actions.pod:5796
31484 msgid "See also C<guestfs_pread>."
31485 msgstr ""
31486
31487 #. type: textblock
31488 #: ../src/guestfs-actions.pod:5805
31489 msgid "(Added in 1.5.21)"
31490 msgstr "(Додано у 1.5.21)"
31491
31492 #. type: =head2
31493 #: ../src/guestfs-actions.pod:5807
31494 msgid "guestfs_pvcreate"
31495 msgstr ""
31496
31497 #. type: verbatim
31498 #: ../src/guestfs-actions.pod:5809
31499 #, no-wrap
31500 msgid ""
31501 " int\n"
31502 " guestfs_pvcreate (guestfs_h *g,\n"
31503 "                   const char *device);\n"
31504 "\n"
31505 msgstr ""
31506
31507 #. type: =head2
31508 #: ../src/guestfs-actions.pod:5821
31509 msgid "guestfs_pvremove"
31510 msgstr ""
31511
31512 #. type: verbatim
31513 #: ../src/guestfs-actions.pod:5823
31514 #, no-wrap
31515 msgid ""
31516 " int\n"
31517 " guestfs_pvremove (guestfs_h *g,\n"
31518 "                   const char *device);\n"
31519 "\n"
31520 msgstr ""
31521
31522 #. type: =head2
31523 #: ../src/guestfs-actions.pod:5838
31524 msgid "guestfs_pvresize"
31525 msgstr ""
31526
31527 #. type: verbatim
31528 #: ../src/guestfs-actions.pod:5840
31529 #, no-wrap
31530 msgid ""
31531 " int\n"
31532 " guestfs_pvresize (guestfs_h *g,\n"
31533 "                   const char *device);\n"
31534 "\n"
31535 msgstr ""
31536
31537 #. type: =head2
31538 #: ../src/guestfs-actions.pod:5851
31539 msgid "guestfs_pvresize_size"
31540 msgstr ""
31541
31542 #. type: verbatim
31543 #: ../src/guestfs-actions.pod:5853
31544 #, no-wrap
31545 msgid ""
31546 " int\n"
31547 " guestfs_pvresize_size (guestfs_h *g,\n"
31548 "                        const char *device,\n"
31549 "                        int64_t size);\n"
31550 "\n"
31551 msgstr ""
31552
31553 #. type: textblock
31554 #: ../src/guestfs-actions.pod:5858
31555 msgid ""
31556 "This command is the same as C<guestfs_pvresize> except that it allows you to "
31557 "specify the new size (in bytes) explicitly."
31558 msgstr ""
31559
31560 #. type: =head2
31561 #: ../src/guestfs-actions.pod:5865
31562 msgid "guestfs_pvs"
31563 msgstr ""
31564
31565 #. type: verbatim
31566 #: ../src/guestfs-actions.pod:5867
31567 #, no-wrap
31568 msgid ""
31569 " char **\n"
31570 " guestfs_pvs (guestfs_h *g);\n"
31571 "\n"
31572 msgstr ""
31573
31574 #. type: textblock
31575 #: ../src/guestfs-actions.pod:5876
31576 msgid "See also C<guestfs_pvs_full>."
31577 msgstr ""
31578
31579 #. type: =head2
31580 #: ../src/guestfs-actions.pod:5884
31581 msgid "guestfs_pvs_full"
31582 msgstr ""
31583
31584 #. type: verbatim
31585 #: ../src/guestfs-actions.pod:5886
31586 #, no-wrap
31587 msgid ""
31588 " struct guestfs_lvm_pv_list *\n"
31589 " guestfs_pvs_full (guestfs_h *g);\n"
31590 "\n"
31591 msgstr ""
31592
31593 #. type: textblock
31594 #: ../src/guestfs-actions.pod:5892
31595 msgid ""
31596 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
31597 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
31598 msgstr ""
31599
31600 #. type: =head2
31601 #: ../src/guestfs-actions.pod:5898
31602 msgid "guestfs_pvuuid"
31603 msgstr ""
31604
31605 #. type: verbatim
31606 #: ../src/guestfs-actions.pod:5900
31607 #, no-wrap
31608 msgid ""
31609 " char *\n"
31610 " guestfs_pvuuid (guestfs_h *g,\n"
31611 "                 const char *device);\n"
31612 "\n"
31613 msgstr ""
31614
31615 #. type: =head2
31616 #: ../src/guestfs-actions.pod:5911
31617 msgid "guestfs_pwrite"
31618 msgstr ""
31619
31620 #. type: verbatim
31621 #: ../src/guestfs-actions.pod:5913
31622 #, no-wrap
31623 msgid ""
31624 " int\n"
31625 " guestfs_pwrite (guestfs_h *g,\n"
31626 "                 const char *path,\n"
31627 "                 const char *content,\n"
31628 "                 size_t content_size,\n"
31629 "                 int64_t offset);\n"
31630 "\n"
31631 msgstr ""
31632
31633 #. type: textblock
31634 #: ../src/guestfs-actions.pod:5929
31635 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
31636 msgstr ""
31637
31638 #. type: =head2
31639 #: ../src/guestfs-actions.pod:5938
31640 msgid "guestfs_pwrite_device"
31641 msgstr ""
31642
31643 #. type: verbatim
31644 #: ../src/guestfs-actions.pod:5940
31645 #, no-wrap
31646 msgid ""
31647 " int\n"
31648 " guestfs_pwrite_device (guestfs_h *g,\n"
31649 "                        const char *device,\n"
31650 "                        const char *content,\n"
31651 "                        size_t content_size,\n"
31652 "                        int64_t offset);\n"
31653 "\n"
31654 msgstr ""
31655
31656 #. type: textblock
31657 #: ../src/guestfs-actions.pod:5955
31658 msgid "See also C<guestfs_pwrite>."
31659 msgstr ""
31660
31661 #. type: textblock
31662 #: ../src/guestfs-actions.pod:5962
31663 msgid "(Added in 1.5.20)"
31664 msgstr "(Додано у 1.5.20)"
31665
31666 #. type: =head2
31667 #: ../src/guestfs-actions.pod:5964
31668 msgid "guestfs_read_file"
31669 msgstr ""
31670
31671 #. type: verbatim
31672 #: ../src/guestfs-actions.pod:5966
31673 #, no-wrap
31674 msgid ""
31675 " char *\n"
31676 " guestfs_read_file (guestfs_h *g,\n"
31677 "                    const char *path,\n"
31678 "                    size_t *size_r);\n"
31679 "\n"
31680 msgstr ""
31681
31682 #. type: textblock
31683 #: ../src/guestfs-actions.pod:5974
31684 msgid ""
31685 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31686 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
31687 "function is limited in the total size of file that can be handled."
31688 msgstr ""
31689
31690 #. type: textblock
31691 #: ../src/guestfs-actions.pod:5986
31692 msgid "(Added in 1.0.63)"
31693 msgstr "(Додано у 1.0.63)"
31694
31695 #. type: =head2
31696 #: ../src/guestfs-actions.pod:5988
31697 msgid "guestfs_read_lines"
31698 msgstr ""
31699
31700 #. type: verbatim
31701 #: ../src/guestfs-actions.pod:5990
31702 #, no-wrap
31703 msgid ""
31704 " char **\n"
31705 " guestfs_read_lines (guestfs_h *g,\n"
31706 "                     const char *path);\n"
31707 "\n"
31708 msgstr ""
31709
31710 #. type: textblock
31711 #: ../src/guestfs-actions.pod:5999
31712 msgid ""
31713 "Note that this function cannot correctly handle binary files (specifically, "
31714 "files containing C<\\0> character which is treated as end of line).  For "
31715 "those you need to use the C<guestfs_read_file> function which has a more "
31716 "complex interface."
31717 msgstr ""
31718
31719 #. type: =head2
31720 #: ../src/guestfs-actions.pod:6010
31721 msgid "guestfs_readdir"
31722 msgstr ""
31723
31724 #. type: verbatim
31725 #: ../src/guestfs-actions.pod:6012
31726 #, no-wrap
31727 msgid ""
31728 " struct guestfs_dirent_list *\n"
31729 " guestfs_readdir (guestfs_h *g,\n"
31730 "                  const char *dir);\n"
31731 "\n"
31732 msgstr ""
31733
31734 #. type: textblock
31735 #: ../src/guestfs-actions.pod:6066
31736 msgid ""
31737 "This function is primarily intended for use by programs.  To get a simple "
31738 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
31739 "consumption, use C<guestfs_ll>."
31740 msgstr ""
31741
31742 #. type: textblock
31743 #: ../src/guestfs-actions.pod:6070
31744 msgid ""
31745 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
31746 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
31747 msgstr ""
31748
31749 #. type: =head2
31750 #: ../src/guestfs-actions.pod:6076
31751 msgid "guestfs_readlink"
31752 msgstr ""
31753
31754 #. type: verbatim
31755 #: ../src/guestfs-actions.pod:6078
31756 #, no-wrap
31757 msgid ""
31758 " char *\n"
31759 " guestfs_readlink (guestfs_h *g,\n"
31760 "                   const char *path);\n"
31761 "\n"
31762 msgstr ""
31763
31764 #. type: =head2
31765 #: ../src/guestfs-actions.pod:6089
31766 msgid "guestfs_readlinklist"
31767 msgstr ""
31768
31769 #. type: verbatim
31770 #: ../src/guestfs-actions.pod:6091
31771 #, no-wrap
31772 msgid ""
31773 " char **\n"
31774 " guestfs_readlinklist (guestfs_h *g,\n"
31775 "                       const char *path,\n"
31776 "                       char *const *names);\n"
31777 "\n"
31778 msgstr ""
31779
31780 #. type: =head2
31781 #: ../src/guestfs-actions.pod:6124
31782 msgid "guestfs_realpath"
31783 msgstr ""
31784
31785 #. type: verbatim
31786 #: ../src/guestfs-actions.pod:6126
31787 #, no-wrap
31788 msgid ""
31789 " char *\n"
31790 " guestfs_realpath (guestfs_h *g,\n"
31791 "                   const char *path);\n"
31792 "\n"
31793 msgstr ""
31794
31795 #. type: =head2
31796 #: ../src/guestfs-actions.pod:6138
31797 msgid "guestfs_removexattr"
31798 msgstr ""
31799
31800 #. type: verbatim
31801 #: ../src/guestfs-actions.pod:6140
31802 #, no-wrap
31803 msgid ""
31804 " int\n"
31805 " guestfs_removexattr (guestfs_h *g,\n"
31806 "                      const char *xattr,\n"
31807 "                      const char *path);\n"
31808 "\n"
31809 msgstr ""
31810
31811 #. type: textblock
31812 #: ../src/guestfs-actions.pod:6148
31813 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31814 msgstr ""
31815
31816 #. type: =head2
31817 #: ../src/guestfs-actions.pod:6154
31818 msgid "guestfs_resize2fs"
31819 msgstr ""
31820
31821 #. type: verbatim
31822 #: ../src/guestfs-actions.pod:6156
31823 #, no-wrap
31824 msgid ""
31825 " int\n"
31826 " guestfs_resize2fs (guestfs_h *g,\n"
31827 "                    const char *device);\n"
31828 "\n"
31829 msgstr ""
31830
31831 #. type: textblock
31832 #: ../src/guestfs-actions.pod:6163
31833 msgid ""
31834 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
31835 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
31836 "sometimes gives an error about this and sometimes not.  In any case, it is "
31837 "always safe to call C<guestfs_e2fsck_f> before calling this function."
31838 msgstr ""
31839
31840 #. type: =head2
31841 #: ../src/guestfs-actions.pod:6173
31842 msgid "guestfs_resize2fs_M"
31843 msgstr ""
31844
31845 #. type: verbatim
31846 #: ../src/guestfs-actions.pod:6175
31847 #, no-wrap
31848 msgid ""
31849 " int\n"
31850 " guestfs_resize2fs_M (guestfs_h *g,\n"
31851 "                      const char *device);\n"
31852 "\n"
31853 msgstr ""
31854
31855 #. type: textblock
31856 #: ../src/guestfs-actions.pod:6179
31857 msgid ""
31858 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
31859 "resized to its minimum size.  This works like the I<-M> option to the "
31860 "C<resize2fs> command."
31861 msgstr ""
31862
31863 #. type: textblock
31864 #: ../src/guestfs-actions.pod:6183
31865 msgid ""
31866 "To get the resulting size of the filesystem you should call "
31867 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
31868 "These two numbers, multiplied together, give the resulting size of the "
31869 "minimal filesystem in bytes."
31870 msgstr ""
31871
31872 #. type: =head2
31873 #: ../src/guestfs-actions.pod:6192
31874 msgid "guestfs_resize2fs_size"
31875 msgstr ""
31876
31877 #. type: verbatim
31878 #: ../src/guestfs-actions.pod:6194
31879 #, no-wrap
31880 msgid ""
31881 " int\n"
31882 " guestfs_resize2fs_size (guestfs_h *g,\n"
31883 "                         const char *device,\n"
31884 "                         int64_t size);\n"
31885 "\n"
31886 msgstr ""
31887
31888 #. type: textblock
31889 #: ../src/guestfs-actions.pod:6199
31890 msgid ""
31891 "This command is the same as C<guestfs_resize2fs> except that it allows you "
31892 "to specify the new size (in bytes) explicitly."
31893 msgstr ""
31894
31895 #. type: =head2
31896 #: ../src/guestfs-actions.pod:6206
31897 msgid "guestfs_rm"
31898 msgstr ""
31899
31900 #. type: verbatim
31901 #: ../src/guestfs-actions.pod:6208
31902 #, no-wrap
31903 msgid ""
31904 " int\n"
31905 " guestfs_rm (guestfs_h *g,\n"
31906 "             const char *path);\n"
31907 "\n"
31908 msgstr ""
31909
31910 #. type: =head2
31911 #: ../src/guestfs-actions.pod:6218
31912 msgid "guestfs_rm_rf"
31913 msgstr ""
31914
31915 #. type: verbatim
31916 #: ../src/guestfs-actions.pod:6220
31917 #, no-wrap
31918 msgid ""
31919 " int\n"
31920 " guestfs_rm_rf (guestfs_h *g,\n"
31921 "                const char *path);\n"
31922 "\n"
31923 msgstr ""
31924
31925 #. type: =head2
31926 #: ../src/guestfs-actions.pod:6232
31927 msgid "guestfs_rmdir"
31928 msgstr ""
31929
31930 #. type: verbatim
31931 #: ../src/guestfs-actions.pod:6234
31932 #, no-wrap
31933 msgid ""
31934 " int\n"
31935 " guestfs_rmdir (guestfs_h *g,\n"
31936 "                const char *path);\n"
31937 "\n"
31938 msgstr ""
31939
31940 #. type: =head2
31941 #: ../src/guestfs-actions.pod:6244
31942 msgid "guestfs_rmmountpoint"
31943 msgstr ""
31944
31945 #. type: verbatim
31946 #: ../src/guestfs-actions.pod:6246
31947 #, no-wrap
31948 msgid ""
31949 " int\n"
31950 " guestfs_rmmountpoint (guestfs_h *g,\n"
31951 "                       const char *exemptpath);\n"
31952 "\n"
31953 msgstr ""
31954
31955 #. type: textblock
31956 #: ../src/guestfs-actions.pod:6250
31957 msgid ""
31958 "This calls removes a mountpoint that was previously created with "
31959 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
31960 msgstr ""
31961
31962 #. type: =head2
31963 #: ../src/guestfs-actions.pod:6258
31964 msgid "guestfs_scrub_device"
31965 msgstr ""
31966
31967 #. type: verbatim
31968 #: ../src/guestfs-actions.pod:6260
31969 #, no-wrap
31970 msgid ""
31971 " int\n"
31972 " guestfs_scrub_device (guestfs_h *g,\n"
31973 "                       const char *device);\n"
31974 "\n"
31975 msgstr ""
31976
31977 #. type: textblock
31978 #: ../src/guestfs-actions.pod:6275 ../src/guestfs-actions.pod:6293
31979 #: ../src/guestfs-actions.pod:6312
31980 msgid "(Added in 1.0.52)"
31981 msgstr "(Додано у 1.0.52)"
31982
31983 #. type: =head2
31984 #: ../src/guestfs-actions.pod:6277
31985 msgid "guestfs_scrub_file"
31986 msgstr ""
31987
31988 #. type: verbatim
31989 #: ../src/guestfs-actions.pod:6279
31990 #, no-wrap
31991 msgid ""
31992 " int\n"
31993 " guestfs_scrub_file (guestfs_h *g,\n"
31994 "                     const char *file);\n"
31995 "\n"
31996 msgstr ""
31997
31998 #. type: =head2
31999 #: ../src/guestfs-actions.pod:6295
32000 msgid "guestfs_scrub_freespace"
32001 msgstr ""
32002
32003 #. type: verbatim
32004 #: ../src/guestfs-actions.pod:6297
32005 #, no-wrap
32006 msgid ""
32007 " int\n"
32008 " guestfs_scrub_freespace (guestfs_h *g,\n"
32009 "                          const char *dir);\n"
32010 "\n"
32011 msgstr ""
32012
32013 #. type: textblock
32014 #: ../src/guestfs-actions.pod:6301
32015 msgid ""
32016 "This command creates the directory C<dir> and then fills it with files until "
32017 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
32018 "and deletes them.  The intention is to scrub any free space on the partition "
32019 "containing C<dir>."
32020 msgstr ""
32021
32022 #. type: =head2
32023 #: ../src/guestfs-actions.pod:6314
32024 msgid "guestfs_set_append"
32025 msgstr ""
32026
32027 #. type: verbatim
32028 #: ../src/guestfs-actions.pod:6316
32029 #, no-wrap
32030 msgid ""
32031 " int\n"
32032 " guestfs_set_append (guestfs_h *g,\n"
32033 "                     const char *append);\n"
32034 "\n"
32035 msgstr ""
32036
32037 #. type: =head2
32038 #: ../src/guestfs-actions.pod:6333
32039 msgid "guestfs_set_attach_method"
32040 msgstr ""
32041
32042 #. type: verbatim
32043 #: ../src/guestfs-actions.pod:6335
32044 #, no-wrap
32045 msgid ""
32046 " int\n"
32047 " guestfs_set_attach_method (guestfs_h *g,\n"
32048 "                            const char *attachmethod);\n"
32049 "\n"
32050 msgstr ""
32051
32052 #. type: =head2
32053 #: ../src/guestfs-actions.pod:6363
32054 msgid "guestfs_set_autosync"
32055 msgstr ""
32056
32057 #. type: verbatim
32058 #: ../src/guestfs-actions.pod:6365
32059 #, no-wrap
32060 msgid ""
32061 " int\n"
32062 " guestfs_set_autosync (guestfs_h *g,\n"
32063 "                       int autosync);\n"
32064 "\n"
32065 msgstr ""
32066
32067 #. type: =head2
32068 #: ../src/guestfs-actions.pod:6381
32069 msgid "guestfs_set_direct"
32070 msgstr ""
32071
32072 #. type: verbatim
32073 #: ../src/guestfs-actions.pod:6383
32074 #, no-wrap
32075 msgid ""
32076 " int\n"
32077 " guestfs_set_direct (guestfs_h *g,\n"
32078 "                     int direct);\n"
32079 "\n"
32080 msgstr ""
32081
32082 #. type: textblock
32083 #: ../src/guestfs-actions.pod:6391
32084 msgid ""
32085 "One consequence of this is that log messages aren't caught by the library "
32086 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
32087 "stdout."
32088 msgstr ""
32089
32090 #. type: =head2
32091 #: ../src/guestfs-actions.pod:6404
32092 msgid "guestfs_set_e2label"
32093 msgstr ""
32094
32095 #. type: verbatim
32096 #: ../src/guestfs-actions.pod:6406
32097 #, no-wrap
32098 msgid ""
32099 " int\n"
32100 " guestfs_set_e2label (guestfs_h *g,\n"
32101 "                      const char *device,\n"
32102 "                      const char *label);\n"
32103 "\n"
32104 msgstr ""
32105
32106 #. type: textblock
32107 #: ../src/guestfs-actions.pod:6415
32108 msgid ""
32109 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
32110 "the existing label on a filesystem."
32111 msgstr ""
32112
32113 #. type: =head2
32114 #: ../src/guestfs-actions.pod:6422
32115 msgid "guestfs_set_e2uuid"
32116 msgstr ""
32117
32118 #. type: verbatim
32119 #: ../src/guestfs-actions.pod:6424
32120 #, no-wrap
32121 msgid ""
32122 " int\n"
32123 " guestfs_set_e2uuid (guestfs_h *g,\n"
32124 "                     const char *device,\n"
32125 "                     const char *uuid);\n"
32126 "\n"
32127 msgstr ""
32128
32129 #. type: textblock
32130 #: ../src/guestfs-actions.pod:6434
32131 msgid ""
32132 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
32133 "the existing UUID of a filesystem."
32134 msgstr ""
32135
32136 #. type: =head2
32137 #: ../src/guestfs-actions.pod:6441
32138 msgid "guestfs_set_memsize"
32139 msgstr ""
32140
32141 #. type: verbatim
32142 #: ../src/guestfs-actions.pod:6443
32143 #, no-wrap
32144 msgid ""
32145 " int\n"
32146 " guestfs_set_memsize (guestfs_h *g,\n"
32147 "                      int memsize);\n"
32148 "\n"
32149 msgstr ""
32150
32151 #. type: textblock
32152 #: ../src/guestfs-actions.pod:6447
32153 msgid ""
32154 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
32155 "This only has any effect if called before C<guestfs_launch>."
32156 msgstr ""
32157
32158 #. type: =head2
32159 #: ../src/guestfs-actions.pod:6462
32160 msgid "guestfs_set_network"
32161 msgstr ""
32162
32163 #. type: verbatim
32164 #: ../src/guestfs-actions.pod:6464
32165 #, no-wrap
32166 msgid ""
32167 " int\n"
32168 " guestfs_set_network (guestfs_h *g,\n"
32169 "                      int network);\n"
32170 "\n"
32171 msgstr ""
32172
32173 #. type: textblock
32174 #: ../src/guestfs-actions.pod:6474
32175 msgid ""
32176 "You must call this before calling C<guestfs_launch>, otherwise it has no "
32177 "effect."
32178 msgstr ""
32179
32180 #. type: =head2
32181 #: ../src/guestfs-actions.pod:6481
32182 msgid "guestfs_set_path"
32183 msgstr ""
32184
32185 #. type: verbatim
32186 #: ../src/guestfs-actions.pod:6483
32187 #, no-wrap
32188 msgid ""
32189 " int\n"
32190 " guestfs_set_path (guestfs_h *g,\n"
32191 "                   const char *searchpath);\n"
32192 "\n"
32193 msgstr ""
32194
32195 #. type: =head2
32196 #: ../src/guestfs-actions.pod:6498
32197 msgid "guestfs_set_pgroup"
32198 msgstr ""
32199
32200 #. type: verbatim
32201 #: ../src/guestfs-actions.pod:6500
32202 #, no-wrap
32203 msgid ""
32204 " int\n"
32205 " guestfs_set_pgroup (guestfs_h *g,\n"
32206 "                     int pgroup);\n"
32207 "\n"
32208 msgstr ""
32209
32210 #. type: =head2
32211 #: ../src/guestfs-actions.pod:6517
32212 msgid "guestfs_set_qemu"
32213 msgstr ""
32214
32215 #. type: verbatim
32216 #: ../src/guestfs-actions.pod:6519
32217 #, no-wrap
32218 msgid ""
32219 " int\n"
32220 " guestfs_set_qemu (guestfs_h *g,\n"
32221 "                   const char *qemu);\n"
32222 "\n"
32223 msgstr ""
32224
32225 #. type: =head2
32226 #: ../src/guestfs-actions.pod:6545
32227 msgid "guestfs_set_recovery_proc"
32228 msgstr ""
32229
32230 #. type: verbatim
32231 #: ../src/guestfs-actions.pod:6547
32232 #, no-wrap
32233 msgid ""
32234 " int\n"
32235 " guestfs_set_recovery_proc (guestfs_h *g,\n"
32236 "                            int recoveryproc);\n"
32237 "\n"
32238 msgstr ""
32239
32240 #. type: textblock
32241 #: ../src/guestfs-actions.pod:6551
32242 msgid ""
32243 "If this is called with the parameter C<false> then C<guestfs_launch> does "
32244 "not create a recovery process.  The purpose of the recovery process is to "
32245 "stop runaway qemu processes in the case where the main program aborts "
32246 "abruptly."
32247 msgstr ""
32248
32249 #. type: textblock
32250 #: ../src/guestfs-actions.pod:6556
32251 msgid ""
32252 "This only has any effect if called before C<guestfs_launch>, and the default "
32253 "is true."
32254 msgstr ""
32255
32256 #. type: =head2
32257 #: ../src/guestfs-actions.pod:6569
32258 msgid "guestfs_set_selinux"
32259 msgstr ""
32260
32261 #. type: verbatim
32262 #: ../src/guestfs-actions.pod:6571
32263 #, no-wrap
32264 msgid ""
32265 " int\n"
32266 " guestfs_set_selinux (guestfs_h *g,\n"
32267 "                      int selinux);\n"
32268 "\n"
32269 msgstr ""
32270
32271 #. type: =head2
32272 #: ../src/guestfs-actions.pod:6588
32273 msgid "guestfs_set_smp"
32274 msgstr ""
32275
32276 #. type: verbatim
32277 #: ../src/guestfs-actions.pod:6590
32278 #, no-wrap
32279 msgid ""
32280 " int\n"
32281 " guestfs_set_smp (guestfs_h *g,\n"
32282 "                  int smp);\n"
32283 "\n"
32284 msgstr ""
32285
32286 #. type: textblock
32287 #: ../src/guestfs-actions.pod:6598
32288 msgid "This function must be called before C<guestfs_launch>."
32289 msgstr ""
32290
32291 #. type: =head2
32292 #: ../src/guestfs-actions.pod:6604
32293 msgid "guestfs_set_trace"
32294 msgstr ""
32295
32296 #. type: verbatim
32297 #: ../src/guestfs-actions.pod:6606
32298 #, no-wrap
32299 msgid ""
32300 " int\n"
32301 " guestfs_set_trace (guestfs_h *g,\n"
32302 "                    int trace);\n"
32303 "\n"
32304 msgstr ""
32305
32306 #. type: textblock
32307 #: ../src/guestfs-actions.pod:6620
32308 msgid ""
32309 "Trace messages are normally sent to C<stderr>, unless you register a "
32310 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32311 msgstr ""
32312
32313 #. type: =head2
32314 #: ../src/guestfs-actions.pod:6628
32315 msgid "guestfs_set_verbose"
32316 msgstr ""
32317
32318 #. type: verbatim
32319 #: ../src/guestfs-actions.pod:6630
32320 #, no-wrap
32321 msgid ""
32322 " int\n"
32323 " guestfs_set_verbose (guestfs_h *g,\n"
32324 "                      int verbose);\n"
32325 "\n"
32326 msgstr ""
32327
32328 #. type: textblock
32329 #: ../src/guestfs-actions.pod:6639
32330 msgid ""
32331 "Verbose messages are normally sent to C<stderr>, unless you register a "
32332 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
32333 msgstr ""
32334
32335 #. type: =head2
32336 #: ../src/guestfs-actions.pod:6647
32337 msgid "guestfs_setcon"
32338 msgstr ""
32339
32340 #. type: verbatim
32341 #: ../src/guestfs-actions.pod:6649
32342 #, no-wrap
32343 msgid ""
32344 " int\n"
32345 " guestfs_setcon (guestfs_h *g,\n"
32346 "                 const char *context);\n"
32347 "\n"
32348 msgstr ""
32349
32350 #. type: =head2
32351 #: ../src/guestfs-actions.pod:6662
32352 msgid "guestfs_setxattr"
32353 msgstr ""
32354
32355 #. type: verbatim
32356 #: ../src/guestfs-actions.pod:6664
32357 #, no-wrap
32358 msgid ""
32359 " int\n"
32360 " guestfs_setxattr (guestfs_h *g,\n"
32361 "                   const char *xattr,\n"
32362 "                   const char *val,\n"
32363 "                   int vallen,\n"
32364 "                   const char *path);\n"
32365 "\n"
32366 msgstr ""
32367
32368 #. type: textblock
32369 #: ../src/guestfs-actions.pod:6675
32370 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
32371 msgstr ""
32372
32373 #. type: =head2
32374 #: ../src/guestfs-actions.pod:6681
32375 msgid "guestfs_sfdisk"
32376 msgstr ""
32377
32378 #. type: verbatim
32379 #: ../src/guestfs-actions.pod:6683
32380 #, no-wrap
32381 msgid ""
32382 " int\n"
32383 " guestfs_sfdisk (guestfs_h *g,\n"
32384 "                 const char *device,\n"
32385 "                 int cyls,\n"
32386 "                 int heads,\n"
32387 "                 int sectors,\n"
32388 "                 char *const *lines);\n"
32389 "\n"
32390 msgstr ""
32391
32392 #. type: textblock
32393 #: ../src/guestfs-actions.pod:6691 ../src/guestfs-actions.pod:6735
32394 #: ../src/guestfs-actions.pod:6769
32395 msgid ""
32396 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
32397 "call instead."
32398 msgstr ""
32399
32400 #. type: textblock
32401 #: ../src/guestfs-actions.pod:6718
32402 msgid ""
32403 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
32404 msgstr ""
32405
32406 #. type: =head2
32407 #: ../src/guestfs-actions.pod:6728
32408 msgid "guestfs_sfdiskM"
32409 msgstr ""
32410
32411 #. type: verbatim
32412 #: ../src/guestfs-actions.pod:6730
32413 #, no-wrap
32414 msgid ""
32415 " int\n"
32416 " guestfs_sfdiskM (guestfs_h *g,\n"
32417 "                  const char *device,\n"
32418 "                  char *const *lines);\n"
32419 "\n"
32420 msgstr ""
32421
32422 #. type: textblock
32423 #: ../src/guestfs-actions.pod:6742
32424 msgid ""
32425 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
32426 "partition sizes are specified in megabytes only (rounded to the nearest "
32427 "cylinder) and you don't need to specify the cyls, heads and sectors "
32428 "parameters which were rarely if ever used anyway."
32429 msgstr ""
32430
32431 #. type: textblock
32432 #: ../src/guestfs-actions.pod:6748
32433 msgid ""
32434 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
32435 "C<guestfs_part_disk>"
32436 msgstr ""
32437
32438 #. type: =head2
32439 #: ../src/guestfs-actions.pod:6758
32440 msgid "guestfs_sfdisk_N"
32441 msgstr ""
32442
32443 #. type: verbatim
32444 #: ../src/guestfs-actions.pod:6760
32445 #, no-wrap
32446 msgid ""
32447 " int\n"
32448 " guestfs_sfdisk_N (guestfs_h *g,\n"
32449 "                   const char *device,\n"
32450 "                   int partnum,\n"
32451 "                   int cyls,\n"
32452 "                   int heads,\n"
32453 "                   int sectors,\n"
32454 "                   const char *line);\n"
32455 "\n"
32456 msgstr ""
32457
32458 #. type: textblock
32459 #: ../src/guestfs-actions.pod:6779
32460 msgid ""
32461 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
32462 "for the cyls/heads/sectors parameters."
32463 msgstr ""
32464
32465 #. type: textblock
32466 #: ../src/guestfs-actions.pod:6782
32467 msgid "See also: C<guestfs_part_add>"
32468 msgstr ""
32469
32470 #. type: =head2
32471 #: ../src/guestfs-actions.pod:6791
32472 msgid "guestfs_sfdisk_disk_geometry"
32473 msgstr ""
32474
32475 #. type: verbatim
32476 #: ../src/guestfs-actions.pod:6793
32477 #, no-wrap
32478 msgid ""
32479 " char *\n"
32480 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
32481 "                               const char *device);\n"
32482 "\n"
32483 msgstr ""
32484
32485 #. type: textblock
32486 #: ../src/guestfs-actions.pod:6797
32487 msgid ""
32488 "This displays the disk geometry of C<device> read from the partition table.  "
32489 "Especially in the case where the underlying block device has been resized, "
32490 "this can be different from the kernel's idea of the geometry (see "
32491 "C<guestfs_sfdisk_kernel_geometry>)."
32492 msgstr ""
32493
32494 #. type: =head2
32495 #: ../src/guestfs-actions.pod:6810
32496 msgid "guestfs_sfdisk_kernel_geometry"
32497 msgstr ""
32498
32499 #. type: verbatim
32500 #: ../src/guestfs-actions.pod:6812
32501 #, no-wrap
32502 msgid ""
32503 " char *\n"
32504 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
32505 "                                 const char *device);\n"
32506 "\n"
32507 msgstr ""
32508
32509 #. type: =head2
32510 #: ../src/guestfs-actions.pod:6826
32511 msgid "guestfs_sfdisk_l"
32512 msgstr ""
32513
32514 #. type: verbatim
32515 #: ../src/guestfs-actions.pod:6828
32516 #, no-wrap
32517 msgid ""
32518 " char *\n"
32519 " guestfs_sfdisk_l (guestfs_h *g,\n"
32520 "                   const char *device);\n"
32521 "\n"
32522 msgstr ""
32523
32524 #. type: textblock
32525 #: ../src/guestfs-actions.pod:6832
32526 msgid ""
32527 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
32528 "call instead."
32529 msgstr ""
32530
32531 #. type: textblock
32532 #: ../src/guestfs-actions.pod:6843
32533 msgid "See also: C<guestfs_part_list>"
32534 msgstr ""
32535
32536 #. type: =head2
32537 #: ../src/guestfs-actions.pod:6850
32538 msgid "guestfs_sh"
32539 msgstr ""
32540
32541 #. type: verbatim
32542 #: ../src/guestfs-actions.pod:6852
32543 #, no-wrap
32544 msgid ""
32545 " char *\n"
32546 " guestfs_sh (guestfs_h *g,\n"
32547 "             const char *command);\n"
32548 "\n"
32549 msgstr ""
32550
32551 #. type: textblock
32552 #: ../src/guestfs-actions.pod:6859
32553 msgid "This is like C<guestfs_command>, but passes the command to:"
32554 msgstr ""
32555
32556 #. type: textblock
32557 #: ../src/guestfs-actions.pod:6867
32558 msgid "All the provisos about C<guestfs_command> apply to this call."
32559 msgstr ""
32560
32561 #. type: =head2
32562 #: ../src/guestfs-actions.pod:6874
32563 msgid "guestfs_sh_lines"
32564 msgstr ""
32565
32566 #. type: verbatim
32567 #: ../src/guestfs-actions.pod:6876
32568 #, no-wrap
32569 msgid ""
32570 " char **\n"
32571 " guestfs_sh_lines (guestfs_h *g,\n"
32572 "                   const char *command);\n"
32573 "\n"
32574 msgstr ""
32575
32576 #. type: textblock
32577 #: ../src/guestfs-actions.pod:6880
32578 msgid ""
32579 "This is the same as C<guestfs_sh>, but splits the result into a list of "
32580 "lines."
32581 msgstr ""
32582
32583 #. type: textblock
32584 #: ../src/guestfs-actions.pod:6883
32585 msgid "See also: C<guestfs_command_lines>"
32586 msgstr ""
32587
32588 #. type: =head2
32589 #: ../src/guestfs-actions.pod:6891
32590 msgid "guestfs_sleep"
32591 msgstr ""
32592
32593 #. type: verbatim
32594 #: ../src/guestfs-actions.pod:6893
32595 #, no-wrap
32596 msgid ""
32597 " int\n"
32598 " guestfs_sleep (guestfs_h *g,\n"
32599 "                int secs);\n"
32600 "\n"
32601 msgstr ""
32602
32603 #. type: textblock
32604 #: ../src/guestfs-actions.pod:6901
32605 msgid "(Added in 1.0.41)"
32606 msgstr "(Додано у 1.0.41)"
32607
32608 #. type: =head2
32609 #: ../src/guestfs-actions.pod:6903 ../src/guestfs-structs.pod:109
32610 msgid "guestfs_stat"
32611 msgstr ""
32612
32613 #. type: verbatim
32614 #: ../src/guestfs-actions.pod:6905
32615 #, no-wrap
32616 msgid ""
32617 " struct guestfs_stat *\n"
32618 " guestfs_stat (guestfs_h *g,\n"
32619 "               const char *path);\n"
32620 "\n"
32621 msgstr ""
32622
32623 #. type: =head2
32624 #: ../src/guestfs-actions.pod:6919 ../src/guestfs-structs.pod:135
32625 msgid "guestfs_statvfs"
32626 msgstr ""
32627
32628 #. type: verbatim
32629 #: ../src/guestfs-actions.pod:6921
32630 #, no-wrap
32631 msgid ""
32632 " struct guestfs_statvfs *\n"
32633 " guestfs_statvfs (guestfs_h *g,\n"
32634 "                  const char *path);\n"
32635 "\n"
32636 msgstr ""
32637
32638 #. type: textblock
32639 #: ../src/guestfs-actions.pod:6931
32640 msgid ""
32641 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
32642 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
32643 msgstr ""
32644
32645 #. type: =head2
32646 #: ../src/guestfs-actions.pod:6937
32647 msgid "guestfs_strings"
32648 msgstr ""
32649
32650 #. type: verbatim
32651 #: ../src/guestfs-actions.pod:6939
32652 #, no-wrap
32653 msgid ""
32654 " char **\n"
32655 " guestfs_strings (guestfs_h *g,\n"
32656 "                  const char *path);\n"
32657 "\n"
32658 msgstr ""
32659
32660 #. type: =head2
32661 #: ../src/guestfs-actions.pod:6955
32662 msgid "guestfs_strings_e"
32663 msgstr ""
32664
32665 #. type: verbatim
32666 #: ../src/guestfs-actions.pod:6957
32667 #, no-wrap
32668 msgid ""
32669 " char **\n"
32670 " guestfs_strings_e (guestfs_h *g,\n"
32671 "                    const char *encoding,\n"
32672 "                    const char *path);\n"
32673 "\n"
32674 msgstr ""
32675
32676 #. type: textblock
32677 #: ../src/guestfs-actions.pod:6962
32678 msgid ""
32679 "This is like the C<guestfs_strings> command, but allows you to specify the "
32680 "encoding of strings that are looked for in the source file C<path>."
32681 msgstr ""
32682
32683 #. type: textblock
32684 #: ../src/guestfs-actions.pod:6972
32685 msgid ""
32686 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32687 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32688 msgstr ""
32689
32690 #. type: =head2
32691 #: ../src/guestfs-actions.pod:7010
32692 msgid "guestfs_swapoff_device"
32693 msgstr ""
32694
32695 #. type: verbatim
32696 #: ../src/guestfs-actions.pod:7012
32697 #, no-wrap
32698 msgid ""
32699 " int\n"
32700 " guestfs_swapoff_device (guestfs_h *g,\n"
32701 "                         const char *device);\n"
32702 "\n"
32703 msgstr ""
32704
32705 #. type: textblock
32706 #: ../src/guestfs-actions.pod:7016
32707 msgid ""
32708 "This command disables the libguestfs appliance swap device or partition "
32709 "named C<device>.  See C<guestfs_swapon_device>."
32710 msgstr ""
32711
32712 #. type: =head2
32713 #: ../src/guestfs-actions.pod:7024
32714 msgid "guestfs_swapoff_file"
32715 msgstr ""
32716
32717 #. type: verbatim
32718 #: ../src/guestfs-actions.pod:7026
32719 #, no-wrap
32720 msgid ""
32721 " int\n"
32722 " guestfs_swapoff_file (guestfs_h *g,\n"
32723 "                       const char *file);\n"
32724 "\n"
32725 msgstr ""
32726
32727 #. type: =head2
32728 #: ../src/guestfs-actions.pod:7036
32729 msgid "guestfs_swapoff_label"
32730 msgstr ""
32731
32732 #. type: verbatim
32733 #: ../src/guestfs-actions.pod:7038
32734 #, no-wrap
32735 msgid ""
32736 " int\n"
32737 " guestfs_swapoff_label (guestfs_h *g,\n"
32738 "                        const char *label);\n"
32739 "\n"
32740 msgstr ""
32741
32742 #. type: =head2
32743 #: ../src/guestfs-actions.pod:7049
32744 msgid "guestfs_swapoff_uuid"
32745 msgstr ""
32746
32747 #. type: verbatim
32748 #: ../src/guestfs-actions.pod:7051
32749 #, no-wrap
32750 msgid ""
32751 " int\n"
32752 " guestfs_swapoff_uuid (guestfs_h *g,\n"
32753 "                       const char *uuid);\n"
32754 "\n"
32755 msgstr ""
32756
32757 #. type: =head2
32758 #: ../src/guestfs-actions.pod:7062
32759 msgid "guestfs_swapon_device"
32760 msgstr ""
32761
32762 #. type: verbatim
32763 #: ../src/guestfs-actions.pod:7064
32764 #, no-wrap
32765 msgid ""
32766 " int\n"
32767 " guestfs_swapon_device (guestfs_h *g,\n"
32768 "                        const char *device);\n"
32769 "\n"
32770 msgstr ""
32771
32772 #. type: textblock
32773 #: ../src/guestfs-actions.pod:7068
32774 msgid ""
32775 "This command enables the libguestfs appliance to use the swap device or "
32776 "partition named C<device>.  The increased memory is made available for all "
32777 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
32778 msgstr ""
32779
32780 #. type: =head2
32781 #: ../src/guestfs-actions.pod:7084
32782 msgid "guestfs_swapon_file"
32783 msgstr ""
32784
32785 #. type: verbatim
32786 #: ../src/guestfs-actions.pod:7086
32787 #, no-wrap
32788 msgid ""
32789 " int\n"
32790 " guestfs_swapon_file (guestfs_h *g,\n"
32791 "                      const char *file);\n"
32792 "\n"
32793 msgstr ""
32794
32795 #. type: textblock
32796 #: ../src/guestfs-actions.pod:7090
32797 msgid ""
32798 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
32799 "notes."
32800 msgstr ""
32801
32802 #. type: =head2
32803 #: ../src/guestfs-actions.pod:7097
32804 msgid "guestfs_swapon_label"
32805 msgstr ""
32806
32807 #. type: verbatim
32808 #: ../src/guestfs-actions.pod:7099
32809 #, no-wrap
32810 msgid ""
32811 " int\n"
32812 " guestfs_swapon_label (guestfs_h *g,\n"
32813 "                       const char *label);\n"
32814 "\n"
32815 msgstr ""
32816
32817 #. type: textblock
32818 #: ../src/guestfs-actions.pod:7103
32819 msgid ""
32820 "This command enables swap to a labeled swap partition.  See "
32821 "C<guestfs_swapon_device> for other notes."
32822 msgstr ""
32823
32824 #. type: =head2
32825 #: ../src/guestfs-actions.pod:7110
32826 msgid "guestfs_swapon_uuid"
32827 msgstr ""
32828
32829 #. type: verbatim
32830 #: ../src/guestfs-actions.pod:7112
32831 #, no-wrap
32832 msgid ""
32833 " int\n"
32834 " guestfs_swapon_uuid (guestfs_h *g,\n"
32835 "                      const char *uuid);\n"
32836 "\n"
32837 msgstr ""
32838
32839 #. type: textblock
32840 #: ../src/guestfs-actions.pod:7116
32841 msgid ""
32842 "This command enables swap to a swap partition with the given UUID.  See "
32843 "C<guestfs_swapon_device> for other notes."
32844 msgstr ""
32845
32846 #. type: =head2
32847 #: ../src/guestfs-actions.pod:7123
32848 msgid "guestfs_sync"
32849 msgstr ""
32850
32851 #. type: verbatim
32852 #: ../src/guestfs-actions.pod:7125
32853 #, no-wrap
32854 msgid ""
32855 " int\n"
32856 " guestfs_sync (guestfs_h *g);\n"
32857 "\n"
32858 msgstr ""
32859
32860 #. type: =head2
32861 #: ../src/guestfs-actions.pod:7138
32862 msgid "guestfs_tail"
32863 msgstr ""
32864
32865 #. type: verbatim
32866 #: ../src/guestfs-actions.pod:7140
32867 #, no-wrap
32868 msgid ""
32869 " char **\n"
32870 " guestfs_tail (guestfs_h *g,\n"
32871 "               const char *path);\n"
32872 "\n"
32873 msgstr ""
32874
32875 #. type: =head2
32876 #: ../src/guestfs-actions.pod:7156
32877 msgid "guestfs_tail_n"
32878 msgstr ""
32879
32880 #. type: verbatim
32881 #: ../src/guestfs-actions.pod:7158
32882 #, no-wrap
32883 msgid ""
32884 " char **\n"
32885 " guestfs_tail_n (guestfs_h *g,\n"
32886 "                 int nrlines,\n"
32887 "                 const char *path);\n"
32888 "\n"
32889 msgstr ""
32890
32891 #. type: =head2
32892 #: ../src/guestfs-actions.pod:7180
32893 msgid "guestfs_tar_in"
32894 msgstr ""
32895
32896 #. type: verbatim
32897 #: ../src/guestfs-actions.pod:7182
32898 #, no-wrap
32899 msgid ""
32900 " int\n"
32901 " guestfs_tar_in (guestfs_h *g,\n"
32902 "                 const char *tarfile,\n"
32903 "                 const char *directory);\n"
32904 "\n"
32905 msgstr ""
32906
32907 #. type: textblock
32908 #: ../src/guestfs-actions.pod:7190
32909 msgid ""
32910 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
32911 msgstr ""
32912
32913 #. type: textblock
32914 #: ../src/guestfs-actions.pod:7195 ../src/guestfs-actions.pod:7212
32915 #: ../src/guestfs-actions.pod:7228 ../src/guestfs-actions.pod:7244
32916 msgid "(Added in 1.0.3)"
32917 msgstr "(Додано у 1.0.3)"
32918
32919 #. type: =head2
32920 #: ../src/guestfs-actions.pod:7197
32921 msgid "guestfs_tar_out"
32922 msgstr ""
32923
32924 #. type: verbatim
32925 #: ../src/guestfs-actions.pod:7199
32926 #, no-wrap
32927 msgid ""
32928 " int\n"
32929 " guestfs_tar_out (guestfs_h *g,\n"
32930 "                  const char *directory,\n"
32931 "                  const char *tarfile);\n"
32932 "\n"
32933 msgstr ""
32934
32935 #. type: textblock
32936 #: ../src/guestfs-actions.pod:7207
32937 msgid ""
32938 "To download a compressed tarball, use C<guestfs_tgz_out> or "
32939 "C<guestfs_txz_out>."
32940 msgstr ""
32941
32942 #. type: =head2
32943 #: ../src/guestfs-actions.pod:7214
32944 msgid "guestfs_tgz_in"
32945 msgstr ""
32946
32947 #. type: verbatim
32948 #: ../src/guestfs-actions.pod:7216
32949 #, no-wrap
32950 msgid ""
32951 " int\n"
32952 " guestfs_tgz_in (guestfs_h *g,\n"
32953 "                 const char *tarball,\n"
32954 "                 const char *directory);\n"
32955 "\n"
32956 msgstr ""
32957
32958 #. type: textblock
32959 #: ../src/guestfs-actions.pod:7224
32960 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
32961 msgstr ""
32962
32963 #. type: =head2
32964 #: ../src/guestfs-actions.pod:7230
32965 msgid "guestfs_tgz_out"
32966 msgstr ""
32967
32968 #. type: verbatim
32969 #: ../src/guestfs-actions.pod:7232
32970 #, no-wrap
32971 msgid ""
32972 " int\n"
32973 " guestfs_tgz_out (guestfs_h *g,\n"
32974 "                  const char *directory,\n"
32975 "                  const char *tarball);\n"
32976 "\n"
32977 msgstr ""
32978
32979 #. type: textblock
32980 #: ../src/guestfs-actions.pod:7240
32981 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
32982 msgstr ""
32983
32984 #. type: =head2
32985 #: ../src/guestfs-actions.pod:7246
32986 msgid "guestfs_touch"
32987 msgstr ""
32988
32989 #. type: verbatim
32990 #: ../src/guestfs-actions.pod:7248
32991 #, no-wrap
32992 msgid ""
32993 " int\n"
32994 " guestfs_touch (guestfs_h *g,\n"
32995 "                const char *path);\n"
32996 "\n"
32997 msgstr ""
32998
32999 #. type: =head2
33000 #: ../src/guestfs-actions.pod:7263
33001 msgid "guestfs_truncate"
33002 msgstr ""
33003
33004 #. type: verbatim
33005 #: ../src/guestfs-actions.pod:7265
33006 #, no-wrap
33007 msgid ""
33008 " int\n"
33009 " guestfs_truncate (guestfs_h *g,\n"
33010 "                   const char *path);\n"
33011 "\n"
33012 msgstr ""
33013
33014 #. type: =head2
33015 #: ../src/guestfs-actions.pod:7276
33016 msgid "guestfs_truncate_size"
33017 msgstr ""
33018
33019 #. type: verbatim
33020 #: ../src/guestfs-actions.pod:7278
33021 #, no-wrap
33022 msgid ""
33023 " int\n"
33024 " guestfs_truncate_size (guestfs_h *g,\n"
33025 "                        const char *path,\n"
33026 "                        int64_t size);\n"
33027 "\n"
33028 msgstr ""
33029
33030 #. type: textblock
33031 #: ../src/guestfs-actions.pod:7286
33032 msgid ""
33033 "If the current file size is less than C<size> then the file is extended to "
33034 "the required size with zero bytes.  This creates a sparse file (ie. disk "
33035 "blocks are not allocated for the file until you write to it).  To create a "
33036 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
33037 msgstr ""
33038
33039 #. type: =head2
33040 #: ../src/guestfs-actions.pod:7296
33041 msgid "guestfs_tune2fs_l"
33042 msgstr ""
33043
33044 #. type: verbatim
33045 #: ../src/guestfs-actions.pod:7298
33046 #, no-wrap
33047 msgid ""
33048 " char **\n"
33049 " guestfs_tune2fs_l (guestfs_h *g,\n"
33050 "                    const char *device);\n"
33051 "\n"
33052 msgstr ""
33053
33054 #. type: =head2
33055 #: ../src/guestfs-actions.pod:7318
33056 msgid "guestfs_txz_in"
33057 msgstr ""
33058
33059 #. type: verbatim
33060 #: ../src/guestfs-actions.pod:7320
33061 #, no-wrap
33062 msgid ""
33063 " int\n"
33064 " guestfs_txz_in (guestfs_h *g,\n"
33065 "                 const char *tarball,\n"
33066 "                 const char *directory);\n"
33067 "\n"
33068 msgstr ""
33069
33070 #. type: =head2
33071 #: ../src/guestfs-actions.pod:7332
33072 msgid "guestfs_txz_out"
33073 msgstr ""
33074
33075 #. type: verbatim
33076 #: ../src/guestfs-actions.pod:7334
33077 #, no-wrap
33078 msgid ""
33079 " int\n"
33080 " guestfs_txz_out (guestfs_h *g,\n"
33081 "                  const char *directory,\n"
33082 "                  const char *tarball);\n"
33083 "\n"
33084 msgstr ""
33085
33086 #. type: =head2
33087 #: ../src/guestfs-actions.pod:7346
33088 msgid "guestfs_umask"
33089 msgstr ""
33090
33091 #. type: verbatim
33092 #: ../src/guestfs-actions.pod:7348
33093 #, no-wrap
33094 msgid ""
33095 " int\n"
33096 " guestfs_umask (guestfs_h *g,\n"
33097 "                int mask);\n"
33098 "\n"
33099 msgstr ""
33100
33101 #. type: textblock
33102 #: ../src/guestfs-actions.pod:7364
33103 msgid ""
33104 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
33105 "C<guestfs_mkdir>."
33106 msgstr ""
33107
33108 #. type: =head2
33109 #: ../src/guestfs-actions.pod:7373
33110 msgid "guestfs_umount"
33111 msgstr ""
33112
33113 #. type: verbatim
33114 #: ../src/guestfs-actions.pod:7375
33115 #, no-wrap
33116 msgid ""
33117 " int\n"
33118 " guestfs_umount (guestfs_h *g,\n"
33119 "                 const char *pathordevice);\n"
33120 "\n"
33121 msgstr ""
33122
33123 #. type: =head2
33124 #: ../src/guestfs-actions.pod:7387
33125 msgid "guestfs_umount_all"
33126 msgstr ""
33127
33128 #. type: verbatim
33129 #: ../src/guestfs-actions.pod:7389
33130 #, no-wrap
33131 msgid ""
33132 " int\n"
33133 " guestfs_umount_all (guestfs_h *g);\n"
33134 "\n"
33135 msgstr ""
33136
33137 #. type: =head2
33138 #: ../src/guestfs-actions.pod:7400
33139 msgid "guestfs_upload"
33140 msgstr ""
33141
33142 #. type: verbatim
33143 #: ../src/guestfs-actions.pod:7402
33144 #, no-wrap
33145 msgid ""
33146 " int\n"
33147 " guestfs_upload (guestfs_h *g,\n"
33148 "                 const char *filename,\n"
33149 "                 const char *remotefilename);\n"
33150 "\n"
33151 msgstr ""
33152
33153 #. type: textblock
33154 #: ../src/guestfs-actions.pod:7412
33155 msgid "See also C<guestfs_download>."
33156 msgstr ""
33157
33158 #. type: =head2
33159 #: ../src/guestfs-actions.pod:7423
33160 msgid "guestfs_upload_offset"
33161 msgstr ""
33162
33163 #. type: verbatim
33164 #: ../src/guestfs-actions.pod:7425
33165 #, no-wrap
33166 msgid ""
33167 " int\n"
33168 " guestfs_upload_offset (guestfs_h *g,\n"
33169 "                        const char *filename,\n"
33170 "                        const char *remotefilename,\n"
33171 "                        int64_t offset);\n"
33172 "\n"
33173 msgstr ""
33174
33175 #. type: textblock
33176 #: ../src/guestfs-actions.pod:7441
33177 msgid ""
33178 "Note that there is no limit on the amount of data that can be uploaded with "
33179 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
33180 "full amount unless an error occurs."
33181 msgstr ""
33182
33183 #. type: textblock
33184 #: ../src/guestfs-actions.pod:7446
33185 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
33186 msgstr ""
33187
33188 #. type: =head2
33189 #: ../src/guestfs-actions.pod:7457
33190 msgid "guestfs_utimens"
33191 msgstr ""
33192
33193 #. type: verbatim
33194 #: ../src/guestfs-actions.pod:7459
33195 #, no-wrap
33196 msgid ""
33197 " int\n"
33198 " guestfs_utimens (guestfs_h *g,\n"
33199 "                  const char *path,\n"
33200 "                  int64_t atsecs,\n"
33201 "                  int64_t atnsecs,\n"
33202 "                  int64_t mtsecs,\n"
33203 "                  int64_t mtnsecs);\n"
33204 "\n"
33205 msgstr ""
33206
33207 #. type: =head2
33208 #: ../src/guestfs-actions.pod:7488 ../src/guestfs-structs.pod:175
33209 msgid "guestfs_version"
33210 msgstr ""
33211
33212 #. type: verbatim
33213 #: ../src/guestfs-actions.pod:7490
33214 #, no-wrap
33215 msgid ""
33216 " struct guestfs_version *\n"
33217 " guestfs_version (guestfs_h *g);\n"
33218 "\n"
33219 msgstr ""
33220
33221 #. type: textblock
33222 #: ../src/guestfs-actions.pod:7518
33223 msgid ""
33224 "I<Note:> Don't use this call to test for availability of features.  In "
33225 "enterprise distributions we backport features from later versions into "
33226 "earlier versions, making this an unreliable way to test for features.  Use "
33227 "C<guestfs_available> instead."
33228 msgstr ""
33229
33230 #. type: textblock
33231 #: ../src/guestfs-actions.pod:7524
33232 msgid ""
33233 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
33234 "error.  I<The caller must call C<guestfs_free_version> after use>."
33235 msgstr ""
33236
33237 #. type: textblock
33238 #: ../src/guestfs-actions.pod:7528
33239 msgid "(Added in 1.0.58)"
33240 msgstr "(Додано у 1.0.58)"
33241
33242 #. type: =head2
33243 #: ../src/guestfs-actions.pod:7530
33244 msgid "guestfs_vfs_label"
33245 msgstr ""
33246
33247 #. type: verbatim
33248 #: ../src/guestfs-actions.pod:7532
33249 #, no-wrap
33250 msgid ""
33251 " char *\n"
33252 " guestfs_vfs_label (guestfs_h *g,\n"
33253 "                    const char *device);\n"
33254 "\n"
33255 msgstr ""
33256
33257 #. type: textblock
33258 #: ../src/guestfs-actions.pod:7541
33259 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
33260 msgstr ""
33261
33262 #. type: textblock
33263 #: ../src/guestfs-actions.pod:7546 ../src/guestfs-actions.pod:7583
33264 msgid "(Added in 1.3.18)"
33265 msgstr "(Додано у 1.3.18)"
33266
33267 #. type: =head2
33268 #: ../src/guestfs-actions.pod:7548
33269 msgid "guestfs_vfs_type"
33270 msgstr ""
33271
33272 #. type: verbatim
33273 #: ../src/guestfs-actions.pod:7550
33274 #, no-wrap
33275 msgid ""
33276 " char *\n"
33277 " guestfs_vfs_type (guestfs_h *g,\n"
33278 "                   const char *device);\n"
33279 "\n"
33280 msgstr ""
33281
33282 #. type: =head2
33283 #: ../src/guestfs-actions.pod:7567
33284 msgid "guestfs_vfs_uuid"
33285 msgstr ""
33286
33287 #. type: verbatim
33288 #: ../src/guestfs-actions.pod:7569
33289 #, no-wrap
33290 msgid ""
33291 " char *\n"
33292 " guestfs_vfs_uuid (guestfs_h *g,\n"
33293 "                   const char *device);\n"
33294 "\n"
33295 msgstr ""
33296
33297 #. type: textblock
33298 #: ../src/guestfs-actions.pod:7578
33299 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
33300 msgstr ""
33301
33302 #. type: =head2
33303 #: ../src/guestfs-actions.pod:7585
33304 msgid "guestfs_vg_activate"
33305 msgstr ""
33306
33307 #. type: verbatim
33308 #: ../src/guestfs-actions.pod:7587
33309 #, no-wrap
33310 msgid ""
33311 " int\n"
33312 " guestfs_vg_activate (guestfs_h *g,\n"
33313 "                      int activate,\n"
33314 "                      char *const *volgroups);\n"
33315 "\n"
33316 msgstr ""
33317
33318 #. type: =head2
33319 #: ../src/guestfs-actions.pod:7604
33320 msgid "guestfs_vg_activate_all"
33321 msgstr ""
33322
33323 #. type: verbatim
33324 #: ../src/guestfs-actions.pod:7606
33325 #, no-wrap
33326 msgid ""
33327 " int\n"
33328 " guestfs_vg_activate_all (guestfs_h *g,\n"
33329 "                          int activate);\n"
33330 "\n"
33331 msgstr ""
33332
33333 #. type: =head2
33334 #: ../src/guestfs-actions.pod:7619
33335 msgid "guestfs_vgcreate"
33336 msgstr ""
33337
33338 #. type: verbatim
33339 #: ../src/guestfs-actions.pod:7621
33340 #, no-wrap
33341 msgid ""
33342 " int\n"
33343 " guestfs_vgcreate (guestfs_h *g,\n"
33344 "                   const char *volgroup,\n"
33345 "                   char *const *physvols);\n"
33346 "\n"
33347 msgstr ""
33348
33349 #. type: =head2
33350 #: ../src/guestfs-actions.pod:7633
33351 msgid "guestfs_vglvuuids"
33352 msgstr ""
33353
33354 #. type: verbatim
33355 #: ../src/guestfs-actions.pod:7635
33356 #, no-wrap
33357 msgid ""
33358 " char **\n"
33359 " guestfs_vglvuuids (guestfs_h *g,\n"
33360 "                    const char *vgname);\n"
33361 "\n"
33362 msgstr ""
33363
33364 #. type: textblock
33365 #: ../src/guestfs-actions.pod:7642
33366 msgid ""
33367 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
33368 "associate logical volumes and volume groups."
33369 msgstr ""
33370
33371 #. type: textblock
33372 #: ../src/guestfs-actions.pod:7645
33373 msgid "See also C<guestfs_vgpvuuids>."
33374 msgstr ""
33375
33376 #. type: =head2
33377 #: ../src/guestfs-actions.pod:7653
33378 msgid "guestfs_vgpvuuids"
33379 msgstr ""
33380
33381 #. type: verbatim
33382 #: ../src/guestfs-actions.pod:7655
33383 #, no-wrap
33384 msgid ""
33385 " char **\n"
33386 " guestfs_vgpvuuids (guestfs_h *g,\n"
33387 "                    const char *vgname);\n"
33388 "\n"
33389 msgstr ""
33390
33391 #. type: textblock
33392 #: ../src/guestfs-actions.pod:7662
33393 msgid ""
33394 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
33395 "associate physical volumes and volume groups."
33396 msgstr ""
33397
33398 #. type: textblock
33399 #: ../src/guestfs-actions.pod:7665
33400 msgid "See also C<guestfs_vglvuuids>."
33401 msgstr ""
33402
33403 #. type: =head2
33404 #: ../src/guestfs-actions.pod:7673
33405 msgid "guestfs_vgremove"
33406 msgstr ""
33407
33408 #. type: verbatim
33409 #: ../src/guestfs-actions.pod:7675
33410 #, no-wrap
33411 msgid ""
33412 " int\n"
33413 " guestfs_vgremove (guestfs_h *g,\n"
33414 "                   const char *vgname);\n"
33415 "\n"
33416 msgstr ""
33417
33418 #. type: =head2
33419 #: ../src/guestfs-actions.pod:7688
33420 msgid "guestfs_vgrename"
33421 msgstr ""
33422
33423 #. type: verbatim
33424 #: ../src/guestfs-actions.pod:7690
33425 #, no-wrap
33426 msgid ""
33427 " int\n"
33428 " guestfs_vgrename (guestfs_h *g,\n"
33429 "                   const char *volgroup,\n"
33430 "                   const char *newvolgroup);\n"
33431 "\n"
33432 msgstr ""
33433
33434 #. type: =head2
33435 #: ../src/guestfs-actions.pod:7701
33436 msgid "guestfs_vgs"
33437 msgstr ""
33438
33439 #. type: verbatim
33440 #: ../src/guestfs-actions.pod:7703
33441 #, no-wrap
33442 msgid ""
33443 " char **\n"
33444 " guestfs_vgs (guestfs_h *g);\n"
33445 "\n"
33446 msgstr ""
33447
33448 #. type: textblock
33449 #: ../src/guestfs-actions.pod:7712
33450 msgid "See also C<guestfs_vgs_full>."
33451 msgstr ""
33452
33453 #. type: =head2
33454 #: ../src/guestfs-actions.pod:7720
33455 msgid "guestfs_vgs_full"
33456 msgstr ""
33457
33458 #. type: verbatim
33459 #: ../src/guestfs-actions.pod:7722
33460 #, no-wrap
33461 msgid ""
33462 " struct guestfs_lvm_vg_list *\n"
33463 " guestfs_vgs_full (guestfs_h *g);\n"
33464 "\n"
33465 msgstr ""
33466
33467 #. type: textblock
33468 #: ../src/guestfs-actions.pod:7728
33469 msgid ""
33470 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
33471 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
33472 msgstr ""
33473
33474 #. type: =head2
33475 #: ../src/guestfs-actions.pod:7734
33476 msgid "guestfs_vgscan"
33477 msgstr ""
33478
33479 #. type: verbatim
33480 #: ../src/guestfs-actions.pod:7736
33481 #, no-wrap
33482 msgid ""
33483 " int\n"
33484 " guestfs_vgscan (guestfs_h *g);\n"
33485 "\n"
33486 msgstr ""
33487
33488 #. type: =head2
33489 #: ../src/guestfs-actions.pod:7746
33490 msgid "guestfs_vguuid"
33491 msgstr ""
33492
33493 #. type: verbatim
33494 #: ../src/guestfs-actions.pod:7748
33495 #, no-wrap
33496 msgid ""
33497 " char *\n"
33498 " guestfs_vguuid (guestfs_h *g,\n"
33499 "                 const char *vgname);\n"
33500 "\n"
33501 msgstr ""
33502
33503 #. type: =head2
33504 #: ../src/guestfs-actions.pod:7759
33505 msgid "guestfs_wait_ready"
33506 msgstr ""
33507
33508 #. type: verbatim
33509 #: ../src/guestfs-actions.pod:7761
33510 #, no-wrap
33511 msgid ""
33512 " int\n"
33513 " guestfs_wait_ready (guestfs_h *g);\n"
33514 "\n"
33515 msgstr ""
33516
33517 #. type: textblock
33518 #: ../src/guestfs-actions.pod:7764
33519 msgid ""
33520 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
33521 "instead."
33522 msgstr ""
33523
33524 #. type: textblock
33525 #: ../src/guestfs-actions.pod:7771
33526 msgid "This function is a no op."
33527 msgstr ""
33528
33529 #. type: textblock
33530 #: ../src/guestfs-actions.pod:7773
33531 msgid ""
33532 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
33533 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
33534 "is no longer necessary because C<guestfs_launch> now does the waiting."
33535 msgstr ""
33536
33537 #. type: textblock
33538 #: ../src/guestfs-actions.pod:7778
33539 msgid ""
33540 "If you see any calls to this function in code then you can just remove them, "
33541 "unless you want to retain compatibility with older versions of the API."
33542 msgstr ""
33543
33544 #. type: =head2
33545 #: ../src/guestfs-actions.pod:7786
33546 msgid "guestfs_wc_c"
33547 msgstr ""
33548
33549 #. type: verbatim
33550 #: ../src/guestfs-actions.pod:7788
33551 #, no-wrap
33552 msgid ""
33553 " int\n"
33554 " guestfs_wc_c (guestfs_h *g,\n"
33555 "               const char *path);\n"
33556 "\n"
33557 msgstr ""
33558
33559 #. type: =head2
33560 #: ../src/guestfs-actions.pod:7799
33561 msgid "guestfs_wc_l"
33562 msgstr ""
33563
33564 #. type: verbatim
33565 #: ../src/guestfs-actions.pod:7801
33566 #, no-wrap
33567 msgid ""
33568 " int\n"
33569 " guestfs_wc_l (guestfs_h *g,\n"
33570 "               const char *path);\n"
33571 "\n"
33572 msgstr ""
33573
33574 #. type: =head2
33575 #: ../src/guestfs-actions.pod:7812
33576 msgid "guestfs_wc_w"
33577 msgstr ""
33578
33579 #. type: verbatim
33580 #: ../src/guestfs-actions.pod:7814
33581 #, no-wrap
33582 msgid ""
33583 " int\n"
33584 " guestfs_wc_w (guestfs_h *g,\n"
33585 "               const char *path);\n"
33586 "\n"
33587 msgstr ""
33588
33589 #. type: =head2
33590 #: ../src/guestfs-actions.pod:7825
33591 msgid "guestfs_write"
33592 msgstr ""
33593
33594 #. type: verbatim
33595 #: ../src/guestfs-actions.pod:7827
33596 #, no-wrap
33597 msgid ""
33598 " int\n"
33599 " guestfs_write (guestfs_h *g,\n"
33600 "                const char *path,\n"
33601 "                const char *content,\n"
33602 "                size_t content_size);\n"
33603 "\n"
33604 msgstr ""
33605
33606 #. type: textblock
33607 #: ../src/guestfs-actions.pod:7836
33608 msgid "See also C<guestfs_write_append>."
33609 msgstr ""
33610
33611 #. type: =head2
33612 #: ../src/guestfs-actions.pod:7845
33613 msgid "guestfs_write_append"
33614 msgstr ""
33615
33616 #. type: verbatim
33617 #: ../src/guestfs-actions.pod:7847
33618 #, no-wrap
33619 msgid ""
33620 " int\n"
33621 " guestfs_write_append (guestfs_h *g,\n"
33622 "                       const char *path,\n"
33623 "                       const char *content,\n"
33624 "                       size_t content_size);\n"
33625 "\n"
33626 msgstr ""
33627
33628 #. type: textblock
33629 #: ../src/guestfs-actions.pod:7856
33630 msgid "See also C<guestfs_write>."
33631 msgstr ""
33632
33633 #. type: =head2
33634 #: ../src/guestfs-actions.pod:7865
33635 msgid "guestfs_write_file"
33636 msgstr "guestfs_write_file"
33637
33638 #. type: verbatim
33639 #: ../src/guestfs-actions.pod:7867
33640 #, no-wrap
33641 msgid ""
33642 " int\n"
33643 " guestfs_write_file (guestfs_h *g,\n"
33644 "                     const char *path,\n"
33645 "                     const char *content,\n"
33646 "                     int size);\n"
33647 "\n"
33648 msgstr ""
33649 " int\n"
33650 " guestfs_write_file (guestfs_h *g,\n"
33651 "                     const char *path,\n"
33652 "                     const char *content,\n"
33653 "                     int size);\n"
33654 "\n"
33655
33656 #. type: textblock
33657 #: ../src/guestfs-actions.pod:7873
33658 msgid ""
33659 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
33660 "instead."
33661 msgstr ""
33662
33663 #. type: =head2
33664 #: ../src/guestfs-actions.pod:7898
33665 msgid "guestfs_zegrep"
33666 msgstr "guestfs_zegrep"
33667
33668 #. type: verbatim
33669 #: ../src/guestfs-actions.pod:7900
33670 #, no-wrap
33671 msgid ""
33672 " char **\n"
33673 " guestfs_zegrep (guestfs_h *g,\n"
33674 "                 const char *regex,\n"
33675 "                 const char *path);\n"
33676 "\n"
33677 msgstr ""
33678 " char **\n"
33679 " guestfs_zegrep (guestfs_h *g,\n"
33680 "                 const char *regex,\n"
33681 "                 const char *path);\n"
33682 "\n"
33683
33684 #. type: =head2
33685 #: ../src/guestfs-actions.pod:7917
33686 msgid "guestfs_zegrepi"
33687 msgstr "guestfs_zegrepi"
33688
33689 #. type: verbatim
33690 #: ../src/guestfs-actions.pod:7919
33691 #, no-wrap
33692 msgid ""
33693 " char **\n"
33694 " guestfs_zegrepi (guestfs_h *g,\n"
33695 "                  const char *regex,\n"
33696 "                  const char *path);\n"
33697 "\n"
33698 msgstr ""
33699 " char **\n"
33700 " guestfs_zegrepi (guestfs_h *g,\n"
33701 "                  const char *regex,\n"
33702 "                  const char *path);\n"
33703 "\n"
33704
33705 #. type: =head2
33706 #: ../src/guestfs-actions.pod:7936
33707 msgid "guestfs_zero"
33708 msgstr "guestfs_zero"
33709
33710 #. type: verbatim
33711 #: ../src/guestfs-actions.pod:7938
33712 #, no-wrap
33713 msgid ""
33714 " int\n"
33715 " guestfs_zero (guestfs_h *g,\n"
33716 "               const char *device);\n"
33717 "\n"
33718 msgstr ""
33719 " int\n"
33720 " guestfs_zero (guestfs_h *g,\n"
33721 "               const char *device);\n"
33722 "\n"
33723
33724 #. type: textblock
33725 #: ../src/guestfs-actions.pod:7952
33726 msgid ""
33727 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33728 "C<guestfs_is_zero_device>"
33729 msgstr ""
33730
33731 #. type: =head2
33732 #: ../src/guestfs-actions.pod:7964
33733 msgid "guestfs_zero_device"
33734 msgstr "guestfs_zero_device"
33735
33736 #. type: verbatim
33737 #: ../src/guestfs-actions.pod:7966
33738 #, no-wrap
33739 msgid ""
33740 " int\n"
33741 " guestfs_zero_device (guestfs_h *g,\n"
33742 "                      const char *device);\n"
33743 "\n"
33744 msgstr ""
33745 " int\n"
33746 " guestfs_zero_device (guestfs_h *g,\n"
33747 "                      const char *device);\n"
33748 "\n"
33749
33750 #. type: textblock
33751 #: ../src/guestfs-actions.pod:7970
33752 msgid ""
33753 "This command writes zeroes over the entire C<device>.  Compare with "
33754 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33755 msgstr ""
33756
33757 #. type: textblock
33758 #: ../src/guestfs-actions.pod:7988
33759 msgid "(Added in 1.3.1)"
33760 msgstr "(Додано у 1.3.1)"
33761
33762 #. type: =head2
33763 #: ../src/guestfs-actions.pod:7990
33764 msgid "guestfs_zerofree"
33765 msgstr "guestfs_zerofree"
33766
33767 #. type: verbatim
33768 #: ../src/guestfs-actions.pod:7992
33769 #, no-wrap
33770 msgid ""
33771 " int\n"
33772 " guestfs_zerofree (guestfs_h *g,\n"
33773 "                   const char *device);\n"
33774 "\n"
33775 msgstr ""
33776 " int\n"
33777 " guestfs_zerofree (guestfs_h *g,\n"
33778 "                   const char *device);\n"
33779 "\n"
33780
33781 #. type: =head2
33782 #: ../src/guestfs-actions.pod:8011
33783 msgid "guestfs_zfgrep"
33784 msgstr "guestfs_zfgrep"
33785
33786 #. type: verbatim
33787 #: ../src/guestfs-actions.pod:8013
33788 #, no-wrap
33789 msgid ""
33790 " char **\n"
33791 " guestfs_zfgrep (guestfs_h *g,\n"
33792 "                 const char *pattern,\n"
33793 "                 const char *path);\n"
33794 "\n"
33795 msgstr ""
33796 " char **\n"
33797 " guestfs_zfgrep (guestfs_h *g,\n"
33798 "                 const char *pattern,\n"
33799 "                 const char *path);\n"
33800 "\n"
33801
33802 #. type: =head2
33803 #: ../src/guestfs-actions.pod:8030
33804 msgid "guestfs_zfgrepi"
33805 msgstr "guestfs_zfgrepi"
33806
33807 #. type: verbatim
33808 #: ../src/guestfs-actions.pod:8032
33809 #, no-wrap
33810 msgid ""
33811 " char **\n"
33812 " guestfs_zfgrepi (guestfs_h *g,\n"
33813 "                  const char *pattern,\n"
33814 "                  const char *path);\n"
33815 "\n"
33816 msgstr ""
33817 " char **\n"
33818 " guestfs_zfgrepi (guestfs_h *g,\n"
33819 "                  const char *pattern,\n"
33820 "                  const char *path);\n"
33821 "\n"
33822
33823 #. type: =head2
33824 #: ../src/guestfs-actions.pod:8049
33825 msgid "guestfs_zfile"
33826 msgstr "guestfs_zfile"
33827
33828 #. type: verbatim
33829 #: ../src/guestfs-actions.pod:8051
33830 #, no-wrap
33831 msgid ""
33832 " char *\n"
33833 " guestfs_zfile (guestfs_h *g,\n"
33834 "                const char *meth,\n"
33835 "                const char *path);\n"
33836 "\n"
33837 msgstr ""
33838 " char *\n"
33839 " guestfs_zfile (guestfs_h *g,\n"
33840 "                const char *meth,\n"
33841 "                const char *path);\n"
33842 "\n"
33843
33844 #. type: textblock
33845 #: ../src/guestfs-actions.pod:8056
33846 msgid ""
33847 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
33848 "instead."
33849 msgstr ""
33850
33851 #. type: textblock
33852 #: ../src/guestfs-actions.pod:8068
33853 msgid ""
33854 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
33855 "files."
33856 msgstr ""
33857
33858 #. type: =head2
33859 #: ../src/guestfs-actions.pod:8076
33860 msgid "guestfs_zgrep"
33861 msgstr "guestfs_zgrep"
33862
33863 #. type: verbatim
33864 #: ../src/guestfs-actions.pod:8078
33865 #, no-wrap
33866 msgid ""
33867 " char **\n"
33868 " guestfs_zgrep (guestfs_h *g,\n"
33869 "                const char *regex,\n"
33870 "                const char *path);\n"
33871 "\n"
33872 msgstr ""
33873 " char **\n"
33874 " guestfs_zgrep (guestfs_h *g,\n"
33875 "                const char *regex,\n"
33876 "                const char *path);\n"
33877 "\n"
33878
33879 #. type: =head2
33880 #: ../src/guestfs-actions.pod:8095
33881 msgid "guestfs_zgrepi"
33882 msgstr "guestfs_zgrepi"
33883
33884 #. type: verbatim
33885 #: ../src/guestfs-actions.pod:8097
33886 #, no-wrap
33887 msgid ""
33888 " char **\n"
33889 " guestfs_zgrepi (guestfs_h *g,\n"
33890 "                 const char *regex,\n"
33891 "                 const char *path);\n"
33892 "\n"
33893 msgstr ""
33894 " char **\n"
33895 " guestfs_zgrepi (guestfs_h *g,\n"
33896 "                 const char *regex,\n"
33897 "                 const char *path);\n"
33898 "\n"
33899
33900 #. type: =item
33901 #: ../src/guestfs-availability.pod:3
33902 msgid "B<augeas>"
33903 msgstr "B<augeas>"
33904
33905 #. type: textblock
33906 #: ../src/guestfs-availability.pod:5
33907 msgid ""
33908 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
33909 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
33910 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
33911 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
33912 "L</guestfs_aug_save> L</guestfs_aug_set>"
33913 msgstr ""
33914
33915 #. type: =item
33916 #: ../src/guestfs-availability.pod:21
33917 msgid "B<btrfs>"
33918 msgstr "B<btrfs>"
33919
33920 #. type: textblock
33921 #: ../src/guestfs-availability.pod:23
33922 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
33923 msgstr ""
33924
33925 #. type: =item
33926 #: ../src/guestfs-availability.pod:26
33927 msgid "B<grub>"
33928 msgstr ""
33929
33930 #. type: textblock
33931 #: ../src/guestfs-availability.pod:28
33932 msgid "The following functions: L</guestfs_grub_install>"
33933 msgstr ""
33934
33935 #. type: =item
33936 #: ../src/guestfs-availability.pod:31
33937 msgid "B<inotify>"
33938 msgstr "B<inotify>"
33939
33940 #. type: textblock
33941 #: ../src/guestfs-availability.pod:33
33942 msgid ""
33943 "The following functions: L</guestfs_inotify_add_watch> L</"
33944 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
33945 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
33946 msgstr ""
33947
33948 #. type: =item
33949 #: ../src/guestfs-availability.pod:41
33950 msgid "B<linuxfsuuid>"
33951 msgstr "B<linuxfsuuid>"
33952
33953 #. type: textblock
33954 #: ../src/guestfs-availability.pod:43
33955 msgid ""
33956 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
33957 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
33958 msgstr ""
33959
33960 #. type: =item
33961 #: ../src/guestfs-availability.pod:50
33962 msgid "B<linuxmodules>"
33963 msgstr "B<linuxmodules>"
33964
33965 #. type: textblock
33966 #: ../src/guestfs-availability.pod:52
33967 msgid "The following functions: L</guestfs_modprobe>"
33968 msgstr ""
33969
33970 #. type: =item
33971 #: ../src/guestfs-availability.pod:55
33972 msgid "B<linuxxattrs>"
33973 msgstr "B<linuxxattrs>"
33974
33975 #. type: textblock
33976 #: ../src/guestfs-availability.pod:57
33977 msgid ""
33978 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
33979 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
33980 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
33981 "guestfs_setxattr>"
33982 msgstr ""
33983
33984 #. type: =item
33985 #: ../src/guestfs-availability.pod:68
33986 msgid "B<luks>"
33987 msgstr "B<luks>"
33988
33989 #. type: textblock
33990 #: ../src/guestfs-availability.pod:70
33991 msgid ""
33992 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
33993 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
33994 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
33995 msgstr ""
33996
33997 #. type: =item
33998 #: ../src/guestfs-availability.pod:79
33999 msgid "B<lvm2>"
34000 msgstr "B<lvm2>"
34001
34002 #. type: textblock
34003 #: ../src/guestfs-availability.pod:81
34004 msgid ""
34005 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
34006 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
34007 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
34008 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
34009 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
34010 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
34011 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
34012 msgstr ""
34013
34014 #. type: =item
34015 #: ../src/guestfs-availability.pod:104
34016 msgid "B<mknod>"
34017 msgstr "B<mknod>"
34018
34019 #. type: textblock
34020 #: ../src/guestfs-availability.pod:106
34021 msgid ""
34022 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
34023 "guestfs_mknod_b> L</guestfs_mknod_c>"
34024 msgstr ""
34025
34026 #. type: =item
34027 #: ../src/guestfs-availability.pod:112
34028 msgid "B<ntfs3g>"
34029 msgstr "B<ntfs3g>"
34030
34031 #. type: textblock
34032 #: ../src/guestfs-availability.pod:114
34033 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
34034 msgstr ""
34035
34036 #. type: =item
34037 #: ../src/guestfs-availability.pod:117
34038 msgid "B<ntfsprogs>"
34039 msgstr "B<ntfsprogs>"
34040
34041 #. type: textblock
34042 #: ../src/guestfs-availability.pod:119
34043 msgid ""
34044 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
34045 "L</guestfs_ntfsresize_size>"
34046 msgstr ""
34047
34048 #. type: =item
34049 #: ../src/guestfs-availability.pod:124
34050 msgid "B<realpath>"
34051 msgstr "B<realpath>"
34052
34053 #. type: textblock
34054 #: ../src/guestfs-availability.pod:126
34055 msgid "The following functions: L</guestfs_realpath>"
34056 msgstr ""
34057
34058 #. type: =item
34059 #: ../src/guestfs-availability.pod:129
34060 msgid "B<scrub>"
34061 msgstr "B<scrub>"
34062
34063 #. type: textblock
34064 #: ../src/guestfs-availability.pod:131
34065 msgid ""
34066 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
34067 "guestfs_scrub_freespace>"
34068 msgstr ""
34069
34070 #. type: =item
34071 #: ../src/guestfs-availability.pod:136
34072 msgid "B<selinux>"
34073 msgstr "B<selinux>"
34074
34075 #. type: textblock
34076 #: ../src/guestfs-availability.pod:138
34077 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
34078 msgstr ""
34079
34080 #. type: =item
34081 #: ../src/guestfs-availability.pod:142
34082 msgid "B<xz>"
34083 msgstr "B<xz>"
34084
34085 #. type: textblock
34086 #: ../src/guestfs-availability.pod:144
34087 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
34088 msgstr ""
34089
34090 #. type: =item
34091 #: ../src/guestfs-availability.pod:148
34092 msgid "B<zerofree>"
34093 msgstr "B<zerofree>"
34094
34095 #. type: textblock
34096 #: ../src/guestfs-availability.pod:150
34097 msgid "The following functions: L</guestfs_zerofree>"
34098 msgstr ""
34099
34100 #. type: =head2
34101 #: ../src/guestfs-structs.pod:1
34102 msgid "guestfs_int_bool"
34103 msgstr ""
34104
34105 #. type: verbatim
34106 #: ../src/guestfs-structs.pod:3
34107 #, no-wrap
34108 msgid ""
34109 " struct guestfs_int_bool {\n"
34110 "   int32_t i;\n"
34111 "   int32_t b;\n"
34112 " };\n"
34113 " \n"
34114 msgstr ""
34115
34116 #. type: verbatim
34117 #: ../src/guestfs-structs.pod:8
34118 #, no-wrap
34119 msgid ""
34120 " struct guestfs_int_bool_list {\n"
34121 "   uint32_t len; /* Number of elements in list. */\n"
34122 "   struct guestfs_int_bool *val; /* Elements. */\n"
34123 " };\n"
34124 " \n"
34125 msgstr ""
34126
34127 #. type: verbatim
34128 #: ../src/guestfs-structs.pod:13
34129 #, no-wrap
34130 msgid ""
34131 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
34132 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
34133 "\n"
34134 msgstr ""
34135
34136 #. type: =head2
34137 #: ../src/guestfs-structs.pod:16
34138 msgid "guestfs_lvm_pv"
34139 msgstr ""
34140
34141 #. type: verbatim
34142 #: ../src/guestfs-structs.pod:18
34143 #, no-wrap
34144 msgid ""
34145 " struct guestfs_lvm_pv {\n"
34146 "   char *pv_name;\n"
34147 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34148 "   char pv_uuid[32];\n"
34149 "   char *pv_fmt;\n"
34150 "   uint64_t pv_size;\n"
34151 "   uint64_t dev_size;\n"
34152 "   uint64_t pv_free;\n"
34153 "   uint64_t pv_used;\n"
34154 "   char *pv_attr;\n"
34155 "   int64_t pv_pe_count;\n"
34156 "   int64_t pv_pe_alloc_count;\n"
34157 "   char *pv_tags;\n"
34158 "   uint64_t pe_start;\n"
34159 "   int64_t pv_mda_count;\n"
34160 "   uint64_t pv_mda_free;\n"
34161 " };\n"
34162 " \n"
34163 msgstr ""
34164
34165 #. type: verbatim
34166 #: ../src/guestfs-structs.pod:36
34167 #, no-wrap
34168 msgid ""
34169 " struct guestfs_lvm_pv_list {\n"
34170 "   uint32_t len; /* Number of elements in list. */\n"
34171 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
34172 " };\n"
34173 " \n"
34174 msgstr ""
34175
34176 #. type: verbatim
34177 #: ../src/guestfs-structs.pod:41
34178 #, no-wrap
34179 msgid ""
34180 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
34181 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
34182 "\n"
34183 msgstr ""
34184
34185 #. type: =head2
34186 #: ../src/guestfs-structs.pod:44
34187 msgid "guestfs_lvm_vg"
34188 msgstr ""
34189
34190 #. type: verbatim
34191 #: ../src/guestfs-structs.pod:46
34192 #, no-wrap
34193 msgid ""
34194 " struct guestfs_lvm_vg {\n"
34195 "   char *vg_name;\n"
34196 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34197 "   char vg_uuid[32];\n"
34198 "   char *vg_fmt;\n"
34199 "   char *vg_attr;\n"
34200 "   uint64_t vg_size;\n"
34201 "   uint64_t vg_free;\n"
34202 "   char *vg_sysid;\n"
34203 "   uint64_t vg_extent_size;\n"
34204 "   int64_t vg_extent_count;\n"
34205 "   int64_t vg_free_count;\n"
34206 "   int64_t max_lv;\n"
34207 "   int64_t max_pv;\n"
34208 "   int64_t pv_count;\n"
34209 "   int64_t lv_count;\n"
34210 "   int64_t snap_count;\n"
34211 "   int64_t vg_seqno;\n"
34212 "   char *vg_tags;\n"
34213 "   int64_t vg_mda_count;\n"
34214 "   uint64_t vg_mda_free;\n"
34215 " };\n"
34216 " \n"
34217 msgstr ""
34218
34219 #. type: verbatim
34220 #: ../src/guestfs-structs.pod:69
34221 #, no-wrap
34222 msgid ""
34223 " struct guestfs_lvm_vg_list {\n"
34224 "   uint32_t len; /* Number of elements in list. */\n"
34225 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
34226 " };\n"
34227 " \n"
34228 msgstr ""
34229
34230 #. type: verbatim
34231 #: ../src/guestfs-structs.pod:74
34232 #, no-wrap
34233 msgid ""
34234 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
34235 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
34236 "\n"
34237 msgstr ""
34238
34239 #. type: =head2
34240 #: ../src/guestfs-structs.pod:77
34241 msgid "guestfs_lvm_lv"
34242 msgstr ""
34243
34244 #. type: verbatim
34245 #: ../src/guestfs-structs.pod:79
34246 #, no-wrap
34247 msgid ""
34248 " struct guestfs_lvm_lv {\n"
34249 "   char *lv_name;\n"
34250 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
34251 "   char lv_uuid[32];\n"
34252 "   char *lv_attr;\n"
34253 "   int64_t lv_major;\n"
34254 "   int64_t lv_minor;\n"
34255 "   int64_t lv_kernel_major;\n"
34256 "   int64_t lv_kernel_minor;\n"
34257 "   uint64_t lv_size;\n"
34258 "   int64_t seg_count;\n"
34259 "   char *origin;\n"
34260 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34261 "   float snap_percent;\n"
34262 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
34263 "   float copy_percent;\n"
34264 "   char *move_pv;\n"
34265 "   char *lv_tags;\n"
34266 "   char *mirror_log;\n"
34267 "   char *modules;\n"
34268 " };\n"
34269 " \n"
34270 msgstr ""
34271
34272 #. type: verbatim
34273 #: ../src/guestfs-structs.pod:101
34274 #, no-wrap
34275 msgid ""
34276 " struct guestfs_lvm_lv_list {\n"
34277 "   uint32_t len; /* Number of elements in list. */\n"
34278 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
34279 " };\n"
34280 " \n"
34281 msgstr ""
34282
34283 #. type: verbatim
34284 #: ../src/guestfs-structs.pod:106
34285 #, no-wrap
34286 msgid ""
34287 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
34288 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
34289 "\n"
34290 msgstr ""
34291
34292 #. type: verbatim
34293 #: ../src/guestfs-structs.pod:111
34294 #, no-wrap
34295 msgid ""
34296 " struct guestfs_stat {\n"
34297 "   int64_t dev;\n"
34298 "   int64_t ino;\n"
34299 "   int64_t mode;\n"
34300 "   int64_t nlink;\n"
34301 "   int64_t uid;\n"
34302 "   int64_t gid;\n"
34303 "   int64_t rdev;\n"
34304 "   int64_t size;\n"
34305 "   int64_t blksize;\n"
34306 "   int64_t blocks;\n"
34307 "   int64_t atime;\n"
34308 "   int64_t mtime;\n"
34309 "   int64_t ctime;\n"
34310 " };\n"
34311 " \n"
34312 msgstr ""
34313
34314 #. type: verbatim
34315 #: ../src/guestfs-structs.pod:127
34316 #, no-wrap
34317 msgid ""
34318 " struct guestfs_stat_list {\n"
34319 "   uint32_t len; /* Number of elements in list. */\n"
34320 "   struct guestfs_stat *val; /* Elements. */\n"
34321 " };\n"
34322 " \n"
34323 msgstr ""
34324
34325 #. type: verbatim
34326 #: ../src/guestfs-structs.pod:132
34327 #, no-wrap
34328 msgid ""
34329 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
34330 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
34331 "\n"
34332 msgstr ""
34333
34334 #. type: verbatim
34335 #: ../src/guestfs-structs.pod:137
34336 #, no-wrap
34337 msgid ""
34338 " struct guestfs_statvfs {\n"
34339 "   int64_t bsize;\n"
34340 "   int64_t frsize;\n"
34341 "   int64_t blocks;\n"
34342 "   int64_t bfree;\n"
34343 "   int64_t bavail;\n"
34344 "   int64_t files;\n"
34345 "   int64_t ffree;\n"
34346 "   int64_t favail;\n"
34347 "   int64_t fsid;\n"
34348 "   int64_t flag;\n"
34349 "   int64_t namemax;\n"
34350 " };\n"
34351 " \n"
34352 msgstr ""
34353
34354 #. type: verbatim
34355 #: ../src/guestfs-structs.pod:151
34356 #, no-wrap
34357 msgid ""
34358 " struct guestfs_statvfs_list {\n"
34359 "   uint32_t len; /* Number of elements in list. */\n"
34360 "   struct guestfs_statvfs *val; /* Elements. */\n"
34361 " };\n"
34362 " \n"
34363 msgstr ""
34364
34365 #. type: verbatim
34366 #: ../src/guestfs-structs.pod:156
34367 #, no-wrap
34368 msgid ""
34369 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
34370 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
34371 "\n"
34372 msgstr ""
34373
34374 #. type: =head2
34375 #: ../src/guestfs-structs.pod:159
34376 msgid "guestfs_dirent"
34377 msgstr ""
34378
34379 #. type: verbatim
34380 #: ../src/guestfs-structs.pod:161
34381 #, no-wrap
34382 msgid ""
34383 " struct guestfs_dirent {\n"
34384 "   int64_t ino;\n"
34385 "   char ftyp;\n"
34386 "   char *name;\n"
34387 " };\n"
34388 " \n"
34389 msgstr ""
34390
34391 #. type: verbatim
34392 #: ../src/guestfs-structs.pod:167
34393 #, no-wrap
34394 msgid ""
34395 " struct guestfs_dirent_list {\n"
34396 "   uint32_t len; /* Number of elements in list. */\n"
34397 "   struct guestfs_dirent *val; /* Elements. */\n"
34398 " };\n"
34399 " \n"
34400 msgstr ""
34401
34402 #. type: verbatim
34403 #: ../src/guestfs-structs.pod:172
34404 #, no-wrap
34405 msgid ""
34406 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
34407 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
34408 "\n"
34409 msgstr ""
34410
34411 #. type: verbatim
34412 #: ../src/guestfs-structs.pod:177
34413 #, no-wrap
34414 msgid ""
34415 " struct guestfs_version {\n"
34416 "   int64_t major;\n"
34417 "   int64_t minor;\n"
34418 "   int64_t release;\n"
34419 "   char *extra;\n"
34420 " };\n"
34421 " \n"
34422 msgstr ""
34423
34424 #. type: verbatim
34425 #: ../src/guestfs-structs.pod:184
34426 #, no-wrap
34427 msgid ""
34428 " struct guestfs_version_list {\n"
34429 "   uint32_t len; /* Number of elements in list. */\n"
34430 "   struct guestfs_version *val; /* Elements. */\n"
34431 " };\n"
34432 " \n"
34433 msgstr ""
34434
34435 #. type: verbatim
34436 #: ../src/guestfs-structs.pod:189
34437 #, no-wrap
34438 msgid ""
34439 " void guestfs_free_version (struct guestfs_free_version *);\n"
34440 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
34441 "\n"
34442 msgstr ""
34443
34444 #. type: =head2
34445 #: ../src/guestfs-structs.pod:192
34446 msgid "guestfs_xattr"
34447 msgstr ""
34448
34449 #. type: verbatim
34450 #: ../src/guestfs-structs.pod:194
34451 #, no-wrap
34452 msgid ""
34453 " struct guestfs_xattr {\n"
34454 "   char *attrname;\n"
34455 "   /* The next two fields describe a byte array. */\n"
34456 "   uint32_t attrval_len;\n"
34457 "   char *attrval;\n"
34458 " };\n"
34459 " \n"
34460 msgstr ""
34461
34462 #. type: verbatim
34463 #: ../src/guestfs-structs.pod:201
34464 #, no-wrap
34465 msgid ""
34466 " struct guestfs_xattr_list {\n"
34467 "   uint32_t len; /* Number of elements in list. */\n"
34468 "   struct guestfs_xattr *val; /* Elements. */\n"
34469 " };\n"
34470 " \n"
34471 msgstr ""
34472
34473 #. type: verbatim
34474 #: ../src/guestfs-structs.pod:206
34475 #, no-wrap
34476 msgid ""
34477 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
34478 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
34479 "\n"
34480 msgstr ""
34481
34482 #. type: =head2
34483 #: ../src/guestfs-structs.pod:209
34484 msgid "guestfs_inotify_event"
34485 msgstr ""
34486
34487 #. type: verbatim
34488 #: ../src/guestfs-structs.pod:211
34489 #, no-wrap
34490 msgid ""
34491 " struct guestfs_inotify_event {\n"
34492 "   int64_t in_wd;\n"
34493 "   uint32_t in_mask;\n"
34494 "   uint32_t in_cookie;\n"
34495 "   char *in_name;\n"
34496 " };\n"
34497 " \n"
34498 msgstr ""
34499
34500 #. type: verbatim
34501 #: ../src/guestfs-structs.pod:218
34502 #, no-wrap
34503 msgid ""
34504 " struct guestfs_inotify_event_list {\n"
34505 "   uint32_t len; /* Number of elements in list. */\n"
34506 "   struct guestfs_inotify_event *val; /* Elements. */\n"
34507 " };\n"
34508 " \n"
34509 msgstr ""
34510
34511 #. type: verbatim
34512 #: ../src/guestfs-structs.pod:223
34513 #, no-wrap
34514 msgid ""
34515 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
34516 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
34517 "\n"
34518 msgstr ""
34519
34520 #. type: =head2
34521 #: ../src/guestfs-structs.pod:226
34522 msgid "guestfs_partition"
34523 msgstr ""
34524
34525 #. type: verbatim
34526 #: ../src/guestfs-structs.pod:228
34527 #, no-wrap
34528 msgid ""
34529 " struct guestfs_partition {\n"
34530 "   int32_t part_num;\n"
34531 "   uint64_t part_start;\n"
34532 "   uint64_t part_end;\n"
34533 "   uint64_t part_size;\n"
34534 " };\n"
34535 " \n"
34536 msgstr ""
34537
34538 #. type: verbatim
34539 #: ../src/guestfs-structs.pod:235
34540 #, no-wrap
34541 msgid ""
34542 " struct guestfs_partition_list {\n"
34543 "   uint32_t len; /* Number of elements in list. */\n"
34544 "   struct guestfs_partition *val; /* Elements. */\n"
34545 " };\n"
34546 " \n"
34547 msgstr ""
34548
34549 #. type: verbatim
34550 #: ../src/guestfs-structs.pod:240
34551 #, no-wrap
34552 msgid ""
34553 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
34554 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
34555 "\n"
34556 msgstr ""
34557
34558 #. type: =head2
34559 #: ../src/guestfs-structs.pod:243
34560 msgid "guestfs_application"
34561 msgstr ""
34562
34563 #. type: verbatim
34564 #: ../src/guestfs-structs.pod:245
34565 #, no-wrap
34566 msgid ""
34567 " struct guestfs_application {\n"
34568 "   char *app_name;\n"
34569 "   char *app_display_name;\n"
34570 "   int32_t app_epoch;\n"
34571 "   char *app_version;\n"
34572 "   char *app_release;\n"
34573 "   char *app_install_path;\n"
34574 "   char *app_trans_path;\n"
34575 "   char *app_publisher;\n"
34576 "   char *app_url;\n"
34577 "   char *app_source_package;\n"
34578 "   char *app_summary;\n"
34579 "   char *app_description;\n"
34580 " };\n"
34581 " \n"
34582 msgstr ""
34583
34584 #. type: verbatim
34585 #: ../src/guestfs-structs.pod:260
34586 #, no-wrap
34587 msgid ""
34588 " struct guestfs_application_list {\n"
34589 "   uint32_t len; /* Number of elements in list. */\n"
34590 "   struct guestfs_application *val; /* Elements. */\n"
34591 " };\n"
34592 " \n"
34593 msgstr ""
34594
34595 #. type: verbatim
34596 #: ../src/guestfs-structs.pod:265
34597 #, no-wrap
34598 msgid ""
34599 " void guestfs_free_application (struct guestfs_free_application *);\n"
34600 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
34601 "\n"
34602 msgstr ""
34603
34604 #. type: textblock
34605 #: ../src/guestfs.pod:5
34606 msgid "guestfs - Library for accessing and modifying virtual machine images"
34607 msgstr ""
34608 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
34609 "машин"
34610
34611 #. type: verbatim
34612 #: ../src/guestfs.pod:11
34613 #, no-wrap
34614 msgid ""
34615 " guestfs_h *g = guestfs_create ();\n"
34616 " guestfs_add_drive (g, \"guest.img\");\n"
34617 " guestfs_launch (g);\n"
34618 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34619 " guestfs_touch (g, \"/hello\");\n"
34620 " guestfs_umount (g, \"/\");\n"
34621 " guestfs_close (g);\n"
34622 "\n"
34623 msgstr ""
34624 " guestfs_h *g = guestfs_create ();\n"
34625 " guestfs_add_drive (g, \"guest.img\");\n"
34626 " guestfs_launch (g);\n"
34627 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34628 " guestfs_touch (g, \"/hello\");\n"
34629 " guestfs_umount (g, \"/\");\n"
34630 " guestfs_close (g);\n"
34631 "\n"
34632
34633 #. type: textblock
34634 #: ../src/guestfs.pod:25
34635 msgid ""
34636 "Libguestfs is a library for accessing and modifying guest disk images.  "
34637 "Amongst the things this is good for: making batch configuration changes to "
34638 "guests, getting disk used/free statistics (see also: virt-df), migrating "
34639 "between virtualization systems (see also: virt-p2v), performing partial "
34640 "backups, performing partial guest clones, cloning guests and changing "
34641 "registry/UUID/hostname info, and much else besides."
34642 msgstr ""
34643
34644 #. type: textblock
34645 #: ../src/guestfs.pod:33
34646 msgid ""
34647 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
34648 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
34649 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
34650 "qcow2, vmdk."
34651 msgstr ""
34652
34653 #. type: textblock
34654 #: ../src/guestfs.pod:38
34655 msgid ""
34656 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
34657 "what filesystem is in each LV, etc.).  It can also run commands in the "
34658 "context of the guest.  Also you can access filesystems over FUSE."
34659 msgstr ""
34660
34661 #. type: textblock
34662 #: ../src/guestfs.pod:43
34663 msgid ""
34664 "Libguestfs is a library that can be linked with C and C++ management "
34665 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
34666 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
34667 "command line."
34668 msgstr ""
34669
34670 #. type: textblock
34671 #: ../src/guestfs.pod:48
34672 msgid ""
34673 "You don't need to be root to use libguestfs, although obviously you do need "
34674 "enough permissions to access the disk images."
34675 msgstr ""
34676
34677 #. type: textblock
34678 #: ../src/guestfs.pod:51
34679 msgid ""
34680 "Libguestfs is a large API because it can do many things.  For a gentle "
34681 "introduction, please read the L</API OVERVIEW> section next."
34682 msgstr ""
34683
34684 #. type: textblock
34685 #: ../src/guestfs.pod:54
34686 msgid ""
34687 "There are also some example programs in the L<guestfs-examples(3)> manual "
34688 "page."
34689 msgstr ""
34690
34691 #. type: =head1
34692 #: ../src/guestfs.pod:57
34693 msgid "API OVERVIEW"
34694 msgstr "ОГЛЯД API"
34695
34696 #. type: textblock
34697 #: ../src/guestfs.pod:59
34698 msgid ""
34699 "This section provides a gentler overview of the libguestfs API.  We also try "
34700 "to group API calls together, where that may not be obvious from reading "
34701 "about the individual calls in the main section of this manual."
34702 msgstr ""
34703
34704 #. type: =head2
34705 #: ../src/guestfs.pod:64
34706 msgid "HANDLES"
34707 msgstr "ОБРОБНИКИ"
34708
34709 #. type: textblock
34710 #: ../src/guestfs.pod:66
34711 msgid ""
34712 "Before you can use libguestfs calls, you have to create a handle.  Then you "
34713 "must add at least one disk image to the handle, followed by launching the "
34714 "handle, then performing whatever operations you want, and finally closing "
34715 "the handle.  By convention we use the single letter C<g> for the name of the "
34716 "handle variable, although of course you can use any name you want."
34717 msgstr ""
34718
34719 #. type: textblock
34720 #: ../src/guestfs.pod:73
34721 msgid "The general structure of all libguestfs-using programs looks like this:"
34722 msgstr ""
34723
34724 #. type: verbatim
34725 #: ../src/guestfs.pod:76
34726 #, no-wrap
34727 msgid ""
34728 " guestfs_h *g = guestfs_create ();\n"
34729 " \n"
34730 msgstr ""
34731 " guestfs_h *g = guestfs_create ();\n"
34732 " \n"
34733
34734 #. type: verbatim
34735 #: ../src/guestfs.pod:78
34736 #, no-wrap
34737 msgid ""
34738 " /* Call guestfs_add_drive additional times if there are\n"
34739 "  * multiple disk images.\n"
34740 "  */\n"
34741 " guestfs_add_drive (g, \"guest.img\");\n"
34742 " \n"
34743 msgstr ""
34744
34745 #. type: verbatim
34746 #: ../src/guestfs.pod:83
34747 #, no-wrap
34748 msgid ""
34749 " /* Most manipulation calls won't work until you've launched\n"
34750 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
34751 "  * and _before_ other commands.\n"
34752 "  */\n"
34753 " guestfs_launch (g);\n"
34754 " \n"
34755 msgstr ""
34756
34757 #. type: verbatim
34758 #: ../src/guestfs.pod:89
34759 #, no-wrap
34760 msgid ""
34761 " /* Now you can examine what partitions, LVs etc are available.\n"
34762 "  */\n"
34763 " char **partitions = guestfs_list_partitions (g);\n"
34764 " char **logvols = guestfs_lvs (g);\n"
34765 " \n"
34766 msgstr ""
34767 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
34768 "  */\n"
34769 " char **partitions = guestfs_list_partitions (g);\n"
34770 " char **logvols = guestfs_lvs (g);\n"
34771 " \n"
34772
34773 #. type: verbatim
34774 #: ../src/guestfs.pod:94
34775 #, no-wrap
34776 msgid ""
34777 " /* To access a filesystem in the image, you must mount it.\n"
34778 "  */\n"
34779 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34780 " \n"
34781 msgstr ""
34782 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
34783 "  */\n"
34784 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34785 " \n"
34786
34787 #. type: verbatim
34788 #: ../src/guestfs.pod:98
34789 #, no-wrap
34790 msgid ""
34791 " /* Now you can perform filesystem actions on the guest\n"
34792 "  * disk image.\n"
34793 "  */\n"
34794 " guestfs_touch (g, \"/hello\");\n"
34795 " \n"
34796 msgstr ""
34797 " /* Тепер ви можете виконувати дії з файловою системою на\n"
34798 "  * образі диска операційної системи.\n"
34799 "  */\n"
34800 " guestfs_touch (g, \"/hello\");\n"
34801 " \n"
34802
34803 #. type: verbatim
34804 #: ../src/guestfs.pod:103
34805 #, no-wrap
34806 msgid ""
34807 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
34808 "  * it is done automatically when you close the handle.  See\n"
34809 "  * discussion of autosync in this page.\n"
34810 "  */\n"
34811 " guestfs_sync (g);\n"
34812 " \n"
34813 msgstr ""
34814
34815 #. type: verbatim
34816 #: ../src/guestfs.pod:109
34817 #, no-wrap
34818 msgid ""
34819 " /* Close the handle 'g'. */\n"
34820 " guestfs_close (g);\n"
34821 "\n"
34822 msgstr ""
34823 " /* Закрити дескриптор 'g'. */\n"
34824 " guestfs_close (g);\n"
34825 "\n"
34826
34827 #. type: textblock
34828 #: ../src/guestfs.pod:112
34829 msgid ""
34830 "The code above doesn't include any error checking.  In real code you should "
34831 "check return values carefully for errors.  In general all functions that "
34832 "return integers return C<-1> on error, and all functions that return "
34833 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
34834 "how to handle errors, and consult the documentation for each function call "
34835 "below to see precisely how they return error indications.  See L<guestfs-"
34836 "examples(3)> for fully worked examples."
34837 msgstr ""
34838
34839 #. type: =head2
34840 #: ../src/guestfs.pod:121
34841 msgid "DISK IMAGES"
34842 msgstr "ОБРАЗИ ДИСКІВ"
34843
34844 #. type: textblock
34845 #: ../src/guestfs.pod:123
34846 msgid ""
34847 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
34848 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
34849 "actual block device, or simply an empty file of zeroes that you have created "
34850 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
34851 "of these."
34852 msgstr ""
34853
34854 #. type: textblock
34855 #: ../src/guestfs.pod:129
34856 msgid ""
34857 "The call you should use in modern code for adding drives is L</"
34858 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
34859 "specifying that the format is raw, do:"
34860 msgstr ""
34861
34862 #. type: verbatim
34863 #: ../src/guestfs.pod:133
34864 #, no-wrap
34865 msgid ""
34866 " guestfs_add_drive_opts (g, filename,\n"
34867 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34868 "                         -1);\n"
34869 "\n"
34870 msgstr ""
34871 " guestfs_add_drive_opts (g, filename,\n"
34872 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34873 "                         -1);\n"
34874 "\n"
34875
34876 #. type: textblock
34877 #: ../src/guestfs.pod:137
34878 msgid "You can add a disk read-only using:"
34879 msgstr "Ви можете додати диск у режимі лише читання:"
34880
34881 #. type: verbatim
34882 #: ../src/guestfs.pod:139
34883 #, no-wrap
34884 msgid ""
34885 " guestfs_add_drive_opts (g, filename,\n"
34886 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34887 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34888 "                         -1);\n"
34889 "\n"
34890 msgstr ""
34891 " guestfs_add_drive_opts (g, filename,\n"
34892 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34893 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34894 "                         -1);\n"
34895 "\n"
34896
34897 #. type: textblock
34898 #: ../src/guestfs.pod:144
34899 msgid ""
34900 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
34901 "libguestfs won't modify the file."
34902 msgstr ""
34903
34904 #. type: textblock
34905 #: ../src/guestfs.pod:147
34906 msgid ""
34907 "Be extremely cautious if the disk image is in use, eg. if it is being used "
34908 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
34909 "corruption, but adding it read-only is safe."
34910 msgstr ""
34911
34912 #. type: textblock
34913 #: ../src/guestfs.pod:151
34914 msgid ""
34915 "You must add at least one disk image, and you may add multiple disk images.  "
34916 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
34917 "first one you added), C</dev/sdb> (for the second one you added), etc."
34918 msgstr ""
34919
34920 #. type: textblock
34921 #: ../src/guestfs.pod:156
34922 msgid ""
34923 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
34924 "can call L</guestfs_list_devices> to get a list of the device names, in the "
34925 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
34926 msgstr ""
34927
34928 #. type: =head2
34929 #: ../src/guestfs.pod:161
34930 msgid "MOUNTING"
34931 msgstr "МОНТУВАННЯ"
34932
34933 #. type: textblock
34934 #: ../src/guestfs.pod:163
34935 msgid ""
34936 "Before you can read or write files, create directories and so on in a disk "
34937 "image that contains filesystems, you have to mount those filesystems using "
34938 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
34939 "a disk image contains (for example) one partition with a filesystem on that "
34940 "partition, then you can mount it directly:"
34941 msgstr ""
34942
34943 #. type: verbatim
34944 #: ../src/guestfs.pod:170
34945 #, no-wrap
34946 msgid ""
34947 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34948 "\n"
34949 msgstr ""
34950 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34951 "\n"
34952
34953 #. type: textblock
34954 #: ../src/guestfs.pod:172
34955 msgid ""
34956 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
34957 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
34958 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
34959 "that these are libguestfs virtual devices, and are nothing to do with host "
34960 "devices."
34961 msgstr ""
34962
34963 #. type: textblock
34964 #: ../src/guestfs.pod:178
34965 msgid ""
34966 "If you are given a disk image and you don't know what it contains then you "
34967 "have to find out.  Libguestfs can do that too: use L</"
34968 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
34969 "LVs, and either try mounting each to see what is mountable, or else examine "
34970 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
34971 "filesystems, use L</guestfs_list_filesystems>."
34972 msgstr ""
34973
34974 #. type: textblock
34975 #: ../src/guestfs.pod:186
34976 msgid ""
34977 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
34978 "L</INSPECTION> below).  But you might find it easier to look at higher level "
34979 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
34980 msgstr ""
34981
34982 #. type: textblock
34983 #: ../src/guestfs.pod:191
34984 msgid ""
34985 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
34986 "several other variations of the C<guestfs_mount_*> call."
34987 msgstr ""
34988
34989 #. type: =head2
34990 #: ../src/guestfs.pod:194
34991 msgid "FILESYSTEM ACCESS AND MODIFICATION"
34992 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
34993
34994 #. type: textblock
34995 #: ../src/guestfs.pod:196
34996 msgid ""
34997 "The majority of the libguestfs API consists of fairly low-level calls for "
34998 "accessing and modifying the files, directories, symlinks etc on mounted "
34999 "filesystems.  There are over a hundred such calls which you can find listed "
35000 "in detail below in this man page, and we don't even pretend to cover them "
35001 "all in this overview."
35002 msgstr ""
35003
35004 #. type: textblock
35005 #: ../src/guestfs.pod:202
35006 msgid ""
35007 "Specify filenames as full paths, starting with C<\"/\"> and including the "
35008 "mount point."
35009 msgstr ""
35010 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
35011 "точкою монтування."
35012
35013 #. type: textblock
35014 #: ../src/guestfs.pod:205
35015 msgid ""
35016 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
35017 "the file called C<\"etc/passwd\"> then you could do:"
35018 msgstr ""
35019 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
35020 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
35021 "таким кодом:"
35022
35023 #. type: verbatim
35024 #: ../src/guestfs.pod:208
35025 #, no-wrap
35026 msgid ""
35027 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35028 "\n"
35029 msgstr ""
35030 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
35031 "\n"
35032
35033 #. type: textblock
35034 #: ../src/guestfs.pod:210
35035 msgid ""
35036 "This would return C<data> as a newly allocated buffer containing the full "
35037 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
35038 "or C<NULL> if there was an error."
35039 msgstr ""
35040
35041 #. type: textblock
35042 #: ../src/guestfs.pod:214
35043 msgid ""
35044 "As another example, to create a top-level directory on that filesystem "
35045 "called C<\"var\"> you would do:"
35046 msgstr ""
35047
35048 #. type: verbatim
35049 #: ../src/guestfs.pod:217
35050 #, no-wrap
35051 msgid ""
35052 " guestfs_mkdir (g, \"/var\");\n"
35053 "\n"
35054 msgstr ""
35055 " guestfs_mkdir (g, \"/var\");\n"
35056 "\n"
35057
35058 #. type: textblock
35059 #: ../src/guestfs.pod:219
35060 msgid "To create a symlink you could do:"
35061 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
35062
35063 #. type: verbatim
35064 #: ../src/guestfs.pod:221
35065 #, no-wrap
35066 msgid ""
35067 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35068 "               \"/etc/rc3.d/S30portmap\");\n"
35069 "\n"
35070 msgstr ""
35071 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
35072 "               \"/etc/rc3.d/S30portmap\");\n"
35073 "\n"
35074
35075 #. type: textblock
35076 #: ../src/guestfs.pod:224
35077 msgid ""
35078 "Libguestfs will reject attempts to use relative paths and there is no "
35079 "concept of a current working directory."
35080 msgstr ""
35081
35082 #. type: textblock
35083 #: ../src/guestfs.pod:227
35084 msgid ""
35085 "Libguestfs can return errors in many situations: for example if the "
35086 "filesystem isn't writable, or if a file or directory that you requested "
35087 "doesn't exist.  If you are using the C API (documented here)  you have to "
35088 "check for those error conditions after each call.  (Other language bindings "
35089 "turn these errors into exceptions)."
35090 msgstr ""
35091
35092 #. type: textblock
35093 #: ../src/guestfs.pod:233
35094 msgid ""
35095 "File writes are affected by the per-handle umask, set by calling L</"
35096 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
35097 msgstr ""
35098
35099 #. type: =head2
35100 #: ../src/guestfs.pod:236
35101 msgid "PARTITIONING"
35102 msgstr "ПОДІЛ НА РОЗДІЛИ"
35103
35104 #. type: textblock
35105 #: ../src/guestfs.pod:238
35106 msgid ""
35107 "Libguestfs contains API calls to read, create and modify partition tables on "
35108 "disk images."
35109 msgstr ""
35110
35111 #. type: textblock
35112 #: ../src/guestfs.pod:241
35113 msgid ""
35114 "In the common case where you want to create a single partition covering the "
35115 "whole disk, you should use the L</guestfs_part_disk> call:"
35116 msgstr ""
35117
35118 #. type: verbatim
35119 #: ../src/guestfs.pod:245
35120 #, no-wrap
35121 msgid ""
35122 " const char *parttype = \"mbr\";\n"
35123 " if (disk_is_larger_than_2TB)\n"
35124 "   parttype = \"gpt\";\n"
35125 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35126 "\n"
35127 msgstr ""
35128 " const char *parttype = \"mbr\";\n"
35129 " if (disk_is_larger_than_2TB)\n"
35130 "   parttype = \"gpt\";\n"
35131 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
35132 "\n"
35133
35134 #. type: textblock
35135 #: ../src/guestfs.pod:250
35136 msgid ""
35137 "Obviously this effectively wipes anything that was on that disk image before."
35138 msgstr ""
35139
35140 #. type: =head2
35141 #: ../src/guestfs.pod:253
35142 msgid "LVM2"
35143 msgstr "LVM2"
35144
35145 #. type: textblock
35146 #: ../src/guestfs.pod:255
35147 msgid ""
35148 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
35149 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
35150 "you familiarize yourself with the concepts of physical volumes, volume "
35151 "groups and logical volumes."
35152 msgstr ""
35153
35154 #. type: textblock
35155 #: ../src/guestfs.pod:260
35156 msgid ""
35157 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
35158 "tldp.org/HOWTO/LVM-HOWTO/>."
35159 msgstr ""
35160
35161 #. type: =head2
35162 #: ../src/guestfs.pod:263
35163 msgid "DOWNLOADING"
35164 msgstr "ОТРИМАННЯ ДАНИХ"
35165
35166 #. type: textblock
35167 #: ../src/guestfs.pod:265
35168 msgid ""
35169 "Use L</guestfs_cat> to download small, text only files.  This call is "
35170 "limited to files which are less than 2 MB and which cannot contain any ASCII "
35171 "NUL (C<\\0>) characters.  However the API is very simple to use."
35172 msgstr ""
35173
35174 #. type: textblock
35175 #: ../src/guestfs.pod:269
35176 msgid ""
35177 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
35178 "bit data, since it returns a (pointer, size) pair.  However it is still "
35179 "limited to \"small\" files, less than 2 MB."
35180 msgstr ""
35181
35182 #. type: textblock
35183 #: ../src/guestfs.pod:273
35184 msgid ""
35185 "L</guestfs_download> can be used to download any file, with no limits on "
35186 "content or size (even files larger than 4 GB)."
35187 msgstr ""
35188
35189 #. type: textblock
35190 #: ../src/guestfs.pod:276
35191 msgid ""
35192 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
35193 msgstr ""
35194
35195 #. type: =head2
35196 #: ../src/guestfs.pod:279
35197 msgid "UPLOADING"
35198 msgstr "ВИВАНТАЖЕННЯ"
35199
35200 #. type: textblock
35201 #: ../src/guestfs.pod:281
35202 msgid ""
35203 "It's often the case that you want to write a file or files to the disk image."
35204 msgstr ""
35205
35206 #. type: textblock
35207 #: ../src/guestfs.pod:284
35208 msgid ""
35209 "To write a small file with fixed content, use L</guestfs_write>.  To create "
35210 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
35211 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
35212 "of other functions for creating test files, for example L</guestfs_fill> and "
35213 "L</guestfs_fill_pattern>."
35214 msgstr ""
35215
35216 #. type: textblock
35217 #: ../src/guestfs.pod:290
35218 msgid ""
35219 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
35220 "file content or size (even files larger than 4 GB)."
35221 msgstr ""
35222
35223 #. type: textblock
35224 #: ../src/guestfs.pod:293
35225 msgid ""
35226 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
35227 msgstr ""
35228
35229 #. type: textblock
35230 #: ../src/guestfs.pod:295
35231 msgid ""
35232 "However the fastest way to upload I<large numbers of arbitrary files> is to "
35233 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
35234 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
35235 "in a predictable way (eg. adding it last after all other drives) then you "
35236 "can get the device name from L</guestfs_list_devices> and mount it directly "
35237 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
35238 "portable between kernel versions, and they don't support labels or UUIDs.  "
35239 "If you want to pre-build an image or you need to mount it using a label or "
35240 "UUID, use an ISO image instead."
35241 msgstr ""
35242
35243 #. type: =head2
35244 #: ../src/guestfs.pod:306
35245 msgid "COPYING"
35246 msgstr "КОПІЮВАННЯ"
35247
35248 #. type: textblock
35249 #: ../src/guestfs.pod:308
35250 msgid ""
35251 "There are various different commands for copying between files and devices "
35252 "and in and out of the guest filesystem.  These are summarised in the table "
35253 "below."
35254 msgstr ""
35255
35256 #. type: =item
35257 #: ../src/guestfs.pod:314
35258 msgid "B<file> to B<file>"
35259 msgstr "B<файл> у B<файл>"
35260
35261 #. type: textblock
35262 #: ../src/guestfs.pod:316
35263 msgid ""
35264 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
35265 "directories recursively."
35266 msgstr ""
35267
35268 #. type: =item
35269 #: ../src/guestfs.pod:319
35270 msgid "B<file or device> to B<file or device>"
35271 msgstr "B<файл або пристрій> у B<файл або пристрій>"
35272
35273 #. type: textblock
35274 #: ../src/guestfs.pod:321
35275 msgid ""
35276 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
35277 "devices in the guest."
35278 msgstr ""
35279
35280 #. type: textblock
35281 #: ../src/guestfs.pod:324
35282 msgid "Example: duplicate the contents of an LV:"
35283 msgstr ""
35284
35285 #. type: verbatim
35286 #: ../src/guestfs.pod:326
35287 #, no-wrap
35288 msgid ""
35289 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
35290 "\n"
35291 msgstr ""
35292 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
35293 "\n"
35294
35295 #. type: textblock
35296 #: ../src/guestfs.pod:328
35297 msgid ""
35298 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
35299 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
35300 "guestfs_copy_size>."
35301 msgstr ""
35302
35303 #. type: =item
35304 #: ../src/guestfs.pod:332
35305 msgid "B<file on the host> to B<file or device>"
35306 msgstr ""
35307
35308 #. type: textblock
35309 #: ../src/guestfs.pod:334
35310 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
35311 msgstr ""
35312
35313 #. type: =item
35314 #: ../src/guestfs.pod:336
35315 msgid "B<file or device> to B<file on the host>"
35316 msgstr ""
35317
35318 #. type: textblock
35319 #: ../src/guestfs.pod:338
35320 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
35321 msgstr ""
35322
35323 #. type: =head2
35324 #: ../src/guestfs.pod:342
35325 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
35326 msgstr ""
35327
35328 #. type: textblock
35329 #: ../src/guestfs.pod:344
35330 msgid ""
35331 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
35332 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
35333 "appears you can only upload and download to files.  However many Un*x-like "
35334 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
35335 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
35336 "and arbitrary file descriptor N."
35337 msgstr ""
35338
35339 #. type: textblock
35340 #: ../src/guestfs.pod:352
35341 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
35342 msgstr ""
35343
35344 #. type: verbatim
35345 #: ../src/guestfs.pod:355
35346 #, no-wrap
35347 msgid ""
35348 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35349 "\n"
35350 msgstr ""
35351 " guestfs_download (g, filename, \"/dev/stdout\");\n"
35352 "\n"
35353
35354 #. type: textblock
35355 #: ../src/guestfs.pod:357
35356 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
35357 msgstr ""
35358
35359 #. type: verbatim
35360 #: ../src/guestfs.pod:359
35361 #, no-wrap
35362 msgid ""
35363 " char devfd[64];\n"
35364 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35365 " guestfs_tar_out (g, \"/\", devfd);\n"
35366 "\n"
35367 msgstr ""
35368 " char devfd[64];\n"
35369 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
35370 " guestfs_tar_out (g, \"/\", devfd);\n"
35371 "\n"
35372
35373 #. type: =head2
35374 #: ../src/guestfs.pod:363
35375 msgid "LISTING FILES"
35376 msgstr "СПИСКИ ФАЙЛІВ"
35377
35378 #. type: textblock
35379 #: ../src/guestfs.pod:365
35380 msgid ""
35381 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
35382 "L<guestfish(1)>-equivalent command C<ll>)."
35383 msgstr ""
35384
35385 #. type: textblock
35386 #: ../src/guestfs.pod:368
35387 msgid ""
35388 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
35389 "programs, as a flat list of strings."
35390 msgstr ""
35391
35392 #. type: textblock
35393 #: ../src/guestfs.pod:371
35394 msgid ""
35395 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
35396 "directory, plus additional information about each one.  It is more "
35397 "equivalent to using the L<readdir(3)> call on a local filesystem."
35398 msgstr ""
35399
35400 #. type: textblock
35401 #: ../src/guestfs.pod:375
35402 msgid ""
35403 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
35404 msgstr ""
35405
35406 #. type: =head2
35407 #: ../src/guestfs.pod:378
35408 msgid "RUNNING COMMANDS"
35409 msgstr "ВИКОНАННЯ КОМАНД"
35410
35411 #. type: textblock
35412 #: ../src/guestfs.pod:380
35413 msgid ""
35414 "Although libguestfs is primarily an API for manipulating files inside guest "
35415 "images, we also provide some limited facilities for running commands inside "
35416 "guests."
35417 msgstr ""
35418
35419 #. type: textblock
35420 #: ../src/guestfs.pod:384
35421 msgid "There are many limitations to this:"
35422 msgstr ""
35423
35424 #. type: textblock
35425 #: ../src/guestfs.pod:390
35426 msgid ""
35427 "The kernel version that the command runs under will be different from what "
35428 "it expects."
35429 msgstr ""
35430
35431 #. type: textblock
35432 #: ../src/guestfs.pod:395
35433 msgid ""
35434 "If the command needs to communicate with daemons, then most likely they "
35435 "won't be running."
35436 msgstr ""
35437
35438 #. type: textblock
35439 #: ../src/guestfs.pod:400
35440 msgid "The command will be running in limited memory."
35441 msgstr ""
35442
35443 #. type: textblock
35444 #: ../src/guestfs.pod:404
35445 msgid ""
35446 "The network may not be available unless you enable it (see L</"
35447 "guestfs_set_network>)."
35448 msgstr ""
35449
35450 #. type: textblock
35451 #: ../src/guestfs.pod:409
35452 msgid "Only supports Linux guests (not Windows, BSD, etc)."
35453 msgstr ""
35454
35455 #. type: textblock
35456 #: ../src/guestfs.pod:413
35457 msgid ""
35458 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
35459 msgstr ""
35460
35461 #. type: textblock
35462 #: ../src/guestfs.pod:418
35463 msgid ""
35464 "For SELinux guests, you may need to enable SELinux and load policy first.  "
35465 "See L</SELINUX> in this manpage."
35466 msgstr ""
35467
35468 #. type: textblock
35469 #: ../src/guestfs.pod:423
35470 msgid ""
35471 "I<Security:> It is not safe to run commands from untrusted, possibly "
35472 "malicious guests.  These commands may attempt to exploit your program by "
35473 "sending unexpected output.  They could also try to exploit the Linux kernel "
35474 "or qemu provided by the libguestfs appliance.  They could use the network "
35475 "provided by the libguestfs appliance to bypass ordinary network partitions "
35476 "and firewalls.  They could use the elevated privileges or different SELinux "
35477 "context of your program to their advantage."
35478 msgstr ""
35479
35480 #. type: textblock
35481 #: ../src/guestfs.pod:432
35482 msgid ""
35483 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
35484 "(a script which runs when the guest next boots normally), and to have this "
35485 "script run the commands you want in the normal context of the running guest, "
35486 "network security and so on.  For information about other security issues, "
35487 "see L</SECURITY>."
35488 msgstr ""
35489
35490 #. type: textblock
35491 #: ../src/guestfs.pod:440
35492 msgid ""
35493 "The two main API calls to run commands are L</guestfs_command> and L</"
35494 "guestfs_sh> (there are also variations)."
35495 msgstr ""
35496
35497 #. type: textblock
35498 #: ../src/guestfs.pod:443
35499 msgid ""
35500 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
35501 "shell globs, redirections, etc will work."
35502 msgstr ""
35503
35504 #. type: =head2
35505 #: ../src/guestfs.pod:446
35506 msgid "CONFIGURATION FILES"
35507 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
35508
35509 #. type: textblock
35510 #: ../src/guestfs.pod:448
35511 msgid ""
35512 "To read and write configuration files in Linux guest filesystems, we "
35513 "strongly recommend using Augeas.  For example, Augeas understands how to "
35514 "read and write, say, a Linux shadow password file or X.org configuration "
35515 "file, and so avoids you having to write that code."
35516 msgstr ""
35517
35518 #. type: textblock
35519 #: ../src/guestfs.pod:453
35520 msgid ""
35521 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
35522 "document Augeas itself here because there is excellent documentation on the "
35523 "L<http://augeas.net/> website."
35524 msgstr ""
35525
35526 #. type: textblock
35527 #: ../src/guestfs.pod:457
35528 msgid ""
35529 "If you don't want to use Augeas (you fool!) then try calling L</"
35530 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
35531 "over."
35532 msgstr ""
35533
35534 #. type: =head2
35535 #: ../src/guestfs.pod:461
35536 msgid "SELINUX"
35537 msgstr "SELINUX"
35538
35539 #. type: textblock
35540 #: ../src/guestfs.pod:463
35541 msgid ""
35542 "We support SELinux guests.  To ensure that labeling happens correctly in "
35543 "SELinux guests, you need to enable SELinux and load the guest's policy:"
35544 msgstr ""
35545
35546 #. type: textblock
35547 #: ../src/guestfs.pod:471
35548 msgid "Before launching, do:"
35549 msgstr ""
35550
35551 #. type: verbatim
35552 #: ../src/guestfs.pod:473
35553 #, no-wrap
35554 msgid ""
35555 " guestfs_set_selinux (g, 1);\n"
35556 "\n"
35557 msgstr ""
35558 " guestfs_set_selinux (g, 1);\n"
35559 "\n"
35560
35561 #. type: textblock
35562 #: ../src/guestfs.pod:477
35563 msgid ""
35564 "After mounting the guest's filesystem(s), load the policy.  This is best "
35565 "done by running the L<load_policy(8)> command in the guest itself:"
35566 msgstr ""
35567
35568 #. type: verbatim
35569 #: ../src/guestfs.pod:481
35570 #, no-wrap
35571 msgid ""
35572 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35573 "\n"
35574 msgstr ""
35575 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
35576 "\n"
35577
35578 #. type: textblock
35579 #: ../src/guestfs.pod:483
35580 msgid ""
35581 "(Older versions of C<load_policy> require you to specify the name of the "
35582 "policy file)."
35583 msgstr ""
35584
35585 #. type: textblock
35586 #: ../src/guestfs.pod:488
35587 msgid ""
35588 "Optionally, set the security context for the API.  The correct security "
35589 "context to use can only be known by inspecting the guest.  As an example:"
35590 msgstr ""
35591
35592 #. type: verbatim
35593 #: ../src/guestfs.pod:492
35594 #, no-wrap
35595 msgid ""
35596 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35597 "\n"
35598 msgstr ""
35599 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
35600 "\n"
35601
35602 #. type: textblock
35603 #: ../src/guestfs.pod:496
35604 msgid "This will work for running commands and editing existing files."
35605 msgstr ""
35606
35607 #. type: textblock
35608 #: ../src/guestfs.pod:498
35609 msgid ""
35610 "When new files are created, you may need to label them explicitly, for "
35611 "example by running the external command C<restorecon pathname>."
35612 msgstr ""
35613
35614 #. type: =head2
35615 #: ../src/guestfs.pod:502
35616 msgid "UMASK"
35617 msgstr "UMASK"
35618
35619 #. type: textblock
35620 #: ../src/guestfs.pod:504
35621 msgid ""
35622 "Certain calls are affected by the current file mode creation mask (the "
35623 "\"umask\").  In particular ones which create files or directories, such as "
35624 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
35625 "either the default mode that the file is created with or modifies the mode "
35626 "that you supply."
35627 msgstr ""
35628
35629 #. type: textblock
35630 #: ../src/guestfs.pod:510
35631 msgid ""
35632 "The default umask is C<022>, so files are created with modes such as C<0644> "
35633 "and directories with C<0755>."
35634 msgstr ""
35635
35636 #. type: textblock
35637 #: ../src/guestfs.pod:513
35638 msgid ""
35639 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
35640 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
35641 "guestfs_chmod> after creating each file or directory."
35642 msgstr ""
35643
35644 #. type: textblock
35645 #: ../src/guestfs.pod:517
35646 msgid "For more information about umask, see L<umask(2)>."
35647 msgstr ""
35648
35649 #. type: textblock
35650 #: ../src/guestfs.pod:521
35651 msgid ""
35652 "Libguestfs allows you to access Linux guests which have been encrypted using "
35653 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
35654 "standard.  This includes nearly all whole disk encryption systems used by "
35655 "modern Linux guests."
35656 msgstr ""
35657
35658 #. type: textblock
35659 #: ../src/guestfs.pod:527
35660 msgid ""
35661 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
35662 "returns the string C<crypto_LUKS>)."
35663 msgstr ""
35664
35665 #. type: textblock
35666 #: ../src/guestfs.pod:530
35667 msgid ""
35668 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
35669 "will require the passphrase!"
35670 msgstr ""
35671
35672 #. type: textblock
35673 #: ../src/guestfs.pod:533
35674 msgid ""
35675 "Opening a LUKS device creates a new device mapper device called C</dev/"
35676 "mapper/mapname> (where C<mapname> is the string you supply to L</"
35677 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
35678 "from and encrypted to the underlying block device respectively."
35679 msgstr ""
35680
35681 #. type: textblock
35682 #: ../src/guestfs.pod:539
35683 msgid ""
35684 "LVM volume groups on the device can be made visible by calling L</"
35685 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
35686 "(s) can now be mounted in the usual way."
35687 msgstr ""
35688
35689 #. type: textblock
35690 #: ../src/guestfs.pod:543
35691 msgid ""
35692 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
35693 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35694 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
35695 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35696 "underlying encrypted block device)."
35697 msgstr ""
35698
35699 #. type: =head2
35700 #: ../src/guestfs.pod:550
35701 msgid "INSPECTION"
35702 msgstr "ПЕРЕВІРКА"
35703
35704 #. type: textblock
35705 #: ../src/guestfs.pod:552
35706 msgid ""
35707 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35708 "contains operating systems, an install CD or a live CD.  (These APIs used to "
35709 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35710 "version 1.5.3 the most frequently used part of this library has been "
35711 "rewritten in C and moved into the core code)."
35712 msgstr ""
35713
35714 #. type: textblock
35715 #: ../src/guestfs.pod:559
35716 msgid ""
35717 "Add all disks belonging to the unknown virtual machine and call L</"
35718 "guestfs_launch> in the usual way."
35719 msgstr ""
35720
35721 #. type: textblock
35722 #: ../src/guestfs.pod:562
35723 msgid ""
35724 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
35725 "and certain heuristics, and returns a list of operating systems that were "
35726 "found.  An empty list means none were found.  A single element is the root "
35727 "filesystem of the operating system.  For dual- or multi-boot guests, "
35728 "multiple roots can be returned, each one corresponding to a separate "
35729 "operating system.  (Multi-boot virtual machines are extremely rare in the "
35730 "world of virtualization, but since this scenario can happen, we have built "
35731 "libguestfs to deal with it.)"
35732 msgstr ""
35733
35734 #. type: textblock
35735 #: ../src/guestfs.pod:571
35736 msgid ""
35737 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
35738 "to get additional details about that operating system.  For example, call L</"
35739 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
35740 "Windows and Linux-based operating systems respectively."
35741 msgstr ""
35742
35743 #. type: textblock
35744 #: ../src/guestfs.pod:577
35745 msgid ""
35746 "Un*x-like and Linux-based operating systems usually consist of several "
35747 "filesystems which are mounted at boot time (for example, a separate boot "
35748 "partition mounted on C</boot>).  The inspection rules are able to detect how "
35749 "filesystems correspond to mount points.  Call "
35750 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
35751 "hash table like this example:"
35752 msgstr ""
35753
35754 #. type: verbatim
35755 #: ../src/guestfs.pod:584
35756 #, no-wrap
35757 msgid ""
35758 " /boot => /dev/sda1\n"
35759 " /     => /dev/vg_guest/lv_root\n"
35760 " /usr  => /dev/vg_guest/lv_usr\n"
35761 "\n"
35762 msgstr ""
35763 " /boot => /dev/sda1\n"
35764 " /     => /dev/vg_guest/lv_root\n"
35765 " /usr  => /dev/vg_guest/lv_usr\n"
35766 "\n"
35767
35768 #. type: textblock
35769 #: ../src/guestfs.pod:588
35770 msgid ""
35771 "The caller can then make calls to L</guestfs_mount_options> to mount the "
35772 "filesystems as suggested."
35773 msgstr ""
35774
35775 #. type: textblock
35776 #: ../src/guestfs.pod:591
35777 msgid ""
35778 "Be careful to mount filesystems in the right order (eg. C</> before C</"
35779 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
35780 msgstr ""
35781
35782 #. type: textblock
35783 #: ../src/guestfs.pod:595
35784 msgid ""
35785 "Inspection currently only works for some common operating systems.  "
35786 "Contributors are welcome to send patches for other operating systems that we "
35787 "currently cannot detect."
35788 msgstr ""
35789
35790 #. type: textblock
35791 #: ../src/guestfs.pod:599
35792 msgid ""
35793 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
35794 "for more details.  The L</guestfs_inspect_os> function just ignores any "
35795 "encrypted devices."
35796 msgstr ""
35797
35798 #. type: textblock
35799 #: ../src/guestfs.pod:603
35800 msgid ""
35801 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35802 "inspection and caches the results in the guest handle.  Subsequent calls to "
35803 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
35804 "read the disks.  If you change the content of the guest disks, you can redo "
35805 "inspection by calling L</guestfs_inspect_os> again.  (L</"
35806 "guestfs_inspect_list_applications> works a little differently from the other "
35807 "calls and does read the disks.  See documentation for that function for "
35808 "details)."
35809 msgstr ""
35810
35811 #. type: =head3
35812 #: ../src/guestfs.pod:612
35813 msgid "INSPECTING INSTALL DISKS"
35814 msgstr ""
35815
35816 #. type: textblock
35817 #: ../src/guestfs.pod:614
35818 msgid ""
35819 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35820 "CDs and more."
35821 msgstr ""
35822
35823 #. type: textblock
35824 #: ../src/guestfs.pod:617
35825 msgid ""
35826 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35827 "system, which currently can be C<installed> (a regular operating system) or "
35828 "C<installer> (some sort of install disk)."
35829 msgstr ""
35830
35831 #. type: textblock
35832 #: ../src/guestfs.pod:621
35833 msgid ""
35834 "Further information is available about the operating system that can be "
35835 "installed using the regular inspection APIs like L</"
35836 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
35837 msgstr ""
35838
35839 #. type: textblock
35840 #: ../src/guestfs.pod:626
35841 msgid ""
35842 "Some additional information specific to installer disks is also available "
35843 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
35844 "guestfs_inspect_is_multipart> calls."
35845 msgstr ""
35846
35847 #. type: =head2
35848 #: ../src/guestfs.pod:631
35849 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
35850 msgstr ""
35851
35852 #. type: textblock
35853 #: ../src/guestfs.pod:633
35854 msgid ""
35855 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
35856 "ntfs-3g.org/> driver."
35857 msgstr ""
35858
35859 #. type: =head3
35860 #: ../src/guestfs.pod:636
35861 msgid "DRIVE LETTERS AND PATHS"
35862 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
35863
35864 #. type: textblock
35865 #: ../src/guestfs.pod:638
35866 msgid ""
35867 "DOS and Windows still use drive letters, and the filesystems are always "
35868 "treated as case insensitive by Windows itself, and therefore you might find "
35869 "a Windows configuration file referring to a path like C<c:\\windows"
35870 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
35871 "might be referred to as C</WINDOWS/System32>."
35872 msgstr ""
35873
35874 #. type: textblock
35875 #: ../src/guestfs.pod:644
35876 msgid ""
35877 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
35878 "L</guestfs_inspect_get_drive_mappings>)"
35879 msgstr ""
35880
35881 #. type: textblock
35882 #: ../src/guestfs.pod:647
35883 msgid ""
35884 "Dealing with separator characters (backslash vs forward slash) is outside "
35885 "the scope of libguestfs, but usually a simple character replacement will "
35886 "work."
35887 msgstr ""
35888
35889 #. type: textblock
35890 #: ../src/guestfs.pod:651
35891 msgid ""
35892 "To resolve the case insensitivity of paths, call L</"
35893 "guestfs_case_sensitive_path>."
35894 msgstr ""
35895
35896 #. type: =head3
35897 #: ../src/guestfs.pod:654
35898 msgid "ACCESSING THE WINDOWS REGISTRY"
35899 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
35900
35901 #. type: textblock
35902 #: ../src/guestfs.pod:656
35903 msgid ""
35904 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
35905 "files, through the library C<hivex> which is part of the libguestfs project "
35906 "although ships as a separate tarball.  You have to locate and download the "
35907 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
35908 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
35909 "reg(1)> for more help on this issue."
35910 msgstr ""
35911
35912 #. type: =head3
35913 #: ../src/guestfs.pod:664
35914 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
35915 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
35916
35917 #. type: textblock
35918 #: ../src/guestfs.pod:666
35919 msgid ""
35920 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
35921 "provide something which looks like a Linux symlink.  The way it tries to do "
35922 "the rewriting is described here:"
35923 msgstr ""
35924
35925 #. type: textblock
35926 #: ../src/guestfs.pod:670
35927 msgid ""
35928 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35929 "symbolic-links/>"
35930 msgstr ""
35931 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35932 "symbolic-links/>"
35933
35934 #. type: textblock
35935 #: ../src/guestfs.pod:672
35936 msgid ""
35937 "The essential problem is that ntfs-3g simply does not have enough "
35938 "information to do a correct job.  NTFS links can contain drive letters and "
35939 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
35940 "It is almost certainly the case that libguestfs callers should ignore what "
35941 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
35942 msgstr ""
35943
35944 #. type: textblock
35945 #: ../src/guestfs.pod:679
35946 msgid ""
35947 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
35948 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
35949 "attribute, and read the raw reparse data from that (you can find the format "
35950 "documented in various places around the web)."
35951 msgstr ""
35952
35953 #. type: =head3
35954 #: ../src/guestfs.pod:684
35955 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
35956 msgstr ""
35957
35958 #. type: textblock
35959 #: ../src/guestfs.pod:686
35960 msgid ""
35961 "There are other useful extended attributes that can be read from ntfs-3g "
35962 "filesystems (using L</guestfs_getxattr>).  See:"
35963 msgstr ""
35964
35965 #. type: textblock
35966 #: ../src/guestfs.pod:689
35967 msgid ""
35968 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35969 msgstr ""
35970 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35971
35972 #. type: =head2
35973 #: ../src/guestfs.pod:691
35974 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
35975 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
35976
35977 #. type: textblock
35978 #: ../src/guestfs.pod:693
35979 msgid ""
35980 "Although we don't want to discourage you from using the C API, we will "
35981 "mention here that the same API is also available in other languages."
35982 msgstr ""
35983
35984 #. type: textblock
35985 #: ../src/guestfs.pod:696
35986 msgid ""
35987 "The API is broadly identical in all supported languages.  This means that "
35988 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
35989 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
35990 "OCaml.  In other words, a straightforward, predictable isomorphism between "
35991 "each language."
35992 msgstr ""
35993
35994 #. type: textblock
35995 #: ../src/guestfs.pod:702
35996 msgid ""
35997 "Error messages are automatically transformed into exceptions if the language "
35998 "supports it."
35999 msgstr ""
36000
36001 #. type: textblock
36002 #: ../src/guestfs.pod:705
36003 msgid ""
36004 "We don't try to \"object orientify\" parts of the API in OO languages, "
36005 "although contributors are welcome to write higher level APIs above what we "
36006 "provide in their favourite languages if they wish."
36007 msgstr ""
36008
36009 #. type: =item
36010 #: ../src/guestfs.pod:711
36011 msgid "B<C++>"
36012 msgstr "B<C++>"
36013
36014 #. type: textblock
36015 #: ../src/guestfs.pod:713
36016 msgid ""
36017 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
36018 "identical to the C API.  C++ classes and exceptions are not used."
36019 msgstr ""
36020
36021 #. type: =item
36022 #: ../src/guestfs.pod:717
36023 msgid "B<C#>"
36024 msgstr "B<C#>"
36025
36026 #. type: textblock
36027 #: ../src/guestfs.pod:719
36028 msgid ""
36029 "The C# bindings are highly experimental.  Please read the warnings at the "
36030 "top of C<csharp/Libguestfs.cs>."
36031 msgstr ""
36032
36033 #. type: =item
36034 #: ../src/guestfs.pod:722
36035 msgid "B<Erlang>"
36036 msgstr ""
36037
36038 #. type: textblock
36039 #: ../src/guestfs.pod:724
36040 msgid "See L<guestfs-erlang(3)>."
36041 msgstr ""
36042
36043 #. type: =item
36044 #: ../src/guestfs.pod:726
36045 msgid "B<Haskell>"
36046 msgstr "B<Haskell>"
36047
36048 #. type: textblock
36049 #: ../src/guestfs.pod:728
36050 msgid ""
36051 "This is the only language binding that is working but incomplete.  Only "
36052 "calls which return simple integers have been bound in Haskell, and we are "
36053 "looking for help to complete this binding."
36054 msgstr ""
36055
36056 #. type: =item
36057 #: ../src/guestfs.pod:732
36058 msgid "B<Java>"
36059 msgstr "B<Java>"
36060
36061 #. type: textblock
36062 #: ../src/guestfs.pod:734
36063 msgid ""
36064 "Full documentation is contained in the Javadoc which is distributed with "
36065 "libguestfs.  For examples, see L<guestfs-java(3)>."
36066 msgstr ""
36067
36068 #. type: =item
36069 #: ../src/guestfs.pod:737
36070 msgid "B<OCaml>"
36071 msgstr "B<OCaml>"
36072
36073 #. type: textblock
36074 #: ../src/guestfs.pod:739
36075 msgid "See L<guestfs-ocaml(3)>."
36076 msgstr "Див. L<guestfs-ocaml(3)>."
36077
36078 #. type: =item
36079 #: ../src/guestfs.pod:741
36080 msgid "B<Perl>"
36081 msgstr "B<Perl>"
36082
36083 #. type: textblock
36084 #: ../src/guestfs.pod:743
36085 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
36086 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
36087
36088 #. type: =item
36089 #: ../src/guestfs.pod:745
36090 msgid "B<PHP>"
36091 msgstr "B<PHP>"
36092
36093 #. type: textblock
36094 #: ../src/guestfs.pod:747
36095 msgid ""
36096 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
36097 "the php-libguestfs package for your distribution."
36098 msgstr ""
36099
36100 #. type: textblock
36101 #: ../src/guestfs.pod:750
36102 msgid "The PHP binding only works correctly on 64 bit machines."
36103 msgstr ""
36104
36105 #. type: =item
36106 #: ../src/guestfs.pod:752
36107 msgid "B<Python>"
36108 msgstr "B<Python>"
36109
36110 #. type: textblock
36111 #: ../src/guestfs.pod:754
36112 msgid "See L<guestfs-python(3)>."
36113 msgstr "Див. L<guestfs-python(3)>."
36114
36115 #. type: =item
36116 #: ../src/guestfs.pod:756
36117 msgid "B<Ruby>"
36118 msgstr "B<Ruby>"
36119
36120 #. type: textblock
36121 #: ../src/guestfs.pod:758
36122 msgid "See L<guestfs-ruby(3)>."
36123 msgstr "Див. L<guestfs-ruby(3)>."
36124
36125 #. type: =item
36126 #: ../src/guestfs.pod:760
36127 msgid "B<shell scripts>"
36128 msgstr "B<скрипти оболонки>"
36129
36130 #. type: textblock
36131 #: ../src/guestfs.pod:762
36132 msgid "See L<guestfish(1)>."
36133 msgstr "Див. L<guestfish(1)>."
36134
36135 #. type: =head2
36136 #: ../src/guestfs.pod:766
36137 msgid "LIBGUESTFS GOTCHAS"
36138 msgstr ""
36139
36140 #. type: textblock
36141 #: ../src/guestfs.pod:768
36142 msgid ""
36143 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
36144 "system [...] that works in the way it is documented but is counterintuitive "
36145 "and almost invites mistakes.\""
36146 msgstr ""
36147
36148 #. type: textblock
36149 #: ../src/guestfs.pod:772
36150 msgid ""
36151 "Since we developed libguestfs and the associated tools, there are several "
36152 "things we would have designed differently, but are now stuck with for "
36153 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
36154 "release, you can expect these to change.  Beware of them."
36155 msgstr ""
36156
36157 #. type: =item
36158 #: ../src/guestfs.pod:780
36159 msgid "Autosync / forgetting to sync."
36160 msgstr ""
36161
36162 #. type: textblock
36163 #: ../src/guestfs.pod:782
36164 msgid ""
36165 "I<Update:> Autosync is enabled by default for all API users starting from "
36166 "libguestfs 1.5.24.  This section only applies to older versions."
36167 msgstr ""
36168
36169 #. type: textblock
36170 #: ../src/guestfs.pod:785
36171 msgid ""
36172 "When modifying a filesystem from C or another language, you B<must> unmount "
36173 "all filesystems and call L</guestfs_sync> explicitly before you close the "
36174 "libguestfs handle.  You can also call:"
36175 msgstr ""
36176
36177 #. type: verbatim
36178 #: ../src/guestfs.pod:789
36179 #, no-wrap
36180 msgid ""
36181 " guestfs_set_autosync (g, 1);\n"
36182 "\n"
36183 msgstr ""
36184 " guestfs_set_autosync (g, 1);\n"
36185 "\n"
36186
36187 #. type: textblock
36188 #: ../src/guestfs.pod:791
36189 msgid ""
36190 "to have the unmount/sync done automatically for you when the handle 'g' is "
36191 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
36192 msgstr ""
36193
36194 #. type: textblock
36195 #: ../src/guestfs.pod:795
36196 msgid ""
36197 "If you forget to do this, then it is entirely possible that your changes "
36198 "won't be written out, or will be partially written, or (very rarely) that "
36199 "you'll get disk corruption."
36200 msgstr ""
36201
36202 #. type: textblock
36203 #: ../src/guestfs.pod:799
36204 msgid ""
36205 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
36206 "guestfish scripts that forget to sync will work just fine, which can make "
36207 "this very puzzling if you are trying to debug a problem."
36208 msgstr ""
36209
36210 #. type: =item
36211 #: ../src/guestfs.pod:803
36212 msgid "Mount option C<-o sync> should not be the default."
36213 msgstr ""
36214
36215 #. type: textblock
36216 #: ../src/guestfs.pod:805
36217 msgid ""
36218 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
36219 "libguestfs 1.13.16.  This section only applies to older versions."
36220 msgstr ""
36221
36222 #. type: textblock
36223 #: ../src/guestfs.pod:808
36224 msgid ""
36225 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
36226 "However C<-o sync> does not add any reliability benefit, but does have a "
36227 "very large performance impact."
36228 msgstr ""
36229
36230 #. type: textblock
36231 #: ../src/guestfs.pod:812
36232 msgid ""
36233 "The work around is to use L</guestfs_mount_options> and set the mount "
36234 "options that you actually want to use."
36235 msgstr ""
36236
36237 #. type: =item
36238 #: ../src/guestfs.pod:815
36239 msgid "Read-only should be the default."
36240 msgstr ""
36241
36242 #. type: textblock
36243 #: ../src/guestfs.pod:817
36244 msgid ""
36245 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
36246 "specify I<--rw> if you want to make changes to the image."
36247 msgstr ""
36248
36249 #. type: textblock
36250 #: ../src/guestfs.pod:820
36251 msgid "This would reduce the potential to corrupt live VM images."
36252 msgstr ""
36253
36254 #. type: textblock
36255 #: ../src/guestfs.pod:822
36256 msgid ""
36257 "Note that many filesystems change the disk when you just mount and unmount, "
36258 "even if you didn't perform any writes.  You need to use L</"
36259 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
36260 msgstr ""
36261
36262 #. type: =item
36263 #: ../src/guestfs.pod:826
36264 msgid "guestfish command line is hard to use."
36265 msgstr ""
36266
36267 #. type: textblock
36268 #: ../src/guestfs.pod:828
36269 msgid ""
36270 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
36271 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
36272 "exist, so it fails.  In earlier versions of guestfish the error message was "
36273 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
36274 "we should have used C<guestfish -c command> to run commands."
36275 msgstr ""
36276
36277 #. type: =item
36278 #: ../src/guestfs.pod:835
36279 msgid "guestfish megabyte modifiers don't work right on all commands"
36280 msgstr ""
36281
36282 #. type: textblock
36283 #: ../src/guestfs.pod:837
36284 msgid ""
36285 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
36286 "other modifiers).  What guestfish actually does is to multiply the number "
36287 "part by the modifier part and pass the result to the C API.  However this "
36288 "doesn't work for a few APIs which aren't expecting bytes, but are already "
36289 "expecting some other unit (eg. megabytes)."
36290 msgstr ""
36291
36292 #. type: textblock
36293 #: ../src/guestfs.pod:844
36294 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
36295 msgstr ""
36296
36297 #. type: verbatim
36298 #: ../src/guestfs.pod:846
36299 #, no-wrap
36300 msgid ""
36301 " lvcreate LV VG 100M\n"
36302 "\n"
36303 msgstr ""
36304 " lvcreate LV VG 100M\n"
36305 "\n"
36306
36307 #. type: textblock
36308 #: ../src/guestfs.pod:848
36309 msgid ""
36310 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
36311 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
36312 "megabytes * megabytes) logical volume.  The error message you get from this "
36313 "is also a little obscure."
36314 msgstr ""
36315
36316 #. type: textblock
36317 #: ../src/guestfs.pod:853
36318 msgid ""
36319 "This could be fixed in the generator by specially marking parameters and "
36320 "return values which take bytes or other units."
36321 msgstr ""
36322
36323 #. type: =item
36324 #: ../src/guestfs.pod:856
36325 msgid "Ambiguity between devices and paths"
36326 msgstr ""
36327
36328 #. type: textblock
36329 #: ../src/guestfs.pod:858
36330 msgid ""
36331 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
36332 "sdb2>) and a similar pathname.  A file might just happen to be called "
36333 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
36334 msgstr ""
36335
36336 #. type: textblock
36337 #: ../src/guestfs.pod:863
36338 msgid ""
36339 "In the current API we usually resolve this ambiguity by having two separate "
36340 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
36341 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
36342 "detecting if the path supplied begins with C</dev/>."
36343 msgstr ""
36344
36345 #. type: textblock
36346 #: ../src/guestfs.pod:869
36347 msgid ""
36348 "To avoid both the ambiguity and the need to duplicate some calls, we could "
36349 "make paths/devices into structured names.  One way to do this would be to "
36350 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
36351 "aspect of grub.  Another way would be to use a structured type, equivalent "
36352 "to this OCaml type:"
36353 msgstr ""
36354
36355 #. type: verbatim
36356 #: ../src/guestfs.pod:875
36357 #, no-wrap
36358 msgid ""
36359 " type path = Path of string | Device of int | Partition of int * int\n"
36360 "\n"
36361 msgstr ""
36362
36363 #. type: textblock
36364 #: ../src/guestfs.pod:877
36365 msgid "which would allow you to pass arguments like:"
36366 msgstr ""
36367
36368 #. type: verbatim
36369 #: ../src/guestfs.pod:879
36370 #, no-wrap
36371 msgid ""
36372 " Path \"/foo/bar\"\n"
36373 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
36374 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
36375 " Path \"/dev/sdb2\"    (* not a device *)\n"
36376 "\n"
36377 msgstr ""
36378
36379 #. type: textblock
36380 #: ../src/guestfs.pod:884
36381 msgid ""
36382 "As you can see there are still problems to resolve even with this "
36383 "representation.  Also consider how it might work in guestfish."
36384 msgstr ""
36385
36386 #. type: =head2
36387 #: ../src/guestfs.pod:889
36388 msgid "KEYS AND PASSPHRASES"
36389 msgstr "КЛЮЧІ І ПАРОЛІ"
36390
36391 #. type: textblock
36392 #: ../src/guestfs.pod:891
36393 msgid ""
36394 "Certain libguestfs calls take a parameter that contains sensitive key "
36395 "material, passed in as a C string."
36396 msgstr ""
36397
36398 #. type: textblock
36399 #: ../src/guestfs.pod:894
36400 msgid ""
36401 "In the future we would hope to change the libguestfs implementation so that "
36402 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
36403 "swap.  However this is I<not> done at the moment, because of the complexity "
36404 "of such an implementation."
36405 msgstr ""
36406
36407 #. type: textblock
36408 #: ../src/guestfs.pod:899
36409 msgid ""
36410 "Therefore you should be aware that any key parameter you pass to libguestfs "
36411 "might end up being written out to the swap partition.  If this is a concern, "
36412 "scrub the swap partition or don't use libguestfs on encrypted devices."
36413 msgstr ""
36414
36415 #. type: =head2
36416 #: ../src/guestfs.pod:904
36417 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
36418 msgstr ""
36419
36420 #. type: textblock
36421 #: ../src/guestfs.pod:906
36422 msgid ""
36423 "All high-level libguestfs actions are synchronous.  If you want to use "
36424 "libguestfs asynchronously then you must create a thread."
36425 msgstr ""
36426
36427 #. type: textblock
36428 #: ../src/guestfs.pod:909
36429 msgid ""
36430 "Only use the handle from a single thread.  Either use the handle exclusively "
36431 "from one thread, or provide your own mutex so that two threads cannot issue "
36432 "calls on the same handle at the same time."
36433 msgstr ""
36434
36435 #. type: textblock
36436 #: ../src/guestfs.pod:913
36437 msgid ""
36438 "See the graphical program guestfs-browser for one possible architecture for "
36439 "multithreaded programs using libvirt and libguestfs."
36440 msgstr ""
36441
36442 #. type: =head2
36443 #: ../src/guestfs.pod:916
36444 msgid "PATH"
36445 msgstr "ШЛЯХ"
36446
36447 #. type: textblock
36448 #: ../src/guestfs.pod:918
36449 msgid ""
36450 "Libguestfs needs a supermin appliance, which it finds by looking along an "
36451 "internal path."
36452 msgstr ""
36453
36454 #. type: textblock
36455 #: ../src/guestfs.pod:921
36456 msgid ""
36457 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
36458 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
36459 msgstr ""
36460
36461 #. type: textblock
36462 #: ../src/guestfs.pod:924
36463 msgid ""
36464 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
36465 "to change the directories that libguestfs will search in.  The value is a "
36466 "colon-separated list of paths.  The current directory is I<not> searched "
36467 "unless the path contains an empty element or C<.>.  For example "
36468 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
36469 "then C</usr/lib/guestfs>."
36470 msgstr ""
36471
36472 #. type: =head2
36473 #: ../src/guestfs.pod:931
36474 msgid "QEMU WRAPPERS"
36475 msgstr ""
36476
36477 #. type: textblock
36478 #: ../src/guestfs.pod:933
36479 msgid ""
36480 "If you want to compile your own qemu, run qemu from a non-standard location, "
36481 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
36482 "around qemu."
36483 msgstr ""
36484
36485 #. type: textblock
36486 #: ../src/guestfs.pod:937
36487 msgid ""
36488 "There is one important rule to remember: you I<must C<exec qemu>> as the "
36489 "last command in the shell script (so that qemu replaces the shell and "
36490 "becomes the direct child of the libguestfs-using program).  If you don't do "
36491 "this, then the qemu process won't be cleaned up correctly."
36492 msgstr ""
36493
36494 #. type: textblock
36495 #: ../src/guestfs.pod:942
36496 msgid ""
36497 "Here is an example of a wrapper, where I have built my own copy of qemu from "
36498 "source:"
36499 msgstr ""
36500
36501 #. type: verbatim
36502 #: ../src/guestfs.pod:945
36503 #, no-wrap
36504 msgid ""
36505 " #!/bin/sh -\n"
36506 " qemudir=/home/rjones/d/qemu\n"
36507 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36508 "\n"
36509 msgstr ""
36510 " #!/bin/sh -\n"
36511 " qemudir=/home/rjones/d/qemu\n"
36512 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
36513 "\n"
36514
36515 #. type: textblock
36516 #: ../src/guestfs.pod:949
36517 msgid ""
36518 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
36519 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
36520 "example:"
36521 msgstr ""
36522
36523 #. type: verbatim
36524 #: ../src/guestfs.pod:953
36525 #, no-wrap
36526 msgid ""
36527 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36528 "\n"
36529 msgstr ""
36530 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
36531 "\n"
36532
36533 #. type: textblock
36534 #: ../src/guestfs.pod:955
36535 msgid ""
36536 "Note that libguestfs also calls qemu with the -help and -version options in "
36537 "order to determine features."
36538 msgstr ""
36539
36540 #. type: textblock
36541 #: ../src/guestfs.pod:958
36542 msgid ""
36543 "Wrappers can also be used to edit the options passed to qemu.  In the "
36544 "following example, the C<-machine ...> option (C<-machine> and the following "
36545 "argument) are removed from the command line and replaced with C<-machine pc,"
36546 "accel=tcg>.  The while loop iterates over the options until it finds the "
36547 "right one to remove, putting the remaining options into the C<args> array."
36548 msgstr ""
36549
36550 #. type: verbatim
36551 #: ../src/guestfs.pod:967
36552 #, no-wrap
36553 msgid ""
36554 " i=0\n"
36555 " while [ $# -gt 0 ]; do\n"
36556 "     case \"$1\" in\n"
36557 "     -machine)\n"
36558 "         shift 2;;\n"
36559 "     *)\n"
36560 "         args[i]=\"$1\"\n"
36561 "         (( i++ ))\n"
36562 "         shift ;;\n"
36563 "     esac\n"
36564 " done\n"
36565 " \n"
36566 msgstr ""
36567
36568 #. type: verbatim
36569 #: ../src/guestfs.pod:979
36570 #, no-wrap
36571 msgid ""
36572 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
36573 "\n"
36574 msgstr ""
36575
36576 #. type: =head2
36577 #: ../src/guestfs.pod:981
36578 msgid "ATTACHING TO RUNNING DAEMONS"
36579 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
36580
36581 #. type: textblock
36582 #: ../src/guestfs.pod:983
36583 msgid ""
36584 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
36585 "babies.  Use with caution."
36586 msgstr ""
36587
36588 #. type: textblock
36589 #: ../src/guestfs.pod:986
36590 msgid ""
36591 "I<Note (2):> This section explains how to attach to a running daemon from a "
36592 "low level perspective.  For most users, simply using virt tools such as "
36593 "L<guestfish(1)> with the I<--live> option will \"just work\"."
36594 msgstr ""
36595
36596 #. type: =head3
36597 #: ../src/guestfs.pod:990
36598 msgid "Using guestfs_set_attach_method"
36599 msgstr "За допомогою guestfs_set_attach_method"
36600
36601 #. type: textblock
36602 #: ../src/guestfs.pod:992
36603 msgid ""
36604 "By calling L</guestfs_set_attach_method> you can change how the library "
36605 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
36606 "ARCHITECTURE> for some background)."
36607 msgstr ""
36608
36609 #. type: textblock
36610 #: ../src/guestfs.pod:996
36611 msgid ""
36612 "The normal attach method is C<appliance>, where a small appliance is created "
36613 "containing the daemon, and then the library connects to this."
36614 msgstr ""
36615
36616 #. type: textblock
36617 #: ../src/guestfs.pod:999
36618 msgid ""
36619 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
36620 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
36621 "daemon over the Unix domain socket."
36622 msgstr ""
36623
36624 #. type: textblock
36625 #: ../src/guestfs.pod:1003
36626 msgid ""
36627 "The normal use for this is to connect to a running virtual machine that "
36628 "contains a C<guestfsd> daemon, and send commands so you can read and write "
36629 "files inside the live virtual machine."
36630 msgstr ""
36631
36632 #. type: =head3
36633 #: ../src/guestfs.pod:1007
36634 msgid "Using guestfs_add_domain with live flag"
36635 msgstr "За допомогою guestfs_add_domain з прапорцем live"
36636
36637 #. type: textblock
36638 #: ../src/guestfs.pod:1009
36639 msgid ""
36640 "L</guestfs_add_domain> provides some help for getting the correct attach "
36641 "method.  If you pass the C<live> option to this function, then (if the "
36642 "virtual machine is running) it will examine the libvirt XML looking for a "
36643 "virtio-serial channel to connect to:"
36644 msgstr ""
36645
36646 #. type: verbatim
36647 #: ../src/guestfs.pod:1015
36648 #, no-wrap
36649 msgid ""
36650 " <domain>\n"
36651 "   ...\n"
36652 "   <devices>\n"
36653 "     ...\n"
36654 "     <channel type='unix'>\n"
36655 "       <source mode='bind' path='/path/to/socket'/>\n"
36656 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36657 "     </channel>\n"
36658 "     ...\n"
36659 "   </devices>\n"
36660 " </domain>\n"
36661 "\n"
36662 msgstr ""
36663 " <domain>\n"
36664 "   ...\n"
36665 "   <devices>\n"
36666 "     ...\n"
36667 "     <channel type='unix'>\n"
36668 "       <source mode='bind' path='/path/to/socket'/>\n"
36669 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36670 "     </channel>\n"
36671 "     ...\n"
36672 "   </devices>\n"
36673 " </domain>\n"
36674 "\n"
36675
36676 #. type: textblock
36677 #: ../src/guestfs.pod:1027
36678 msgid ""
36679 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36680 "method to C<unix:/path/to/socket>."
36681 msgstr ""
36682
36683 #. type: textblock
36684 #: ../src/guestfs.pod:1030
36685 msgid ""
36686 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36687 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36688 "to attach to and modify live virtual machines."
36689 msgstr ""
36690
36691 #. type: textblock
36692 #: ../src/guestfs.pod:1034
36693 msgid ""
36694 "The virtual machine needs to have been set up beforehand so that it has the "
36695 "virtio-serial channel and so that guestfsd is running inside it."
36696 msgstr ""
36697
36698 #. type: =head2
36699 #: ../src/guestfs.pod:1038
36700 msgid "ABI GUARANTEE"
36701 msgstr "ГАРАНТІЯ ЩОДО ABI"
36702
36703 #. type: textblock
36704 #: ../src/guestfs.pod:1040
36705 msgid ""
36706 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36707 "actions as outlined in this section.  Although we will deprecate some "
36708 "actions, for example if they get replaced by newer calls, we will keep the "
36709 "old actions forever.  This allows you the developer to program in confidence "
36710 "against the libguestfs API."
36711 msgstr ""
36712
36713 #. type: =head2
36714 #: ../src/guestfs.pod:1046
36715 msgid "BLOCK DEVICE NAMING"
36716 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
36717
36718 #. type: textblock
36719 #: ../src/guestfs.pod:1048
36720 msgid ""
36721 "In the kernel there is now quite a profusion of schemata for naming block "
36722 "devices (in this context, by I<block device> I mean a physical or virtual "
36723 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
36724 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
36725 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
36726 "for the old IDE driver (particularly for SATA devices) those devices also "
36727 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
36728 "paravirtualized drivers.  This has created several different naming systems, "
36729 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
36730 msgstr ""
36731
36732 #. type: textblock
36733 #: ../src/guestfs.pod:1060
36734 msgid ""
36735 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36736 "Linux kernel to access block devices.  We can run a variety of appliances "
36737 "based on a variety of Linux kernels."
36738 msgstr ""
36739
36740 #. type: textblock
36741 #: ../src/guestfs.pod:1064
36742 msgid ""
36743 "This causes a problem for libguestfs because many API calls use device or "
36744 "partition names.  Working scripts and the recipe (example) scripts that we "
36745 "make available over the internet could fail if the naming scheme changes."
36746 msgstr ""
36747
36748 #. type: textblock
36749 #: ../src/guestfs.pod:1069
36750 msgid ""
36751 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
36752 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
36753 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
36754 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36755 msgstr ""
36756
36757 #. type: textblock
36758 #: ../src/guestfs.pod:1075
36759 msgid ""
36760 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
36761 "L</guestfs_list_partitions> and similar calls return the true names of the "
36762 "devices and partitions as known to the appliance."
36763 msgstr ""
36764
36765 #. type: =head3
36766 #: ../src/guestfs.pod:1080
36767 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
36768 msgstr ""
36769
36770 #. type: textblock
36771 #: ../src/guestfs.pod:1082
36772 msgid ""
36773 "Usually this translation is transparent.  However in some (very rare)  cases "
36774 "you may need to know the exact algorithm.  Such cases include where you use "
36775 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
36776 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
36777 msgstr ""
36778
36779 #. type: textblock
36780 #: ../src/guestfs.pod:1088
36781 msgid ""
36782 "The algorithm is applied only to I<parameters> which are known to be either "
36783 "device or partition names.  Return values from functions such as L</"
36784 "guestfs_list_devices> are never changed."
36785 msgstr ""
36786
36787 #. type: textblock
36788 #: ../src/guestfs.pod:1096
36789 msgid "Is the string a parameter which is a device or partition name?"
36790 msgstr ""
36791
36792 #. type: textblock
36793 #: ../src/guestfs.pod:1100
36794 msgid "Does the string begin with C</dev/sd>?"
36795 msgstr "Чи починається рядок з C</dev/sd>?"
36796
36797 #. type: textblock
36798 #: ../src/guestfs.pod:1104
36799 msgid ""
36800 "Does the named device exist? If so, we use that device.  However if I<not> "
36801 "then we continue with this algorithm."
36802 msgstr ""
36803
36804 #. type: textblock
36805 #: ../src/guestfs.pod:1109
36806 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36807 msgstr ""
36808
36809 #. type: textblock
36810 #: ../src/guestfs.pod:1111
36811 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36812 msgstr ""
36813
36814 #. type: textblock
36815 #: ../src/guestfs.pod:1113
36816 msgid "If that named device exists, use it.  If not, continue."
36817 msgstr ""
36818
36819 #. type: textblock
36820 #: ../src/guestfs.pod:1117
36821 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36822 msgstr ""
36823
36824 #. type: textblock
36825 #: ../src/guestfs.pod:1119
36826 msgid "If that named device exists, use it.  If not, return an error."
36827 msgstr ""
36828
36829 #. type: =head3
36830 #: ../src/guestfs.pod:1123
36831 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36832 msgstr ""
36833
36834 #. type: textblock
36835 #: ../src/guestfs.pod:1125
36836 msgid ""
36837 "Although the standard naming scheme and automatic translation is useful for "
36838 "simple programs and guestfish scripts, for larger programs it is best not to "
36839 "rely on this mechanism."
36840 msgstr ""
36841
36842 #. type: textblock
36843 #: ../src/guestfs.pod:1129
36844 msgid ""
36845 "Where possible for maximum future portability programs using libguestfs "
36846 "should use these future-proof techniques:"
36847 msgstr ""
36848
36849 #. type: textblock
36850 #: ../src/guestfs.pod:1136
36851 msgid ""
36852 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
36853 "device names, and then use those names directly."
36854 msgstr ""
36855
36856 #. type: textblock
36857 #: ../src/guestfs.pod:1139
36858 msgid ""
36859 "Since those device names exist by definition, they will never be translated."
36860 msgstr ""
36861
36862 #. type: textblock
36863 #: ../src/guestfs.pod:1144
36864 msgid ""
36865 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
36866 "filesystem labels."
36867 msgstr ""
36868
36869 #. type: textblock
36870 #: ../src/guestfs.pod:1151
36871 msgid ""
36872 "This section discusses security implications of using libguestfs, "
36873 "particularly with untrusted or malicious guests or disk images."
36874 msgstr ""
36875
36876 #. type: =head2
36877 #: ../src/guestfs.pod:1154
36878 msgid "GENERAL SECURITY CONSIDERATIONS"
36879 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
36880
36881 #. type: textblock
36882 #: ../src/guestfs.pod:1156
36883 msgid ""
36884 "Be careful with any files or data that you download from a guest (by "
36885 "\"download\" we mean not just the L</guestfs_download> command but any "
36886 "command that reads files, filenames, directories or anything else from a "
36887 "disk image).  An attacker could manipulate the data to fool your program "
36888 "into doing the wrong thing.  Consider cases such as:"
36889 msgstr ""
36890
36891 #. type: textblock
36892 #: ../src/guestfs.pod:1166
36893 msgid "the data (file etc) not being present"
36894 msgstr ""
36895
36896 #. type: textblock
36897 #: ../src/guestfs.pod:1170
36898 msgid "being present but empty"
36899 msgstr ""
36900
36901 #. type: textblock
36902 #: ../src/guestfs.pod:1174
36903 msgid "being much larger than normal"
36904 msgstr ""
36905
36906 #. type: textblock
36907 #: ../src/guestfs.pod:1178
36908 msgid "containing arbitrary 8 bit data"
36909 msgstr ""
36910
36911 #. type: textblock
36912 #: ../src/guestfs.pod:1182
36913 msgid "being in an unexpected character encoding"
36914 msgstr ""
36915
36916 #. type: textblock
36917 #: ../src/guestfs.pod:1186
36918 msgid "containing homoglyphs."
36919 msgstr ""
36920
36921 #. type: =head2
36922 #: ../src/guestfs.pod:1190
36923 msgid "SECURITY OF MOUNTING FILESYSTEMS"
36924 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
36925
36926 #. type: textblock
36927 #: ../src/guestfs.pod:1192
36928 msgid ""
36929 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
36930 "(VFS) module can sometimes be escalated into exploits by deliberately "
36931 "creating a malicious, malformed filesystem.  These exploits are very severe "
36932 "for two reasons.  Firstly there are very many filesystem drivers in the "
36933 "kernel, and many of them are infrequently used and not much developer "
36934 "attention has been paid to the code.  Linux userspace helps potential "
36935 "crackers by detecting the filesystem type and automatically choosing the "
36936 "right VFS driver, even if that filesystem type is obscure or unexpected for "
36937 "the administrator.  Secondly, a kernel-level exploit is like a local root "
36938 "exploit (worse in some ways), giving immediate and total access to the "
36939 "system right down to the hardware level."
36940 msgstr ""
36941
36942 #. type: textblock
36943 #: ../src/guestfs.pod:1205
36944 msgid ""
36945 "That explains why you should never mount a filesystem from an untrusted "
36946 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
36947 "inside a qemu virtual machine, usually running as a non-root user.  The "
36948 "attacker would need to write a filesystem which first exploited the kernel, "
36949 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
36950 "the libguestfs protocol, and finally to be as serious as the host kernel "
36951 "exploit it would need to escalate its privileges to root.  This multi-step "
36952 "escalation, performed by a static piece of data, is thought to be extremely "
36953 "hard to do, although we never say 'never' about security issues."
36954 msgstr ""
36955
36956 #. type: textblock
36957 #: ../src/guestfs.pod:1216
36958 msgid ""
36959 "In any case callers can reduce the attack surface by forcing the filesystem "
36960 "type when mounting (use L</guestfs_mount_vfs>)."
36961 msgstr ""
36962
36963 #. type: =head2
36964 #: ../src/guestfs.pod:1219
36965 msgid "PROTOCOL SECURITY"
36966 msgstr "ЗАХИСТ ПРОТОКОЛУ"
36967
36968 #. type: textblock
36969 #: ../src/guestfs.pod:1221
36970 msgid ""
36971 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
36972 "defined upper message size.  However a program that uses libguestfs must "
36973 "also take care - for example you can write a program that downloads a binary "
36974 "from a disk image and executes it locally, and no amount of protocol "
36975 "security will save you from the consequences."
36976 msgstr ""
36977
36978 #. type: =head2
36979 #: ../src/guestfs.pod:1227
36980 msgid "INSPECTION SECURITY"
36981 msgstr ""
36982
36983 #. type: textblock
36984 #: ../src/guestfs.pod:1229
36985 msgid ""
36986 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
36987 "directly from the guest, and these could contain any 8 bit data.  Callers "
36988 "should be careful to escape these before printing them to a structured file "
36989 "(for example, use HTML escaping if creating a web page)."
36990 msgstr ""
36991
36992 #. type: textblock
36993 #: ../src/guestfs.pod:1235
36994 msgid ""
36995 "Guest configuration may be altered in unusual ways by the administrator of "
36996 "the virtual machine, and may not reflect reality (particularly for untrusted "
36997 "or actively malicious guests).  For example we parse the hostname from "
36998 "configuration files like C</etc/sysconfig/network> that we find in the "
36999 "guest, but the guest administrator can easily manipulate these files to "
37000 "provide the wrong hostname."
37001 msgstr ""
37002
37003 #. type: textblock
37004 #: ../src/guestfs.pod:1243
37005 msgid ""
37006 "The inspection API parses guest configuration using two external libraries: "
37007 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
37008 "designed to be robust in the face of malicious data, although denial of "
37009 "service attacks are still possible, for example with oversized configuration "
37010 "files."
37011 msgstr ""
37012
37013 #. type: =head2
37014 #: ../src/guestfs.pod:1249
37015 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
37016 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
37017
37018 #. type: textblock
37019 #: ../src/guestfs.pod:1251
37020 msgid ""
37021 "Be very cautious about running commands from the guest.  By running a "
37022 "command in the guest, you are giving CPU time to a binary that you do not "
37023 "control, under the same user account as the library, albeit wrapped in qemu "
37024 "virtualization.  More information and alternatives can be found in the "
37025 "section L</RUNNING COMMANDS>."
37026 msgstr ""
37027
37028 #. type: =head2
37029 #: ../src/guestfs.pod:1257
37030 msgid "CVE-2010-3851"
37031 msgstr "CVE-2010-3851"
37032
37033 #. type: textblock
37034 #: ../src/guestfs.pod:1259
37035 msgid "https://bugzilla.redhat.com/642934"
37036 msgstr "https://bugzilla.redhat.com/642934"
37037
37038 #. type: textblock
37039 #: ../src/guestfs.pod:1261
37040 msgid ""
37041 "This security bug concerns the automatic disk format detection that qemu "
37042 "does on disk images."
37043 msgstr ""
37044
37045 #. type: textblock
37046 #: ../src/guestfs.pod:1264
37047 msgid ""
37048 "A raw disk image is just the raw bytes, there is no header.  Other disk "
37049 "images like qcow2 contain a special header.  Qemu deals with this by looking "
37050 "for one of the known headers, and if none is found then assuming the disk "
37051 "image must be raw."
37052 msgstr ""
37053
37054 #. type: textblock
37055 #: ../src/guestfs.pod:1269
37056 msgid ""
37057 "This allows a guest which has been given a raw disk image to write some "
37058 "other header.  At next boot (or when the disk image is accessed by "
37059 "libguestfs) qemu would do autodetection and think the disk image format was, "
37060 "say, qcow2 based on the header written by the guest."
37061 msgstr ""
37062
37063 #. type: textblock
37064 #: ../src/guestfs.pod:1274
37065 msgid ""
37066 "This in itself would not be a problem, but qcow2 offers many features, one "
37067 "of which is to allow a disk image to refer to another image (called the "
37068 "\"backing disk\").  It does this by placing the path to the backing disk "
37069 "into the qcow2 header.  This path is not validated and could point to any "
37070 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
37071 "\"holes\" in the qcow2 disk image, which of course is completely under the "
37072 "control of the attacker."
37073 msgstr ""
37074
37075 #. type: textblock
37076 #: ../src/guestfs.pod:1282
37077 msgid ""
37078 "In libguestfs this is rather hard to exploit except under two circumstances:"
37079 msgstr ""
37080
37081 #. type: textblock
37082 #: ../src/guestfs.pod:1289
37083 msgid "You have enabled the network or have opened the disk in write mode."
37084 msgstr ""
37085
37086 #. type: textblock
37087 #: ../src/guestfs.pod:1293
37088 msgid ""
37089 "You are also running untrusted code from the guest (see L</RUNNING "
37090 "COMMANDS>)."
37091 msgstr ""
37092
37093 #. type: textblock
37094 #: ../src/guestfs.pod:1298
37095 msgid ""
37096 "The way to avoid this is to specify the expected disk format when adding "
37097 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
37098 "should always do this if the disk is raw format, and it's a good idea for "
37099 "other cases too."
37100 msgstr ""
37101
37102 #. type: textblock
37103 #: ../src/guestfs.pod:1303
37104 msgid ""
37105 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
37106 "format is fetched from libvirt and passed through."
37107 msgstr ""
37108
37109 #. type: textblock
37110 #: ../src/guestfs.pod:1306
37111 msgid ""
37112 "For libguestfs tools, use the I<--format> command line parameter as "
37113 "appropriate."
37114 msgstr ""
37115
37116 #. type: =head1
37117 #: ../src/guestfs.pod:1309
37118 msgid "CONNECTION MANAGEMENT"
37119 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
37120
37121 #. type: =head2
37122 #: ../src/guestfs.pod:1311
37123 msgid "guestfs_h *"
37124 msgstr "guestfs_h *"
37125
37126 #. type: textblock
37127 #: ../src/guestfs.pod:1313
37128 msgid ""
37129 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
37130 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
37131 "handle and release all resources used."
37132 msgstr ""
37133
37134 #. type: textblock
37135 #: ../src/guestfs.pod:1317
37136 msgid ""
37137 "For information on using multiple handles and threads, see the section L</"
37138 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
37139 msgstr ""
37140
37141 #. type: =head2
37142 #: ../src/guestfs.pod:1320
37143 msgid "guestfs_create"
37144 msgstr "guestfs_create"
37145
37146 #. type: verbatim
37147 #: ../src/guestfs.pod:1322
37148 #, no-wrap
37149 msgid ""
37150 " guestfs_h *guestfs_create (void);\n"
37151 "\n"
37152 msgstr ""
37153 " guestfs_h *guestfs_create (void);\n"
37154 "\n"
37155
37156 #. type: textblock
37157 #: ../src/guestfs.pod:1324
37158 msgid "Create a connection handle."
37159 msgstr "Створити дескриптор з’єднання."
37160
37161 #. type: textblock
37162 #: ../src/guestfs.pod:1326
37163 msgid ""
37164 "On success this returns a non-NULL pointer to a handle.  On error it returns "
37165 "NULL."
37166 msgstr ""
37167
37168 #. type: textblock
37169 #: ../src/guestfs.pod:1329
37170 msgid ""
37171 "You have to \"configure\" the handle after creating it.  This includes "
37172 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
37173 "handle at least once."
37174 msgstr ""
37175
37176 #. type: textblock
37177 #: ../src/guestfs.pod:1333
37178 msgid "After configuring the handle, you have to call L</guestfs_launch>."
37179 msgstr ""
37180
37181 #. type: textblock
37182 #: ../src/guestfs.pod:1335
37183 msgid ""
37184 "You may also want to configure error handling for the handle.  See the L</"
37185 "ERROR HANDLING> section below."
37186 msgstr ""
37187
37188 #. type: =head2
37189 #: ../src/guestfs.pod:1338
37190 msgid "guestfs_close"
37191 msgstr "guestfs_close"
37192
37193 #. type: verbatim
37194 #: ../src/guestfs.pod:1340
37195 #, no-wrap
37196 msgid ""
37197 " void guestfs_close (guestfs_h *g);\n"
37198 "\n"
37199 msgstr ""
37200 " void guestfs_close (guestfs_h *g);\n"
37201 "\n"
37202
37203 #. type: textblock
37204 #: ../src/guestfs.pod:1342
37205 msgid "This closes the connection handle and frees up all resources used."
37206 msgstr ""
37207
37208 #. type: textblock
37209 #: ../src/guestfs.pod:1344
37210 msgid ""
37211 "If autosync was set on the handle and the handle was launched, then this "
37212 "implicitly calls various functions to unmount filesystems and sync the "
37213 "disk.  See L</guestfs_set_autosync> for more details."
37214 msgstr ""
37215
37216 #. type: textblock
37217 #: ../src/guestfs.pod:1348
37218 msgid "If a close callback was set on the handle, then it is called."
37219 msgstr ""
37220
37221 #. type: =head1
37222 #: ../src/guestfs.pod:1350
37223 msgid "ERROR HANDLING"
37224 msgstr "ОБРОБКА ПОМИЛОК"
37225
37226 #. type: textblock
37227 #: ../src/guestfs.pod:1352
37228 msgid ""
37229 "API functions can return errors.  For example, almost all functions that "
37230 "return C<int> will return C<-1> to indicate an error."
37231 msgstr ""
37232
37233 #. type: textblock
37234 #: ../src/guestfs.pod:1355
37235 msgid ""
37236 "Additional information is available for errors: an error message string and "
37237 "optionally an error number (errno) if the thing that failed was a system "
37238 "call."
37239 msgstr ""
37240
37241 #. type: textblock
37242 #: ../src/guestfs.pod:1359
37243 msgid ""
37244 "You can get at the additional information about the last error on the handle "
37245 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
37246 "up an error handler with L</guestfs_set_error_handler>."
37247 msgstr ""
37248
37249 #. type: textblock
37250 #: ../src/guestfs.pod:1364
37251 msgid ""
37252 "When the handle is created, a default error handler is installed which "
37253 "prints the error message string to C<stderr>.  For small short-running "
37254 "command line programs it is sufficient to do:"
37255 msgstr ""
37256
37257 #. type: verbatim
37258 #: ../src/guestfs.pod:1368
37259 #, no-wrap
37260 msgid ""
37261 " if (guestfs_launch (g) == -1)\n"
37262 "   exit (EXIT_FAILURE);\n"
37263 "\n"
37264 msgstr ""
37265 " if (guestfs_launch (g) == -1)\n"
37266 "   exit (EXIT_FAILURE);\n"
37267 "\n"
37268
37269 #. type: textblock
37270 #: ../src/guestfs.pod:1371
37271 msgid ""
37272 "since the default error handler will ensure that an error message has been "
37273 "printed to C<stderr> before the program exits."
37274 msgstr ""
37275
37276 #. type: textblock
37277 #: ../src/guestfs.pod:1374
37278 msgid ""
37279 "For other programs the caller will almost certainly want to install an "
37280 "alternate error handler or do error handling in-line like this:"
37281 msgstr ""
37282
37283 #. type: verbatim
37284 #: ../src/guestfs.pod:1377
37285 #, no-wrap
37286 msgid ""
37287 " /* This disables the default behaviour of printing errors\n"
37288 "    on stderr. */\n"
37289 " guestfs_set_error_handler (g, NULL, NULL);\n"
37290 " \n"
37291 msgstr ""
37292
37293 #. type: verbatim
37294 #: ../src/guestfs.pod:1381
37295 #, no-wrap
37296 msgid ""
37297 " if (guestfs_launch (g) == -1) {\n"
37298 "   /* Examine the error message and print it etc. */\n"
37299 "   char *msg = guestfs_last_error (g);\n"
37300 "   int errnum = guestfs_last_errno (g);\n"
37301 "   fprintf (stderr, \"%s\", msg);\n"
37302 "   if (errnum != 0)\n"
37303 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
37304 "   fprintf (stderr, \"\\n\");\n"
37305 "   /* ... */\n"
37306 " }\n"
37307 "\n"
37308 msgstr ""
37309
37310 #. type: textblock
37311 #: ../src/guestfs.pod:1392
37312 msgid ""
37313 "Out of memory errors are handled differently.  The default action is to call "
37314 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
37315 "guestfs_set_out_of_memory_handler>."
37316 msgstr ""
37317
37318 #. type: textblock
37319 #: ../src/guestfs.pod:1396
37320 msgid ""
37321 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
37322 "because there is no handle if this happens there is no way to get additional "
37323 "error information.  However L</guestfs_create> is supposed to be a "
37324 "lightweight operation which can only fail because of insufficient memory (it "
37325 "returns NULL in this case)."
37326 msgstr ""
37327
37328 #. type: =head2
37329 #: ../src/guestfs.pod:1402
37330 msgid "guestfs_last_error"
37331 msgstr "guestfs_last_error"
37332
37333 #. type: verbatim
37334 #: ../src/guestfs.pod:1404
37335 #, no-wrap
37336 msgid ""
37337 " const char *guestfs_last_error (guestfs_h *g);\n"
37338 "\n"
37339 msgstr ""
37340 " const char *guestfs_last_error (guestfs_h *g);\n"
37341 "\n"
37342
37343 #. type: textblock
37344 #: ../src/guestfs.pod:1406
37345 msgid ""
37346 "This returns the last error message that happened on C<g>.  If there has not "
37347 "been an error since the handle was created, then this returns C<NULL>."
37348 msgstr ""
37349
37350 #. type: textblock
37351 #: ../src/guestfs.pod:1410
37352 msgid ""
37353 "The lifetime of the returned string is until the next error occurs, or L</"
37354 "guestfs_close> is called."
37355 msgstr ""
37356
37357 #. type: =head2
37358 #: ../src/guestfs.pod:1413
37359 msgid "guestfs_last_errno"
37360 msgstr "guestfs_last_errno"
37361
37362 #. type: verbatim
37363 #: ../src/guestfs.pod:1415
37364 #, no-wrap
37365 msgid ""
37366 " int guestfs_last_errno (guestfs_h *g);\n"
37367 "\n"
37368 msgstr ""
37369 " int guestfs_last_errno (guestfs_h *g);\n"
37370 "\n"
37371
37372 #. type: textblock
37373 #: ../src/guestfs.pod:1417
37374 msgid "This returns the last error number (errno) that happened on C<g>."
37375 msgstr ""
37376
37377 #. type: textblock
37378 #: ../src/guestfs.pod:1419
37379 msgid "If successful, an errno integer not equal to zero is returned."
37380 msgstr ""
37381
37382 #. type: textblock
37383 #: ../src/guestfs.pod:1421
37384 msgid ""
37385 "If no error, this returns 0.  This call can return 0 in three situations:"
37386 msgstr ""
37387
37388 #. type: textblock
37389 #: ../src/guestfs.pod:1428
37390 msgid "There has not been any error on the handle."
37391 msgstr ""
37392
37393 #. type: textblock
37394 #: ../src/guestfs.pod:1432
37395 msgid ""
37396 "There has been an error but the errno was meaningless.  This corresponds to "
37397 "the case where the error did not come from a failed system call, but for "
37398 "some other reason."
37399 msgstr ""
37400
37401 #. type: textblock
37402 #: ../src/guestfs.pod:1438
37403 msgid ""
37404 "There was an error from a failed system call, but for some reason the errno "
37405 "was not captured and returned.  This usually indicates a bug in libguestfs."
37406 msgstr ""
37407
37408 #. type: textblock
37409 #: ../src/guestfs.pod:1444
37410 msgid ""
37411 "Libguestfs tries to convert the errno from inside the applicance into a "
37412 "corresponding errno for the caller (not entirely trivial: the appliance "
37413 "might be running a completely different operating system from the library "
37414 "and error numbers are not standardized across Un*xen).  If this could not be "
37415 "done, then the error is translated to C<EINVAL>.  In practice this should "
37416 "only happen in very rare circumstances."
37417 msgstr ""
37418
37419 #. type: =head2
37420 #: ../src/guestfs.pod:1452
37421 msgid "guestfs_set_error_handler"
37422 msgstr "guestfs_set_error_handler"
37423
37424 #. type: verbatim
37425 #: ../src/guestfs.pod:1454
37426 #, no-wrap
37427 msgid ""
37428 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37429 "                                           void *opaque,\n"
37430 "                                           const char *msg);\n"
37431 " void guestfs_set_error_handler (guestfs_h *g,\n"
37432 "                                 guestfs_error_handler_cb cb,\n"
37433 "                                 void *opaque);\n"
37434 "\n"
37435 msgstr ""
37436 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
37437 "                                           void *opaque,\n"
37438 "                                           const char *msg);\n"
37439 " void guestfs_set_error_handler (guestfs_h *g,\n"
37440 "                                 guestfs_error_handler_cb cb,\n"
37441 "                                 void *opaque);\n"
37442 "\n"
37443
37444 #. type: textblock
37445 #: ../src/guestfs.pod:1461
37446 msgid ""
37447 "The callback C<cb> will be called if there is an error.  The parameters "
37448 "passed to the callback are an opaque data pointer and the error message "
37449 "string."
37450 msgstr ""
37451
37452 #. type: textblock
37453 #: ../src/guestfs.pod:1465
37454 msgid ""
37455 "C<errno> is not passed to the callback.  To get that the callback must call "
37456 "L</guestfs_last_errno>."
37457 msgstr ""
37458
37459 #. type: textblock
37460 #: ../src/guestfs.pod:1468
37461 msgid ""
37462 "Note that the message string C<msg> is freed as soon as the callback "
37463 "function returns, so if you want to stash it somewhere you must make your "
37464 "own copy."
37465 msgstr ""
37466
37467 #. type: textblock
37468 #: ../src/guestfs.pod:1472
37469 msgid "The default handler prints messages on C<stderr>."
37470 msgstr ""
37471
37472 #. type: textblock
37473 #: ../src/guestfs.pod:1474
37474 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
37475 msgstr ""
37476
37477 #. type: =head2
37478 #: ../src/guestfs.pod:1476
37479 msgid "guestfs_get_error_handler"
37480 msgstr "guestfs_get_error_handler"
37481
37482 #. type: verbatim
37483 #: ../src/guestfs.pod:1478
37484 #, no-wrap
37485 msgid ""
37486 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37487 "                                                     void **opaque_rtn);\n"
37488 "\n"
37489 msgstr ""
37490 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
37491 "                                                     void **opaque_rtn);\n"
37492 "\n"
37493
37494 #. type: textblock
37495 #: ../src/guestfs.pod:1481
37496 msgid "Returns the current error handler callback."
37497 msgstr ""
37498
37499 #. type: =head2
37500 #: ../src/guestfs.pod:1483
37501 msgid "guestfs_set_out_of_memory_handler"
37502 msgstr "guestfs_set_out_of_memory_handler"
37503
37504 #. type: verbatim
37505 #: ../src/guestfs.pod:1485
37506 #, no-wrap
37507 msgid ""
37508 " typedef void (*guestfs_abort_cb) (void);\n"
37509 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
37510 "                                         guestfs_abort_cb);\n"
37511 "\n"
37512 msgstr ""
37513
37514 #. type: textblock
37515 #: ../src/guestfs.pod:1489
37516 msgid ""
37517 "The callback C<cb> will be called if there is an out of memory situation.  "
37518 "I<Note this callback must not return>."
37519 msgstr ""
37520
37521 #. type: textblock
37522 #: ../src/guestfs.pod:1492
37523 msgid "The default is to call L<abort(3)>."
37524 msgstr ""
37525
37526 #. type: textblock
37527 #: ../src/guestfs.pod:1494
37528 msgid ""
37529 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
37530 msgstr ""
37531
37532 #. type: =head2
37533 #: ../src/guestfs.pod:1497
37534 msgid "guestfs_get_out_of_memory_handler"
37535 msgstr "guestfs_get_out_of_memory_handler"
37536
37537 #. type: verbatim
37538 #: ../src/guestfs.pod:1499
37539 #, no-wrap
37540 msgid ""
37541 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37542 "\n"
37543 msgstr ""
37544 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
37545 "\n"
37546
37547 #. type: textblock
37548 #: ../src/guestfs.pod:1501
37549 msgid "This returns the current out of memory handler."
37550 msgstr ""
37551
37552 #. type: =head1
37553 #: ../src/guestfs.pod:1503
37554 msgid "API CALLS"
37555 msgstr "ВИКЛИКИ API"
37556
37557 #. type: =head1
37558 #: ../src/guestfs.pod:1507
37559 msgid "STRUCTURES"
37560 msgstr "СТРУКТУРИ"
37561
37562 #. type: textblock
37563 #: ../src/guestfs.pod:1509
37564 msgid "@STRUCTS@"
37565 msgstr "@STRUCTS@"
37566
37567 #. type: =head1
37568 #: ../src/guestfs.pod:1511
37569 msgid "AVAILABILITY"
37570 msgstr "ДОСТУПНІСТЬ"
37571
37572 #. type: =head2
37573 #: ../src/guestfs.pod:1513
37574 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
37575 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
37576
37577 #. type: textblock
37578 #: ../src/guestfs.pod:1515
37579 msgid ""
37580 "Using L</guestfs_available> you can test availability of the following "
37581 "groups of functions.  This test queries the appliance to see if the "
37582 "appliance you are currently using supports the functionality."
37583 msgstr ""
37584
37585 #. type: textblock
37586 #: ../src/guestfs.pod:1520
37587 msgid "@AVAILABILITY@"
37588 msgstr "@AVAILABILITY@"
37589
37590 #. type: =head2
37591 #: ../src/guestfs.pod:1522
37592 msgid "GUESTFISH supported COMMAND"
37593 msgstr ""
37594
37595 #. type: textblock
37596 #: ../src/guestfs.pod:1524
37597 msgid ""
37598 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
37599 "prints out the available groups and whether they are supported by this build "
37600 "of libguestfs.  Note however that you have to do C<run> first."
37601 msgstr ""
37602
37603 #. type: =head2
37604 #: ../src/guestfs.pod:1529
37605 msgid "SINGLE CALLS AT COMPILE TIME"
37606 msgstr ""
37607
37608 #. type: textblock
37609 #: ../src/guestfs.pod:1531
37610 msgid ""
37611 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
37612 "function, such as:"
37613 msgstr ""
37614
37615 #. type: verbatim
37616 #: ../src/guestfs.pod:1534
37617 #, no-wrap
37618 msgid ""
37619 " #define LIBGUESTFS_HAVE_DD 1\n"
37620 "\n"
37621 msgstr ""
37622 " #define LIBGUESTFS_HAVE_DD 1\n"
37623 "\n"
37624
37625 #. type: textblock
37626 #: ../src/guestfs.pod:1536
37627 msgid "if L</guestfs_dd> is available."
37628 msgstr ""
37629
37630 #. type: textblock
37631 #: ../src/guestfs.pod:1538
37632 msgid ""
37633 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37634 "function is available at compile time, we recommended using build tools such "
37635 "as autoconf or cmake.  For example in autotools you could use:"
37636 msgstr ""
37637
37638 #. type: verbatim
37639 #: ../src/guestfs.pod:1543
37640 #, no-wrap
37641 msgid ""
37642 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37643 " AC_CHECK_FUNCS([guestfs_dd])\n"
37644 "\n"
37645 msgstr ""
37646 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37647 " AC_CHECK_FUNCS([guestfs_dd])\n"
37648 "\n"
37649
37650 #. type: textblock
37651 #: ../src/guestfs.pod:1546
37652 msgid ""
37653 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
37654 "in your program."
37655 msgstr ""
37656
37657 #. type: =head2
37658 #: ../src/guestfs.pod:1549
37659 msgid "SINGLE CALLS AT RUN TIME"
37660 msgstr ""
37661
37662 #. type: textblock
37663 #: ../src/guestfs.pod:1551
37664 msgid ""
37665 "Testing at compile time doesn't guarantee that a function really exists in "
37666 "the library.  The reason is that you might be dynamically linked against a "
37667 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
37668 "This situation unfortunately results in a segmentation fault, which is a "
37669 "shortcoming of the C dynamic linking system itself."
37670 msgstr ""
37671
37672 #. type: textblock
37673 #: ../src/guestfs.pod:1558
37674 msgid ""
37675 "You can use L<dlopen(3)> to test if a function is available at run time, as "
37676 "in this example program (note that you still need the compile time check as "
37677 "well):"
37678 msgstr ""
37679
37680 #. type: verbatim
37681 #: ../src/guestfs.pod:1562
37682 #, no-wrap
37683 msgid ""
37684 " #include <stdio.h>\n"
37685 " #include <stdlib.h>\n"
37686 " #include <unistd.h>\n"
37687 " #include <dlfcn.h>\n"
37688 " #include <guestfs.h>\n"
37689 " \n"
37690 msgstr ""
37691 " #include <stdio.h>\n"
37692 " #include <stdlib.h>\n"
37693 " #include <unistd.h>\n"
37694 " #include <dlfcn.h>\n"
37695 " #include <guestfs.h>\n"
37696 " \n"
37697
37698 #. type: verbatim
37699 #: ../src/guestfs.pod:1568
37700 #, no-wrap
37701 msgid ""
37702 " main ()\n"
37703 " {\n"
37704 " #ifdef LIBGUESTFS_HAVE_DD\n"
37705 "   void *dl;\n"
37706 "   int has_function;\n"
37707 " \n"
37708 msgstr ""
37709 " main ()\n"
37710 " {\n"
37711 " #ifdef LIBGUESTFS_HAVE_DD\n"
37712 "   void *dl;\n"
37713 "   int has_function;\n"
37714 " \n"
37715
37716 #. type: verbatim
37717 #: ../src/guestfs.pod:1574
37718 #, no-wrap
37719 msgid ""
37720 "   /* Test if the function guestfs_dd is really available. */\n"
37721 "   dl = dlopen (NULL, RTLD_LAZY);\n"
37722 "   if (!dl) {\n"
37723 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
37724 "     exit (EXIT_FAILURE);\n"
37725 "   }\n"
37726 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37727 "   dlclose (dl);\n"
37728 " \n"
37729 msgstr ""
37730
37731 #. type: verbatim
37732 #: ../src/guestfs.pod:1583
37733 #, no-wrap
37734 msgid ""
37735 "   if (!has_function)\n"
37736 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37737 "   else {\n"
37738 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37739 "     /* Now it's safe to call\n"
37740 "     guestfs_dd (g, \"foo\", \"bar\");\n"
37741 "     */\n"
37742 "   }\n"
37743 " #else\n"
37744 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37745 " #endif\n"
37746 "  }\n"
37747 "\n"
37748 msgstr ""
37749
37750 #. type: textblock
37751 #: ../src/guestfs.pod:1596
37752 msgid ""
37753 "You may think the above is an awful lot of hassle, and it is.  There are "
37754 "other ways outside of the C linking system to ensure that this kind of "
37755 "incompatibility never arises, such as using package versioning:"
37756 msgstr ""
37757
37758 #. type: verbatim
37759 #: ../src/guestfs.pod:1601
37760 #, no-wrap
37761 msgid ""
37762 " Requires: libguestfs >= 1.0.80\n"
37763 "\n"
37764 msgstr ""
37765
37766 #. type: =head1
37767 #: ../src/guestfs.pod:1603
37768 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37769 msgstr ""
37770
37771 #. type: textblock
37772 #: ../src/guestfs.pod:1605
37773 msgid ""
37774 "A recent feature of the API is the introduction of calls which take optional "
37775 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
37776 "takes variable arguments (ie. C<...>), as in this example:"
37777 msgstr ""
37778
37779 #. type: verbatim
37780 #: ../src/guestfs.pod:1610
37781 #, no-wrap
37782 msgid ""
37783 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37784 "\n"
37785 msgstr ""
37786 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37787 "\n"
37788
37789 #. type: textblock
37790 #: ../src/guestfs.pod:1612
37791 msgid ""
37792 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
37793 "call with no optional arguments specified:"
37794 msgstr ""
37795
37796 #. type: verbatim
37797 #: ../src/guestfs.pod:1615
37798 #, no-wrap
37799 msgid ""
37800 " guestfs_add_drive_opts (g, filename, -1);\n"
37801 "\n"
37802 msgstr ""
37803 " guestfs_add_drive_opts (g, filename, -1);\n"
37804 "\n"
37805
37806 #. type: textblock
37807 #: ../src/guestfs.pod:1617
37808 msgid "With a single optional argument:"
37809 msgstr ""
37810
37811 #. type: verbatim
37812 #: ../src/guestfs.pod:1619
37813 #, no-wrap
37814 msgid ""
37815 " guestfs_add_drive_opts (g, filename,\n"
37816 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37817 "                         -1);\n"
37818 "\n"
37819 msgstr ""
37820 " guestfs_add_drive_opts (g, filename,\n"
37821 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37822 "                         -1);\n"
37823 "\n"
37824
37825 #. type: textblock
37826 #: ../src/guestfs.pod:1623
37827 msgid "With two:"
37828 msgstr ""
37829
37830 #. type: verbatim
37831 #: ../src/guestfs.pod:1625
37832 #, no-wrap
37833 msgid ""
37834 " guestfs_add_drive_opts (g, filename,\n"
37835 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37836 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37837 "                         -1);\n"
37838 "\n"
37839 msgstr ""
37840 " guestfs_add_drive_opts (g, filename,\n"
37841 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37842 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37843 "                         -1);\n"
37844 "\n"
37845
37846 #. type: textblock
37847 #: ../src/guestfs.pod:1630
37848 msgid ""
37849 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
37850 "happen!"
37851 msgstr ""
37852
37853 #. type: =head2
37854 #: ../src/guestfs.pod:1633
37855 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
37856 msgstr ""
37857
37858 #. type: textblock
37859 #: ../src/guestfs.pod:1635
37860 msgid ""
37861 "The second variant has the same name with the suffix C<_va>, which works the "
37862 "same way but takes a C<va_list>.  See the C manual for details.  For the "
37863 "example function, this is declared:"
37864 msgstr ""
37865
37866 #. type: verbatim
37867 #: ../src/guestfs.pod:1639
37868 #, no-wrap
37869 msgid ""
37870 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37871 "                                va_list args);\n"
37872 "\n"
37873 msgstr ""
37874 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37875 "                                va_list args);\n"
37876 "\n"
37877
37878 #. type: =head2
37879 #: ../src/guestfs.pod:1642
37880 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37881 msgstr ""
37882
37883 #. type: textblock
37884 #: ../src/guestfs.pod:1644
37885 msgid ""
37886 "The third variant is useful where you need to construct these calls.  You "
37887 "pass in a structure where you fill in the optional fields.  The structure "
37888 "has a bitmask as the first element which you must set to indicate which "
37889 "fields you have filled in.  For our example function the structure and call "
37890 "are declared:"
37891 msgstr ""
37892
37893 #. type: verbatim
37894 #: ../src/guestfs.pod:1650
37895 #, no-wrap
37896 msgid ""
37897 " struct guestfs_add_drive_opts_argv {\n"
37898 "   uint64_t bitmask;\n"
37899 "   int readonly;\n"
37900 "   const char *format;\n"
37901 "   /* ... */\n"
37902 " };\n"
37903 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37904 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37905 "\n"
37906 msgstr ""
37907 " struct guestfs_add_drive_opts_argv {\n"
37908 "   uint64_t bitmask;\n"
37909 "   int readonly;\n"
37910 "   const char *format;\n"
37911 "   /* ... */\n"
37912 " };\n"
37913 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37914 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37915 "\n"
37916
37917 #. type: textblock
37918 #: ../src/guestfs.pod:1659
37919 msgid "You could call it like this:"
37920 msgstr ""
37921
37922 #. type: verbatim
37923 #: ../src/guestfs.pod:1661
37924 #, no-wrap
37925 msgid ""
37926 " struct guestfs_add_drive_opts_argv optargs = {\n"
37927 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37928 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37929 "   .readonly = 1,\n"
37930 "   .format = \"qcow2\"\n"
37931 " };\n"
37932 " \n"
37933 msgstr ""
37934 " struct guestfs_add_drive_opts_argv optargs = {\n"
37935 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37936 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37937 "   .readonly = 1,\n"
37938 "   .format = \"qcow2\"\n"
37939 " };\n"
37940 " \n"
37941
37942 #. type: verbatim
37943 #: ../src/guestfs.pod:1668
37944 #, no-wrap
37945 msgid ""
37946 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37947 "\n"
37948 msgstr ""
37949 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37950 "\n"
37951
37952 #. type: textblock
37953 #: ../src/guestfs.pod:1676
37954 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
37955 msgstr ""
37956
37957 #. type: textblock
37958 #: ../src/guestfs.pod:1681
37959 msgid "You do not need to fill in all fields of the structure."
37960 msgstr ""
37961
37962 #. type: textblock
37963 #: ../src/guestfs.pod:1685
37964 msgid ""
37965 "There must be a one-to-one correspondence between fields of the structure "
37966 "that are filled in, and bits set in the bitmask."
37967 msgstr ""
37968
37969 #. type: =head2
37970 #: ../src/guestfs.pod:1690
37971 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37972 msgstr ""
37973
37974 #. type: textblock
37975 #: ../src/guestfs.pod:1692
37976 msgid ""
37977 "In other languages, optional arguments are expressed in the way that is "
37978 "natural for that language.  We refer you to the language-specific "
37979 "documentation for more details on that."
37980 msgstr ""
37981
37982 #. type: textblock
37983 #: ../src/guestfs.pod:1696
37984 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37985 msgstr ""
37986
37987 #. type: =head2
37988 #: ../src/guestfs.pod:1698
37989 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37990 msgstr ""
37991
37992 #. type: textblock
37993 #: ../src/guestfs.pod:1700
37994 msgid ""
37995 "B<Note:> This section documents the generic event mechanism introduced in "
37996 "libguestfs 1.10, which you should use in new code if possible.  The old "
37997 "functions C<guestfs_set_log_message_callback>, "
37998 "C<guestfs_set_subprocess_quit_callback>, "
37999 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
38000 "C<guestfs_set_progress_callback> are no longer documented in this manual "
38001 "page.  Because of the ABI guarantee, the old functions continue to work."
38002 msgstr ""
38003
38004 #. type: textblock
38005 #: ../src/guestfs.pod:1709
38006 msgid ""
38007 "Handles generate events when certain things happen, such as log messages "
38008 "being generated, progress messages during long-running operations, or the "
38009 "handle being closed.  The API calls described below let you register a "
38010 "callback to be called when events happen.  You can register multiple "
38011 "callbacks (for the same, different or overlapping sets of events), and "
38012 "individually remove callbacks.  If callbacks are not removed, then they "
38013 "remain in force until the handle is closed."
38014 msgstr ""
38015
38016 #. type: textblock
38017 #: ../src/guestfs.pod:1717
38018 msgid ""
38019 "In the current implementation, events are only generated synchronously: that "
38020 "means that events (and hence callbacks) can only happen while you are in the "
38021 "middle of making another libguestfs call.  The callback is called in the "
38022 "same thread."
38023 msgstr ""
38024
38025 #. type: textblock
38026 #: ../src/guestfs.pod:1722
38027 msgid ""
38028 "Events may contain a payload, usually nothing (void), an array of 64 bit "
38029 "unsigned integers, or a message buffer.  Payloads are discussed later on."
38030 msgstr ""
38031
38032 #. type: =head3
38033 #: ../src/guestfs.pod:1726
38034 msgid "CLASSES OF EVENTS"
38035 msgstr ""
38036
38037 #. type: =item
38038 #: ../src/guestfs.pod:1730
38039 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
38040 msgstr ""
38041
38042 #. type: textblock
38043 #: ../src/guestfs.pod:1733
38044 msgid ""
38045 "The callback function will be called while the handle is being closed "
38046 "(synchronously from L</guestfs_close>)."
38047 msgstr ""
38048
38049 #. type: textblock
38050 #: ../src/guestfs.pod:1736
38051 msgid ""
38052 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
38053 "handles that are open when the program exits.  This means that this callback "
38054 "might be called indirectly from L<exit(3)>, which can cause unexpected "
38055 "problems in higher-level languages (eg. if your HLL interpreter has already "
38056 "been cleaned up by the time this is called, and if your callback then jumps "
38057 "into some HLL function)."
38058 msgstr ""
38059
38060 #. type: textblock
38061 #: ../src/guestfs.pod:1743
38062 msgid ""
38063 "If no callback is registered: the handle is closed without any callback "
38064 "being invoked."
38065 msgstr ""
38066
38067 #. type: =item
38068 #: ../src/guestfs.pod:1746
38069 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
38070 msgstr ""
38071
38072 #. type: textblock
38073 #: ../src/guestfs.pod:1749
38074 msgid ""
38075 "The callback function will be called when the child process quits, either "
38076 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
38077 "corresponds to a transition from any state to the CONFIG state)."
38078 msgstr ""
38079
38080 #. type: textblock
38081 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
38082 msgid "If no callback is registered: the event is ignored."
38083 msgstr ""
38084
38085 #. type: =item
38086 #: ../src/guestfs.pod:1755
38087 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
38088 msgstr ""
38089
38090 #. type: textblock
38091 #: ../src/guestfs.pod:1758
38092 msgid ""
38093 "The callback function will be called when the child process becomes ready "
38094 "first time after it has been launched.  (This corresponds to a transition "
38095 "from LAUNCHING to the READY state)."
38096 msgstr ""
38097
38098 #. type: =item
38099 #: ../src/guestfs.pod:1764
38100 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
38101 msgstr ""
38102
38103 #. type: textblock
38104 #: ../src/guestfs.pod:1767
38105 msgid ""
38106 "Some long-running operations can generate progress messages.  If this "
38107 "callback is registered, then it will be called each time a progress message "
38108 "is generated (usually two seconds after the operation started, and three "
38109 "times per second thereafter until it completes, although the frequency may "
38110 "change in future versions)."
38111 msgstr ""
38112
38113 #. type: textblock
38114 #: ../src/guestfs.pod:1773
38115 msgid ""
38116 "The callback receives in the payload four unsigned 64 bit numbers which are "
38117 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
38118 msgstr ""
38119
38120 #. type: textblock
38121 #: ../src/guestfs.pod:1776
38122 msgid ""
38123 "The units of C<total> are not defined, although for some operations C<total> "
38124 "may relate in some way to the amount of data to be transferred (eg. in bytes "
38125 "or megabytes), and C<position> may be the portion which has been transferred."
38126 msgstr ""
38127
38128 #. type: textblock
38129 #: ../src/guestfs.pod:1781
38130 msgid "The only defined and stable parts of the API are:"
38131 msgstr ""
38132
38133 #. type: textblock
38134 #: ../src/guestfs.pod:1787
38135 msgid ""
38136 "The callback can display to the user some type of progress bar or indicator "
38137 "which shows the ratio of C<position>:C<total>."
38138 msgstr ""
38139
38140 #. type: textblock
38141 #: ../src/guestfs.pod:1792
38142 msgid "0 E<lt>= C<position> E<lt>= C<total>"
38143 msgstr ""
38144
38145 #. type: textblock
38146 #: ../src/guestfs.pod:1796
38147 msgid ""
38148 "If any progress notification is sent during a call, then a final progress "
38149 "notification is always sent when C<position> = C<total> (I<unless> the call "
38150 "fails with an error)."
38151 msgstr ""
38152
38153 #. type: textblock
38154 #: ../src/guestfs.pod:1800
38155 msgid ""
38156 "This is to simplify caller code, so callers can easily set the progress "
38157 "indicator to \"100%\" at the end of the operation, without requiring special "
38158 "code to detect this case."
38159 msgstr ""
38160
38161 #. type: textblock
38162 #: ../src/guestfs.pod:1806
38163 msgid ""
38164 "For some calls we are unable to estimate the progress of the call, but we "
38165 "can still generate progress messages to indicate activity.  This is known as "
38166 "\"pulse mode\", and is directly supported by certain progress bar "
38167 "implementations (eg. GtkProgressBar)."
38168 msgstr ""
38169
38170 #. type: textblock
38171 #: ../src/guestfs.pod:1811
38172 msgid ""
38173 "For these calls, zero or more progress messages are generated with "
38174 "C<position = 0> and C<total = 1>, followed by a final message with "
38175 "C<position = total = 1>."
38176 msgstr ""
38177
38178 #. type: textblock
38179 #: ../src/guestfs.pod:1815
38180 msgid ""
38181 "As noted above, if the call fails with an error then the final message may "
38182 "not be generated."
38183 msgstr ""
38184
38185 #. type: textblock
38186 #: ../src/guestfs.pod:1820
38187 msgid ""
38188 "The callback also receives the procedure number (C<proc_nr>) and serial "
38189 "number (C<serial>) of the call.  These are only useful for debugging "
38190 "protocol issues, and the callback can normally ignore them.  The callback "
38191 "may want to print these numbers in error messages or debugging messages."
38192 msgstr ""
38193
38194 #. type: textblock
38195 #: ../src/guestfs.pod:1826
38196 msgid "If no callback is registered: progress messages are discarded."
38197 msgstr ""
38198
38199 #. type: =item
38200 #: ../src/guestfs.pod:1828
38201 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
38202 msgstr ""
38203
38204 #. type: textblock
38205 #: ../src/guestfs.pod:1831
38206 msgid ""
38207 "The callback function is called whenever a log message is generated by qemu, "
38208 "the appliance kernel, guestfsd (daemon), or utility programs."
38209 msgstr ""
38210
38211 #. type: textblock
38212 #: ../src/guestfs.pod:1834
38213 msgid ""
38214 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
38215 "guestfs_launch>) then additional debug messages are generated."
38216 msgstr ""
38217
38218 #. type: textblock
38219 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
38220 msgid ""
38221 "If no callback is registered: the messages are discarded unless the verbose "
38222 "flag is set in which case they are sent to stderr.  You can override the "
38223 "printing of verbose messages to stderr by setting up a callback."
38224 msgstr ""
38225
38226 #. type: =item
38227 #: ../src/guestfs.pod:1842
38228 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
38229 msgstr ""
38230
38231 #. type: textblock
38232 #: ../src/guestfs.pod:1845
38233 msgid ""
38234 "The callback function is called whenever a log message is generated by the "
38235 "library part of libguestfs."
38236 msgstr ""
38237
38238 #. type: textblock
38239 #: ../src/guestfs.pod:1848
38240 msgid ""
38241 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
38242 "messages are generated."
38243 msgstr ""
38244
38245 #. type: =item
38246 #: ../src/guestfs.pod:1856
38247 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
38248 msgstr ""
38249
38250 #. type: textblock
38251 #: ../src/guestfs.pod:1859
38252 msgid ""
38253 "The callback function is called whenever a trace message is generated.  This "
38254 "only applies if the trace flag (L</guestfs_set_trace>) is set."
38255 msgstr ""
38256
38257 #. type: textblock
38258 #: ../src/guestfs.pod:1862
38259 msgid ""
38260 "If no callback is registered: the messages are sent to stderr.  You can "
38261 "override the printing of trace messages to stderr by setting up a callback."
38262 msgstr ""
38263
38264 #. type: =item
38265 #: ../src/guestfs.pod:1866
38266 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
38267 msgstr ""
38268
38269 #. type: textblock
38270 #: ../src/guestfs.pod:1869
38271 msgid ""
38272 "The callback function is called whenever a libguestfs function is entered."
38273 msgstr ""
38274
38275 #. type: textblock
38276 #: ../src/guestfs.pod:1872
38277 msgid ""
38278 "The payload is a string which contains the name of the function that we are "
38279 "entering (not including C<guestfs_> prefix)."
38280 msgstr ""
38281
38282 #. type: textblock
38283 #: ../src/guestfs.pod:1875
38284 msgid ""
38285 "Note that libguestfs functions can call themselves, so you may see many "
38286 "events from a single call.  A few libguestfs functions do not generate this "
38287 "event."
38288 msgstr ""
38289
38290 #. type: =head3
38291 #: ../src/guestfs.pod:1883
38292 msgid "guestfs_set_event_callback"
38293 msgstr ""
38294
38295 #. type: verbatim
38296 #: ../src/guestfs.pod:1885
38297 #, no-wrap
38298 msgid ""
38299 " int guestfs_set_event_callback (guestfs_h *g,\n"
38300 "                                 guestfs_event_callback cb,\n"
38301 "                                 uint64_t event_bitmask,\n"
38302 "                                 int flags,\n"
38303 "                                 void *opaque);\n"
38304 "\n"
38305 msgstr ""
38306
38307 #. type: textblock
38308 #: ../src/guestfs.pod:1891
38309 msgid ""
38310 "This function registers a callback (C<cb>) for all event classes in the "
38311 "C<event_bitmask>."
38312 msgstr ""
38313
38314 #. type: textblock
38315 #: ../src/guestfs.pod:1894
38316 msgid ""
38317 "For example, to register for all log message events, you could call this "
38318 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
38319 "To register a single callback for all possible classes of events, use "
38320 "C<GUESTFS_EVENT_ALL>."
38321 msgstr ""
38322
38323 #. type: textblock
38324 #: ../src/guestfs.pod:1900
38325 msgid "C<flags> should always be passed as 0."
38326 msgstr ""
38327
38328 #. type: textblock
38329 #: ../src/guestfs.pod:1902
38330 msgid ""
38331 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
38332 "it for any purpose."
38333 msgstr ""
38334
38335 #. type: textblock
38336 #: ../src/guestfs.pod:1905
38337 msgid ""
38338 "The return value is the event handle (an integer) which you can use to "
38339 "delete the callback (see below)."
38340 msgstr ""
38341
38342 #. type: textblock
38343 #: ../src/guestfs.pod:1908
38344 msgid ""
38345 "If there is an error, this function returns C<-1>, and sets the error in the "
38346 "handle in the usual way (see L</guestfs_last_error> etc.)"
38347 msgstr ""
38348
38349 #. type: textblock
38350 #: ../src/guestfs.pod:1911
38351 msgid ""
38352 "Callbacks remain in effect until they are deleted, or until the handle is "
38353 "closed."
38354 msgstr ""
38355
38356 #. type: textblock
38357 #: ../src/guestfs.pod:1914
38358 msgid ""
38359 "In the case where multiple callbacks are registered for a particular event "
38360 "class, all of the callbacks are called.  The order in which multiple "
38361 "callbacks are called is not defined."
38362 msgstr ""
38363
38364 #. type: =head3
38365 #: ../src/guestfs.pod:1918
38366 msgid "guestfs_delete_event_callback"
38367 msgstr ""
38368
38369 #. type: verbatim
38370 #: ../src/guestfs.pod:1920
38371 #, no-wrap
38372 msgid ""
38373 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
38374 "\n"
38375 msgstr ""
38376
38377 #. type: textblock
38378 #: ../src/guestfs.pod:1922
38379 msgid ""
38380 "Delete a callback that was previously registered.  C<event_handle> should be "
38381 "the integer that was returned by a previous call to "
38382 "C<guestfs_set_event_callback> on the same handle."
38383 msgstr ""
38384
38385 #. type: =head3
38386 #: ../src/guestfs.pod:1926
38387 msgid "guestfs_event_callback"
38388 msgstr ""
38389
38390 #. type: verbatim
38391 #: ../src/guestfs.pod:1928
38392 #, no-wrap
38393 msgid ""
38394 " typedef void (*guestfs_event_callback) (\n"
38395 "                  guestfs_h *g,\n"
38396 "                  void *opaque,\n"
38397 "                  uint64_t event,\n"
38398 "                  int event_handle,\n"
38399 "                  int flags,\n"
38400 "                  const char *buf, size_t buf_len,\n"
38401 "                  const uint64_t *array, size_t array_len);\n"
38402 "\n"
38403 msgstr ""
38404
38405 #. type: textblock
38406 #: ../src/guestfs.pod:1937
38407 msgid ""
38408 "This is the type of the event callback function that you have to provide."
38409 msgstr ""
38410
38411 #. type: textblock
38412 #: ../src/guestfs.pod:1940
38413 msgid ""
38414 "The basic parameters are: the handle (C<g>), the opaque user pointer "
38415 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
38416 "handle, and C<flags> which in the current API you should ignore."
38417 msgstr ""
38418
38419 #. type: textblock
38420 #: ../src/guestfs.pod:1944
38421 msgid ""
38422 "The remaining parameters contain the event payload (if any).  Each event may "
38423 "contain a payload, which usually relates to the event class, but for future "
38424 "proofing your code should be written to handle any payload for any event "
38425 "class."
38426 msgstr ""
38427
38428 #. type: textblock
38429 #: ../src/guestfs.pod:1949
38430 msgid ""
38431 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
38432 "there is no message buffer).  Note that this message buffer can contain "
38433 "arbitrary 8 bit data, including NUL bytes."
38434 msgstr ""
38435
38436 #. type: textblock
38437 #: ../src/guestfs.pod:1953
38438 msgid ""
38439 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
38440 "moment this is only used for progress messages."
38441 msgstr ""
38442
38443 #. type: =head3
38444 #: ../src/guestfs.pod:1956
38445 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
38446 msgstr ""
38447
38448 #. type: textblock
38449 #: ../src/guestfs.pod:1958
38450 msgid ""
38451 "One motivation for the generic event API was to allow GUI programs to "
38452 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
38453 "unconditionally to C<stderr>."
38454 msgstr ""
38455
38456 #. type: textblock
38457 #: ../src/guestfs.pod:1962
38458 msgid ""
38459 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
38460 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
38461 "messages are not events; you must capture error messages separately)."
38462 msgstr ""
38463
38464 #. type: textblock
38465 #: ../src/guestfs.pod:1967
38466 msgid ""
38467 "Programs have to set up a callback to capture the classes of events of "
38468 "interest:"
38469 msgstr ""
38470
38471 #. type: verbatim
38472 #: ../src/guestfs.pod:1970
38473 #, no-wrap
38474 msgid ""
38475 " int eh =\n"
38476 "   guestfs_set_event_callback\n"
38477 "     (g, message_callback,\n"
38478 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
38479 "      GUESTFS_EVENT_TRACE,\n"
38480 "      0, NULL) == -1)\n"
38481 " if (eh == -1) {\n"
38482 "   // handle error in the usual way\n"
38483 " }\n"
38484 "\n"
38485 msgstr ""
38486
38487 #. type: textblock
38488 #: ../src/guestfs.pod:1980
38489 msgid ""
38490 "The callback can then direct messages to the appropriate place.  In this "
38491 "example, messages are directed to syslog:"
38492 msgstr ""
38493
38494 #. type: verbatim
38495 #: ../src/guestfs.pod:1983
38496 #, no-wrap
38497 msgid ""
38498 " static void\n"
38499 " message_callback (\n"
38500 "         guestfs_h *g,\n"
38501 "         void *opaque,\n"
38502 "         uint64_t event,\n"
38503 "         int event_handle,\n"
38504 "         int flags,\n"
38505 "         const char *buf, size_t buf_len,\n"
38506 "         const uint64_t *array, size_t array_len)\n"
38507 " {\n"
38508 "   const int priority = LOG_USER|LOG_INFO;\n"
38509 "   if (buf_len > 0)\n"
38510 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
38511 " }\n"
38512 "\n"
38513 msgstr ""
38514
38515 #. type: =head1
38516 #: ../src/guestfs.pod:1998
38517 msgid "CANCELLING LONG TRANSFERS"
38518 msgstr ""
38519
38520 #. type: textblock
38521 #: ../src/guestfs.pod:2000
38522 msgid ""
38523 "Some operations can be cancelled by the caller while they are in progress.  "
38524 "Currently only operations that involve uploading or downloading data can be "
38525 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
38526 "parameters in the generator)."
38527 msgstr ""
38528
38529 #. type: =head2
38530 #: ../src/guestfs.pod:2005
38531 msgid "guestfs_user_cancel"
38532 msgstr ""
38533
38534 #. type: verbatim
38535 #: ../src/guestfs.pod:2007
38536 #, no-wrap
38537 msgid ""
38538 " void guestfs_user_cancel (guestfs_h *g);\n"
38539 "\n"
38540 msgstr ""
38541
38542 #. type: textblock
38543 #: ../src/guestfs.pod:2009
38544 msgid ""
38545 "C<guestfs_user_cancel> cancels the current upload or download operation."
38546 msgstr ""
38547
38548 #. type: textblock
38549 #: ../src/guestfs.pod:2012
38550 msgid ""
38551 "Unlike most other libguestfs calls, this function is signal safe and thread "
38552 "safe.  You can call it from a signal handler or from another thread, without "
38553 "needing to do any locking."
38554 msgstr ""
38555
38556 #. type: textblock
38557 #: ../src/guestfs.pod:2016
38558 msgid ""
38559 "The transfer that was in progress (if there is one) will stop shortly "
38560 "afterwards, and will return an error.  The errno (see L</"
38561 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
38562 "out if the operation was cancelled or failed because of another error."
38563 msgstr ""
38564
38565 #. type: textblock
38566 #: ../src/guestfs.pod:2022
38567 msgid ""
38568 "No cleanup is performed: for example, if a file was being uploaded then "
38569 "after cancellation there may be a partially uploaded file.  It is the "
38570 "caller's responsibility to clean up if necessary."
38571 msgstr ""
38572
38573 #. type: textblock
38574 #: ../src/guestfs.pod:2026
38575 msgid "There are two common places that you might call C<guestfs_user_cancel>."
38576 msgstr ""
38577
38578 #. type: textblock
38579 #: ../src/guestfs.pod:2028
38580 msgid ""
38581 "In an interactive text-based program, you might call it from a C<SIGINT> "
38582 "signal handler so that pressing C<^C> cancels the current operation.  (You "
38583 "also need to call L</guestfs_set_pgroup> so that child processes don't "
38584 "receive the C<^C> signal)."
38585 msgstr ""
38586
38587 #. type: textblock
38588 #: ../src/guestfs.pod:2033
38589 msgid ""
38590 "In a graphical program, when the main thread is displaying a progress bar "
38591 "with a cancel button, wire up the cancel button to call this function."
38592 msgstr ""
38593
38594 #. type: =head1
38595 #: ../src/guestfs.pod:2037
38596 msgid "PRIVATE DATA AREA"
38597 msgstr ""
38598
38599 #. type: textblock
38600 #: ../src/guestfs.pod:2039
38601 msgid ""
38602 "You can attach named pieces of private data to the libguestfs handle, fetch "
38603 "them by name, and walk over them, for the lifetime of the handle.  This is "
38604 "called the private data area and is only available from the C API."
38605 msgstr ""
38606
38607 #. type: textblock
38608 #: ../src/guestfs.pod:2044
38609 msgid "To attach a named piece of data, use the following call:"
38610 msgstr ""
38611
38612 #. type: verbatim
38613 #: ../src/guestfs.pod:2046
38614 #, no-wrap
38615 msgid ""
38616 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38617 "\n"
38618 msgstr ""
38619 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
38620 "\n"
38621
38622 #. type: textblock
38623 #: ../src/guestfs.pod:2048
38624 msgid ""
38625 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
38626 "pointer (which can be C<NULL>).  Any previous item with the same key is "
38627 "overwritten."
38628 msgstr ""
38629
38630 #. type: textblock
38631 #: ../src/guestfs.pod:2052
38632 msgid ""
38633 "You can use any C<key> you want, but your key should I<not> start with an "
38634 "underscore character.  Keys beginning with an underscore character are "
38635 "reserved for internal libguestfs purposes (eg. for implementing language "
38636 "bindings).  It is recommended that you prefix the key with some unique "
38637 "string to avoid collisions with other users."
38638 msgstr ""
38639
38640 #. type: textblock
38641 #: ../src/guestfs.pod:2058
38642 msgid "To retrieve the pointer, use:"
38643 msgstr ""
38644
38645 #. type: verbatim
38646 #: ../src/guestfs.pod:2060
38647 #, no-wrap
38648 msgid ""
38649 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38650 "\n"
38651 msgstr ""
38652 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38653 "\n"
38654
38655 #. type: textblock
38656 #: ../src/guestfs.pod:2062
38657 msgid ""
38658 "This function returns C<NULL> if either no data is found associated with "
38659 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38660 "C<NULL>."
38661 msgstr ""
38662
38663 #. type: textblock
38664 #: ../src/guestfs.pod:2066
38665 msgid ""
38666 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38667 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
38668 "all.  In particular, libguestfs does I<not> try to free the data when the "
38669 "handle is closed.  If the data must be freed, then the caller must either "
38670 "free it before calling L</guestfs_close> or must set up a close callback to "
38671 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38672 msgstr ""
38673
38674 #. type: textblock
38675 #: ../src/guestfs.pod:2073
38676 msgid "To walk over all entries, use these two functions:"
38677 msgstr ""
38678
38679 #. type: verbatim
38680 #: ../src/guestfs.pod:2075
38681 #, no-wrap
38682 msgid ""
38683 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38684 "\n"
38685 msgstr ""
38686
38687 #. type: verbatim
38688 #: ../src/guestfs.pod:2077
38689 #, no-wrap
38690 msgid ""
38691 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38692 "\n"
38693 msgstr ""
38694
38695 #. type: textblock
38696 #: ../src/guestfs.pod:2079
38697 msgid ""
38698 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
38699 "not have any particular meaning -- keys are not returned in any defined "
38700 "order).  A pointer to the key is returned in C<*key_rtn> and the "
38701 "corresponding data pointer is returned from the function.  C<NULL> is "
38702 "returned if there are no keys stored in the handle."
38703 msgstr ""
38704
38705 #. type: textblock
38706 #: ../src/guestfs.pod:2085
38707 msgid ""
38708 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
38709 "value of this function is also C<NULL> is there are no further entries to "
38710 "return."
38711 msgstr ""
38712
38713 #. type: textblock
38714 #: ../src/guestfs.pod:2089
38715 msgid "Notes about walking over entries:"
38716 msgstr ""
38717
38718 #. type: textblock
38719 #: ../src/guestfs.pod:2095
38720 msgid ""
38721 "You must not call C<guestfs_set_private> while walking over the entries."
38722 msgstr ""
38723
38724 #. type: textblock
38725 #: ../src/guestfs.pod:2100
38726 msgid ""
38727 "The handle maintains an internal iterator which is reset when you call "
38728 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
38729 "call C<guestfs_set_private>."
38730 msgstr ""
38731
38732 #. type: textblock
38733 #: ../src/guestfs.pod:2106
38734 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
38735 msgstr ""
38736
38737 #. type: verbatim
38738 #: ../src/guestfs.pod:2108
38739 #, no-wrap
38740 msgid ""
38741 " guestfs_set_private (g, key, NULL);\n"
38742 "\n"
38743 msgstr ""
38744
38745 #. type: textblock
38746 #: ../src/guestfs.pod:2110
38747 msgid "then that C<key> is not returned when walking."
38748 msgstr ""
38749
38750 #. type: textblock
38751 #: ../src/guestfs.pod:2114
38752 msgid ""
38753 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
38754 "C<guestfs_next_private> or C<guestfs_set_private>."
38755 msgstr ""
38756
38757 #. type: textblock
38758 #: ../src/guestfs.pod:2120
38759 msgid ""
38760 "The following example code shows how to print all keys and data pointers "
38761 "that are associated with the handle C<g>:"
38762 msgstr ""
38763
38764 #. type: verbatim
38765 #: ../src/guestfs.pod:2123
38766 #, no-wrap
38767 msgid ""
38768 " const char *key;\n"
38769 " void *data = guestfs_first_private (g, &key);\n"
38770 " while (data != NULL)\n"
38771 "   {\n"
38772 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
38773 "     data = guestfs_next_private (g, &key);\n"
38774 "   }\n"
38775 "\n"
38776 msgstr ""
38777
38778 #. type: textblock
38779 #: ../src/guestfs.pod:2131
38780 msgid ""
38781 "More commonly you are only interested in keys that begin with an application-"
38782 "specific prefix C<foo_>.  Modify the loop like so:"
38783 msgstr ""
38784
38785 #. type: verbatim
38786 #: ../src/guestfs.pod:2134
38787 #, no-wrap
38788 msgid ""
38789 " const char *key;\n"
38790 " void *data = guestfs_first_private (g, &key);\n"
38791 " while (data != NULL)\n"
38792 "   {\n"
38793 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38794 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
38795 "     data = guestfs_next_private (g, &key);\n"
38796 "   }\n"
38797 "\n"
38798 msgstr ""
38799
38800 #. type: textblock
38801 #: ../src/guestfs.pod:2143
38802 msgid ""
38803 "If you need to modify keys while walking, then you have to jump back to the "
38804 "beginning of the loop.  For example, to delete all keys prefixed with "
38805 "C<foo_>:"
38806 msgstr ""
38807
38808 #. type: verbatim
38809 #: ../src/guestfs.pod:2147
38810 #, no-wrap
38811 msgid ""
38812 "  const char *key;\n"
38813 "  void *data;\n"
38814 " again:\n"
38815 "  data = guestfs_first_private (g, &key);\n"
38816 "  while (data != NULL)\n"
38817 "    {\n"
38818 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38819 "        {\n"
38820 "          guestfs_set_private (g, key, NULL);\n"
38821 "          /* note that 'key' pointer is now invalid, and so is\n"
38822 "             the internal iterator */\n"
38823 "          goto again;\n"
38824 "        }\n"
38825 "      data = guestfs_next_private (g, &key);\n"
38826 "    }\n"
38827 "\n"
38828 msgstr ""
38829
38830 #. type: textblock
38831 #: ../src/guestfs.pod:2163
38832 msgid ""
38833 "Note that the above loop is guaranteed to terminate because the keys are "
38834 "being deleted, but other manipulations of keys within the loop might not "
38835 "terminate unless you also maintain an indication of which keys have been "
38836 "visited."
38837 msgstr ""
38838
38839 #. type: =head1
38840 #: ../src/guestfs.pod:2168
38841 msgid "SYSTEMTAP"
38842 msgstr ""
38843
38844 #. type: textblock
38845 #: ../src/guestfs.pod:2170
38846 msgid ""
38847 "The libguestfs C library can be probed using systemtap or DTrace.  This is "
38848 "true of any library, not just libguestfs.  However libguestfs also contains "
38849 "static markers to help in probing internal operations."
38850 msgstr ""
38851
38852 #. type: textblock
38853 #: ../src/guestfs.pod:2174
38854 msgid "You can list all the static markers by doing:"
38855 msgstr ""
38856
38857 #. type: verbatim
38858 #: ../src/guestfs.pod:2176
38859 #, no-wrap
38860 msgid ""
38861 " stap -l 'process(\"/usr/lib*/libguestfs.so.0\")\n"
38862 "              .provider(\"guestfs\").mark(\"*\")'\n"
38863 "\n"
38864 msgstr ""
38865
38866 #. type: textblock
38867 #: ../src/guestfs.pod:2179
38868 msgid ""
38869 "B<Note:> These static markers are I<not> part of the stable API and may "
38870 "change in future versions."
38871 msgstr ""
38872
38873 #. type: =head2
38874 #: ../src/guestfs.pod:2182
38875 msgid "SYSTEMTAP SCRIPT EXAMPLE"
38876 msgstr ""
38877
38878 #. type: textblock
38879 #: ../src/guestfs.pod:2184
38880 msgid ""
38881 "This script contains examples of displaying both the static markers and some "
38882 "ordinary C entry points:"
38883 msgstr ""
38884
38885 #. type: verbatim
38886 #: ../src/guestfs.pod:2187
38887 #, no-wrap
38888 msgid ""
38889 " global last;\n"
38890 " \n"
38891 msgstr ""
38892
38893 #. type: verbatim
38894 #: ../src/guestfs.pod:2189
38895 #, no-wrap
38896 msgid ""
38897 " function display_time () {\n"
38898 "       now = gettimeofday_us ();\n"
38899 "       delta = 0;\n"
38900 "       if (last > 0)\n"
38901 "             delta = now - last;\n"
38902 "       last = now;\n"
38903 " \n"
38904 msgstr ""
38905
38906 #. type: verbatim
38907 #: ../src/guestfs.pod:2196
38908 #, no-wrap
38909 msgid ""
38910 "       printf (\"%d (+%d):\", now, delta);\n"
38911 " }\n"
38912 " \n"
38913 msgstr ""
38914
38915 #. type: verbatim
38916 #: ../src/guestfs.pod:2199
38917 #, no-wrap
38918 msgid ""
38919 " probe begin {\n"
38920 "       last = 0;\n"
38921 "       printf (\"ready\\n\");\n"
38922 " }\n"
38923 " \n"
38924 msgstr ""
38925
38926 #. type: verbatim
38927 #: ../src/guestfs.pod:2204
38928 #, no-wrap
38929 msgid ""
38930 " /* Display all calls to static markers. */\n"
38931 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38932 "           .provider(\"guestfs\").mark(\"*\") ? {\n"
38933 "       display_time();\n"
38934 "       printf (\"\\t%s %s\\n\", $$name, $$parms);\n"
38935 " }\n"
38936 " \n"
38937 msgstr ""
38938
38939 #. type: verbatim
38940 #: ../src/guestfs.pod:2211
38941 #, no-wrap
38942 msgid ""
38943 " /* Display all calls to guestfs_mkfs* functions. */\n"
38944 " probe process(\"/usr/lib*/libguestfs.so.0\")\n"
38945 "           .function(\"guestfs_mkfs*\") ? {\n"
38946 "       display_time();\n"
38947 "       printf (\"\\t%s %s\\n\", probefunc(), $$parms);\n"
38948 " }\n"
38949 "\n"
38950 msgstr ""
38951
38952 #. type: textblock
38953 #: ../src/guestfs.pod:2218
38954 msgid ""
38955 "The script above can be saved to C<test.stap> and run using the L<stap(1)> "
38956 "program.  Note that you either have to be root, or you have to add yourself "
38957 "to several special stap groups.  Consult the systemtap documentation for "
38958 "more information."
38959 msgstr ""
38960
38961 #. type: verbatim
38962 #: ../src/guestfs.pod:2223
38963 #, no-wrap
38964 msgid ""
38965 " # stap /tmp/test.stap\n"
38966 " ready\n"
38967 "\n"
38968 msgstr ""
38969
38970 #. type: textblock
38971 #: ../src/guestfs.pod:2226
38972 msgid "In another terminal, run a guestfish command such as this:"
38973 msgstr ""
38974
38975 #. type: textblock
38976 #: ../src/guestfs.pod:2230
38977 msgid "In the first terminal, stap trace output similar to this is shown:"
38978 msgstr ""
38979
38980 #. type: verbatim
38981 #: ../src/guestfs.pod:2232
38982 #, no-wrap
38983 msgid ""
38984 " 1318248056692655 (+0):\tlaunch_start\n"
38985 " 1318248056692850 (+195):       launch_build_appliance_start\n"
38986 " 1318248056818285 (+125435):    launch_build_appliance_end\n"
38987 " 1318248056838059 (+19774):     launch_run_qemu\n"
38988 " 1318248061071167 (+4233108):   launch_end\n"
38989 " 1318248061280324 (+209157):    guestfs_mkfs g=0x1024ab0 fstype=0x46116f device=0x1024e60\n"
38990 "\n"
38991 msgstr ""
38992
38993 #. type: =end
38994 #: ../src/guestfs.pod:2239 ../src/guestfs.pod:2244
38995 msgid "html"
38996 msgstr "html"
38997
38998 #. type: textblock
38999 #: ../src/guestfs.pod:2241
39000 msgid ""
39001 "<!-- old anchor for the next section --> <a name="
39002 "\"state_machine_and_low_level_event_api\"/>"
39003 msgstr ""
39004 "<!-- old anchor for the next section --> <a name="
39005 "\"state_machine_and_low_level_event_api\"/>"
39006
39007 #. type: =head1
39008 #: ../src/guestfs.pod:2246
39009 msgid "ARCHITECTURE"
39010 msgstr "АРХІТЕКТУРА"
39011
39012 #. type: textblock
39013 #: ../src/guestfs.pod:2248
39014 msgid ""
39015 "Internally, libguestfs is implemented by running an appliance (a special "
39016 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
39017 "process of the main program."
39018 msgstr ""
39019
39020 #. type: verbatim
39021 #: ../src/guestfs.pod:2252
39022 #, no-wrap
39023 msgid ""
39024 "  ___________________\n"
39025 " /                   \\\n"
39026 " | main program      |\n"
39027 " |                   |\n"
39028 " |                   |           child process / appliance\n"
39029 " |                   |           __________________________\n"
39030 " |                   |          / qemu                     \\\n"
39031 " +-------------------+   RPC    |      +-----------------+ |\n"
39032 " | libguestfs     <--------------------> guestfsd        | |\n"
39033 " |                   |          |      +-----------------+ |\n"
39034 " \\___________________/          |      | Linux kernel    | |\n"
39035 "                                |      +--^--------------+ |\n"
39036 "                                \\_________|________________/\n"
39037 "                                          |\n"
39038 "                                   _______v______\n"
39039 "                                  /              \\\n"
39040 "                                  | Device or    |\n"
39041 "                                  | disk image   |\n"
39042 "                                  \\______________/\n"
39043 "\n"
39044 msgstr ""
39045
39046 #. type: textblock
39047 #: ../src/guestfs.pod:2272
39048 msgid ""
39049 "The library, linked to the main program, creates the child process and hence "
39050 "the appliance in the L</guestfs_launch> function."
39051 msgstr ""
39052
39053 #. type: textblock
39054 #: ../src/guestfs.pod:2275
39055 msgid ""
39056 "Inside the appliance is a Linux kernel and a complete stack of userspace "
39057 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
39058 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
39059 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
39060 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
39061 "attached to the qemu process which translates device access by the "
39062 "appliance's Linux kernel into accesses to the image."
39063 msgstr ""
39064
39065 #. type: textblock
39066 #: ../src/guestfs.pod:2284
39067 msgid ""
39068 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
39069 "Although the disk image you are attached to might also be used by some "
39070 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
39071 "care if both libguestfs's qemu process and your virtual machine are trying "
39072 "to update the disk image at the same time, since these usually results in "
39073 "massive disk corruption)."
39074 msgstr ""
39075
39076 #. type: =head1
39077 #: ../src/guestfs.pod:2291
39078 msgid "STATE MACHINE"
39079 msgstr "СКІНЧЕННИЙ АВТОМАТ"
39080
39081 #. type: textblock
39082 #: ../src/guestfs.pod:2293
39083 msgid "libguestfs uses a state machine to model the child process:"
39084 msgstr ""
39085
39086 #. type: verbatim
39087 #: ../src/guestfs.pod:2295
39088 #, no-wrap
39089 msgid ""
39090 "                         |\n"
39091 "                    guestfs_create\n"
39092 "                         |\n"
39093 "                         |\n"
39094 "                     ____V_____\n"
39095 "                    /          \\\n"
39096 "                    |  CONFIG  |\n"
39097 "                    \\__________/\n"
39098 "                     ^ ^   ^  \\\n"
39099 "                    /  |    \\  \\ guestfs_launch\n"
39100 "                   /   |    _\\__V______\n"
39101 "                  /    |   /           \\\n"
39102 "                 /     |   | LAUNCHING |\n"
39103 "                /      |   \\___________/\n"
39104 "               /       |       /\n"
39105 "              /        |  guestfs_launch\n"
39106 "             /         |     /\n"
39107 "    ______  /        __|____V\n"
39108 "   /      \\ ------> /        \\\n"
39109 "   | BUSY |         | READY  |\n"
39110 "   \\______/ <------ \\________/\n"
39111 "\n"
39112 msgstr ""
39113
39114 #. type: textblock
39115 #: ../src/guestfs.pod:2317
39116 msgid ""
39117 "The normal transitions are (1) CONFIG (when the handle is created, but there "
39118 "is no child process), (2) LAUNCHING (when the child process is booting up), "
39119 "(3) alternating between READY and BUSY as commands are issued to, and "
39120 "carried out by, the child process."
39121 msgstr ""
39122
39123 #. type: textblock
39124 #: ../src/guestfs.pod:2322
39125 msgid ""
39126 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
39127 "asynchronously at any time (eg. due to some internal error), and that causes "
39128 "the state to transition back to CONFIG."
39129 msgstr ""
39130
39131 #. type: textblock
39132 #: ../src/guestfs.pod:2326
39133 msgid ""
39134 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
39135 "issued when in the CONFIG state."
39136 msgstr ""
39137
39138 #. type: textblock
39139 #: ../src/guestfs.pod:2329
39140 msgid ""
39141 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
39142 "L</guestfs_launch> blocks until the child process is READY to accept "
39143 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
39144 "moves the state from CONFIG to LAUNCHING while it is running."
39145 msgstr ""
39146
39147 #. type: textblock
39148 #: ../src/guestfs.pod:2335
39149 msgid ""
39150 "API actions such as L</guestfs_mount> can only be issued when in the READY "
39151 "state.  These API calls block waiting for the command to be carried out (ie. "
39152 "the state to transition to BUSY and then back to READY).  There are no non-"
39153 "blocking versions, and no way to issue more than one command per handle at "
39154 "the same time."
39155 msgstr ""
39156
39157 #. type: textblock
39158 #: ../src/guestfs.pod:2341
39159 msgid ""
39160 "Finally, the child process sends asynchronous messages back to the main "
39161 "program, such as kernel log messages.  You can register a callback to "
39162 "receive these messages."
39163 msgstr ""
39164
39165 #. type: =head1
39166 #: ../src/guestfs.pod:2345
39167 msgid "INTERNALS"
39168 msgstr ""
39169
39170 #. type: =head2
39171 #: ../src/guestfs.pod:2347
39172 msgid "APPLIANCE BOOT PROCESS"
39173 msgstr ""
39174
39175 #. type: textblock
39176 #: ../src/guestfs.pod:2349
39177 msgid ""
39178 "This process has evolved and continues to evolve.  The description here "
39179 "corresponds only to the current version of libguestfs and is provided for "
39180 "information only."
39181 msgstr ""
39182
39183 #. type: textblock
39184 #: ../src/guestfs.pod:2353
39185 msgid ""
39186 "In order to follow the stages involved below, enable libguestfs debugging "
39187 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
39188 msgstr ""
39189
39190 #. type: =item
39191 #: ../src/guestfs.pod:2358
39192 msgid "Create the appliance"
39193 msgstr ""
39194
39195 #. type: textblock
39196 #: ../src/guestfs.pod:2360
39197 msgid ""
39198 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
39199 "initrd and the appliance."
39200 msgstr ""
39201
39202 #. type: textblock
39203 #: ../src/guestfs.pod:2363
39204 msgid ""
39205 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
39206 "directory if C<TMPDIR> is set)."
39207 msgstr ""
39208
39209 #. type: textblock
39210 #: ../src/guestfs.pod:2366
39211 msgid ""
39212 "For a complete description of how the appliance is created and cached, read "
39213 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
39214 msgstr ""
39215
39216 #. type: =item
39217 #: ../src/guestfs.pod:2370
39218 msgid "Start qemu and boot the kernel"
39219 msgstr ""
39220
39221 #. type: textblock
39222 #: ../src/guestfs.pod:2372
39223 msgid "qemu is invoked to boot the kernel."
39224 msgstr ""
39225
39226 #. type: =item
39227 #: ../src/guestfs.pod:2374
39228 msgid "Run the initrd"
39229 msgstr ""
39230
39231 #. type: textblock
39232 #: ../src/guestfs.pod:2376
39233 msgid ""
39234 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
39235 "appliance.  The purpose of the initrd is to load enough kernel modules in "
39236 "order that the appliance itself can be mounted and started."
39237 msgstr ""
39238
39239 #. type: textblock
39240 #: ../src/guestfs.pod:2380
39241 msgid ""
39242 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
39243 "initrd>."
39244 msgstr ""
39245
39246 #. type: textblock
39247 #: ../src/guestfs.pod:2383
39248 msgid ""
39249 "When the initrd has started you will see messages showing that kernel "
39250 "modules are being loaded, similar to this:"
39251 msgstr ""
39252
39253 #. type: verbatim
39254 #: ../src/guestfs.pod:2386
39255 #, no-wrap
39256 msgid ""
39257 " febootstrap: ext2 mini initrd starting up\n"
39258 " febootstrap: mounting /sys\n"
39259 " febootstrap: internal insmod libcrc32c.ko\n"
39260 " febootstrap: internal insmod crc32c-intel.ko\n"
39261 "\n"
39262 msgstr ""
39263
39264 #. type: =item
39265 #: ../src/guestfs.pod:2391
39266 msgid "Find and mount the appliance device"
39267 msgstr ""
39268
39269 #. type: textblock
39270 #: ../src/guestfs.pod:2393
39271 msgid ""
39272 "The appliance is a sparse file containing an ext2 filesystem which contains "
39273 "a familiar (although reduced in size) Linux operating system.  It would "
39274 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
39275 msgstr ""
39276
39277 #. type: textblock
39278 #: ../src/guestfs.pod:2397
39279 msgid ""
39280 "The regular disks being inspected by libguestfs are the first devices "
39281 "exposed by qemu (eg. as C</dev/vda>)."
39282 msgstr ""
39283
39284 #. type: textblock
39285 #: ../src/guestfs.pod:2400
39286 msgid ""
39287 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
39288 "there was only one regular disk)."
39289 msgstr ""
39290
39291 #. type: textblock
39292 #: ../src/guestfs.pod:2403
39293 msgid ""
39294 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
39295 "and switch root into the appliance, and run C</init> from the appliance."
39296 msgstr ""
39297
39298 #. type: textblock
39299 #: ../src/guestfs.pod:2407
39300 msgid "If this works successfully you will see messages such as:"
39301 msgstr ""
39302
39303 #. type: verbatim
39304 #: ../src/guestfs.pod:2409
39305 #, no-wrap
39306 msgid ""
39307 " febootstrap: picked /sys/block/vdb/dev as root device\n"
39308 " febootstrap: creating /dev/root as block special 252:16\n"
39309 " febootstrap: mounting new root on /root\n"
39310 " febootstrap: chroot\n"
39311 " Starting /init script ...\n"
39312 "\n"
39313 msgstr ""
39314
39315 #. type: textblock
39316 #: ../src/guestfs.pod:2415
39317 msgid ""
39318 "Note that C<Starting /init script ...> indicates that the appliance's init "
39319 "script is now running."
39320 msgstr ""
39321
39322 #. type: =item
39323 #: ../src/guestfs.pod:2418
39324 msgid "Initialize the appliance"
39325 msgstr ""
39326
39327 #. type: textblock
39328 #: ../src/guestfs.pod:2420
39329 msgid ""
39330 "The appliance itself now initializes itself.  This involves starting certain "
39331 "processes like C<udev>, possibly printing some debug information, and "
39332 "finally running the daemon (C<guestfsd>)."
39333 msgstr ""
39334
39335 #. type: =item
39336 #: ../src/guestfs.pod:2424
39337 msgid "The daemon"
39338 msgstr ""
39339
39340 #. type: textblock
39341 #: ../src/guestfs.pod:2426
39342 msgid ""
39343 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
39344 "should see:"
39345 msgstr ""
39346
39347 #. type: verbatim
39348 #: ../src/guestfs.pod:2429
39349 #, no-wrap
39350 msgid ""
39351 " verbose daemon enabled\n"
39352 "\n"
39353 msgstr ""
39354
39355 #. type: textblock
39356 #: ../src/guestfs.pod:2431
39357 msgid ""
39358 "The daemon expects to see a named virtio-serial port exposed by qemu and "
39359 "connected on the other end to the library."
39360 msgstr ""
39361
39362 #. type: textblock
39363 #: ../src/guestfs.pod:2434
39364 msgid ""
39365 "The daemon connects to this port (and hence to the library) and sends a four "
39366 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
39367 "protocol (see below)."
39368 msgstr ""
39369
39370 #. type: =head2
39371 #: ../src/guestfs.pod:2440
39372 msgid "COMMUNICATION PROTOCOL"
39373 msgstr ""
39374
39375 #. type: textblock
39376 #: ../src/guestfs.pod:2442
39377 msgid ""
39378 "Don't rely on using this protocol directly.  This section documents how it "
39379 "currently works, but it may change at any time."
39380 msgstr ""
39381
39382 #. type: textblock
39383 #: ../src/guestfs.pod:2445
39384 msgid ""
39385 "The protocol used to talk between the library and the daemon running inside "
39386 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
39387 "1014, RFC 1832, RFC 4506)."
39388 msgstr ""
39389
39390 #. type: textblock
39391 #: ../src/guestfs.pod:2449
39392 msgid ""
39393 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
39394 "this file is automatically generated)."
39395 msgstr ""
39396
39397 #. type: textblock
39398 #: ../src/guestfs.pod:2452
39399 msgid ""
39400 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
39401 "and C<FileOut> parameters, which are handled with very simple request/reply "
39402 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
39403 "parameters, which use the same request and reply messages, but they may also "
39404 "be followed by files sent using a chunked encoding."
39405 msgstr ""
39406
39407 #. type: =head3
39408 #: ../src/guestfs.pod:2459
39409 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
39410 msgstr ""
39411
39412 #. type: textblock
39413 #: ../src/guestfs.pod:2461
39414 msgid "For ordinary functions, the request message is:"
39415 msgstr ""
39416
39417 #. type: verbatim
39418 #: ../src/guestfs.pod:2463
39419 #, no-wrap
39420 msgid ""
39421 " total length (header + arguments,\n"
39422 "      but not including the length word itself)\n"
39423 " struct guestfs_message_header (encoded as XDR)\n"
39424 " struct guestfs_<foo>_args (encoded as XDR)\n"
39425 "\n"
39426 msgstr ""
39427
39428 #. type: textblock
39429 #: ../src/guestfs.pod:2468
39430 msgid ""
39431 "The total length field allows the daemon to allocate a fixed size buffer "
39432 "into which it slurps the rest of the message.  As a result, the total length "
39433 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
39434 "effective size of any request is limited to somewhere under this size."
39435 msgstr ""
39436
39437 #. type: textblock
39438 #: ../src/guestfs.pod:2474
39439 msgid ""
39440 "Note also that many functions don't take any arguments, in which case the "
39441 "C<guestfs_I<foo>_args> is completely omitted."
39442 msgstr ""
39443
39444 #. type: textblock
39445 #: ../src/guestfs.pod:2477
39446 msgid ""
39447 "The header contains the procedure number (C<guestfs_proc>) which is how the "
39448 "receiver knows what type of args structure to expect, or none at all."
39449 msgstr ""
39450
39451 #. type: textblock
39452 #: ../src/guestfs.pod:2481
39453 msgid ""
39454 "For functions that take optional arguments, the optional arguments are "
39455 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
39456 "arguments.  A bitmask in the header indicates which optional arguments are "
39457 "meaningful.  The bitmask is also checked to see if it contains bits set "
39458 "which the daemon does not know about (eg. if more optional arguments were "
39459 "added in a later version of the library), and this causes the call to be "
39460 "rejected."
39461 msgstr ""
39462
39463 #. type: textblock
39464 #: ../src/guestfs.pod:2489
39465 msgid "The reply message for ordinary functions is:"
39466 msgstr ""
39467
39468 #. type: verbatim
39469 #: ../src/guestfs.pod:2491
39470 #, no-wrap
39471 msgid ""
39472 " total length (header + ret,\n"
39473 "      but not including the length word itself)\n"
39474 " struct guestfs_message_header (encoded as XDR)\n"
39475 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39476 "\n"
39477 msgstr ""
39478
39479 #. type: textblock
39480 #: ../src/guestfs.pod:2496
39481 msgid ""
39482 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
39483 "functions that return no formal return values."
39484 msgstr ""
39485
39486 #. type: textblock
39487 #: ../src/guestfs.pod:2499
39488 msgid ""
39489 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
39490 msgstr ""
39491
39492 #. type: textblock
39493 #: ../src/guestfs.pod:2502
39494 msgid ""
39495 "In the case of an error, a flag is set in the header, and the reply message "
39496 "is slightly changed:"
39497 msgstr ""
39498
39499 #. type: verbatim
39500 #: ../src/guestfs.pod:2505
39501 #, no-wrap
39502 msgid ""
39503 " total length (header + error,\n"
39504 "      but not including the length word itself)\n"
39505 " struct guestfs_message_header (encoded as XDR)\n"
39506 " struct guestfs_message_error (encoded as XDR)\n"
39507 "\n"
39508 msgstr ""
39509
39510 #. type: textblock
39511 #: ../src/guestfs.pod:2510
39512 msgid ""
39513 "The C<guestfs_message_error> structure contains the error message as a "
39514 "string."
39515 msgstr ""
39516
39517 #. type: =head3
39518 #: ../src/guestfs.pod:2513
39519 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
39520 msgstr ""
39521
39522 #. type: textblock
39523 #: ../src/guestfs.pod:2515
39524 msgid ""
39525 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
39526 "The normal request message is sent (see above).  However this is followed by "
39527 "a sequence of file chunks."
39528 msgstr ""
39529
39530 #. type: verbatim
39531 #: ../src/guestfs.pod:2519
39532 #, no-wrap
39533 msgid ""
39534 " total length (header + arguments,\n"
39535 "      but not including the length word itself,\n"
39536 "      and not including the chunks)\n"
39537 " struct guestfs_message_header (encoded as XDR)\n"
39538 " struct guestfs_<foo>_args (encoded as XDR)\n"
39539 " sequence of chunks for FileIn param #0\n"
39540 " sequence of chunks for FileIn param #1 etc.\n"
39541 "\n"
39542 msgstr ""
39543
39544 #. type: textblock
39545 #: ../src/guestfs.pod:2527
39546 msgid "The \"sequence of chunks\" is:"
39547 msgstr ""
39548
39549 #. type: verbatim
39550 #: ../src/guestfs.pod:2529
39551 #, no-wrap
39552 msgid ""
39553 " length of chunk (not including length word itself)\n"
39554 " struct guestfs_chunk (encoded as XDR)\n"
39555 " length of chunk\n"
39556 " struct guestfs_chunk (encoded as XDR)\n"
39557 "   ...\n"
39558 " length of chunk\n"
39559 " struct guestfs_chunk (with data.data_len == 0)\n"
39560 "\n"
39561 msgstr ""
39562
39563 #. type: textblock
39564 #: ../src/guestfs.pod:2537
39565 msgid ""
39566 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
39567 "is set in the final chunk to indicate either successful completion or early "
39568 "cancellation."
39569 msgstr ""
39570
39571 #. type: textblock
39572 #: ../src/guestfs.pod:2541
39573 msgid ""
39574 "At time of writing there are no functions that have more than one FileIn "
39575 "parameter.  However this is (theoretically) supported, by sending the "
39576 "sequence of chunks for each FileIn parameter one after another (from left to "
39577 "right)."
39578 msgstr ""
39579
39580 #. type: textblock
39581 #: ../src/guestfs.pod:2546
39582 msgid ""
39583 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
39584 "transfer.  The library does this by sending a chunk with a special flag set "
39585 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
39586 "RPC, does I<not> send any reply, and goes back to reading the next request."
39587 msgstr ""
39588
39589 #. type: textblock
39590 #: ../src/guestfs.pod:2552
39591 msgid ""
39592 "The daemon may also cancel.  It does this by writing a special word "
39593 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
39594 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
39595 "cancel chunk).  The special word is chosen so that even if cancellation "
39596 "happens right at the end of the transfer (after the library has finished "
39597 "writing and has started listening for the reply), the \"spurious\" cancel "
39598 "flag will not be confused with the reply message."
39599 msgstr ""
39600
39601 #. type: textblock
39602 #: ../src/guestfs.pod:2561
39603 msgid ""
39604 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
39605 "limit), and also files where the size is not known in advance (eg. from "
39606 "pipes or sockets).  However the chunks are rather small "
39607 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
39608 "to keep much in memory."
39609 msgstr ""
39610
39611 #. type: =head3
39612 #: ../src/guestfs.pod:2567
39613 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
39614 msgstr ""
39615
39616 #. type: textblock
39617 #: ../src/guestfs.pod:2569
39618 msgid ""
39619 "The protocol for FileOut parameters is exactly the same as for FileIn "
39620 "parameters, but with the roles of daemon and library reversed."
39621 msgstr ""
39622
39623 #. type: verbatim
39624 #: ../src/guestfs.pod:2572
39625 #, no-wrap
39626 msgid ""
39627 " total length (header + ret,\n"
39628 "      but not including the length word itself,\n"
39629 "      and not including the chunks)\n"
39630 " struct guestfs_message_header (encoded as XDR)\n"
39631 " struct guestfs_<foo>_ret (encoded as XDR)\n"
39632 " sequence of chunks for FileOut param #0\n"
39633 " sequence of chunks for FileOut param #1 etc.\n"
39634 "\n"
39635 msgstr ""
39636
39637 #. type: =head3
39638 #: ../src/guestfs.pod:2580
39639 msgid "INITIAL MESSAGE"
39640 msgstr ""
39641
39642 #. type: textblock
39643 #: ../src/guestfs.pod:2582
39644 msgid ""
39645 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
39646 "which indicates that the guest and daemon is alive.  This is what L</"
39647 "guestfs_launch> waits for."
39648 msgstr ""
39649
39650 #. type: =head3
39651 #: ../src/guestfs.pod:2586
39652 msgid "PROGRESS NOTIFICATION MESSAGES"
39653 msgstr ""
39654
39655 #. type: textblock
39656 #: ../src/guestfs.pod:2588
39657 msgid ""
39658 "The daemon may send progress notification messages at any time.  These are "
39659 "distinguished by the normal length word being replaced by "
39660 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
39661 msgstr ""
39662
39663 #. type: textblock
39664 #: ../src/guestfs.pod:2592
39665 msgid ""
39666 "The library turns them into progress callbacks (see L</"
39667 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
39668 "if not."
39669 msgstr ""
39670
39671 #. type: textblock
39672 #: ../src/guestfs.pod:2596
39673 msgid ""
39674 "The daemon self-limits the frequency of progress messages it sends (see "
39675 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
39676 "messages."
39677 msgstr ""
39678
39679 #. type: =head1
39680 #: ../src/guestfs.pod:2600
39681 msgid "LIBGUESTFS VERSION NUMBERS"
39682 msgstr ""
39683
39684 #. type: textblock
39685 #: ../src/guestfs.pod:2602
39686 msgid ""
39687 "Since April 2010, libguestfs has started to make separate development and "
39688 "stable releases, along with corresponding branches in our git repository.  "
39689 "These separate releases can be identified by version number:"
39690 msgstr ""
39691
39692 #. type: verbatim
39693 #: ../src/guestfs.pod:2607
39694 #, no-wrap
39695 msgid ""
39696 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
39697 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
39698 "       |\n"
39699 "       v\n"
39700 " 1  .  3  .  5\n"
39701 " ^           ^\n"
39702 " |           |\n"
39703 " |           `-------- sub-version\n"
39704 " |\n"
39705 " `------ always '1' because we don't change the ABI\n"
39706 "\n"
39707 msgstr ""
39708
39709 #. type: textblock
39710 #: ../src/guestfs.pod:2618
39711 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
39712 msgstr ""
39713
39714 #. type: textblock
39715 #: ../src/guestfs.pod:2620
39716 msgid ""
39717 "As time passes we cherry pick fixes from the development branch and backport "
39718 "those into the stable branch, the effect being that the stable branch should "
39719 "get more stable and less buggy over time.  So the stable releases are ideal "
39720 "for people who don't need new features but would just like the software to "
39721 "work."
39722 msgstr ""
39723
39724 #. type: textblock
39725 #: ../src/guestfs.pod:2626
39726 msgid "Our criteria for backporting changes are:"
39727 msgstr ""
39728
39729 #. type: textblock
39730 #: ../src/guestfs.pod:2632
39731 msgid ""
39732 "Documentation changes which don't affect any code are backported unless the "
39733 "documentation refers to a future feature which is not in stable."
39734 msgstr ""
39735
39736 #. type: textblock
39737 #: ../src/guestfs.pod:2638
39738 msgid ""
39739 "Bug fixes which are not controversial, fix obvious problems, and have been "
39740 "well tested are backported."
39741 msgstr ""
39742
39743 #. type: textblock
39744 #: ../src/guestfs.pod:2643
39745 msgid ""
39746 "Simple rearrangements of code which shouldn't affect how it works get "
39747 "backported.  This is so that the code in the two branches doesn't get too "
39748 "far out of step, allowing us to backport future fixes more easily."
39749 msgstr ""
39750
39751 #. type: textblock
39752 #: ../src/guestfs.pod:2649
39753 msgid ""
39754 "We I<don't> backport new features, new APIs, new tools etc, except in one "
39755 "exceptional case: the new feature is required in order to implement an "
39756 "important bug fix."
39757 msgstr ""
39758
39759 #. type: textblock
39760 #: ../src/guestfs.pod:2655
39761 msgid ""
39762 "A new stable branch starts when we think the new features in development are "
39763 "substantial and compelling enough over the current stable branch to warrant "
39764 "it.  When that happens we create new stable and development versions 1.N.0 "
39765 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
39766 "stable at this point, but by backporting fixes from development, that branch "
39767 "will stabilize over time."
39768 msgstr ""
39769
39770 #. type: =head1
39771 #: ../src/guestfs.pod:2663
39772 msgid "EXTENDING LIBGUESTFS"
39773 msgstr ""
39774
39775 #. type: =head2
39776 #: ../src/guestfs.pod:2665
39777 msgid "ADDING A NEW API ACTION"
39778 msgstr ""
39779
39780 #. type: textblock
39781 #: ../src/guestfs.pod:2667
39782 msgid ""
39783 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39784 "documentation) are generated, and this makes it easy to extend the "
39785 "libguestfs API."
39786 msgstr ""
39787
39788 #. type: textblock
39789 #: ../src/guestfs.pod:2671
39790 msgid "To add a new API action there are two changes:"
39791 msgstr ""
39792
39793 #. type: textblock
39794 #: ../src/guestfs.pod:2677
39795 msgid ""
39796 "You need to add a description of the call (name, parameters, return type, "
39797 "tests, documentation) to C<generator/generator_actions.ml>."
39798 msgstr ""
39799
39800 #. type: textblock
39801 #: ../src/guestfs.pod:2680
39802 msgid ""
39803 "There are two sorts of API action, depending on whether the call goes "
39804 "through to the daemon in the appliance, or is serviced entirely by the "
39805 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
39806 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
39807 "an example of the latter, since a trace flag is maintained in the handle and "
39808 "all tracing is done on the library side."
39809 msgstr ""
39810
39811 #. type: textblock
39812 #: ../src/guestfs.pod:2688
39813 msgid ""
39814 "Most new actions are of the first type, and get added to the "
39815 "C<daemon_functions> list.  Each function has a unique procedure number used "
39816 "in the RPC protocol which is assigned to that action when we publish "
39817 "libguestfs and cannot be reused.  Take the latest procedure number and "
39818 "increment it."
39819 msgstr ""
39820
39821 #. type: textblock
39822 #: ../src/guestfs.pod:2694
39823 msgid ""
39824 "For library-only actions of the second type, add to the "
39825 "C<non_daemon_functions> list.  Since these functions are serviced by the "
39826 "library and do not travel over the RPC mechanism to the daemon, these "
39827 "functions do not need a procedure number, and so the procedure number is set "
39828 "to C<-1>."
39829 msgstr ""
39830
39831 #. type: textblock
39832 #: ../src/guestfs.pod:2702
39833 msgid "Implement the action (in C):"
39834 msgstr ""
39835
39836 #. type: textblock
39837 #: ../src/guestfs.pod:2704
39838 msgid ""
39839 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39840 "C<daemon/> directory."
39841 msgstr ""
39842
39843 #. type: textblock
39844 #: ../src/guestfs.pod:2707
39845 msgid ""
39846 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
39847 "(note: double underscore) in the C<src/> directory."
39848 msgstr ""
39849
39850 #. type: textblock
39851 #: ../src/guestfs.pod:2710
39852 msgid "In either case, use another function as an example of what to do."
39853 msgstr ""
39854
39855 #. type: textblock
39856 #: ../src/guestfs.pod:2714
39857 msgid "After making these changes, use C<make> to compile."
39858 msgstr ""
39859
39860 #. type: textblock
39861 #: ../src/guestfs.pod:2716
39862 msgid ""
39863 "Note that you don't need to implement the RPC, language bindings, manual "
39864 "pages or anything else.  It's all automatically generated from the OCaml "
39865 "description."
39866 msgstr ""
39867
39868 #. type: =head2
39869 #: ../src/guestfs.pod:2720
39870 msgid "ADDING TESTS FOR AN API ACTION"
39871 msgstr ""
39872
39873 #. type: textblock
39874 #: ../src/guestfs.pod:2722
39875 msgid ""
39876 "You can supply zero or as many tests as you want per API call.  The tests "
39877 "can either be added as part of the API description (C<generator/"
39878 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
39879 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
39880 "slower, so if possible use the first method."
39881 msgstr ""
39882
39883 #. type: textblock
39884 #: ../src/guestfs.pod:2728
39885 msgid ""
39886 "The following describes the test environment used when you add an API test "
39887 "in C<generator_actions.ml>."
39888 msgstr ""
39889
39890 #. type: textblock
39891 #: ../src/guestfs.pod:2731
39892 msgid "The test environment has 4 block devices:"
39893 msgstr ""
39894
39895 #. type: =item
39896 #: ../src/guestfs.pod:2735
39897 msgid "C</dev/sda> 500MB"
39898 msgstr "C</dev/sda> 500 МБ"
39899
39900 #. type: textblock
39901 #: ../src/guestfs.pod:2737
39902 msgid "General block device for testing."
39903 msgstr ""
39904
39905 #. type: =item
39906 #: ../src/guestfs.pod:2739
39907 msgid "C</dev/sdb> 50MB"
39908 msgstr "C</dev/sdb> 50 МБ"
39909
39910 #. type: textblock
39911 #: ../src/guestfs.pod:2741
39912 msgid ""
39913 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39914 "operations."
39915 msgstr ""
39916
39917 #. type: =item
39918 #: ../src/guestfs.pod:2744
39919 msgid "C</dev/sdc> 10MB"
39920 msgstr "C</dev/sdc> 10 МБ"
39921
39922 #. type: textblock
39923 #: ../src/guestfs.pod:2746
39924 msgid "Used in a few tests where two block devices are needed."
39925 msgstr ""
39926
39927 #. type: =item
39928 #: ../src/guestfs.pod:2748
39929 msgid "C</dev/sdd>"
39930 msgstr "C</dev/sdd>"
39931
39932 #. type: textblock
39933 #: ../src/guestfs.pod:2750
39934 msgid "ISO with fixed content (see C<images/test.iso>)."
39935 msgstr ""
39936
39937 #. type: textblock
39938 #: ../src/guestfs.pod:2754
39939 msgid ""
39940 "To be able to run the tests in a reasonable amount of time, the libguestfs "
39941 "appliance and block devices are reused between tests.  So don't try testing "
39942 "L</guestfs_kill_subprocess> :-x"
39943 msgstr ""
39944
39945 #. type: textblock
39946 #: ../src/guestfs.pod:2758
39947 msgid ""
39948 "Each test starts with an initial scenario, selected using one of the "
39949 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
39950 "initialize the disks mentioned above in a particular way as documented in "
39951 "C<generator_types.ml>.  You should not assume anything about the previous "
39952 "contents of other disks that are not initialized."
39953 msgstr ""
39954
39955 #. type: textblock
39956 #: ../src/guestfs.pod:2764
39957 msgid ""
39958 "You can add a prerequisite clause to any individual test.  This is a run-"
39959 "time check, which, if it fails, causes the test to be skipped.  Useful if "
39960 "testing a command which might not work on all variations of libguestfs "
39961 "builds.  A test that has prerequisite of C<Always> means to run "
39962 "unconditionally."
39963 msgstr ""
39964
39965 #. type: textblock
39966 #: ../src/guestfs.pod:2770
39967 msgid ""
39968 "In addition, packagers can skip individual tests by setting environment "
39969 "variables before running C<make check>."
39970 msgstr ""
39971
39972 #. type: verbatim
39973 #: ../src/guestfs.pod:2773
39974 #, no-wrap
39975 msgid ""
39976 " SKIP_TEST_<CMD>_<NUM>=1\n"
39977 "\n"
39978 msgstr ""
39979
39980 #. type: textblock
39981 #: ../src/guestfs.pod:2775
39982 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
39983 msgstr ""
39984
39985 #. type: textblock
39986 #: ../src/guestfs.pod:2777
39987 msgid "or:"
39988 msgstr "або:"
39989
39990 #. type: verbatim
39991 #: ../src/guestfs.pod:2779
39992 #, no-wrap
39993 msgid ""
39994 " SKIP_TEST_<CMD>=1\n"
39995 "\n"
39996 msgstr ""
39997
39998 #. type: textblock
39999 #: ../src/guestfs.pod:2781
40000 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
40001 msgstr ""
40002
40003 #. type: textblock
40004 #: ../src/guestfs.pod:2783
40005 msgid "Packagers can run only certain tests by setting for example:"
40006 msgstr ""
40007
40008 #. type: verbatim
40009 #: ../src/guestfs.pod:2785
40010 #, no-wrap
40011 msgid ""
40012 " TEST_ONLY=\"vfs_type zerofree\"\n"
40013 "\n"
40014 msgstr ""
40015
40016 #. type: textblock
40017 #: ../src/guestfs.pod:2787
40018 msgid ""
40019 "See C<capitests/tests.c> for more details of how these environment variables "
40020 "work."
40021 msgstr ""
40022
40023 #. type: =head2
40024 #: ../src/guestfs.pod:2790
40025 msgid "DEBUGGING NEW API ACTIONS"
40026 msgstr ""
40027
40028 #. type: textblock
40029 #: ../src/guestfs.pod:2792
40030 msgid "Test new actions work before submitting them."
40031 msgstr ""
40032
40033 #. type: textblock
40034 #: ../src/guestfs.pod:2794
40035 msgid "You can use guestfish to try out new commands."
40036 msgstr ""
40037
40038 #. type: textblock
40039 #: ../src/guestfs.pod:2796
40040 msgid ""
40041 "Debugging the daemon is a problem because it runs inside a minimal "
40042 "environment.  However you can fprintf messages in the daemon to stderr, and "
40043 "they will show up if you use C<guestfish -v>."
40044 msgstr ""
40045
40046 #. type: =head2
40047 #: ../src/guestfs.pod:2800
40048 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
40049 msgstr ""
40050
40051 #. type: textblock
40052 #: ../src/guestfs.pod:2802
40053 msgid ""
40054 "Our C source code generally adheres to some basic code-formatting "
40055 "conventions.  The existing code base is not totally consistent on this "
40056 "front, but we do prefer that contributed code be formatted similarly.  In "
40057 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
40058 "indentation level, and other than that, follow the K&R style."
40059 msgstr ""
40060
40061 #. type: textblock
40062 #: ../src/guestfs.pod:2808
40063 msgid ""
40064 "If you use Emacs, add the following to one of one of your start-up files (e."
40065 "g., ~/.emacs), to help ensure that you get indentation right:"
40066 msgstr ""
40067
40068 #. type: verbatim
40069 #: ../src/guestfs.pod:2811
40070 #, no-wrap
40071 msgid ""
40072 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
40073 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
40074 " (add-hook 'find-file-hook\n"
40075 "     '(lambda () (if (and buffer-file-name\n"
40076 "                          (string-match \"/libguestfs\\\\>\"\n"
40077 "                              (buffer-file-name))\n"
40078 "                          (not (string-equal mode-name \"Change Log\"))\n"
40079 "                          (not (string-equal mode-name \"Makefile\")))\n"
40080 "                     (setq indent-tabs-mode nil))))\n"
40081 " \n"
40082 msgstr ""
40083
40084 #. type: verbatim
40085 #: ../src/guestfs.pod:2821
40086 #, no-wrap
40087 msgid ""
40088 " ;;; When editing C sources in libguestfs, use this style.\n"
40089 " (defun libguestfs-c-mode ()\n"
40090 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
40091 "   (interactive)\n"
40092 "   (c-set-style \"K&R\")\n"
40093 "   (setq c-indent-level 2)\n"
40094 "   (setq c-basic-offset 2))\n"
40095 " (add-hook 'c-mode-hook\n"
40096 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
40097 "                               (buffer-file-name))\n"
40098 "                           (libguestfs-c-mode))))\n"
40099 "\n"
40100 msgstr ""
40101
40102 #. type: textblock
40103 #: ../src/guestfs.pod:2833
40104 msgid "Enable warnings when compiling (and fix any problems this finds):"
40105 msgstr ""
40106
40107 #. type: verbatim
40108 #: ../src/guestfs.pod:2836
40109 #, no-wrap
40110 msgid ""
40111 " ./configure --enable-gcc-warnings\n"
40112 "\n"
40113 msgstr ""
40114 " ./configure --enable-gcc-warnings\n"
40115 "\n"
40116
40117 #. type: textblock
40118 #: ../src/guestfs.pod:2838
40119 msgid "Useful targets are:"
40120 msgstr ""
40121
40122 #. type: verbatim
40123 #: ../src/guestfs.pod:2840
40124 #, no-wrap
40125 msgid ""
40126 " make syntax-check  # checks the syntax of the C code\n"
40127 " make check         # runs the test suite\n"
40128 "\n"
40129 msgstr ""
40130
40131 #. type: =head2
40132 #: ../src/guestfs.pod:2843
40133 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
40134 msgstr ""
40135
40136 #. type: textblock
40137 #: ../src/guestfs.pod:2845
40138 msgid ""
40139 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
40140 "which are used to do shell quoting."
40141 msgstr ""
40142
40143 #. type: =item
40144 #: ../src/guestfs.pod:2850
40145 msgid "%Q"
40146 msgstr "%Q"
40147
40148 #. type: textblock
40149 #: ../src/guestfs.pod:2852
40150 msgid ""
40151 "Simple shell quoted string.  Any spaces or other shell characters are "
40152 "escaped for you."
40153 msgstr ""
40154
40155 #. type: =item
40156 #: ../src/guestfs.pod:2855
40157 msgid "%R"
40158 msgstr "%R"
40159
40160 #. type: textblock
40161 #: ../src/guestfs.pod:2857
40162 msgid ""
40163 "Same as C<%Q> except the string is treated as a path which is prefixed by "
40164 "the sysroot."
40165 msgstr ""
40166
40167 #. type: verbatim
40168 #: ../src/guestfs.pod:2864
40169 #, no-wrap
40170 msgid ""
40171 " asprintf (&cmd, \"cat %R\", path);\n"
40172 "\n"
40173 msgstr ""
40174 " asprintf (&cmd, \"cat %R\", path);\n"
40175 "\n"
40176
40177 #. type: textblock
40178 #: ../src/guestfs.pod:2866
40179 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
40180 msgstr ""
40181
40182 #. type: textblock
40183 #: ../src/guestfs.pod:2868
40184 msgid ""
40185 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
40186 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
40187 "they are not passed via the shell (instead, straight to exec).  You probably "
40188 "want to use the C<sysroot_path()> function however."
40189 msgstr ""
40190
40191 #. type: =head2
40192 #: ../src/guestfs.pod:2874
40193 msgid "SUBMITTING YOUR NEW API ACTIONS"
40194 msgstr ""
40195
40196 #. type: textblock
40197 #: ../src/guestfs.pod:2876
40198 msgid ""
40199 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
40200 "libguestfs> and CC to L<rjones@redhat.com>."
40201 msgstr ""
40202
40203 #. type: =head2
40204 #: ../src/guestfs.pod:2880
40205 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
40206 msgstr ""
40207
40208 #. type: textblock
40209 #: ../src/guestfs.pod:2882
40210 msgid "We support i18n (gettext anyhow) in the library."
40211 msgstr ""
40212
40213 #. type: textblock
40214 #: ../src/guestfs.pod:2884
40215 msgid ""
40216 "However many messages come from the daemon, and we don't translate those at "
40217 "the moment.  One reason is that the appliance generally has all locale files "
40218 "removed from it, because they take up a lot of space.  So we'd have to readd "
40219 "some of those, as well as copying our PO files into the appliance."
40220 msgstr ""
40221
40222 #. type: textblock
40223 #: ../src/guestfs.pod:2890
40224 msgid ""
40225 "Debugging messages are never translated, since they are intended for the "
40226 "programmers."
40227 msgstr ""
40228
40229 #. type: =head2
40230 #: ../src/guestfs.pod:2893
40231 msgid "SOURCE CODE SUBDIRECTORIES"
40232 msgstr ""
40233
40234 #. type: =item
40235 #: ../src/guestfs.pod:2897
40236 msgid "C<align>"
40237 msgstr ""
40238
40239 #. type: textblock
40240 #: ../src/guestfs.pod:2899
40241 msgid "L<virt-alignment-scan(1)> command and documentation."
40242 msgstr ""
40243
40244 #. type: textblock
40245 #: ../src/guestfs.pod:2903
40246 msgid "The libguestfs appliance, build scripts and so on."
40247 msgstr ""
40248
40249 #. type: =item
40250 #: ../src/guestfs.pod:2905
40251 msgid "C<capitests>"
40252 msgstr "C<capitests>"
40253
40254 #. type: textblock
40255 #: ../src/guestfs.pod:2907
40256 msgid "Automated tests of the C API."
40257 msgstr ""
40258
40259 #. type: =item
40260 #: ../src/guestfs.pod:2909
40261 msgid "C<cat>"
40262 msgstr "C<cat>"
40263
40264 #. type: textblock
40265 #: ../src/guestfs.pod:2911
40266 msgid ""
40267 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
40268 "documentation."
40269 msgstr ""
40270
40271 #. type: =item
40272 #: ../src/guestfs.pod:2914
40273 msgid "C<caution>"
40274 msgstr "C<caution>"
40275
40276 #. type: textblock
40277 #: ../src/guestfs.pod:2916
40278 msgid ""
40279 "Safety and liveness tests of components that libguestfs depends upon (not of "
40280 "libguestfs itself).  Mainly this is for qemu and the kernel."
40281 msgstr ""
40282
40283 #. type: =item
40284 #: ../src/guestfs.pod:2919
40285 msgid "C<clone>"
40286 msgstr ""
40287
40288 #. type: textblock
40289 #: ../src/guestfs.pod:2921
40290 msgid ""
40291 "Tools for cloning virtual machines.  Currently contains L<virt-sysprep(1)> "
40292 "command and documentation."
40293 msgstr ""
40294
40295 #. type: =item
40296 #: ../src/guestfs.pod:2924
40297 msgid "C<contrib>"
40298 msgstr "C<contrib>"
40299
40300 #. type: textblock
40301 #: ../src/guestfs.pod:2926
40302 msgid "Outside contributions, experimental parts."
40303 msgstr ""
40304
40305 #. type: =item
40306 #: ../src/guestfs.pod:2928
40307 msgid "C<daemon>"
40308 msgstr "C<daemon>"
40309
40310 #. type: textblock
40311 #: ../src/guestfs.pod:2930
40312 msgid ""
40313 "The daemon that runs inside the libguestfs appliance and carries out actions."
40314 msgstr ""
40315
40316 #. type: =item
40317 #: ../src/guestfs.pod:2933
40318 msgid "C<df>"
40319 msgstr "C<df>"
40320
40321 #. type: textblock
40322 #: ../src/guestfs.pod:2935
40323 msgid "L<virt-df(1)> command and documentation."
40324 msgstr ""
40325
40326 #. type: =item
40327 #: ../src/guestfs.pod:2937
40328 msgid "C<edit>"
40329 msgstr "C<edit>"
40330
40331 #. type: textblock
40332 #: ../src/guestfs.pod:2939
40333 msgid "L<virt-edit(1)> command and documentation."
40334 msgstr ""
40335
40336 #. type: =item
40337 #: ../src/guestfs.pod:2941
40338 msgid "C<examples>"
40339 msgstr "C<examples>"
40340
40341 #. type: textblock
40342 #: ../src/guestfs.pod:2943
40343 msgid "C API example code."
40344 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
40345
40346 #. type: =item
40347 #: ../src/guestfs.pod:2945
40348 msgid "C<fish>"
40349 msgstr "C<fish>"
40350
40351 #. type: textblock
40352 #: ../src/guestfs.pod:2947
40353 msgid ""
40354 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
40355 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
40356 "L<virt-tar-out(1)>."
40357 msgstr ""
40358
40359 #. type: =item
40360 #: ../src/guestfs.pod:2951
40361 msgid "C<fuse>"
40362 msgstr "C<fuse>"
40363
40364 #. type: textblock
40365 #: ../src/guestfs.pod:2953
40366 msgid ""
40367 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
40368 msgstr ""
40369
40370 #. type: =item
40371 #: ../src/guestfs.pod:2955
40372 msgid "C<generator>"
40373 msgstr "C<generator>"
40374
40375 #. type: textblock
40376 #: ../src/guestfs.pod:2957
40377 msgid ""
40378 "The crucially important generator, used to automatically generate large "
40379 "amounts of boilerplate C code for things like RPC and bindings."
40380 msgstr ""
40381
40382 #. type: =item
40383 #: ../src/guestfs.pod:2960
40384 msgid "C<images>"
40385 msgstr "C<images>"
40386
40387 #. type: textblock
40388 #: ../src/guestfs.pod:2962
40389 msgid "Files used by the test suite."
40390 msgstr ""
40391
40392 #. type: textblock
40393 #: ../src/guestfs.pod:2964
40394 msgid "Some \"phony\" guest images which we test against."
40395 msgstr ""
40396
40397 #. type: =item
40398 #: ../src/guestfs.pod:2966
40399 msgid "C<inspector>"
40400 msgstr "C<inspector>"
40401
40402 #. type: textblock
40403 #: ../src/guestfs.pod:2968
40404 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
40405 msgstr ""
40406
40407 #. type: =item
40408 #: ../src/guestfs.pod:2970
40409 msgid "C<logo>"
40410 msgstr "C<logo>"
40411
40412 #. type: textblock
40413 #: ../src/guestfs.pod:2972
40414 msgid "Logo used on the website.  The fish is called Arthur by the way."
40415 msgstr ""
40416
40417 #. type: =item
40418 #: ../src/guestfs.pod:2974
40419 msgid "C<m4>"
40420 msgstr "C<m4>"
40421
40422 #. type: textblock
40423 #: ../src/guestfs.pod:2976
40424 msgid "M4 macros used by autoconf."
40425 msgstr ""
40426
40427 #. type: =item
40428 #: ../src/guestfs.pod:2978
40429 msgid "C<po>"
40430 msgstr "C<po>"
40431
40432 #. type: textblock
40433 #: ../src/guestfs.pod:2980
40434 msgid "Translations of simple gettext strings."
40435 msgstr "Переклади простих рядків gettext."
40436
40437 #. type: =item
40438 #: ../src/guestfs.pod:2982
40439 msgid "C<po-docs>"
40440 msgstr "C<po-docs>"
40441
40442 #. type: textblock
40443 #: ../src/guestfs.pod:2984
40444 msgid ""
40445 "The build infrastructure and PO files for translations of manpages and POD "
40446 "files.  Eventually this will be combined with the C<po> directory, but that "
40447 "is rather complicated."
40448 msgstr ""
40449
40450 #. type: =item
40451 #: ../src/guestfs.pod:2988
40452 msgid "C<regressions>"
40453 msgstr "C<regressions>"
40454
40455 #. type: textblock
40456 #: ../src/guestfs.pod:2990
40457 msgid "Regression tests."
40458 msgstr "Тести на регресії."
40459
40460 #. type: =item
40461 #: ../src/guestfs.pod:2992
40462 msgid "C<rescue>"
40463 msgstr "C<rescue>"
40464
40465 #. type: textblock
40466 #: ../src/guestfs.pod:2994
40467 msgid "L<virt-rescue(1)> command and documentation."
40468 msgstr ""
40469
40470 #. type: =item
40471 #: ../src/guestfs.pod:2996
40472 msgid "C<resize>"
40473 msgstr ""
40474
40475 #. type: textblock
40476 #: ../src/guestfs.pod:2998
40477 msgid "L<virt-resize(1)> command and documentation."
40478 msgstr ""
40479
40480 #. type: =item
40481 #: ../src/guestfs.pod:3000
40482 msgid "C<sparsify>"
40483 msgstr ""
40484
40485 #. type: textblock
40486 #: ../src/guestfs.pod:3002
40487 msgid "L<virt-sparsify(1)> command and documentation."
40488 msgstr ""
40489
40490 #. type: =item
40491 #: ../src/guestfs.pod:3004
40492 msgid "C<src>"
40493 msgstr "C<src>"
40494
40495 #. type: textblock
40496 #: ../src/guestfs.pod:3006
40497 msgid "Source code to the C library."
40498 msgstr ""
40499
40500 #. type: =item
40501 #: ../src/guestfs.pod:3008
40502 msgid "C<tools>"
40503 msgstr "C<tools>"
40504
40505 #. type: textblock
40506 #: ../src/guestfs.pod:3010
40507 msgid ""
40508 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
40509 msgstr ""
40510
40511 #. type: =item
40512 #: ../src/guestfs.pod:3012
40513 msgid "C<test-tool>"
40514 msgstr "C<test-tool>"
40515
40516 #. type: textblock
40517 #: ../src/guestfs.pod:3014
40518 msgid ""
40519 "Test tool for end users to test if their qemu/kernel combination will work "
40520 "with libguestfs."
40521 msgstr ""
40522
40523 #. type: =item
40524 #: ../src/guestfs.pod:3017
40525 msgid "C<csharp>"
40526 msgstr "C<csharp>"
40527
40528 #. type: =item
40529 #: ../src/guestfs.pod:3019
40530 msgid "C<erlang>"
40531 msgstr ""
40532
40533 #. type: =item
40534 #: ../src/guestfs.pod:3021
40535 msgid "C<haskell>"
40536 msgstr "C<haskell>"
40537
40538 #. type: =item
40539 #: ../src/guestfs.pod:3023
40540 msgid "C<java>"
40541 msgstr "C<java>"
40542
40543 #. type: =item
40544 #: ../src/guestfs.pod:3025
40545 msgid "C<ocaml>"
40546 msgstr "C<ocaml>"
40547
40548 #. type: =item
40549 #: ../src/guestfs.pod:3027
40550 msgid "C<php>"
40551 msgstr "C<php>"
40552
40553 #. type: =item
40554 #: ../src/guestfs.pod:3029
40555 msgid "C<perl>"
40556 msgstr "C<perl>"
40557
40558 #. type: =item
40559 #: ../src/guestfs.pod:3031
40560 msgid "C<python>"
40561 msgstr "C<python>"
40562
40563 #. type: =item
40564 #: ../src/guestfs.pod:3033
40565 msgid "C<ruby>"
40566 msgstr "C<ruby>"
40567
40568 #. type: textblock
40569 #: ../src/guestfs.pod:3035
40570 msgid "Language bindings."
40571 msgstr "Прив’язки до мов програмування."
40572
40573 #. type: =head2
40574 #: ../src/guestfs.pod:3039
40575 msgid "MAKING A STABLE RELEASE"
40576 msgstr ""
40577
40578 #. type: textblock
40579 #: ../src/guestfs.pod:3041
40580 msgid ""
40581 "When we make a stable release, there are several steps documented here.  See "
40582 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
40583 "branch policy."
40584 msgstr ""
40585
40586 #. type: textblock
40587 #: ../src/guestfs.pod:3049
40588 msgid ""
40589 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
40590 msgstr ""
40591
40592 #. type: textblock
40593 #: ../src/guestfs.pod:3054
40594 msgid "Finalize RELEASE-NOTES."
40595 msgstr ""
40596
40597 #. type: textblock
40598 #: ../src/guestfs.pod:3058
40599 msgid "Update ROADMAP."
40600 msgstr ""
40601
40602 #. type: textblock
40603 #: ../src/guestfs.pod:3062
40604 msgid "Run C<src/api-support/update-from-tarballs.sh>."
40605 msgstr ""
40606
40607 #. type: textblock
40608 #: ../src/guestfs.pod:3066
40609 msgid "Push and pull from Transifex."
40610 msgstr ""
40611
40612 #. type: textblock
40613 #: ../src/guestfs.pod:3068
40614 msgid "Run:"
40615 msgstr ""
40616
40617 #. type: verbatim
40618 #: ../src/guestfs.pod:3070
40619 #, no-wrap
40620 msgid ""
40621 " tx push -s\n"
40622 "\n"
40623 msgstr ""
40624
40625 #. type: textblock
40626 #: ../src/guestfs.pod:3072
40627 msgid "to push the latest POT files to Transifex.  Then run:"
40628 msgstr ""
40629
40630 #. type: verbatim
40631 #: ../src/guestfs.pod:3074
40632 #, no-wrap
40633 msgid ""
40634 " ./tx-pull.sh\n"
40635 "\n"
40636 msgstr ""
40637
40638 #. type: textblock
40639 #: ../src/guestfs.pod:3076
40640 msgid "which is a wrapper to pull the latest translated C<*.po> files."
40641 msgstr ""
40642
40643 #. type: textblock
40644 #: ../src/guestfs.pod:3080
40645 msgid ""
40646 "Create new stable and development directories under L<http://libguestfs.org/"
40647 "download>."
40648 msgstr ""
40649
40650 #. type: textblock
40651 #: ../src/guestfs.pod:3085
40652 msgid "Create the branch in git:"
40653 msgstr ""
40654
40655 #. type: verbatim
40656 #: ../src/guestfs.pod:3087
40657 #, no-wrap
40658 msgid ""
40659 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
40660 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
40661 " git branch stable-1.XX\n"
40662 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
40663 "\n"
40664 msgstr ""
40665
40666 #. type: =head1
40667 #: ../src/guestfs.pod:3094
40668 msgid "LIMITS"
40669 msgstr "ОБМЕЖЕННЯ"
40670
40671 #. type: =head2
40672 #: ../src/guestfs.pod:3096
40673 msgid "PROTOCOL LIMITS"
40674 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
40675
40676 #. type: textblock
40677 #: ../src/guestfs.pod:3098
40678 msgid ""
40679 "Internally libguestfs uses a message-based protocol to pass API calls and "
40680 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
40681 "plenty more detail about this).  The maximum message size used by the "
40682 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
40683 "aware of this limit.  The API calls which may be affected are individually "
40684 "documented, with a link back to this section of the documentation."
40685 msgstr ""
40686
40687 #. type: textblock
40688 #: ../src/guestfs.pod:3106
40689 msgid ""
40690 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
40691 "a simple string.  Because this string is at some point internally encoded as "
40692 "a message, the maximum size that it can return is slightly under 4 MB.  If "
40693 "the requested file is larger than this then you will get an error."
40694 msgstr ""
40695
40696 #. type: textblock
40697 #: ../src/guestfs.pod:3112
40698 msgid ""
40699 "In order to transfer large files into and out of the guest filesystem, you "
40700 "need to use particular calls that support this.  The sections L</UPLOADING> "
40701 "and L</DOWNLOADING> document how to do this."
40702 msgstr ""
40703
40704 #. type: textblock
40705 #: ../src/guestfs.pod:3116
40706 msgid ""
40707 "You might also consider mounting the disk image using our FUSE filesystem "
40708 "support (L<guestmount(1)>)."
40709 msgstr ""
40710
40711 #. type: =head2
40712 #: ../src/guestfs.pod:3119
40713 msgid "MAXIMUM NUMBER OF DISKS"
40714 msgstr ""
40715
40716 #. type: textblock
40717 #: ../src/guestfs.pod:3121
40718 msgid "When using virtio disks (the default) the current limit is B<25> disks."
40719 msgstr ""
40720
40721 #. type: textblock
40722 #: ../src/guestfs.pod:3124
40723 msgid ""
40724 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
40725 "slots.  However febootstrap only understands disks with names C</dev/vda> "
40726 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
40727 "purposes."
40728 msgstr ""
40729
40730 #. type: textblock
40731 #: ../src/guestfs.pod:3129
40732 msgid ""
40733 "We are working to substantially raise this limit in future versions but it "
40734 "requires complex changes to qemu."
40735 msgstr ""
40736
40737 #. type: textblock
40738 #: ../src/guestfs.pod:3132
40739 msgid ""
40740 "In future versions of libguestfs it should also be possible to \"hot plug\" "
40741 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
40742 "requires changes to qemu."
40743 msgstr ""
40744
40745 #. type: =head2
40746 #: ../src/guestfs.pod:3136
40747 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
40748 msgstr ""
40749
40750 #. type: textblock
40751 #: ../src/guestfs.pod:3138
40752 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
40753 msgstr ""
40754
40755 #. type: textblock
40756 #: ../src/guestfs.pod:3140
40757 msgid ""
40758 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
40759 "vda>, and C</dev/vda1> through C</dev/vda15>)."
40760 msgstr ""
40761
40762 #. type: textblock
40763 #: ../src/guestfs.pod:3143
40764 msgid ""
40765 "If you attach a disk with more than 15 partitions, the extra partitions are "
40766 "ignored by libguestfs."
40767 msgstr ""
40768
40769 #. type: =head2
40770 #: ../src/guestfs.pod:3146
40771 msgid "MAXIMUM SIZE OF A DISK"
40772 msgstr ""
40773
40774 #. type: textblock
40775 #: ../src/guestfs.pod:3148
40776 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
40777 msgstr ""
40778
40779 #. type: textblock
40780 #: ../src/guestfs.pod:3150
40781 msgid ""
40782 "We have tested block devices up to 1 exabyte (2**60 or "
40783 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40784 "filesystem."
40785 msgstr ""
40786
40787 #. type: textblock
40788 #: ../src/guestfs.pod:3154
40789 msgid ""
40790 "Although libguestfs probably does not impose any limit, the underlying host "
40791 "storage will.  If you store disk images on a host ext4 filesystem, then the "
40792 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40793 "TB).  If you store disk images as host logical volumes then you are limited "
40794 "by the maximum size of an LV."
40795 msgstr ""
40796
40797 #. type: textblock
40798 #: ../src/guestfs.pod:3160
40799 msgid ""
40800 "For the hugest disk image files, we recommend using XFS on the host for "
40801 "storage."
40802 msgstr ""
40803
40804 #. type: =head2
40805 #: ../src/guestfs.pod:3163
40806 msgid "MAXIMUM SIZE OF A PARTITION"
40807 msgstr ""
40808
40809 #. type: textblock
40810 #: ../src/guestfs.pod:3165
40811 msgid ""
40812 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40813 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
40814 "address a partition located beyond 2 TB on the disk."
40815 msgstr ""
40816
40817 #. type: textblock
40818 #: ../src/guestfs.pod:3169
40819 msgid ""
40820 "It is recommended that you use GPT partitions on disks which are larger than "
40821 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
40822 "which are theoretically larger than the largest disk we could support."
40823 msgstr ""
40824
40825 #. type: =head2
40826 #: ../src/guestfs.pod:3174
40827 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40828 msgstr ""
40829
40830 #. type: textblock
40831 #: ../src/guestfs.pod:3176
40832 msgid ""
40833 "This depends on the filesystem type.  libguestfs itself does not impose any "
40834 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
40835 "what these limits are."
40836 msgstr ""
40837
40838 #. type: =head2
40839 #: ../src/guestfs.pod:3180
40840 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40841 msgstr ""
40842
40843 #. type: textblock
40844 #: ../src/guestfs.pod:3182
40845 msgid ""
40846 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
40847 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40848 "uploads and downloads."
40849 msgstr ""
40850
40851 #. type: =head2
40852 #: ../src/guestfs.pod:3186
40853 msgid "INSPECTION LIMITS"
40854 msgstr ""
40855
40856 #. type: textblock
40857 #: ../src/guestfs.pod:3188
40858 msgid ""
40859 "The inspection code has several arbitrary limits on things like the size of "
40860 "Windows Registry hive it will read, and the length of product name.  These "
40861 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40862 "memory and disk space on the host, and should not be reached in practice.  "
40863 "See the source code for more information."
40864 msgstr ""
40865
40866 #. type: textblock
40867 #: ../src/guestfs.pod:3214
40868 msgid ""
40869 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
40870 "effect as calling C<guestfs_set_verbose (g, 1)>."
40871 msgstr ""
40872
40873 #. type: textblock
40874 #: ../src/guestfs.pod:3226
40875 msgid ""
40876 "Set the path that libguestfs uses to search for a supermin appliance.  See "
40877 "the discussion of paths in section L</PATH> above."
40878 msgstr ""
40879
40880 #. type: textblock
40881 #: ../src/guestfs.pod:3235
40882 msgid "See also L</QEMU WRAPPERS> above."
40883 msgstr ""
40884
40885 #. type: textblock
40886 #: ../src/guestfs.pod:3239
40887 msgid ""
40888 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
40889 "effect as calling C<guestfs_set_trace (g, 1)>."
40890 msgstr ""
40891
40892 #. type: textblock
40893 #: ../src/guestfs.pod:3257
40894 msgid ""
40895 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
40896 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
40897 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
40898 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
40899 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
40900 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
40901 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-sysprep(1)>, L<virt-tar"
40902 "(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, "
40903 "L<febootstrap(1)>, L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<stap(1)"
40904 ">, L<http://libguestfs.org/>."
40905 msgstr ""
40906
40907 #. type: textblock
40908 #: ../src/guestfs.pod:3293
40909 msgid ""
40910 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
40911 "(8)>, L<disktype(1)>."
40912 msgstr ""
40913
40914 #. type: =head1
40915 #: ../src/guestfs.pod:3300 ../tools/virt-make-fs.pl:553
40916 #: ../tools/virt-win-reg.pl:761
40917 msgid "BUGS"
40918 msgstr "ВАДИ"
40919
40920 #. type: textblock
40921 #: ../src/guestfs.pod:3302
40922 msgid "To get a list of bugs against libguestfs use this link:"
40923 msgstr ""
40924 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
40925 "посиланням:"
40926
40927 #. type: textblock
40928 #: ../src/guestfs.pod:3304
40929 msgid ""
40930 "L<https://bugzilla.redhat.com/buglist.cgi?"
40931 "component=libguestfs&product=Virtualization+Tools>"
40932 msgstr ""
40933 "L<https://bugzilla.redhat.com/buglist.cgi?"
40934 "component=libguestfs&product=Virtualization+Tools>"
40935
40936 #. type: textblock
40937 #: ../src/guestfs.pod:3306
40938 msgid "To report a new bug against libguestfs use this link:"
40939 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
40940
40941 #. type: textblock
40942 #: ../src/guestfs.pod:3308
40943 msgid ""
40944 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
40945 "component=libguestfs&product=Virtualization+Tools>"
40946 msgstr ""
40947 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
40948 "component=libguestfs&product=Virtualization+Tools>"
40949
40950 #. type: textblock
40951 #: ../src/guestfs.pod:3310
40952 msgid "When reporting a bug, please check:"
40953 msgstr ""
40954
40955 #. type: textblock
40956 #: ../src/guestfs.pod:3316
40957 msgid "That the bug hasn't been reported already."
40958 msgstr ""
40959
40960 #. type: textblock
40961 #: ../src/guestfs.pod:3320
40962 msgid "That you are testing a recent version."
40963 msgstr ""
40964
40965 #. type: textblock
40966 #: ../src/guestfs.pod:3324
40967 msgid "Describe the bug accurately, and give a way to reproduce it."
40968 msgstr ""
40969
40970 #. type: textblock
40971 #: ../src/guestfs.pod:3328
40972 msgid ""
40973 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
40974 "bug report."
40975 msgstr ""
40976
40977 #. type: textblock
40978 #: ../test-tool/libguestfs-test-tool.pod:5
40979 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
40980 msgstr ""
40981
40982 #. type: verbatim
40983 #: ../test-tool/libguestfs-test-tool.pod:9
40984 #, no-wrap
40985 msgid ""
40986 " libguestfs-test-tool [--options]\n"
40987 "\n"
40988 msgstr ""
40989
40990 #. type: textblock
40991 #: ../test-tool/libguestfs-test-tool.pod:13
40992 msgid ""
40993 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
40994 "to check basic libguestfs functionality is working.  This is needed because "
40995 "libguestfs occasionally breaks for reasons beyond our control: usually "
40996 "because of changes in the underlying qemu or kernel packages, or the host "
40997 "environment."
40998 msgstr ""
40999
41000 #. type: textblock
41001 #: ../test-tool/libguestfs-test-tool.pod:19
41002 msgid "If you suspect a problem in libguestfs, then just run:"
41003 msgstr ""
41004
41005 #. type: verbatim
41006 #: ../test-tool/libguestfs-test-tool.pod:21
41007 #, no-wrap
41008 msgid ""
41009 " libguestfs-test-tool\n"
41010 "\n"
41011 msgstr ""
41012
41013 #. type: textblock
41014 #: ../test-tool/libguestfs-test-tool.pod:23
41015 msgid "It will print lots of diagnostic messages."
41016 msgstr ""
41017
41018 #. type: textblock
41019 #: ../test-tool/libguestfs-test-tool.pod:25
41020 msgid "If it runs to completion successfully, you will see this near the end:"
41021 msgstr ""
41022
41023 #. type: verbatim
41024 #: ../test-tool/libguestfs-test-tool.pod:27
41025 #, no-wrap
41026 msgid ""
41027 " ===== TEST FINISHED OK =====\n"
41028 "\n"
41029 msgstr ""
41030
41031 #. type: textblock
41032 #: ../test-tool/libguestfs-test-tool.pod:29
41033 msgid "and the test tool will exit with code 0."
41034 msgstr ""
41035
41036 #. type: textblock
41037 #: ../test-tool/libguestfs-test-tool.pod:31
41038 msgid ""
41039 "If it fails (and/or exits with non-zero error code), please paste the "
41040 "I<complete, unedited> output of the test tool into a bug report.  More "
41041 "information about reporting bugs can be found on the L<http://libguestfs.org/"
41042 "> website."
41043 msgstr ""
41044
41045 #. type: textblock
41046 #: ../test-tool/libguestfs-test-tool.pod:42
41047 msgid "Display short usage information and exit."
41048 msgstr ""
41049
41050 #. type: =item
41051 #: ../test-tool/libguestfs-test-tool.pod:44
41052 msgid "B<--qemu qemu_binary>"
41053 msgstr ""
41054
41055 #. type: textblock
41056 #: ../test-tool/libguestfs-test-tool.pod:46
41057 msgid ""
41058 "If you have downloaded another qemu binary, point this option at the full "
41059 "path of the binary to try it."
41060 msgstr ""
41061
41062 #. type: =item
41063 #: ../test-tool/libguestfs-test-tool.pod:49
41064 msgid "B<--qemudir qemu_source_dir>"
41065 msgstr ""
41066
41067 #. type: textblock
41068 #: ../test-tool/libguestfs-test-tool.pod:51
41069 msgid ""
41070 "If you have compiled qemu from source, point this option at the source "
41071 "directory to try it."
41072 msgstr ""
41073
41074 #. type: =item
41075 #: ../test-tool/libguestfs-test-tool.pod:54
41076 msgid "B<-t N>"
41077 msgstr ""
41078
41079 #. type: =item
41080 #: ../test-tool/libguestfs-test-tool.pod:56
41081 msgid "B<--timeout N>"
41082 msgstr ""
41083
41084 #. type: textblock
41085 #: ../test-tool/libguestfs-test-tool.pod:58
41086 msgid ""
41087 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
41088 "minutes) which does not usually need to be adjusted."
41089 msgstr ""
41090
41091 #. type: =head1
41092 #: ../test-tool/libguestfs-test-tool.pod:63
41093 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
41094 msgstr ""
41095
41096 #. type: textblock
41097 #: ../test-tool/libguestfs-test-tool.pod:65
41098 msgid ""
41099 "If you have compiled another version of qemu from source and would like to "
41100 "try that, then you can use the I<--qemudir> option to point to the qemu "
41101 "source directory."
41102 msgstr ""
41103
41104 #. type: textblock
41105 #: ../test-tool/libguestfs-test-tool.pod:69
41106 msgid ""
41107 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
41108 "option to point to the binary."
41109 msgstr ""
41110
41111 #. type: textblock
41112 #: ../test-tool/libguestfs-test-tool.pod:72
41113 msgid ""
41114 "Note when using these options, you can ignore the business of qemu wrapper "
41115 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
41116 "wrapper script for you if one is needed."
41117 msgstr ""
41118
41119 #. type: =head1
41120 #: ../test-tool/libguestfs-test-tool.pod:76
41121 msgid "TRYING OUT A DIFFERENT KERNEL"
41122 msgstr ""
41123
41124 #. type: textblock
41125 #: ../test-tool/libguestfs-test-tool.pod:78
41126 msgid ""
41127 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
41128 "libguestfs tries.  You do this by setting the environment variables "
41129 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
41130 msgstr ""
41131
41132 #. type: textblock
41133 #: ../test-tool/libguestfs-test-tool.pod:82
41134 msgid ""
41135 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
41136 "information."
41137 msgstr ""
41138
41139 #. type: =head1
41140 #: ../test-tool/libguestfs-test-tool.pod:85
41141 msgid "SELF-DIAGNOSIS"
41142 msgstr ""
41143
41144 #. type: textblock
41145 #: ../test-tool/libguestfs-test-tool.pod:87
41146 msgid ""
41147 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
41148 "produced by libguestfs-test-tool and/or possible errors."
41149 msgstr ""
41150
41151 #. type: textblock
41152 #: ../test-tool/libguestfs-test-tool.pod:92
41153 msgid ""
41154 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
41155 "I<1> if there was an error."
41156 msgstr ""
41157
41158 #. type: textblock
41159 #: ../test-tool/libguestfs-test-tool.pod:97
41160 msgid ""
41161 "For the full list of environment variables which may affect libguestfs, "
41162 "please see the L<guestfs(3)> manual page."
41163 msgstr ""
41164
41165 #. type: textblock
41166 #: ../test-tool/libguestfs-test-tool.pod:102
41167 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
41168 msgstr ""
41169
41170 #. type: textblock
41171 #: ../tools/virt-list-filesystems.pl:32
41172 msgid ""
41173 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
41174 msgstr ""
41175
41176 #. type: verbatim
41177 #: ../tools/virt-list-filesystems.pl:36
41178 #, no-wrap
41179 msgid ""
41180 " virt-list-filesystems [--options] domname\n"
41181 "\n"
41182 msgstr ""
41183
41184 #. type: verbatim
41185 #: ../tools/virt-list-filesystems.pl:38
41186 #, no-wrap
41187 msgid ""
41188 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
41189 "\n"
41190 msgstr ""
41191
41192 #. type: textblock
41193 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
41194 msgid ""
41195 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
41196 "replacement."
41197 msgstr ""
41198
41199 #. type: textblock
41200 #: ../tools/virt-list-filesystems.pl:45
41201 msgid ""
41202 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
41203 "are contained in a virtual machine or disk image."
41204 msgstr ""
41205
41206 #. type: textblock
41207 #: ../tools/virt-list-filesystems.pl:49
41208 msgid ""
41209 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
41210 "functionality.  For more complex cases you should look at the L<guestfish(1)"
41211 "> tool."
41212 msgstr ""
41213
41214 #. type: textblock
41215 #: ../tools/virt-list-filesystems.pl:112
41216 msgid ""
41217 "With this option, C<virt-list-filesystems> displays the type of each "
41218 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
41219 msgstr ""
41220
41221 #. type: =item
41222 #: ../tools/virt-list-filesystems.pl:119
41223 msgid "B<-a>"
41224 msgstr "B<-a>"
41225
41226 #. type: textblock
41227 #: ../tools/virt-list-filesystems.pl:123
41228 msgid ""
41229 "Normally we only show mountable filesystems.  If this option is given then "
41230 "swap devices are shown too."
41231 msgstr ""
41232
41233 #. type: textblock
41234 #: ../tools/virt-list-filesystems.pl:197
41235 msgid ""
41236 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41237 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41238 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41239 msgstr ""
41240 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
41241 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
41242 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41243
41244 #. type: textblock
41245 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
41246 msgid "Copyright (C) 2009 Red Hat Inc."
41247 msgstr "© Red Hat Inc., 2009"
41248
41249 #. type: textblock
41250 #: ../tools/virt-list-partitions.pl:32
41251 msgid ""
41252 "virt-list-partitions - List partitions in a virtual machine or disk image"
41253 msgstr ""
41254
41255 #. type: verbatim
41256 #: ../tools/virt-list-partitions.pl:36
41257 #, no-wrap
41258 msgid ""
41259 " virt-list-partitions [--options] domname\n"
41260 "\n"
41261 msgstr ""
41262 " virt-list-partitions [--параметри] назва_домену\n"
41263 "\n"
41264
41265 #. type: verbatim
41266 #: ../tools/virt-list-partitions.pl:38
41267 #, no-wrap
41268 msgid ""
41269 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
41270 "\n"
41271 msgstr ""
41272 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
41273 "\n"
41274
41275 #. type: textblock
41276 #: ../tools/virt-list-partitions.pl:45
41277 msgid ""
41278 "C<virt-list-partitions> is a command line tool to list the partitions that "
41279 "are contained in a virtual machine or disk image.  It is mainly useful as a "
41280 "first step to using L<virt-resize(1)>."
41281 msgstr ""
41282
41283 #. type: textblock
41284 #: ../tools/virt-list-partitions.pl:50
41285 msgid ""
41286 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
41287 "functionality.  For more complex cases you should look at the L<guestfish(1)"
41288 "> tool."
41289 msgstr ""
41290
41291 #. type: textblock
41292 #: ../tools/virt-list-partitions.pl:113
41293 msgid "Show sizes in human-readable form (eg. \"1G\")."
41294 msgstr ""
41295
41296 #. type: textblock
41297 #: ../tools/virt-list-partitions.pl:123
41298 msgid ""
41299 "With this option, C<virt-list-partitions> displays the type and size of each "
41300 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
41301 msgstr ""
41302
41303 #. type: =item
41304 #: ../tools/virt-list-partitions.pl:130
41305 msgid "B<-t>"
41306 msgstr "B<-t>"
41307
41308 #. type: =item
41309 #: ../tools/virt-list-partitions.pl:132
41310 msgid "B<--total>"
41311 msgstr "B<--total>"
41312
41313 #. type: textblock
41314 #: ../tools/virt-list-partitions.pl:134
41315 msgid ""
41316 "Display the total size of each block device (as a separate row or rows)."
41317 msgstr ""
41318
41319 #. type: textblock
41320 #: ../tools/virt-list-partitions.pl:267
41321 msgid ""
41322 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
41323 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
41324 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41325 msgstr ""
41326 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
41327 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
41328 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41329
41330 #. type: textblock
41331 #: ../tools/virt-list-partitions.pl:283
41332 msgid "Copyright (C) 2009-2010 Red Hat Inc."
41333 msgstr "© Red Hat Inc., 2009–2010"
41334
41335 #. type: textblock
41336 #: ../tools/virt-make-fs.pl:37
41337 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
41338 msgstr ""
41339
41340 #. type: verbatim
41341 #: ../tools/virt-make-fs.pl:41
41342 #, no-wrap
41343 msgid ""
41344 " virt-make-fs [--options] input.tar output.img\n"
41345 "\n"
41346 msgstr ""
41347
41348 #. type: verbatim
41349 #: ../tools/virt-make-fs.pl:43
41350 #, no-wrap
41351 msgid ""
41352 " virt-make-fs [--options] input.tar.gz output.img\n"
41353 "\n"
41354 msgstr ""
41355
41356 #. type: verbatim
41357 #: ../tools/virt-make-fs.pl:45
41358 #, no-wrap
41359 msgid ""
41360 " virt-make-fs [--options] directory output.img\n"
41361 "\n"
41362 msgstr ""
41363
41364 #. type: textblock
41365 #: ../tools/virt-make-fs.pl:49
41366 msgid ""
41367 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
41368 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
41369 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
41370 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
41371 "you want to attach these filesystems to existing virtual machines (eg. to "
41372 "import large amounts of read-only data to a VM)."
41373 msgstr ""
41374
41375 #. type: textblock
41376 #: ../tools/virt-make-fs.pl:57
41377 msgid "Basic usage is:"
41378 msgstr ""
41379
41380 #. type: verbatim
41381 #: ../tools/virt-make-fs.pl:59
41382 #, no-wrap
41383 msgid ""
41384 " virt-make-fs input output\n"
41385 "\n"
41386 msgstr ""
41387
41388 #. type: textblock
41389 #: ../tools/virt-make-fs.pl:61
41390 msgid ""
41391 "where C<input> is either a directory containing files that you want to add, "
41392 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
41393 "C<output> is a disk image.  The input type is detected automatically.  The "
41394 "output disk image defaults to a raw ext2 image unless you specify extra "
41395 "flags (see L</OPTIONS> below)."
41396 msgstr ""
41397
41398 #. type: =head2
41399 #: ../tools/virt-make-fs.pl:67
41400 msgid "EXTRA SPACE"
41401 msgstr ""
41402
41403 #. type: textblock
41404 #: ../tools/virt-make-fs.pl:69
41405 msgid ""
41406 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
41407 "the files that it contains, but might have extra space.  Depending on how "
41408 "you are going to use the output, you might think this extra space is wasted "
41409 "and want to minimize it, or you might want to leave space so that more files "
41410 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
41411 "but you can use the I<--size> flag to leave space in the filesystem if you "
41412 "want it."
41413 msgstr ""
41414
41415 #. type: textblock
41416 #: ../tools/virt-make-fs.pl:77
41417 msgid ""
41418 "An alternative way to leave extra space but not make the output image any "
41419 "bigger is to use an alternative disk image format (instead of the default "
41420 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
41421 "image format (check your hypervisor supports this before using it).  This "
41422 "allows you to choose a large I<--size> but the extra space won't actually be "
41423 "allocated in the image until you try to store something in it."
41424 msgstr ""
41425
41426 #. type: textblock
41427 #: ../tools/virt-make-fs.pl:85
41428 msgid ""
41429 "Don't forget that you can also use local commands including L<resize2fs(8)> "
41430 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
41431 "to build another image from scratch."
41432 msgstr ""
41433
41434 #. type: =head3
41435 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
41436 #: ../tools/virt-make-fs.pl:142
41437 msgid "EXAMPLE"
41438 msgstr "ПРИКЛАД"
41439
41440 #. type: verbatim
41441 #: ../tools/virt-make-fs.pl:91
41442 #, no-wrap
41443 msgid ""
41444 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41445 "\n"
41446 msgstr ""
41447 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
41448 "\n"
41449
41450 #. type: =head2
41451 #: ../tools/virt-make-fs.pl:93
41452 msgid "FILESYSTEM TYPE"
41453 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
41454
41455 #. type: textblock
41456 #: ../tools/virt-make-fs.pl:95
41457 msgid ""
41458 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
41459 "libguestfs supports can be used (but I<not> read-only formats like "
41460 "ISO9660).  Here are some of the more common choices:"
41461 msgstr ""
41462
41463 #. type: =item
41464 #: ../tools/virt-make-fs.pl:101
41465 msgid "I<ext3>"
41466 msgstr "I<ext3>"
41467
41468 #. type: textblock
41469 #: ../tools/virt-make-fs.pl:103
41470 msgid ""
41471 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
41472 "you are not going to use the filesystem in a way that requires the journal, "
41473 "then this is just wasted overhead."
41474 msgstr ""
41475
41476 #. type: =item
41477 #: ../tools/virt-make-fs.pl:107
41478 msgid "I<ntfs> or I<vfat>"
41479 msgstr "I<ntfs> або I<vfat>"
41480
41481 #. type: textblock
41482 #: ../tools/virt-make-fs.pl:109
41483 msgid "Useful if exporting data to a Windows guest."
41484 msgstr ""
41485
41486 #. type: textblock
41487 #: ../tools/virt-make-fs.pl:111
41488 msgid ""
41489 "I<Note for vfat>: The tar archive or local directory must only contain files "
41490 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
41491 "program running within libguestfs is unable to change the ownership of non-"
41492 "root files, since vfat itself does not support this."
41493 msgstr ""
41494
41495 #. type: =item
41496 #: ../tools/virt-make-fs.pl:116
41497 msgid "I<minix>"
41498 msgstr "I<minix>"
41499
41500 #. type: textblock
41501 #: ../tools/virt-make-fs.pl:118
41502 msgid ""
41503 "Lower overhead than C<ext2>, but certain limitations on filename length and "
41504 "total filesystem size."
41505 msgstr ""
41506
41507 #. type: verbatim
41508 #: ../tools/virt-make-fs.pl:125
41509 #, no-wrap
41510 msgid ""
41511 " virt-make-fs --type=minix input minixfs.img\n"
41512 "\n"
41513 msgstr ""
41514
41515 #. type: =head2
41516 #: ../tools/virt-make-fs.pl:127
41517 msgid "TO PARTITION OR NOT TO PARTITION"
41518 msgstr ""
41519
41520 #. type: textblock
41521 #: ../tools/virt-make-fs.pl:129
41522 msgid "Optionally virt-make-fs can add a partition table to the output disk."
41523 msgstr ""
41524
41525 #. type: textblock
41526 #: ../tools/virt-make-fs.pl:131
41527 msgid ""
41528 "Adding a partition can make the disk image more compatible with certain "
41529 "virtualized operating systems which don't expect to see a filesystem "
41530 "directly located on a block device (Linux doesn't care and will happily "
41531 "handle both types)."
41532 msgstr ""
41533
41534 #. type: textblock
41535 #: ../tools/virt-make-fs.pl:136
41536 msgid ""
41537 "On the other hand, if you have a partition table then the output image is no "
41538 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
41539 "directly on a partitioned disk image.  (However libguestfs tools such as "
41540 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
41541 msgstr ""
41542
41543 #. type: textblock
41544 #: ../tools/virt-make-fs.pl:144
41545 msgid "Add an MBR partition:"
41546 msgstr ""
41547
41548 #. type: verbatim
41549 #: ../tools/virt-make-fs.pl:146
41550 #, no-wrap
41551 msgid ""
41552 " virt-make-fs --partition -- input disk.img\n"
41553 "\n"
41554 msgstr ""
41555
41556 #. type: textblock
41557 #: ../tools/virt-make-fs.pl:148
41558 msgid ""
41559 "If the output disk image could be terabyte-sized or larger, it's better to "
41560 "use an EFI/GPT-compatible partition table:"
41561 msgstr ""
41562
41563 #. type: verbatim
41564 #: ../tools/virt-make-fs.pl:151
41565 #, no-wrap
41566 msgid ""
41567 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
41568 "\n"
41569 msgstr ""
41570
41571 #. type: textblock
41572 #: ../tools/virt-make-fs.pl:179
41573 msgid "Enable debugging information."
41574 msgstr "Увімкнути виведення діагностичних даних."
41575
41576 #. type: =item
41577 #: ../tools/virt-make-fs.pl:185
41578 msgid "B<--size=E<lt>NE<gt>>"
41579 msgstr "B<--size=E<lt>NE<gt>>"
41580
41581 #. type: =item
41582 #: ../tools/virt-make-fs.pl:187
41583 msgid "B<--size=+E<lt>NE<gt>>"
41584 msgstr "B<--size=+E<lt>NE<gt>>"
41585
41586 #. type: =item
41587 #: ../tools/virt-make-fs.pl:189
41588 msgid "B<-s E<lt>NE<gt>>"
41589 msgstr "B<-s E<lt>NE<gt>>"
41590
41591 #. type: =item
41592 #: ../tools/virt-make-fs.pl:191
41593 msgid "B<-s +E<lt>NE<gt>>"
41594 msgstr "B<-s +E<lt>NE<gt>>"
41595
41596 #. type: textblock
41597 #: ../tools/virt-make-fs.pl:193
41598 msgid ""
41599 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
41600 msgstr ""
41601
41602 #. type: textblock
41603 #: ../tools/virt-make-fs.pl:196
41604 msgid ""
41605 "If this option is I<not> given, then the output image will be just large "
41606 "enough to contain all the files, with not much wasted space."
41607 msgstr ""
41608
41609 #. type: textblock
41610 #: ../tools/virt-make-fs.pl:199
41611 msgid ""
41612 "To choose a fixed size output disk, specify an absolute number followed by b/"
41613 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41614 "Petabytes or Exabytes.  This must be large enough to contain all the input "
41615 "files, else you will get an error."
41616 msgstr ""
41617
41618 #. type: textblock
41619 #: ../tools/virt-make-fs.pl:204
41620 msgid ""
41621 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
41622 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
41623 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
41624 "the input files, and (approximately) an extra 200 MB free space."
41625 msgstr ""
41626
41627 #. type: textblock
41628 #: ../tools/virt-make-fs.pl:210
41629 msgid ""
41630 "Note that virt-make-fs estimates free space, and therefore will not produce "
41631 "filesystems containing precisely the free space requested.  (It is much more "
41632 "expensive and time-consuming to produce a filesystem which has precisely the "
41633 "desired free space)."
41634 msgstr ""
41635
41636 #. type: =item
41637 #: ../tools/virt-make-fs.pl:219
41638 msgid "B<--format=E<lt>fmtE<gt>>"
41639 msgstr ""
41640
41641 #. type: =item
41642 #: ../tools/virt-make-fs.pl:221
41643 msgid "B<-F E<lt>fmtE<gt>>"
41644 msgstr ""
41645
41646 #. type: textblock
41647 #: ../tools/virt-make-fs.pl:223
41648 msgid "Choose the output disk image format."
41649 msgstr ""
41650
41651 #. type: textblock
41652 #: ../tools/virt-make-fs.pl:225
41653 msgid "The default is C<raw> (raw disk image)."
41654 msgstr ""
41655
41656 #. type: textblock
41657 #: ../tools/virt-make-fs.pl:227
41658 msgid ""
41659 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
41660 "that would really make sense here is C<qcow2>."
41661 msgstr ""
41662
41663 #. type: =item
41664 #: ../tools/virt-make-fs.pl:234
41665 msgid "B<--type=E<lt>fsE<gt>>"
41666 msgstr ""
41667
41668 #. type: =item
41669 #: ../tools/virt-make-fs.pl:236
41670 msgid "B<-t E<lt>fsE<gt>>"
41671 msgstr ""
41672
41673 #. type: textblock
41674 #: ../tools/virt-make-fs.pl:238
41675 msgid "Choose the output filesystem type."
41676 msgstr ""
41677
41678 #. type: textblock
41679 #: ../tools/virt-make-fs.pl:240
41680 msgid "The default is C<ext2>."
41681 msgstr "Типовим значенням є C<ext2>."
41682
41683 #. type: textblock
41684 #: ../tools/virt-make-fs.pl:242
41685 msgid ""
41686 "Any filesystem which is supported read-write by libguestfs can be used here."
41687 msgstr ""
41688
41689 #. type: =item
41690 #: ../tools/virt-make-fs.pl:249
41691 msgid "B<--partition>"
41692 msgstr "B<--partition>"
41693
41694 #. type: =item
41695 #: ../tools/virt-make-fs.pl:251
41696 msgid "B<--partition=E<lt>parttypeE<gt>>"
41697 msgstr ""
41698
41699 #. type: textblock
41700 #: ../tools/virt-make-fs.pl:253
41701 msgid ""
41702 "If specified, this flag adds an MBR partition table to the output disk image."
41703 msgstr ""
41704
41705 #. type: textblock
41706 #: ../tools/virt-make-fs.pl:256
41707 msgid ""
41708 "You can change the partition table type, eg. I<--partition=gpt> for large "
41709 "disks."
41710 msgstr ""
41711
41712 #. type: textblock
41713 #: ../tools/virt-make-fs.pl:259
41714 msgid ""
41715 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
41716 "might consider the next parameter to be the partition type.  For example:"
41717 msgstr ""
41718
41719 #. type: verbatim
41720 #: ../tools/virt-make-fs.pl:263
41721 #, no-wrap
41722 msgid ""
41723 " virt-make-fs --partition input.tar ...\n"
41724 "\n"
41725 msgstr ""
41726 " virt-make-fs --partition input.tar ...\n"
41727 "\n"
41728
41729 #. type: textblock
41730 #: ../tools/virt-make-fs.pl:265
41731 msgid ""
41732 "would cause virt-make-fs to think you wanted to use a partition type of "
41733 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
41734 "dash) between options and the input file argument:"
41735 msgstr ""
41736
41737 #. type: verbatim
41738 #: ../tools/virt-make-fs.pl:269
41739 #, no-wrap
41740 msgid ""
41741 " virt-make-fs --partition -- input.tar ...\n"
41742 "\n"
41743 msgstr ""
41744 " virt-make-fs --partition -- input.tar ...\n"
41745 "\n"
41746
41747 #. type: textblock
41748 #: ../tools/virt-make-fs.pl:541
41749 msgid ""
41750 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41751 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
41752 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41753 msgstr ""
41754 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
41755 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
41756 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
41757
41758 #. type: textblock
41759 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
41760 msgid ""
41761 "When reporting bugs, please enable debugging and capture the I<complete> "
41762 "output:"
41763 msgstr ""
41764
41765 #. type: verbatim
41766 #: ../tools/virt-make-fs.pl:558
41767 #, no-wrap
41768 msgid ""
41769 " export LIBGUESTFS_DEBUG=1\n"
41770 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41771 "\n"
41772 msgstr ""
41773 " export LIBGUESTFS_DEBUG=1\n"
41774 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
41775 "\n"
41776
41777 #. type: textblock
41778 #: ../tools/virt-make-fs.pl:561
41779 msgid ""
41780 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
41781 "redhat.com/>"
41782 msgstr ""
41783
41784 #. type: textblock
41785 #: ../tools/virt-tar.pl:33
41786 msgid "virt-tar - Extract or upload files to a virtual machine"
41787 msgstr ""
41788
41789 #. type: verbatim
41790 #: ../tools/virt-tar.pl:37
41791 #, no-wrap
41792 msgid ""
41793 " virt-tar [--options] -x domname directory tarball\n"
41794 "\n"
41795 msgstr ""
41796
41797 #. type: verbatim
41798 #: ../tools/virt-tar.pl:39
41799 #, no-wrap
41800 msgid ""
41801 " virt-tar [--options] -u domname tarball directory\n"
41802 "\n"
41803 msgstr ""
41804
41805 #. type: verbatim
41806 #: ../tools/virt-tar.pl:41
41807 #, no-wrap
41808 msgid ""
41809 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41810 "\n"
41811 msgstr ""
41812
41813 #. type: verbatim
41814 #: ../tools/virt-tar.pl:43
41815 #, no-wrap
41816 msgid ""
41817 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41818 "\n"
41819 msgstr ""
41820
41821 #. type: =head2
41822 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41823 msgid "NOTE"
41824 msgstr "ПРИМІТКА"
41825
41826 #. type: textblock
41827 #: ../tools/virt-tar.pl:47
41828 msgid ""
41829 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
41830 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
41831 msgstr ""
41832
41833 #. type: textblock
41834 #: ../tools/virt-tar.pl:52
41835 msgid "Download C</home> from the VM into a local tarball:"
41836 msgstr ""
41837
41838 #. type: verbatim
41839 #: ../tools/virt-tar.pl:54
41840 #, no-wrap
41841 msgid ""
41842 " virt-tar -x domname /home home.tar\n"
41843 "\n"
41844 msgstr ""
41845
41846 #. type: verbatim
41847 #: ../tools/virt-tar.pl:56
41848 #, no-wrap
41849 msgid ""
41850 " virt-tar -zx domname /home home.tar.gz\n"
41851 "\n"
41852 msgstr ""
41853
41854 #. type: textblock
41855 #: ../tools/virt-tar.pl:58
41856 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41857 msgstr ""
41858
41859 #. type: verbatim
41860 #: ../tools/virt-tar.pl:60
41861 #, no-wrap
41862 msgid ""
41863 " virt-tar -u domname uploadstuff.tar /tmp\n"
41864 "\n"
41865 msgstr ""
41866
41867 #. type: verbatim
41868 #: ../tools/virt-tar.pl:62
41869 #, no-wrap
41870 msgid ""
41871 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41872 "\n"
41873 msgstr ""
41874
41875 #. type: textblock
41876 #: ../tools/virt-tar.pl:66
41877 msgid ""
41878 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41879 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
41880 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41881 msgstr ""
41882
41883 #. type: textblock
41884 #: ../tools/virt-tar.pl:71
41885 msgid ""
41886 "You can use I<-x> (extract) on live virtual machines, but you might get "
41887 "inconsistent results or errors if there is filesystem activity inside the "
41888 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
41889 "work, but the only way to guarantee consistent results is if the virtual "
41890 "machine is shut down."
41891 msgstr ""
41892
41893 #. type: textblock
41894 #: ../tools/virt-tar.pl:79
41895 msgid ""
41896 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41897 "parts of a guest filesystem.  There are many possibilities: making backups, "
41898 "uploading data files, snooping on guest activity, fixing or customizing "
41899 "guests, etc."
41900 msgstr ""
41901
41902 #. type: textblock
41903 #: ../tools/virt-tar.pl:84
41904 msgid ""
41905 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
41906 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
41907 "should look at the L<guestfish(1)> tool."
41908 msgstr ""
41909
41910 #. type: textblock
41911 #: ../tools/virt-tar.pl:88
41912 msgid ""
41913 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
41914 "its contents (recursively) from the virtual machine into a local tarball.  "
41915 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
41916 "virtual machine.  You cannot use these two options together."
41917 msgstr ""
41918
41919 #. type: textblock
41920 #: ../tools/virt-tar.pl:94
41921 msgid ""
41922 "In addition, you may need to use the I<-z> (gZip) option to enable "
41923 "compression.  When uploading, you have to specify I<-z> if the upload file "
41924 "is compressed because virt-tar won't detect this on its own."
41925 msgstr ""
41926
41927 #. type: textblock
41928 #: ../tools/virt-tar.pl:98
41929 msgid ""
41930 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
41931 "example it cannot do PKZip files or bzip2 compression.  If you want that "
41932 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
41933 "the L<libguestfs(3)> API)."
41934 msgstr ""
41935
41936 #. type: =item
41937 #: ../tools/virt-tar.pl:160
41938 msgid "B<--extract>"
41939 msgstr "B<--extract>"
41940
41941 #. type: =item
41942 #: ../tools/virt-tar.pl:162
41943 msgid "B<--download>"
41944 msgstr "B<--download>"
41945
41946 #. type: =item
41947 #: ../tools/virt-tar.pl:164
41948 msgid "B<-u>"
41949 msgstr "B<-u>"
41950
41951 #. type: =item
41952 #: ../tools/virt-tar.pl:166
41953 msgid "B<--upload>"
41954 msgstr "B<--upload>"
41955
41956 #. type: textblock
41957 #: ../tools/virt-tar.pl:168
41958 msgid ""
41959 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41960 "local tarball."
41961 msgstr ""
41962
41963 #. type: textblock
41964 #: ../tools/virt-tar.pl:171
41965 msgid ""
41966 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
41967 "Please read the L</WARNING> section above before using this option."
41968 msgstr ""
41969
41970 #. type: textblock
41971 #: ../tools/virt-tar.pl:175
41972 msgid "You must specify exactly one of these options."
41973 msgstr ""
41974
41975 #. type: =item
41976 #: ../tools/virt-tar.pl:181
41977 msgid "B<-z>"
41978 msgstr "B<-z>"
41979
41980 #. type: =item
41981 #: ../tools/virt-tar.pl:183
41982 msgid "B<--gzip>"
41983 msgstr "B<--gzip>"
41984
41985 #. type: textblock
41986 #: ../tools/virt-tar.pl:185
41987 msgid "Specify that the input or output tarball is gzip-compressed."
41988 msgstr ""
41989
41990 #. type: textblock
41991 #: ../tools/virt-tar.pl:298
41992 msgid ""
41993 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
41994 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
41995 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
41996 "org/>."
41997 msgstr ""
41998 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
41999 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
42000 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
42001 "org/>."
42002
42003 #. type: textblock
42004 #: ../tools/virt-win-reg.pl:37
42005 msgid ""
42006 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
42007 msgstr ""
42008
42009 #. type: verbatim
42010 #: ../tools/virt-win-reg.pl:41
42011 #, no-wrap
42012 msgid ""
42013 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
42014 "\n"
42015 msgstr ""
42016
42017 #. type: verbatim
42018 #: ../tools/virt-win-reg.pl:43
42019 #, no-wrap
42020 msgid ""
42021 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
42022 "\n"
42023 msgstr ""
42024
42025 #. type: verbatim
42026 #: ../tools/virt-win-reg.pl:45
42027 #, no-wrap
42028 msgid ""
42029 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
42030 "\n"
42031 msgstr ""
42032
42033 #. type: verbatim
42034 #: ../tools/virt-win-reg.pl:47
42035 #, no-wrap
42036 msgid ""
42037 " virt-win-reg --merge domname [input.reg ...]\n"
42038 "\n"
42039 msgstr ""
42040
42041 #. type: verbatim
42042 #: ../tools/virt-win-reg.pl:49
42043 #, no-wrap
42044 msgid ""
42045 " virt-win-reg [--options] disk.img ... # instead of domname\n"
42046 "\n"
42047 msgstr ""
42048
42049 #. type: textblock
42050 #: ../tools/virt-win-reg.pl:53
42051 msgid ""
42052 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
42053 "virtual machines.  If you do this, you I<will> get irreversible disk "
42054 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
42055 "but doesn't catch all cases."
42056 msgstr ""
42057
42058 #. type: textblock
42059 #: ../tools/virt-win-reg.pl:58
42060 msgid ""
42061 "Modifying the Windows Registry is an inherently risky operation.  The format "
42062 "is deliberately obscure and undocumented, and Registry changes can leave the "
42063 "system unbootable.  Therefore when using the I<--merge> option, make sure "
42064 "you have a reliable backup first."
42065 msgstr ""
42066
42067 #. type: textblock
42068 #: ../tools/virt-win-reg.pl:65
42069 msgid ""
42070 "This program can export and merge Windows Registry entries from a Windows "
42071 "guest."
42072 msgstr ""
42073
42074 #. type: textblock
42075 #: ../tools/virt-win-reg.pl:68
42076 msgid ""
42077 "The first parameter is the libvirt guest name or the raw disk image of a "
42078 "Windows guest."
42079 msgstr ""
42080
42081 #. type: textblock
42082 #: ../tools/virt-win-reg.pl:71
42083 msgid ""
42084 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
42085 "exported (recursively).  For example:"
42086 msgstr ""
42087
42088 #. type: verbatim
42089 #: ../tools/virt-win-reg.pl:74
42090 #, no-wrap
42091 msgid ""
42092 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42093 "\n"
42094 msgstr ""
42095 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
42096 "\n"
42097
42098 #. type: textblock
42099 #: ../tools/virt-win-reg.pl:76
42100 msgid ""
42101 "You can also display single values from within registry keys, for example:"
42102 msgstr ""
42103
42104 #. type: verbatim
42105 #: ../tools/virt-win-reg.pl:79
42106 #, no-wrap
42107 msgid ""
42108 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42109 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42110 " Windows 7 Enterprise\n"
42111 "\n"
42112 msgstr ""
42113 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
42114 " $ virt-win-reg Windows7 $cvkey ProductName\n"
42115 " Windows 7 Enterprise\n"
42116 "\n"
42117
42118 #. type: textblock
42119 #: ../tools/virt-win-reg.pl:83
42120 msgid ""
42121 "With I<--merge>, you can merge a textual regedit file into the Windows "
42122 "Registry:"
42123 msgstr ""
42124
42125 #. type: verbatim
42126 #: ../tools/virt-win-reg.pl:86
42127 #, no-wrap
42128 msgid ""
42129 " $ virt-win-reg --merge Windows7 changes.reg\n"
42130 "\n"
42131 msgstr ""
42132 " $ virt-win-reg --merge Windows7 changes.reg\n"
42133 "\n"
42134
42135 #. type: textblock
42136 #: ../tools/virt-win-reg.pl:90
42137 msgid ""
42138 "This program is only meant for simple access to the registry.  If you want "
42139 "to do complicated things with the registry, we suggest you download the "
42140 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
42141 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
42142 "L<hivexregedit(1)>."
42143 msgstr ""
42144
42145 #. type: =item
42146 #: ../tools/virt-win-reg.pl:159
42147 msgid "B<--merge>"
42148 msgstr "B<--merge>"
42149
42150 #. type: textblock
42151 #: ../tools/virt-win-reg.pl:161
42152 msgid ""
42153 "In merge mode, this merges a textual regedit file into the Windows Registry "
42154 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
42155 "displays or exports Registry entries instead."
42156 msgstr ""
42157
42158 #. type: textblock
42159 #: ../tools/virt-win-reg.pl:165
42160 msgid ""
42161 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
42162 "result in disk corruption.  However exporting (without this flag)  is always "
42163 "safe."
42164 msgstr ""
42165
42166 #. type: =item
42167 #: ../tools/virt-win-reg.pl:173
42168 msgid "B<--encoding> UTF-16LE|ASCII"
42169 msgstr "B<--encoding> UTF-16LE|ASCII"
42170
42171 #. type: textblock
42172 #: ../tools/virt-win-reg.pl:175
42173 msgid ""
42174 "When merging (only), you may need to specify the encoding for strings to be "
42175 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
42176 "(3)/ENCODING STRINGS>."
42177 msgstr ""
42178
42179 #. type: textblock
42180 #: ../tools/virt-win-reg.pl:179
42181 msgid ""
42182 "The default is to use UTF-16LE, which should work with recent versions of "
42183 "Windows."
42184 msgstr ""
42185
42186 #. type: =item
42187 #: ../tools/virt-win-reg.pl:186
42188 msgid "B<--unsafe-printable-strings>"
42189 msgstr "B<--unsafe-printable-strings>"
42190
42191 #. type: textblock
42192 #: ../tools/virt-win-reg.pl:188
42193 msgid ""
42194 "When exporting (only), assume strings are UTF-16LE and print them as strings "
42195 "instead of hex sequences.  Remove the final zero codepoint from strings if "
42196 "present."
42197 msgstr ""
42198
42199 #. type: textblock
42200 #: ../tools/virt-win-reg.pl:192
42201 msgid ""
42202 "This is unsafe and does not preserve the fidelity of strings in the original "
42203 "Registry for various reasons:"
42204 msgstr ""
42205
42206 #. type: textblock
42207 #: ../tools/virt-win-reg.pl:199
42208 msgid ""
42209 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
42210 "other encodings will be corrupted by this transformation."
42211 msgstr ""
42212
42213 #. type: textblock
42214 #: ../tools/virt-win-reg.pl:204
42215 msgid ""
42216 "Assumes that everything which has type 1 or 2 is really a string and that "
42217 "everything else is not a string, but the type field in real Registries is "
42218 "not reliable."
42219 msgstr ""
42220
42221 #. type: textblock
42222 #: ../tools/virt-win-reg.pl:210
42223 msgid ""
42224 "Loses information about whether a zero codepoint followed the string in the "
42225 "Registry or not."
42226 msgstr ""
42227
42228 #. type: textblock
42229 #: ../tools/virt-win-reg.pl:215
42230 msgid ""
42231 "This all happens because the Registry itself contains no information about "
42232 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
42233 msgstr ""
42234
42235 #. type: textblock
42236 #: ../tools/virt-win-reg.pl:219
42237 msgid ""
42238 "You should only use this option for quick hacking and debugging of the "
42239 "Registry contents, and I<never> use it if the output is going to be passed "
42240 "into another program or stored in another Registry."
42241 msgstr ""
42242
42243 #. type: =head1
42244 #: ../tools/virt-win-reg.pl:556
42245 msgid "SUPPORTED SYSTEMS"
42246 msgstr "ПІДТРИМУВАНІ СИСТЕМИ"
42247
42248 #. type: textblock
42249 #: ../tools/virt-win-reg.pl:558
42250 msgid ""
42251 "The program currently supports Windows NT-derived guests starting with "
42252 "Windows XP through to at least Windows 7."
42253 msgstr ""
42254
42255 #. type: textblock
42256 #: ../tools/virt-win-reg.pl:561
42257 msgid "The following Registry keys are supported:"
42258 msgstr ""
42259
42260 #. type: =item
42261 #: ../tools/virt-win-reg.pl:565
42262 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
42263 msgstr "C<HKEY_LOCAL_MACHINE\\SAM>"
42264
42265 #. type: =item
42266 #: ../tools/virt-win-reg.pl:567
42267 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42268 msgstr "C<HKEY_LOCAL_MACHINE\\SECURITY>"
42269
42270 #. type: =item
42271 #: ../tools/virt-win-reg.pl:569
42272 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42273 msgstr "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
42274
42275 #. type: =item
42276 #: ../tools/virt-win-reg.pl:571
42277 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42278 msgstr "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
42279
42280 #. type: =item
42281 #: ../tools/virt-win-reg.pl:573
42282 msgid "C<HKEY_USERS\\.DEFAULT>"
42283 msgstr "C<HKEY_USERS\\.DEFAULT>"
42284
42285 #. type: =item
42286 #: ../tools/virt-win-reg.pl:575
42287 msgid "C<HKEY_USERS\\I<SID>>"
42288 msgstr "C<HKEY_USERS\\I<SID>>"
42289
42290 #. type: textblock
42291 #: ../tools/virt-win-reg.pl:577
42292 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
42293 msgstr ""
42294
42295 #. type: =item
42296 #: ../tools/virt-win-reg.pl:579
42297 msgid "C<HKEY_USERS\\I<username>>"
42298 msgstr "C<HKEY_USERS\\I<користувач>>"
42299
42300 #. type: textblock
42301 #: ../tools/virt-win-reg.pl:581
42302 msgid ""
42303 "where I<username> is a local user name (this is a libguestfs extension)."
42304 msgstr ""
42305
42306 #. type: textblock
42307 #: ../tools/virt-win-reg.pl:585
42308 msgid ""
42309 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
42310 "C<HKEY_USERS>."
42311 msgstr ""
42312
42313 #. type: textblock
42314 #: ../tools/virt-win-reg.pl:588
42315 msgid ""
42316 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
42317 "supported (there is no \"current user\")."
42318 msgstr ""
42319
42320 #. type: =head1
42321 #: ../tools/virt-win-reg.pl:591
42322 msgid "ENCODING"
42323 msgstr "КОДУВАННЯ"
42324
42325 #. type: textblock
42326 #: ../tools/virt-win-reg.pl:593
42327 msgid ""
42328 "C<virt-win-reg> expects that regedit files have already been reencoded in "
42329 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
42330 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
42331 "Windows-style line endings, you may need to reencode the whole file before "
42332 "or after processing."
42333 msgstr ""
42334
42335 #. type: textblock
42336 #: ../tools/virt-win-reg.pl:599
42337 msgid ""
42338 "To reencode a file from Windows format to Linux (before processing it with "
42339 "the I<--merge> option), you would do something like this:"
42340 msgstr ""
42341
42342 #. type: verbatim
42343 #: ../tools/virt-win-reg.pl:602
42344 #, no-wrap
42345 msgid ""
42346 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42347 "\n"
42348 msgstr ""
42349 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
42350 "\n"
42351
42352 #. type: textblock
42353 #: ../tools/virt-win-reg.pl:604
42354 msgid ""
42355 "To go in the opposite direction, after exporting and before sending the file "
42356 "to a Windows user, do something like this:"
42357 msgstr ""
42358
42359 #. type: verbatim
42360 #: ../tools/virt-win-reg.pl:607
42361 #, no-wrap
42362 msgid ""
42363 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42364 "\n"
42365 msgstr ""
42366 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
42367 "\n"
42368
42369 #. type: textblock
42370 #: ../tools/virt-win-reg.pl:609
42371 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
42372 msgstr ""
42373
42374 #. type: textblock
42375 #: ../tools/virt-win-reg.pl:611
42376 msgid ""
42377 "If you are unsure about the current encoding, use the L<file(1)> command.  "
42378 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
42379 "style (CRLF) line endings, like this:"
42380 msgstr ""
42381
42382 #. type: verbatim
42383 #: ../tools/virt-win-reg.pl:615
42384 #, no-wrap
42385 msgid ""
42386 " $ file software.reg\n"
42387 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
42388 " with CRLF line terminators\n"
42389 "\n"
42390 msgstr ""
42391
42392 #. type: textblock
42393 #: ../tools/virt-win-reg.pl:619
42394 msgid "This file would need conversion before you could I<--merge> it."
42395 msgstr ""
42396
42397 #. type: =head1
42398 #: ../tools/virt-win-reg.pl:621
42399 msgid "CurrentControlSet etc."
42400 msgstr ""
42401
42402 #. type: textblock
42403 #: ../tools/virt-win-reg.pl:623
42404 msgid ""
42405 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
42406 "Registry at the level of the hive file, and therefore you cannot modify "
42407 "these."
42408 msgstr ""
42409
42410 #. type: textblock
42411 #: ../tools/virt-win-reg.pl:627
42412 msgid ""
42413 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
42414 "circumstances it might refer to another control set.  The way to find out is "
42415 "to look at the C<HKLM\\SYSTEM\\Select> key:"
42416 msgstr ""
42417
42418 #. type: verbatim
42419 #: ../tools/virt-win-reg.pl:631
42420 #, no-wrap
42421 msgid ""
42422 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42423 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42424 " \"Current\"=dword:00000001\n"
42425 " \"Default\"=dword:00000001\n"
42426 " \"Failed\"=dword:00000000\n"
42427 " \"LastKnownGood\"=dword:00000002\n"
42428 "\n"
42429 msgstr ""
42430 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
42431 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
42432 " \"Current\"=dword:00000001\n"
42433 " \"Default\"=dword:00000001\n"
42434 " \"Failed\"=dword:00000000\n"
42435 " \"LastKnownGood\"=dword:00000002\n"
42436 "\n"
42437
42438 #. type: textblock
42439 #: ../tools/virt-win-reg.pl:638
42440 msgid "\"Current\" is the one which Windows will choose when it boots."
42441 msgstr ""
42442
42443 #. type: textblock
42444 #: ../tools/virt-win-reg.pl:640
42445 msgid ""
42446 "Similarly, other C<Current...> keys in the path may need to be replaced."
42447 msgstr ""
42448
42449 #. type: =head1
42450 #: ../tools/virt-win-reg.pl:643
42451 msgid "WINDOWS TIPS"
42452 msgstr ""
42453
42454 #. type: textblock
42455 #: ../tools/virt-win-reg.pl:645
42456 msgid ""
42457 "Note that some of these tips modify the guest disk image.  The guest I<must> "
42458 "be shut off, else you will get disk corruption."
42459 msgstr ""
42460
42461 #. type: =head2
42462 #: ../tools/virt-win-reg.pl:648
42463 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
42464 msgstr ""
42465
42466 #. type: textblock
42467 #: ../tools/virt-win-reg.pl:650
42468 msgid ""
42469 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
42470 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
42471 "is uploaded into C<C:\\>:"
42472 msgstr ""
42473
42474 #. type: verbatim
42475 #: ../tools/virt-win-reg.pl:654
42476 #, no-wrap
42477 msgid ""
42478 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42479 "\n"
42480 msgstr ""
42481 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
42482 "\n"
42483
42484 #. type: textblock
42485 #: ../tools/virt-win-reg.pl:656
42486 msgid "Prepare a regedit file containing the registry change:"
42487 msgstr ""
42488
42489 #. type: verbatim
42490 #: ../tools/virt-win-reg.pl:658
42491 #, no-wrap
42492 msgid ""
42493 " cat > test.reg <<'EOF'\n"
42494 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42495 " \"Test\"=\"c:\\\\test.bat\"\n"
42496 " EOF\n"
42497 "\n"
42498 msgstr ""
42499 " cat > test.reg <<'EOF'\n"
42500 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
42501 " \"Test\"=\"c:\\\\test.bat\"\n"
42502 " EOF\n"
42503 "\n"
42504
42505 #. type: textblock
42506 #: ../tools/virt-win-reg.pl:663
42507 msgid ""
42508 "In this example we use the key C<RunOnce> which means that the script will "
42509 "run precisely once when the first user logs in.  If you want it to run every "
42510 "time a user logs in, replace C<RunOnce> with C<Run>."
42511 msgstr ""
42512
42513 #. type: textblock
42514 #: ../tools/virt-win-reg.pl:667
42515 msgid "Now update the registry:"
42516 msgstr "Оновіть регістр:"
42517
42518 #. type: verbatim
42519 #: ../tools/virt-win-reg.pl:669
42520 #, no-wrap
42521 msgid ""
42522 " virt-win-reg --merge WindowsGuest test.reg\n"
42523 "\n"
42524 msgstr ""
42525
42526 #. type: =head2
42527 #: ../tools/virt-win-reg.pl:671
42528 msgid "INSTALLING A SERVICE"
42529 msgstr ""
42530
42531 #. type: textblock
42532 #: ../tools/virt-win-reg.pl:673
42533 msgid ""
42534 "This section assumes you are familiar with Windows services, and you either "
42535 "have a program which handles the Windows Service Control Protocol directly "
42536 "or you want to run any program using a service wrapper like SrvAny or the "
42537 "free RHSrvAny."
42538 msgstr ""
42539
42540 #. type: textblock
42541 #: ../tools/virt-win-reg.pl:678
42542 msgid ""
42543 "First upload the program and optionally the service wrapper.  In this case "
42544 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
42545 msgstr ""
42546
42547 #. type: verbatim
42548 #: ../tools/virt-win-reg.pl:682
42549 #, no-wrap
42550 msgid ""
42551 " guestfish -i -d WindowsGuest <<EOF\n"
42552 "   upload rhsrvany.exe /rhsrvany.exe\n"
42553 "   upload test.exe /test.exe\n"
42554 " EOF\n"
42555 "\n"
42556 msgstr ""
42557 " guestfish -i -d WindowsGuest <<EOF\n"
42558 "   upload rhsrvany.exe /rhsrvany.exe\n"
42559 "   upload test.exe /test.exe\n"
42560 " EOF\n"
42561 "\n"
42562
42563 #. type: textblock
42564 #: ../tools/virt-win-reg.pl:687
42565 msgid ""
42566 "Prepare a regedit file containing the registry changes.  In this example, "
42567 "the first registry change is needed for the service itself or the service "
42568 "wrapper (if used).  The second registry change is only needed because I am "
42569 "using the RHSrvAny service wrapper."
42570 msgstr ""
42571
42572 #. type: verbatim
42573 #: ../tools/virt-win-reg.pl:692
42574 #, no-wrap
42575 msgid ""
42576 " cat > service.reg <<'EOF'\n"
42577 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42578 " \"Type\"=dword:00000010\n"
42579 " \"Start\"=dword:00000002\n"
42580 " \"ErrorControl\"=dword:00000001\n"
42581 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42582 " \"DisplayName\"=\"RHSrvAny\"\n"
42583 " \"ObjectName\"=\"NetworkService\"\n"
42584 " \n"
42585 msgstr ""
42586 " cat > service.reg <<'EOF'\n"
42587 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
42588 " \"Type\"=dword:00000010\n"
42589 " \"Start\"=dword:00000002\n"
42590 " \"ErrorControl\"=dword:00000001\n"
42591 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
42592 " \"DisplayName\"=\"RHSrvAny\"\n"
42593 " \"ObjectName\"=\"NetworkService\"\n"
42594 " \n"
42595
42596 #. type: verbatim
42597 #: ../tools/virt-win-reg.pl:701
42598 #, no-wrap
42599 msgid ""
42600 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42601 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42602 " \"PWD\"=\"c:\\\\Temp\"\n"
42603 " EOF\n"
42604 "\n"
42605 msgstr ""
42606 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
42607 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
42608 " \"PWD\"=\"c:\\\\Temp\"\n"
42609 " EOF\n"
42610 "\n"
42611
42612 #. type: textblock
42613 #: ../tools/virt-win-reg.pl:712
42614 msgid ""
42615 "For use of C<ControlSet001> see the section above in this manual page.  You "
42616 "may need to adjust this according to the control set that is in use by the "
42617 "guest."
42618 msgstr ""
42619
42620 #. type: textblock
42621 #: ../tools/virt-win-reg.pl:718
42622 msgid ""
42623 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
42624 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
42625 "privileged account."
42626 msgstr ""
42627
42628 #. type: textblock
42629 #: ../tools/virt-win-reg.pl:724
42630 msgid ""
42631 "For the meaning of the magic numbers, see this Microsoft KB article: "
42632 "L<http://support.microsoft.com/kb/103000>."
42633 msgstr ""
42634
42635 #. type: textblock
42636 #: ../tools/virt-win-reg.pl:729
42637 msgid "Update the registry:"
42638 msgstr "Оновіть регістр:"
42639
42640 #. type: verbatim
42641 #: ../tools/virt-win-reg.pl:731
42642 #, no-wrap
42643 msgid ""
42644 " virt-win-reg --merge WindowsGuest service.reg\n"
42645 "\n"
42646 msgstr ""
42647
42648 #. type: textblock
42649 #: ../tools/virt-win-reg.pl:735
42650 msgid ""
42651 "Be careful when passing parameters containing C<\\> (backslash) in the "
42652 "shell.  Usually you will have to use 'single quotes' or double backslashes "
42653 "(but not both) to protect them from the shell."
42654 msgstr ""
42655
42656 #. type: textblock
42657 #: ../tools/virt-win-reg.pl:739
42658 msgid "Paths and value names are case-insensitive."
42659 msgstr ""
42660
42661 #. type: textblock
42662 #: ../tools/virt-win-reg.pl:748
42663 msgid ""
42664 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
42665 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
42666 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42667 msgstr ""
42668 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
42669 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
42670 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
42671
42672 #. type: verbatim
42673 #: ../tools/virt-win-reg.pl:766
42674 #, no-wrap
42675 msgid ""
42676 " export LIBGUESTFS_DEBUG=1\n"
42677 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
42678 "\n"
42679 msgstr ""
42680
42681 #. type: textblock
42682 #: ../tools/virt-win-reg.pl:769
42683 msgid ""
42684 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
42685 "redhat.com/>"
42686 msgstr ""