Version 1.13.18.
[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 # Yuri Chornoivan <yurchor@ukr.net>, 2011.
6 msgid ""
7 msgstr ""
8 "Project-Id-Version: libguestfs\n"
9 "Report-Msgid-Bugs-To: libguestfs@redhat.com\n"
10 "POT-Creation-Date: 2011-10-05 18:11+0200\n"
11 "PO-Revision-Date: 2011-07-17 20:50+0000\n"
12 "Last-Translator: rjones <rjones@redhat.com>\n"
13 "Language-Team: Ukrainian <trans-uk@lists.fedoraproject.org>\n"
14 "Language: uk\n"
15 "MIME-Version: 1.0\n"
16 "Content-Type: text/plain; charset=UTF-8\n"
17 "Content-Transfer-Encoding: 8bit\n"
18 "Plural-Forms: nplurals=3; plural=(n%10==1 && n%100!=11 ? 0 : n%10>=2 && n"
19 "%10<=4 && (n%100<10 || n%100>=20) ? 1 : 2)\n"
20
21 #. type: =head1
22 #: ../align/virt-alignment-scan.pod:3 ../cat/virt-cat.pod:3
23 #: ../cat/virt-filesystems.pod:3 ../cat/virt-ls.pod:3 ../df/virt-df.pod:3
24 #: ../edit/virt-edit.pod:3 ../erlang/examples/guestfs-erlang.pod:3
25 #: ../examples/guestfs-examples.pod:3 ../examples/guestfs-recipes.pod:14
26 #: ../fish/guestfish.pod:3 ../fish/virt-copy-in.pod:3
27 #: ../fish/virt-copy-out.pod:3 ../fish/virt-tar-in.pod:3
28 #: ../fish/virt-tar-out.pod:3 ../fuse/guestmount.pod:3
29 #: ../inspector/virt-inspector.pod:3 ../java/examples/guestfs-java.pod:3
30 #: ../ocaml/examples/guestfs-ocaml.pod:3 ../perl/examples/guestfs-perl.pod:3
31 #: ../python/examples/guestfs-python.pod:3 ../rescue/virt-rescue.pod:3
32 #: ../resize/virt-resize.pod:3 ../ruby/examples/guestfs-ruby.pod:3
33 #: ../sparsify/virt-sparsify.pod:3 ../src/guestfs.pod:3
34 #: ../test-tool/libguestfs-test-tool.pod:3
35 #: ../tools/virt-list-filesystems.pl:30 ../tools/virt-list-partitions.pl:30
36 #: ../tools/virt-make-fs.pl:35 ../tools/virt-tar.pl:31
37 #: ../tools/virt-win-reg.pl:35
38 msgid "NAME"
39 msgstr "НАЗВА"
40
41 #. type: textblock
42 #: ../align/virt-alignment-scan.pod:5
43 msgid "virt-alignment-scan - Check alignment of virtual machine partitions"
44 msgstr ""
45
46 #. type: =head1
47 #: ../align/virt-alignment-scan.pod:7 ../cat/virt-cat.pod:7
48 #: ../cat/virt-filesystems.pod:7 ../cat/virt-ls.pod:7 ../df/virt-df.pod:7
49 #: ../edit/virt-edit.pod:7 ../erlang/examples/guestfs-erlang.pod:7
50 #: ../examples/guestfs-examples.pod:7 ../fish/guestfish.pod:7
51 #: ../fish/virt-copy-in.pod:7 ../fish/virt-copy-out.pod:7
52 #: ../fish/virt-tar-in.pod:7 ../fish/virt-tar-out.pod:7
53 #: ../fuse/guestmount.pod:7 ../inspector/virt-inspector.pod:7
54 #: ../java/examples/guestfs-java.pod:7 ../ocaml/examples/guestfs-ocaml.pod:7
55 #: ../perl/examples/guestfs-perl.pod:7 ../python/examples/guestfs-python.pod:7
56 #: ../rescue/virt-rescue.pod:7 ../resize/virt-resize.pod:7
57 #: ../ruby/examples/guestfs-ruby.pod:7 ../sparsify/virt-sparsify.pod:7
58 #: ../src/guestfs.pod:7 ../test-tool/libguestfs-test-tool.pod:7
59 #: ../tools/virt-list-filesystems.pl:34 ../tools/virt-list-partitions.pl:34
60 #: ../tools/virt-make-fs.pl:39 ../tools/virt-tar.pl:35
61 #: ../tools/virt-win-reg.pl:39
62 msgid "SYNOPSIS"
63 msgstr "КОРОТКИЙ ОПИС"
64
65 #. type: verbatim
66 #: ../align/virt-alignment-scan.pod:9
67 #, fuzzy, no-wrap
68 #| msgid ""
69 #| " virt-list-partitions [--options] domname\n"
70 #| "\n"
71 msgid ""
72 " virt-alignment-scan [--options]\n"
73 "\n"
74 msgstr ""
75 " virt-list-partitions [--параметри] назва_домену\n"
76 "\n"
77
78 #. type: verbatim
79 #: ../align/virt-alignment-scan.pod:11
80 #, fuzzy, no-wrap
81 #| msgid ""
82 #| " virt-list-partitions [--options] domname\n"
83 #| "\n"
84 msgid ""
85 " virt-alignment-scan [--options] -d domname\n"
86 "\n"
87 msgstr ""
88 " virt-list-partitions [--параметри] назва_домену\n"
89 "\n"
90
91 #. type: verbatim
92 #: ../align/virt-alignment-scan.pod:13
93 #, fuzzy, no-wrap
94 #| msgid ""
95 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
96 #| "\n"
97 msgid ""
98 " virt-alignment-scan [--options] -a disk.img [-a disk.img ...]\n"
99 "\n"
100 msgstr ""
101 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
102 "\n"
103
104 #. type: =head1
105 #: ../align/virt-alignment-scan.pod:15 ../cat/virt-cat.pod:19
106 #: ../cat/virt-filesystems.pod:13 ../cat/virt-ls.pod:19 ../df/virt-df.pod:21
107 #: ../edit/virt-edit.pod:27 ../erlang/examples/guestfs-erlang.pod:16
108 #: ../examples/guestfs-examples.pod:19 ../examples/guestfs-recipes.pod:18
109 #: ../fish/guestfish.pod:30 ../fish/virt-copy-in.pod:19
110 #: ../fish/virt-copy-out.pod:13 ../fish/virt-tar-in.pod:21
111 #: ../fish/virt-tar-out.pod:15 ../fuse/guestmount.pod:20
112 #: ../inspector/virt-inspector.pod:19 ../java/examples/guestfs-java.pod:15
113 #: ../ocaml/examples/guestfs-ocaml.pod:25 ../perl/examples/guestfs-perl.pod:18
114 #: ../python/examples/guestfs-python.pod:14 ../rescue/virt-rescue.pod:29
115 #: ../resize/virt-resize.pod:13 ../ruby/examples/guestfs-ruby.pod:15
116 #: ../sparsify/virt-sparsify.pod:11 ../src/guestfs.pod:23
117 #: ../test-tool/libguestfs-test-tool.pod:11
118 #: ../tools/virt-list-filesystems.pl:40 ../tools/virt-list-partitions.pl:40
119 #: ../tools/virt-make-fs.pl:47 ../tools/virt-tar.pl:77
120 #: ../tools/virt-win-reg.pl:63
121 msgid "DESCRIPTION"
122 msgstr "ОПИС"
123
124 #. type: textblock
125 #: ../align/virt-alignment-scan.pod:17
126 msgid ""
127 "When older operating systems install themselves, the partitioning tools "
128 "place partitions at a sector misaligned with the underlying storage "
129 "(commonly the first partition starts on sector C<63>).  Misaligned "
130 "partitions can result in an operating system issuing more I/O than should be "
131 "necessary."
132 msgstr ""
133
134 #. type: textblock
135 #: ../align/virt-alignment-scan.pod:23
136 msgid ""
137 "The virt-alignment-scan tool checks the alignment of partitions in virtual "
138 "machines and disk images and warns you if there are alignment problems."
139 msgstr ""
140
141 #. type: textblock
142 #: ../align/virt-alignment-scan.pod:27
143 msgid ""
144 "Currently there is no virt tool for fixing alignment problems, except to "
145 "reinstall the operating system.  The following NetApp document summarises "
146 "the problem and possible solutions: L<http://media.netapp.com/documents/"
147 "tr-3747.pdf>"
148 msgstr ""
149
150 #. type: =head1
151 #: ../align/virt-alignment-scan.pod:32
152 msgid "OUTPUT"
153 msgstr ""
154
155 #. type: textblock
156 #: ../align/virt-alignment-scan.pod:34
157 msgid "To run this tool on a disk image directly, use the I<-a> option:"
158 msgstr ""
159
160 #. type: verbatim
161 #: ../align/virt-alignment-scan.pod:36
162 #, no-wrap
163 msgid ""
164 " $ virt-alignment-scan -a winxp.img\n"
165 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
166 "\n"
167 msgstr ""
168
169 #. type: verbatim
170 #: ../align/virt-alignment-scan.pod:39
171 #, no-wrap
172 msgid ""
173 " $ virt-alignment-scan -a fedora16.img\n"
174 " /dev/sda1      1048576         1024K   ok\n"
175 " /dev/sda2      2097152         2048K   ok\n"
176 " /dev/sda3    526385152         2048K   ok\n"
177 "\n"
178 msgstr ""
179
180 #. type: textblock
181 #: ../align/virt-alignment-scan.pod:44
182 msgid ""
183 "To run the tool on a guest known to libvirt, use the I<-d> option and "
184 "possibly the I<-c> option:"
185 msgstr ""
186
187 #. type: verbatim
188 #: ../align/virt-alignment-scan.pod:47
189 #, no-wrap
190 msgid ""
191 " # virt-alignment-scan -d RHEL5\n"
192 " /dev/sda1        32256          512    bad (alignment < 4K)\n"
193 " /dev/sda2    106928640          512    bad (alignment < 4K)\n"
194 "\n"
195 msgstr ""
196
197 #. type: verbatim
198 #: ../align/virt-alignment-scan.pod:51
199 #, no-wrap
200 msgid ""
201 " $ virt-alignment-scan -c qemu:///system -d Win7TwoDisks\n"
202 " /dev/sda1      1048576         1024K   ok\n"
203 " /dev/sda2    105906176         1024K   ok\n"
204 " /dev/sdb1        65536           64K   ok\n"
205 "\n"
206 msgstr ""
207
208 #. type: textblock
209 #: ../align/virt-alignment-scan.pod:56
210 msgid ""
211 "The output consists of 4 or more whitespace-separated columns.  Only the "
212 "first 4 columns are signficant if you want to parse this from a program.  "
213 "The columns are:"
214 msgstr ""
215
216 #. type: =item
217 #: ../align/virt-alignment-scan.pod:62
218 msgid "col 1"
219 msgstr ""
220
221 #. type: textblock
222 #: ../align/virt-alignment-scan.pod:64
223 msgid ""
224 "the device and partition name (eg. C</dev/sda1> meaning the first partition "
225 "on the first block device)"
226 msgstr ""
227
228 #. type: =item
229 #: ../align/virt-alignment-scan.pod:67
230 msgid "col 2"
231 msgstr ""
232
233 #. type: textblock
234 #: ../align/virt-alignment-scan.pod:69
235 msgid "the start of the partition in bytes"
236 msgstr ""
237
238 #. type: =item
239 #: ../align/virt-alignment-scan.pod:71
240 msgid "col 3"
241 msgstr ""
242
243 #. type: textblock
244 #: ../align/virt-alignment-scan.pod:73
245 msgid "the alignment in bytes or Kbytes (eg. C<512> or C<4K>)"
246 msgstr ""
247
248 #. type: =item
249 #: ../align/virt-alignment-scan.pod:75
250 msgid "col 4"
251 msgstr ""
252
253 #. type: textblock
254 #: ../align/virt-alignment-scan.pod:77
255 msgid ""
256 "C<ok> if the alignment is best for performance, or C<bad> if the alignment "
257 "can cause performance problems"
258 msgstr ""
259
260 #. type: =item
261 #: ../align/virt-alignment-scan.pod:80
262 msgid "cols 5+"
263 msgstr ""
264
265 #. type: textblock
266 #: ../align/virt-alignment-scan.pod:82
267 msgid "optional free-text explanation."
268 msgstr ""
269
270 #. type: textblock
271 #: ../align/virt-alignment-scan.pod:86
272 msgid ""
273 "The exit code from the program changes depending on whether poorly aligned "
274 "partitions were found.  See L</EXIT STATUS> below."
275 msgstr ""
276
277 #. type: textblock
278 #: ../align/virt-alignment-scan.pod:89
279 msgid "If you just want the exit code with no output, use the I<-q> option."
280 msgstr ""
281
282 #. type: =head1
283 #: ../align/virt-alignment-scan.pod:91 ../cat/virt-cat.pod:62
284 #: ../cat/virt-filesystems.pod:91 ../cat/virt-ls.pod:261 ../df/virt-df.pod:59
285 #: ../edit/virt-edit.pod:62 ../fish/guestfish.pod:148
286 #: ../fish/virt-copy-in.pod:45 ../fish/virt-copy-out.pod:34
287 #: ../fish/virt-tar-in.pod:42 ../fish/virt-tar-out.pod:36
288 #: ../fuse/guestmount.pod:83 ../inspector/virt-inspector.pod:55
289 #: ../rescue/virt-rescue.pod:84 ../resize/virt-resize.pod:241
290 #: ../sparsify/virt-sparsify.pod:99 ../test-tool/libguestfs-test-tool.pod:36
291 #: ../tools/virt-list-filesystems.pl:53 ../tools/virt-list-partitions.pl:54
292 #: ../tools/virt-make-fs.pl:153 ../tools/virt-tar.pl:103
293 #: ../tools/virt-win-reg.pl:96
294 msgid "OPTIONS"
295 msgstr "ПАРАМЕТРИ"
296
297 #. type: =item
298 #: ../align/virt-alignment-scan.pod:95 ../cat/virt-cat.pod:66
299 #: ../cat/virt-filesystems.pod:95 ../cat/virt-ls.pod:265 ../df/virt-df.pod:63
300 #: ../edit/virt-edit.pod:66 ../fish/guestfish.pod:152
301 #: ../fuse/guestmount.pod:151 ../inspector/virt-inspector.pod:59
302 #: ../rescue/virt-rescue.pod:88 ../resize/virt-resize.pod:245
303 #: ../sparsify/virt-sparsify.pod:103 ../test-tool/libguestfs-test-tool.pod:40
304 #: ../tools/virt-list-filesystems.pl:61 ../tools/virt-list-partitions.pl:62
305 #: ../tools/virt-make-fs.pl:161 ../tools/virt-tar.pl:111
306 #: ../tools/virt-win-reg.pl:104
307 msgid "B<--help>"
308 msgstr "B<--help>"
309
310 #. type: textblock
311 #: ../align/virt-alignment-scan.pod:97 ../cat/virt-cat.pod:68
312 #: ../cat/virt-filesystems.pod:97 ../cat/virt-ls.pod:267 ../df/virt-df.pod:65
313 #: ../edit/virt-edit.pod:68 ../inspector/virt-inspector.pod:61
314 #: ../rescue/virt-rescue.pod:90 ../tools/virt-list-filesystems.pl:63
315 #: ../tools/virt-list-partitions.pl:64 ../tools/virt-make-fs.pl:163
316 #: ../tools/virt-tar.pl:113 ../tools/virt-win-reg.pl:106
317 msgid "Display brief help."
318 msgstr ""
319
320 #. type: =item
321 #: ../align/virt-alignment-scan.pod:99 ../cat/virt-cat.pod:70
322 #: ../cat/virt-filesystems.pod:99 ../cat/virt-ls.pod:269 ../df/virt-df.pod:67
323 #: ../edit/virt-edit.pod:70 ../inspector/virt-inspector.pod:63
324 #: ../rescue/virt-rescue.pod:92
325 #, fuzzy
326 #| msgid "B<-f file>"
327 msgid "B<-a> file"
328 msgstr "B<-f файл>"
329
330 #. type: =item
331 #: ../align/virt-alignment-scan.pod:101 ../cat/virt-cat.pod:72
332 #: ../cat/virt-filesystems.pod:101 ../cat/virt-ls.pod:271 ../df/virt-df.pod:69
333 #: ../edit/virt-edit.pod:72 ../inspector/virt-inspector.pod:65
334 #: ../rescue/virt-rescue.pod:94
335 #, fuzzy
336 #| msgid "B<--add image>"
337 msgid "B<--add> file"
338 msgstr "B<--add образ>"
339
340 #. type: textblock
341 #: ../align/virt-alignment-scan.pod:103
342 msgid "Add I<file> which should be a disk image from a virtual machine."
343 msgstr ""
344
345 #. type: textblock
346 #: ../align/virt-alignment-scan.pod:105 ../cat/virt-cat.pod:78
347 #: ../cat/virt-filesystems.pod:107 ../cat/virt-ls.pod:277 ../df/virt-df.pod:75
348 #: ../edit/virt-edit.pod:78 ../fish/guestfish.pod:174
349 #: ../fuse/guestmount.pod:93 ../inspector/virt-inspector.pod:71
350 #: ../rescue/virt-rescue.pod:100
351 msgid ""
352 "The format of the disk image is auto-detected.  To override this and force a "
353 "particular format use the I<--format=..> option."
354 msgstr ""
355
356 #. type: =item
357 #: ../align/virt-alignment-scan.pod:108 ../cat/virt-cat.pod:81
358 #: ../cat/virt-filesystems.pod:125 ../cat/virt-ls.pod:291 ../df/virt-df.pod:78
359 #: ../rescue/virt-rescue.pod:107
360 #, fuzzy
361 #| msgid "B<-c URI>"
362 msgid "B<-c> URI"
363 msgstr "B<-c адреса>"
364
365 #. type: =item
366 #: ../align/virt-alignment-scan.pod:110 ../cat/virt-cat.pod:83
367 #: ../cat/virt-filesystems.pod:127 ../cat/virt-ls.pod:293 ../df/virt-df.pod:80
368 #: ../rescue/virt-rescue.pod:109
369 #, fuzzy
370 #| msgid "B<--connect URI>"
371 msgid "B<--connect> URI"
372 msgstr "B<--connect адреса>"
373
374 #. type: textblock
375 #: ../align/virt-alignment-scan.pod:112 ../cat/virt-cat.pod:85
376 #: ../cat/virt-filesystems.pod:129 ../cat/virt-ls.pod:295 ../df/virt-df.pod:82
377 #: ../edit/virt-edit.pod:99 ../inspector/virt-inspector.pod:78
378 #: ../rescue/virt-rescue.pod:111 ../tools/virt-list-filesystems.pl:81
379 #: ../tools/virt-list-partitions.pl:82 ../tools/virt-tar.pl:131
380 #: ../tools/virt-win-reg.pl:132
381 msgid ""
382 "If using libvirt, connect to the given I<URI>.  If omitted, then we connect "
383 "to the default libvirt hypervisor."
384 msgstr ""
385
386 #. type: textblock
387 #: ../align/virt-alignment-scan.pod:115 ../cat/virt-cat.pod:88
388 #: ../cat/virt-filesystems.pod:132 ../cat/virt-ls.pod:298 ../df/virt-df.pod:85
389 #: ../rescue/virt-rescue.pod:114
390 msgid ""
391 "If you specify guest block devices directly (I<-a>), then libvirt is not "
392 "used at all."
393 msgstr ""
394
395 #. type: =item
396 #: ../align/virt-alignment-scan.pod:118 ../cat/virt-cat.pod:91
397 #: ../cat/virt-filesystems.pod:141 ../cat/virt-ls.pod:307 ../df/virt-df.pod:94
398 #: ../edit/virt-edit.pod:105 ../inspector/virt-inspector.pod:85
399 #: ../rescue/virt-rescue.pod:117
400 msgid "B<-d> guest"
401 msgstr ""
402
403 #. type: =item
404 #: ../align/virt-alignment-scan.pod:120 ../cat/virt-cat.pod:93
405 #: ../cat/virt-filesystems.pod:143 ../cat/virt-ls.pod:309 ../df/virt-df.pod:96
406 #: ../edit/virt-edit.pod:107 ../inspector/virt-inspector.pod:87
407 #: ../rescue/virt-rescue.pod:119
408 msgid "B<--domain> guest"
409 msgstr ""
410
411 #. type: textblock
412 #: ../align/virt-alignment-scan.pod:122 ../cat/virt-cat.pod:95
413 #: ../cat/virt-filesystems.pod:145 ../cat/virt-ls.pod:311 ../df/virt-df.pod:98
414 #: ../edit/virt-edit.pod:109 ../inspector/virt-inspector.pod:89
415 #: ../rescue/virt-rescue.pod:121
416 msgid ""
417 "Add all the disks from the named libvirt guest.  Domain UUIDs can be used "
418 "instead of names."
419 msgstr ""
420
421 #. type: =item
422 #: ../align/virt-alignment-scan.pod:125 ../cat/virt-cat.pod:105
423 #: ../cat/virt-filesystems.pod:170 ../cat/virt-ls.pod:328
424 #: ../df/virt-df.pod:101 ../fish/guestfish.pod:233 ../fuse/guestmount.pod:133
425 #: ../inspector/virt-inspector.pod:99 ../rescue/virt-rescue.pod:124
426 msgid "B<--format=raw|qcow2|..>"
427 msgstr "B<--format=raw|qcow2|..>"
428
429 #. type: =item
430 #: ../align/virt-alignment-scan.pod:127 ../cat/virt-cat.pod:107
431 #: ../cat/virt-filesystems.pod:172 ../cat/virt-ls.pod:330
432 #: ../df/virt-df.pod:103 ../edit/virt-edit.pod:134 ../fish/guestfish.pod:235
433 #: ../fuse/guestmount.pod:135 ../inspector/virt-inspector.pod:101
434 #: ../rescue/virt-rescue.pod:126
435 msgid "B<--format>"
436 msgstr "B<--format>"
437
438 #. type: textblock
439 #: ../align/virt-alignment-scan.pod:129 ../cat/virt-cat.pod:109
440 #: ../cat/virt-filesystems.pod:174 ../cat/virt-ls.pod:332
441 #: ../df/virt-df.pod:105 ../edit/virt-edit.pod:136 ../fish/guestfish.pod:237
442 #: ../fuse/guestmount.pod:137 ../rescue/virt-rescue.pod:128
443 msgid ""
444 "The default for the I<-a> option is to auto-detect the format of the disk "
445 "image.  Using this forces the disk format for I<-a> options which follow on "
446 "the command line.  Using I<--format> with no argument switches back to auto-"
447 "detection for subsequent I<-a> options."
448 msgstr ""
449
450 #. type: textblock
451 #: ../align/virt-alignment-scan.pod:134 ../cat/virt-cat.pod:114
452 #: ../cat/virt-filesystems.pod:179 ../cat/virt-ls.pod:337
453 #: ../df/virt-df.pod:110 ../edit/virt-edit.pod:141 ../fish/guestfish.pod:242
454 #: ../fish/guestfish.pod:673 ../inspector/virt-inspector.pod:336
455 #: ../rescue/virt-rescue.pod:133 ../src/guestfs.pod:2791
456 msgid "For example:"
457 msgstr "Приклад:"
458
459 #. type: verbatim
460 #: ../align/virt-alignment-scan.pod:136
461 #, fuzzy, no-wrap
462 #| msgid ""
463 #| " guestfish --format=raw -a disk.img\n"
464 #| "\n"
465 msgid ""
466 " virt-alignment-scan --format=raw -a disk.img\n"
467 "\n"
468 msgstr ""
469 " guestfish --format=raw -a disk.img\n"
470 "\n"
471
472 #. type: textblock
473 #: ../align/virt-alignment-scan.pod:138 ../cat/virt-cat.pod:118
474 #: ../cat/virt-filesystems.pod:183 ../cat/virt-ls.pod:341
475 #: ../df/virt-df.pod:114 ../edit/virt-edit.pod:145 ../fish/guestfish.pod:246
476 #: ../rescue/virt-rescue.pod:137
477 msgid "forces raw format (no auto-detection) for C<disk.img>."
478 msgstr ""
479
480 #. type: verbatim
481 #: ../align/virt-alignment-scan.pod:140
482 #, fuzzy, no-wrap
483 #| msgid ""
484 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
485 #| "\n"
486 msgid ""
487 " virt-alignment-scan --format=raw -a disk.img --format -a another.img\n"
488 "\n"
489 msgstr ""
490 " guestfish --format=raw -a disk.img --format -a another.img\n"
491 "\n"
492
493 #. type: textblock
494 #: ../align/virt-alignment-scan.pod:142 ../cat/virt-cat.pod:122
495 #: ../cat/virt-filesystems.pod:187 ../cat/virt-ls.pod:345
496 #: ../df/virt-df.pod:118 ../edit/virt-edit.pod:149 ../fish/guestfish.pod:250
497 #: ../rescue/virt-rescue.pod:141
498 msgid ""
499 "forces raw format (no auto-detection) for C<disk.img> and reverts to auto-"
500 "detection for C<another.img>."
501 msgstr ""
502
503 #. type: textblock
504 #: ../align/virt-alignment-scan.pod:145 ../cat/virt-cat.pod:125
505 #: ../cat/virt-filesystems.pod:190 ../cat/virt-ls.pod:348
506 #: ../df/virt-df.pod:121 ../edit/virt-edit.pod:152
507 #: ../rescue/virt-rescue.pod:144
508 msgid ""
509 "If you have untrusted raw-format guest disk images, you should use this "
510 "option to specify the disk format.  This avoids a possible security problem "
511 "with malicious guests (CVE-2010-3851)."
512 msgstr ""
513
514 #. type: =item
515 #: ../align/virt-alignment-scan.pod:149 ../resize/virt-resize.pod:414
516 #: ../sparsify/virt-sparsify.pod:153
517 msgid "B<-q>"
518 msgstr ""
519
520 #. type: =item
521 #: ../align/virt-alignment-scan.pod:151 ../resize/virt-resize.pod:416
522 #: ../sparsify/virt-sparsify.pod:155
523 #, fuzzy
524 #| msgid "B<--live>"
525 msgid "B<--quiet>"
526 msgstr "B<--live>"
527
528 #. type: textblock
529 #: ../align/virt-alignment-scan.pod:153
530 msgid ""
531 "Don't produce any output.  Just set the exit code (see L</EXIT STATUS> "
532 "below)."
533 msgstr ""
534
535 #. type: =item
536 #: ../align/virt-alignment-scan.pod:156 ../cat/virt-cat.pod:134
537 #: ../cat/virt-filesystems.pod:261 ../cat/virt-ls.pod:425
538 #: ../df/virt-df.pod:173 ../edit/virt-edit.pod:161 ../fish/guestfish.pod:390
539 #: ../fuse/guestmount.pod:257 ../inspector/virt-inspector.pod:119
540 #: ../rescue/virt-rescue.pod:182 ../sparsify/virt-sparsify.pod:159
541 msgid "B<-v>"
542 msgstr "B<-v>"
543
544 #. type: =item
545 #: ../align/virt-alignment-scan.pod:158 ../cat/virt-cat.pod:136
546 #: ../cat/virt-filesystems.pod:263 ../cat/virt-ls.pod:427
547 #: ../df/virt-df.pod:175 ../edit/virt-edit.pod:163 ../fish/guestfish.pod:392
548 #: ../fuse/guestmount.pod:259 ../inspector/virt-inspector.pod:121
549 #: ../rescue/virt-rescue.pod:184 ../sparsify/virt-sparsify.pod:161
550 msgid "B<--verbose>"
551 msgstr "B<--verbose>"
552
553 #. type: textblock
554 #: ../align/virt-alignment-scan.pod:160 ../cat/virt-cat.pod:138
555 #: ../cat/virt-filesystems.pod:265 ../cat/virt-ls.pod:429
556 #: ../df/virt-df.pod:177 ../edit/virt-edit.pod:165
557 #: ../inspector/virt-inspector.pod:123 ../rescue/virt-rescue.pod:186
558 #: ../sparsify/virt-sparsify.pod:163
559 msgid "Enable verbose messages for debugging."
560 msgstr ""
561
562 #. type: =item
563 #: ../align/virt-alignment-scan.pod:162 ../cat/virt-cat.pod:140
564 #: ../cat/virt-filesystems.pod:267 ../cat/virt-ls.pod:431
565 #: ../df/virt-df.pod:179 ../edit/virt-edit.pod:167 ../fish/guestfish.pod:397
566 #: ../fuse/guestmount.pod:263 ../inspector/virt-inspector.pod:125
567 #: ../rescue/virt-rescue.pod:188 ../resize/virt-resize.pod:484
568 #: ../sparsify/virt-sparsify.pod:165
569 msgid "B<-V>"
570 msgstr "B<-V>"
571
572 #. type: =item
573 #: ../align/virt-alignment-scan.pod:164 ../cat/virt-cat.pod:142
574 #: ../cat/virt-filesystems.pod:269 ../cat/virt-ls.pod:433
575 #: ../df/virt-df.pod:181 ../edit/virt-edit.pod:169 ../fish/guestfish.pod:399
576 #: ../fuse/guestmount.pod:265 ../inspector/virt-inspector.pod:127
577 #: ../rescue/virt-rescue.pod:190 ../resize/virt-resize.pod:486
578 #: ../sparsify/virt-sparsify.pod:167 ../tools/virt-list-filesystems.pl:69
579 #: ../tools/virt-list-partitions.pl:70 ../tools/virt-make-fs.pl:169
580 #: ../tools/virt-tar.pl:119 ../tools/virt-win-reg.pl:112
581 msgid "B<--version>"
582 msgstr "B<--version>"
583
584 #. type: textblock
585 #: ../align/virt-alignment-scan.pod:166 ../cat/virt-cat.pod:144
586 #: ../cat/virt-filesystems.pod:271 ../cat/virt-ls.pod:435
587 #: ../df/virt-df.pod:183 ../edit/virt-edit.pod:171
588 #: ../inspector/virt-inspector.pod:129 ../rescue/virt-rescue.pod:192
589 #: ../resize/virt-resize.pod:488 ../sparsify/virt-sparsify.pod:169
590 #: ../tools/virt-list-filesystems.pl:71 ../tools/virt-list-partitions.pl:72
591 #: ../tools/virt-make-fs.pl:171 ../tools/virt-tar.pl:121
592 #: ../tools/virt-win-reg.pl:114
593 msgid "Display version number and exit."
594 msgstr "Показати дані щодо версії і завершити роботу."
595
596 #. type: =item
597 #: ../align/virt-alignment-scan.pod:168 ../cat/virt-cat.pod:146
598 #: ../cat/virt-filesystems.pod:281 ../cat/virt-ls.pod:437
599 #: ../df/virt-df.pod:185 ../edit/virt-edit.pod:173 ../fish/guestfish.pod:412
600 #: ../fuse/guestmount.pod:278 ../inspector/virt-inspector.pod:131
601 #: ../rescue/virt-rescue.pod:203 ../sparsify/virt-sparsify.pod:171
602 #: ../tools/virt-tar.pl:158
603 msgid "B<-x>"
604 msgstr "B<-x>"
605
606 #. type: textblock
607 #: ../align/virt-alignment-scan.pod:170 ../cat/virt-cat.pod:148
608 #: ../cat/virt-filesystems.pod:283 ../cat/virt-ls.pod:439
609 #: ../df/virt-df.pod:187 ../edit/virt-edit.pod:175
610 #: ../inspector/virt-inspector.pod:133 ../rescue/virt-rescue.pod:205
611 #: ../sparsify/virt-sparsify.pod:173
612 msgid "Enable tracing of libguestfs API calls."
613 msgstr ""
614
615 #. type: =head1
616 #: ../align/virt-alignment-scan.pod:174 ../cat/virt-cat.pod:191
617 #: ../cat/virt-filesystems.pod:365 ../cat/virt-ls.pod:483
618 #: ../df/virt-df.pod:215 ../edit/virt-edit.pod:342
619 #: ../inspector/virt-inspector.pod:352 ../rescue/virt-rescue.pod:266
620 #: ../resize/virt-resize.pod:601 ../tools/virt-list-filesystems.pl:188
621 #: ../tools/virt-list-partitions.pl:258 ../tools/virt-make-fs.pl:532
622 #: ../tools/virt-tar.pl:289 ../tools/virt-win-reg.pl:733
623 msgid "SHELL QUOTING"
624 msgstr ""
625
626 #. type: textblock
627 #: ../align/virt-alignment-scan.pod:176 ../cat/virt-cat.pod:193
628 #: ../cat/virt-filesystems.pod:367 ../cat/virt-ls.pod:485
629 #: ../df/virt-df.pod:217 ../edit/virt-edit.pod:344
630 #: ../inspector/virt-inspector.pod:354 ../rescue/virt-rescue.pod:268
631 #: ../resize/virt-resize.pod:603 ../tools/virt-list-filesystems.pl:190
632 #: ../tools/virt-list-partitions.pl:260 ../tools/virt-make-fs.pl:534
633 #: ../tools/virt-tar.pl:291 ../tools/virt-win-reg.pl:741
634 msgid ""
635 "Libvirt guest names can contain arbitrary characters, some of which have "
636 "meaning to the shell such as C<#> and space.  You may need to quote or "
637 "escape these characters on the command line.  See the shell manual page L<sh"
638 "(1)> for details."
639 msgstr ""
640
641 #. type: =head1
642 #: ../align/virt-alignment-scan.pod:181 ../cat/virt-cat.pod:198
643 #: ../cat/virt-filesystems.pod:372 ../cat/virt-ls.pod:490
644 #: ../df/virt-df.pod:222 ../edit/virt-edit.pod:349 ../fish/guestfish.pod:1081
645 #: ../fuse/guestmount.pod:303 ../inspector/virt-inspector.pod:375
646 #: ../resize/virt-resize.pod:608 ../sparsify/virt-sparsify.pod:227
647 #: ../test-tool/libguestfs-test-tool.pod:90
648 msgid "EXIT STATUS"
649 msgstr ""
650
651 #. type: textblock
652 #: ../align/virt-alignment-scan.pod:183
653 msgid "This program returns:"
654 msgstr ""
655
656 #. type: =item
657 #: ../align/virt-alignment-scan.pod:187
658 msgid "code 0"
659 msgstr ""
660
661 #. type: textblock
662 #: ../align/virt-alignment-scan.pod:189
663 msgid ""
664 "successful exit, all partitions are aligned E<ge> 64K for best performance"
665 msgstr ""
666
667 #. type: =item
668 #: ../align/virt-alignment-scan.pod:191
669 msgid "code 1"
670 msgstr ""
671
672 #. type: textblock
673 #: ../align/virt-alignment-scan.pod:193
674 msgid "an error scanning the disk image or guest"
675 msgstr ""
676
677 #. type: =item
678 #: ../align/virt-alignment-scan.pod:195
679 msgid "code 2"
680 msgstr ""
681
682 #. type: textblock
683 #: ../align/virt-alignment-scan.pod:197
684 msgid ""
685 "successful exit, some partitions have alignment E<lt> 64K which can result "
686 "in poor performance on high end network storage"
687 msgstr ""
688
689 #. type: =item
690 #: ../align/virt-alignment-scan.pod:200
691 msgid "code 3"
692 msgstr ""
693
694 #. type: textblock
695 #: ../align/virt-alignment-scan.pod:202
696 msgid ""
697 "successful exit, some partitions have alignment E<lt> 4K which can result in "
698 "poor performance on most hypervisors"
699 msgstr ""
700
701 #. type: =head1
702 #: ../align/virt-alignment-scan.pod:207 ../cat/virt-cat.pod:203
703 #: ../cat/virt-filesystems.pod:377 ../cat/virt-ls.pod:495
704 #: ../df/virt-df.pod:227 ../edit/virt-edit.pod:354
705 #: ../erlang/examples/guestfs-erlang.pod:97
706 #: ../examples/guestfs-examples.pod:33 ../examples/guestfs-recipes.pod:384
707 #: ../fish/guestfish.pod:1235 ../fish/virt-copy-in.pod:50
708 #: ../fish/virt-copy-out.pod:39 ../fish/virt-tar-in.pod:47
709 #: ../fish/virt-tar-out.pod:41 ../fuse/guestmount.pod:308
710 #: ../inspector/virt-inspector.pod:380 ../java/examples/guestfs-java.pod:45
711 #: ../ocaml/examples/guestfs-ocaml.pod:78 ../perl/examples/guestfs-perl.pod:39
712 #: ../python/examples/guestfs-python.pod:42 ../rescue/virt-rescue.pod:288
713 #: ../resize/virt-resize.pod:613 ../ruby/examples/guestfs-ruby.pod:36
714 #: ../sparsify/virt-sparsify.pod:251 ../src/guestfs.pod:3179
715 #: ../test-tool/libguestfs-test-tool.pod:100
716 #: ../tools/virt-list-filesystems.pl:195 ../tools/virt-list-partitions.pl:265
717 #: ../tools/virt-make-fs.pl:539 ../tools/virt-tar.pl:296
718 #: ../tools/virt-win-reg.pl:746
719 msgid "SEE ALSO"
720 msgstr "ТАКОЖ ПЕРЕГЛЯНЬТЕ"
721
722 #. type: textblock
723 #: ../align/virt-alignment-scan.pod:209
724 #, fuzzy
725 #| msgid ""
726 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
727 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
728 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
729 msgid ""
730 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://libguestfs."
731 "org/>."
732 msgstr ""
733 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
734 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
735 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
736
737 #. type: =head1
738 #: ../align/virt-alignment-scan.pod:214 ../cat/virt-cat.pod:212
739 #: ../cat/virt-filesystems.pod:388 ../cat/virt-ls.pod:507
740 #: ../df/virt-df.pod:235 ../edit/virt-edit.pod:368
741 #: ../rescue/virt-rescue.pod:296 ../resize/virt-resize.pod:635
742 #: ../sparsify/virt-sparsify.pod:264 ../tools/virt-list-filesystems.pl:208
743 #: ../tools/virt-list-partitions.pl:277 ../tools/virt-make-fs.pl:564
744 #: ../tools/virt-tar.pl:311 ../tools/virt-win-reg.pl:772
745 msgid "AUTHOR"
746 msgstr "АВТОР"
747
748 #. type: textblock
749 #: ../align/virt-alignment-scan.pod:216 ../cat/virt-cat.pod:214
750 #: ../cat/virt-filesystems.pod:390 ../cat/virt-ls.pod:509
751 #: ../df/virt-df.pod:237 ../edit/virt-edit.pod:370
752 #: ../inspector/virt-inspector.pod:395 ../rescue/virt-rescue.pod:298
753 #: ../resize/virt-resize.pod:637 ../sparsify/virt-sparsify.pod:266
754 #: ../tools/virt-list-filesystems.pl:210 ../tools/virt-list-partitions.pl:279
755 #: ../tools/virt-make-fs.pl:566 ../tools/virt-tar.pl:313
756 #: ../tools/virt-win-reg.pl:774
757 msgid "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
758 msgstr "Richard W.M. Jones L<http://people.redhat.com/~rjones/>"
759
760 #. type: =head1
761 #: ../align/virt-alignment-scan.pod:218 ../cat/virt-cat.pod:216
762 #: ../cat/virt-filesystems.pod:392 ../cat/virt-ls.pod:511
763 #: ../df/virt-df.pod:239 ../edit/virt-edit.pod:372
764 #: ../erlang/examples/guestfs-erlang.pod:114
765 #: ../examples/guestfs-examples.pod:49 ../examples/guestfs-recipes.pod:401
766 #: ../fish/guestfish.pod:1266 ../fish/virt-copy-in.pod:64
767 #: ../fish/virt-copy-out.pod:53 ../fish/virt-tar-in.pod:62
768 #: ../fish/virt-tar-out.pod:55 ../fuse/guestmount.pod:323
769 #: ../inspector/virt-inspector.pod:403 ../java/examples/guestfs-java.pod:62
770 #: ../ocaml/examples/guestfs-ocaml.pod:95 ../perl/examples/guestfs-perl.pod:56
771 #: ../python/examples/guestfs-python.pod:58 ../rescue/virt-rescue.pod:300
772 #: ../resize/virt-resize.pod:639 ../ruby/examples/guestfs-ruby.pod:52
773 #: ../sparsify/virt-sparsify.pod:268 ../src/guestfs.pod:3259
774 #: ../test-tool/libguestfs-test-tool.pod:110
775 #: ../tools/virt-list-filesystems.pl:212 ../tools/virt-list-partitions.pl:281
776 #: ../tools/virt-make-fs.pl:568 ../tools/virt-tar.pl:315
777 #: ../tools/virt-win-reg.pl:776
778 msgid "COPYRIGHT"
779 msgstr "АВТОРСЬКІ ПРАВА"
780
781 #. type: textblock
782 #: ../align/virt-alignment-scan.pod:220 ../sparsify/virt-sparsify.pod:270
783 #, fuzzy
784 #| msgid "Copyright (C) 2009 Red Hat Inc."
785 msgid "Copyright (C) 2011 Red Hat Inc."
786 msgstr "© Red Hat Inc., 2009"
787
788 #. type: textblock
789 #: ../align/virt-alignment-scan.pod:222 ../cat/virt-cat.pod:220
790 #: ../cat/virt-filesystems.pod:396 ../cat/virt-ls.pod:515
791 #: ../df/virt-df.pod:243 ../edit/virt-edit.pod:376 ../fish/guestfish.pod:1271
792 #: ../fish/virt-copy-in.pod:69 ../fish/virt-copy-out.pod:58
793 #: ../fish/virt-tar-in.pod:67 ../fish/virt-tar-out.pod:60
794 #: ../fuse/guestmount.pod:328 ../inspector/virt-inspector.pod:407
795 #: ../rescue/virt-rescue.pod:304 ../resize/virt-resize.pod:643
796 #: ../sparsify/virt-sparsify.pod:272 ../test-tool/libguestfs-test-tool.pod:115
797 #: ../tools/virt-list-filesystems.pl:216 ../tools/virt-list-partitions.pl:285
798 #: ../tools/virt-make-fs.pl:572 ../tools/virt-tar.pl:319
799 #: ../tools/virt-win-reg.pl:780
800 msgid ""
801 "This program is free software; you can redistribute it and/or modify it "
802 "under the terms of the GNU General Public License as published by the Free "
803 "Software Foundation; either version 2 of the License, or (at your option) "
804 "any later version."
805 msgstr ""
806
807 #. type: textblock
808 #: ../align/virt-alignment-scan.pod:227 ../cat/virt-cat.pod:225
809 #: ../cat/virt-filesystems.pod:401 ../cat/virt-ls.pod:520
810 #: ../df/virt-df.pod:248 ../edit/virt-edit.pod:381 ../fish/guestfish.pod:1276
811 #: ../fish/virt-copy-in.pod:74 ../fish/virt-copy-out.pod:63
812 #: ../fish/virt-tar-in.pod:72 ../fish/virt-tar-out.pod:65
813 #: ../fuse/guestmount.pod:333 ../inspector/virt-inspector.pod:412
814 #: ../rescue/virt-rescue.pod:309 ../resize/virt-resize.pod:648
815 #: ../sparsify/virt-sparsify.pod:277 ../test-tool/libguestfs-test-tool.pod:120
816 #: ../tools/virt-list-filesystems.pl:221 ../tools/virt-list-partitions.pl:290
817 #: ../tools/virt-make-fs.pl:577 ../tools/virt-tar.pl:324
818 #: ../tools/virt-win-reg.pl:785
819 msgid ""
820 "This program is distributed in the hope that it will be useful, but WITHOUT "
821 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
822 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU General Public License for "
823 "more details."
824 msgstr ""
825 "Ця програма поширюється у сподіванні, що вона буде корисною, але БЕЗ БУДЬ-"
826 "ЯКИХ ГАРАНТІЙНИХ ЗОБОВ’ЯЗАНЬ; навіть без очевидної гарантії ПРАЦЕЗДАТНОСТІ "
827 "або ПРИДАТНОСТІ ДЛЯ ВИКОРИСТАННЯ З ПЕВНОЮ МЕТОЮ. Докладніше про це можна "
828 "дізнатися з GNU General Public License."
829
830 #. type: textblock
831 #: ../align/virt-alignment-scan.pod:232 ../cat/virt-cat.pod:230
832 #: ../cat/virt-filesystems.pod:406 ../cat/virt-ls.pod:525
833 #: ../df/virt-df.pod:253 ../edit/virt-edit.pod:386 ../fish/guestfish.pod:1281
834 #: ../fish/virt-copy-in.pod:79 ../fish/virt-copy-out.pod:68
835 #: ../fish/virt-tar-in.pod:77 ../fish/virt-tar-out.pod:70
836 #: ../fuse/guestmount.pod:338 ../inspector/virt-inspector.pod:417
837 #: ../rescue/virt-rescue.pod:314 ../resize/virt-resize.pod:653
838 #: ../sparsify/virt-sparsify.pod:282 ../test-tool/libguestfs-test-tool.pod:125
839 #: ../tools/virt-list-filesystems.pl:226 ../tools/virt-list-partitions.pl:295
840 #: ../tools/virt-make-fs.pl:582 ../tools/virt-tar.pl:329
841 #: ../tools/virt-win-reg.pl:790
842 msgid ""
843 "You should have received a copy of the GNU General Public License along with "
844 "this program; if not, write to the Free Software Foundation, Inc., 675 Mass "
845 "Ave, Cambridge, MA 02139, USA."
846 msgstr ""
847
848 #. type: textblock
849 #: ../cat/virt-cat.pod:5
850 msgid "virt-cat - Display files in a virtual machine"
851 msgstr ""
852
853 #. type: verbatim
854 #: ../cat/virt-cat.pod:9
855 #, fuzzy, no-wrap
856 #| msgid ""
857 #| " virt-list-partitions [--options] domname\n"
858 #| "\n"
859 msgid ""
860 " virt-cat [--options] -d domname file [file ...]\n"
861 "\n"
862 msgstr ""
863 " virt-list-partitions [--параметри] назва_домену\n"
864 "\n"
865
866 #. type: verbatim
867 #: ../cat/virt-cat.pod:11
868 #, fuzzy, no-wrap
869 #| msgid ""
870 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
871 #| "\n"
872 msgid ""
873 " virt-cat [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
874 "\n"
875 msgstr ""
876 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
877 "\n"
878
879 #. type: textblock
880 #: ../cat/virt-cat.pod:13 ../edit/virt-edit.pod:15
881 #: ../inspector/virt-inspector.pod:13
882 msgid "Old-style:"
883 msgstr ""
884
885 #. type: verbatim
886 #: ../cat/virt-cat.pod:15
887 #, no-wrap
888 msgid ""
889 " virt-cat domname file\n"
890 "\n"
891 msgstr ""
892
893 #. type: verbatim
894 #: ../cat/virt-cat.pod:17
895 #, no-wrap
896 msgid ""
897 " virt-cat disk.img file\n"
898 "\n"
899 msgstr ""
900
901 #. type: textblock
902 #: ../cat/virt-cat.pod:21
903 msgid ""
904 "C<virt-cat> is a command line tool to display the contents of C<file> where "
905 "C<file> exists in the named virtual machine (or disk image)."
906 msgstr ""
907
908 #. type: textblock
909 #: ../cat/virt-cat.pod:24
910 msgid ""
911 "Multiple filenames can be given, in which case they are concatenated "
912 "together.  Each filename must be a full path, starting at the root directory "
913 "(starting with '/')."
914 msgstr ""
915
916 #. type: textblock
917 #: ../cat/virt-cat.pod:28
918 msgid ""
919 "C<virt-cat> can be used to quickly view a file.  To edit a file, use C<virt-"
920 "edit>.  For more complex cases you should look at the L<guestfish(1)> tool "
921 "(see L</USING GUESTFISH> below)."
922 msgstr ""
923
924 #. type: =head1
925 #: ../cat/virt-cat.pod:32 ../cat/virt-ls.pod:35 ../df/virt-df.pod:43
926 #: ../edit/virt-edit.pod:44 ../fish/guestfish.pod:41
927 #: ../fish/guestfish.pod:1018 ../fish/virt-copy-in.pod:29
928 #: ../fish/virt-copy-out.pod:21 ../fish/virt-tar-in.pod:30
929 #: ../fish/virt-tar-out.pod:24 ../fuse/guestmount.pod:39
930 #: ../resize/virt-resize.pod:27 ../sparsify/virt-sparsify.pod:75
931 #: ../tools/virt-tar.pl:50
932 msgid "EXAMPLES"
933 msgstr "ПРИКЛАДИ"
934
935 #. type: textblock
936 #: ../cat/virt-cat.pod:34
937 msgid ""
938 "Display C</etc/fstab> file from inside the libvirt VM called C<mydomain>:"
939 msgstr ""
940
941 #. type: verbatim
942 #: ../cat/virt-cat.pod:37
943 #, no-wrap
944 msgid ""
945 " virt-cat -d mydomain /etc/fstab\n"
946 "\n"
947 msgstr ""
948
949 #. type: textblock
950 #: ../cat/virt-cat.pod:39
951 msgid "List syslog messages from a VM disk image file:"
952 msgstr ""
953
954 #. type: verbatim
955 #: ../cat/virt-cat.pod:41
956 #, no-wrap
957 msgid ""
958 " virt-cat -a disk.img /var/log/messages | tail\n"
959 "\n"
960 msgstr ""
961
962 #. type: textblock
963 #: ../cat/virt-cat.pod:43
964 msgid "Find out what DHCP IP address a VM acquired:"
965 msgstr ""
966
967 #. type: verbatim
968 #: ../cat/virt-cat.pod:45
969 #, no-wrap
970 msgid ""
971 " virt-cat -d mydomain /var/log/messages | \\\n"
972 "   grep 'dhclient: bound to' | tail\n"
973 "\n"
974 msgstr ""
975
976 #. type: textblock
977 #: ../cat/virt-cat.pod:48
978 msgid "Find out what packages were recently installed:"
979 msgstr ""
980
981 #. type: verbatim
982 #: ../cat/virt-cat.pod:50
983 #, no-wrap
984 msgid ""
985 " virt-cat -d mydomain /var/log/yum.log | tail\n"
986 "\n"
987 msgstr ""
988
989 #. type: textblock
990 #: ../cat/virt-cat.pod:52
991 msgid "Find out who is logged on inside a virtual machine:"
992 msgstr ""
993
994 #. type: verbatim
995 #: ../cat/virt-cat.pod:54
996 #, no-wrap
997 msgid ""
998 " virt-cat -d mydomain /var/run/utmp > /tmp/utmp\n"
999 " who /tmp/utmp\n"
1000 "\n"
1001 msgstr ""
1002
1003 #. type: textblock
1004 #: ../cat/virt-cat.pod:57
1005 msgid "or who was logged on:"
1006 msgstr ""
1007
1008 #. type: verbatim
1009 #: ../cat/virt-cat.pod:59
1010 #, no-wrap
1011 msgid ""
1012 " virt-cat -d mydomain /var/log/wtmp > /tmp/wtmp\n"
1013 " last -f /tmp/wtmp\n"
1014 "\n"
1015 msgstr ""
1016
1017 #. type: textblock
1018 #: ../cat/virt-cat.pod:74 ../cat/virt-filesystems.pod:103
1019 #: ../cat/virt-ls.pod:273 ../df/virt-df.pod:71 ../edit/virt-edit.pod:74
1020 #: ../inspector/virt-inspector.pod:67 ../rescue/virt-rescue.pod:96
1021 msgid ""
1022 "Add I<file> which should be a disk image from a virtual machine.  If the "
1023 "virtual machine has multiple block devices, you must supply all of them with "
1024 "separate I<-a> options."
1025 msgstr ""
1026
1027 #. type: =item
1028 #: ../cat/virt-cat.pod:98 ../cat/virt-filesystems.pod:148
1029 #: ../cat/virt-ls.pod:314 ../edit/virt-edit.pod:112 ../fish/guestfish.pod:217
1030 #: ../fuse/guestmount.pod:126 ../inspector/virt-inspector.pod:92
1031 msgid "B<--echo-keys>"
1032 msgstr "B<--echo-keys>"
1033
1034 #. type: textblock
1035 #: ../cat/virt-cat.pod:100
1036 msgid ""
1037 "When prompting for keys and passphrases, virt-cat normally turns echoing off "
1038 "so you cannot see what you are typing.  If you are not worried about Tempest "
1039 "attacks and there is no one else in the room you can specify this flag to "
1040 "see what you are typing."
1041 msgstr ""
1042
1043 #. type: verbatim
1044 #: ../cat/virt-cat.pod:116
1045 #, fuzzy, no-wrap
1046 #| msgid ""
1047 #| " guestfish --format=raw -a disk.img\n"
1048 #| "\n"
1049 msgid ""
1050 " virt-cat --format=raw -a disk.img file\n"
1051 "\n"
1052 msgstr ""
1053 " guestfish --format=raw -a disk.img\n"
1054 "\n"
1055
1056 #. type: verbatim
1057 #: ../cat/virt-cat.pod:120
1058 #, fuzzy, no-wrap
1059 #| msgid ""
1060 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1061 #| "\n"
1062 msgid ""
1063 " virt-cat --format=raw -a disk.img --format -a another.img file\n"
1064 "\n"
1065 msgstr ""
1066 " guestfish --format=raw -a disk.img --format -a another.img\n"
1067 "\n"
1068
1069 #. type: =item
1070 #: ../cat/virt-cat.pod:129 ../cat/virt-filesystems.pod:200
1071 #: ../cat/virt-ls.pod:361 ../edit/virt-edit.pod:156 ../fish/guestfish.pod:289
1072 #: ../fuse/guestmount.pod:163 ../inspector/virt-inspector.pod:114
1073 msgid "B<--keys-from-stdin>"
1074 msgstr "B<--keys-from-stdin>"
1075
1076 #. type: textblock
1077 #: ../cat/virt-cat.pod:131 ../cat/virt-filesystems.pod:202
1078 #: ../cat/virt-ls.pod:363 ../edit/virt-edit.pod:158 ../fish/guestfish.pod:291
1079 #: ../fuse/guestmount.pod:165 ../inspector/virt-inspector.pod:116
1080 msgid ""
1081 "Read key or passphrase parameters from stdin.  The default is to try to read "
1082 "passphrases from the user by opening C</dev/tty>."
1083 msgstr ""
1084
1085 #. type: =head1
1086 #: ../cat/virt-cat.pod:152 ../cat/virt-ls.pod:443 ../edit/virt-edit.pod:179
1087 #: ../inspector/virt-inspector.pod:137 ../rescue/virt-rescue.pod:209
1088 msgid "OLD-STYLE COMMAND LINE ARGUMENTS"
1089 msgstr ""
1090
1091 #. type: textblock
1092 #: ../cat/virt-cat.pod:154
1093 msgid "Previous versions of virt-cat allowed you to write either:"
1094 msgstr ""
1095
1096 #. type: verbatim
1097 #: ../cat/virt-cat.pod:156
1098 #, fuzzy, no-wrap
1099 #| msgid ""
1100 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1101 #| "\n"
1102 msgid ""
1103 " virt-cat disk.img [disk.img ...] file\n"
1104 "\n"
1105 msgstr ""
1106 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1107 "\n"
1108
1109 #. type: textblock
1110 #: ../cat/virt-cat.pod:158 ../cat/virt-ls.pod:449 ../edit/virt-edit.pod:185
1111 #: ../inspector/virt-inspector.pod:143 ../rescue/virt-rescue.pod:215
1112 #, fuzzy
1113 #| msgid "or:"
1114 msgid "or"
1115 msgstr "або:"
1116
1117 #. type: verbatim
1118 #: ../cat/virt-cat.pod:160
1119 #, no-wrap
1120 msgid ""
1121 " virt-cat guestname file\n"
1122 "\n"
1123 msgstr ""
1124
1125 #. type: textblock
1126 #: ../cat/virt-cat.pod:162 ../cat/virt-ls.pod:453 ../edit/virt-edit.pod:189
1127 #: ../inspector/virt-inspector.pod:147 ../rescue/virt-rescue.pod:219
1128 msgid ""
1129 "whereas in this version you should use I<-a> or I<-d> respectively to avoid "
1130 "the confusing case where a disk image might have the same name as a guest."
1131 msgstr ""
1132
1133 #. type: textblock
1134 #: ../cat/virt-cat.pod:166 ../cat/virt-ls.pod:457 ../edit/virt-edit.pod:193
1135 #: ../inspector/virt-inspector.pod:151 ../rescue/virt-rescue.pod:223
1136 msgid "For compatibility the old style is still supported."
1137 msgstr ""
1138
1139 #. type: =head1
1140 #: ../cat/virt-cat.pod:168 ../edit/virt-edit.pod:297
1141 msgid "USING GUESTFISH"
1142 msgstr ""
1143
1144 #. type: textblock
1145 #: ../cat/virt-cat.pod:170
1146 msgid ""
1147 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
1148 "C<virt-cat> doesn't work."
1149 msgstr ""
1150
1151 #. type: textblock
1152 #: ../cat/virt-cat.pod:173
1153 msgid "Using C<virt-cat> is approximately equivalent to doing:"
1154 msgstr ""
1155
1156 #. type: verbatim
1157 #: ../cat/virt-cat.pod:175
1158 #, fuzzy, no-wrap
1159 #| msgid ""
1160 #| " guestfish --ro -d myguest -i\n"
1161 #| "\n"
1162 msgid ""
1163 " guestfish --ro -i -d domname download file -\n"
1164 "\n"
1165 msgstr ""
1166 " guestfish --ro -d myguest -i\n"
1167 "\n"
1168
1169 #. type: textblock
1170 #: ../cat/virt-cat.pod:177
1171 msgid ""
1172 "where C<domname> is the name of the libvirt guest, and C<file> is the full "
1173 "path to the file.  Note the final C<-> (meaning \"output to stdout\")."
1174 msgstr ""
1175
1176 #. type: textblock
1177 #: ../cat/virt-cat.pod:181
1178 msgid ""
1179 "The command above uses libguestfs's guest inspection feature and so does not "
1180 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
1181 "disk images that don't contain guests.  To display a file from a disk image "
1182 "directly, use:"
1183 msgstr ""
1184
1185 #. type: verbatim
1186 #: ../cat/virt-cat.pod:186
1187 #, fuzzy, no-wrap
1188 #| msgid ""
1189 #| " guestfish [--ro] -i disk.img\n"
1190 #| "\n"
1191 msgid ""
1192 " guestfish --ro -a disk.img -m /dev/sda1 download file -\n"
1193 "\n"
1194 msgstr ""
1195 " guestfish [--ro] -i disk.img\n"
1196 "\n"
1197
1198 #. type: textblock
1199 #: ../cat/virt-cat.pod:188
1200 msgid ""
1201 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
1202 "the disk image, and C<file> is the full path to the file."
1203 msgstr ""
1204
1205 #. type: textblock
1206 #: ../cat/virt-cat.pod:200 ../cat/virt-filesystems.pod:374
1207 #: ../cat/virt-ls.pod:492 ../df/virt-df.pod:224 ../edit/virt-edit.pod:351
1208 #: ../fuse/guestmount.pod:305 ../inspector/virt-inspector.pod:377
1209 #: ../resize/virt-resize.pod:610 ../sparsify/virt-sparsify.pod:229
1210 msgid ""
1211 "This program returns 0 if successful, or non-zero if there was an error."
1212 msgstr ""
1213
1214 #. type: textblock
1215 #: ../cat/virt-cat.pod:205
1216 #, fuzzy
1217 #| msgid ""
1218 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
1219 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
1220 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1221 msgid ""
1222 "L<guestfs(3)>, L<guestfish(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, L<virt-"
1223 "tar-out(1)>, L<http://libguestfs.org/>."
1224 msgstr ""
1225 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
1226 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
1227 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1228
1229 #. type: textblock
1230 #: ../cat/virt-cat.pod:218 ../inspector/virt-inspector.pod:405
1231 #: ../resize/virt-resize.pod:641
1232 #, fuzzy
1233 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
1234 msgid "Copyright (C) 2010-2011 Red Hat Inc."
1235 msgstr "© Red Hat Inc., 2009–2010"
1236
1237 #. type: textblock
1238 #: ../cat/virt-filesystems.pod:5
1239 msgid ""
1240 "virt-filesystems - List filesystems, partitions, block devices, LVM in a "
1241 "virtual machine or disk image"
1242 msgstr ""
1243
1244 #. type: verbatim
1245 #: ../cat/virt-filesystems.pod:9
1246 #, fuzzy, no-wrap
1247 #| msgid ""
1248 #| " virt-list-partitions [--options] domname\n"
1249 #| "\n"
1250 msgid ""
1251 " virt-filesystems [--options] -d domname\n"
1252 "\n"
1253 msgstr ""
1254 " virt-list-partitions [--параметри] назва_домену\n"
1255 "\n"
1256
1257 #. type: verbatim
1258 #: ../cat/virt-filesystems.pod:11
1259 #, fuzzy, no-wrap
1260 #| msgid ""
1261 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1262 #| "\n"
1263 msgid ""
1264 " virt-filesystems [--options] -a disk.img [-a disk.img ...]\n"
1265 "\n"
1266 msgstr ""
1267 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1268 "\n"
1269
1270 #. type: textblock
1271 #: ../cat/virt-filesystems.pod:15
1272 msgid ""
1273 "This tool allows you to discover filesystems, partitions, logical volumes, "
1274 "and their sizes in a disk image or virtual machine.  It is a replacement for "
1275 "L<virt-list-filesystems(1)> and L<virt-list-partitions(1)>."
1276 msgstr ""
1277
1278 #. type: textblock
1279 #: ../cat/virt-filesystems.pod:20
1280 msgid ""
1281 "One use for this tool is from shell scripts to iterate over all filesystems "
1282 "from a disk image:"
1283 msgstr ""
1284
1285 #. type: verbatim
1286 #: ../cat/virt-filesystems.pod:23
1287 #, no-wrap
1288 msgid ""
1289 " for fs in $(virt-filesystems -a disk.img); do\n"
1290 "   # ...\n"
1291 " done\n"
1292 "\n"
1293 msgstr ""
1294
1295 #. type: textblock
1296 #: ../cat/virt-filesystems.pod:27
1297 msgid ""
1298 "Another use is to list partitions before using another tool to modify those "
1299 "partitions (such as L<virt-resize(1)>).  If you are curious about what an "
1300 "unknown disk image contains, use this tool along with L<virt-inspector(1)>."
1301 msgstr ""
1302
1303 #. type: textblock
1304 #: ../cat/virt-filesystems.pod:32
1305 msgid ""
1306 "Various command line options control what this program displays.  You need "
1307 "to give either I<-a> or I<-d> options to specify the disk image or libvirt "
1308 "guest respectively.  If you just specify that then the program shows "
1309 "filesystems found, one per line, like this:"
1310 msgstr ""
1311
1312 #. type: verbatim
1313 #: ../cat/virt-filesystems.pod:37
1314 #, no-wrap
1315 msgid ""
1316 " $ virt-filesystems -a disk.img\n"
1317 " /dev/sda1\n"
1318 " /dev/vg_guest/lv_root\n"
1319 "\n"
1320 msgstr ""
1321
1322 #. type: textblock
1323 #: ../cat/virt-filesystems.pod:41
1324 msgid ""
1325 "If you add I<-l> or I<--long> then the output includes extra information:"
1326 msgstr ""
1327
1328 #. type: verbatim
1329 #: ../cat/virt-filesystems.pod:44
1330 #, no-wrap
1331 msgid ""
1332 " $ virt-filesystems -a disk.img -l\n"
1333 " Name                   Type         VFS   Label  Size\n"
1334 " /dev/sda1              filesystem   ext4  boot   524288000\n"
1335 " /dev/vg_guest/lv_root  filesystem   ext4  root   10212081664\n"
1336 "\n"
1337 msgstr ""
1338
1339 #. type: textblock
1340 #: ../cat/virt-filesystems.pod:49
1341 msgid ""
1342 "If you add I<--extra> then non-mountable (swap, unknown) filesystems are "
1343 "shown as well:"
1344 msgstr ""
1345
1346 #. type: verbatim
1347 #: ../cat/virt-filesystems.pod:52
1348 #, no-wrap
1349 msgid ""
1350 " $ virt-filesystems -a disk.img --extra\n"
1351 " /dev/sda1\n"
1352 " /dev/vg_guest/lv_root\n"
1353 " /dev/vg_guest/lv_swap\n"
1354 " /dev/vg_guest/lv_data\n"
1355 "\n"
1356 msgstr ""
1357
1358 #. type: textblock
1359 #: ../cat/virt-filesystems.pod:58
1360 msgid ""
1361 "If you add I<--partitions> then partitions are shown instead of filesystems:"
1362 msgstr ""
1363
1364 #. type: verbatim
1365 #: ../cat/virt-filesystems.pod:60
1366 #, no-wrap
1367 msgid ""
1368 " $ virt-filesystems -a disk.img --partitions\n"
1369 " /dev/sda1\n"
1370 " /dev/sda2\n"
1371 "\n"
1372 msgstr ""
1373
1374 #. type: textblock
1375 #: ../cat/virt-filesystems.pod:64
1376 msgid ""
1377 "Similarly you can use I<--logical-volumes>, I<--volume-groups>, I<--physical-"
1378 "volumes>, I<--block-devices> to list those items."
1379 msgstr ""
1380
1381 #. type: textblock
1382 #: ../cat/virt-filesystems.pod:67
1383 msgid ""
1384 "You can use these options in combination as well (if you want a combination "
1385 "including filesystems, you have to add I<--filesystems>).  Notice that some "
1386 "items fall into several categories (eg. C</dev/sda1> might be both a "
1387 "partition and a filesystem).  These items are listed several times.  To get "
1388 "a list which includes absolutely everything that virt-filesystems knows "
1389 "about, use the I<--all> option."
1390 msgstr ""
1391
1392 #. type: textblock
1393 #: ../cat/virt-filesystems.pod:74
1394 msgid ""
1395 "UUIDs (because they are quite long) are not shown by default.  Add the I<--"
1396 "uuid> option to display device and filesystem UUIDs in the long output."
1397 msgstr ""
1398
1399 #. type: textblock
1400 #: ../cat/virt-filesystems.pod:78
1401 msgid ""
1402 "I<--all --long --uuid> is a useful combination to display all possible "
1403 "information about everything."
1404 msgstr ""
1405
1406 #. type: verbatim
1407 #: ../cat/virt-filesystems.pod:81
1408 #, no-wrap
1409 msgid ""
1410 " $ virt-filesystems -a win.img --all --long --uuid -h\n"
1411 " Name      Type       VFS  Label           Size Parent   UUID\n"
1412 " /dev/sda1 filesystem ntfs System Reserved 100M -        F81C92571C92112C\n"
1413 " /dev/sda2 filesystem ntfs -               20G  -        F2E8996AE8992E3B\n"
1414 " /dev/sda1 partition  -    -               100M /dev/sda -\n"
1415 " /dev/sda2 partition  -    -               20G  /dev/sda -\n"
1416 " /dev/sda  device     -    -               20G  -        -\n"
1417 "\n"
1418 msgstr ""
1419
1420 #. type: textblock
1421 #: ../cat/virt-filesystems.pod:89
1422 msgid ""
1423 "For machine-readable output, use I<--csv> to get Comma-Separated Values."
1424 msgstr ""
1425
1426 #. type: =item
1427 #: ../cat/virt-filesystems.pod:110 ../tools/virt-list-filesystems.pl:121
1428 #, fuzzy
1429 #| msgid "B<--help>"
1430 msgid "B<--all>"
1431 msgstr "B<--help>"
1432
1433 #. type: textblock
1434 #: ../cat/virt-filesystems.pod:112
1435 msgid ""
1436 "Display everything.  This is currently the same as specifying these options: "
1437 "I<--filesystems>, I<--extra>, I<--partitions>, I<--block-devices>, I<--"
1438 "logical-volumes>, I<--volume-groups>, I<--physical-volumes>.  (More may be "
1439 "added to this list in future)."
1440 msgstr ""
1441
1442 #. type: textblock
1443 #: ../cat/virt-filesystems.pod:117
1444 #, fuzzy
1445 #| msgid "See also L</is-lv>."
1446 msgid "See also I<--long>."
1447 msgstr "Див. також L</is-lv>."
1448
1449 #. type: =item
1450 #: ../cat/virt-filesystems.pod:119
1451 #, fuzzy
1452 #| msgid "B<--live>"
1453 msgid "B<--blkdevs>"
1454 msgstr "B<--live>"
1455
1456 #. type: =item
1457 #: ../cat/virt-filesystems.pod:121
1458 #, fuzzy
1459 #| msgid "is-blockdev"
1460 msgid "B<--block-devices>"
1461 msgstr "is-blockdev"
1462
1463 #. type: textblock
1464 #: ../cat/virt-filesystems.pod:123
1465 #, fuzzy
1466 #| msgid "is-blockdev"
1467 msgid "Display block devices."
1468 msgstr "is-blockdev"
1469
1470 #. type: =item
1471 #: ../cat/virt-filesystems.pod:135 ../cat/virt-ls.pod:301 ../df/virt-df.pod:88
1472 #, fuzzy
1473 #| msgid "B<--csh>"
1474 msgid "B<--csv>"
1475 msgstr "B<--csh>"
1476
1477 #. type: textblock
1478 #: ../cat/virt-filesystems.pod:137 ../cat/virt-ls.pod:303 ../df/virt-df.pod:90
1479 msgid ""
1480 "Write out the results in CSV format (comma-separated values).  This format "
1481 "can be imported easily into databases and spreadsheets, but read L</NOTE "
1482 "ABOUT CSV FORMAT> below."
1483 msgstr ""
1484
1485 #. type: textblock
1486 #: ../cat/virt-filesystems.pod:150
1487 msgid ""
1488 "When prompting for keys and passphrases, virt-filesystems normally turns "
1489 "echoing off so you cannot see what you are typing.  If you are not worried "
1490 "about Tempest attacks and there is no one else in the room you can specify "
1491 "this flag to see what you are typing."
1492 msgstr ""
1493
1494 #. type: =item
1495 #: ../cat/virt-filesystems.pod:155
1496 #, fuzzy
1497 #| msgid "B<--ro>"
1498 msgid "B<--extra>"
1499 msgstr "B<--ro>"
1500
1501 #. type: textblock
1502 #: ../cat/virt-filesystems.pod:157
1503 msgid ""
1504 "This causes filesystems that are not ordinary, mountable filesystems to be "
1505 "displayed.  This category includes swapspace, and filesystems that are empty "
1506 "or contain unknown data."
1507 msgstr ""
1508
1509 #. type: textblock
1510 #: ../cat/virt-filesystems.pod:161
1511 msgid "This option implies I<--filesystems>."
1512 msgstr ""
1513
1514 #. type: =item
1515 #: ../cat/virt-filesystems.pod:163
1516 #, fuzzy
1517 #| msgid "list-filesystems"
1518 msgid "B<--filesystems>"
1519 msgstr "list-filesystems"
1520
1521 #. type: textblock
1522 #: ../cat/virt-filesystems.pod:165
1523 msgid ""
1524 "Display mountable filesystems.  If no display option was selected then this "
1525 "option is implied."
1526 msgstr ""
1527
1528 #. type: textblock
1529 #: ../cat/virt-filesystems.pod:168
1530 msgid "With I<--extra>, non-mountable filesystems are shown too."
1531 msgstr ""
1532
1533 #. type: verbatim
1534 #: ../cat/virt-filesystems.pod:181
1535 #, fuzzy, no-wrap
1536 #| msgid ""
1537 #| " guestfish --format=raw -a disk.img\n"
1538 #| "\n"
1539 msgid ""
1540 " virt-filesystems --format=raw -a disk.img\n"
1541 "\n"
1542 msgstr ""
1543 " guestfish --format=raw -a disk.img\n"
1544 "\n"
1545
1546 #. type: verbatim
1547 #: ../cat/virt-filesystems.pod:185
1548 #, fuzzy, no-wrap
1549 #| msgid ""
1550 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
1551 #| "\n"
1552 msgid ""
1553 " virt-filesystems --format=raw -a disk.img --format -a another.img\n"
1554 "\n"
1555 msgstr ""
1556 " guestfish --format=raw -a disk.img --format -a another.img\n"
1557 "\n"
1558
1559 #. type: =item
1560 #: ../cat/virt-filesystems.pod:194 ../cat/virt-ls.pod:352
1561 #: ../df/virt-df.pod:125 ../fish/guestfish.pod:156
1562 #: ../tools/virt-list-partitions.pl:109
1563 msgid "B<-h>"
1564 msgstr "B<-h>"
1565
1566 #. type: =item
1567 #: ../cat/virt-filesystems.pod:196 ../cat/virt-ls.pod:354
1568 #: ../df/virt-df.pod:127 ../tools/virt-list-partitions.pl:111
1569 #, fuzzy
1570 #| msgid "B<-h> | B<--human-readable>"
1571 msgid "B<--human-readable>"
1572 msgstr "B<-h> | B<--human-readable>"
1573
1574 #. type: textblock
1575 #: ../cat/virt-filesystems.pod:198
1576 msgid "In I<--long> mode, display sizes in human-readable format."
1577 msgstr ""
1578
1579 #. type: =item
1580 #: ../cat/virt-filesystems.pod:205 ../cat/virt-ls.pod:366
1581 #: ../tools/virt-list-filesystems.pl:108 ../tools/virt-list-partitions.pl:119
1582 msgid "B<-l>"
1583 msgstr ""
1584
1585 #. type: =item
1586 #: ../cat/virt-filesystems.pod:207 ../cat/virt-ls.pod:368
1587 #: ../tools/virt-list-filesystems.pl:110 ../tools/virt-list-partitions.pl:121
1588 #, fuzzy
1589 #| msgid "B<--ro>"
1590 msgid "B<--long>"
1591 msgstr "B<--ro>"
1592
1593 #. type: textblock
1594 #: ../cat/virt-filesystems.pod:209
1595 msgid "Display extra columns of data (\"long format\")."
1596 msgstr ""
1597
1598 #. type: textblock
1599 #: ../cat/virt-filesystems.pod:211
1600 msgid "A title row is added unless you also specify I<--no-title>."
1601 msgstr ""
1602
1603 #. type: textblock
1604 #: ../cat/virt-filesystems.pod:213
1605 msgid ""
1606 "The extra columns displayed depend on what output you select, and the "
1607 "ordering of columns may change in future versions.  Use the title row, I<--"
1608 "csv> output and/or L<csvtool(1)> to match columns to data in external "
1609 "programs."
1610 msgstr ""
1611
1612 #. type: textblock
1613 #: ../cat/virt-filesystems.pod:218
1614 msgid ""
1615 "Use I<-h> if you want sizes to be displayed in human-readable format.  The "
1616 "default is to show raw numbers of I<bytes>."
1617 msgstr ""
1618
1619 #. type: textblock
1620 #: ../cat/virt-filesystems.pod:221
1621 msgid "Use I<--uuid> to display UUIDs too."
1622 msgstr ""
1623
1624 #. type: =item
1625 #: ../cat/virt-filesystems.pod:223
1626 #, fuzzy
1627 #| msgid "B<--live>"
1628 msgid "B<--lvs>"
1629 msgstr "B<--live>"
1630
1631 #. type: =item
1632 #: ../cat/virt-filesystems.pod:225
1633 #, fuzzy
1634 #| msgid "B<--live>"
1635 msgid "B<--logvols>"
1636 msgstr "B<--live>"
1637
1638 #. type: =item
1639 #: ../cat/virt-filesystems.pod:227
1640 #, fuzzy
1641 #| msgid "B<--live>"
1642 msgid "B<--logical-volumes>"
1643 msgstr "B<--live>"
1644
1645 #. type: textblock
1646 #: ../cat/virt-filesystems.pod:229
1647 msgid ""
1648 "Display LVM logical volumes.  In this mode, these are displayed irrespective "
1649 "of whether the LVs contain filesystems."
1650 msgstr ""
1651
1652 #. type: =item
1653 #: ../cat/virt-filesystems.pod:232
1654 #, fuzzy
1655 #| msgid "B<--listen>"
1656 msgid "B<--no-title>"
1657 msgstr "B<--listen>"
1658
1659 #. type: textblock
1660 #: ../cat/virt-filesystems.pod:234
1661 msgid "In I<--long> mode, don't add a title row."
1662 msgstr ""
1663
1664 #. type: textblock
1665 #: ../cat/virt-filesystems.pod:236
1666 msgid ""
1667 "Note that the order of the columns is not fixed, and may change in future "
1668 "versions of virt-filesystems, so using this option may give you unexpected "
1669 "surprises."
1670 msgstr ""
1671
1672 #. type: =item
1673 #: ../cat/virt-filesystems.pod:240
1674 #, fuzzy
1675 #| msgid "B<--partition>"
1676 msgid "B<--parts>"
1677 msgstr "B<--partition>"
1678
1679 #. type: =item
1680 #: ../cat/virt-filesystems.pod:242
1681 #, fuzzy
1682 #| msgid "B<--partition>"
1683 msgid "B<--partitions>"
1684 msgstr "B<--partition>"
1685
1686 #. type: textblock
1687 #: ../cat/virt-filesystems.pod:244
1688 msgid ""
1689 "Display partitions.  In this mode, these are displayed irrespective of "
1690 "whether the partitions contain filesystems."
1691 msgstr ""
1692
1693 #. type: =item
1694 #: ../cat/virt-filesystems.pod:247
1695 #, fuzzy
1696 #| msgid "B<--csh>"
1697 msgid "B<--pvs>"
1698 msgstr "B<--csh>"
1699
1700 #. type: =item
1701 #: ../cat/virt-filesystems.pod:249
1702 #, fuzzy
1703 #| msgid "B<--verbose>"
1704 msgid "B<--physvols>"
1705 msgstr "B<--verbose>"
1706
1707 #. type: =item
1708 #: ../cat/virt-filesystems.pod:251
1709 msgid "B<--physical-volumes>"
1710 msgstr ""
1711
1712 #. type: textblock
1713 #: ../cat/virt-filesystems.pod:253
1714 msgid "Display LVM physical volumes."
1715 msgstr ""
1716
1717 #. type: =item
1718 #: ../cat/virt-filesystems.pod:255 ../df/virt-df.pod:163
1719 #, fuzzy
1720 #| msgid "B<--live>"
1721 msgid "B<--uuid>"
1722 msgstr "B<--live>"
1723
1724 #. type: =item
1725 #: ../cat/virt-filesystems.pod:257
1726 #, fuzzy
1727 #| msgid "B<--csh>"
1728 msgid "B<--uuids>"
1729 msgstr "B<--csh>"
1730
1731 #. type: textblock
1732 #: ../cat/virt-filesystems.pod:259
1733 msgid "In I<--long> mode, display UUIDs as well."
1734 msgstr ""
1735
1736 #. type: =item
1737 #: ../cat/virt-filesystems.pod:273
1738 #, fuzzy
1739 #| msgid "B<--csh>"
1740 msgid "B<--vgs>"
1741 msgstr "B<--csh>"
1742
1743 #. type: =item
1744 #: ../cat/virt-filesystems.pod:275
1745 #, fuzzy
1746 #| msgid "B<--verbose>"
1747 msgid "B<--volgroups>"
1748 msgstr "B<--verbose>"
1749
1750 #. type: =item
1751 #: ../cat/virt-filesystems.pod:277
1752 #, fuzzy
1753 #| msgid "B<--verbose>"
1754 msgid "B<--volume-groups>"
1755 msgstr "B<--verbose>"
1756
1757 #. type: textblock
1758 #: ../cat/virt-filesystems.pod:279
1759 msgid "Display LVM volume groups."
1760 msgstr ""
1761
1762 #. type: =head1
1763 #: ../cat/virt-filesystems.pod:287
1764 msgid "COLUMNS"
1765 msgstr ""
1766
1767 #. type: textblock
1768 #: ../cat/virt-filesystems.pod:289
1769 msgid ""
1770 "Note that columns in the output are subject to reordering and change in "
1771 "future versions of this tool."
1772 msgstr ""
1773
1774 #. type: =item
1775 #: ../cat/virt-filesystems.pod:294
1776 msgid "B<Name>"
1777 msgstr ""
1778
1779 #. type: textblock
1780 #: ../cat/virt-filesystems.pod:296
1781 msgid "The filesystem, partition, block device or LVM name."
1782 msgstr ""
1783
1784 #. type: textblock
1785 #: ../cat/virt-filesystems.pod:298
1786 msgid ""
1787 "For device and partition names these are displayed as canonical libguestfs "
1788 "names, so that for example C</dev/sda2> is the second partition on the first "
1789 "device."
1790 msgstr ""
1791
1792 #. type: textblock
1793 #: ../cat/virt-filesystems.pod:302
1794 msgid ""
1795 "If the I<--long> option is B<not> specified, then only the name column is "
1796 "shown in the output."
1797 msgstr ""
1798
1799 #. type: =item
1800 #: ../cat/virt-filesystems.pod:305
1801 #, fuzzy
1802 #| msgid "B<-N type>"
1803 msgid "B<Type>"
1804 msgstr "B<-N тип>"
1805
1806 #. type: textblock
1807 #: ../cat/virt-filesystems.pod:307
1808 msgid "The object type, for example C<filesystem>, C<lv>, C<device> etc."
1809 msgstr ""
1810
1811 #. type: =item
1812 #: ../cat/virt-filesystems.pod:309
1813 msgid "B<VFS>"
1814 msgstr ""
1815
1816 #. type: textblock
1817 #: ../cat/virt-filesystems.pod:311
1818 msgid ""
1819 "If there is a filesystem, then this column displays the filesystem type if "
1820 "one could be detected, eg. C<ext4>."
1821 msgstr ""
1822
1823 #. type: =item
1824 #: ../cat/virt-filesystems.pod:314
1825 msgid "B<Label>"
1826 msgstr ""
1827
1828 #. type: textblock
1829 #: ../cat/virt-filesystems.pod:316
1830 msgid ""
1831 "If the object has a label (used for identifying and mounting filesystems) "
1832 "then this column contains the label."
1833 msgstr ""
1834
1835 #. type: =item
1836 #: ../cat/virt-filesystems.pod:319
1837 #, fuzzy
1838 #| msgid "B<part_size>"
1839 msgid "B<Size>"
1840 msgstr "B<part_size>"
1841
1842 #. type: textblock
1843 #: ../cat/virt-filesystems.pod:321
1844 msgid ""
1845 "The size of the object in bytes.  If the I<--human> option is used then the "
1846 "size is displayed in a human-readable form."
1847 msgstr ""
1848
1849 #. type: =item
1850 #: ../cat/virt-filesystems.pod:324
1851 msgid "B<Parent>"
1852 msgstr ""
1853
1854 #. type: textblock
1855 #: ../cat/virt-filesystems.pod:326
1856 msgid ""
1857 "The parent column records the parent relationship between objects.  For "
1858 "example, if the object is a partition, then this column contains the name of "
1859 "the containing device.  If the object is a logical volume, then this column "
1860 "is the name of the volume group."
1861 msgstr ""
1862
1863 #. type: =item
1864 #: ../cat/virt-filesystems.pod:331
1865 msgid "B<UUID>"
1866 msgstr ""
1867
1868 #. type: textblock
1869 #: ../cat/virt-filesystems.pod:333
1870 msgid ""
1871 "If the object has a UUID (used for identifying and mounting filesystems and "
1872 "block devices) then this column contains the UUID as a string."
1873 msgstr ""
1874
1875 #. type: textblock
1876 #: ../cat/virt-filesystems.pod:337
1877 msgid "The UUID is only displayed if the I<--uuid> option is given."
1878 msgstr ""
1879
1880 #. type: =head1
1881 #: ../cat/virt-filesystems.pod:341 ../cat/virt-ls.pod:459
1882 #: ../df/virt-df.pod:191
1883 msgid "NOTE ABOUT CSV FORMAT"
1884 msgstr ""
1885
1886 #. type: textblock
1887 #: ../cat/virt-filesystems.pod:343 ../cat/virt-ls.pod:461
1888 #: ../df/virt-df.pod:193
1889 msgid ""
1890 "Comma-separated values (CSV) is a deceptive format.  It I<seems> like it "
1891 "should be easy to parse, but it is definitely not easy to parse."
1892 msgstr ""
1893
1894 #. type: textblock
1895 #: ../cat/virt-filesystems.pod:346 ../cat/virt-ls.pod:464
1896 #: ../df/virt-df.pod:196
1897 msgid ""
1898 "Myth: Just split fields at commas.  Reality: This does I<not> work "
1899 "reliably.  This example has two columns:"
1900 msgstr ""
1901
1902 #. type: verbatim
1903 #: ../cat/virt-filesystems.pod:349 ../cat/virt-ls.pod:467
1904 #: ../df/virt-df.pod:199
1905 #, no-wrap
1906 msgid ""
1907 " \"foo,bar\",baz\n"
1908 "\n"
1909 msgstr ""
1910
1911 #. type: textblock
1912 #: ../cat/virt-filesystems.pod:351 ../cat/virt-ls.pod:469
1913 #: ../df/virt-df.pod:201
1914 msgid ""
1915 "Myth: Read the file one line at a time.  Reality: This does I<not> work "
1916 "reliably.  This example has one row:"
1917 msgstr ""
1918
1919 #. type: verbatim
1920 #: ../cat/virt-filesystems.pod:354 ../cat/virt-ls.pod:472
1921 #: ../df/virt-df.pod:204
1922 #, no-wrap
1923 msgid ""
1924 " \"foo\n"
1925 " bar\",baz\n"
1926 "\n"
1927 msgstr ""
1928
1929 #. type: textblock
1930 #: ../cat/virt-filesystems.pod:357 ../cat/virt-ls.pod:475
1931 #: ../df/virt-df.pod:207
1932 msgid ""
1933 "For shell scripts, use C<csvtool> (L<http://merjis.com/developers/csv> also "
1934 "packaged in major Linux distributions)."
1935 msgstr ""
1936
1937 #. type: textblock
1938 #: ../cat/virt-filesystems.pod:360 ../cat/virt-ls.pod:478
1939 #: ../df/virt-df.pod:210
1940 msgid ""
1941 "For other languages, use a CSV processing library (eg. C<Text::CSV> for Perl "
1942 "or Python's built-in csv library)."
1943 msgstr ""
1944
1945 #. type: textblock
1946 #: ../cat/virt-filesystems.pod:363 ../cat/virt-ls.pod:481
1947 #: ../df/virt-df.pod:213
1948 msgid "Most spreadsheets and databases can import CSV directly."
1949 msgstr ""
1950
1951 #. type: textblock
1952 #: ../cat/virt-filesystems.pod:379
1953 #, fuzzy
1954 #| msgid ""
1955 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1956 #| "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1957 #| "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1958 msgid ""
1959 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-df(1)>, L<virt-list-"
1960 "filesystems(1)>, L<virt-list-partitions(1)>, L<csvtool(1)>, L<http://"
1961 "libguestfs.org/>."
1962 msgstr ""
1963 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
1964 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
1965 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
1966
1967 #. type: textblock
1968 #: ../cat/virt-filesystems.pod:394 ../tools/virt-make-fs.pl:570
1969 #: ../tools/virt-win-reg.pl:778
1970 msgid "Copyright (C) 2010 Red Hat Inc."
1971 msgstr ""
1972
1973 #. type: textblock
1974 #: ../cat/virt-ls.pod:5
1975 msgid "virt-ls - List files in a virtual machine"
1976 msgstr ""
1977
1978 #. type: verbatim
1979 #: ../cat/virt-ls.pod:9
1980 #, no-wrap
1981 msgid ""
1982 " virt-ls [--options] -d domname directory [directory ...]\n"
1983 "\n"
1984 msgstr ""
1985
1986 #. type: verbatim
1987 #: ../cat/virt-ls.pod:11
1988 #, fuzzy, no-wrap
1989 #| msgid ""
1990 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
1991 #| "\n"
1992 msgid ""
1993 " virt-ls [--options] -a disk.img [-a disk.img ...] directory [directory ...]\n"
1994 "\n"
1995 msgstr ""
1996 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
1997 "\n"
1998
1999 #. type: textblock
2000 #: ../cat/virt-ls.pod:13 ../df/virt-df.pod:15 ../rescue/virt-rescue.pod:13
2001 msgid "Old style:"
2002 msgstr ""
2003
2004 #. type: verbatim
2005 #: ../cat/virt-ls.pod:15
2006 #, fuzzy, no-wrap
2007 #| msgid ""
2008 #| " virt-list-partitions [--options] domname\n"
2009 #| "\n"
2010 msgid ""
2011 " virt-ls [--options] domname directory\n"
2012 "\n"
2013 msgstr ""
2014 " virt-list-partitions [--параметри] назва_домену\n"
2015 "\n"
2016
2017 #. type: verbatim
2018 #: ../cat/virt-ls.pod:17
2019 #, fuzzy, no-wrap
2020 #| msgid ""
2021 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2022 #| "\n"
2023 msgid ""
2024 " virt-ls [--options] disk.img [disk.img ...] directory\n"
2025 "\n"
2026 msgstr ""
2027 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2028 "\n"
2029
2030 #. type: textblock
2031 #: ../cat/virt-ls.pod:21
2032 msgid ""
2033 "C<virt-ls> lists filenames, file sizes, checksums, extended attributes and "
2034 "more from a virtual machine or disk image."
2035 msgstr ""
2036
2037 #. type: textblock
2038 #: ../cat/virt-ls.pod:24
2039 msgid ""
2040 "Multiple directory names can be given, in which case the output from each is "
2041 "concatenated."
2042 msgstr ""
2043
2044 #. type: textblock
2045 #: ../cat/virt-ls.pod:27
2046 msgid ""
2047 "To list directories from a libvirt guest use the I<-d> option to specify the "
2048 "name of the guest.  For a disk image, use the I<-a> option."
2049 msgstr ""
2050
2051 #. type: textblock
2052 #: ../cat/virt-ls.pod:31
2053 msgid ""
2054 "C<virt-ls> can do many simple file listings.  For more complicated cases you "
2055 "may need to use L<guestfish(1)>, or write a program directly to the L<guestfs"
2056 "(3)> API."
2057 msgstr ""
2058
2059 #. type: textblock
2060 #: ../cat/virt-ls.pod:37
2061 msgid "Get a list of all files and directories in a virtual machine:"
2062 msgstr ""
2063
2064 #. type: verbatim
2065 #: ../cat/virt-ls.pod:39
2066 #, fuzzy, no-wrap
2067 #| msgid ""
2068 #| " guestfish --ro -d myguest -i\n"
2069 #| "\n"
2070 msgid ""
2071 " virt-ls -R -d guest /\n"
2072 "\n"
2073 msgstr ""
2074 " guestfish --ro -d myguest -i\n"
2075 "\n"
2076
2077 #. type: textblock
2078 #: ../cat/virt-ls.pod:41
2079 msgid "List all setuid or setgid programs in a Linux virtual machine:"
2080 msgstr ""
2081
2082 #. type: verbatim
2083 #: ../cat/virt-ls.pod:43
2084 #, no-wrap
2085 msgid ""
2086 " virt-ls -lR -d guest / | grep '^- [42]'\n"
2087 "\n"
2088 msgstr ""
2089
2090 #. type: textblock
2091 #: ../cat/virt-ls.pod:45
2092 msgid "List all public-writable directories in a Linux virtual machine:"
2093 msgstr ""
2094
2095 #. type: verbatim
2096 #: ../cat/virt-ls.pod:47
2097 #, no-wrap
2098 msgid ""
2099 " virt-ls -lR -d guest / | grep '^d ...7'\n"
2100 "\n"
2101 msgstr ""
2102
2103 #. type: textblock
2104 #: ../cat/virt-ls.pod:49
2105 msgid "List all Unix domain sockets in a Linux virtual machine:"
2106 msgstr ""
2107
2108 #. type: verbatim
2109 #: ../cat/virt-ls.pod:51
2110 #, no-wrap
2111 msgid ""
2112 " virt-ls -lR -d guest / | grep '^s'\n"
2113 "\n"
2114 msgstr ""
2115
2116 #. type: textblock
2117 #: ../cat/virt-ls.pod:53
2118 msgid "List all regular files with filenames ending in '.png':"
2119 msgstr ""
2120
2121 #. type: verbatim
2122 #: ../cat/virt-ls.pod:55
2123 #, no-wrap
2124 msgid ""
2125 " virt-ls -lR -d guest / | grep -i '^-.*\\.png$'\n"
2126 "\n"
2127 msgstr ""
2128
2129 #. type: textblock
2130 #: ../cat/virt-ls.pod:57
2131 msgid "To display files larger than 10MB in home directories:"
2132 msgstr ""
2133
2134 #. type: verbatim
2135 #: ../cat/virt-ls.pod:59
2136 #, no-wrap
2137 msgid ""
2138 " virt-ls -lR -d guest /home | awk '$3 > 10*1024*1024'\n"
2139 "\n"
2140 msgstr ""
2141
2142 #. type: textblock
2143 #: ../cat/virt-ls.pod:61
2144 msgid "Find everything modified in the last 7 days:"
2145 msgstr ""
2146
2147 #. type: verbatim
2148 #: ../cat/virt-ls.pod:63
2149 #, no-wrap
2150 msgid ""
2151 " virt-ls -lR -d guest --time-days / | awk '$6 <= 7'\n"
2152 "\n"
2153 msgstr ""
2154
2155 #. type: textblock
2156 #: ../cat/virt-ls.pod:65
2157 msgid "Find regular files modified in the last 24 hours:"
2158 msgstr ""
2159
2160 #. type: verbatim
2161 #: ../cat/virt-ls.pod:67
2162 #, no-wrap
2163 msgid ""
2164 " virt-ls -lR -d guest --time-days / | grep '^-' | awk '$6 < 1'\n"
2165 "\n"
2166 msgstr ""
2167
2168 #. type: =head2
2169 #: ../cat/virt-ls.pod:69
2170 msgid "DIFFERENCES IN SNAPSHOTS AND BACKING FILES"
2171 msgstr ""
2172
2173 #. type: textblock
2174 #: ../cat/virt-ls.pod:71
2175 msgid ""
2176 "Find the differences between files in a guest and an earlier snapshot of the "
2177 "same guest."
2178 msgstr ""
2179
2180 #. type: verbatim
2181 #: ../cat/virt-ls.pod:74
2182 #, no-wrap
2183 msgid ""
2184 " virt-ls -lR -a snapshot.img / --uids --time-t > old\n"
2185 " virt-ls -lR -a current.img / --uids --time-t > new\n"
2186 " diff -u old new | less\n"
2187 "\n"
2188 msgstr ""
2189
2190 #. type: textblock
2191 #: ../cat/virt-ls.pod:78
2192 msgid ""
2193 "The commands above won't find files where the content has changed but the "
2194 "metadata (eg. file size and modification date) is the same.  To do that, you "
2195 "need to add the I<--checksum> parameter to both C<virt-ls> commands.  I<--"
2196 "checksum> can be quite slow since it has to read and compute a checksum of "
2197 "every regular file in the virtual machine."
2198 msgstr ""
2199
2200 #. type: =head1
2201 #: ../cat/virt-ls.pod:84
2202 msgid "OUTPUT MODES"
2203 msgstr ""
2204
2205 #. type: textblock
2206 #: ../cat/virt-ls.pod:86
2207 msgid ""
2208 "C<virt-ls> has four output modes, controlled by different combinations of "
2209 "the I<-l> and I<-R> options."
2210 msgstr ""
2211
2212 #. type: =head2
2213 #: ../cat/virt-ls.pod:89
2214 msgid "SIMPLE LISTING"
2215 msgstr ""
2216
2217 #. type: textblock
2218 #: ../cat/virt-ls.pod:91
2219 msgid "A simple listing is like the ordinary L<ls(1)> command:"
2220 msgstr ""
2221
2222 #. type: verbatim
2223 #: ../cat/virt-ls.pod:93
2224 #, no-wrap
2225 msgid ""
2226 " $ virt-ls -d guest /\n"
2227 " bin\n"
2228 " boot\n"
2229 " [etc.]\n"
2230 "\n"
2231 msgstr ""
2232
2233 #. type: =head2
2234 #: ../cat/virt-ls.pod:98
2235 #, fuzzy
2236 #| msgid "MOUNTING"
2237 msgid "LONG LISTING"
2238 msgstr "МОНТУВАННЯ"
2239
2240 #. type: textblock
2241 #: ../cat/virt-ls.pod:100
2242 msgid ""
2243 "With the I<-l> (I<--long>) option, the output is like the C<ls -l> command "
2244 "(more specifically, like the C<guestfs_ll> function)."
2245 msgstr ""
2246
2247 #. type: verbatim
2248 #: ../cat/virt-ls.pod:103
2249 #, no-wrap
2250 msgid ""
2251 " $ virt-ls -l -d guest /\n"
2252 " total 204\n"
2253 " dr-xr-xr-x.   2 root root   4096 2009-08-25 19:06 bin\n"
2254 " dr-xr-xr-x.   5 root root   3072 2009-08-25 19:06 boot\n"
2255 " [etc.]\n"
2256 "\n"
2257 msgstr ""
2258
2259 #. type: textblock
2260 #: ../cat/virt-ls.pod:109
2261 msgid ""
2262 "Note that while this is useful for displaying a directory, do not try "
2263 "parsing this output in another program.  Use L</RECURSIVE LONG LISTING> "
2264 "instead."
2265 msgstr ""
2266
2267 #. type: =head2
2268 #: ../cat/virt-ls.pod:113
2269 msgid "RECURSIVE LISTING"
2270 msgstr ""
2271
2272 #. type: textblock
2273 #: ../cat/virt-ls.pod:115
2274 msgid ""
2275 "With the I<-R> (I<--recursive>) option, C<virt-ls> lists the names of files "
2276 "and directories recursively:"
2277 msgstr ""
2278
2279 #. type: verbatim
2280 #: ../cat/virt-ls.pod:118
2281 #, no-wrap
2282 msgid ""
2283 " $ virt-ls -R -d guest /tmp\n"
2284 " foo\n"
2285 " foo/bar\n"
2286 " [etc.]\n"
2287 "\n"
2288 msgstr ""
2289
2290 #. type: textblock
2291 #: ../cat/virt-ls.pod:123
2292 msgid ""
2293 "To generate this output, C<virt-ls> runs the C<guestfs_find0> function and "
2294 "converts C<\\0> characters to C<\\n>."
2295 msgstr ""
2296
2297 #. type: =head2
2298 #: ../cat/virt-ls.pod:126
2299 msgid "RECURSIVE LONG LISTING"
2300 msgstr ""
2301
2302 #. type: textblock
2303 #: ../cat/virt-ls.pod:128
2304 msgid ""
2305 "Using I<-lR> options together changes the output to display directories "
2306 "recursively, with file stats, and optionally other features such as "
2307 "checksums and extended attributes."
2308 msgstr ""
2309
2310 #. type: textblock
2311 #: ../cat/virt-ls.pod:132
2312 msgid ""
2313 "Most of the interesting features of C<virt-ls> are only available when using "
2314 "I<-lR> mode."
2315 msgstr ""
2316
2317 #. type: textblock
2318 #: ../cat/virt-ls.pod:135
2319 msgid ""
2320 "The fields are normally space-separated.  Filenames are B<not> quoted, so "
2321 "you cannot use the output in another program (because filenames can contain "
2322 "spaces and other unsafe characters).  If the guest was untrusted and someone "
2323 "knew you were using C<virt-ls> to analyze the guest, they could play tricks "
2324 "on you by creating filenames with embedded newline characters.  To B<safely> "
2325 "parse the output in another program, use the I<--csv> (Comma-Separated "
2326 "Values) option."
2327 msgstr ""
2328
2329 #. type: textblock
2330 #: ../cat/virt-ls.pod:143
2331 msgid ""
2332 "Note that this output format is completely unrelated to the C<ls -lR> "
2333 "command."
2334 msgstr ""
2335
2336 #. type: verbatim
2337 #: ../cat/virt-ls.pod:146
2338 #, no-wrap
2339 msgid ""
2340 " $ virt-ls -lR -d guest /bin\n"
2341 " d 0555       4096 /bin\n"
2342 " - 0755        123 /bin/alsaunmute\n"
2343 " - 0755      28328 /bin/arch\n"
2344 " l 0777          4 /bin/awk -> gawk\n"
2345 " - 0755      27216 /bin/basename\n"
2346 " - 0755     943360 /bin/bash\n"
2347 " [etc.]\n"
2348 "\n"
2349 msgstr ""
2350
2351 #. type: textblock
2352 #: ../cat/virt-ls.pod:155
2353 msgid "These basic fields are always shown:"
2354 msgstr ""
2355
2356 #. type: =item
2357 #: ../cat/virt-ls.pod:159
2358 #, fuzzy
2359 #| msgid "vfs-type"
2360 msgid "type"
2361 msgstr "vfs-type"
2362
2363 #. type: textblock
2364 #: ../cat/virt-ls.pod:161
2365 msgid ""
2366 "The file type, one of: C<-> (regular file), C<d> (directory), C<c> "
2367 "(character device), C<b> (block device), C<p> (named pipe), C<l> (symbolic "
2368 "link), C<s> (socket) or C<u> (unknown)."
2369 msgstr ""
2370
2371 #. type: =item
2372 #: ../cat/virt-ls.pod:171
2373 #, fuzzy
2374 #| msgid "version"
2375 msgid "permissions"
2376 msgstr "version"
2377
2378 #. type: textblock
2379 #: ../cat/virt-ls.pod:173
2380 msgid "The Unix permissions, displayed as a 4 digit octal number."
2381 msgstr ""
2382
2383 #. type: =item
2384 #: ../cat/virt-ls.pod:175
2385 #, fuzzy
2386 #| msgid "filesize"
2387 msgid "size"
2388 msgstr "filesize"
2389
2390 #. type: textblock
2391 #: ../cat/virt-ls.pod:177
2392 msgid ""
2393 "The size of the file.  This is shown in bytes unless I<-h> or I<--human-"
2394 "readable> option is given, in which case this is shown as a human-readable "
2395 "number."
2396 msgstr ""
2397
2398 #. type: =head2
2399 #: ../cat/virt-ls.pod:181 ../fish/guestfish-actions.pod:4245
2400 msgid "path"
2401 msgstr ""
2402
2403 #. type: textblock
2404 #: ../cat/virt-ls.pod:183
2405 msgid "The full path of the file or directory."
2406 msgstr ""
2407
2408 #. type: =item
2409 #: ../cat/virt-ls.pod:185
2410 #, fuzzy
2411 #| msgid "readlink"
2412 msgid "link"
2413 msgstr "readlink"
2414
2415 #. type: textblock
2416 #: ../cat/virt-ls.pod:187
2417 msgid "For symbolic links only, the link target."
2418 msgstr ""
2419
2420 #. type: textblock
2421 #: ../cat/virt-ls.pod:191
2422 msgid ""
2423 "In I<-lR> mode, additional command line options enable the display of more "
2424 "fields."
2425 msgstr ""
2426
2427 #. type: textblock
2428 #: ../cat/virt-ls.pod:194
2429 msgid ""
2430 "With the I<--uids> flag, these additional fields are displayed before the "
2431 "path:"
2432 msgstr ""
2433
2434 #. type: =item
2435 #: ../cat/virt-ls.pod:199
2436 #, fuzzy
2437 #| msgid "lvuuid"
2438 msgid "uid"
2439 msgstr "lvuuid"
2440
2441 #. type: =item
2442 #: ../cat/virt-ls.pod:201
2443 #, fuzzy
2444 #| msgid "vguuid"
2445 msgid "gid"
2446 msgstr "vguuid"
2447
2448 #. type: textblock
2449 #: ../cat/virt-ls.pod:203
2450 msgid ""
2451 "The UID and GID of the owner of the file (displayed numerically).  Note "
2452 "these only make sense in the context of a Unix-like guest."
2453 msgstr ""
2454
2455 #. type: textblock
2456 #: ../cat/virt-ls.pod:208
2457 msgid "With the I<--times> flag, these additional fields are displayed:"
2458 msgstr ""
2459
2460 #. type: =item
2461 #: ../cat/virt-ls.pod:212
2462 #, fuzzy
2463 #| msgid "time"
2464 msgid "atime"
2465 msgstr "time"
2466
2467 #. type: textblock
2468 #: ../cat/virt-ls.pod:214
2469 msgid "The time of last access."
2470 msgstr ""
2471
2472 #. type: =item
2473 #: ../cat/virt-ls.pod:216
2474 #, fuzzy
2475 #| msgid "time"
2476 msgid "mtime"
2477 msgstr "time"
2478
2479 #. type: textblock
2480 #: ../cat/virt-ls.pod:218
2481 msgid "The time of last modification."
2482 msgstr ""
2483
2484 #. type: =item
2485 #: ../cat/virt-ls.pod:220
2486 #, fuzzy
2487 #| msgid "time"
2488 msgid "ctime"
2489 msgstr "time"
2490
2491 #. type: textblock
2492 #: ../cat/virt-ls.pod:222
2493 msgid "The time of last status change."
2494 msgstr ""
2495
2496 #. type: textblock
2497 #: ../cat/virt-ls.pod:226
2498 msgid ""
2499 "The time fields are displayed as string dates and times, unless one of the "
2500 "I<--time-t>, I<--time-relative> or I<--time-days> flags is given."
2501 msgstr ""
2502
2503 #. type: textblock
2504 #: ../cat/virt-ls.pod:229
2505 msgid "With the I<--extra-stats> flag, these additional fields are displayed:"
2506 msgstr ""
2507
2508 #. type: =item
2509 #: ../cat/virt-ls.pod:233
2510 #, fuzzy
2511 #| msgid "zero-device"
2512 msgid "device"
2513 msgstr "zero-device"
2514
2515 #. type: textblock
2516 #: ../cat/virt-ls.pod:235
2517 msgid ""
2518 "The device containing the file (displayed as major:minor).  This may not "
2519 "match devices as known to the guest."
2520 msgstr ""
2521
2522 #. type: =item
2523 #: ../cat/virt-ls.pod:238
2524 msgid "inode"
2525 msgstr ""
2526
2527 #. type: textblock
2528 #: ../cat/virt-ls.pod:240
2529 msgid "The inode number."
2530 msgstr ""
2531
2532 #. type: =item
2533 #: ../cat/virt-ls.pod:242
2534 #, fuzzy
2535 #| msgid "readlink"
2536 msgid "nlink"
2537 msgstr "readlink"
2538
2539 #. type: textblock
2540 #: ../cat/virt-ls.pod:244
2541 msgid "The number of hard links."
2542 msgstr ""
2543
2544 #. type: =item
2545 #: ../cat/virt-ls.pod:246
2546 msgid "rdev"
2547 msgstr ""
2548
2549 #. type: textblock
2550 #: ../cat/virt-ls.pod:248
2551 msgid ""
2552 "For block and char special files, the device (displayed as major:minor)."
2553 msgstr ""
2554
2555 #. type: =item
2556 #: ../cat/virt-ls.pod:251
2557 #, fuzzy
2558 #| msgid "C<blocksize>"
2559 msgid "blocks"
2560 msgstr "C<blocksize>"
2561
2562 #. type: textblock
2563 #: ../cat/virt-ls.pod:253
2564 msgid "The number of 512 byte blocks allocated to the file."
2565 msgstr ""
2566
2567 #. type: textblock
2568 #: ../cat/virt-ls.pod:257
2569 msgid ""
2570 "With the I<--checksum> flag, the checksum of the file contents is shown "
2571 "(only for regular files).  Computing file checksums can take a considerable "
2572 "amount of time."
2573 msgstr ""
2574
2575 #. type: =item
2576 #: ../cat/virt-ls.pod:280
2577 #, fuzzy
2578 #| msgid "checksum"
2579 msgid "B<--checksum>"
2580 msgstr "checksum"
2581
2582 #. type: =item
2583 #: ../cat/virt-ls.pod:282
2584 msgid "B<--checksum=crc|md5|sha1|sha224|sha256|sha384|sha512>"
2585 msgstr ""
2586
2587 #. type: textblock
2588 #: ../cat/virt-ls.pod:284
2589 msgid ""
2590 "Display checksum over file contents for regular files.  With no argument, "
2591 "this defaults to using I<md5>.  Using an argument, you can select the "
2592 "checksum type to use."
2593 msgstr ""
2594
2595 #. type: textblock
2596 #: ../cat/virt-ls.pod:288 ../cat/virt-ls.pod:325 ../cat/virt-ls.pod:358
2597 #: ../cat/virt-ls.pod:391 ../cat/virt-ls.pod:401 ../cat/virt-ls.pod:408
2598 #: ../cat/virt-ls.pod:415 ../cat/virt-ls.pod:422
2599 msgid ""
2600 "This option only has effect in I<-lR> output mode.  See L</RECURSIVE LONG "
2601 "LISTING> above."
2602 msgstr ""
2603
2604 #. type: textblock
2605 #: ../cat/virt-ls.pod:316
2606 msgid ""
2607 "When prompting for keys and passphrases, virt-ls normally turns echoing off "
2608 "so you cannot see what you are typing.  If you are not worried about Tempest "
2609 "attacks and there is no one else in the room you can specify this flag to "
2610 "see what you are typing."
2611 msgstr ""
2612
2613 #. type: =item
2614 #: ../cat/virt-ls.pod:321
2615 #, fuzzy
2616 #| msgid "B<--no-dest-paths>"
2617 msgid "B<--extra-stats>"
2618 msgstr "B<--no-dest-paths>"
2619
2620 #. type: textblock
2621 #: ../cat/virt-ls.pod:323
2622 msgid "Display extra stats."
2623 msgstr ""
2624
2625 #. type: verbatim
2626 #: ../cat/virt-ls.pod:339
2627 #, fuzzy, no-wrap
2628 #| msgid ""
2629 #| " guestfish --format=raw -a disk.img\n"
2630 #| "\n"
2631 msgid ""
2632 " virt-ls --format=raw -a disk.img /dir\n"
2633 "\n"
2634 msgstr ""
2635 " guestfish --format=raw -a disk.img\n"
2636 "\n"
2637
2638 #. type: verbatim
2639 #: ../cat/virt-ls.pod:343
2640 #, fuzzy, no-wrap
2641 #| msgid ""
2642 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2643 #| "\n"
2644 msgid ""
2645 " virt-ls --format=raw -a disk.img --format -a another.img /dir\n"
2646 "\n"
2647 msgstr ""
2648 " guestfish --format=raw -a disk.img --format -a another.img\n"
2649 "\n"
2650
2651 #. type: textblock
2652 #: ../cat/virt-ls.pod:356
2653 msgid "Display file sizes in human-readable format."
2654 msgstr ""
2655
2656 #. type: =item
2657 #: ../cat/virt-ls.pod:370
2658 msgid "B<-R>"
2659 msgstr ""
2660
2661 #. type: =item
2662 #: ../cat/virt-ls.pod:372
2663 #, fuzzy
2664 #| msgid "B<--live>"
2665 msgid "B<--recursive>"
2666 msgstr "B<--live>"
2667
2668 #. type: textblock
2669 #: ../cat/virt-ls.pod:374
2670 msgid ""
2671 "Select the mode.  With neither of these options, C<virt-ls> produces a "
2672 "simple, flat list of the files in the named directory.  See L</SIMPLE "
2673 "LISTING>."
2674 msgstr ""
2675
2676 #. type: textblock
2677 #: ../cat/virt-ls.pod:378
2678 msgid ""
2679 "C<virt-ls -l> produces a \"long listing\", which shows more detail.  See L</"
2680 "LONG LISTING>."
2681 msgstr ""
2682
2683 #. type: textblock
2684 #: ../cat/virt-ls.pod:381
2685 msgid ""
2686 "C<virt-ls -R> produces a recursive list of files starting at the named "
2687 "directory.  See L</RECURSIVE LISTING>."
2688 msgstr ""
2689
2690 #. type: textblock
2691 #: ../cat/virt-ls.pod:384
2692 msgid ""
2693 "C<virt-ls -lR> produces a recursive long listing which can be more easily "
2694 "parsed.  See L</RECURSIVE LONG LISTING>."
2695 msgstr ""
2696
2697 #. type: =item
2698 #: ../cat/virt-ls.pod:387
2699 #, fuzzy
2700 #| msgid "B<--live>"
2701 msgid "B<--times>"
2702 msgstr "B<--live>"
2703
2704 #. type: textblock
2705 #: ../cat/virt-ls.pod:389
2706 msgid "Display time fields."
2707 msgstr ""
2708
2709 #. type: =item
2710 #: ../cat/virt-ls.pod:394
2711 #, fuzzy
2712 #| msgid "B<--echo-keys>"
2713 msgid "B<--time-days>"
2714 msgstr "B<--echo-keys>"
2715
2716 #. type: textblock
2717 #: ../cat/virt-ls.pod:396
2718 msgid "Display time fields as days before now (negative if in the future)."
2719 msgstr ""
2720
2721 #. type: textblock
2722 #: ../cat/virt-ls.pod:398
2723 msgid ""
2724 "Note that C<0> in output means \"up to 1 day before now\", or that the age "
2725 "of the file is between 0 and 86399 seconds."
2726 msgstr ""
2727
2728 #. type: =item
2729 #: ../cat/virt-ls.pod:404
2730 #, fuzzy
2731 #| msgid "B<--live>"
2732 msgid "B<--time-relative>"
2733 msgstr "B<--live>"
2734
2735 #. type: textblock
2736 #: ../cat/virt-ls.pod:406
2737 msgid "Display time fields as seconds before now (negative if in the future)."
2738 msgstr ""
2739
2740 #. type: =item
2741 #: ../cat/virt-ls.pod:411
2742 #, fuzzy
2743 #| msgid "I<--timeout N>"
2744 msgid "B<--time-t>"
2745 msgstr "I<--timeout N>"
2746
2747 #. type: textblock
2748 #: ../cat/virt-ls.pod:413
2749 msgid "Display time fields as seconds since the Unix epoch."
2750 msgstr ""
2751
2752 #. type: =item
2753 #: ../cat/virt-ls.pod:418
2754 #, fuzzy
2755 #| msgid "B<--csh>"
2756 msgid "B<--uids>"
2757 msgstr "B<--csh>"
2758
2759 #. type: textblock
2760 #: ../cat/virt-ls.pod:420
2761 msgid "Display UID and GID fields."
2762 msgstr ""
2763
2764 #. type: textblock
2765 #: ../cat/virt-ls.pod:445
2766 msgid "Previous versions of virt-ls allowed you to write either:"
2767 msgstr ""
2768
2769 #. type: verbatim
2770 #: ../cat/virt-ls.pod:447
2771 #, fuzzy, no-wrap
2772 #| msgid ""
2773 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2774 #| "\n"
2775 msgid ""
2776 " virt-ls disk.img [disk.img ...] /dir\n"
2777 "\n"
2778 msgstr ""
2779 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2780 "\n"
2781
2782 #. type: verbatim
2783 #: ../cat/virt-ls.pod:451
2784 #, fuzzy, no-wrap
2785 #| msgid ""
2786 #| " inspect-get-hostname root\n"
2787 #| "\n"
2788 msgid ""
2789 " virt-ls guestname /dir\n"
2790 "\n"
2791 msgstr ""
2792 " inspect-get-hostname корінь\n"
2793 "\n"
2794
2795 #. type: textblock
2796 #: ../cat/virt-ls.pod:497
2797 #, fuzzy
2798 #| msgid ""
2799 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2800 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
2801 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2802 msgid ""
2803 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-"
2804 "tar-out(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
2805 "L<http://libguestfs.org/>."
2806 msgstr ""
2807 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
2808 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
2809 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
2810
2811 #. type: textblock
2812 #: ../cat/virt-ls.pod:513 ../df/virt-df.pod:241 ../edit/virt-edit.pod:374
2813 #: ../rescue/virt-rescue.pod:302
2814 #, fuzzy
2815 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
2816 msgid "Copyright (C) 2009-2011 Red Hat Inc."
2817 msgstr "© Red Hat Inc., 2009–2010"
2818
2819 #. type: textblock
2820 #: ../df/virt-df.pod:5
2821 msgid "virt-df - Display free space on virtual filesystems"
2822 msgstr ""
2823
2824 #. type: verbatim
2825 #: ../df/virt-df.pod:9
2826 #, fuzzy, no-wrap
2827 #| msgid ""
2828 #| " virt-list-partitions [--options] domname\n"
2829 #| "\n"
2830 msgid ""
2831 " virt-df [--options]\n"
2832 "\n"
2833 msgstr ""
2834 " virt-list-partitions [--параметри] назва_домену\n"
2835 "\n"
2836
2837 #. type: verbatim
2838 #: ../df/virt-df.pod:11
2839 #, fuzzy, no-wrap
2840 #| msgid ""
2841 #| " virt-list-partitions [--options] domname\n"
2842 #| "\n"
2843 msgid ""
2844 " virt-df [--options] -d domname\n"
2845 "\n"
2846 msgstr ""
2847 " virt-list-partitions [--параметри] назва_домену\n"
2848 "\n"
2849
2850 #. type: verbatim
2851 #: ../df/virt-df.pod:13
2852 #, fuzzy, no-wrap
2853 #| msgid ""
2854 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2855 #| "\n"
2856 msgid ""
2857 " virt-df [--options] -a disk.img [-a disk.img ...]\n"
2858 "\n"
2859 msgstr ""
2860 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2861 "\n"
2862
2863 #. type: verbatim
2864 #: ../df/virt-df.pod:17
2865 #, fuzzy, no-wrap
2866 #| msgid ""
2867 #| " virt-list-partitions [--options] domname\n"
2868 #| "\n"
2869 msgid ""
2870 " virt-df [--options] domname\n"
2871 "\n"
2872 msgstr ""
2873 " virt-list-partitions [--параметри] назва_домену\n"
2874 "\n"
2875
2876 #. type: verbatim
2877 #: ../df/virt-df.pod:19
2878 #, fuzzy, no-wrap
2879 #| msgid ""
2880 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
2881 #| "\n"
2882 msgid ""
2883 " virt-df [--options] disk.img [disk.img ...]\n"
2884 "\n"
2885 msgstr ""
2886 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
2887 "\n"
2888
2889 #. type: textblock
2890 #: ../df/virt-df.pod:23
2891 msgid ""
2892 "C<virt-df> is a command line tool to display free space on virtual machine "
2893 "filesystems.  Unlike other tools, it doesn't just display the size of disk "
2894 "allocated to a virtual machine, but can look inside disk images to see how "
2895 "much space is really being used."
2896 msgstr ""
2897
2898 #. type: textblock
2899 #: ../df/virt-df.pod:28
2900 msgid ""
2901 "If used without any I<-a> or I<-d> arguments, C<virt-df> checks with libvirt "
2902 "to get a list of all active and inactive guests, and performs a C<df>-type "
2903 "operation on each one in turn, printing out the results."
2904 msgstr ""
2905
2906 #. type: textblock
2907 #: ../df/virt-df.pod:32
2908 msgid ""
2909 "If any I<-a> or I<-d> arguments are specified, C<virt-df> performs a C<df>-"
2910 "type operation on either the single named libvirt domain, or on the disk "
2911 "image(s) listed on the command line (which must all belong to a single VM).  "
2912 "In this mode (with arguments), C<virt-df> will I<only work for a single "
2913 "guest>.  If you want to run on multiple guests, then you have to invoke "
2914 "C<virt-df> multiple times."
2915 msgstr ""
2916
2917 #. type: textblock
2918 #: ../df/virt-df.pod:39
2919 msgid ""
2920 "Use the I<--csv> option to get a format which can be easily parsed by other "
2921 "programs.  Other options are similar to the standard L<df(1)> command."
2922 msgstr ""
2923
2924 #. type: textblock
2925 #: ../df/virt-df.pod:45
2926 msgid ""
2927 "Show disk usage for a single libvirt guest called C<F14x64>.  Make the "
2928 "output human-readable:"
2929 msgstr ""
2930
2931 #. type: verbatim
2932 #: ../df/virt-df.pod:48
2933 #, no-wrap
2934 msgid ""
2935 " # virt-df -d F14x64 -h\n"
2936 " Filesystem                       Size     Used  Available  Use%\n"
2937 " F14x64:/dev/sda1                 484M      66M       393M   14%\n"
2938 " F14x64:/dev/vg_f13x64/lv_root    7.4G     3.4G       4.0G   46%\n"
2939 "\n"
2940 msgstr ""
2941
2942 #. type: textblock
2943 #: ../df/virt-df.pod:53
2944 msgid "Show disk usage for a disk image file called C<test.img>:"
2945 msgstr ""
2946
2947 #. type: verbatim
2948 #: ../df/virt-df.pod:55
2949 #, no-wrap
2950 msgid ""
2951 " $ virt-df -a test1.img\n"
2952 " Filesystem                  1K-blocks     Used  Available  Use%\n"
2953 " test1.img:/dev/sda1             99099     1551      92432    2%\n"
2954 "\n"
2955 msgstr ""
2956
2957 #. type: verbatim
2958 #: ../df/virt-df.pod:112
2959 #, fuzzy, no-wrap
2960 #| msgid ""
2961 #| " guestfish --format=raw -a disk.img\n"
2962 #| "\n"
2963 msgid ""
2964 " virt-df --format=raw -a disk.img\n"
2965 "\n"
2966 msgstr ""
2967 " guestfish --format=raw -a disk.img\n"
2968 "\n"
2969
2970 #. type: verbatim
2971 #: ../df/virt-df.pod:116
2972 #, fuzzy, no-wrap
2973 #| msgid ""
2974 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
2975 #| "\n"
2976 msgid ""
2977 " virt-df --format=raw -a disk.img --format -a another.img\n"
2978 "\n"
2979 msgstr ""
2980 " guestfish --format=raw -a disk.img --format -a another.img\n"
2981 "\n"
2982
2983 #. type: textblock
2984 #: ../df/virt-df.pod:129
2985 msgid "Print sizes in human-readable format."
2986 msgstr ""
2987
2988 #. type: textblock
2989 #: ../df/virt-df.pod:131
2990 msgid "You are not allowed to use I<-h> and I<--csv> at the same time."
2991 msgstr ""
2992
2993 #. type: =item
2994 #: ../df/virt-df.pod:133 ../fish/guestfish.pod:258 ../fuse/guestmount.pod:155
2995 msgid "B<-i>"
2996 msgstr "B<-i>"
2997
2998 #. type: =item
2999 #: ../df/virt-df.pod:135
3000 #, fuzzy
3001 #| msgid "B<--live>"
3002 msgid "B<--inodes>"
3003 msgstr "B<--live>"
3004
3005 #. type: textblock
3006 #: ../df/virt-df.pod:137
3007 msgid "Print inodes instead of blocks."
3008 msgstr ""
3009
3010 #. type: =item
3011 #: ../df/virt-df.pod:139
3012 #, fuzzy
3013 #| msgid "B<--merge>"
3014 msgid "B<--one-per-guest>"
3015 msgstr "B<--merge>"
3016
3017 #. type: textblock
3018 #: ../df/virt-df.pod:141
3019 msgid ""
3020 "Run one libguestfs appliance per guest.  Normally C<virt-df> will add the "
3021 "disks from several guests to a single libguestfs appliance."
3022 msgstr ""
3023
3024 #. type: textblock
3025 #: ../df/virt-df.pod:144
3026 msgid "You might use this option in the following circumstances:"
3027 msgstr ""
3028
3029 #. type: =item
3030 #: ../df/virt-df.pod:148 ../df/virt-df.pod:154 ../edit/virt-edit.pod:266
3031 #: ../edit/virt-edit.pod:271 ../edit/virt-edit.pod:276
3032 #: ../edit/virt-edit.pod:287 ../edit/virt-edit.pod:291
3033 #: ../examples/guestfs-recipes.pod:98 ../examples/guestfs-recipes.pod:102
3034 #: ../examples/guestfs-recipes.pod:106 ../examples/guestfs-recipes.pod:132
3035 #: ../examples/guestfs-recipes.pod:137 ../examples/guestfs-recipes.pod:227
3036 #: ../examples/guestfs-recipes.pod:231 ../examples/guestfs-recipes.pod:235
3037 #: ../examples/guestfs-recipes.pod:239 ../examples/guestfs-recipes.pod:243
3038 #: ../fish/guestfish-actions.pod:13 ../fish/guestfish-actions.pod:20
3039 #: ../fish/guestfish-actions.pod:390 ../fish/guestfish-actions.pod:398
3040 #: ../fish/guestfish-actions.pod:405 ../fish/guestfish-actions.pod:412
3041 #: ../fish/guestfish-actions.pod:1139 ../fish/guestfish-actions.pod:1143
3042 #: ../fish/guestfish-actions.pod:1147 ../fish/guestfish-actions.pod:1151
3043 #: ../fish/guestfish-actions.pod:1159 ../fish/guestfish-actions.pod:1163
3044 #: ../fish/guestfish-actions.pod:1167 ../fish/guestfish-actions.pod:1177
3045 #: ../fish/guestfish-actions.pod:1181 ../fish/guestfish-actions.pod:1185
3046 #: ../fish/guestfish-actions.pod:1275 ../fish/guestfish-actions.pod:1279
3047 #: ../fish/guestfish-actions.pod:1284 ../fish/guestfish-actions.pod:1289
3048 #: ../fish/guestfish-actions.pod:1331 ../fish/guestfish-actions.pod:1335
3049 #: ../fish/guestfish-actions.pod:1340 ../fish/guestfish-actions.pod:1596
3050 #: ../fish/guestfish-actions.pod:1603 ../fish/guestfish-actions.pod:1610
3051 #: ../fish/guestfish-actions.pod:2005 ../fish/guestfish-actions.pod:2011
3052 #: ../fish/guestfish-actions.pod:2019 ../fish/guestfish-actions.pod:2026
3053 #: ../fish/guestfish-actions.pod:2033 ../fish/guestfish.pod:445
3054 #: ../fish/guestfish.pod:449 ../fish/guestfish.pod:453
3055 #: ../fish/guestfish.pod:457 ../inspector/virt-inspector.pod:393
3056 #: ../inspector/virt-inspector.pod:397 ../resize/virt-resize.pod:282
3057 #: ../resize/virt-resize.pod:286 ../resize/virt-resize.pod:295
3058 #: ../resize/virt-resize.pod:301 ../sparsify/virt-sparsify.pod:32
3059 #: ../sparsify/virt-sparsify.pod:39 ../sparsify/virt-sparsify.pod:43
3060 #: ../sparsify/virt-sparsify.pod:49 ../sparsify/virt-sparsify.pod:54
3061 #: ../sparsify/virt-sparsify.pod:58 ../sparsify/virt-sparsify.pod:64
3062 #: ../src/guestfs-actions.pod:22 ../src/guestfs-actions.pod:29
3063 #: ../src/guestfs-actions.pod:588 ../src/guestfs-actions.pod:596
3064 #: ../src/guestfs-actions.pod:603 ../src/guestfs-actions.pod:610
3065 #: ../src/guestfs-actions.pod:1778 ../src/guestfs-actions.pod:1782
3066 #: ../src/guestfs-actions.pod:1786 ../src/guestfs-actions.pod:1790
3067 #: ../src/guestfs-actions.pod:1798 ../src/guestfs-actions.pod:1802
3068 #: ../src/guestfs-actions.pod:1806 ../src/guestfs-actions.pod:1816
3069 #: ../src/guestfs-actions.pod:1820 ../src/guestfs-actions.pod:1824
3070 #: ../src/guestfs-actions.pod:1962 ../src/guestfs-actions.pod:1966
3071 #: ../src/guestfs-actions.pod:1971 ../src/guestfs-actions.pod:1976
3072 #: ../src/guestfs-actions.pod:2037 ../src/guestfs-actions.pod:2041
3073 #: ../src/guestfs-actions.pod:2046 ../src/guestfs-actions.pod:2461
3074 #: ../src/guestfs-actions.pod:2468 ../src/guestfs-actions.pod:2475
3075 #: ../src/guestfs-actions.pod:3012 ../src/guestfs-actions.pod:3018
3076 #: ../src/guestfs-actions.pod:3026 ../src/guestfs-actions.pod:3033
3077 #: ../src/guestfs-actions.pod:3040 ../src/guestfs.pod:388
3078 #: ../src/guestfs.pod:393 ../src/guestfs.pod:398 ../src/guestfs.pod:402
3079 #: ../src/guestfs.pod:407 ../src/guestfs.pod:411 ../src/guestfs.pod:416
3080 #: ../src/guestfs.pod:421 ../src/guestfs.pod:1094 ../src/guestfs.pod:1098
3081 #: ../src/guestfs.pod:1102 ../src/guestfs.pod:1107 ../src/guestfs.pod:1115
3082 #: ../src/guestfs.pod:1134 ../src/guestfs.pod:1142 ../src/guestfs.pod:1164
3083 #: ../src/guestfs.pod:1168 ../src/guestfs.pod:1172 ../src/guestfs.pod:1176
3084 #: ../src/guestfs.pod:1180 ../src/guestfs.pod:1184 ../src/guestfs.pod:1674
3085 #: ../src/guestfs.pod:1679 ../src/guestfs.pod:1683 ../src/guestfs.pod:1785
3086 #: ../src/guestfs.pod:1790 ../src/guestfs.pod:1794 ../src/guestfs.pod:1804
3087 #: ../src/guestfs.pod:2093 ../src/guestfs.pod:2098 ../src/guestfs.pod:2104
3088 #: ../src/guestfs.pod:2112 ../src/guestfs.pod:2559 ../src/guestfs.pod:2565
3089 #: ../src/guestfs.pod:2570 ../src/guestfs.pod:2576 ../src/guestfs.pod:2971
3090 #: ../src/guestfs.pod:2976 ../src/guestfs.pod:2980 ../src/guestfs.pod:2984
3091 #: ../src/guestfs.pod:2988 ../src/guestfs.pod:3002 ../src/guestfs.pod:3007
3092 #: ../src/guestfs.pod:3236 ../src/guestfs.pod:3240 ../src/guestfs.pod:3244
3093 #: ../src/guestfs.pod:3248 ../tools/virt-win-reg.pl:197
3094 #: ../tools/virt-win-reg.pl:202 ../tools/virt-win-reg.pl:208
3095 #: ../tools/virt-win-reg.pl:710 ../tools/virt-win-reg.pl:716
3096 #: ../tools/virt-win-reg.pl:722
3097 msgid "*"
3098 msgstr "*"
3099
3100 #. type: textblock
3101 #: ../df/virt-df.pod:150
3102 msgid ""
3103 "If you think an untrusted guest might actively try to exploit the libguestfs "
3104 "appliance kernel, then this prevents one guest from interfering with the "
3105 "stats printed for another guest."
3106 msgstr ""
3107
3108 #. type: textblock
3109 #: ../df/virt-df.pod:156
3110 msgid ""
3111 "If the kernel has a bug which stops it from accessing a filesystem in one "
3112 "guest (see for example RHBZ#635373) then this allows libguestfs to continue "
3113 "and report stats for further guests."
3114 msgstr ""
3115
3116 #. type: textblock
3117 #: ../df/virt-df.pod:165
3118 msgid ""
3119 "Print UUIDs instead of names.  This is useful for following a guest even "
3120 "when the guest is migrated or renamed, or when two guests happen to have the "
3121 "same name."
3122 msgstr ""
3123
3124 #. type: textblock
3125 #: ../df/virt-df.pod:169
3126 msgid ""
3127 "Note that only domains that we fetch from libvirt come with UUIDs.  For disk "
3128 "images, we still print the disk image name even when this option is "
3129 "specified."
3130 msgstr ""
3131
3132 #. type: textblock
3133 #: ../df/virt-df.pod:229
3134 msgid ""
3135 "L<df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<http://"
3136 "libguestfs.org/>."
3137 msgstr ""
3138
3139 #. type: textblock
3140 #: ../edit/virt-edit.pod:5
3141 msgid "virt-edit - Edit a file in a virtual machine"
3142 msgstr ""
3143
3144 #. type: verbatim
3145 #: ../edit/virt-edit.pod:9
3146 #, fuzzy, no-wrap
3147 #| msgid ""
3148 #| " virt-list-partitions [--options] domname\n"
3149 #| "\n"
3150 msgid ""
3151 " virt-edit [--options] -d domname file [file ...]\n"
3152 "\n"
3153 msgstr ""
3154 " virt-list-partitions [--параметри] назва_домену\n"
3155 "\n"
3156
3157 #. type: verbatim
3158 #: ../edit/virt-edit.pod:11
3159 #, fuzzy, no-wrap
3160 #| msgid ""
3161 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
3162 #| "\n"
3163 msgid ""
3164 " virt-edit [--options] -a disk.img [-a disk.img ...] file [file ...]\n"
3165 "\n"
3166 msgstr ""
3167 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
3168 "\n"
3169
3170 #. type: verbatim
3171 #: ../edit/virt-edit.pod:13
3172 #, no-wrap
3173 msgid ""
3174 " virt-edit [-d domname|-a disk.img] file -e 'expr'\n"
3175 "\n"
3176 msgstr ""
3177
3178 #. type: verbatim
3179 #: ../edit/virt-edit.pod:17
3180 #, no-wrap
3181 msgid ""
3182 " virt-edit domname file\n"
3183 "\n"
3184 msgstr ""
3185
3186 #. type: verbatim
3187 #: ../edit/virt-edit.pod:19 ../edit/virt-edit.pod:183
3188 #, fuzzy, no-wrap
3189 #| msgid ""
3190 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
3191 #| "\n"
3192 msgid ""
3193 " virt-edit disk.img [disk.img ...] file\n"
3194 "\n"
3195 msgstr ""
3196 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
3197 "\n"
3198
3199 #. type: =head1
3200 #: ../edit/virt-edit.pod:21 ../fish/guestfish.pod:23
3201 #: ../fish/virt-copy-in.pod:13 ../fish/virt-tar-in.pod:15
3202 #: ../fuse/guestmount.pod:15 ../rescue/virt-rescue.pod:19
3203 #: ../tools/virt-tar.pl:64 ../tools/virt-win-reg.pl:51
3204 msgid "WARNING"
3205 msgstr "ПОПЕРЕДЖЕННЯ"
3206
3207 #. type: textblock
3208 #: ../edit/virt-edit.pod:23
3209 msgid ""
3210 "You must I<not> use C<virt-edit> on live virtual machines.  If you do this, "
3211 "you risk disk corruption in the VM.  C<virt-edit> tries to stop you from "
3212 "doing this, but doesn't catch all cases."
3213 msgstr ""
3214
3215 #. type: textblock
3216 #: ../edit/virt-edit.pod:29
3217 msgid ""
3218 "C<virt-edit> is a command line tool to edit C<file> where each C<file> "
3219 "exists in the named virtual machine (or disk image)."
3220 msgstr ""
3221
3222 #. type: textblock
3223 #: ../edit/virt-edit.pod:32
3224 msgid ""
3225 "Multiple filenames can be given, in which case they are each edited in "
3226 "turn.  Each filename must be a full path, starting at the root directory "
3227 "(starting with '/')."
3228 msgstr ""
3229
3230 #. type: textblock
3231 #: ../edit/virt-edit.pod:36
3232 msgid "If you want to just view a file, use L<virt-cat(1)>."
3233 msgstr ""
3234
3235 #. type: textblock
3236 #: ../edit/virt-edit.pod:38
3237 msgid ""
3238 "For more complex cases you should look at the L<guestfish(1)> tool (see L</"
3239 "USING GUESTFISH> below)."
3240 msgstr ""
3241
3242 #. type: textblock
3243 #: ../edit/virt-edit.pod:41
3244 msgid ""
3245 "C<virt-edit> cannot be used to create a new file.  L<guestfish(1)> can do "
3246 "that and much more."
3247 msgstr ""
3248
3249 #. type: textblock
3250 #: ../edit/virt-edit.pod:46
3251 msgid "Edit the named files interactively:"
3252 msgstr ""
3253
3254 #. type: verbatim
3255 #: ../edit/virt-edit.pod:48
3256 #, no-wrap
3257 msgid ""
3258 " virt-edit -d mydomain /boot/grub/grub.conf\n"
3259 "\n"
3260 msgstr ""
3261
3262 #. type: verbatim
3263 #: ../edit/virt-edit.pod:50
3264 #, no-wrap
3265 msgid ""
3266 " virt-edit -d mydomain /etc/passwd\n"
3267 "\n"
3268 msgstr ""
3269
3270 #. type: textblock
3271 #: ../edit/virt-edit.pod:52
3272 msgid "For Windows guests, some Windows paths are understood:"
3273 msgstr ""
3274
3275 #. type: verbatim
3276 #: ../edit/virt-edit.pod:54
3277 #, no-wrap
3278 msgid ""
3279 " virt-edit -d mywindomain 'c:\\autoexec.bat'\n"
3280 "\n"
3281 msgstr ""
3282
3283 #. type: textblock
3284 #: ../edit/virt-edit.pod:56
3285 msgid ""
3286 "If Perl is installed, you can also edit files non-interactively (see L</NON-"
3287 "INTERACTIVE EDITING> below).  To change the init default level to 5:"
3288 msgstr ""
3289
3290 #. type: verbatim
3291 #: ../edit/virt-edit.pod:60
3292 #, no-wrap
3293 msgid ""
3294 " virt-edit -d mydomain /etc/inittab -e 's/^id:.*/id:5:initdefault:/'\n"
3295 "\n"
3296 msgstr ""
3297
3298 #. type: =item
3299 #: ../edit/virt-edit.pod:81
3300 msgid "B<-b> extension"
3301 msgstr ""
3302
3303 #. type: =item
3304 #: ../edit/virt-edit.pod:83
3305 msgid "B<--backup> extension"
3306 msgstr ""
3307
3308 #. type: textblock
3309 #: ../edit/virt-edit.pod:85
3310 msgid ""
3311 "Create a backup of the original file I<in the guest disk image>.  The backup "
3312 "has the original filename with C<extension> added."
3313 msgstr ""
3314
3315 #. type: textblock
3316 #: ../edit/virt-edit.pod:88
3317 msgid ""
3318 "Usually the first character of C<extension> would be a dot C<.> so you would "
3319 "write:"
3320 msgstr ""
3321
3322 #. type: verbatim
3323 #: ../edit/virt-edit.pod:91
3324 #, no-wrap
3325 msgid ""
3326 " virt-edit -b .orig [etc]\n"
3327 "\n"
3328 msgstr ""
3329
3330 #. type: textblock
3331 #: ../edit/virt-edit.pod:93
3332 msgid "By default, no backup file is made."
3333 msgstr ""
3334
3335 #. type: =item
3336 #: ../edit/virt-edit.pod:95 ../fish/guestfish.pod:181
3337 #: ../fuse/guestmount.pod:96 ../inspector/virt-inspector.pod:74
3338 #: ../tools/virt-list-filesystems.pl:77 ../tools/virt-list-partitions.pl:78
3339 #: ../tools/virt-tar.pl:127 ../tools/virt-win-reg.pl:128
3340 msgid "B<-c URI>"
3341 msgstr "B<-c адреса>"
3342
3343 #. type: =item
3344 #: ../edit/virt-edit.pod:97 ../fish/guestfish.pod:183
3345 #: ../fuse/guestmount.pod:98 ../inspector/virt-inspector.pod:76
3346 #: ../tools/virt-list-filesystems.pl:79 ../tools/virt-list-partitions.pl:80
3347 #: ../tools/virt-tar.pl:129 ../tools/virt-win-reg.pl:130
3348 msgid "B<--connect URI>"
3349 msgstr "B<--connect адреса>"
3350
3351 #. type: textblock
3352 #: ../edit/virt-edit.pod:102 ../tools/virt-list-filesystems.pl:84
3353 #: ../tools/virt-list-partitions.pl:85 ../tools/virt-tar.pl:134
3354 #: ../tools/virt-win-reg.pl:135
3355 msgid ""
3356 "If you specify guest block devices directly, then libvirt is not used at all."
3357 msgstr ""
3358
3359 #. type: textblock
3360 #: ../edit/virt-edit.pod:114
3361 msgid ""
3362 "When prompting for keys and passphrases, virt-edit normally turns echoing "
3363 "off so you cannot see what you are typing.  If you are not worried about "
3364 "Tempest attacks and there is no one else in the room you can specify this "
3365 "flag to see what you are typing."
3366 msgstr ""
3367
3368 #. type: =item
3369 #: ../edit/virt-edit.pod:119
3370 msgid "B<-e> EXPR"
3371 msgstr ""
3372
3373 #. type: =item
3374 #: ../edit/virt-edit.pod:121
3375 #, fuzzy
3376 #| msgid "B<--help>"
3377 msgid "B<--expr> EXPR"
3378 msgstr "B<--help>"
3379
3380 #. type: textblock
3381 #: ../edit/virt-edit.pod:123
3382 msgid ""
3383 "Instead of launching the external editor, non-interactively apply the Perl "
3384 "expression C<EXPR> to each line in the file.  See L</NON-INTERACTIVE "
3385 "EDITING> below."
3386 msgstr ""
3387
3388 #. type: textblock
3389 #: ../edit/virt-edit.pod:127
3390 msgid ""
3391 "Be careful to properly quote the expression to prevent it from being altered "
3392 "by the shell."
3393 msgstr ""
3394
3395 #. type: textblock
3396 #: ../edit/virt-edit.pod:130
3397 msgid "Note that this option is only available when Perl 5 is installed."
3398 msgstr ""
3399
3400 #. type: =item
3401 #: ../edit/virt-edit.pod:132
3402 #, fuzzy
3403 #| msgid "B<--format=raw|qcow2|..>"
3404 msgid "B<--format> raw|qcow2|..."
3405 msgstr "B<--format=raw|qcow2|..>"
3406
3407 #. type: verbatim
3408 #: ../edit/virt-edit.pod:143
3409 #, fuzzy, no-wrap
3410 #| msgid ""
3411 #| " guestfish --format=raw -a disk.img\n"
3412 #| "\n"
3413 msgid ""
3414 " virt-edit --format=raw -a disk.img file\n"
3415 "\n"
3416 msgstr ""
3417 " guestfish --format=raw -a disk.img\n"
3418 "\n"
3419
3420 #. type: verbatim
3421 #: ../edit/virt-edit.pod:147
3422 #, fuzzy, no-wrap
3423 #| msgid ""
3424 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3425 #| "\n"
3426 msgid ""
3427 " virt-edit --format=raw -a disk.img --format -a another.img file\n"
3428 "\n"
3429 msgstr ""
3430 " guestfish --format=raw -a disk.img --format -a another.img\n"
3431 "\n"
3432
3433 #. type: textblock
3434 #: ../edit/virt-edit.pod:181
3435 msgid "Previous versions of virt-edit allowed you to write either:"
3436 msgstr ""
3437
3438 #. type: verbatim
3439 #: ../edit/virt-edit.pod:187
3440 #, fuzzy, no-wrap
3441 #| msgid ""
3442 #| " edit filename\n"
3443 #| "\n"
3444 msgid ""
3445 " virt-edit guestname file\n"
3446 "\n"
3447 msgstr ""
3448 " edit назва_файла\n"
3449 "\n"
3450
3451 #. type: =head1
3452 #: ../edit/virt-edit.pod:195
3453 msgid "NON-INTERACTIVE EDITING"
3454 msgstr ""
3455
3456 #. type: textblock
3457 #: ../edit/virt-edit.pod:197
3458 msgid ""
3459 "C<virt-edit> normally calls out to C<$EDITOR> (or vi) so the system "
3460 "administrator can interactively edit the file."
3461 msgstr ""
3462
3463 #. type: textblock
3464 #: ../edit/virt-edit.pod:200
3465 msgid ""
3466 "There are two ways also to use C<virt-edit> from scripts in order to make "
3467 "automated edits to files.  (Note that although you I<can> use C<virt-edit> "
3468 "like this, it's less error-prone to write scripts directly using the "
3469 "libguestfs API and Augeas for configuration file editing.)"
3470 msgstr ""
3471
3472 #. type: textblock
3473 #: ../edit/virt-edit.pod:206
3474 msgid ""
3475 "The first method is to temporarily set C<$EDITOR> to any script or program "
3476 "you want to run.  The script is invoked as C<$EDITOR tmpfile> and it should "
3477 "update C<tmpfile> in place however it likes."
3478 msgstr ""
3479
3480 #. type: textblock
3481 #: ../edit/virt-edit.pod:210
3482 msgid ""
3483 "The second method is to use the I<-e> parameter of C<virt-edit> to run a "
3484 "short Perl snippet in the style of L<sed(1)>.  For example to replace all "
3485 "instances of C<foo> with C<bar> in a file:"
3486 msgstr ""
3487
3488 #. type: verbatim
3489 #: ../edit/virt-edit.pod:214
3490 #, no-wrap
3491 msgid ""
3492 " virt-edit -d domname filename -e 's/foo/bar/'\n"
3493 "\n"
3494 msgstr ""
3495
3496 #. type: textblock
3497 #: ../edit/virt-edit.pod:216
3498 msgid ""
3499 "The full power of Perl regular expressions can be used (see L<perlre(1)>).  "
3500 "For example to delete root's password you could do:"
3501 msgstr ""
3502
3503 #. type: verbatim
3504 #: ../edit/virt-edit.pod:219
3505 #, no-wrap
3506 msgid ""
3507 " virt-edit -d domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
3508 "\n"
3509 msgstr ""
3510
3511 #. type: textblock
3512 #: ../edit/virt-edit.pod:221
3513 msgid ""
3514 "What really happens is that the snippet is evaluated as a Perl expression "
3515 "for each line of the file.  The line, including the final C<\\n>, is passed "
3516 "in C<$_> and the expression should update C<$_> or leave it unchanged."
3517 msgstr ""
3518
3519 #. type: textblock
3520 #: ../edit/virt-edit.pod:226
3521 msgid ""
3522 "To delete a line, set C<$_> to the empty string.  For example, to delete the "
3523 "C<apache> user account from the password file you can do:"
3524 msgstr ""
3525
3526 #. type: verbatim
3527 #: ../edit/virt-edit.pod:229
3528 #, no-wrap
3529 msgid ""
3530 " virt-edit -d mydomain /etc/passwd -e '$_ = \"\" if /^apache:/'\n"
3531 "\n"
3532 msgstr ""
3533
3534 #. type: textblock
3535 #: ../edit/virt-edit.pod:231
3536 msgid ""
3537 "To insert a line, prepend or append it to C<$_>.  However appending lines to "
3538 "the end of the file is rather difficult this way since there is no concept "
3539 "of \"last line of the file\" - your expression just doesn't get called "
3540 "again.  You might want to use the first method (setting C<$EDITOR>) if you "
3541 "want to do this."
3542 msgstr ""
3543
3544 #. type: textblock
3545 #: ../edit/virt-edit.pod:237
3546 msgid ""
3547 "The variable C<$lineno> contains the current line number.  As is "
3548 "traditional, the first line in the file is number C<1>."
3549 msgstr ""
3550
3551 #. type: textblock
3552 #: ../edit/virt-edit.pod:240
3553 msgid ""
3554 "The return value from the expression is ignored, but the expression may call "
3555 "C<die> in order to abort the whole program, leaving the original file "
3556 "untouched."
3557 msgstr ""
3558
3559 #. type: textblock
3560 #: ../edit/virt-edit.pod:244
3561 msgid ""
3562 "Remember when matching the end of a line that C<$_> may contain the final C<"
3563 "\\n>, or (for DOS files) C<\\r\\n>, or if the file does not end with a "
3564 "newline then neither of these.  Thus to match or substitute some text at the "
3565 "end of a line, use this regular expression:"
3566 msgstr ""
3567
3568 #. type: verbatim
3569 #: ../edit/virt-edit.pod:249
3570 #, no-wrap
3571 msgid ""
3572 " /some text(\\r?\\n)?$/\n"
3573 "\n"
3574 msgstr ""
3575
3576 #. type: textblock
3577 #: ../edit/virt-edit.pod:251
3578 msgid ""
3579 "Alternately, use the perl C<chomp> function, being careful not to chomp C<"
3580 "$_> itself (since that would remove all newlines from the file):"
3581 msgstr ""
3582
3583 #. type: verbatim
3584 #: ../edit/virt-edit.pod:255
3585 #, no-wrap
3586 msgid ""
3587 " my $m = $_; chomp $m; $m =~ /some text$/\n"
3588 "\n"
3589 msgstr ""
3590
3591 #. type: =head1
3592 #: ../edit/virt-edit.pod:257 ../fish/guestfish.pod:858
3593 msgid "WINDOWS PATHS"
3594 msgstr ""
3595
3596 #. type: textblock
3597 #: ../edit/virt-edit.pod:259
3598 msgid ""
3599 "C<virt-edit> has a limited ability to understand Windows drive letters and "
3600 "paths (eg. C<E:\\foo\\bar.txt>)."
3601 msgstr ""
3602
3603 #. type: textblock
3604 #: ../edit/virt-edit.pod:262
3605 msgid "If and only if the guest is running Windows then:"
3606 msgstr ""
3607
3608 #. type: textblock
3609 #: ../edit/virt-edit.pod:268
3610 msgid ""
3611 "Drive letter prefixes like C<C:> are resolved against the Windows Registry "
3612 "to the correct filesystem."
3613 msgstr ""
3614
3615 #. type: textblock
3616 #: ../edit/virt-edit.pod:273
3617 msgid ""
3618 "Any backslash (C<\\>) characters in the path are replaced with forward "
3619 "slashes so that libguestfs can process it."
3620 msgstr ""
3621
3622 #. type: textblock
3623 #: ../edit/virt-edit.pod:278
3624 msgid ""
3625 "The path is resolved case insensitively to locate the file that should be "
3626 "edited."
3627 msgstr ""
3628
3629 #. type: textblock
3630 #: ../edit/virt-edit.pod:283
3631 msgid "There are some known shortcomings:"
3632 msgstr ""
3633
3634 #. type: textblock
3635 #: ../edit/virt-edit.pod:289
3636 msgid "Some NTFS symbolic links may not be followed correctly."
3637 msgstr ""
3638
3639 #. type: textblock
3640 #: ../edit/virt-edit.pod:293
3641 msgid "NTFS junction points that cross filesystems are not followed."
3642 msgstr ""
3643
3644 #. type: textblock
3645 #: ../edit/virt-edit.pod:299
3646 msgid ""
3647 "L<guestfish(1)> is a more powerful, lower level tool which you can use when "
3648 "C<virt-edit> doesn't work."
3649 msgstr ""
3650
3651 #. type: textblock
3652 #: ../edit/virt-edit.pod:302
3653 msgid "Using C<virt-edit> is approximately equivalent to doing:"
3654 msgstr ""
3655
3656 #. type: verbatim
3657 #: ../edit/virt-edit.pod:304
3658 #, fuzzy, no-wrap
3659 #| msgid ""
3660 #| " guestfish --ro -d myguest -i\n"
3661 #| "\n"
3662 msgid ""
3663 " guestfish --rw -i -d domname edit /file\n"
3664 "\n"
3665 msgstr ""
3666 " guestfish --ro -d myguest -i\n"
3667 "\n"
3668
3669 #. type: textblock
3670 #: ../edit/virt-edit.pod:306
3671 msgid ""
3672 "where C<domname> is the name of the libvirt guest, and C</file> is the full "
3673 "path to the file."
3674 msgstr ""
3675
3676 #. type: textblock
3677 #: ../edit/virt-edit.pod:309
3678 msgid ""
3679 "The command above uses libguestfs's guest inspection feature and so does not "
3680 "work on guests that libguestfs cannot inspect, or on things like arbitrary "
3681 "disk images that don't contain guests.  To edit a file on a disk image "
3682 "directly, use:"
3683 msgstr ""
3684
3685 #. type: verbatim
3686 #: ../edit/virt-edit.pod:314
3687 #, fuzzy, no-wrap
3688 #| msgid ""
3689 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
3690 #| "\n"
3691 msgid ""
3692 " guestfish --rw -a disk.img -m /dev/sda1 edit /file\n"
3693 "\n"
3694 msgstr ""
3695 " guestfish --format=raw -a disk.img --format -a another.img\n"
3696 "\n"
3697
3698 #. type: textblock
3699 #: ../edit/virt-edit.pod:316
3700 msgid ""
3701 "where C<disk.img> is the disk image, C</dev/sda1> is the filesystem within "
3702 "the disk image to edit, and C</file> is the full path to the file."
3703 msgstr ""
3704
3705 #. type: textblock
3706 #: ../edit/virt-edit.pod:320
3707 msgid ""
3708 "C<virt-edit> cannot create new files.  Use the guestfish commands C<touch>, "
3709 "C<write> or C<upload> instead:"
3710 msgstr ""
3711
3712 #. type: verbatim
3713 #: ../edit/virt-edit.pod:323
3714 #, fuzzy, no-wrap
3715 #| msgid ""
3716 #| " guestfish --ro -d myguest -i\n"
3717 #| "\n"
3718 msgid ""
3719 " guestfish --rw -i -d domname touch /newfile\n"
3720 "\n"
3721 msgstr ""
3722 " guestfish --ro -d myguest -i\n"
3723 "\n"
3724
3725 #. type: verbatim
3726 #: ../edit/virt-edit.pod:325
3727 #, no-wrap
3728 msgid ""
3729 " guestfish --rw -i -d domname write /newfile \"new content\"\n"
3730 "\n"
3731 msgstr ""
3732
3733 #. type: verbatim
3734 #: ../edit/virt-edit.pod:327
3735 #, no-wrap
3736 msgid ""
3737 " guestfish --rw -i -d domname upload localfile /newfile\n"
3738 "\n"
3739 msgstr ""
3740
3741 #. type: =head1
3742 #: ../edit/virt-edit.pod:329 ../fish/guestfish.pod:1086
3743 #: ../rescue/virt-rescue.pod:261 ../sparsify/virt-sparsify.pod:232
3744 #: ../src/guestfs.pod:3118 ../test-tool/libguestfs-test-tool.pod:95
3745 msgid "ENVIRONMENT VARIABLES"
3746 msgstr "ЗМІННІ СЕРЕДОВИЩА"
3747
3748 #. type: =item
3749 #: ../edit/virt-edit.pod:333
3750 #, fuzzy
3751 #| msgid "EDITOR"
3752 msgid "C<EDITOR>"
3753 msgstr "РЕДАКТОР"
3754
3755 #. type: textblock
3756 #: ../edit/virt-edit.pod:335
3757 msgid ""
3758 "If set, this string is used as the editor.  It may contain arguments, eg. C<"
3759 "\"emacs -nw\">"
3760 msgstr ""
3761
3762 #. type: textblock
3763 #: ../edit/virt-edit.pod:338
3764 msgid "If not set, C<vi> is used."
3765 msgstr ""
3766
3767 #. type: textblock
3768 #: ../edit/virt-edit.pod:356
3769 #, fuzzy
3770 #| msgid ""
3771 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3772 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
3773 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3774 msgid ""
3775 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-"
3776 "tar-in(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, "
3777 "L<http://libguestfs.org/>, L<perl(1)>, L<perlre(1)>."
3778 msgstr ""
3779 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
3780 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
3781 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
3782
3783 #. type: textblock
3784 #: ../erlang/examples/guestfs-erlang.pod:5
3785 msgid "guestfs-erlang - How to use libguestfs from Erlang"
3786 msgstr ""
3787
3788 #. type: verbatim
3789 #: ../erlang/examples/guestfs-erlang.pod:9
3790 #, no-wrap
3791 msgid ""
3792 " {ok, G} = guestfs:create(),\n"
3793 " ok = guestfs:add_drive_opts(G, Disk,\n"
3794 "                             [{format, \"raw\"}, {readonly, true}]),\n"
3795 " ok = guestfs:launch(G),\n"
3796 " [Device] = guestfs:list_devices(G),\n"
3797 " ok = guestfs:close(G).\n"
3798 "\n"
3799 msgstr ""
3800
3801 #. type: textblock
3802 #: ../erlang/examples/guestfs-erlang.pod:18
3803 msgid ""
3804 "This manual page documents how to call libguestfs from the Erlang "
3805 "programming language.  This page just documents the differences from the C "
3806 "API and gives some examples.  If you are not familiar with using libguestfs, "
3807 "you also need to read L<guestfs(3)>."
3808 msgstr ""
3809
3810 #. type: =head2
3811 #: ../erlang/examples/guestfs-erlang.pod:23
3812 msgid "OPENING AND CLOSING THE HANDLE"
3813 msgstr ""
3814
3815 #. type: textblock
3816 #: ../erlang/examples/guestfs-erlang.pod:25
3817 msgid ""
3818 "The Erlang bindings are implemented using an external program called C<erl-"
3819 "guestfs>.  This program must be on the current PATH, or else you should "
3820 "specify the full path to the program:"
3821 msgstr ""
3822
3823 #. type: verbatim
3824 #: ../erlang/examples/guestfs-erlang.pod:29
3825 #, fuzzy, no-wrap
3826 #| msgid ""
3827 #| " g = guestfs_create ();\n"
3828 #| " \n"
3829 msgid ""
3830 " {ok, G} = guestfs:create().\n"
3831 "\n"
3832 msgstr ""
3833 " g = guestfs_create ();\n"
3834 " \n"
3835
3836 #. type: verbatim
3837 #: ../erlang/examples/guestfs-erlang.pod:31
3838 #, no-wrap
3839 msgid ""
3840 " {ok, G} = guestfs:create(\"/path/to/erl-guestfs\").\n"
3841 "\n"
3842 msgstr ""
3843
3844 #. type: textblock
3845 #: ../erlang/examples/guestfs-erlang.pod:33
3846 msgid "C<G> is the libguestfs handle which you should pass to other functions."
3847 msgstr ""
3848
3849 #. type: textblock
3850 #: ../erlang/examples/guestfs-erlang.pod:36
3851 msgid "To close the handle:"
3852 msgstr ""
3853
3854 #. type: verbatim
3855 #: ../erlang/examples/guestfs-erlang.pod:38
3856 #, fuzzy, no-wrap
3857 #| msgid ""
3858 #| " g = guestfs_create ();\n"
3859 #| " \n"
3860 msgid ""
3861 " ok = guestfs:close(G).\n"
3862 "\n"
3863 msgstr ""
3864 " g = guestfs_create ();\n"
3865 " \n"
3866
3867 #. type: =head2
3868 #: ../erlang/examples/guestfs-erlang.pod:40
3869 #, fuzzy
3870 #| msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
3871 msgid "FUNCTIONS WITH OPTIONAL ARGUMENTS"
3872 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
3873
3874 #. type: textblock
3875 #: ../erlang/examples/guestfs-erlang.pod:42
3876 msgid ""
3877 "For functions that take optional arguments, the first arguments are the non-"
3878 "optional ones.  The last argument is a list of tuples supplying the "
3879 "remaining optional arguments."
3880 msgstr ""
3881
3882 #. type: verbatim
3883 #: ../erlang/examples/guestfs-erlang.pod:46
3884 #, fuzzy, no-wrap
3885 #| msgid ""
3886 #| " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3887 #| "                                va_list args);\n"
3888 #| "\n"
3889 msgid ""
3890 " ok = guestfs:add_drive_opts(G, Disk,\n"
3891 "                             [{format, \"raw\"}, {readonly, true}]).\n"
3892 "\n"
3893 msgstr ""
3894 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
3895 "                                va_list args);\n"
3896 "\n"
3897
3898 #. type: textblock
3899 #: ../erlang/examples/guestfs-erlang.pod:49
3900 msgid "If the last argument would be an empty list, you can also omit it:"
3901 msgstr ""
3902
3903 #. type: verbatim
3904 #: ../erlang/examples/guestfs-erlang.pod:51
3905 #, fuzzy, no-wrap
3906 #| msgid ""
3907 #| " guestfs_add_drive_opts (g, filename, -1);\n"
3908 #| "\n"
3909 msgid ""
3910 " ok = guestfs:add_drive_opts(G, Disk).\n"
3911 "\n"
3912 msgstr ""
3913 " guestfs_add_drive_opts (g, filename, -1);\n"
3914 "\n"
3915
3916 #. type: =head2
3917 #: ../erlang/examples/guestfs-erlang.pod:53
3918 msgid "RETURN VALUES AND ERRORS"
3919 msgstr ""
3920
3921 #. type: textblock
3922 #: ../erlang/examples/guestfs-erlang.pod:55
3923 msgid ""
3924 "On success, most functions return a C<Result> term (which could be a list, "
3925 "string, tuple etc.).  If there is nothing for the function to return, then "
3926 "the atom C<ok> is returned."
3927 msgstr ""
3928
3929 #. type: textblock
3930 #: ../erlang/examples/guestfs-erlang.pod:59
3931 msgid "On error, you would see one of the following tuples:"
3932 msgstr ""
3933
3934 #. type: =item
3935 #: ../erlang/examples/guestfs-erlang.pod:63
3936 msgid "C<{error, Msg, Errno}>"
3937 msgstr ""
3938
3939 #. type: textblock
3940 #: ../erlang/examples/guestfs-erlang.pod:65
3941 msgid "This indicates an ordinary error from the function."
3942 msgstr ""
3943
3944 #. type: textblock
3945 #: ../erlang/examples/guestfs-erlang.pod:67
3946 msgid ""
3947 "C<Msg> is the error message (string) and C<Errno> is the Unix error "
3948 "(integer)."
3949 msgstr ""
3950
3951 #. type: textblock
3952 #: ../erlang/examples/guestfs-erlang.pod:70
3953 msgid "C<Errno> can be zero.  See L<guestfs(3)/guestfs_last_errno>."
3954 msgstr ""
3955
3956 #. type: =item
3957 #: ../erlang/examples/guestfs-erlang.pod:72
3958 msgid "C<{unknown, Function}>"
3959 msgstr ""
3960
3961 #. type: textblock
3962 #: ../erlang/examples/guestfs-erlang.pod:74
3963 msgid ""
3964 "This indicates that the function you called is not known.  Generally this "
3965 "means you are mixing C<erl-guestfs> from another version of libguestfs, "
3966 "which you should not do."
3967 msgstr ""
3968
3969 #. type: textblock
3970 #: ../erlang/examples/guestfs-erlang.pod:78
3971 msgid "C<Function> is the name of the unknown function."
3972 msgstr ""
3973
3974 #. type: =item
3975 #: ../erlang/examples/guestfs-erlang.pod:80
3976 msgid "C<{unknownarg, Arg}>"
3977 msgstr ""
3978
3979 #. type: textblock
3980 #: ../erlang/examples/guestfs-erlang.pod:82
3981 msgid ""
3982 "This indicates that you called a function with optional arguments, with an "
3983 "unknown argument name."
3984 msgstr ""
3985
3986 #. type: textblock
3987 #: ../erlang/examples/guestfs-erlang.pod:85
3988 msgid "C<Arg> is the name of the unknown argument."
3989 msgstr ""
3990
3991 #. type: =head1
3992 #: ../erlang/examples/guestfs-erlang.pod:89
3993 #: ../examples/guestfs-examples.pod:25 ../java/examples/guestfs-java.pod:37
3994 #: ../ocaml/examples/guestfs-ocaml.pod:70 ../perl/examples/guestfs-perl.pod:31
3995 #: ../python/examples/guestfs-python.pod:34
3996 #: ../ruby/examples/guestfs-ruby.pod:28
3997 msgid "EXAMPLE 1: CREATE A DISK IMAGE"
3998 msgstr ""
3999
4000 #. type: textblock
4001 #: ../erlang/examples/guestfs-erlang.pod:91
4002 #: ../examples/guestfs-examples.pod:27 ../java/examples/guestfs-java.pod:39
4003 #: ../ocaml/examples/guestfs-ocaml.pod:72 ../perl/examples/guestfs-perl.pod:33
4004 #: ../python/examples/guestfs-python.pod:36
4005 #: ../ruby/examples/guestfs-ruby.pod:30
4006 #, fuzzy
4007 #| msgid "EXAMPLE"
4008 msgid "@EXAMPLE1@"
4009 msgstr "ПРИКЛАД"
4010
4011 #. type: =head1
4012 #: ../erlang/examples/guestfs-erlang.pod:93
4013 #: ../examples/guestfs-examples.pod:29 ../java/examples/guestfs-java.pod:41
4014 #: ../ocaml/examples/guestfs-ocaml.pod:74 ../perl/examples/guestfs-perl.pod:35
4015 #: ../python/examples/guestfs-python.pod:38
4016 #: ../ruby/examples/guestfs-ruby.pod:32
4017 msgid "EXAMPLE 2: INSPECT A VIRTUAL MACHINE DISK IMAGE"
4018 msgstr ""
4019
4020 #. type: textblock
4021 #: ../erlang/examples/guestfs-erlang.pod:95
4022 #: ../examples/guestfs-examples.pod:31 ../java/examples/guestfs-java.pod:43
4023 #: ../ocaml/examples/guestfs-ocaml.pod:76 ../perl/examples/guestfs-perl.pod:37
4024 #: ../python/examples/guestfs-python.pod:40
4025 #: ../ruby/examples/guestfs-ruby.pod:34
4026 #, fuzzy
4027 #| msgid "EXAMPLE"
4028 msgid "@EXAMPLE2@"
4029 msgstr "ПРИКЛАД"
4030
4031 #. type: textblock
4032 #: ../erlang/examples/guestfs-erlang.pod:99
4033 #, fuzzy
4034 #| msgid ""
4035 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4036 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4037 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4038 msgid ""
4039 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4040 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4041 "L<guestfs-ruby(3)>, L<http://www.erlang.org/>.  L<http://libguestfs.org/>."
4042 msgstr ""
4043 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4044 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4045 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4046
4047 #. type: =head1
4048 #: ../erlang/examples/guestfs-erlang.pod:110
4049 #: ../examples/guestfs-examples.pod:45 ../examples/guestfs-recipes.pod:397
4050 #: ../fish/guestfish.pod:1262 ../fish/virt-copy-in.pod:60
4051 #: ../fish/virt-copy-out.pod:49 ../fish/virt-tar-in.pod:58
4052 #: ../fish/virt-tar-out.pod:51 ../fuse/guestmount.pod:319
4053 #: ../inspector/virt-inspector.pod:389 ../java/examples/guestfs-java.pod:58
4054 #: ../ocaml/examples/guestfs-ocaml.pod:91 ../perl/examples/guestfs-perl.pod:52
4055 #: ../python/examples/guestfs-python.pod:54
4056 #: ../ruby/examples/guestfs-ruby.pod:48 ../src/guestfs.pod:3255
4057 #: ../test-tool/libguestfs-test-tool.pod:106
4058 msgid "AUTHORS"
4059 msgstr "АВТОРИ"
4060
4061 #. type: textblock
4062 #: ../erlang/examples/guestfs-erlang.pod:112
4063 #: ../examples/guestfs-examples.pod:47 ../examples/guestfs-recipes.pod:399
4064 #: ../fish/guestfish.pod:1264 ../fish/virt-copy-in.pod:62
4065 #: ../fish/virt-copy-out.pod:51 ../fish/virt-tar-in.pod:60
4066 #: ../fish/virt-tar-out.pod:53 ../fuse/guestmount.pod:321
4067 #: ../java/examples/guestfs-java.pod:60 ../ocaml/examples/guestfs-ocaml.pod:93
4068 #: ../perl/examples/guestfs-perl.pod:54
4069 #: ../python/examples/guestfs-python.pod:56
4070 #: ../ruby/examples/guestfs-ruby.pod:50 ../src/guestfs.pod:3257
4071 #: ../test-tool/libguestfs-test-tool.pod:108
4072 msgid "Richard W.M. Jones (C<rjones at redhat dot com>)"
4073 msgstr ""
4074
4075 #. type: textblock
4076 #: ../erlang/examples/guestfs-erlang.pod:116
4077 #: ../java/examples/guestfs-java.pod:64 ../perl/examples/guestfs-perl.pod:58
4078 #, fuzzy
4079 #| msgid "Copyright (C) 2009 Red Hat Inc."
4080 msgid "Copyright (C) 2011 Red Hat Inc. L<http://libguestfs.org/>"
4081 msgstr "© Red Hat Inc., 2009"
4082
4083 #. type: textblock
4084 #: ../erlang/examples/guestfs-erlang.pod:118
4085 #: ../examples/guestfs-examples.pod:53 ../examples/guestfs-recipes.pod:405
4086 #: ../java/examples/guestfs-java.pod:66 ../ocaml/examples/guestfs-ocaml.pod:99
4087 #: ../perl/examples/guestfs-perl.pod:60
4088 #: ../python/examples/guestfs-python.pod:62
4089 #: ../ruby/examples/guestfs-ruby.pod:56
4090 msgid ""
4091 "The examples in this manual page may be freely copied, modified and "
4092 "distributed without any restrictions."
4093 msgstr ""
4094
4095 #. type: textblock
4096 #: ../erlang/examples/guestfs-erlang.pod:121
4097 #: ../examples/guestfs-examples.pod:56 ../examples/guestfs-recipes.pod:408
4098 #: ../java/examples/guestfs-java.pod:69
4099 #: ../ocaml/examples/guestfs-ocaml.pod:102
4100 #: ../perl/examples/guestfs-perl.pod:63
4101 #: ../python/examples/guestfs-python.pod:65
4102 #: ../ruby/examples/guestfs-ruby.pod:59 ../src/guestfs.pod:3264
4103 msgid ""
4104 "This library is free software; you can redistribute it and/or modify it "
4105 "under the terms of the GNU Lesser General Public License as published by the "
4106 "Free Software Foundation; either version 2 of the License, or (at your "
4107 "option) any later version."
4108 msgstr ""
4109
4110 #. type: textblock
4111 #: ../erlang/examples/guestfs-erlang.pod:126
4112 #: ../examples/guestfs-examples.pod:61 ../examples/guestfs-recipes.pod:413
4113 #: ../java/examples/guestfs-java.pod:74
4114 #: ../ocaml/examples/guestfs-ocaml.pod:107
4115 #: ../perl/examples/guestfs-perl.pod:68
4116 #: ../python/examples/guestfs-python.pod:70
4117 #: ../ruby/examples/guestfs-ruby.pod:64 ../src/guestfs.pod:3269
4118 msgid ""
4119 "This library is distributed in the hope that it will be useful, but WITHOUT "
4120 "ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or "
4121 "FITNESS FOR A PARTICULAR PURPOSE.  See the GNU Lesser General Public License "
4122 "for more details."
4123 msgstr ""
4124
4125 #. type: textblock
4126 #: ../erlang/examples/guestfs-erlang.pod:131
4127 #: ../examples/guestfs-examples.pod:66 ../examples/guestfs-recipes.pod:418
4128 #: ../java/examples/guestfs-java.pod:79
4129 #: ../ocaml/examples/guestfs-ocaml.pod:112
4130 #: ../perl/examples/guestfs-perl.pod:73
4131 #: ../python/examples/guestfs-python.pod:75
4132 #: ../ruby/examples/guestfs-ruby.pod:69 ../src/guestfs.pod:3274
4133 msgid ""
4134 "You should have received a copy of the GNU Lesser General Public License "
4135 "along with this library; if not, write to the Free Software Foundation, "
4136 "Inc., 51 Franklin Street, Fifth Floor, Boston, MA 02110-1301 USA"
4137 msgstr ""
4138
4139 #. type: textblock
4140 #: ../examples/guestfs-examples.pod:5
4141 msgid "guestfs-examples - Examples of using libguestfs from C"
4142 msgstr ""
4143
4144 #. type: verbatim
4145 #: ../examples/guestfs-examples.pod:9 ../src/guestfs.pod:9
4146 #, no-wrap
4147 msgid ""
4148 " #include <guestfs.h>\n"
4149 " \n"
4150 msgstr ""
4151 " #include <guestfs.h>\n"
4152 " \n"
4153
4154 #. type: verbatim
4155 #: ../examples/guestfs-examples.pod:11
4156 #, no-wrap
4157 msgid ""
4158 " guestfs_h *g = guestfs_create ();\n"
4159 " guestfs_add_drive_ro (g, \"disk.img\");\n"
4160 " guestfs_launch (g);\n"
4161 "\n"
4162 msgstr ""
4163
4164 #. type: verbatim
4165 #: ../examples/guestfs-examples.pod:15 ../src/guestfs.pod:19
4166 #, no-wrap
4167 msgid ""
4168 " cc prog.c -o prog -lguestfs\n"
4169 "or:\n"
4170 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4171 "\n"
4172 msgstr ""
4173 " cc prog.c -o prog -lguestfs\n"
4174 "або:\n"
4175 " cc prog.c -o prog `pkg-config libguestfs --cflags --libs`\n"
4176 "\n"
4177
4178 #. type: textblock
4179 #: ../examples/guestfs-examples.pod:21
4180 msgid ""
4181 "This manual page contains examples of calling libguestfs from the C "
4182 "programming language.  If you are not familiar with using libguestfs, you "
4183 "also need to read L<guestfs(3)>."
4184 msgstr ""
4185
4186 #. type: textblock
4187 #: ../examples/guestfs-examples.pod:35
4188 #, fuzzy
4189 #| msgid ""
4190 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4191 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
4192 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4193 msgid ""
4194 "L<guestfs(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)"
4195 ">, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
4196 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
4197 msgstr ""
4198 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
4199 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
4200 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
4201
4202 #. type: textblock
4203 #: ../examples/guestfs-examples.pod:51 ../ocaml/examples/guestfs-ocaml.pod:97
4204 #: ../python/examples/guestfs-python.pod:60
4205 #: ../ruby/examples/guestfs-ruby.pod:54
4206 #, fuzzy
4207 #| msgid "Copyright (C) 2009 Red Hat Inc."
4208 msgid "Copyright (C) 2010 Red Hat Inc. L<http://libguestfs.org/>"
4209 msgstr "© Red Hat Inc., 2009"
4210
4211 #. type: =end
4212 #: ../examples/guestfs-recipes.pod:3 ../examples/guestfs-recipes.pod:12
4213 msgid "comment"
4214 msgstr ""
4215
4216 #. type: textblock
4217 #: ../examples/guestfs-recipes.pod:5
4218 msgid ""
4219 "pod2man and pod2html have differing bugs which makes it hard to write URLs "
4220 "here.  The only way which works for both sorts of output is to just write "
4221 "the URL directly.  Do NOT use L<...> for URLs."
4222 msgstr ""
4223
4224 #. type: textblock
4225 #: ../examples/guestfs-recipes.pod:9
4226 msgid ""
4227 "We break with tradition here and don't use ALL CAPS for the section "
4228 "headings, as this makes them much easier to read."
4229 msgstr ""
4230
4231 #. type: textblock
4232 #: ../examples/guestfs-recipes.pod:16
4233 msgid "guestfs-recipes - libguestfs, guestfish and virt tools recipes"
4234 msgstr ""
4235
4236 #. type: textblock
4237 #: ../examples/guestfs-recipes.pod:20
4238 msgid ""
4239 "This page contains recipes for and links to things you can do using "
4240 "libguestfs, L<guestfish(1)> and the virt tools."
4241 msgstr ""
4242
4243 #. type: =head1
4244 #: ../examples/guestfs-recipes.pod:23
4245 msgid "Audit a virtual machine for setuid files"
4246 msgstr ""
4247
4248 #. type: textblock
4249 #: ../examples/guestfs-recipes.pod:25
4250 msgid ""
4251 "The link below contains a small program which can be used to audit a Linux "
4252 "virtual machine to see what setuid and setgid files it contains."
4253 msgstr ""
4254
4255 #. type: textblock
4256 #: ../examples/guestfs-recipes.pod:28
4257 msgid ""
4258 "https://rwmj.wordpress.com/2010/12/15/tip-audit-virtual-machine-for-setuid-"
4259 "files/#content"
4260 msgstr ""
4261
4262 #. type: =head1
4263 #: ../examples/guestfs-recipes.pod:30
4264 msgid "Change the background image in a Windows XP VM"
4265 msgstr ""
4266
4267 #. type: textblock
4268 #: ../examples/guestfs-recipes.pod:32
4269 msgid ""
4270 "The links below explain how to use L<guestfish(1)> to change the background "
4271 "image for a user of a Windows XP VM.  Unfortunately the technique appears to "
4272 "be substantially different for each version of Windows."
4273 msgstr ""
4274
4275 #. type: textblock
4276 #: ../examples/guestfs-recipes.pod:37
4277 msgid ""
4278 "https://lists.fedoraproject.org/pipermail/virt/2011-May/002655.html https://"
4279 "lists.fedoraproject.org/pipermail/virt/2011-May/002658.html"
4280 msgstr ""
4281
4282 #. type: =head1
4283 #: ../examples/guestfs-recipes.pod:40
4284 msgid "Cloning a virtual machine (Linux)"
4285 msgstr ""
4286
4287 #. type: textblock
4288 #: ../examples/guestfs-recipes.pod:42
4289 msgid ""
4290 "The guestfish technique described in the link below works well for most "
4291 "Linux VMs.  Depending on the Linux distro you may need to change the paths "
4292 "slightly."
4293 msgstr ""
4294
4295 #. type: textblock
4296 #: ../examples/guestfs-recipes.pod:46
4297 msgid ""
4298 "https://rwmj.wordpress.com/2010/09/24/tip-my-procedure-for-cloning-a-fedora-"
4299 "vm/#content"
4300 msgstr ""
4301
4302 #. type: textblock
4303 #: ../examples/guestfs-recipes.pod:48
4304 msgid ""
4305 "Avoid L<virt-clone(1)>.  Currently what to do about virt-clone is under "
4306 "discussion."
4307 msgstr ""
4308
4309 #. type: textblock
4310 #: ../examples/guestfs-recipes.pod:51
4311 msgid "https://www.redhat.com/archives/virt-tools-list/2011-May/msg00019.html"
4312 msgstr ""
4313
4314 #. type: =head1
4315 #: ../examples/guestfs-recipes.pod:53
4316 msgid "Cloning a virtual machine (Windows)"
4317 msgstr ""
4318
4319 #. type: textblock
4320 #: ../examples/guestfs-recipes.pod:55
4321 msgid ""
4322 "It is possible to do a \"sysprep\" using libguestfs alone, although not "
4323 "straightforward.  Currently there is code in the Aeolus Oz project which "
4324 "does this (using libguestfs).  As part of our review of the virt-clone tool, "
4325 "we may add sysprepping ability."
4326 msgstr ""
4327
4328 #. type: textblock
4329 #: ../examples/guestfs-recipes.pod:60
4330 msgid ""
4331 "https://github.com/clalancette/oz https://www.redhat.com/archives/virt-tools-"
4332 "list/2011-May/msg00019.html"
4333 msgstr ""
4334
4335 #. type: =head1
4336 #: ../examples/guestfs-recipes.pod:63
4337 msgid "Convert a CD-ROM / DVD / ISO to a tarball"
4338 msgstr ""
4339
4340 #. type: textblock
4341 #: ../examples/guestfs-recipes.pod:65
4342 msgid "This converts input C<cd.iso> to output C<cd.tar.gz>:"
4343 msgstr ""
4344
4345 #. type: verbatim
4346 #: ../examples/guestfs-recipes.pod:67
4347 #, no-wrap
4348 msgid ""
4349 " guestfish --ro -a cd.iso -m /dev/sda tgz-out / cd.tar.gz\n"
4350 "\n"
4351 msgstr ""
4352
4353 #. type: textblock
4354 #: ../examples/guestfs-recipes.pod:69
4355 msgid "To export just a subdirectory, eg. C</files>, do:"
4356 msgstr ""
4357
4358 #. type: verbatim
4359 #: ../examples/guestfs-recipes.pod:71
4360 #, no-wrap
4361 msgid ""
4362 " guestfish --ro -a cd.iso -m /dev/sda tgz-out /files cd.tar.gz\n"
4363 "\n"
4364 msgstr ""
4365
4366 #. type: =head1
4367 #: ../examples/guestfs-recipes.pod:73
4368 msgid "Create empty disk images"
4369 msgstr ""
4370
4371 #. type: textblock
4372 #: ../examples/guestfs-recipes.pod:75
4373 msgid ""
4374 "You can use the L<guestfish(1)> I<-N> option to create empty disk images.  "
4375 "The useful guide below explains the options available."
4376 msgstr ""
4377
4378 #. type: textblock
4379 #: ../examples/guestfs-recipes.pod:78
4380 msgid ""
4381 "https://rwmj.wordpress.com/2010/09/08/new-guestfish-n-options-in-1-5-9/"
4382 "#content"
4383 msgstr ""
4384
4385 #. type: =head1
4386 #: ../examples/guestfs-recipes.pod:80
4387 msgid "Dump raw filesystem content from inside a disk image or VM"
4388 msgstr ""
4389
4390 #. type: textblock
4391 #: ../examples/guestfs-recipes.pod:82
4392 msgid ""
4393 "You can use the L<guestfish(1)> C<download> command to extract the raw "
4394 "filesystem content from any filesystem in a disk image or a VM (even one "
4395 "which is encrypted or buried inside an LV):"
4396 msgstr ""
4397
4398 #. type: verbatim
4399 #: ../examples/guestfs-recipes.pod:86
4400 #, fuzzy, no-wrap
4401 #| msgid ""
4402 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
4403 #| "\n"
4404 msgid ""
4405 " guestfish --ro -a disk.img run : download /dev/sda1 sda1.img\n"
4406 "\n"
4407 msgstr ""
4408 " guestfish --format=raw -a disk.img --format -a another.img\n"
4409 "\n"
4410
4411 #. type: verbatim
4412 #: ../examples/guestfs-recipes.pod:88
4413 #, no-wrap
4414 msgid ""
4415 " guestfish --ro -d Guest run : download /dev/vg_guest/lv_root lv.img\n"
4416 "\n"
4417 msgstr ""
4418
4419 #. type: textblock
4420 #: ../examples/guestfs-recipes.pod:90
4421 msgid "To list the filesystems in a disk image, use L<virt-filesystems(1)>."
4422 msgstr ""
4423
4424 #. type: =head1
4425 #: ../examples/guestfs-recipes.pod:92
4426 msgid "Edit grub configuration in a VM"
4427 msgstr ""
4428
4429 #. type: textblock
4430 #: ../examples/guestfs-recipes.pod:94
4431 msgid "You can use this to:"
4432 msgstr ""
4433
4434 #. type: textblock
4435 #: ../examples/guestfs-recipes.pod:100
4436 msgid "Fix a virtual machine that does not boot."
4437 msgstr ""
4438
4439 #. type: textblock
4440 #: ../examples/guestfs-recipes.pod:104
4441 msgid "Change which kernel is used to boot the VM."
4442 msgstr ""
4443
4444 #. type: textblock
4445 #: ../examples/guestfs-recipes.pod:108
4446 msgid "Change kernel command line options."
4447 msgstr ""
4448
4449 #. type: textblock
4450 #: ../examples/guestfs-recipes.pod:112
4451 msgid "Use L<virt-edit(1)> to edit the grub configuration:"
4452 msgstr ""
4453
4454 #. type: verbatim
4455 #: ../examples/guestfs-recipes.pod:114
4456 #, no-wrap
4457 msgid ""
4458 " virt-edit -d BrokenGuest /boot/grub/grub.conf\n"
4459 "\n"
4460 msgstr ""
4461
4462 #. type: textblock
4463 #: ../examples/guestfs-recipes.pod:116
4464 msgid ""
4465 "or for general tinkering inside an unbootable VM use L<virt-rescue(1)> like "
4466 "this:"
4467 msgstr ""
4468
4469 #. type: verbatim
4470 #: ../examples/guestfs-recipes.pod:119
4471 #, no-wrap
4472 msgid ""
4473 " virt-rescue -d BrokenGuest\n"
4474 "\n"
4475 msgstr ""
4476
4477 #. type: =head1
4478 #: ../examples/guestfs-recipes.pod:121
4479 msgid "Export any directory from a VM"
4480 msgstr ""
4481
4482 #. type: textblock
4483 #: ../examples/guestfs-recipes.pod:123
4484 msgid ""
4485 "To export C</home> from a VM into a local directory use L<virt-copy-out(1)>:"
4486 msgstr ""
4487
4488 #. type: verbatim
4489 #: ../examples/guestfs-recipes.pod:126
4490 #, fuzzy, no-wrap
4491 #| msgid ""
4492 #| " copy-out /home .\n"
4493 #| "\n"
4494 msgid ""
4495 " virt-copy-out -d Guest /home .\n"
4496 "\n"
4497 msgstr ""
4498 " copy-out /home .\n"
4499 "\n"
4500
4501 #. type: textblock
4502 #: ../examples/guestfs-recipes.pod:128 ../fish/guestfish-actions.pod:9
4503 #: ../fish/guestfish-actions.pod:1327 ../fish/guestfish-actions.pod:1592
4504 #: ../fish/guestfish-actions.pod:2001 ../src/guestfs-actions.pod:18
4505 #: ../src/guestfs-actions.pod:2033 ../src/guestfs-actions.pod:2457
4506 #: ../src/guestfs-actions.pod:3008 ../src/guestfs.pod:1670
4507 #: ../tools/virt-win-reg.pl:706
4508 msgid "Notes:"
4509 msgstr "Нотатки:"
4510
4511 #. type: textblock
4512 #: ../examples/guestfs-recipes.pod:134
4513 msgid ""
4514 "The final dot of the command is not a printing error.  It means we want to "
4515 "copy out to the current directory."
4516 msgstr ""
4517
4518 #. type: textblock
4519 #: ../examples/guestfs-recipes.pod:139
4520 msgid "This creates a directory called C<home> under the current directory."
4521 msgstr ""
4522
4523 #. type: textblock
4524 #: ../examples/guestfs-recipes.pod:143
4525 msgid ""
4526 "If the guest is a Windows guest then you can use drive letters and "
4527 "backslashes, but you must prefix the path with C<win:> and quote it to "
4528 "protect it from the shell, like this:"
4529 msgstr ""
4530
4531 #. type: verbatim
4532 #: ../examples/guestfs-recipes.pod:147
4533 #, no-wrap
4534 msgid ""
4535 " virt-copy-out -d WinGuest 'win:c:\\windows\\system32\\config' .\n"
4536 "\n"
4537 msgstr ""
4538
4539 #. type: textblock
4540 #: ../examples/guestfs-recipes.pod:149
4541 msgid "To get the output as a compressed tarball, do:"
4542 msgstr ""
4543
4544 #. type: verbatim
4545 #: ../examples/guestfs-recipes.pod:151
4546 #, no-wrap
4547 msgid ""
4548 " virt-tar-out -d Guest /home - | gzip --best > home.tar.gz\n"
4549 "\n"
4550 msgstr ""
4551
4552 #. type: textblock
4553 #: ../examples/guestfs-recipes.pod:153
4554 msgid ""
4555 "Although it sounds tempting, this is usually not a reliable way to get a "
4556 "backup from a running guest.  See the entry in the FAQ: http://libguestfs."
4557 "org/FAQ.html#backup"
4558 msgstr ""
4559
4560 #. type: =head1
4561 #: ../examples/guestfs-recipes.pod:157
4562 msgid "Find out which user is using the most space"
4563 msgstr ""
4564
4565 #. type: textblock
4566 #: ../examples/guestfs-recipes.pod:159
4567 msgid ""
4568 "This simple script examines a Linux guest to find out which user is using "
4569 "the most space in their home directory:"
4570 msgstr ""
4571
4572 #. type: verbatim
4573 #: ../examples/guestfs-recipes.pod:162
4574 #, fuzzy, no-wrap
4575 #| msgid ""
4576 #| " #!/usr/bin/guestfish -f\n"
4577 #| "\n"
4578 msgid ""
4579 " #!/bin/sh -\n"
4580 " \n"
4581 msgstr ""
4582 " #!/usr/bin/guestfish -f\n"
4583 "\n"
4584
4585 #. type: verbatim
4586 #: ../examples/guestfs-recipes.pod:164
4587 #, fuzzy, no-wrap
4588 #| msgid ""
4589 #| " set-qemu qemu\n"
4590 #| "\n"
4591 msgid ""
4592 " set -e\n"
4593 " \n"
4594 msgstr ""
4595 " set-qemu qemu\n"
4596 "\n"
4597
4598 #. type: verbatim
4599 #: ../examples/guestfs-recipes.pod:166
4600 #, no-wrap
4601 msgid ""
4602 " vm=\"$1\"\n"
4603 " dir=/home\n"
4604 " \n"
4605 msgstr ""
4606
4607 #. type: verbatim
4608 #: ../examples/guestfs-recipes.pod:169
4609 #, fuzzy, no-wrap
4610 #| msgid ""
4611 #| " guestfish --ro -d myguest -i\n"
4612 #| "\n"
4613 msgid ""
4614 " eval $(guestfish --ro -d \"$vm\" -i --listen)\n"
4615 " \n"
4616 msgstr ""
4617 " guestfish --ro -d myguest -i\n"
4618 "\n"
4619
4620 #. type: verbatim
4621 #: ../examples/guestfs-recipes.pod:171
4622 #, no-wrap
4623 msgid ""
4624 " for d in $(guestfish --remote ls \"$dir\"); do\n"
4625 "     echo -n \"$dir/$d\"\n"
4626 "     echo -ne '\\t'\n"
4627 "     guestfish --remote du \"$dir/$d\";\n"
4628 " done | sort -nr -k 2\n"
4629 " \n"
4630 msgstr ""
4631
4632 #. type: verbatim
4633 #: ../examples/guestfs-recipes.pod:177 ../fish/guestfish.pod:941
4634 #, no-wrap
4635 msgid ""
4636 " guestfish --remote exit\n"
4637 "\n"
4638 msgstr ""
4639
4640 #. type: =head1
4641 #: ../examples/guestfs-recipes.pod:179
4642 msgid "Get DHCP address from a VM"
4643 msgstr ""
4644
4645 #. type: textblock
4646 #: ../examples/guestfs-recipes.pod:181
4647 msgid ""
4648 "The link below explains the many different possible techniques for getting "
4649 "the last assigned DHCP address of a virtual machine."
4650 msgstr ""
4651
4652 #. type: textblock
4653 #: ../examples/guestfs-recipes.pod:184
4654 msgid ""
4655 "https://rwmj.wordpress.com/2011/03/31/tip-code-for-getting-dhcp-address-from-"
4656 "a-virtual-machine-disk-image/#content"
4657 msgstr ""
4658
4659 #. type: textblock
4660 #: ../examples/guestfs-recipes.pod:186
4661 msgid ""
4662 "In the libguestfs source examples directory you will find the latest version "
4663 "of the C<virt-dhcp-address.c> program."
4664 msgstr ""
4665
4666 #. type: =head1
4667 #: ../examples/guestfs-recipes.pod:189
4668 msgid "Get the operating system product name string"
4669 msgstr ""
4670
4671 #. type: textblock
4672 #: ../examples/guestfs-recipes.pod:191
4673 msgid "Save the following script into a file called C<product-name.sh>:"
4674 msgstr ""
4675
4676 #. type: verbatim
4677 #: ../examples/guestfs-recipes.pod:193
4678 #, fuzzy, no-wrap
4679 #| msgid ""
4680 #| " eval \"`guestfish --listen`\"\n"
4681 #| " guestfish --remote add-ro disk.img\n"
4682 #| " guestfish --remote run\n"
4683 #| " guestfish --remote lvs\n"
4684 #| "\n"
4685 msgid ""
4686 " #!/bin/sh -\n"
4687 " set -e\n"
4688 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4689 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4690 " guestfish --remote inspect-get-product-name \"$root\"\n"
4691 " guestfish --remote exit\n"
4692 "\n"
4693 msgstr ""
4694 " eval \"`guestfish --listen`\"\n"
4695 " guestfish --remote add-ro disk.img\n"
4696 " guestfish --remote run\n"
4697 " guestfish --remote lvs\n"
4698 "\n"
4699
4700 #. type: textblock
4701 #: ../examples/guestfs-recipes.pod:200
4702 msgid "Make the script executable and run it on a named guest:"
4703 msgstr ""
4704
4705 #. type: verbatim
4706 #: ../examples/guestfs-recipes.pod:202
4707 #, no-wrap
4708 msgid ""
4709 " # product-name.sh RHEL60x64\n"
4710 " Red Hat Enterprise Linux Server release 6.0 (Santiago)\n"
4711 "\n"
4712 msgstr ""
4713
4714 #. type: textblock
4715 #: ../examples/guestfs-recipes.pod:205
4716 msgid ""
4717 "You can also use an XPath query on the L<virt-inspector(1)> XML using the "
4718 "C<xpath> command line tool or from your favourite programming language:"
4719 msgstr ""
4720
4721 #. type: verbatim
4722 #: ../examples/guestfs-recipes.pod:209
4723 #, no-wrap
4724 msgid ""
4725 " # virt-inspector RHEL60x64 > xml\n"
4726 " # xpath '//product_name' < xml\n"
4727 " Found 1 nodes:\n"
4728 " -- NODE --\n"
4729 " <product_name>Red Hat Enterprise Linux Server release 6.0 (Santiago)</product_name>\n"
4730 "\n"
4731 msgstr ""
4732
4733 #. type: =head1
4734 #: ../examples/guestfs-recipes.pod:215
4735 msgid "Get the default boot kernel for a Linux VM"
4736 msgstr ""
4737
4738 #. type: textblock
4739 #: ../examples/guestfs-recipes.pod:217
4740 msgid ""
4741 "The link below contains a program to print the default boot kernel for a "
4742 "Linux VM."
4743 msgstr ""
4744
4745 #. type: textblock
4746 #: ../examples/guestfs-recipes.pod:220
4747 msgid ""
4748 "https://rwmj.wordpress.com/2010/10/30/tip-use-augeas-to-get-the-default-boot-"
4749 "kernel-for-a-vm/#content"
4750 msgstr ""
4751
4752 #. type: textblock
4753 #: ../examples/guestfs-recipes.pod:222
4754 msgid ""
4755 "It uses Augeas, and the technique is generally applicable for many different "
4756 "tasks, such as:"
4757 msgstr ""
4758
4759 #. type: textblock
4760 #: ../examples/guestfs-recipes.pod:229
4761 msgid "listing the user accounts in the guest"
4762 msgstr ""
4763
4764 #. type: textblock
4765 #: ../examples/guestfs-recipes.pod:233
4766 msgid "what repositories is it configured to use"
4767 msgstr ""
4768
4769 #. type: textblock
4770 #: ../examples/guestfs-recipes.pod:237
4771 msgid "what NTP servers does it connect to"
4772 msgstr ""
4773
4774 #. type: textblock
4775 #: ../examples/guestfs-recipes.pod:241
4776 msgid "what were the boot messages last time it booted"
4777 msgstr ""
4778
4779 #. type: textblock
4780 #: ../examples/guestfs-recipes.pod:245
4781 msgid "listing who was logged in recently"
4782 msgstr ""
4783
4784 #. type: textblock
4785 #: ../examples/guestfs-recipes.pod:249
4786 msgid "http://augeas.net/"
4787 msgstr ""
4788
4789 #. type: =head1
4790 #: ../examples/guestfs-recipes.pod:251
4791 msgid "Install RPMs in a guest"
4792 msgstr ""
4793
4794 #. type: textblock
4795 #: ../examples/guestfs-recipes.pod:253
4796 msgid ""
4797 "The link below contains a method to install RPMs in a guest.  In fact the "
4798 "RPMs are just uploaded to the guest along with a \"firstboot\" script that "
4799 "installs them next time the guest is booted.  You could use this technique "
4800 "to install vital security updates in an offline guest."
4801 msgstr ""
4802
4803 #. type: textblock
4804 #: ../examples/guestfs-recipes.pod:259
4805 msgid ""
4806 "https://rwmj.wordpress.com/2010/12/01/tip-install-rpms-in-a-guest/#content"
4807 msgstr ""
4808
4809 #. type: =head1
4810 #: ../examples/guestfs-recipes.pod:261
4811 msgid "List applications installed in a VM"
4812 msgstr ""
4813
4814 #. type: textblock
4815 #: ../examples/guestfs-recipes.pod:263
4816 msgid "Save the following to a file C<list-apps.sh>:"
4817 msgstr ""
4818
4819 #. type: verbatim
4820 #: ../examples/guestfs-recipes.pod:265
4821 #, fuzzy, no-wrap
4822 #| msgid ""
4823 #| " eval \"`guestfish --listen`\"\n"
4824 #| " guestfish --remote add-ro disk.img\n"
4825 #| " guestfish --remote run\n"
4826 #| " guestfish --remote lvs\n"
4827 #| "\n"
4828 msgid ""
4829 " #!/bin/sh -\n"
4830 " set -e\n"
4831 " eval \"$(guestfish --ro -d \"$1\" --i --listen)\"\n"
4832 " root=\"$(guestfish --remote inspect-get-roots)\"\n"
4833 " guestfish --remote inspect-list-applications \"$root\"\n"
4834 " guestfish --remote exit\n"
4835 "\n"
4836 msgstr ""
4837 " eval \"`guestfish --listen`\"\n"
4838 " guestfish --remote add-ro disk.img\n"
4839 " guestfish --remote run\n"
4840 " guestfish --remote lvs\n"
4841 "\n"
4842
4843 #. type: textblock
4844 #: ../examples/guestfs-recipes.pod:272
4845 msgid ""
4846 "Make the file executable and then you can run it on any named virtual "
4847 "machine:"
4848 msgstr ""
4849
4850 #. type: verbatim
4851 #: ../examples/guestfs-recipes.pod:275
4852 #, no-wrap
4853 msgid ""
4854 " # list-apps.sh WinGuest\n"
4855 " [0] = {\n"
4856 "   app_name: Mozilla Firefox (3.6.12)\n"
4857 "   app_display_name: Mozilla Firefox (3.6.12)\n"
4858 "   app_epoch: 0\n"
4859 "   app_version: 3.6.12 (en-GB)\n"
4860 "   app_release:\n"
4861 "   app_install_path: C:\\Program Files\\Mozilla Firefox\n"
4862 "   app_trans_path:\n"
4863 "   app_publisher: Mozilla\n"
4864 "   app_url: http://www.mozilla.com/en-GB/\n"
4865 "   app_source_package:\n"
4866 "   app_summary:\n"
4867 "   app_description: Mozilla Firefox\n"
4868 " }\n"
4869 " [1] = {\n"
4870 "   app_name: VLC media player\n"
4871 "   app_display_name: VLC media player 1.1.5\n"
4872 "   app_epoch: 0\n"
4873 "   app_version: 1.1.5\n"
4874 "   app_release:\n"
4875 "   app_install_path: C:\\Program Files\\VideoLAN\\VLC\n"
4876 "   app_trans_path:\n"
4877 "   app_publisher: VideoLAN\n"
4878 "   app_url: http://www.videolan.org/\n"
4879 "   app_source_package:\n"
4880 "   app_summary:\n"
4881 "   app_description:\n"
4882 " }\n"
4883 "\n"
4884 msgstr ""
4885
4886 #. type: textblock
4887 #: ../examples/guestfs-recipes.pod:305
4888 msgid ""
4889 "If you want to run the script on disk images (instead of libvirt virtual "
4890 "machines), change C<-d \"$1\"> to C<-a \"$1\">.  See also L<virt-inspector(1)"
4891 ">."
4892 msgstr ""
4893
4894 #. type: =head1
4895 #: ../examples/guestfs-recipes.pod:309
4896 msgid "List files and directories in a VM"
4897 msgstr ""
4898
4899 #. type: textblock
4900 #: ../examples/guestfs-recipes.pod:311
4901 msgid "This involves using the L<guestfish(1)> C<find0> command like this:"
4902 msgstr ""
4903
4904 #. type: verbatim
4905 #: ../examples/guestfs-recipes.pod:313
4906 #, fuzzy, no-wrap
4907 #| msgid ""
4908 #| " guestfish --ro -d myguest -i\n"
4909 #| "\n"
4910 msgid ""
4911 " guestfish --ro -d Guest -i find0 / - | tr '\\0' '\\n' | sort\n"
4912 "\n"
4913 msgstr ""
4914 " guestfish --ro -d myguest -i\n"
4915 "\n"
4916
4917 #. type: =head1
4918 #: ../examples/guestfs-recipes.pod:315
4919 msgid "List services in a Windows VM"
4920 msgstr ""
4921
4922 #. type: textblock
4923 #: ../examples/guestfs-recipes.pod:317
4924 msgid ""
4925 "The link below contains a script that can be used to list out the services "
4926 "from a Windows VM, and whether those services run at boot time or are loaded "
4927 "on demand."
4928 msgstr ""
4929
4930 #. type: textblock
4931 #: ../examples/guestfs-recipes.pod:321
4932 msgid ""
4933 "https://rwmj.wordpress.com/2010/12/10/tip-list-services-in-a-windows-guest/"
4934 "#content"
4935 msgstr ""
4936
4937 #. type: =head1
4938 #: ../examples/guestfs-recipes.pod:323
4939 msgid "Make a disk image sparse"
4940 msgstr ""
4941
4942 #. type: textblock
4943 #: ../examples/guestfs-recipes.pod:325
4944 msgid ""
4945 "The link below contains some guides for making a disk image sparse (or "
4946 "reintroducing sparseness)."
4947 msgstr ""
4948
4949 #. type: textblock
4950 #: ../examples/guestfs-recipes.pod:328
4951 msgid ""
4952 "https://rwmj.wordpress.com/2010/10/19/tip-making-a-disk-image-sparse/#content"
4953 msgstr ""
4954
4955 #. type: =head1
4956 #: ../examples/guestfs-recipes.pod:330
4957 msgid "Monitor disk usage over time"
4958 msgstr ""
4959
4960 #. type: textblock
4961 #: ../examples/guestfs-recipes.pod:332
4962 msgid ""
4963 "You can use L<virt-df(1)> to monitor disk usage of your guests over time.  "
4964 "The link below contains a guide."
4965 msgstr ""
4966
4967 #. type: textblock
4968 #: ../examples/guestfs-recipes.pod:335
4969 msgid "http://virt-tools.org/learning/advanced-virt-df/"
4970 msgstr ""
4971
4972 #. type: =head1
4973 #: ../examples/guestfs-recipes.pod:337
4974 msgid "Reading the Windows Event Log from Windows Vista (or later)"
4975 msgstr ""
4976
4977 #. type: textblock
4978 #: ../examples/guestfs-recipes.pod:339
4979 msgid ""
4980 "L<guestfish(1)> plus the tools described in the link below can be used to "
4981 "read out the Windows Event Log from any virtual machine running Windows "
4982 "Vista or a later version."
4983 msgstr ""
4984
4985 #. type: textblock
4986 #: ../examples/guestfs-recipes.pod:343
4987 msgid ""
4988 "https://rwmj.wordpress.com/2011/04/17/decoding-the-windows-event-log-using-"
4989 "guestfish/#content"
4990 msgstr ""
4991
4992 #. type: =head1
4993 #: ../examples/guestfs-recipes.pod:345
4994 msgid "Remove root password (Linux)"
4995 msgstr ""
4996
4997 #. type: textblock
4998 #: ../examples/guestfs-recipes.pod:347
4999 msgid ""
5000 "Using the L<virt-edit(1)> I<-e> option you can do simple replacements on "
5001 "files.  One use is to remove the root password from a Linux guest:"
5002 msgstr ""
5003
5004 #. type: verbatim
5005 #: ../examples/guestfs-recipes.pod:350
5006 #, no-wrap
5007 msgid ""
5008 " virt-edit domname /etc/passwd -e 's/^root:.*?:/root::/'\n"
5009 "\n"
5010 msgstr ""
5011
5012 #. type: =head1
5013 #: ../examples/guestfs-recipes.pod:352
5014 msgid "Remove Administrator password (Windows)"
5015 msgstr ""
5016
5017 #. type: textblock
5018 #: ../examples/guestfs-recipes.pod:354
5019 msgid ""
5020 "The link below contains one technique for removing the Administrator "
5021 "password from a Windows VM, or to be more precise, it gives you a command "
5022 "prompt the next time you log in which you can use to bypass any security:"
5023 msgstr ""
5024
5025 #. type: textblock
5026 #: ../examples/guestfs-recipes.pod:359
5027 msgid ""
5028 "https://mdbooth.wordpress.com/2010/10/18/resetting-a-windows-guests-"
5029 "administrator-password-with-guestfish/"
5030 msgstr ""
5031
5032 #. type: =head1
5033 #: ../examples/guestfs-recipes.pod:361
5034 msgid "Unpack a live CD"
5035 msgstr ""
5036
5037 #. type: textblock
5038 #: ../examples/guestfs-recipes.pod:363
5039 msgid ""
5040 "Linux live CDs often contain multiple layers of disk images wrapped like a "
5041 "Russian doll.  You can use L<guestfish(1)> to look inside these multiple "
5042 "layers, as outlined in the guide below."
5043 msgstr ""
5044
5045 #. type: textblock
5046 #: ../examples/guestfs-recipes.pod:367
5047 msgid ""
5048 "https://rwmj.wordpress.com/2009/07/15/unpack-the-russian-doll-of-a-f11-live-"
5049 "cd/#content"
5050 msgstr ""
5051
5052 #. type: =head1
5053 #: ../examples/guestfs-recipes.pod:369
5054 msgid "Uploading and downloading files"
5055 msgstr ""
5056
5057 #. type: textblock
5058 #: ../examples/guestfs-recipes.pod:371
5059 msgid ""
5060 "The link below contains general tips on uploading (copying in)  and "
5061 "downloading (copying out) files from VMs."
5062 msgstr ""
5063
5064 #. type: textblock
5065 #: ../examples/guestfs-recipes.pod:374
5066 msgid ""
5067 "https://rwmj.wordpress.com/2010/12/02/tip-uploading-and-downloading/#content"
5068 msgstr ""
5069
5070 #. type: =head1
5071 #: ../examples/guestfs-recipes.pod:376
5072 msgid "Use libguestfs tools on VMware ESX guests"
5073 msgstr ""
5074
5075 #. type: textblock
5076 #: ../examples/guestfs-recipes.pod:378
5077 msgid ""
5078 "The link below explains how to use libguestfs, L<guestfish(1)> and the virt "
5079 "tools on any VMware ESX guests, by first sharing the VMware VMFS over sshfs."
5080 msgstr ""
5081
5082 #. type: textblock
5083 #: ../examples/guestfs-recipes.pod:382
5084 msgid ""
5085 "https://rwmj.wordpress.com/2011/05/10/tip-use-libguestfs-on-vmware-esx-"
5086 "guests/#content"
5087 msgstr ""
5088
5089 #. type: textblock
5090 #: ../examples/guestfs-recipes.pod:386
5091 #, fuzzy
5092 #| msgid ""
5093 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
5094 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
5095 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
5096 msgid ""
5097 "L<guestfs(3)>, L<guestfish(1)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)"
5098 ">, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-"
5099 "python(3)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
5100 msgstr ""
5101 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
5102 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
5103 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
5104
5105 #. type: textblock
5106 #: ../examples/guestfs-recipes.pod:403
5107 #, fuzzy
5108 #| msgid "Copyright (C) 2009-2010 Red Hat Inc."
5109 msgid "Copyright (C) 2009-2011 Red Hat Inc. L<http://libguestfs.org/>"
5110 msgstr "© Red Hat Inc., 2009–2010"
5111
5112 #. type: =head2
5113 #: ../fish/guestfish-actions.pod:1
5114 msgid "add-cdrom"
5115 msgstr ""
5116
5117 #. type: verbatim
5118 #: ../fish/guestfish-actions.pod:3
5119 #, no-wrap
5120 msgid ""
5121 " add-cdrom filename\n"
5122 "\n"
5123 msgstr ""
5124
5125 #. type: textblock
5126 #: ../fish/guestfish-actions.pod:5 ../src/guestfs-actions.pod:14
5127 msgid "This function adds a virtual CD-ROM disk image to the guest."
5128 msgstr ""
5129
5130 #. type: textblock
5131 #: ../fish/guestfish-actions.pod:7 ../src/guestfs-actions.pod:16
5132 msgid "This is equivalent to the qemu parameter I<-cdrom filename>."
5133 msgstr ""
5134
5135 #. type: textblock
5136 #: ../fish/guestfish-actions.pod:15
5137 msgid ""
5138 "This call checks for the existence of C<filename>.  This stops you from "
5139 "specifying other types of drive which are supported by qemu such as C<nbd:> "
5140 "and C<http:> URLs.  To specify those, use the general L</config> call "
5141 "instead."
5142 msgstr ""
5143
5144 #. type: textblock
5145 #: ../fish/guestfish-actions.pod:22
5146 msgid ""
5147 "If you just want to add an ISO file (often you use this as an efficient way "
5148 "to transfer large files into the guest), then you should probably use L</add-"
5149 "drive-ro> instead."
5150 msgstr ""
5151
5152 #. type: textblock
5153 #: ../fish/guestfish-actions.pod:28 ../fish/guestfish-actions.pod:163
5154 #: ../fish/guestfish-actions.pod:177
5155 msgid ""
5156 "I<This function is deprecated.> In new code, use the L</add_drive_opts> call "
5157 "instead."
5158 msgstr ""
5159
5160 #. type: textblock
5161 #: ../fish/guestfish-actions.pod:31 ../fish/guestfish-actions.pod:166
5162 #: ../fish/guestfish-actions.pod:180 ../fish/guestfish-actions.pod:1026
5163 #: ../fish/guestfish-actions.pod:1386 ../fish/guestfish-actions.pod:1400
5164 #: ../fish/guestfish-actions.pod:3157 ../fish/guestfish-actions.pod:3468
5165 #: ../fish/guestfish-actions.pod:3516 ../fish/guestfish-actions.pod:4429
5166 #: ../fish/guestfish-actions.pod:4452 ../fish/guestfish-actions.pod:4474
5167 #: ../fish/guestfish-actions.pod:4512 ../fish/guestfish-actions.pod:5161
5168 #: ../fish/guestfish-actions.pod:5267 ../src/guestfs-actions.pod:10
5169 #: ../src/guestfs-actions.pod:252 ../src/guestfs-actions.pod:273
5170 #: ../src/guestfs-actions.pod:1619 ../src/guestfs-actions.pod:2118
5171 #: ../src/guestfs-actions.pod:2139 ../src/guestfs-actions.pod:4771
5172 #: ../src/guestfs-actions.pod:5293 ../src/guestfs-actions.pod:5393
5173 #: ../src/guestfs-actions.pod:6675 ../src/guestfs-actions.pod:6719
5174 #: ../src/guestfs-actions.pod:6753 ../src/guestfs-actions.pod:6816
5175 #: ../src/guestfs-actions.pod:7748 ../src/guestfs-actions.pod:7857
5176 #: ../src/guestfs-actions.pod:8040
5177 msgid ""
5178 "Deprecated functions will not be removed from the API, but the fact that "
5179 "they are deprecated indicates that there are problems with correct use of "
5180 "these functions."
5181 msgstr ""
5182
5183 #. type: =head2
5184 #: ../fish/guestfish-actions.pod:35
5185 msgid "add-domain"
5186 msgstr "add-domain"
5187
5188 #. type: =head2
5189 #: ../fish/guestfish-actions.pod:37
5190 msgid "domain"
5191 msgstr ""
5192
5193 #. type: verbatim
5194 #: ../fish/guestfish-actions.pod:39
5195 #, no-wrap
5196 msgid ""
5197 " add-domain dom [libvirturi:..] [readonly:..] [iface:..] [live:..] [allowuuid:..]\n"
5198 "\n"
5199 msgstr ""
5200
5201 #. type: textblock
5202 #: ../fish/guestfish-actions.pod:41
5203 msgid ""
5204 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
5205 "It works by connecting to libvirt, requesting the domain and domain XML from "
5206 "libvirt, parsing it for disks, and calling L</add-drive-opts> on each one."
5207 msgstr ""
5208
5209 #. type: textblock
5210 #: ../fish/guestfish-actions.pod:46 ../src/guestfs-actions.pod:64
5211 msgid ""
5212 "The number of disks added is returned.  This operation is atomic: if an "
5213 "error is returned, then no disks are added."
5214 msgstr ""
5215
5216 #. type: textblock
5217 #: ../fish/guestfish-actions.pod:49 ../src/guestfs-actions.pod:67
5218 msgid ""
5219 "This function does some minimal checks to make sure the libvirt domain is "
5220 "not running (unless C<readonly> is true).  In a future version we will try "
5221 "to acquire the libvirt lock on each disk."
5222 msgstr ""
5223
5224 #. type: textblock
5225 #: ../fish/guestfish-actions.pod:53 ../src/guestfs-actions.pod:71
5226 msgid ""
5227 "Disks must be accessible locally.  This often means that adding disks from a "
5228 "remote libvirt connection (see L<http://libvirt.org/remote.html>)  will fail "
5229 "unless those disks are accessible via the same device path locally too."
5230 msgstr ""
5231
5232 #. type: textblock
5233 #: ../fish/guestfish-actions.pod:58 ../src/guestfs-actions.pod:76
5234 msgid ""
5235 "The optional C<libvirturi> parameter sets the libvirt URI (see L<http://"
5236 "libvirt.org/uri.html>).  If this is not set then we connect to the default "
5237 "libvirt URI (or one set through an environment variable, see the libvirt "
5238 "documentation for full details)."
5239 msgstr ""
5240
5241 #. type: textblock
5242 #: ../fish/guestfish-actions.pod:64 ../src/guestfs-actions.pod:82
5243 msgid ""
5244 "The optional C<live> flag controls whether this call will try to connect to "
5245 "a running virtual machine C<guestfsd> process if it sees a suitable "
5246 "E<lt>channelE<gt> element in the libvirt XML definition.  The default (if "
5247 "the flag is omitted) is never to try.  See L<guestfs(3)/ATTACHING TO RUNNING "
5248 "DAEMONS> for more information."
5249 msgstr ""
5250
5251 #. type: textblock
5252 #: ../fish/guestfish-actions.pod:71 ../src/guestfs-actions.pod:89
5253 msgid ""
5254 "If the C<allowuuid> flag is true (default is false) then a UUID I<may> be "
5255 "passed instead of the domain name.  The C<dom> string is treated as a UUID "
5256 "first and looked up, and if that lookup fails then we treat C<dom> as a name "
5257 "as usual."
5258 msgstr ""
5259
5260 #. type: textblock
5261 #: ../fish/guestfish-actions.pod:76
5262 msgid ""
5263 "The other optional parameters are passed directly through to L</add-drive-"
5264 "opts>."
5265 msgstr ""
5266
5267 #. type: textblock
5268 #: ../fish/guestfish-actions.pod:79 ../fish/guestfish-actions.pod:143
5269 #: ../fish/guestfish-actions.pod:573 ../fish/guestfish-actions.pod:784
5270 #: ../fish/guestfish-actions.pod:805 ../fish/guestfish-actions.pod:2040
5271 #: ../fish/guestfish-actions.pod:3206 ../fish/guestfish-actions.pod:3369
5272 #: ../fish/guestfish-actions.pod:3504
5273 msgid ""
5274 "This command has one or more optional arguments.  See L</OPTIONAL ARGUMENTS>."
5275 msgstr ""
5276
5277 #. type: =head2
5278 #: ../fish/guestfish-actions.pod:81
5279 msgid "add-drive"
5280 msgstr "add-drive"
5281
5282 #. type: verbatim
5283 #: ../fish/guestfish-actions.pod:83
5284 #, no-wrap
5285 msgid ""
5286 " add-drive filename\n"
5287 "\n"
5288 msgstr ""
5289 " add-drive назва_файла\n"
5290 "\n"
5291
5292 #. type: textblock
5293 #: ../fish/guestfish-actions.pod:85
5294 msgid ""
5295 "This function is the equivalent of calling L</add-drive-opts> with no "
5296 "optional parameters, so the disk is added writable, with the format being "
5297 "detected automatically."
5298 msgstr ""
5299
5300 #. type: textblock
5301 #: ../fish/guestfish-actions.pod:89
5302 msgid ""
5303 "Automatic detection of the format opens you up to a potential security hole "
5304 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5305 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
5306 "you should think about replacing calls to this function with calls to L</add-"
5307 "drive-opts>, and specifying the format."
5308 msgstr ""
5309
5310 #. type: =head2
5311 #: ../fish/guestfish-actions.pod:96
5312 msgid "add-drive-opts"
5313 msgstr "add-drive-opts"
5314
5315 #. type: =head2
5316 #: ../fish/guestfish-actions.pod:98
5317 msgid "add"
5318 msgstr "add"
5319
5320 #. type: verbatim
5321 #: ../fish/guestfish-actions.pod:100
5322 #, no-wrap
5323 msgid ""
5324 " add-drive-opts filename [readonly:..] [format:..] [iface:..]\n"
5325 "\n"
5326 msgstr ""
5327
5328 #. type: textblock
5329 #: ../fish/guestfish-actions.pod:102 ../src/guestfs-actions.pod:160
5330 msgid ""
5331 "This function adds a virtual machine disk image C<filename> to libguestfs.  "
5332 "The first time you call this function, the disk appears as C</dev/sda>, the "
5333 "second time as C</dev/sdb>, and so on."
5334 msgstr ""
5335
5336 #. type: textblock
5337 #: ../fish/guestfish-actions.pod:107 ../src/guestfs-actions.pod:165
5338 msgid ""
5339 "You don't necessarily need to be root when using libguestfs.  However you "
5340 "obviously do need sufficient permissions to access the filename for whatever "
5341 "operations you want to perform (ie. read access if you just want to read the "
5342 "image or write access if you want to modify the image)."
5343 msgstr ""
5344
5345 #. type: textblock
5346 #: ../fish/guestfish-actions.pod:113 ../src/guestfs-actions.pod:171
5347 msgid "This call checks that C<filename> exists."
5348 msgstr ""
5349
5350 #. type: textblock
5351 #: ../fish/guestfish-actions.pod:115 ../fish/guestfish-actions.pod:3168
5352 #: ../src/guestfs-actions.pod:173 ../src/guestfs-actions.pod:4808
5353 msgid "The optional arguments are:"
5354 msgstr ""
5355
5356 #. type: =item
5357 #: ../fish/guestfish-actions.pod:119 ../src/guestfs-actions.pod:177
5358 msgid "C<readonly>"
5359 msgstr "C<readonly>"
5360
5361 #. type: textblock
5362 #: ../fish/guestfish-actions.pod:121 ../src/guestfs-actions.pod:179
5363 msgid ""
5364 "If true then the image is treated as read-only.  Writes are still allowed, "
5365 "but they are stored in a temporary snapshot overlay which is discarded at "
5366 "the end.  The disk that you add is not modified."
5367 msgstr ""
5368
5369 #. type: =item
5370 #: ../fish/guestfish-actions.pod:125 ../src/guestfs-actions.pod:183
5371 msgid "C<format>"
5372 msgstr "C<format>"
5373
5374 #. type: textblock
5375 #: ../fish/guestfish-actions.pod:127
5376 msgid ""
5377 "This forces the image format.  If you omit this (or use L</add-drive> or L</"
5378 "add-drive-ro>) then the format is automatically detected.  Possible formats "
5379 "include C<raw> and C<qcow2>."
5380 msgstr ""
5381
5382 #. type: textblock
5383 #: ../fish/guestfish-actions.pod:131 ../src/guestfs-actions.pod:189
5384 msgid ""
5385 "Automatic detection of the format opens you up to a potential security hole "
5386 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
5387 "RHBZ#642934.  Specifying the format closes this security hole."
5388 msgstr ""
5389
5390 #. type: =item
5391 #: ../fish/guestfish-actions.pod:136 ../src/guestfs-actions.pod:194
5392 msgid "C<iface>"
5393 msgstr "C<iface>"
5394
5395 #. type: textblock
5396 #: ../fish/guestfish-actions.pod:138
5397 msgid ""
5398 "This rarely-used option lets you emulate the behaviour of the deprecated L</"
5399 "add-drive-with-if> call (q.v.)"
5400 msgstr ""
5401
5402 #. type: =head2
5403 #: ../fish/guestfish-actions.pod:145
5404 msgid "add-drive-ro"
5405 msgstr "add-drive-ro"
5406
5407 #. type: =head2
5408 #: ../fish/guestfish-actions.pod:147
5409 msgid "add-ro"
5410 msgstr "add-ro"
5411
5412 #. type: verbatim
5413 #: ../fish/guestfish-actions.pod:149
5414 #, no-wrap
5415 msgid ""
5416 " add-drive-ro filename\n"
5417 "\n"
5418 msgstr ""
5419
5420 #. type: textblock
5421 #: ../fish/guestfish-actions.pod:151
5422 msgid ""
5423 "This function is the equivalent of calling L</add-drive-opts> with the "
5424 "optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the disk "
5425 "is added read-only, with the format being detected automatically."
5426 msgstr ""
5427
5428 #. type: =head2
5429 #: ../fish/guestfish-actions.pod:156
5430 msgid "add-drive-ro-with-if"
5431 msgstr ""
5432
5433 #. type: verbatim
5434 #: ../fish/guestfish-actions.pod:158
5435 #, no-wrap
5436 msgid ""
5437 " add-drive-ro-with-if filename iface\n"
5438 "\n"
5439 msgstr ""
5440
5441 #. type: textblock
5442 #: ../fish/guestfish-actions.pod:160
5443 msgid ""
5444 "This is the same as L</add-drive-ro> but it allows you to specify the QEMU "
5445 "interface emulation to use at run time."
5446 msgstr ""
5447
5448 #. type: =head2
5449 #: ../fish/guestfish-actions.pod:170
5450 msgid "add-drive-with-if"
5451 msgstr ""
5452
5453 #. type: verbatim
5454 #: ../fish/guestfish-actions.pod:172
5455 #, no-wrap
5456 msgid ""
5457 " add-drive-with-if filename iface\n"
5458 "\n"
5459 msgstr ""
5460
5461 #. type: textblock
5462 #: ../fish/guestfish-actions.pod:174
5463 msgid ""
5464 "This is the same as L</add-drive> but it allows you to specify the QEMU "
5465 "interface emulation to use at run time."
5466 msgstr ""
5467
5468 #. type: =head2
5469 #: ../fish/guestfish-actions.pod:184
5470 msgid "aug-clear"
5471 msgstr ""
5472
5473 #. type: verbatim
5474 #: ../fish/guestfish-actions.pod:186
5475 #, no-wrap
5476 msgid ""
5477 " aug-clear augpath\n"
5478 "\n"
5479 msgstr ""
5480
5481 #. type: textblock
5482 #: ../fish/guestfish-actions.pod:188 ../src/guestfs-actions.pod:290
5483 msgid ""
5484 "Set the value associated with C<path> to C<NULL>.  This is the same as the "
5485 "L<augtool(1)> C<clear> command."
5486 msgstr ""
5487
5488 #. type: =head2
5489 #: ../fish/guestfish-actions.pod:191
5490 msgid "aug-close"
5491 msgstr ""
5492
5493 #. type: verbatim
5494 #: ../fish/guestfish-actions.pod:193
5495 #, no-wrap
5496 msgid ""
5497 " aug-close\n"
5498 "\n"
5499 msgstr ""
5500
5501 #. type: textblock
5502 #: ../fish/guestfish-actions.pod:195
5503 msgid ""
5504 "Close the current Augeas handle and free up any resources used by it.  After "
5505 "calling this, you have to call L</aug-init> again before you can use any "
5506 "other Augeas functions."
5507 msgstr ""
5508
5509 #. type: =head2
5510 #: ../fish/guestfish-actions.pod:200
5511 msgid "aug-defnode"
5512 msgstr ""
5513
5514 #. type: verbatim
5515 #: ../fish/guestfish-actions.pod:202
5516 #, no-wrap
5517 msgid ""
5518 " aug-defnode name expr val\n"
5519 "\n"
5520 msgstr ""
5521
5522 #. type: textblock
5523 #: ../fish/guestfish-actions.pod:204 ../src/guestfs-actions.pod:319
5524 msgid ""
5525 "Defines a variable C<name> whose value is the result of evaluating C<expr>."
5526 msgstr ""
5527
5528 #. type: textblock
5529 #: ../fish/guestfish-actions.pod:207
5530 msgid ""
5531 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
5532 "calling L</aug-set> C<expr>, C<value>.  C<name> will be the nodeset "
5533 "containing that single node."
5534 msgstr ""
5535
5536 #. type: textblock
5537 #: ../fish/guestfish-actions.pod:211 ../src/guestfs-actions.pod:326
5538 msgid ""
5539 "On success this returns a pair containing the number of nodes in the "
5540 "nodeset, and a boolean flag if a node was created."
5541 msgstr ""
5542
5543 #. type: =head2
5544 #: ../fish/guestfish-actions.pod:215
5545 msgid "aug-defvar"
5546 msgstr ""
5547
5548 #. type: verbatim
5549 #: ../fish/guestfish-actions.pod:217
5550 #, no-wrap
5551 msgid ""
5552 " aug-defvar name expr\n"
5553 "\n"
5554 msgstr ""
5555
5556 #. type: textblock
5557 #: ../fish/guestfish-actions.pod:219 ../src/guestfs-actions.pod:343
5558 msgid ""
5559 "Defines an Augeas variable C<name> whose value is the result of evaluating "
5560 "C<expr>.  If C<expr> is NULL, then C<name> is undefined."
5561 msgstr ""
5562
5563 #. type: textblock
5564 #: ../fish/guestfish-actions.pod:223 ../src/guestfs-actions.pod:347
5565 msgid ""
5566 "On success this returns the number of nodes in C<expr>, or C<0> if C<expr> "
5567 "evaluates to something which is not a nodeset."
5568 msgstr ""
5569
5570 #. type: =head2
5571 #: ../fish/guestfish-actions.pod:226
5572 msgid "aug-get"
5573 msgstr ""
5574
5575 #. type: verbatim
5576 #: ../fish/guestfish-actions.pod:228
5577 #, no-wrap
5578 msgid ""
5579 " aug-get augpath\n"
5580 "\n"
5581 msgstr ""
5582
5583 #. type: textblock
5584 #: ../fish/guestfish-actions.pod:230 ../src/guestfs-actions.pod:360
5585 msgid ""
5586 "Look up the value associated with C<path>.  If C<path> matches exactly one "
5587 "node, the C<value> is returned."
5588 msgstr ""
5589
5590 #. type: =head2
5591 #: ../fish/guestfish-actions.pod:233
5592 msgid "aug-init"
5593 msgstr ""
5594
5595 #. type: verbatim
5596 #: ../fish/guestfish-actions.pod:235
5597 #, no-wrap
5598 msgid ""
5599 " aug-init root flags\n"
5600 "\n"
5601 msgstr ""
5602
5603 #. type: textblock
5604 #: ../fish/guestfish-actions.pod:237 ../src/guestfs-actions.pod:375
5605 msgid ""
5606 "Create a new Augeas handle for editing configuration files.  If there was "
5607 "any previous Augeas handle associated with this guestfs session, then it is "
5608 "closed."
5609 msgstr ""
5610
5611 #. type: textblock
5612 #: ../fish/guestfish-actions.pod:241
5613 msgid "You must call this before using any other L</aug-*> commands."
5614 msgstr ""
5615
5616 #. type: textblock
5617 #: ../fish/guestfish-actions.pod:244 ../src/guestfs-actions.pod:382
5618 msgid ""
5619 "C<root> is the filesystem root.  C<root> must not be NULL, use C</> instead."
5620 msgstr ""
5621
5622 #. type: textblock
5623 #: ../fish/guestfish-actions.pod:247 ../src/guestfs-actions.pod:385
5624 msgid ""
5625 "The flags are the same as the flags defined in E<lt>augeas.hE<gt>, the "
5626 "logical I<or> of the following integers:"
5627 msgstr ""
5628
5629 #. type: =item
5630 #: ../fish/guestfish-actions.pod:253 ../src/guestfs-actions.pod:391
5631 msgid "C<AUG_SAVE_BACKUP> = 1"
5632 msgstr "C<AUG_SAVE_BACKUP> = 1"
5633
5634 #. type: textblock
5635 #: ../fish/guestfish-actions.pod:255 ../src/guestfs-actions.pod:393
5636 msgid "Keep the original file with a C<.augsave> extension."
5637 msgstr ""
5638
5639 #. type: =item
5640 #: ../fish/guestfish-actions.pod:257 ../src/guestfs-actions.pod:395
5641 msgid "C<AUG_SAVE_NEWFILE> = 2"
5642 msgstr "C<AUG_SAVE_NEWFILE> = 2"
5643
5644 #. type: textblock
5645 #: ../fish/guestfish-actions.pod:259 ../src/guestfs-actions.pod:397
5646 msgid ""
5647 "Save changes into a file with extension C<.augnew>, and do not overwrite "
5648 "original.  Overrides C<AUG_SAVE_BACKUP>."
5649 msgstr ""
5650
5651 #. type: =item
5652 #: ../fish/guestfish-actions.pod:262 ../src/guestfs-actions.pod:400
5653 msgid "C<AUG_TYPE_CHECK> = 4"
5654 msgstr "C<AUG_TYPE_CHECK> = 4"
5655
5656 #. type: textblock
5657 #: ../fish/guestfish-actions.pod:264 ../src/guestfs-actions.pod:402
5658 msgid "Typecheck lenses."
5659 msgstr ""
5660
5661 #. type: textblock
5662 #: ../fish/guestfish-actions.pod:266
5663 msgid ""
5664 "This option is only useful when debugging Augeas lenses.  Use of this option "
5665 "may require additional memory for the libguestfs appliance.  You may need to "
5666 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call L</set-memsize>."
5667 msgstr ""
5668
5669 #. type: =item
5670 #: ../fish/guestfish-actions.pod:271 ../src/guestfs-actions.pod:409
5671 msgid "C<AUG_NO_STDINC> = 8"
5672 msgstr "C<AUG_NO_STDINC> = 8"
5673
5674 #. type: textblock
5675 #: ../fish/guestfish-actions.pod:273 ../src/guestfs-actions.pod:411
5676 msgid "Do not use standard load path for modules."
5677 msgstr ""
5678
5679 #. type: =item
5680 #: ../fish/guestfish-actions.pod:275 ../src/guestfs-actions.pod:413
5681 msgid "C<AUG_SAVE_NOOP> = 16"
5682 msgstr "C<AUG_SAVE_NOOP> = 16"
5683
5684 #. type: textblock
5685 #: ../fish/guestfish-actions.pod:277 ../src/guestfs-actions.pod:415
5686 msgid "Make save a no-op, just record what would have been changed."
5687 msgstr ""
5688
5689 #. type: =item
5690 #: ../fish/guestfish-actions.pod:279 ../src/guestfs-actions.pod:417
5691 msgid "C<AUG_NO_LOAD> = 32"
5692 msgstr "C<AUG_NO_LOAD> = 32"
5693
5694 #. type: textblock
5695 #: ../fish/guestfish-actions.pod:281
5696 msgid "Do not load the tree in L</aug-init>."
5697 msgstr ""
5698
5699 #. type: textblock
5700 #: ../fish/guestfish-actions.pod:285
5701 msgid "To close the handle, you can call L</aug-close>."
5702 msgstr ""
5703
5704 #. type: textblock
5705 #: ../fish/guestfish-actions.pod:287 ../src/guestfs-actions.pod:425
5706 msgid "To find out more about Augeas, see L<http://augeas.net/>."
5707 msgstr ""
5708
5709 #. type: =head2
5710 #: ../fish/guestfish-actions.pod:289
5711 msgid "aug-insert"
5712 msgstr ""
5713
5714 #. type: verbatim
5715 #: ../fish/guestfish-actions.pod:291
5716 #, no-wrap
5717 msgid ""
5718 " aug-insert augpath label true|false\n"
5719 "\n"
5720 msgstr ""
5721
5722 #. type: textblock
5723 #: ../fish/guestfish-actions.pod:293 ../src/guestfs-actions.pod:439
5724 msgid ""
5725 "Create a new sibling C<label> for C<path>, inserting it into the tree before "
5726 "or after C<path> (depending on the boolean flag C<before>)."
5727 msgstr ""
5728
5729 #. type: textblock
5730 #: ../fish/guestfish-actions.pod:297 ../src/guestfs-actions.pod:443
5731 msgid ""
5732 "C<path> must match exactly one existing node in the tree, and C<label> must "
5733 "be a label, ie. not contain C</>, C<*> or end with a bracketed index C<[N]>."
5734 msgstr ""
5735
5736 #. type: =head2
5737 #: ../fish/guestfish-actions.pod:301
5738 msgid "aug-load"
5739 msgstr ""
5740
5741 #. type: verbatim
5742 #: ../fish/guestfish-actions.pod:303
5743 #, no-wrap
5744 msgid ""
5745 " aug-load\n"
5746 "\n"
5747 msgstr ""
5748
5749 #. type: textblock
5750 #: ../fish/guestfish-actions.pod:305 ../src/guestfs-actions.pod:456
5751 msgid "Load files into the tree."
5752 msgstr "Завантажити файли до ієрархії."
5753
5754 #. type: textblock
5755 #: ../fish/guestfish-actions.pod:307 ../src/guestfs-actions.pod:458
5756 msgid "See C<aug_load> in the Augeas documentation for the full gory details."
5757 msgstr ""
5758
5759 #. type: =head2
5760 #: ../fish/guestfish-actions.pod:310
5761 msgid "aug-ls"
5762 msgstr ""
5763
5764 #. type: verbatim
5765 #: ../fish/guestfish-actions.pod:312
5766 #, no-wrap
5767 msgid ""
5768 " aug-ls augpath\n"
5769 "\n"
5770 msgstr ""
5771
5772 #. type: textblock
5773 #: ../fish/guestfish-actions.pod:314
5774 msgid ""
5775 "This is just a shortcut for listing L</aug-match> C<path/*> and sorting the "
5776 "resulting nodes into alphabetical order."
5777 msgstr ""
5778
5779 #. type: =head2
5780 #: ../fish/guestfish-actions.pod:317
5781 msgid "aug-match"
5782 msgstr ""
5783
5784 #. type: verbatim
5785 #: ../fish/guestfish-actions.pod:319
5786 #, no-wrap
5787 msgid ""
5788 " aug-match augpath\n"
5789 "\n"
5790 msgstr ""
5791
5792 #. type: textblock
5793 #: ../fish/guestfish-actions.pod:321 ../src/guestfs-actions.pod:486
5794 msgid ""
5795 "Returns a list of paths which match the path expression C<path>.  The "
5796 "returned paths are sufficiently qualified so that they match exactly one "
5797 "node in the current tree."
5798 msgstr ""
5799
5800 #. type: =head2
5801 #: ../fish/guestfish-actions.pod:325
5802 msgid "aug-mv"
5803 msgstr ""
5804
5805 #. type: verbatim
5806 #: ../fish/guestfish-actions.pod:327
5807 #, no-wrap
5808 msgid ""
5809 " aug-mv src dest\n"
5810 "\n"
5811 msgstr ""
5812
5813 #. type: textblock
5814 #: ../fish/guestfish-actions.pod:329 ../src/guestfs-actions.pod:503
5815 msgid ""
5816 "Move the node C<src> to C<dest>.  C<src> must match exactly one node.  "
5817 "C<dest> is overwritten if it exists."
5818 msgstr ""
5819
5820 #. type: =head2
5821 #: ../fish/guestfish-actions.pod:332
5822 msgid "aug-rm"
5823 msgstr ""
5824
5825 #. type: verbatim
5826 #: ../fish/guestfish-actions.pod:334
5827 #, no-wrap
5828 msgid ""
5829 " aug-rm augpath\n"
5830 "\n"
5831 msgstr ""
5832
5833 #. type: textblock
5834 #: ../fish/guestfish-actions.pod:336 ../src/guestfs-actions.pod:516
5835 msgid "Remove C<path> and all of its children."
5836 msgstr ""
5837
5838 #. type: textblock
5839 #: ../fish/guestfish-actions.pod:338 ../src/guestfs-actions.pod:518
5840 msgid "On success this returns the number of entries which were removed."
5841 msgstr ""
5842
5843 #. type: =head2
5844 #: ../fish/guestfish-actions.pod:340
5845 msgid "aug-save"
5846 msgstr ""
5847
5848 #. type: verbatim
5849 #: ../fish/guestfish-actions.pod:342
5850 #, no-wrap
5851 msgid ""
5852 " aug-save\n"
5853 "\n"
5854 msgstr ""
5855
5856 #. type: textblock
5857 #: ../fish/guestfish-actions.pod:344 ../src/guestfs-actions.pod:529
5858 msgid "This writes all pending changes to disk."
5859 msgstr ""
5860
5861 #. type: textblock
5862 #: ../fish/guestfish-actions.pod:346
5863 msgid ""
5864 "The flags which were passed to L</aug-init> affect exactly how files are "
5865 "saved."
5866 msgstr ""
5867
5868 #. type: =head2
5869 #: ../fish/guestfish-actions.pod:349
5870 msgid "aug-set"
5871 msgstr ""
5872
5873 #. type: verbatim
5874 #: ../fish/guestfish-actions.pod:351
5875 #, no-wrap
5876 msgid ""
5877 " aug-set augpath val\n"
5878 "\n"
5879 msgstr ""
5880
5881 #. type: textblock
5882 #: ../fish/guestfish-actions.pod:353 ../src/guestfs-actions.pod:545
5883 msgid "Set the value associated with C<path> to C<val>."
5884 msgstr ""
5885
5886 #. type: textblock
5887 #: ../fish/guestfish-actions.pod:355
5888 msgid ""
5889 "In the Augeas API, it is possible to clear a node by setting the value to "
5890 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
5891 "this call.  Instead you must use the L</aug-clear> call."
5892 msgstr ""
5893
5894 #. type: =head2
5895 #: ../fish/guestfish-actions.pod:360
5896 msgid "available"
5897 msgstr ""
5898
5899 #. type: verbatim
5900 #: ../fish/guestfish-actions.pod:362
5901 #, no-wrap
5902 msgid ""
5903 " available 'groups ...'\n"
5904 "\n"
5905 msgstr ""
5906
5907 #. type: textblock
5908 #: ../fish/guestfish-actions.pod:364 ../src/guestfs-actions.pod:562
5909 msgid ""
5910 "This command is used to check the availability of some groups of "
5911 "functionality in the appliance, which not all builds of the libguestfs "
5912 "appliance will be able to provide."
5913 msgstr ""
5914
5915 #. type: textblock
5916 #: ../fish/guestfish-actions.pod:368
5917 msgid ""
5918 "The libguestfs groups, and the functions that those groups correspond to, "
5919 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
5920 "runtime by calling L</available-all-groups>."
5921 msgstr ""
5922
5923 #. type: textblock
5924 #: ../fish/guestfish-actions.pod:373 ../src/guestfs-actions.pod:571
5925 msgid ""
5926 "The argument C<groups> is a list of group names, eg: C<[\"inotify\", \"augeas"
5927 "\"]> would check for the availability of the Linux inotify functions and "
5928 "Augeas (configuration file editing) functions."
5929 msgstr ""
5930
5931 #. type: textblock
5932 #: ../fish/guestfish-actions.pod:378 ../src/guestfs-actions.pod:576
5933 msgid "The command returns no error if I<all> requested groups are available."
5934 msgstr ""
5935
5936 #. type: textblock
5937 #: ../fish/guestfish-actions.pod:380 ../src/guestfs-actions.pod:578
5938 msgid ""
5939 "It fails with an error if one or more of the requested groups is unavailable "
5940 "in the appliance."
5941 msgstr ""
5942
5943 #. type: textblock
5944 #: ../fish/guestfish-actions.pod:383 ../src/guestfs-actions.pod:581
5945 msgid ""
5946 "If an unknown group name is included in the list of groups then an error is "
5947 "always returned."
5948 msgstr ""
5949
5950 #. type: textblock
5951 #: ../fish/guestfish-actions.pod:386 ../src/guestfs-actions.pod:584
5952 msgid "I<Notes:>"
5953 msgstr "I<Нотатки:>"
5954
5955 #. type: textblock
5956 #: ../fish/guestfish-actions.pod:392
5957 msgid "You must call L</launch> before calling this function."
5958 msgstr ""
5959
5960 #. type: textblock
5961 #: ../fish/guestfish-actions.pod:394 ../src/guestfs-actions.pod:592
5962 msgid ""
5963 "The reason is because we don't know what groups are supported by the "
5964 "appliance/daemon until it is running and can be queried."
5965 msgstr ""
5966
5967 #. type: textblock
5968 #: ../fish/guestfish-actions.pod:400 ../src/guestfs-actions.pod:598
5969 msgid ""
5970 "If a group of functions is available, this does not necessarily mean that "
5971 "they will work.  You still have to check for errors when calling individual "
5972 "API functions even if they are available."
5973 msgstr ""
5974
5975 #. type: textblock
5976 #: ../fish/guestfish-actions.pod:407 ../src/guestfs-actions.pod:605
5977 msgid ""
5978 "It is usually the job of distro packagers to build complete functionality "
5979 "into the libguestfs appliance.  Upstream libguestfs, if built from source "
5980 "with all requirements satisfied, will support everything."
5981 msgstr ""
5982
5983 #. type: textblock
5984 #: ../fish/guestfish-actions.pod:414
5985 msgid ""
5986 "This call was added in version C<1.0.80>.  In previous versions of "
5987 "libguestfs all you could do would be to speculatively execute a command to "
5988 "find out if the daemon implemented it.  See also L</version>."
5989 msgstr ""
5990
5991 #. type: =head2
5992 #: ../fish/guestfish-actions.pod:421
5993 msgid "available-all-groups"
5994 msgstr ""
5995
5996 #. type: verbatim
5997 #: ../fish/guestfish-actions.pod:423
5998 #, no-wrap
5999 msgid ""
6000 " available-all-groups\n"
6001 "\n"
6002 msgstr ""
6003
6004 #. type: textblock
6005 #: ../fish/guestfish-actions.pod:425
6006 msgid ""
6007 "This command returns a list of all optional groups that this daemon knows "
6008 "about.  Note this returns both supported and unsupported groups.  To find "
6009 "out which ones the daemon can actually support you have to call L</"
6010 "available> on each member of the returned list."
6011 msgstr ""
6012
6013 #. type: textblock
6014 #: ../fish/guestfish-actions.pod:431
6015 msgid "See also L</available> and L<guestfs(3)/AVAILABILITY>."
6016 msgstr ""
6017
6018 #. type: =head2
6019 #: ../fish/guestfish-actions.pod:433
6020 msgid "base64-in"
6021 msgstr ""
6022
6023 #. type: verbatim
6024 #: ../fish/guestfish-actions.pod:435
6025 #, no-wrap
6026 msgid ""
6027 " base64-in (base64file|-) filename\n"
6028 "\n"
6029 msgstr ""
6030
6031 #. type: textblock
6032 #: ../fish/guestfish-actions.pod:437 ../src/guestfs-actions.pod:649
6033 msgid ""
6034 "This command uploads base64-encoded data from C<base64file> to C<filename>."
6035 msgstr ""
6036
6037 #. type: textblock
6038 #: ../fish/guestfish-actions.pod:440 ../fish/guestfish-actions.pod:449
6039 #: ../fish/guestfish-actions.pod:698 ../fish/guestfish-actions.pod:782
6040 #: ../fish/guestfish-actions.pod:803 ../fish/guestfish-actions.pod:902
6041 #: ../fish/guestfish-actions.pod:921 ../fish/guestfish-actions.pod:1295
6042 #: ../fish/guestfish-actions.pod:4732 ../fish/guestfish-actions.pod:4744
6043 #: ../fish/guestfish-actions.pod:4755 ../fish/guestfish-actions.pod:4766
6044 #: ../fish/guestfish-actions.pod:4818 ../fish/guestfish-actions.pod:4827
6045 #: ../fish/guestfish-actions.pod:4881 ../fish/guestfish-actions.pod:4904
6046 msgid "Use C<-> instead of a filename to read/write from stdin/stdout."
6047 msgstr ""
6048
6049 #. type: =head2
6050 #: ../fish/guestfish-actions.pod:442
6051 msgid "base64-out"
6052 msgstr ""
6053
6054 #. type: verbatim
6055 #: ../fish/guestfish-actions.pod:444
6056 #, no-wrap
6057 msgid ""
6058 " base64-out filename (base64file|-)\n"
6059 "\n"
6060 msgstr ""
6061
6062 #. type: textblock
6063 #: ../fish/guestfish-actions.pod:446 ../src/guestfs-actions.pod:663
6064 msgid ""
6065 "This command downloads the contents of C<filename>, writing it out to local "
6066 "file C<base64file> encoded as base64."
6067 msgstr ""
6068
6069 #. type: =head2
6070 #: ../fish/guestfish-actions.pod:451
6071 msgid "blockdev-flushbufs"
6072 msgstr ""
6073
6074 #. type: verbatim
6075 #: ../fish/guestfish-actions.pod:453
6076 #, no-wrap
6077 msgid ""
6078 " blockdev-flushbufs device\n"
6079 "\n"
6080 msgstr ""
6081
6082 #. type: textblock
6083 #: ../fish/guestfish-actions.pod:455 ../src/guestfs-actions.pod:676
6084 msgid ""
6085 "This tells the kernel to flush internal buffers associated with C<device>."
6086 msgstr ""
6087
6088 #. type: textblock
6089 #: ../fish/guestfish-actions.pod:458 ../fish/guestfish-actions.pod:469
6090 #: ../fish/guestfish-actions.pod:478 ../fish/guestfish-actions.pod:488
6091 #: ../fish/guestfish-actions.pod:500 ../fish/guestfish-actions.pod:513
6092 #: ../fish/guestfish-actions.pod:521 ../fish/guestfish-actions.pod:532
6093 #: ../fish/guestfish-actions.pod:540 ../fish/guestfish-actions.pod:548
6094 #: ../src/guestfs-actions.pod:679 ../src/guestfs-actions.pod:696
6095 #: ../src/guestfs-actions.pod:711 ../src/guestfs-actions.pod:727
6096 #: ../src/guestfs-actions.pod:745 ../src/guestfs-actions.pod:764
6097 #: ../src/guestfs-actions.pod:778 ../src/guestfs-actions.pod:796
6098 #: ../src/guestfs-actions.pod:810 ../src/guestfs-actions.pod:824
6099 msgid "This uses the L<blockdev(8)> command."
6100 msgstr ""
6101
6102 #. type: =head2
6103 #: ../fish/guestfish-actions.pod:460
6104 msgid "blockdev-getbsz"
6105 msgstr ""
6106
6107 #. type: verbatim
6108 #: ../fish/guestfish-actions.pod:462
6109 #, no-wrap
6110 msgid ""
6111 " blockdev-getbsz device\n"
6112 "\n"
6113 msgstr ""
6114
6115 #. type: textblock
6116 #: ../fish/guestfish-actions.pod:464 ../src/guestfs-actions.pod:691
6117 msgid "This returns the block size of a device."
6118 msgstr ""
6119
6120 #. type: textblock
6121 #: ../fish/guestfish-actions.pod:466 ../fish/guestfish-actions.pod:529
6122 #: ../src/guestfs-actions.pod:693 ../src/guestfs-actions.pod:793
6123 msgid ""
6124 "(Note this is different from both I<size in blocks> and I<filesystem block "
6125 "size>)."
6126 msgstr ""
6127
6128 #. type: =head2
6129 #: ../fish/guestfish-actions.pod:471
6130 msgid "blockdev-getro"
6131 msgstr ""
6132
6133 #. type: verbatim
6134 #: ../fish/guestfish-actions.pod:473
6135 #, no-wrap
6136 msgid ""
6137 " blockdev-getro device\n"
6138 "\n"
6139 msgstr ""
6140
6141 #. type: textblock
6142 #: ../fish/guestfish-actions.pod:475 ../src/guestfs-actions.pod:708
6143 msgid ""
6144 "Returns a boolean indicating if the block device is read-only (true if read-"
6145 "only, false if not)."
6146 msgstr ""
6147
6148 #. type: =head2
6149 #: ../fish/guestfish-actions.pod:480
6150 msgid "blockdev-getsize64"
6151 msgstr ""
6152
6153 #. type: verbatim
6154 #: ../fish/guestfish-actions.pod:482
6155 #, no-wrap
6156 msgid ""
6157 " blockdev-getsize64 device\n"
6158 "\n"
6159 msgstr ""
6160
6161 #. type: textblock
6162 #: ../fish/guestfish-actions.pod:484 ../src/guestfs-actions.pod:723
6163 msgid "This returns the size of the device in bytes."
6164 msgstr ""
6165
6166 #. type: textblock
6167 #: ../fish/guestfish-actions.pod:486
6168 msgid "See also L</blockdev-getsz>."
6169 msgstr ""
6170
6171 #. type: =head2
6172 #: ../fish/guestfish-actions.pod:490
6173 msgid "blockdev-getss"
6174 msgstr ""
6175
6176 #. type: verbatim
6177 #: ../fish/guestfish-actions.pod:492
6178 #, no-wrap
6179 msgid ""
6180 " blockdev-getss device\n"
6181 "\n"
6182 msgstr ""
6183
6184 #. type: textblock
6185 #: ../fish/guestfish-actions.pod:494 ../src/guestfs-actions.pod:739
6186 msgid ""
6187 "This returns the size of sectors on a block device.  Usually 512, but can be "
6188 "larger for modern devices."
6189 msgstr ""
6190
6191 #. type: textblock
6192 #: ../fish/guestfish-actions.pod:497
6193 msgid ""
6194 "(Note, this is not the size in sectors, use L</blockdev-getsz> for that)."
6195 msgstr ""
6196
6197 #. type: =head2
6198 #: ../fish/guestfish-actions.pod:502
6199 msgid "blockdev-getsz"
6200 msgstr ""
6201
6202 #. type: verbatim
6203 #: ../fish/guestfish-actions.pod:504
6204 #, no-wrap
6205 msgid ""
6206 " blockdev-getsz device\n"
6207 "\n"
6208 msgstr ""
6209
6210 #. type: textblock
6211 #: ../fish/guestfish-actions.pod:506 ../src/guestfs-actions.pod:757
6212 msgid ""
6213 "This returns the size of the device in units of 512-byte sectors (even if "
6214 "the sectorsize isn't 512 bytes ... weird)."
6215 msgstr ""
6216
6217 #. type: textblock
6218 #: ../fish/guestfish-actions.pod:509
6219 msgid ""
6220 "See also L</blockdev-getss> for the real sector size of the device, and L</"
6221 "blockdev-getsize64> for the more useful I<size in bytes>."
6222 msgstr ""
6223
6224 #. type: =head2
6225 #: ../fish/guestfish-actions.pod:515
6226 msgid "blockdev-rereadpt"
6227 msgstr ""
6228
6229 #. type: verbatim
6230 #: ../fish/guestfish-actions.pod:517
6231 #, no-wrap
6232 msgid ""
6233 " blockdev-rereadpt device\n"
6234 "\n"
6235 msgstr ""
6236
6237 #. type: textblock
6238 #: ../fish/guestfish-actions.pod:519 ../src/guestfs-actions.pod:776
6239 msgid "Reread the partition table on C<device>."
6240 msgstr ""
6241
6242 #. type: =head2
6243 #: ../fish/guestfish-actions.pod:523
6244 msgid "blockdev-setbsz"
6245 msgstr ""
6246
6247 #. type: verbatim
6248 #: ../fish/guestfish-actions.pod:525
6249 #, no-wrap
6250 msgid ""
6251 " blockdev-setbsz device blocksize\n"
6252 "\n"
6253 msgstr ""
6254
6255 #. type: textblock
6256 #: ../fish/guestfish-actions.pod:527 ../src/guestfs-actions.pod:791
6257 msgid "This sets the block size of a device."
6258 msgstr ""
6259
6260 #. type: =head2
6261 #: ../fish/guestfish-actions.pod:534
6262 msgid "blockdev-setro"
6263 msgstr ""
6264
6265 #. type: verbatim
6266 #: ../fish/guestfish-actions.pod:536
6267 #, no-wrap
6268 msgid ""
6269 " blockdev-setro device\n"
6270 "\n"
6271 msgstr ""
6272
6273 #. type: textblock
6274 #: ../fish/guestfish-actions.pod:538 ../src/guestfs-actions.pod:808
6275 msgid "Sets the block device named C<device> to read-only."
6276 msgstr ""
6277
6278 #. type: =head2
6279 #: ../fish/guestfish-actions.pod:542
6280 msgid "blockdev-setrw"
6281 msgstr ""
6282
6283 #. type: verbatim
6284 #: ../fish/guestfish-actions.pod:544
6285 #, no-wrap
6286 msgid ""
6287 " blockdev-setrw device\n"
6288 "\n"
6289 msgstr ""
6290
6291 #. type: textblock
6292 #: ../fish/guestfish-actions.pod:546 ../src/guestfs-actions.pod:822
6293 msgid "Sets the block device named C<device> to read-write."
6294 msgstr ""
6295
6296 #. type: =head2
6297 #: ../fish/guestfish-actions.pod:550
6298 msgid "btrfs-filesystem-resize"
6299 msgstr ""
6300
6301 #. type: verbatim
6302 #: ../fish/guestfish-actions.pod:552
6303 #, no-wrap
6304 msgid ""
6305 " btrfs-filesystem-resize mountpoint [size:..]\n"
6306 "\n"
6307 msgstr ""
6308
6309 #. type: textblock
6310 #: ../fish/guestfish-actions.pod:554 ../src/guestfs-actions.pod:844
6311 msgid "This command resizes a btrfs filesystem."
6312 msgstr ""
6313
6314 #. type: textblock
6315 #: ../fish/guestfish-actions.pod:556 ../src/guestfs-actions.pod:846
6316 msgid ""
6317 "Note that unlike other resize calls, the filesystem has to be mounted and "
6318 "the parameter is the mountpoint not the device (this is a requirement of "
6319 "btrfs itself)."
6320 msgstr ""
6321
6322 #. type: textblock
6323 #: ../fish/guestfish-actions.pod:560 ../fish/guestfish-actions.pod:3479
6324 #: ../src/guestfs-actions.pod:850 ../src/guestfs-actions.pod:5332
6325 msgid "The optional parameters are:"
6326 msgstr ""
6327
6328 #. type: =item
6329 #: ../fish/guestfish-actions.pod:564 ../fish/guestfish-actions.pod:3483
6330 #: ../src/guestfs-actions.pod:854 ../src/guestfs-actions.pod:5336
6331 msgid "C<size>"
6332 msgstr ""
6333
6334 #. type: textblock
6335 #: ../fish/guestfish-actions.pod:566 ../src/guestfs-actions.pod:856
6336 msgid ""
6337 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
6338 "resized to the maximum size."
6339 msgstr ""
6340
6341 #. type: textblock
6342 #: ../fish/guestfish-actions.pod:571 ../src/guestfs-actions.pod:861
6343 msgid "See also L<btrfs(8)>."
6344 msgstr ""
6345
6346 #. type: =head2
6347 #: ../fish/guestfish-actions.pod:575
6348 msgid "case-sensitive-path"
6349 msgstr ""
6350
6351 #. type: verbatim
6352 #: ../fish/guestfish-actions.pod:577
6353 #, no-wrap
6354 msgid ""
6355 " case-sensitive-path path\n"
6356 "\n"
6357 msgstr ""
6358
6359 #. type: textblock
6360 #: ../fish/guestfish-actions.pod:579 ../src/guestfs-actions.pod:895
6361 msgid ""
6362 "This can be used to resolve case insensitive paths on a filesystem which is "
6363 "case sensitive.  The use case is to resolve paths which you have read from "
6364 "Windows configuration files or the Windows Registry, to the true path."
6365 msgstr ""
6366
6367 #. type: textblock
6368 #: ../fish/guestfish-actions.pod:584 ../src/guestfs-actions.pod:900
6369 msgid ""
6370 "The command handles a peculiarity of the Linux ntfs-3g filesystem driver "
6371 "(and probably others), which is that although the underlying filesystem is "
6372 "case-insensitive, the driver exports the filesystem to Linux as case-"
6373 "sensitive."
6374 msgstr ""
6375
6376 #. type: textblock
6377 #: ../fish/guestfish-actions.pod:589 ../src/guestfs-actions.pod:905
6378 msgid ""
6379 "One consequence of this is that special directories such as C<c:\\windows> "
6380 "may appear as C</WINDOWS> or C</windows> (or other things) depending on the "
6381 "precise details of how they were created.  In Windows itself this would not "
6382 "be a problem."
6383 msgstr ""
6384
6385 #. type: textblock
6386 #: ../fish/guestfish-actions.pod:595 ../src/guestfs-actions.pod:911
6387 msgid ""
6388 "Bug or feature? You decide: L<http://www.tuxera.com/community/ntfs-3g-faq/"
6389 "#posixfilenames1>"
6390 msgstr ""
6391
6392 #. type: textblock
6393 #: ../fish/guestfish-actions.pod:598 ../src/guestfs-actions.pod:914
6394 msgid ""
6395 "This function resolves the true case of each element in the path and returns "
6396 "the case-sensitive path."
6397 msgstr ""
6398
6399 #. type: textblock
6400 #: ../fish/guestfish-actions.pod:601
6401 msgid ""
6402 "Thus L</case-sensitive-path> (\"/Windows/System32\")  might return C<\"/"
6403 "WINDOWS/system32\"> (the exact return value would depend on details of how "
6404 "the directories were originally created under Windows)."
6405 msgstr ""
6406
6407 #. type: textblock
6408 #: ../fish/guestfish-actions.pod:606 ../src/guestfs-actions.pod:922
6409 msgid "I<Note>: This function does not handle drive names, backslashes etc."
6410 msgstr ""
6411
6412 #. type: textblock
6413 #: ../fish/guestfish-actions.pod:609
6414 msgid "See also L</realpath>."
6415 msgstr ""
6416
6417 #. type: =head2
6418 #: ../fish/guestfish-actions.pod:611
6419 msgid "cat"
6420 msgstr "cat"
6421
6422 #. type: verbatim
6423 #: ../fish/guestfish-actions.pod:613
6424 #, no-wrap
6425 msgid ""
6426 " cat path\n"
6427 "\n"
6428 msgstr ""
6429 " cat шлях\n"
6430 "\n"
6431
6432 #. type: textblock
6433 #: ../fish/guestfish-actions.pod:615 ../fish/guestfish-actions.pod:3899
6434 #: ../src/guestfs-actions.pod:938 ../src/guestfs-actions.pod:5975
6435 msgid "Return the contents of the file named C<path>."
6436 msgstr ""
6437
6438 #. type: textblock
6439 #: ../fish/guestfish-actions.pod:617
6440 msgid ""
6441 "Note that this function cannot correctly handle binary files (specifically, "
6442 "files containing C<\\0> character which is treated as end of string).  For "
6443 "those you need to use the L</read-file> or L</download> functions which have "
6444 "a more complex interface."
6445 msgstr ""
6446
6447 #. type: textblock
6448 #: ../fish/guestfish-actions.pod:622 ../fish/guestfish-actions.pod:757
6449 #: ../fish/guestfish-actions.pod:769 ../fish/guestfish-actions.pod:980
6450 #: ../fish/guestfish-actions.pod:990 ../fish/guestfish-actions.pod:1057
6451 #: ../fish/guestfish-actions.pod:1067 ../fish/guestfish-actions.pod:1259
6452 #: ../fish/guestfish-actions.pod:1572 ../fish/guestfish-actions.pod:1582
6453 #: ../fish/guestfish-actions.pod:1632 ../fish/guestfish-actions.pod:1647
6454 #: ../fish/guestfish-actions.pod:1657 ../fish/guestfish-actions.pod:1676
6455 #: ../fish/guestfish-actions.pod:3769 ../fish/guestfish-actions.pod:3784
6456 #: ../fish/guestfish-actions.pod:3860 ../fish/guestfish-actions.pod:3877
6457 #: ../fish/guestfish-actions.pod:3892 ../fish/guestfish-actions.pod:4573
6458 #: ../fish/guestfish-actions.pod:4619 ../fish/guestfish-actions.pod:4704
6459 #: ../fish/guestfish-actions.pod:4719 ../fish/guestfish-actions.pod:5125
6460 #: ../fish/guestfish-actions.pod:5137 ../fish/guestfish-actions.pod:5155
6461 #: ../fish/guestfish-actions.pod:5172 ../fish/guestfish-actions.pod:5182
6462 #: ../fish/guestfish-actions.pod:5239 ../fish/guestfish-actions.pod:5249
6463 #: ../fish/guestfish-actions.pod:5278 ../fish/guestfish-actions.pod:5288
6464 #: ../src/guestfs-actions.pod:948 ../src/guestfs-actions.pod:1127
6465 #: ../src/guestfs-actions.pod:1147 ../src/guestfs-actions.pod:1554
6466 #: ../src/guestfs-actions.pod:1573 ../src/guestfs-actions.pod:1676
6467 #: ../src/guestfs-actions.pod:1695 ../src/guestfs-actions.pod:1941
6468 #: ../src/guestfs-actions.pod:2423 ../src/guestfs-actions.pod:2442
6469 #: ../src/guestfs-actions.pod:2507 ../src/guestfs-actions.pod:2531
6470 #: ../src/guestfs-actions.pod:2548 ../src/guestfs-actions.pod:2577
6471 #: ../src/guestfs-actions.pod:5757 ../src/guestfs-actions.pod:5783
6472 #: ../src/guestfs-actions.pod:5914 ../src/guestfs-actions.pod:5940
6473 #: ../src/guestfs-actions.pod:5964 ../src/guestfs-actions.pod:6931
6474 #: ../src/guestfs-actions.pod:6986 ../src/guestfs-actions.pod:7132
6475 #: ../src/guestfs-actions.pod:7156 ../src/guestfs-actions.pod:7821
6476 #: ../src/guestfs-actions.pod:7841 ../src/guestfs-actions.pod:7874
6477 #: ../src/guestfs-actions.pod:7893 ../src/guestfs-actions.pod:7912
6478 #: ../src/guestfs-actions.pod:8006 ../src/guestfs-actions.pod:8025
6479 #: ../src/guestfs-actions.pod:8071 ../src/guestfs-actions.pod:8090
6480 msgid ""
6481 "Because of the message protocol, there is a transfer limit of somewhere "
6482 "between 2MB and 4MB.  See L<guestfs(3)/PROTOCOL LIMITS>."
6483 msgstr ""
6484
6485 #. type: =head2
6486 #: ../fish/guestfish-actions.pod:625
6487 msgid "checksum"
6488 msgstr "checksum"
6489
6490 #. type: verbatim
6491 #: ../fish/guestfish-actions.pod:627
6492 #, no-wrap
6493 msgid ""
6494 " checksum csumtype path\n"
6495 "\n"
6496 msgstr ""
6497
6498 #. type: textblock
6499 #: ../fish/guestfish-actions.pod:629 ../src/guestfs-actions.pod:960
6500 msgid ""
6501 "This call computes the MD5, SHAx or CRC checksum of the file named C<path>."
6502 msgstr ""
6503
6504 #. type: textblock
6505 #: ../fish/guestfish-actions.pod:632 ../src/guestfs-actions.pod:963
6506 msgid ""
6507 "The type of checksum to compute is given by the C<csumtype> parameter which "
6508 "must have one of the following values:"
6509 msgstr ""
6510
6511 #. type: =item
6512 #: ../fish/guestfish-actions.pod:637 ../src/guestfs-actions.pod:968
6513 msgid "C<crc>"
6514 msgstr "C<crc>"
6515
6516 #. type: textblock
6517 #: ../fish/guestfish-actions.pod:639 ../src/guestfs-actions.pod:970
6518 msgid ""
6519 "Compute the cyclic redundancy check (CRC) specified by POSIX for the "
6520 "C<cksum> command."
6521 msgstr ""
6522
6523 #. type: =item
6524 #: ../fish/guestfish-actions.pod:642 ../src/guestfs-actions.pod:973
6525 msgid "C<md5>"
6526 msgstr "C<md5>"
6527
6528 #. type: textblock
6529 #: ../fish/guestfish-actions.pod:644 ../src/guestfs-actions.pod:975
6530 msgid "Compute the MD5 hash (using the C<md5sum> program)."
6531 msgstr ""
6532
6533 #. type: =item
6534 #: ../fish/guestfish-actions.pod:646 ../src/guestfs-actions.pod:977
6535 msgid "C<sha1>"
6536 msgstr "C<sha1>"
6537
6538 #. type: textblock
6539 #: ../fish/guestfish-actions.pod:648 ../src/guestfs-actions.pod:979
6540 msgid "Compute the SHA1 hash (using the C<sha1sum> program)."
6541 msgstr ""
6542
6543 #. type: =item
6544 #: ../fish/guestfish-actions.pod:650 ../src/guestfs-actions.pod:981
6545 msgid "C<sha224>"
6546 msgstr "C<sha224>"
6547
6548 #. type: textblock
6549 #: ../fish/guestfish-actions.pod:652 ../src/guestfs-actions.pod:983
6550 msgid "Compute the SHA224 hash (using the C<sha224sum> program)."
6551 msgstr ""
6552
6553 #. type: =item
6554 #: ../fish/guestfish-actions.pod:654 ../src/guestfs-actions.pod:985
6555 msgid "C<sha256>"
6556 msgstr "C<sha256>"
6557
6558 #. type: textblock
6559 #: ../fish/guestfish-actions.pod:656 ../src/guestfs-actions.pod:987
6560 msgid "Compute the SHA256 hash (using the C<sha256sum> program)."
6561 msgstr ""
6562
6563 #. type: =item
6564 #: ../fish/guestfish-actions.pod:658 ../src/guestfs-actions.pod:989
6565 msgid "C<sha384>"
6566 msgstr "C<sha384>"
6567
6568 #. type: textblock
6569 #: ../fish/guestfish-actions.pod:660 ../src/guestfs-actions.pod:991
6570 msgid "Compute the SHA384 hash (using the C<sha384sum> program)."
6571 msgstr ""
6572
6573 #. type: =item
6574 #: ../fish/guestfish-actions.pod:662 ../src/guestfs-actions.pod:993
6575 msgid "C<sha512>"
6576 msgstr "C<sha512>"
6577
6578 #. type: textblock
6579 #: ../fish/guestfish-actions.pod:664 ../src/guestfs-actions.pod:995
6580 msgid "Compute the SHA512 hash (using the C<sha512sum> program)."
6581 msgstr ""
6582
6583 #. type: textblock
6584 #: ../fish/guestfish-actions.pod:668 ../src/guestfs-actions.pod:999
6585 msgid "The checksum is returned as a printable string."
6586 msgstr ""
6587
6588 #. type: textblock
6589 #: ../fish/guestfish-actions.pod:670
6590 msgid "To get the checksum for a device, use L</checksum-device>."
6591 msgstr ""
6592
6593 #. type: textblock
6594 #: ../fish/guestfish-actions.pod:672
6595 msgid "To get the checksums for many files, use L</checksums-out>."
6596 msgstr ""
6597
6598 #. type: =head2
6599 #: ../fish/guestfish-actions.pod:674
6600 msgid "checksum-device"
6601 msgstr "checksum-device"
6602
6603 #. type: verbatim
6604 #: ../fish/guestfish-actions.pod:676
6605 #, no-wrap
6606 msgid ""
6607 " checksum-device csumtype device\n"
6608 "\n"
6609 msgstr ""
6610
6611 #. type: textblock
6612 #: ../fish/guestfish-actions.pod:678
6613 msgid ""
6614 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
6615 "device named C<device>.  For the types of checksums supported see the L</"
6616 "checksum> command."
6617 msgstr ""
6618
6619 #. type: =head2
6620 #: ../fish/guestfish-actions.pod:682
6621 msgid "checksums-out"
6622 msgstr ""
6623
6624 #. type: verbatim
6625 #: ../fish/guestfish-actions.pod:684
6626 #, no-wrap
6627 msgid ""
6628 " checksums-out csumtype directory (sumsfile|-)\n"
6629 "\n"
6630 msgstr ""
6631
6632 #. type: textblock
6633 #: ../fish/guestfish-actions.pod:686 ../src/guestfs-actions.pod:1034
6634 msgid ""
6635 "This command computes the checksums of all regular files in C<directory> and "
6636 "then emits a list of those checksums to the local output file C<sumsfile>."
6637 msgstr ""
6638
6639 #. type: textblock
6640 #: ../fish/guestfish-actions.pod:690 ../src/guestfs-actions.pod:1038
6641 msgid ""
6642 "This can be used for verifying the integrity of a virtual machine.  However "
6643 "to be properly secure you should pay attention to the output of the checksum "
6644 "command (it uses the ones from GNU coreutils).  In particular when the "
6645 "filename is not printable, coreutils uses a special backslash syntax.  For "
6646 "more information, see the GNU coreutils info file."
6647 msgstr ""
6648
6649 #. type: =head2
6650 #: ../fish/guestfish-actions.pod:700
6651 msgid "chmod"
6652 msgstr "chmod"
6653
6654 #. type: verbatim
6655 #: ../fish/guestfish-actions.pod:702
6656 #, no-wrap
6657 msgid ""
6658 " chmod mode path\n"
6659 "\n"
6660 msgstr ""
6661
6662 #. type: textblock
6663 #: ../fish/guestfish-actions.pod:704 ../src/guestfs-actions.pod:1057
6664 msgid ""
6665 "Change the mode (permissions) of C<path> to C<mode>.  Only numeric modes are "
6666 "supported."
6667 msgstr ""
6668
6669 #. type: textblock
6670 #: ../fish/guestfish-actions.pod:707 ../src/guestfs-actions.pod:1060
6671 msgid ""
6672 "I<Note>: When using this command from guestfish, C<mode> by default would be "
6673 "decimal, unless you prefix it with C<0> to get octal, ie. use C<0700> not "
6674 "C<700>."
6675 msgstr ""
6676
6677 #. type: textblock
6678 #: ../fish/guestfish-actions.pod:711 ../fish/guestfish-actions.pod:3132
6679 #: ../fish/guestfish-actions.pod:3271 ../fish/guestfish-actions.pod:3281
6680 #: ../fish/guestfish-actions.pod:3291 ../src/guestfs-actions.pod:1064
6681 #: ../src/guestfs-actions.pod:4739 ../src/guestfs-actions.pod:4948
6682 #: ../src/guestfs-actions.pod:4967 ../src/guestfs-actions.pod:4986
6683 msgid "The mode actually set is affected by the umask."
6684 msgstr ""
6685
6686 #. type: =head2
6687 #: ../fish/guestfish-actions.pod:713
6688 msgid "chown"
6689 msgstr "chown"
6690
6691 #. type: verbatim
6692 #: ../fish/guestfish-actions.pod:715
6693 #, no-wrap
6694 msgid ""
6695 " chown owner group path\n"
6696 "\n"
6697 msgstr ""
6698
6699 #. type: textblock
6700 #: ../fish/guestfish-actions.pod:717 ../src/guestfs-actions.pod:1078
6701 msgid "Change the file owner to C<owner> and group to C<group>."
6702 msgstr ""
6703
6704 #. type: textblock
6705 #: ../fish/guestfish-actions.pod:719 ../fish/guestfish-actions.pod:2567
6706 #: ../src/guestfs-actions.pod:1080 ../src/guestfs-actions.pod:3810
6707 msgid ""
6708 "Only numeric uid and gid are supported.  If you want to use names, you will "
6709 "need to locate and parse the password file yourself (Augeas support makes "
6710 "this relatively easy)."
6711 msgstr ""
6712
6713 #. type: =head2
6714 #: ../fish/guestfish-actions.pod:723
6715 msgid "command"
6716 msgstr ""
6717
6718 #. type: verbatim
6719 #: ../fish/guestfish-actions.pod:725
6720 #, no-wrap
6721 msgid ""
6722 " command 'arguments ...'\n"
6723 "\n"
6724 msgstr ""
6725
6726 #. type: textblock
6727 #: ../fish/guestfish-actions.pod:727 ../src/guestfs-actions.pod:1094
6728 msgid ""
6729 "This call runs a command from the guest filesystem.  The filesystem must be "
6730 "mounted, and must contain a compatible operating system (ie. something "
6731 "Linux, with the same or compatible processor architecture)."
6732 msgstr ""
6733
6734 #. type: textblock
6735 #: ../fish/guestfish-actions.pod:732
6736 msgid ""
6737 "The single parameter is an argv-style list of arguments.  The first element "
6738 "is the name of the program to run.  Subsequent elements are parameters.  The "
6739 "list must be non-empty (ie. must contain a program name).  Note that the "
6740 "command runs directly, and is I<not> invoked via the shell (see L</sh>)."
6741 msgstr ""
6742
6743 #. type: textblock
6744 #: ../fish/guestfish-actions.pod:739 ../src/guestfs-actions.pod:1106
6745 msgid "The return value is anything printed to I<stdout> by the command."
6746 msgstr ""
6747
6748 #. type: textblock
6749 #: ../fish/guestfish-actions.pod:742 ../src/guestfs-actions.pod:1109
6750 msgid ""
6751 "If the command returns a non-zero exit status, then this function returns an "
6752 "error message.  The error message string is the content of I<stderr> from "
6753 "the command."
6754 msgstr ""
6755
6756 #. type: textblock
6757 #: ../fish/guestfish-actions.pod:746 ../src/guestfs-actions.pod:1113
6758 msgid ""
6759 "The C<$PATH> environment variable will contain at least C</usr/bin> and C</"
6760 "bin>.  If you require a program from another location, you should provide "
6761 "the full path in the first parameter."
6762 msgstr ""
6763
6764 #. type: textblock
6765 #: ../fish/guestfish-actions.pod:751 ../src/guestfs-actions.pod:1118
6766 msgid ""
6767 "Shared libraries and data files required by the program must be available on "
6768 "filesystems which are mounted in the correct places.  It is the caller's "
6769 "responsibility to ensure all filesystems that are needed are mounted at the "
6770 "right locations."
6771 msgstr ""
6772
6773 #. type: =head2
6774 #: ../fish/guestfish-actions.pod:760
6775 msgid "command-lines"
6776 msgstr ""
6777
6778 #. type: verbatim
6779 #: ../fish/guestfish-actions.pod:762
6780 #, no-wrap
6781 msgid ""
6782 " command-lines 'arguments ...'\n"
6783 "\n"
6784 msgstr ""
6785
6786 #. type: textblock
6787 #: ../fish/guestfish-actions.pod:764
6788 msgid ""
6789 "This is the same as L</command>, but splits the result into a list of lines."
6790 msgstr ""
6791
6792 #. type: textblock
6793 #: ../fish/guestfish-actions.pod:767
6794 msgid "See also: L</sh-lines>"
6795 msgstr ""
6796
6797 #. type: =head2
6798 #: ../fish/guestfish-actions.pod:772
6799 #, fuzzy
6800 #| msgid "pread-device"
6801 msgid "compress-device-out"
6802 msgstr "pread-device"
6803
6804 #. type: verbatim
6805 #: ../fish/guestfish-actions.pod:774
6806 #, no-wrap
6807 msgid ""
6808 " compress-device-out ctype device (zdevice|-) [level:..]\n"
6809 "\n"
6810 msgstr ""
6811
6812 #. type: textblock
6813 #: ../fish/guestfish-actions.pod:776 ../src/guestfs-actions.pod:1168
6814 msgid ""
6815 "This command compresses C<device> and writes it out to the local file "
6816 "C<zdevice>."
6817 msgstr ""
6818
6819 #. type: textblock
6820 #: ../fish/guestfish-actions.pod:779
6821 msgid ""
6822 "The C<ctype> and optional C<level> parameters have the same meaning as in L</"
6823 "compress-out>."
6824 msgstr ""
6825
6826 #. type: =head2
6827 #: ../fish/guestfish-actions.pod:786
6828 #, fuzzy
6829 #| msgid "copy-out"
6830 msgid "compress-out"
6831 msgstr "copy-out"
6832
6833 #. type: verbatim
6834 #: ../fish/guestfish-actions.pod:788
6835 #, no-wrap
6836 msgid ""
6837 " compress-out ctype file (zfile|-) [level:..]\n"
6838 "\n"
6839 msgstr ""
6840
6841 #. type: textblock
6842 #: ../fish/guestfish-actions.pod:790 ../src/guestfs-actions.pod:1220
6843 msgid ""
6844 "This command compresses C<file> and writes it out to the local file C<zfile>."
6845 msgstr ""
6846
6847 #. type: textblock
6848 #: ../fish/guestfish-actions.pod:793 ../src/guestfs-actions.pod:1223
6849 msgid ""
6850 "The compression program used is controlled by the C<ctype> parameter.  "
6851 "Currently this includes: C<compress>, C<gzip>, C<bzip2>, C<xz> or C<lzop>.  "
6852 "Some compression types may not be supported by particular builds of "
6853 "libguestfs, in which case you will get an error containing the substring "
6854 "\"not supported\"."
6855 msgstr ""
6856
6857 #. type: textblock
6858 #: ../fish/guestfish-actions.pod:799 ../src/guestfs-actions.pod:1229
6859 msgid ""
6860 "The optional C<level> parameter controls compression level.  The meaning and "
6861 "default for this parameter depends on the compression program being used."
6862 msgstr ""
6863
6864 #. type: =head2
6865 #: ../fish/guestfish-actions.pod:807
6866 msgid "config"
6867 msgstr ""
6868
6869 #. type: verbatim
6870 #: ../fish/guestfish-actions.pod:809
6871 #, no-wrap
6872 msgid ""
6873 " config qemuparam qemuvalue\n"
6874 "\n"
6875 msgstr ""
6876
6877 #. type: textblock
6878 #: ../fish/guestfish-actions.pod:811 ../src/guestfs-actions.pod:1270
6879 msgid ""
6880 "This can be used to add arbitrary qemu command line parameters of the form "
6881 "I<-param value>.  Actually it's not quite arbitrary - we prevent you from "
6882 "setting some parameters which would interfere with parameters that we use."
6883 msgstr ""
6884
6885 #. type: textblock
6886 #: ../fish/guestfish-actions.pod:816 ../src/guestfs-actions.pod:1275
6887 msgid "The first character of C<param> string must be a C<-> (dash)."
6888 msgstr ""
6889
6890 #. type: textblock
6891 #: ../fish/guestfish-actions.pod:818 ../src/guestfs-actions.pod:1277
6892 msgid "C<value> can be NULL."
6893 msgstr ""
6894
6895 #. type: =head2
6896 #: ../fish/guestfish-actions.pod:820
6897 msgid "copy-size"
6898 msgstr ""
6899
6900 #. type: verbatim
6901 #: ../fish/guestfish-actions.pod:822
6902 #, no-wrap
6903 msgid ""
6904 " copy-size src dest size\n"
6905 "\n"
6906 msgstr ""
6907
6908 #. type: textblock
6909 #: ../fish/guestfish-actions.pod:824 ../src/guestfs-actions.pod:1291
6910 msgid ""
6911 "This command copies exactly C<size> bytes from one source device or file "
6912 "C<src> to another destination device or file C<dest>."
6913 msgstr ""
6914
6915 #. type: textblock
6916 #: ../fish/guestfish-actions.pod:827 ../src/guestfs-actions.pod:1294
6917 msgid ""
6918 "Note this will fail if the source is too short or if the destination is not "
6919 "large enough."
6920 msgstr ""
6921
6922 #. type: =head2
6923 #: ../fish/guestfish-actions.pod:830
6924 msgid "cp"
6925 msgstr "cp"
6926
6927 #. type: verbatim
6928 #: ../fish/guestfish-actions.pod:832
6929 #, no-wrap
6930 msgid ""
6931 " cp src dest\n"
6932 "\n"
6933 msgstr ""
6934
6935 #. type: textblock
6936 #: ../fish/guestfish-actions.pod:834 ../src/guestfs-actions.pod:1313
6937 msgid ""
6938 "This copies a file from C<src> to C<dest> where C<dest> is either a "
6939 "destination filename or destination directory."
6940 msgstr ""
6941
6942 #. type: =head2
6943 #: ../fish/guestfish-actions.pod:837
6944 msgid "cp-a"
6945 msgstr "cp-a"
6946
6947 #. type: verbatim
6948 #: ../fish/guestfish-actions.pod:839
6949 #, no-wrap
6950 msgid ""
6951 " cp-a src dest\n"
6952 "\n"
6953 msgstr ""
6954
6955 #. type: textblock
6956 #: ../fish/guestfish-actions.pod:841 ../src/guestfs-actions.pod:1327
6957 msgid ""
6958 "This copies a file or directory from C<src> to C<dest> recursively using the "
6959 "C<cp -a> command."
6960 msgstr ""
6961
6962 #. type: =head2
6963 #: ../fish/guestfish-actions.pod:844
6964 msgid "dd"
6965 msgstr "dd"
6966
6967 #. type: verbatim
6968 #: ../fish/guestfish-actions.pod:846
6969 #, no-wrap
6970 msgid ""
6971 " dd src dest\n"
6972 "\n"
6973 msgstr ""
6974
6975 #. type: textblock
6976 #: ../fish/guestfish-actions.pod:848 ../src/guestfs-actions.pod:1341
6977 msgid ""
6978 "This command copies from one source device or file C<src> to another "
6979 "destination device or file C<dest>.  Normally you would use this to copy to "
6980 "or from a device or partition, for example to duplicate a filesystem."
6981 msgstr ""
6982
6983 #. type: textblock
6984 #: ../fish/guestfish-actions.pod:853
6985 msgid ""
6986 "If the destination is a device, it must be as large or larger than the "
6987 "source file or device, otherwise the copy will fail.  This command cannot do "
6988 "partial copies (see L</copy-size>)."
6989 msgstr ""
6990
6991 #. type: =head2
6992 #: ../fish/guestfish-actions.pod:857
6993 msgid "df"
6994 msgstr "df"
6995
6996 #. type: verbatim
6997 #: ../fish/guestfish-actions.pod:859
6998 #, no-wrap
6999 msgid ""
7000 " df\n"
7001 "\n"
7002 msgstr ""
7003 " df\n"
7004 "\n"
7005
7006 #. type: textblock
7007 #: ../fish/guestfish-actions.pod:861 ../src/guestfs-actions.pod:1359
7008 msgid "This command runs the C<df> command to report disk space used."
7009 msgstr ""
7010
7011 #. type: textblock
7012 #: ../fish/guestfish-actions.pod:863 ../fish/guestfish-actions.pod:874
7013 msgid ""
7014 "This command is mostly useful for interactive sessions.  It is I<not> "
7015 "intended that you try to parse the output string.  Use L</statvfs> from "
7016 "programs."
7017 msgstr ""
7018
7019 #. type: =head2
7020 #: ../fish/guestfish-actions.pod:867
7021 msgid "df-h"
7022 msgstr "df-h"
7023
7024 #. type: verbatim
7025 #: ../fish/guestfish-actions.pod:869
7026 #, no-wrap
7027 msgid ""
7028 " df-h\n"
7029 "\n"
7030 msgstr ""
7031 " df-h\n"
7032 "\n"
7033
7034 #. type: textblock
7035 #: ../fish/guestfish-actions.pod:871 ../src/guestfs-actions.pod:1375
7036 msgid ""
7037 "This command runs the C<df -h> command to report disk space used in human-"
7038 "readable format."
7039 msgstr ""
7040
7041 #. type: =head2
7042 #: ../fish/guestfish-actions.pod:878
7043 msgid "dmesg"
7044 msgstr "dmesg"
7045
7046 #. type: verbatim
7047 #: ../fish/guestfish-actions.pod:880
7048 #, no-wrap
7049 msgid ""
7050 " dmesg\n"
7051 "\n"
7052 msgstr ""
7053 " dmesg\n"
7054 "\n"
7055
7056 #. type: textblock
7057 #: ../fish/guestfish-actions.pod:882 ../src/guestfs-actions.pod:1392
7058 msgid ""
7059 "This returns the kernel messages (C<dmesg> output) from the guest kernel.  "
7060 "This is sometimes useful for extended debugging of problems."
7061 msgstr ""
7062
7063 #. type: textblock
7064 #: ../fish/guestfish-actions.pod:886
7065 msgid ""
7066 "Another way to get the same information is to enable verbose messages with "
7067 "L</set-verbose> or by setting the environment variable C<LIBGUESTFS_DEBUG=1> "
7068 "before running the program."
7069 msgstr ""
7070
7071 #. type: =head2
7072 #: ../fish/guestfish-actions.pod:891
7073 msgid "download"
7074 msgstr "download"
7075
7076 #. type: verbatim
7077 #: ../fish/guestfish-actions.pod:893
7078 #, no-wrap
7079 msgid ""
7080 " download remotefilename (filename|-)\n"
7081 "\n"
7082 msgstr ""
7083
7084 #. type: textblock
7085 #: ../fish/guestfish-actions.pod:895 ../fish/guestfish-actions.pod:908
7086 #: ../src/guestfs-actions.pod:1413 ../src/guestfs-actions.pod:1438
7087 msgid ""
7088 "Download file C<remotefilename> and save it as C<filename> on the local "
7089 "machine."
7090 msgstr ""
7091
7092 #. type: textblock
7093 #: ../fish/guestfish-actions.pod:898 ../fish/guestfish-actions.pod:4877
7094 #: ../src/guestfs-actions.pod:1416 ../src/guestfs-actions.pod:7391
7095 msgid "C<filename> can also be a named pipe."
7096 msgstr ""
7097
7098 #. type: textblock
7099 #: ../fish/guestfish-actions.pod:900
7100 msgid "See also L</upload>, L</cat>."
7101 msgstr ""
7102
7103 #. type: =head2
7104 #: ../fish/guestfish-actions.pod:904
7105 msgid "download-offset"
7106 msgstr "download-offset"
7107
7108 #. type: verbatim
7109 #: ../fish/guestfish-actions.pod:906
7110 #, no-wrap
7111 msgid ""
7112 " download-offset remotefilename (filename|-) offset size\n"
7113 "\n"
7114 msgstr ""
7115
7116 #. type: textblock
7117 #: ../fish/guestfish-actions.pod:911 ../src/guestfs-actions.pod:1441
7118 msgid ""
7119 "C<remotefilename> is read for C<size> bytes starting at C<offset> (this "
7120 "region must be within the file or device)."
7121 msgstr ""
7122
7123 #. type: textblock
7124 #: ../fish/guestfish-actions.pod:914
7125 msgid ""
7126 "Note that there is no limit on the amount of data that can be downloaded "
7127 "with this call, unlike with L</pread>, and this call always reads the full "
7128 "amount unless an error occurs."
7129 msgstr ""
7130
7131 #. type: textblock
7132 #: ../fish/guestfish-actions.pod:919
7133 msgid "See also L</download>, L</pread>."
7134 msgstr ""
7135
7136 #. type: =head2
7137 #: ../fish/guestfish-actions.pod:923
7138 msgid "drop-caches"
7139 msgstr ""
7140
7141 #. type: verbatim
7142 #: ../fish/guestfish-actions.pod:925
7143 #, no-wrap
7144 msgid ""
7145 " drop-caches whattodrop\n"
7146 "\n"
7147 msgstr ""
7148
7149 #. type: textblock
7150 #: ../fish/guestfish-actions.pod:927 ../src/guestfs-actions.pod:1466
7151 msgid ""
7152 "This instructs the guest kernel to drop its page cache, and/or dentries and "
7153 "inode caches.  The parameter C<whattodrop> tells the kernel what precisely "
7154 "to drop, see L<http://linux-mm.org/Drop_Caches>"
7155 msgstr ""
7156
7157 #. type: textblock
7158 #: ../fish/guestfish-actions.pod:932 ../src/guestfs-actions.pod:1471
7159 msgid "Setting C<whattodrop> to 3 should drop everything."
7160 msgstr ""
7161
7162 #. type: textblock
7163 #: ../fish/guestfish-actions.pod:934 ../src/guestfs-actions.pod:1473
7164 msgid ""
7165 "This automatically calls L<sync(2)> before the operation, so that the "
7166 "maximum guest memory is freed."
7167 msgstr ""
7168
7169 #. type: =head2
7170 #: ../fish/guestfish-actions.pod:937
7171 msgid "du"
7172 msgstr "du"
7173
7174 #. type: verbatim
7175 #: ../fish/guestfish-actions.pod:939
7176 #, no-wrap
7177 msgid ""
7178 " du path\n"
7179 "\n"
7180 msgstr ""
7181 " du шлях\n"
7182 "\n"
7183
7184 #. type: textblock
7185 #: ../fish/guestfish-actions.pod:941 ../src/guestfs-actions.pod:1486
7186 msgid ""
7187 "This command runs the C<du -s> command to estimate file space usage for "
7188 "C<path>."
7189 msgstr ""
7190
7191 #. type: textblock
7192 #: ../fish/guestfish-actions.pod:944 ../src/guestfs-actions.pod:1489
7193 msgid ""
7194 "C<path> can be a file or a directory.  If C<path> is a directory then the "
7195 "estimate includes the contents of the directory and all subdirectories "
7196 "(recursively)."
7197 msgstr ""
7198
7199 #. type: textblock
7200 #: ../fish/guestfish-actions.pod:948 ../src/guestfs-actions.pod:1493
7201 msgid ""
7202 "The result is the estimated size in I<kilobytes> (ie. units of 1024 bytes)."
7203 msgstr ""
7204
7205 #. type: =head2
7206 #: ../fish/guestfish-actions.pod:951
7207 msgid "e2fsck-f"
7208 msgstr "e2fsck-f"
7209
7210 #. type: verbatim
7211 #: ../fish/guestfish-actions.pod:953
7212 #, no-wrap
7213 msgid ""
7214 " e2fsck-f device\n"
7215 "\n"
7216 msgstr ""
7217
7218 #. type: textblock
7219 #: ../fish/guestfish-actions.pod:955 ../src/guestfs-actions.pod:1511
7220 msgid ""
7221 "This runs C<e2fsck -p -f device>, ie. runs the ext2/ext3 filesystem checker "
7222 "on C<device>, noninteractively (I<-p>), even if the filesystem appears to be "
7223 "clean (I<-f>)."
7224 msgstr ""
7225
7226 #. type: textblock
7227 #: ../fish/guestfish-actions.pod:959
7228 msgid ""
7229 "This command is only needed because of L</resize2fs> (q.v.).  Normally you "
7230 "should use L</fsck>."
7231 msgstr ""
7232
7233 #. type: =head2
7234 #: ../fish/guestfish-actions.pod:962
7235 msgid "echo-daemon"
7236 msgstr ""
7237
7238 #. type: verbatim
7239 #: ../fish/guestfish-actions.pod:964
7240 #, no-wrap
7241 msgid ""
7242 " echo-daemon 'words ...'\n"
7243 "\n"
7244 msgstr ""
7245
7246 #. type: textblock
7247 #: ../fish/guestfish-actions.pod:966 ../src/guestfs-actions.pod:1528
7248 msgid ""
7249 "This command concatenates the list of C<words> passed with single spaces "
7250 "between them and returns the resulting string."
7251 msgstr ""
7252
7253 #. type: textblock
7254 #: ../fish/guestfish-actions.pod:969 ../src/guestfs-actions.pod:1531
7255 msgid "You can use this command to test the connection through to the daemon."
7256 msgstr ""
7257
7258 #. type: textblock
7259 #: ../fish/guestfish-actions.pod:971
7260 msgid "See also L</ping-daemon>."
7261 msgstr ""
7262
7263 #. type: =head2
7264 #: ../fish/guestfish-actions.pod:973
7265 msgid "egrep"
7266 msgstr "egrep"
7267
7268 #. type: verbatim
7269 #: ../fish/guestfish-actions.pod:975
7270 #, no-wrap
7271 msgid ""
7272 " egrep regex path\n"
7273 "\n"
7274 msgstr ""
7275
7276 #. type: textblock
7277 #: ../fish/guestfish-actions.pod:977 ../src/guestfs-actions.pod:1547
7278 msgid ""
7279 "This calls the external C<egrep> program and returns the matching lines."
7280 msgstr ""
7281
7282 #. type: =head2
7283 #: ../fish/guestfish-actions.pod:983
7284 msgid "egrepi"
7285 msgstr "egrepi"
7286
7287 #. type: verbatim
7288 #: ../fish/guestfish-actions.pod:985
7289 #, no-wrap
7290 msgid ""
7291 " egrepi regex path\n"
7292 "\n"
7293 msgstr ""
7294
7295 #. type: textblock
7296 #: ../fish/guestfish-actions.pod:987 ../src/guestfs-actions.pod:1566
7297 msgid ""
7298 "This calls the external C<egrep -i> program and returns the matching lines."
7299 msgstr ""
7300
7301 #. type: =head2
7302 #: ../fish/guestfish-actions.pod:993
7303 msgid "equal"
7304 msgstr "equal"
7305
7306 #. type: verbatim
7307 #: ../fish/guestfish-actions.pod:995
7308 #, no-wrap
7309 msgid ""
7310 " equal file1 file2\n"
7311 "\n"
7312 msgstr ""
7313 " equal файл1 файл2\n"
7314 "\n"
7315
7316 #. type: textblock
7317 #: ../fish/guestfish-actions.pod:997 ../src/guestfs-actions.pod:1585
7318 msgid ""
7319 "This compares the two files C<file1> and C<file2> and returns true if their "
7320 "content is exactly equal, or false otherwise."
7321 msgstr ""
7322
7323 #. type: textblock
7324 #: ../fish/guestfish-actions.pod:1000 ../src/guestfs-actions.pod:1588
7325 msgid "The external L<cmp(1)> program is used for the comparison."
7326 msgstr ""
7327
7328 #. type: =head2
7329 #: ../fish/guestfish-actions.pod:1002
7330 msgid "exists"
7331 msgstr "exists"
7332
7333 #. type: verbatim
7334 #: ../fish/guestfish-actions.pod:1004
7335 #, no-wrap
7336 msgid ""
7337 " exists path\n"
7338 "\n"
7339 msgstr ""
7340 " exists шлях\n"
7341 "\n"
7342
7343 #. type: textblock
7344 #: ../fish/guestfish-actions.pod:1006 ../src/guestfs-actions.pod:1600
7345 msgid ""
7346 "This returns C<true> if and only if there is a file, directory (or anything) "
7347 "with the given C<path> name."
7348 msgstr ""
7349
7350 #. type: textblock
7351 #: ../fish/guestfish-actions.pod:1009
7352 msgid "See also L</is-file>, L</is-dir>, L</stat>."
7353 msgstr "Див. також L</is-file>, L</is-dir>, L</stat>."
7354
7355 #. type: =head2
7356 #: ../fish/guestfish-actions.pod:1011
7357 msgid "fallocate"
7358 msgstr "fallocate"
7359
7360 #. type: verbatim
7361 #: ../fish/guestfish-actions.pod:1013
7362 #, no-wrap
7363 msgid ""
7364 " fallocate path len\n"
7365 "\n"
7366 msgstr ""
7367 " fallocate шлях довжина\n"
7368 "\n"
7369
7370 #. type: textblock
7371 #: ../fish/guestfish-actions.pod:1015 ../fish/guestfish-actions.pod:1034
7372 #: ../src/guestfs-actions.pod:1623 ../src/guestfs-actions.pod:1642
7373 msgid ""
7374 "This command preallocates a file (containing zero bytes) named C<path> of "
7375 "size C<len> bytes.  If the file exists already, it is overwritten."
7376 msgstr ""
7377
7378 #. type: textblock
7379 #: ../fish/guestfish-actions.pod:1019 ../src/guestfs-actions.pod:1627
7380 msgid ""
7381 "Do not confuse this with the guestfish-specific C<alloc> command which "
7382 "allocates a file in the host and attaches it as a device."
7383 msgstr ""
7384
7385 #. type: textblock
7386 #: ../fish/guestfish-actions.pod:1023
7387 msgid ""
7388 "I<This function is deprecated.> In new code, use the L</fallocate64> call "
7389 "instead."
7390 msgstr ""
7391
7392 #. type: =head2
7393 #: ../fish/guestfish-actions.pod:1030
7394 msgid "fallocate64"
7395 msgstr "fallocate64"
7396
7397 #. type: verbatim
7398 #: ../fish/guestfish-actions.pod:1032
7399 #, no-wrap
7400 msgid ""
7401 " fallocate64 path len\n"
7402 "\n"
7403 msgstr ""
7404 " fallocate64 шлях довжина\n"
7405 "\n"
7406
7407 #. type: textblock
7408 #: ../fish/guestfish-actions.pod:1038
7409 msgid ""
7410 "Note that this call allocates disk blocks for the file.  To create a sparse "
7411 "file use L</truncate-size> instead."
7412 msgstr ""
7413
7414 #. type: textblock
7415 #: ../fish/guestfish-actions.pod:1041
7416 msgid ""
7417 "The deprecated call L</fallocate> does the same, but owing to an oversight "
7418 "it only allowed 30 bit lengths to be specified, effectively limiting the "
7419 "maximum size of files created through that call to 1GB."
7420 msgstr ""
7421
7422 #. type: textblock
7423 #: ../fish/guestfish-actions.pod:1046 ../src/guestfs-actions.pod:1654
7424 msgid ""
7425 "Do not confuse this with the guestfish-specific C<alloc> and C<sparse> "
7426 "commands which create a file in the host and attach it as a device."
7427 msgstr ""
7428
7429 #. type: =head2
7430 #: ../fish/guestfish-actions.pod:1050
7431 msgid "fgrep"
7432 msgstr "fgrep"
7433
7434 #. type: verbatim
7435 #: ../fish/guestfish-actions.pod:1052
7436 #, no-wrap
7437 msgid ""
7438 " fgrep pattern path\n"
7439 "\n"
7440 msgstr ""
7441 " fgrep шаблон шлях\n"
7442 "\n"
7443
7444 #. type: textblock
7445 #: ../fish/guestfish-actions.pod:1054 ../src/guestfs-actions.pod:1669
7446 msgid ""
7447 "This calls the external C<fgrep> program and returns the matching lines."
7448 msgstr ""
7449
7450 #. type: =head2
7451 #: ../fish/guestfish-actions.pod:1060
7452 msgid "fgrepi"
7453 msgstr "fgrepi"
7454
7455 #. type: verbatim
7456 #: ../fish/guestfish-actions.pod:1062
7457 #, no-wrap
7458 msgid ""
7459 " fgrepi pattern path\n"
7460 "\n"
7461 msgstr ""
7462 " fgrepi шаблон шлях\n"
7463 "\n"
7464
7465 #. type: textblock
7466 #: ../fish/guestfish-actions.pod:1064 ../src/guestfs-actions.pod:1688
7467 msgid ""
7468 "This calls the external C<fgrep -i> program and returns the matching lines."
7469 msgstr ""
7470
7471 #. type: =head2
7472 #: ../fish/guestfish-actions.pod:1070
7473 msgid "file"
7474 msgstr "file"
7475
7476 #. type: verbatim
7477 #: ../fish/guestfish-actions.pod:1072
7478 #, no-wrap
7479 msgid ""
7480 " file path\n"
7481 "\n"
7482 msgstr ""
7483 " file шлях\n"
7484 "\n"
7485
7486 #. type: textblock
7487 #: ../fish/guestfish-actions.pod:1074 ../src/guestfs-actions.pod:1706
7488 msgid ""
7489 "This call uses the standard L<file(1)> command to determine the type or "
7490 "contents of the file."
7491 msgstr ""
7492
7493 #. type: textblock
7494 #: ../fish/guestfish-actions.pod:1077 ../src/guestfs-actions.pod:1709
7495 msgid ""
7496 "This call will also transparently look inside various types of compressed "
7497 "file."
7498 msgstr ""
7499
7500 #. type: textblock
7501 #: ../fish/guestfish-actions.pod:1080 ../src/guestfs-actions.pod:1712
7502 msgid ""
7503 "The exact command which runs is C<file -zb path>.  Note in particular that "
7504 "the filename is not prepended to the output (the I<-b> option)."
7505 msgstr ""
7506
7507 #. type: textblock
7508 #: ../fish/guestfish-actions.pod:1084 ../src/guestfs-actions.pod:1716
7509 msgid ""
7510 "The output depends on the output of the underlying L<file(1)> command and it "
7511 "can change in future in ways beyond our control.  In other words, the output "
7512 "is not guaranteed by the ABI."
7513 msgstr ""
7514
7515 #. type: textblock
7516 #: ../fish/guestfish-actions.pod:1088
7517 msgid ""
7518 "See also: L<file(1)>, L</vfs-type>, L</lstat>, L</is-file>, L</is-blockdev> "
7519 "(etc), L</is-zero>."
7520 msgstr ""
7521
7522 #. type: =head2
7523 #: ../fish/guestfish-actions.pod:1091
7524 msgid "file-architecture"
7525 msgstr "file-architecture"
7526
7527 #. type: verbatim
7528 #: ../fish/guestfish-actions.pod:1093
7529 #, no-wrap
7530 msgid ""
7531 " file-architecture filename\n"
7532 "\n"
7533 msgstr ""
7534 " file-architecture назва_файла\n"
7535 "\n"
7536
7537 #. type: textblock
7538 #: ../fish/guestfish-actions.pod:1095 ../src/guestfs-actions.pod:1734
7539 msgid ""
7540 "This detects the architecture of the binary C<filename>, and returns it if "
7541 "known."
7542 msgstr ""
7543
7544 #. type: textblock
7545 #: ../fish/guestfish-actions.pod:1098 ../src/guestfs-actions.pod:1737
7546 msgid "Currently defined architectures are:"
7547 msgstr ""
7548
7549 #. type: =item
7550 #: ../fish/guestfish-actions.pod:1102 ../src/guestfs-actions.pod:1741
7551 msgid "\"i386\""
7552 msgstr "\"i386\""
7553
7554 #. type: textblock
7555 #: ../fish/guestfish-actions.pod:1104 ../src/guestfs-actions.pod:1743
7556 msgid ""
7557 "This string is returned for all 32 bit i386, i486, i586, i686 binaries "
7558 "irrespective of the precise processor requirements of the binary."
7559 msgstr ""
7560
7561 #. type: =item
7562 #: ../fish/guestfish-actions.pod:1107 ../src/guestfs-actions.pod:1746
7563 msgid "\"x86_64\""
7564 msgstr "\"x86_64\""
7565
7566 #. type: textblock
7567 #: ../fish/guestfish-actions.pod:1109 ../src/guestfs-actions.pod:1748
7568 msgid "64 bit x86-64."
7569 msgstr ""
7570
7571 #. type: =item
7572 #: ../fish/guestfish-actions.pod:1111 ../src/guestfs-actions.pod:1750
7573 msgid "\"sparc\""
7574 msgstr ""
7575
7576 #. type: textblock
7577 #: ../fish/guestfish-actions.pod:1113 ../src/guestfs-actions.pod:1752
7578 msgid "32 bit SPARC."
7579 msgstr ""
7580
7581 #. type: =item
7582 #: ../fish/guestfish-actions.pod:1115 ../src/guestfs-actions.pod:1754
7583 msgid "\"sparc64\""
7584 msgstr ""
7585
7586 #. type: textblock
7587 #: ../fish/guestfish-actions.pod:1117 ../src/guestfs-actions.pod:1756
7588 msgid "64 bit SPARC V9 and above."
7589 msgstr ""
7590
7591 #. type: =item
7592 #: ../fish/guestfish-actions.pod:1119 ../src/guestfs-actions.pod:1758
7593 msgid "\"ia64\""
7594 msgstr "\"ia64\""
7595
7596 #. type: textblock
7597 #: ../fish/guestfish-actions.pod:1121 ../src/guestfs-actions.pod:1760
7598 msgid "Intel Itanium."
7599 msgstr "Intel Itanium."
7600
7601 #. type: =item
7602 #: ../fish/guestfish-actions.pod:1123 ../src/guestfs-actions.pod:1762
7603 msgid "\"ppc\""
7604 msgstr ""
7605
7606 #. type: textblock
7607 #: ../fish/guestfish-actions.pod:1125 ../src/guestfs-actions.pod:1764
7608 msgid "32 bit Power PC."
7609 msgstr ""
7610
7611 #. type: =item
7612 #: ../fish/guestfish-actions.pod:1127 ../src/guestfs-actions.pod:1766
7613 msgid "\"ppc64\""
7614 msgstr ""
7615
7616 #. type: textblock
7617 #: ../fish/guestfish-actions.pod:1129 ../src/guestfs-actions.pod:1768
7618 msgid "64 bit Power PC."
7619 msgstr ""
7620
7621 #. type: textblock
7622 #: ../fish/guestfish-actions.pod:1133 ../src/guestfs-actions.pod:1772
7623 msgid "Libguestfs may return other architecture strings in future."
7624 msgstr ""
7625
7626 #. type: textblock
7627 #: ../fish/guestfish-actions.pod:1135 ../src/guestfs-actions.pod:1774
7628 msgid "The function works on at least the following types of files:"
7629 msgstr ""
7630
7631 #. type: textblock
7632 #: ../fish/guestfish-actions.pod:1141 ../src/guestfs-actions.pod:1780
7633 msgid "many types of Un*x and Linux binary"
7634 msgstr ""
7635
7636 #. type: textblock
7637 #: ../fish/guestfish-actions.pod:1145 ../src/guestfs-actions.pod:1784
7638 msgid "many types of Un*x and Linux shared library"
7639 msgstr ""
7640
7641 #. type: textblock
7642 #: ../fish/guestfish-actions.pod:1149 ../src/guestfs-actions.pod:1788
7643 msgid "Windows Win32 and Win64 binaries"
7644 msgstr ""
7645
7646 #. type: textblock
7647 #: ../fish/guestfish-actions.pod:1153 ../src/guestfs-actions.pod:1792
7648 msgid "Windows Win32 and Win64 DLLs"
7649 msgstr ""
7650
7651 #. type: textblock
7652 #: ../fish/guestfish-actions.pod:1155 ../src/guestfs-actions.pod:1794
7653 msgid "Win32 binaries and DLLs return C<i386>."
7654 msgstr ""
7655
7656 #. type: textblock
7657 #: ../fish/guestfish-actions.pod:1157 ../src/guestfs-actions.pod:1796
7658 msgid "Win64 binaries and DLLs return C<x86_64>."
7659 msgstr ""
7660
7661 #. type: textblock
7662 #: ../fish/guestfish-actions.pod:1161 ../src/guestfs-actions.pod:1800
7663 msgid "Linux kernel modules"
7664 msgstr ""
7665
7666 #. type: textblock
7667 #: ../fish/guestfish-actions.pod:1165 ../src/guestfs-actions.pod:1804
7668 msgid "Linux new-style initrd images"
7669 msgstr ""
7670
7671 #. type: textblock
7672 #: ../fish/guestfish-actions.pod:1169 ../src/guestfs-actions.pod:1808
7673 msgid "some non-x86 Linux vmlinuz kernels"
7674 msgstr ""
7675
7676 #. type: textblock
7677 #: ../fish/guestfish-actions.pod:1173 ../src/guestfs-actions.pod:1812
7678 msgid "What it can't do currently:"
7679 msgstr ""
7680
7681 #. type: textblock
7682 #: ../fish/guestfish-actions.pod:1179 ../src/guestfs-actions.pod:1818
7683 msgid "static libraries (libfoo.a)"
7684 msgstr ""
7685
7686 #. type: textblock
7687 #: ../fish/guestfish-actions.pod:1183 ../src/guestfs-actions.pod:1822
7688 msgid "Linux old-style initrd as compressed ext2 filesystem (RHEL 3)"
7689 msgstr ""
7690
7691 #. type: textblock
7692 #: ../fish/guestfish-actions.pod:1187 ../src/guestfs-actions.pod:1826
7693 msgid "x86 Linux vmlinuz kernels"
7694 msgstr ""
7695
7696 #. type: textblock
7697 #: ../fish/guestfish-actions.pod:1189 ../src/guestfs-actions.pod:1828
7698 msgid ""
7699 "x86 vmlinuz images (bzImage format) consist of a mix of 16-, 32- and "
7700 "compressed code, and are horribly hard to unpack.  If you want to find the "
7701 "architecture of a kernel, use the architecture of the associated initrd or "
7702 "kernel module(s) instead."
7703 msgstr ""
7704
7705 #. type: =head2
7706 #: ../fish/guestfish-actions.pod:1196
7707 msgid "filesize"
7708 msgstr "filesize"
7709
7710 #. type: verbatim
7711 #: ../fish/guestfish-actions.pod:1198
7712 #, no-wrap
7713 msgid ""
7714 " filesize file\n"
7715 "\n"
7716 msgstr ""
7717 " filesize файл\n"
7718 "\n"
7719
7720 #. type: textblock
7721 #: ../fish/guestfish-actions.pod:1200 ../src/guestfs-actions.pod:1846
7722 msgid "This command returns the size of C<file> in bytes."
7723 msgstr ""
7724
7725 #. type: textblock
7726 #: ../fish/guestfish-actions.pod:1202
7727 msgid ""
7728 "To get other stats about a file, use L</stat>, L</lstat>, L</is-dir>, L</is-"
7729 "file> etc.  To get the size of block devices, use L</blockdev-getsize64>."
7730 msgstr ""
7731
7732 #. type: =head2
7733 #: ../fish/guestfish-actions.pod:1206
7734 msgid "fill"
7735 msgstr "fill"
7736
7737 #. type: verbatim
7738 #: ../fish/guestfish-actions.pod:1208
7739 #, no-wrap
7740 msgid ""
7741 " fill c len path\n"
7742 "\n"
7743 msgstr ""
7744
7745 #. type: textblock
7746 #: ../fish/guestfish-actions.pod:1210 ../src/guestfs-actions.pod:1864
7747 msgid ""
7748 "This command creates a new file called C<path>.  The initial content of the "
7749 "file is C<len> octets of C<c>, where C<c> must be a number in the range C<"
7750 "[0..255]>."
7751 msgstr ""
7752
7753 #. type: textblock
7754 #: ../fish/guestfish-actions.pod:1214
7755 msgid ""
7756 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
7757 "L</truncate-size>.  To create a file with a pattern of repeating bytes use "
7758 "L</fill-pattern>."
7759 msgstr ""
7760
7761 #. type: =head2
7762 #: ../fish/guestfish-actions.pod:1219
7763 msgid "fill-pattern"
7764 msgstr "fill-pattern"
7765
7766 #. type: verbatim
7767 #: ../fish/guestfish-actions.pod:1221
7768 #, no-wrap
7769 msgid ""
7770 " fill-pattern pattern len path\n"
7771 "\n"
7772 msgstr ""
7773
7774 #. type: textblock
7775 #: ../fish/guestfish-actions.pod:1223
7776 msgid ""
7777 "This function is like L</fill> except that it creates a new file of length "
7778 "C<len> containing the repeating pattern of bytes in C<pattern>.  The pattern "
7779 "is truncated if necessary to ensure the length of the file is exactly C<len> "
7780 "bytes."
7781 msgstr ""
7782
7783 #. type: =head2
7784 #: ../fish/guestfish-actions.pod:1228
7785 msgid "find"
7786 msgstr "find"
7787
7788 #. type: verbatim
7789 #: ../fish/guestfish-actions.pod:1230
7790 #, no-wrap
7791 msgid ""
7792 " find directory\n"
7793 "\n"
7794 msgstr ""
7795 " find каталог\n"
7796 "\n"
7797
7798 #. type: textblock
7799 #: ../fish/guestfish-actions.pod:1232 ../src/guestfs-actions.pod:1910
7800 msgid ""
7801 "This command lists out all files and directories, recursively, starting at "
7802 "C<directory>.  It is essentially equivalent to running the shell command "
7803 "C<find directory -print> but some post-processing happens on the output, "
7804 "described below."
7805 msgstr ""
7806
7807 #. type: textblock
7808 #: ../fish/guestfish-actions.pod:1237 ../src/guestfs-actions.pod:1915
7809 msgid ""
7810 "This returns a list of strings I<without any prefix>.  Thus if the directory "
7811 "structure was:"
7812 msgstr ""
7813
7814 #. type: verbatim
7815 #: ../fish/guestfish-actions.pod:1240 ../src/guestfs-actions.pod:1918
7816 #, no-wrap
7817 msgid ""
7818 " /tmp/a\n"
7819 " /tmp/b\n"
7820 " /tmp/c/d\n"
7821 "\n"
7822 msgstr ""
7823
7824 #. type: textblock
7825 #: ../fish/guestfish-actions.pod:1244
7826 msgid "then the returned list from L</find> C</tmp> would be 4 elements:"
7827 msgstr ""
7828
7829 #. type: verbatim
7830 #: ../fish/guestfish-actions.pod:1247 ../src/guestfs-actions.pod:1925
7831 #, no-wrap
7832 msgid ""
7833 " a\n"
7834 " b\n"
7835 " c\n"
7836 " c/d\n"
7837 "\n"
7838 msgstr ""
7839
7840 #. type: textblock
7841 #: ../fish/guestfish-actions.pod:1252 ../src/guestfs-actions.pod:1930
7842 msgid "If C<directory> is not a directory, then this command returns an error."
7843 msgstr ""
7844
7845 #. type: textblock
7846 #: ../fish/guestfish-actions.pod:1255 ../src/guestfs-actions.pod:1933
7847 msgid "The returned list is sorted."
7848 msgstr ""
7849
7850 #. type: textblock
7851 #: ../fish/guestfish-actions.pod:1257
7852 msgid "See also L</find0>."
7853 msgstr "Див. також L</find0>."
7854
7855 #. type: =head2
7856 #: ../fish/guestfish-actions.pod:1262
7857 msgid "find0"
7858 msgstr "find0"
7859
7860 #. type: verbatim
7861 #: ../fish/guestfish-actions.pod:1264
7862 #, no-wrap
7863 msgid ""
7864 " find0 directory (files|-)\n"
7865 "\n"
7866 msgstr ""
7867 " find0 каталог (файли|-)\n"
7868 "\n"
7869
7870 #. type: textblock
7871 #: ../fish/guestfish-actions.pod:1266 ../src/guestfs-actions.pod:1953
7872 msgid ""
7873 "This command lists out all files and directories, recursively, starting at "
7874 "C<directory>, placing the resulting list in the external file called "
7875 "C<files>."
7876 msgstr ""
7877
7878 #. type: textblock
7879 #: ../fish/guestfish-actions.pod:1270
7880 msgid ""
7881 "This command works the same way as L</find> with the following exceptions:"
7882 msgstr ""
7883
7884 #. type: textblock
7885 #: ../fish/guestfish-actions.pod:1277 ../src/guestfs-actions.pod:1964
7886 msgid "The resulting list is written to an external file."
7887 msgstr ""
7888
7889 #. type: textblock
7890 #: ../fish/guestfish-actions.pod:1281 ../src/guestfs-actions.pod:1968
7891 msgid ""
7892 "Items (filenames) in the result are separated by C<\\0> characters.  See "
7893 "L<find(1)> option I<-print0>."
7894 msgstr ""
7895
7896 #. type: textblock
7897 #: ../fish/guestfish-actions.pod:1286 ../src/guestfs-actions.pod:1973
7898 msgid "This command is not limited in the number of names that it can return."
7899 msgstr ""
7900
7901 #. type: textblock
7902 #: ../fish/guestfish-actions.pod:1291 ../src/guestfs-actions.pod:1978
7903 msgid "The result list is not sorted."
7904 msgstr ""
7905
7906 #. type: =head2
7907 #: ../fish/guestfish-actions.pod:1297
7908 msgid "findfs-label"
7909 msgstr "findfs-label"
7910
7911 #. type: verbatim
7912 #: ../fish/guestfish-actions.pod:1299
7913 #, no-wrap
7914 msgid ""
7915 " findfs-label label\n"
7916 "\n"
7917 msgstr ""
7918 " findfs-label мітка\n"
7919 "\n"
7920
7921 #. type: textblock
7922 #: ../fish/guestfish-actions.pod:1301 ../src/guestfs-actions.pod:1992
7923 msgid ""
7924 "This command searches the filesystems and returns the one which has the "
7925 "given label.  An error is returned if no such filesystem can be found."
7926 msgstr ""
7927
7928 #. type: textblock
7929 #: ../fish/guestfish-actions.pod:1305
7930 msgid "To find the label of a filesystem, use L</vfs-label>."
7931 msgstr "Для визначення мітки файлової системи скористайтеся L</vfs-label>."
7932
7933 #. type: =head2
7934 #: ../fish/guestfish-actions.pod:1307
7935 msgid "findfs-uuid"
7936 msgstr "findfs-uuid"
7937
7938 #. type: verbatim
7939 #: ../fish/guestfish-actions.pod:1309
7940 #, no-wrap
7941 msgid ""
7942 " findfs-uuid uuid\n"
7943 "\n"
7944 msgstr ""
7945 " findfs-uuid uuid\n"
7946 "\n"
7947
7948 #. type: textblock
7949 #: ../fish/guestfish-actions.pod:1311 ../src/guestfs-actions.pod:2009
7950 msgid ""
7951 "This command searches the filesystems and returns the one which has the "
7952 "given UUID.  An error is returned if no such filesystem can be found."
7953 msgstr ""
7954
7955 #. type: textblock
7956 #: ../fish/guestfish-actions.pod:1315
7957 msgid "To find the UUID of a filesystem, use L</vfs-uuid>."
7958 msgstr "Для визначення UUID файлової системи скористайтеся L</vfs-uuid>."
7959
7960 #. type: =head2
7961 #: ../fish/guestfish-actions.pod:1317
7962 msgid "fsck"
7963 msgstr "fsck"
7964
7965 #. type: verbatim
7966 #: ../fish/guestfish-actions.pod:1319
7967 #, no-wrap
7968 msgid ""
7969 " fsck fstype device\n"
7970 "\n"
7971 msgstr ""
7972 " fsck тип_файлової_системи пристрій\n"
7973 "\n"
7974
7975 #. type: textblock
7976 #: ../fish/guestfish-actions.pod:1321 ../src/guestfs-actions.pod:2027
7977 msgid ""
7978 "This runs the filesystem checker (fsck) on C<device> which should have "
7979 "filesystem type C<fstype>."
7980 msgstr ""
7981
7982 #. type: textblock
7983 #: ../fish/guestfish-actions.pod:1324 ../src/guestfs-actions.pod:2030
7984 msgid ""
7985 "The returned integer is the status.  See L<fsck(8)> for the list of status "
7986 "codes from C<fsck>."
7987 msgstr ""
7988
7989 #. type: textblock
7990 #: ../fish/guestfish-actions.pod:1333 ../src/guestfs-actions.pod:2039
7991 msgid "Multiple status codes can be summed together."
7992 msgstr ""
7993
7994 #. type: textblock
7995 #: ../fish/guestfish-actions.pod:1337 ../src/guestfs-actions.pod:2043
7996 msgid ""
7997 "A non-zero return code can mean \"success\", for example if errors have been "
7998 "corrected on the filesystem."
7999 msgstr ""
8000
8001 #. type: textblock
8002 #: ../fish/guestfish-actions.pod:1342 ../src/guestfs-actions.pod:2048
8003 msgid "Checking or repairing NTFS volumes is not supported (by linux-ntfs)."
8004 msgstr ""
8005
8006 #. type: textblock
8007 #: ../fish/guestfish-actions.pod:1347 ../src/guestfs-actions.pod:2053
8008 msgid ""
8009 "This command is entirely equivalent to running C<fsck -a -t fstype device>."
8010 msgstr ""
8011
8012 #. type: =head2
8013 #: ../fish/guestfish-actions.pod:1349
8014 msgid "get-append"
8015 msgstr "get-append"
8016
8017 #. type: verbatim
8018 #: ../fish/guestfish-actions.pod:1351
8019 #, no-wrap
8020 msgid ""
8021 " get-append\n"
8022 "\n"
8023 msgstr ""
8024 " get-append\n"
8025 "\n"
8026
8027 #. type: textblock
8028 #: ../fish/guestfish-actions.pod:1353 ../src/guestfs-actions.pod:2064
8029 msgid ""
8030 "Return the additional kernel options which are added to the guest kernel "
8031 "command line."
8032 msgstr ""
8033
8034 #. type: textblock
8035 #: ../fish/guestfish-actions.pod:1356 ../src/guestfs-actions.pod:2067
8036 msgid "If C<NULL> then no options are added."
8037 msgstr ""
8038
8039 #. type: =head2
8040 #: ../fish/guestfish-actions.pod:1358
8041 msgid "get-attach-method"
8042 msgstr "get-attach-method"
8043
8044 #. type: verbatim
8045 #: ../fish/guestfish-actions.pod:1360
8046 #, no-wrap
8047 msgid ""
8048 " get-attach-method\n"
8049 "\n"
8050 msgstr ""
8051 " get-attach-method\n"
8052 "\n"
8053
8054 #. type: textblock
8055 #: ../fish/guestfish-actions.pod:1362
8056 msgid "Return the current attach method.  See L</set-attach-method>."
8057 msgstr ""
8058
8059 #. type: =head2
8060 #: ../fish/guestfish-actions.pod:1364
8061 msgid "get-autosync"
8062 msgstr "get-autosync"
8063
8064 #. type: verbatim
8065 #: ../fish/guestfish-actions.pod:1366
8066 #, no-wrap
8067 msgid ""
8068 " get-autosync\n"
8069 "\n"
8070 msgstr ""
8071 " get-autosync\n"
8072 "\n"
8073
8074 #. type: textblock
8075 #: ../fish/guestfish-actions.pod:1368 ../src/guestfs-actions.pod:2092
8076 msgid "Get the autosync flag."
8077 msgstr ""
8078
8079 #. type: =head2
8080 #: ../fish/guestfish-actions.pod:1370
8081 msgid "get-direct"
8082 msgstr "get-direct"
8083
8084 #. type: verbatim
8085 #: ../fish/guestfish-actions.pod:1372
8086 #, no-wrap
8087 msgid ""
8088 " get-direct\n"
8089 "\n"
8090 msgstr ""
8091 " get-direct\n"
8092 "\n"
8093
8094 #. type: textblock
8095 #: ../fish/guestfish-actions.pod:1374 ../src/guestfs-actions.pod:2103
8096 msgid "Return the direct appliance mode flag."
8097 msgstr ""
8098
8099 #. type: =head2
8100 #: ../fish/guestfish-actions.pod:1376
8101 msgid "get-e2label"
8102 msgstr "get-e2label"
8103
8104 #. type: verbatim
8105 #: ../fish/guestfish-actions.pod:1378
8106 #, no-wrap
8107 msgid ""
8108 " get-e2label device\n"
8109 "\n"
8110 msgstr ""
8111 " get-e2label пристрій\n"
8112 "\n"
8113
8114 #. type: textblock
8115 #: ../fish/guestfish-actions.pod:1380 ../src/guestfs-actions.pod:2122
8116 msgid ""
8117 "This returns the ext2/3/4 filesystem label of the filesystem on C<device>."
8118 msgstr ""
8119
8120 #. type: textblock
8121 #: ../fish/guestfish-actions.pod:1383
8122 msgid ""
8123 "I<This function is deprecated.> In new code, use the L</vfs_label> call "
8124 "instead."
8125 msgstr ""
8126
8127 #. type: =head2
8128 #: ../fish/guestfish-actions.pod:1390
8129 msgid "get-e2uuid"
8130 msgstr "get-e2uuid"
8131
8132 #. type: verbatim
8133 #: ../fish/guestfish-actions.pod:1392
8134 #, no-wrap
8135 msgid ""
8136 " get-e2uuid device\n"
8137 "\n"
8138 msgstr ""
8139 " get-e2uuid пристрій\n"
8140 "\n"
8141
8142 #. type: textblock
8143 #: ../fish/guestfish-actions.pod:1394 ../src/guestfs-actions.pod:2143
8144 msgid ""
8145 "This returns the ext2/3/4 filesystem UUID of the filesystem on C<device>."
8146 msgstr ""
8147
8148 #. type: textblock
8149 #: ../fish/guestfish-actions.pod:1397
8150 msgid ""
8151 "I<This function is deprecated.> In new code, use the L</vfs_uuid> call "
8152 "instead."
8153 msgstr ""
8154
8155 #. type: =head2
8156 #: ../fish/guestfish-actions.pod:1404
8157 msgid "get-memsize"
8158 msgstr "get-memsize"
8159
8160 #. type: verbatim
8161 #: ../fish/guestfish-actions.pod:1406
8162 #, no-wrap
8163 msgid ""
8164 " get-memsize\n"
8165 "\n"
8166 msgstr ""
8167 " get-memsize\n"
8168 "\n"
8169
8170 #. type: textblock
8171 #: ../fish/guestfish-actions.pod:1408 ../src/guestfs-actions.pod:2156
8172 msgid ""
8173 "This gets the memory size in megabytes allocated to the qemu subprocess."
8174 msgstr ""
8175
8176 #. type: textblock
8177 #: ../fish/guestfish-actions.pod:1411
8178 msgid ""
8179 "If L</set-memsize> was not called on this handle, and if "
8180 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
8181 "value for memsize."
8182 msgstr ""
8183
8184 #. type: textblock
8185 #: ../fish/guestfish-actions.pod:1415 ../fish/guestfish-actions.pod:1472
8186 #: ../fish/guestfish-actions.pod:4225 ../fish/guestfish-actions.pod:4327
8187 #: ../src/guestfs-actions.pod:2163 ../src/guestfs-actions.pod:2255
8188 #: ../src/guestfs-actions.pod:6436 ../src/guestfs-actions.pod:6562
8189 msgid ""
8190 "For more information on the architecture of libguestfs, see L<guestfs(3)>."
8191 msgstr ""
8192
8193 #. type: =head2
8194 #: ../fish/guestfish-actions.pod:1418
8195 msgid "get-network"
8196 msgstr "get-network"
8197
8198 #. type: verbatim
8199 #: ../fish/guestfish-actions.pod:1420
8200 #, no-wrap
8201 msgid ""
8202 " get-network\n"
8203 "\n"
8204 msgstr ""
8205 " get-network\n"
8206 "\n"
8207
8208 #. type: textblock
8209 #: ../fish/guestfish-actions.pod:1422 ../src/guestfs-actions.pod:2175
8210 msgid "This returns the enable network flag."
8211 msgstr ""
8212
8213 #. type: =head2
8214 #: ../fish/guestfish-actions.pod:1424
8215 msgid "get-path"
8216 msgstr "get-path"
8217
8218 #. type: verbatim
8219 #: ../fish/guestfish-actions.pod:1426
8220 #, no-wrap
8221 msgid ""
8222 " get-path\n"
8223 "\n"
8224 msgstr ""
8225 " get-path\n"
8226 "\n"
8227
8228 #. type: textblock
8229 #: ../fish/guestfish-actions.pod:1428 ../src/guestfs-actions.pod:2186
8230 msgid "Return the current search path."
8231 msgstr ""
8232
8233 #. type: textblock
8234 #: ../fish/guestfish-actions.pod:1430 ../src/guestfs-actions.pod:2188
8235 msgid ""
8236 "This is always non-NULL.  If it wasn't set already, then this will return "
8237 "the default path."
8238 msgstr ""
8239
8240 #. type: =head2
8241 #: ../fish/guestfish-actions.pod:1433
8242 msgid "get-pgroup"
8243 msgstr ""
8244
8245 #. type: verbatim
8246 #: ../fish/guestfish-actions.pod:1435
8247 #, no-wrap
8248 msgid ""
8249 " get-pgroup\n"
8250 "\n"
8251 msgstr ""
8252
8253 #. type: textblock
8254 #: ../fish/guestfish-actions.pod:1437 ../src/guestfs-actions.pod:2201
8255 msgid "This returns the process group flag."
8256 msgstr ""
8257
8258 #. type: =head2
8259 #: ../fish/guestfish-actions.pod:1439
8260 msgid "get-pid"
8261 msgstr "get-pid"
8262
8263 #. type: =head2
8264 #: ../fish/guestfish-actions.pod:1441
8265 msgid "pid"
8266 msgstr ""
8267
8268 #. type: verbatim
8269 #: ../fish/guestfish-actions.pod:1443
8270 #, no-wrap
8271 msgid ""
8272 " get-pid\n"
8273 "\n"
8274 msgstr ""
8275 " get-pid\n"
8276 "\n"
8277
8278 #. type: textblock
8279 #: ../fish/guestfish-actions.pod:1445 ../src/guestfs-actions.pod:2212
8280 msgid ""
8281 "Return the process ID of the qemu subprocess.  If there is no qemu "
8282 "subprocess, then this will return an error."
8283 msgstr ""
8284
8285 #. type: textblock
8286 #: ../fish/guestfish-actions.pod:1448 ../src/guestfs-actions.pod:2215
8287 msgid "This is an internal call used for debugging and testing."
8288 msgstr ""
8289
8290 #. type: =head2
8291 #: ../fish/guestfish-actions.pod:1450
8292 msgid "get-qemu"
8293 msgstr "get-qemu"
8294
8295 #. type: verbatim
8296 #: ../fish/guestfish-actions.pod:1452
8297 #, no-wrap
8298 msgid ""
8299 " get-qemu\n"
8300 "\n"
8301 msgstr ""
8302 " get-qemu\n"
8303 "\n"
8304
8305 #. type: textblock
8306 #: ../fish/guestfish-actions.pod:1454 ../src/guestfs-actions.pod:2226
8307 msgid "Return the current qemu binary."
8308 msgstr ""
8309
8310 #. type: textblock
8311 #: ../fish/guestfish-actions.pod:1456 ../src/guestfs-actions.pod:2228
8312 msgid ""
8313 "This is always non-NULL.  If it wasn't set already, then this will return "
8314 "the default qemu binary name."
8315 msgstr ""
8316
8317 #. type: =head2
8318 #: ../fish/guestfish-actions.pod:1459
8319 msgid "get-recovery-proc"
8320 msgstr "get-recovery-proc"
8321
8322 #. type: verbatim
8323 #: ../fish/guestfish-actions.pod:1461
8324 #, no-wrap
8325 msgid ""
8326 " get-recovery-proc\n"
8327 "\n"
8328 msgstr ""
8329 " get-recovery-proc\n"
8330 "\n"
8331
8332 #. type: textblock
8333 #: ../fish/guestfish-actions.pod:1463 ../src/guestfs-actions.pod:2241
8334 msgid "Return the recovery process enabled flag."
8335 msgstr ""
8336
8337 #. type: =head2
8338 #: ../fish/guestfish-actions.pod:1465
8339 msgid "get-selinux"
8340 msgstr "get-selinux"
8341
8342 #. type: verbatim
8343 #: ../fish/guestfish-actions.pod:1467
8344 #, no-wrap
8345 msgid ""
8346 " get-selinux\n"
8347 "\n"
8348 msgstr ""
8349 " get-selinux\n"
8350 "\n"
8351
8352 #. type: textblock
8353 #: ../fish/guestfish-actions.pod:1469
8354 msgid ""
8355 "This returns the current setting of the selinux flag which is passed to the "
8356 "appliance at boot time.  See L</set-selinux>."
8357 msgstr ""
8358
8359 #. type: =head2
8360 #: ../fish/guestfish-actions.pod:1475
8361 #, fuzzy
8362 #| msgid "get-pid"
8363 msgid "get-smp"
8364 msgstr "get-pid"
8365
8366 #. type: verbatim
8367 #: ../fish/guestfish-actions.pod:1477
8368 #, fuzzy, no-wrap
8369 #| msgid ""
8370 #| " get-pid\n"
8371 #| "\n"
8372 msgid ""
8373 " get-smp\n"
8374 "\n"
8375 msgstr ""
8376 " get-pid\n"
8377 "\n"
8378
8379 #. type: textblock
8380 #: ../fish/guestfish-actions.pod:1479 ../src/guestfs-actions.pod:2267
8381 msgid "This returns the number of virtual CPUs assigned to the appliance."
8382 msgstr ""
8383
8384 #. type: =head2
8385 #: ../fish/guestfish-actions.pod:1481
8386 msgid "get-state"
8387 msgstr "get-state"
8388
8389 #. type: verbatim
8390 #: ../fish/guestfish-actions.pod:1483
8391 #, no-wrap
8392 msgid ""
8393 " get-state\n"
8394 "\n"
8395 msgstr ""
8396 " get-state\n"
8397 "\n"
8398
8399 #. type: textblock
8400 #: ../fish/guestfish-actions.pod:1485 ../src/guestfs-actions.pod:2278
8401 msgid ""
8402 "This returns the current state as an opaque integer.  This is only useful "
8403 "for printing debug and internal error messages."
8404 msgstr ""
8405
8406 #. type: textblock
8407 #: ../fish/guestfish-actions.pod:1488 ../fish/guestfish-actions.pod:2434
8408 #: ../fish/guestfish-actions.pod:2452 ../fish/guestfish-actions.pod:2490
8409 #: ../fish/guestfish-actions.pod:2506 ../src/guestfs-actions.pod:2281
8410 #: ../src/guestfs-actions.pod:3587 ../src/guestfs-actions.pod:3616
8411 #: ../src/guestfs-actions.pod:3677 ../src/guestfs-actions.pod:3704
8412 msgid "For more information on states, see L<guestfs(3)>."
8413 msgstr ""
8414
8415 #. type: =head2
8416 #: ../fish/guestfish-actions.pod:1490
8417 msgid "get-trace"
8418 msgstr "get-trace"
8419
8420 #. type: verbatim
8421 #: ../fish/guestfish-actions.pod:1492
8422 #, no-wrap
8423 msgid ""
8424 " get-trace\n"
8425 "\n"
8426 msgstr ""
8427 " get-trace\n"
8428 "\n"
8429
8430 #. type: textblock
8431 #: ../fish/guestfish-actions.pod:1494 ../src/guestfs-actions.pod:2292
8432 msgid "Return the command trace flag."
8433 msgstr ""
8434
8435 #. type: =head2
8436 #: ../fish/guestfish-actions.pod:1496
8437 msgid "get-umask"
8438 msgstr "get-umask"
8439
8440 #. type: verbatim
8441 #: ../fish/guestfish-actions.pod:1498
8442 #, no-wrap
8443 msgid ""
8444 " get-umask\n"
8445 "\n"
8446 msgstr ""
8447 " get-umask\n"
8448 "\n"
8449
8450 #. type: textblock
8451 #: ../fish/guestfish-actions.pod:1500
8452 msgid ""
8453 "Return the current umask.  By default the umask is C<022> unless it has been "
8454 "set by calling L</umask>."
8455 msgstr ""
8456
8457 #. type: =head2
8458 #: ../fish/guestfish-actions.pod:1503
8459 msgid "get-verbose"
8460 msgstr "get-verbose"
8461
8462 #. type: verbatim
8463 #: ../fish/guestfish-actions.pod:1505
8464 #, no-wrap
8465 msgid ""
8466 " get-verbose\n"
8467 "\n"
8468 msgstr ""
8469 " get-verbose\n"
8470 "\n"
8471
8472 #. type: textblock
8473 #: ../fish/guestfish-actions.pod:1507 ../src/guestfs-actions.pod:2315
8474 msgid "This returns the verbose messages flag."
8475 msgstr ""
8476
8477 #. type: =head2
8478 #: ../fish/guestfish-actions.pod:1509
8479 msgid "getcon"
8480 msgstr "getcon"
8481
8482 #. type: verbatim
8483 #: ../fish/guestfish-actions.pod:1511
8484 #, no-wrap
8485 msgid ""
8486 " getcon\n"
8487 "\n"
8488 msgstr ""
8489 " getcon\n"
8490 "\n"
8491
8492 #. type: textblock
8493 #: ../fish/guestfish-actions.pod:1513 ../src/guestfs-actions.pod:2326
8494 msgid "This gets the SELinux security context of the daemon."
8495 msgstr ""
8496
8497 #. type: textblock
8498 #: ../fish/guestfish-actions.pod:1515
8499 msgid "See the documentation about SELINUX in L<guestfs(3)>, and L</setcon>"
8500 msgstr ""
8501
8502 #. type: =head2
8503 #: ../fish/guestfish-actions.pod:1518
8504 msgid "getxattr"
8505 msgstr "getxattr"
8506
8507 #. type: verbatim
8508 #: ../fish/guestfish-actions.pod:1520
8509 #, no-wrap
8510 msgid ""
8511 " getxattr path name\n"
8512 "\n"
8513 msgstr ""
8514 " getxattr шлях назва\n"
8515 "\n"
8516
8517 #. type: textblock
8518 #: ../fish/guestfish-actions.pod:1522
8519 msgid ""
8520 "Get a single extended attribute from file C<path> named C<name>.  This call "
8521 "follows symlinks.  If you want to lookup an extended attribute for the "
8522 "symlink itself, use L</lgetxattr>."
8523 msgstr ""
8524
8525 #. type: textblock
8526 #: ../fish/guestfish-actions.pod:1526 ../fish/guestfish-actions.pod:2579
8527 msgid ""
8528 "Normally it is better to get all extended attributes from a file in one go "
8529 "by calling L</getxattrs>.  However some Linux filesystem implementations are "
8530 "buggy and do not provide a way to list out attributes.  For these "
8531 "filesystems (notably ntfs-3g)  you have to know the names of the extended "
8532 "attributes you want in advance and call this function."
8533 msgstr ""
8534
8535 #. type: textblock
8536 #: ../fish/guestfish-actions.pod:1533 ../fish/guestfish-actions.pod:2586
8537 #: ../src/guestfs-actions.pod:2355 ../src/guestfs-actions.pod:3837
8538 msgid ""
8539 "Extended attribute values are blobs of binary data.  If there is no extended "
8540 "attribute named C<name>, this returns an error."
8541 msgstr ""
8542
8543 #. type: textblock
8544 #: ../fish/guestfish-actions.pod:1536
8545 msgid "See also: L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8546 msgstr "Див. також L</getxattrs>, L</lgetxattr>, L<attr(5)>."
8547
8548 #. type: =head2
8549 #: ../fish/guestfish-actions.pod:1538
8550 msgid "getxattrs"
8551 msgstr "getxattrs"
8552
8553 #. type: verbatim
8554 #: ../fish/guestfish-actions.pod:1540
8555 #, no-wrap
8556 msgid ""
8557 " getxattrs path\n"
8558 "\n"
8559 msgstr ""
8560 " getxattrs шлях\n"
8561 "\n"
8562
8563 #. type: textblock
8564 #: ../fish/guestfish-actions.pod:1542 ../src/guestfs-actions.pod:2372
8565 msgid ""
8566 "This call lists the extended attributes of the file or directory C<path>."
8567 msgstr ""
8568
8569 #. type: textblock
8570 #: ../fish/guestfish-actions.pod:1545 ../src/guestfs-actions.pod:2375
8571 msgid ""
8572 "At the system call level, this is a combination of the L<listxattr(2)> and "
8573 "L<getxattr(2)> calls."
8574 msgstr ""
8575
8576 #. type: textblock
8577 #: ../fish/guestfish-actions.pod:1548
8578 msgid "See also: L</lgetxattrs>, L<attr(5)>."
8579 msgstr "Див. також L</lgetxattrs>, L<attr(5)>."
8580
8581 #. type: =head2
8582 #: ../fish/guestfish-actions.pod:1550
8583 msgid "glob-expand"
8584 msgstr "glob-expand"
8585
8586 #. type: verbatim
8587 #: ../fish/guestfish-actions.pod:1552
8588 #, no-wrap
8589 msgid ""
8590 " glob-expand pattern\n"
8591 "\n"
8592 msgstr ""
8593 " glob-expand шаблон\n"
8594 "\n"
8595
8596 #. type: textblock
8597 #: ../fish/guestfish-actions.pod:1554 ../src/guestfs-actions.pod:2392
8598 msgid ""
8599 "This command searches for all the pathnames matching C<pattern> according to "
8600 "the wildcard expansion rules used by the shell."
8601 msgstr ""
8602
8603 #. type: textblock
8604 #: ../fish/guestfish-actions.pod:1558 ../src/guestfs-actions.pod:2396
8605 msgid ""
8606 "If no paths match, then this returns an empty list (note: not an error)."
8607 msgstr ""
8608
8609 #. type: textblock
8610 #: ../fish/guestfish-actions.pod:1561 ../src/guestfs-actions.pod:2399
8611 msgid ""
8612 "It is just a wrapper around the C L<glob(3)> function with flags C<GLOB_MARK|"
8613 "GLOB_BRACE>.  See that manual page for more details."
8614 msgstr ""
8615
8616 #. type: =head2
8617 #: ../fish/guestfish-actions.pod:1565
8618 msgid "grep"
8619 msgstr "grep"
8620
8621 #. type: verbatim
8622 #: ../fish/guestfish-actions.pod:1567
8623 #, no-wrap
8624 msgid ""
8625 " grep regex path\n"
8626 "\n"
8627 msgstr ""
8628 " grepi формальний_вираз шлях\n"
8629 "\n"
8630
8631 #. type: textblock
8632 #: ../fish/guestfish-actions.pod:1569 ../src/guestfs-actions.pod:2416
8633 msgid "This calls the external C<grep> program and returns the matching lines."
8634 msgstr ""
8635
8636 #. type: =head2
8637 #: ../fish/guestfish-actions.pod:1575
8638 msgid "grepi"
8639 msgstr "grepi"
8640
8641 #. type: verbatim
8642 #: ../fish/guestfish-actions.pod:1577
8643 #, no-wrap
8644 msgid ""
8645 " grepi regex path\n"
8646 "\n"
8647 msgstr ""
8648 " grepi формальний_вираз шлях\n"
8649 "\n"
8650
8651 #. type: textblock
8652 #: ../fish/guestfish-actions.pod:1579 ../src/guestfs-actions.pod:2435
8653 msgid ""
8654 "This calls the external C<grep -i> program and returns the matching lines."
8655 msgstr ""
8656
8657 #. type: =head2
8658 #: ../fish/guestfish-actions.pod:1585
8659 msgid "grub-install"
8660 msgstr "grub-install"
8661
8662 #. type: verbatim
8663 #: ../fish/guestfish-actions.pod:1587
8664 #, no-wrap
8665 msgid ""
8666 " grub-install root device\n"
8667 "\n"
8668 msgstr ""
8669 " grub-install кореневий пристрій\n"
8670 "\n"
8671
8672 #. type: textblock
8673 #: ../fish/guestfish-actions.pod:1589 ../src/guestfs-actions.pod:2454
8674 msgid ""
8675 "This command installs GRUB 1 (the Grand Unified Bootloader) on C<device>, "
8676 "with the root directory being C<root>."
8677 msgstr ""
8678
8679 #. type: textblock
8680 #: ../fish/guestfish-actions.pod:1598 ../src/guestfs-actions.pod:2463
8681 msgid ""
8682 "There is currently no way in the API to install grub2, which is used by most "
8683 "modern Linux guests.  It is possible to run the grub2 command from the "
8684 "guest, although see the caveats in L<guestfs(3)/RUNNING COMMANDS>."
8685 msgstr ""
8686
8687 #. type: textblock
8688 #: ../fish/guestfish-actions.pod:1605 ../src/guestfs-actions.pod:2470
8689 msgid ""
8690 "This uses C<grub-install> from the host.  Unfortunately grub is not always "
8691 "compatible with itself, so this only works in rather narrow circumstances.  "
8692 "Careful testing with each guest version is advisable."
8693 msgstr ""
8694
8695 #. type: textblock
8696 #: ../fish/guestfish-actions.pod:1612 ../src/guestfs-actions.pod:2477
8697 msgid ""
8698 "If grub-install reports the error \"No suitable drive was found in the "
8699 "generated device map.\" it may be that you need to create a C</boot/grub/"
8700 "device.map> file first that contains the mapping between grub device names "
8701 "and Linux device names.  It is usually sufficient to create a file "
8702 "containing:"
8703 msgstr ""
8704
8705 #. type: verbatim
8706 #: ../fish/guestfish-actions.pod:1619 ../src/guestfs-actions.pod:2484
8707 #, no-wrap
8708 msgid ""
8709 " (hd0) /dev/vda\n"
8710 "\n"
8711 msgstr ""
8712
8713 #. type: textblock
8714 #: ../fish/guestfish-actions.pod:1621 ../src/guestfs-actions.pod:2486
8715 msgid "replacing C</dev/vda> with the name of the installation device."
8716 msgstr ""
8717
8718 #. type: =head2
8719 #: ../fish/guestfish-actions.pod:1625
8720 msgid "head"
8721 msgstr "head"
8722
8723 #. type: verbatim
8724 #: ../fish/guestfish-actions.pod:1627
8725 #, no-wrap
8726 msgid ""
8727 " head path\n"
8728 "\n"
8729 msgstr ""
8730 " head шлях\n"
8731 "\n"
8732
8733 #. type: textblock
8734 #: ../fish/guestfish-actions.pod:1629 ../src/guestfs-actions.pod:2500
8735 msgid ""
8736 "This command returns up to the first 10 lines of a file as a list of strings."
8737 msgstr ""
8738
8739 #. type: =head2
8740 #: ../fish/guestfish-actions.pod:1635
8741 msgid "head-n"
8742 msgstr "head-n"
8743
8744 #. type: verbatim
8745 #: ../fish/guestfish-actions.pod:1637
8746 #, no-wrap
8747 msgid ""
8748 " head-n nrlines path\n"
8749 "\n"
8750 msgstr ""
8751
8752 #. type: textblock
8753 #: ../fish/guestfish-actions.pod:1639 ../src/guestfs-actions.pod:2519
8754 msgid ""
8755 "If the parameter C<nrlines> is a positive number, this returns the first "
8756 "C<nrlines> lines of the file C<path>."
8757 msgstr ""
8758
8759 #. type: textblock
8760 #: ../fish/guestfish-actions.pod:1642 ../src/guestfs-actions.pod:2522
8761 msgid ""
8762 "If the parameter C<nrlines> is a negative number, this returns lines from "
8763 "the file C<path>, excluding the last C<nrlines> lines."
8764 msgstr ""
8765
8766 #. type: textblock
8767 #: ../fish/guestfish-actions.pod:1645 ../fish/guestfish-actions.pod:4717
8768 #: ../src/guestfs-actions.pod:2525 ../src/guestfs-actions.pod:7150
8769 msgid "If the parameter C<nrlines> is zero, this returns an empty list."
8770 msgstr ""
8771
8772 #. type: =head2
8773 #: ../fish/guestfish-actions.pod:1650
8774 msgid "hexdump"
8775 msgstr "hexdump"
8776
8777 #. type: verbatim
8778 #: ../fish/guestfish-actions.pod:1652
8779 #, no-wrap
8780 msgid ""
8781 " hexdump path\n"
8782 "\n"
8783 msgstr ""
8784 " hexdump шлях\n"
8785 "\n"
8786
8787 #. type: textblock
8788 #: ../fish/guestfish-actions.pod:1654 ../src/guestfs-actions.pod:2542
8789 msgid ""
8790 "This runs C<hexdump -C> on the given C<path>.  The result is the human-"
8791 "readable, canonical hex dump of the file."
8792 msgstr ""
8793
8794 #. type: =head2
8795 #: ../fish/guestfish-actions.pod:1660
8796 msgid "initrd-cat"
8797 msgstr "initrd-cat"
8798
8799 #. type: verbatim
8800 #: ../fish/guestfish-actions.pod:1662
8801 #, no-wrap
8802 msgid ""
8803 " initrd-cat initrdpath filename\n"
8804 "\n"
8805 msgstr ""
8806 " initrd-cat шлях_initrd назва_файла\n"
8807 "\n"
8808
8809 #. type: textblock
8810 #: ../fish/guestfish-actions.pod:1664 ../src/guestfs-actions.pod:2561
8811 msgid ""
8812 "This command unpacks the file C<filename> from the initrd file called "
8813 "C<initrdpath>.  The filename must be given I<without> the initial C</> "
8814 "character."
8815 msgstr ""
8816
8817 #. type: textblock
8818 #: ../fish/guestfish-actions.pod:1668 ../src/guestfs-actions.pod:2565
8819 msgid ""
8820 "For example, in guestfish you could use the following command to examine the "
8821 "boot script (usually called C</init>)  contained in a Linux initrd or "
8822 "initramfs image:"
8823 msgstr ""
8824
8825 #. type: verbatim
8826 #: ../fish/guestfish-actions.pod:1672 ../src/guestfs-actions.pod:2569
8827 #, no-wrap
8828 msgid ""
8829 " initrd-cat /boot/initrd-<version>.img init\n"
8830 "\n"
8831 msgstr ""
8832
8833 #. type: textblock
8834 #: ../fish/guestfish-actions.pod:1674
8835 msgid "See also L</initrd-list>."
8836 msgstr "Див. також L</initrd-list>."
8837
8838 #. type: =head2
8839 #: ../fish/guestfish-actions.pod:1679
8840 msgid "initrd-list"
8841 msgstr "initrd-list"
8842
8843 #. type: verbatim
8844 #: ../fish/guestfish-actions.pod:1681
8845 #, no-wrap
8846 msgid ""
8847 " initrd-list path\n"
8848 "\n"
8849 msgstr ""
8850 " initrd-list шлях\n"
8851 "\n"
8852
8853 #. type: textblock
8854 #: ../fish/guestfish-actions.pod:1683 ../src/guestfs-actions.pod:2588
8855 msgid "This command lists out files contained in an initrd."
8856 msgstr ""
8857
8858 #. type: textblock
8859 #: ../fish/guestfish-actions.pod:1685 ../src/guestfs-actions.pod:2590
8860 msgid ""
8861 "The files are listed without any initial C</> character.  The files are "
8862 "listed in the order they appear (not necessarily alphabetical).  Directory "
8863 "names are listed as separate items."
8864 msgstr ""
8865
8866 #. type: textblock
8867 #: ../fish/guestfish-actions.pod:1689 ../src/guestfs-actions.pod:2594
8868 msgid ""
8869 "Old Linux kernels (2.4 and earlier) used a compressed ext2 filesystem as "
8870 "initrd.  We I<only> support the newer initramfs format (compressed cpio "
8871 "files)."
8872 msgstr ""
8873
8874 #. type: =head2
8875 #: ../fish/guestfish-actions.pod:1693
8876 msgid "inotify-add-watch"
8877 msgstr "inotify-add-watch"
8878
8879 #. type: verbatim
8880 #: ../fish/guestfish-actions.pod:1695
8881 #, no-wrap
8882 msgid ""
8883 " inotify-add-watch path mask\n"
8884 "\n"
8885 msgstr ""
8886 " inotify-add-watch шлях маска\n"
8887 "\n"
8888
8889 #. type: textblock
8890 #: ../fish/guestfish-actions.pod:1697 ../src/guestfs-actions.pod:2611
8891 msgid "Watch C<path> for the events listed in C<mask>."
8892 msgstr ""
8893
8894 #. type: textblock
8895 #: ../fish/guestfish-actions.pod:1699 ../src/guestfs-actions.pod:2613
8896 msgid ""
8897 "Note that if C<path> is a directory then events within that directory are "
8898 "watched, but this does I<not> happen recursively (in subdirectories)."
8899 msgstr ""
8900
8901 #. type: textblock
8902 #: ../fish/guestfish-actions.pod:1703 ../src/guestfs-actions.pod:2617
8903 msgid ""
8904 "Note for non-C or non-Linux callers: the inotify events are defined by the "
8905 "Linux kernel ABI and are listed in C</usr/include/sys/inotify.h>."
8906 msgstr ""
8907
8908 #. type: =head2
8909 #: ../fish/guestfish-actions.pod:1707
8910 msgid "inotify-close"
8911 msgstr "inotify-close"
8912
8913 #. type: verbatim
8914 #: ../fish/guestfish-actions.pod:1709
8915 #, no-wrap
8916 msgid ""
8917 " inotify-close\n"
8918 "\n"
8919 msgstr ""
8920 " inotify-close\n"
8921 "\n"
8922
8923 #. type: textblock
8924 #: ../fish/guestfish-actions.pod:1711 ../src/guestfs-actions.pod:2630
8925 msgid ""
8926 "This closes the inotify handle which was previously opened by inotify_init.  "
8927 "It removes all watches, throws away any pending events, and deallocates all "
8928 "resources."
8929 msgstr ""
8930
8931 #. type: =head2
8932 #: ../fish/guestfish-actions.pod:1715
8933 msgid "inotify-files"
8934 msgstr "inotify-files"
8935
8936 #. type: verbatim
8937 #: ../fish/guestfish-actions.pod:1717
8938 #, no-wrap
8939 msgid ""
8940 " inotify-files\n"
8941 "\n"
8942 msgstr ""
8943 " inotify-files\n"
8944 "\n"
8945
8946 #. type: textblock
8947 #: ../fish/guestfish-actions.pod:1719
8948 msgid ""
8949 "This function is a helpful wrapper around L</inotify-read> which just "
8950 "returns a list of pathnames of objects that were touched.  The returned "
8951 "pathnames are sorted and deduplicated."
8952 msgstr ""
8953
8954 #. type: =head2
8955 #: ../fish/guestfish-actions.pod:1723
8956 msgid "inotify-init"
8957 msgstr "inotify-init"
8958
8959 #. type: verbatim
8960 #: ../fish/guestfish-actions.pod:1725
8961 #, no-wrap
8962 msgid ""
8963 " inotify-init maxevents\n"
8964 "\n"
8965 msgstr ""
8966
8967 #. type: textblock
8968 #: ../fish/guestfish-actions.pod:1727 ../src/guestfs-actions.pod:2659
8969 msgid ""
8970 "This command creates a new inotify handle.  The inotify subsystem can be "
8971 "used to notify events which happen to objects in the guest filesystem."
8972 msgstr ""
8973
8974 #. type: textblock
8975 #: ../fish/guestfish-actions.pod:1731
8976 msgid ""
8977 "C<maxevents> is the maximum number of events which will be queued up between "
8978 "calls to L</inotify-read> or L</inotify-files>.  If this is passed as C<0>, "
8979 "then the kernel (or previously set)  default is used.  For Linux 2.6.29 the "
8980 "default was 16384 events.  Beyond this limit, the kernel throws away events, "
8981 "but records the fact that it threw them away by setting a flag "
8982 "C<IN_Q_OVERFLOW> in the returned structure list (see L</inotify-read>)."
8983 msgstr ""
8984
8985 #. type: textblock
8986 #: ../fish/guestfish-actions.pod:1741
8987 msgid ""
8988 "Before any events are generated, you have to add some watches to the "
8989 "internal watch list.  See: L</inotify-add-watch>, L</inotify-rm-watch> and "
8990 "L</inotify-watch-all>."
8991 msgstr ""
8992
8993 #. type: textblock
8994 #: ../fish/guestfish-actions.pod:1747
8995 msgid ""
8996 "Queued up events should be read periodically by calling L</inotify-read> (or "
8997 "L</inotify-files> which is just a helpful wrapper around L</inotify-read>).  "
8998 "If you don't read the events out often enough then you risk the internal "
8999 "queue overflowing."
9000 msgstr ""
9001
9002 #. type: textblock
9003 #: ../fish/guestfish-actions.pod:1754
9004 msgid ""
9005 "The handle should be closed after use by calling L</inotify-close>.  This "
9006 "also removes any watches automatically."
9007 msgstr ""
9008
9009 #. type: textblock
9010 #: ../fish/guestfish-actions.pod:1758 ../src/guestfs-actions.pod:2690
9011 msgid ""
9012 "See also L<inotify(7)> for an overview of the inotify interface as exposed "
9013 "by the Linux kernel, which is roughly what we expose via libguestfs.  Note "
9014 "that there is one global inotify handle per libguestfs instance."
9015 msgstr ""
9016
9017 #. type: =head2
9018 #: ../fish/guestfish-actions.pod:1763
9019 msgid "inotify-read"
9020 msgstr "inotify-read"
9021
9022 #. type: verbatim
9023 #: ../fish/guestfish-actions.pod:1765
9024 #, no-wrap
9025 msgid ""
9026 " inotify-read\n"
9027 "\n"
9028 msgstr ""
9029 " inotify-read\n"
9030 "\n"
9031
9032 #. type: textblock
9033 #: ../fish/guestfish-actions.pod:1767 ../src/guestfs-actions.pod:2704
9034 msgid ""
9035 "Return the complete queue of events that have happened since the previous "
9036 "read call."
9037 msgstr ""
9038
9039 #. type: textblock
9040 #: ../fish/guestfish-actions.pod:1770 ../src/guestfs-actions.pod:2707
9041 msgid "If no events have happened, this returns an empty list."
9042 msgstr ""
9043
9044 #. type: textblock
9045 #: ../fish/guestfish-actions.pod:1772 ../src/guestfs-actions.pod:2709
9046 msgid ""
9047 "I<Note>: In order to make sure that all events have been read, you must call "
9048 "this function repeatedly until it returns an empty list.  The reason is that "
9049 "the call will read events up to the maximum appliance-to-host message size "
9050 "and leave remaining events in the queue."
9051 msgstr ""
9052
9053 #. type: =head2
9054 #: ../fish/guestfish-actions.pod:1778
9055 msgid "inotify-rm-watch"
9056 msgstr "inotify-rm-watch"
9057
9058 #. type: verbatim
9059 #: ../fish/guestfish-actions.pod:1780
9060 #, no-wrap
9061 msgid ""
9062 " inotify-rm-watch wd\n"
9063 "\n"
9064 msgstr ""
9065
9066 #. type: textblock
9067 #: ../fish/guestfish-actions.pod:1782
9068 msgid "Remove a previously defined inotify watch.  See L</inotify-add-watch>."
9069 msgstr ""
9070
9071 #. type: =head2
9072 #: ../fish/guestfish-actions.pod:1785
9073 msgid "inspect-get-arch"
9074 msgstr "inspect-get-arch"
9075
9076 #. type: verbatim
9077 #: ../fish/guestfish-actions.pod:1787
9078 #, no-wrap
9079 msgid ""
9080 " inspect-get-arch root\n"
9081 "\n"
9082 msgstr ""
9083 " inspect-get-arch корінь\n"
9084 "\n"
9085
9086 #. type: textblock
9087 #: ../fish/guestfish-actions.pod:1789
9088 msgid ""
9089 "This returns the architecture of the inspected operating system.  The "
9090 "possible return values are listed under L</file-architecture>."
9091 msgstr ""
9092
9093 #. type: textblock
9094 #: ../fish/guestfish-actions.pod:1793 ../src/guestfs-actions.pod:2744
9095 msgid ""
9096 "If the architecture could not be determined, then the string C<unknown> is "
9097 "returned."
9098 msgstr ""
9099
9100 #. type: textblock
9101 #: ../fish/guestfish-actions.pod:1796 ../fish/guestfish-actions.pod:1883
9102 #: ../fish/guestfish-actions.pod:1962 ../fish/guestfish-actions.pod:1974
9103 #: ../fish/guestfish-actions.pod:2058 ../fish/guestfish-actions.pod:2119
9104 #: ../fish/guestfish-actions.pod:2140 ../fish/guestfish-actions.pod:2154
9105 #: ../fish/guestfish-actions.pod:2194 ../fish/guestfish-actions.pod:2226
9106 #: ../fish/guestfish-actions.pod:2239 ../fish/guestfish-actions.pod:2252
9107 #: ../fish/guestfish-actions.pod:2262 ../fish/guestfish-actions.pod:2272
9108 #: ../fish/guestfish-actions.pod:2284 ../fish/guestfish-actions.pod:2380
9109 #: ../fish/guestfish-actions.pod:2414 ../src/guestfs-actions.pod:2747
9110 #: ../src/guestfs-actions.pod:2841 ../src/guestfs-actions.pod:2945
9111 #: ../src/guestfs-actions.pod:2964 ../src/guestfs-actions.pod:3095
9112 #: ../src/guestfs-actions.pod:3178 ../src/guestfs-actions.pod:3206
9113 #: ../src/guestfs-actions.pod:3227 ../src/guestfs-actions.pod:3280
9114 #: ../src/guestfs-actions.pod:3320 ../src/guestfs-actions.pod:3340
9115 #: ../src/guestfs-actions.pod:3360 ../src/guestfs-actions.pod:3377
9116 #: ../src/guestfs-actions.pod:3393 ../src/guestfs-actions.pod:3411
9117 #: ../src/guestfs-actions.pod:3513 ../src/guestfs-actions.pod:3554
9118 msgid "Please read L<guestfs(3)/INSPECTION> for more details."
9119 msgstr ""
9120
9121 #. type: =head2
9122 #: ../fish/guestfish-actions.pod:1798
9123 msgid "inspect-get-distro"
9124 msgstr "inspect-get-distro"
9125
9126 #. type: verbatim
9127 #: ../fish/guestfish-actions.pod:1800
9128 #, no-wrap
9129 msgid ""
9130 " inspect-get-distro root\n"
9131 "\n"
9132 msgstr ""
9133 " inspect-get-distro корінь\n"
9134 "\n"
9135
9136 #. type: textblock
9137 #: ../fish/guestfish-actions.pod:1802 ../src/guestfs-actions.pod:2760
9138 msgid ""
9139 "This returns the distro (distribution) of the inspected operating system."
9140 msgstr ""
9141
9142 #. type: textblock
9143 #: ../fish/guestfish-actions.pod:1805 ../src/guestfs-actions.pod:2763
9144 msgid "Currently defined distros are:"
9145 msgstr ""
9146
9147 #. type: =item
9148 #: ../fish/guestfish-actions.pod:1809 ../src/guestfs-actions.pod:2767
9149 msgid "\"archlinux\""
9150 msgstr "\"archlinux\""
9151
9152 #. type: textblock
9153 #: ../fish/guestfish-actions.pod:1811 ../src/guestfs-actions.pod:2769
9154 msgid "Arch Linux."
9155 msgstr "Arch Linux."
9156
9157 #. type: =item
9158 #: ../fish/guestfish-actions.pod:1813 ../src/guestfs-actions.pod:2771
9159 msgid "\"centos\""
9160 msgstr ""
9161
9162 #. type: textblock
9163 #: ../fish/guestfish-actions.pod:1815 ../src/guestfs-actions.pod:2773
9164 msgid "CentOS."
9165 msgstr ""
9166
9167 #. type: =item
9168 #: ../fish/guestfish-actions.pod:1817 ../src/guestfs-actions.pod:2775
9169 msgid "\"debian\""
9170 msgstr "\"debian\""
9171
9172 #. type: textblock
9173 #: ../fish/guestfish-actions.pod:1819 ../src/guestfs-actions.pod:2777
9174 msgid "Debian."
9175 msgstr "Debian."
9176
9177 #. type: =item
9178 #: ../fish/guestfish-actions.pod:1821 ../src/guestfs-actions.pod:2779
9179 msgid "\"fedora\""
9180 msgstr "\"fedora\""
9181
9182 #. type: textblock
9183 #: ../fish/guestfish-actions.pod:1823 ../src/guestfs-actions.pod:2781
9184 msgid "Fedora."
9185 msgstr "Fedora."
9186
9187 #. type: =item
9188 #: ../fish/guestfish-actions.pod:1825 ../src/guestfs-actions.pod:2783
9189 msgid "\"gentoo\""
9190 msgstr "\"gentoo\""
9191
9192 #. type: textblock
9193 #: ../fish/guestfish-actions.pod:1827 ../src/guestfs-actions.pod:2785
9194 msgid "Gentoo."
9195 msgstr "Gentoo."
9196
9197 #. type: =item
9198 #: ../fish/guestfish-actions.pod:1829 ../src/guestfs-actions.pod:2787
9199 msgid "\"linuxmint\""
9200 msgstr "\"linuxmint\""
9201
9202 #. type: textblock
9203 #: ../fish/guestfish-actions.pod:1831 ../src/guestfs-actions.pod:2789
9204 msgid "Linux Mint."
9205 msgstr "Linux Mint."
9206
9207 #. type: =item
9208 #: ../fish/guestfish-actions.pod:1833 ../src/guestfs-actions.pod:2791
9209 msgid "\"mandriva\""
9210 msgstr "\"mandriva\""
9211
9212 #. type: textblock
9213 #: ../fish/guestfish-actions.pod:1835 ../src/guestfs-actions.pod:2793
9214 msgid "Mandriva."
9215 msgstr "Mandriva."
9216
9217 #. type: =item
9218 #: ../fish/guestfish-actions.pod:1837 ../src/guestfs-actions.pod:2795
9219 msgid "\"meego\""
9220 msgstr "\"meego\""
9221
9222 #. type: textblock
9223 #: ../fish/guestfish-actions.pod:1839 ../src/guestfs-actions.pod:2797
9224 msgid "MeeGo."
9225 msgstr "MeeGo."
9226
9227 #. type: =item
9228 #: ../fish/guestfish-actions.pod:1841 ../src/guestfs-actions.pod:2799
9229 msgid "\"pardus\""
9230 msgstr "\"pardus\""
9231
9232 #. type: textblock
9233 #: ../fish/guestfish-actions.pod:1843 ../src/guestfs-actions.pod:2801
9234 msgid "Pardus."
9235 msgstr "Pardus."
9236
9237 #. type: =item
9238 #: ../fish/guestfish-actions.pod:1845 ../src/guestfs-actions.pod:2803
9239 msgid "\"redhat-based\""
9240 msgstr "\"redhat-based\""
9241
9242 #. type: textblock
9243 #: ../fish/guestfish-actions.pod:1847 ../src/guestfs-actions.pod:2805
9244 msgid "Some Red Hat-derived distro."
9245 msgstr "Дистрибутив, що походить від Red Hat."
9246
9247 #. type: =item
9248 #: ../fish/guestfish-actions.pod:1849 ../src/guestfs-actions.pod:2807
9249 msgid "\"rhel\""
9250 msgstr "\"rhel\""
9251
9252 #. type: textblock
9253 #: ../fish/guestfish-actions.pod:1851 ../src/guestfs-actions.pod:2809
9254 msgid "Red Hat Enterprise Linux."
9255 msgstr ""
9256
9257 #. type: =item
9258 #: ../fish/guestfish-actions.pod:1853 ../src/guestfs-actions.pod:2811
9259 msgid "\"scientificlinux\""
9260 msgstr ""
9261
9262 #. type: textblock
9263 #: ../fish/guestfish-actions.pod:1855 ../src/guestfs-actions.pod:2813
9264 msgid "Scientific Linux."
9265 msgstr ""
9266
9267 #. type: =item
9268 #: ../fish/guestfish-actions.pod:1857 ../src/guestfs-actions.pod:2815
9269 msgid "\"slackware\""
9270 msgstr ""
9271
9272 #. type: textblock
9273 #: ../fish/guestfish-actions.pod:1859 ../src/guestfs-actions.pod:2817
9274 msgid "Slackware."
9275 msgstr ""
9276
9277 #. type: =item
9278 #: ../fish/guestfish-actions.pod:1861 ../src/guestfs-actions.pod:2819
9279 #, fuzzy
9280 #| msgid "\"linux\""
9281 msgid "\"ttylinux\""
9282 msgstr "\"linux\""
9283
9284 #. type: textblock
9285 #: ../fish/guestfish-actions.pod:1863 ../src/guestfs-actions.pod:2821
9286 #, fuzzy
9287 #| msgid "\"linux\""
9288 msgid "ttylinux."
9289 msgstr "\"linux\""
9290
9291 #. type: =item
9292 #: ../fish/guestfish-actions.pod:1865 ../src/guestfs-actions.pod:2823
9293 msgid "\"ubuntu\""
9294 msgstr "\"ubuntu\""
9295
9296 #. type: textblock
9297 #: ../fish/guestfish-actions.pod:1867 ../src/guestfs-actions.pod:2825
9298 msgid "Ubuntu."
9299 msgstr "Ubuntu."
9300
9301 #. type: =item
9302 #: ../fish/guestfish-actions.pod:1869 ../fish/guestfish-actions.pod:1953
9303 #: ../fish/guestfish-actions.pod:2217 ../src/guestfs-actions.pod:2827
9304 #: ../src/guestfs-actions.pod:2936 ../src/guestfs-actions.pod:3311
9305 msgid "\"unknown\""
9306 msgstr "\"unknown\""
9307
9308 #. type: textblock
9309 #: ../fish/guestfish-actions.pod:1871 ../src/guestfs-actions.pod:2829
9310 msgid "The distro could not be determined."
9311 msgstr "Дистрибутив, тип якого не вдалося визначити."
9312
9313 #. type: =item
9314 #: ../fish/guestfish-actions.pod:1873 ../fish/guestfish-actions.pod:2209
9315 #: ../src/guestfs-actions.pod:2831 ../src/guestfs-actions.pod:3303
9316 msgid "\"windows\""
9317 msgstr "\"windows\""
9318
9319 #. type: textblock
9320 #: ../fish/guestfish-actions.pod:1875 ../src/guestfs-actions.pod:2833
9321 msgid ""
9322 "Windows does not have distributions.  This string is returned if the OS type "
9323 "is Windows."
9324 msgstr ""
9325
9326 #. type: textblock
9327 #: ../fish/guestfish-actions.pod:1880 ../fish/guestfish-actions.pod:1959
9328 #: ../fish/guestfish-actions.pod:2223 ../src/guestfs-actions.pod:2838
9329 #: ../src/guestfs-actions.pod:2942 ../src/guestfs-actions.pod:3317
9330 msgid ""
9331 "Future versions of libguestfs may return other strings here.  The caller "
9332 "should be prepared to handle any string."
9333 msgstr ""
9334
9335 #. type: =head2
9336 #: ../fish/guestfish-actions.pod:1885
9337 msgid "inspect-get-drive-mappings"
9338 msgstr ""
9339
9340 #. type: verbatim
9341 #: ../fish/guestfish-actions.pod:1887
9342 #, no-wrap
9343 msgid ""
9344 " inspect-get-drive-mappings root\n"
9345 "\n"
9346 msgstr ""
9347
9348 #. type: textblock
9349 #: ../fish/guestfish-actions.pod:1889 ../src/guestfs-actions.pod:2854
9350 msgid ""
9351 "This call is useful for Windows which uses a primitive system of assigning "
9352 "drive letters (like \"C:\") to partitions.  This inspection API examines the "
9353 "Windows Registry to find out how disks/partitions are mapped to drive "
9354 "letters, and returns a hash table as in the example below:"
9355 msgstr ""
9356
9357 #. type: verbatim
9358 #: ../fish/guestfish-actions.pod:1895 ../src/guestfs-actions.pod:2860
9359 #, no-wrap
9360 msgid ""
9361 " C      =>     /dev/vda2\n"
9362 " E      =>     /dev/vdb1\n"
9363 " F      =>     /dev/vdc1\n"
9364 "\n"
9365 msgstr ""
9366
9367 #. type: textblock
9368 #: ../fish/guestfish-actions.pod:1899 ../src/guestfs-actions.pod:2864
9369 msgid ""
9370 "Note that keys are drive letters.  For Windows, the key is case insensitive "
9371 "and just contains the drive letter, without the customary colon separator "
9372 "character."
9373 msgstr ""
9374
9375 #. type: textblock
9376 #: ../fish/guestfish-actions.pod:1903 ../src/guestfs-actions.pod:2868
9377 msgid ""
9378 "In future we may support other operating systems that also used drive "
9379 "letters, but the keys for those might not be case insensitive and might be "
9380 "longer than 1 character.  For example in OS-9, hard drives were named C<h0>, "
9381 "C<h1> etc."
9382 msgstr ""
9383
9384 #. type: textblock
9385 #: ../fish/guestfish-actions.pod:1908 ../src/guestfs-actions.pod:2873
9386 msgid ""
9387 "For Windows guests, currently only hard drive mappings are returned.  "
9388 "Removable disks (eg. DVD-ROMs) are ignored."
9389 msgstr ""
9390
9391 #. type: textblock
9392 #: ../fish/guestfish-actions.pod:1911 ../src/guestfs-actions.pod:2876
9393 msgid ""
9394 "For guests that do not use drive mappings, or if the drive mappings could "
9395 "not be determined, this returns an empty hash table."
9396 msgstr ""
9397
9398 #. type: textblock
9399 #: ../fish/guestfish-actions.pod:1914
9400 msgid ""
9401 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9402 "get-mountpoints>, L</inspect-get-filesystems>."
9403 msgstr ""
9404
9405 #. type: =head2
9406 #: ../fish/guestfish-actions.pod:1918
9407 msgid "inspect-get-filesystems"
9408 msgstr "inspect-get-filesystems"
9409
9410 #. type: verbatim
9411 #: ../fish/guestfish-actions.pod:1920
9412 #, no-wrap
9413 msgid ""
9414 " inspect-get-filesystems root\n"
9415 "\n"
9416 msgstr ""
9417 " inspect-get-filesystems корінь\n"
9418 "\n"
9419
9420 #. type: textblock
9421 #: ../fish/guestfish-actions.pod:1922 ../src/guestfs-actions.pod:2897
9422 msgid ""
9423 "This returns a list of all the filesystems that we think are associated with "
9424 "this operating system.  This includes the root filesystem, other ordinary "
9425 "filesystems, and non-mounted devices like swap partitions."
9426 msgstr ""
9427
9428 #. type: textblock
9429 #: ../fish/guestfish-actions.pod:1927 ../src/guestfs-actions.pod:2902
9430 msgid ""
9431 "In the case of a multi-boot virtual machine, it is possible for a filesystem "
9432 "to be shared between operating systems."
9433 msgstr ""
9434
9435 #. type: textblock
9436 #: ../fish/guestfish-actions.pod:1930
9437 msgid ""
9438 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9439 "get-mountpoints>."
9440 msgstr ""
9441
9442 #. type: =head2
9443 #: ../fish/guestfish-actions.pod:1933
9444 msgid "inspect-get-format"
9445 msgstr "inspect-get-format"
9446
9447 #. type: verbatim
9448 #: ../fish/guestfish-actions.pod:1935
9449 #, no-wrap
9450 msgid ""
9451 " inspect-get-format root\n"
9452 "\n"
9453 msgstr ""
9454 " inspect-get-format корінь\n"
9455 "\n"
9456
9457 #. type: textblock
9458 #: ../fish/guestfish-actions.pod:1937 ../src/guestfs-actions.pod:2920
9459 msgid ""
9460 "This returns the format of the inspected operating system.  You can use it "
9461 "to detect install images, live CDs and similar."
9462 msgstr ""
9463
9464 #. type: textblock
9465 #: ../fish/guestfish-actions.pod:1940 ../src/guestfs-actions.pod:2923
9466 msgid "Currently defined formats are:"
9467 msgstr ""
9468
9469 #. type: =item
9470 #: ../fish/guestfish-actions.pod:1944 ../src/guestfs-actions.pod:2927
9471 msgid "\"installed\""
9472 msgstr "\"installed\""
9473
9474 #. type: textblock
9475 #: ../fish/guestfish-actions.pod:1946 ../src/guestfs-actions.pod:2929
9476 msgid "This is an installed operating system."
9477 msgstr "Це встановлена операційна система."
9478
9479 #. type: =item
9480 #: ../fish/guestfish-actions.pod:1948 ../src/guestfs-actions.pod:2931
9481 msgid "\"installer\""
9482 msgstr ""
9483
9484 #. type: textblock
9485 #: ../fish/guestfish-actions.pod:1950 ../src/guestfs-actions.pod:2933
9486 msgid ""
9487 "The disk image being inspected is not an installed operating system, but a "
9488 "I<bootable> install disk, live CD, or similar."
9489 msgstr ""
9490
9491 #. type: textblock
9492 #: ../fish/guestfish-actions.pod:1955 ../src/guestfs-actions.pod:2938
9493 msgid "The format of this disk image is not known."
9494 msgstr ""
9495
9496 #. type: =head2
9497 #: ../fish/guestfish-actions.pod:1964
9498 msgid "inspect-get-hostname"
9499 msgstr "inspect-get-hostname"
9500
9501 #. type: verbatim
9502 #: ../fish/guestfish-actions.pod:1966
9503 #, no-wrap
9504 msgid ""
9505 " inspect-get-hostname root\n"
9506 "\n"
9507 msgstr ""
9508 " inspect-get-hostname корінь\n"
9509 "\n"
9510
9511 #. type: textblock
9512 #: ../fish/guestfish-actions.pod:1968 ../src/guestfs-actions.pod:2958
9513 msgid ""
9514 "This function returns the hostname of the operating system as found by "
9515 "inspection of the guest's configuration files."
9516 msgstr ""
9517
9518 #. type: textblock
9519 #: ../fish/guestfish-actions.pod:1971 ../src/guestfs-actions.pod:2961
9520 msgid ""
9521 "If the hostname could not be determined, then the string C<unknown> is "
9522 "returned."
9523 msgstr ""
9524
9525 #. type: =head2
9526 #: ../fish/guestfish-actions.pod:1976
9527 msgid "inspect-get-icon"
9528 msgstr ""
9529
9530 #. type: verbatim
9531 #: ../fish/guestfish-actions.pod:1978
9532 #, no-wrap
9533 msgid ""
9534 " inspect-get-icon root [favicon:..] [highquality:..]\n"
9535 "\n"
9536 msgstr ""
9537
9538 #. type: textblock
9539 #: ../fish/guestfish-actions.pod:1980 ../src/guestfs-actions.pod:2987
9540 msgid ""
9541 "This function returns an icon corresponding to the inspected operating "
9542 "system.  The icon is returned as a buffer containing a PNG image (re-encoded "
9543 "to PNG if necessary)."
9544 msgstr ""
9545
9546 #. type: textblock
9547 #: ../fish/guestfish-actions.pod:1984 ../src/guestfs-actions.pod:2991
9548 msgid ""
9549 "If it was not possible to get an icon this function returns a zero-length "
9550 "(non-NULL) buffer.  I<Callers must check for this case>."
9551 msgstr ""
9552
9553 #. type: textblock
9554 #: ../fish/guestfish-actions.pod:1987 ../src/guestfs-actions.pod:2994
9555 msgid ""
9556 "Libguestfs will start by looking for a file called C</etc/favicon.png> or "
9557 "C<C:\\etc\\favicon.png> and if it has the correct format, the contents of "
9558 "this file will be returned.  You can disable favicons by passing the "
9559 "optional C<favicon> boolean as false (default is true)."
9560 msgstr ""
9561
9562 #. type: textblock
9563 #: ../fish/guestfish-actions.pod:1993 ../src/guestfs-actions.pod:3000
9564 msgid ""
9565 "If finding the favicon fails, then we look in other places in the guest for "
9566 "a suitable icon."
9567 msgstr ""
9568
9569 #. type: textblock
9570 #: ../fish/guestfish-actions.pod:1996 ../src/guestfs-actions.pod:3003
9571 msgid ""
9572 "If the optional C<highquality> boolean is true then only high quality icons "
9573 "are returned, which means only icons of high resolution with an alpha "
9574 "channel.  The default (false) is to return any icon we can, even if it is of "
9575 "substandard quality."
9576 msgstr ""
9577
9578 #. type: textblock
9579 #: ../fish/guestfish-actions.pod:2007 ../src/guestfs-actions.pod:3014
9580 msgid ""
9581 "Unlike most other inspection API calls, the guest's disks must be mounted up "
9582 "before you call this, since it needs to read information from the guest "
9583 "filesystem during the call."
9584 msgstr ""
9585
9586 #. type: textblock
9587 #: ../fish/guestfish-actions.pod:2013 ../src/guestfs-actions.pod:3020
9588 msgid ""
9589 "B<Security:> The icon data comes from the untrusted guest, and should be "
9590 "treated with caution.  PNG files have been known to contain exploits.  "
9591 "Ensure that libpng (or other relevant libraries) are fully up to date before "
9592 "trying to process or display the icon."
9593 msgstr ""
9594
9595 #. type: textblock
9596 #: ../fish/guestfish-actions.pod:2021 ../src/guestfs-actions.pod:3028
9597 msgid ""
9598 "The PNG image returned can be any size.  It might not be square.  Libguestfs "
9599 "tries to return the largest, highest quality icon available.  The "
9600 "application must scale the icon to the required size."
9601 msgstr ""
9602
9603 #. type: textblock
9604 #: ../fish/guestfish-actions.pod:2028 ../src/guestfs-actions.pod:3035
9605 msgid ""
9606 "Extracting icons from Windows guests requires the external C<wrestool> "
9607 "program from the C<icoutils> package, and several programs (C<bmptopnm>, "
9608 "C<pnmtopng>, C<pamcut>)  from the C<netpbm> package.  These must be "
9609 "installed separately."
9610 msgstr ""
9611
9612 #. type: textblock
9613 #: ../fish/guestfish-actions.pod:2035 ../src/guestfs-actions.pod:3042
9614 msgid ""
9615 "Operating system icons are usually trademarks.  Seek legal advice before "
9616 "using trademarks in applications."
9617 msgstr ""
9618
9619 #. type: =head2
9620 #: ../fish/guestfish-actions.pod:2042
9621 msgid "inspect-get-major-version"
9622 msgstr "inspect-get-major-version"
9623
9624 #. type: verbatim
9625 #: ../fish/guestfish-actions.pod:2044
9626 #, no-wrap
9627 msgid ""
9628 " inspect-get-major-version root\n"
9629 "\n"
9630 msgstr ""
9631 " inspect-get-major-version корінь\n"
9632 "\n"
9633
9634 #. type: textblock
9635 #: ../fish/guestfish-actions.pod:2046 ../src/guestfs-actions.pod:3083
9636 msgid ""
9637 "This returns the major version number of the inspected operating system."
9638 msgstr ""
9639
9640 #. type: textblock
9641 #: ../fish/guestfish-actions.pod:2049 ../src/guestfs-actions.pod:3086
9642 msgid ""
9643 "Windows uses a consistent versioning scheme which is I<not> reflected in the "
9644 "popular public names used by the operating system.  Notably the operating "
9645 "system known as \"Windows 7\" is really version 6.1 (ie. major = 6, minor = "
9646 "1).  You can find out the real versions corresponding to releases of Windows "
9647 "by consulting Wikipedia or MSDN."
9648 msgstr ""
9649
9650 #. type: textblock
9651 #: ../fish/guestfish-actions.pod:2056 ../fish/guestfish-actions.pod:2067
9652 #: ../src/guestfs-actions.pod:3093 ../src/guestfs-actions.pod:3110
9653 msgid "If the version could not be determined, then C<0> is returned."
9654 msgstr ""
9655
9656 #. type: =head2
9657 #: ../fish/guestfish-actions.pod:2060
9658 msgid "inspect-get-minor-version"
9659 msgstr "inspect-get-minor-version"
9660
9661 #. type: verbatim
9662 #: ../fish/guestfish-actions.pod:2062
9663 #, no-wrap
9664 msgid ""
9665 " inspect-get-minor-version root\n"
9666 "\n"
9667 msgstr ""
9668 " inspect-get-minor-version корінь\n"
9669 "\n"
9670
9671 #. type: textblock
9672 #: ../fish/guestfish-actions.pod:2064 ../src/guestfs-actions.pod:3107
9673 msgid ""
9674 "This returns the minor version number of the inspected operating system."
9675 msgstr ""
9676
9677 #. type: textblock
9678 #: ../fish/guestfish-actions.pod:2069
9679 msgid ""
9680 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9681 "get-major-version>."
9682 msgstr ""
9683
9684 #. type: =head2
9685 #: ../fish/guestfish-actions.pod:2072
9686 msgid "inspect-get-mountpoints"
9687 msgstr "inspect-get-mountpoints"
9688
9689 #. type: verbatim
9690 #: ../fish/guestfish-actions.pod:2074
9691 #, no-wrap
9692 msgid ""
9693 " inspect-get-mountpoints root\n"
9694 "\n"
9695 msgstr ""
9696 " inspect-get-mountpoints корінь\n"
9697 "\n"
9698
9699 #. type: textblock
9700 #: ../fish/guestfish-actions.pod:2076 ../src/guestfs-actions.pod:3125
9701 msgid ""
9702 "This returns a hash of where we think the filesystems associated with this "
9703 "operating system should be mounted.  Callers should note that this is at "
9704 "best an educated guess made by reading configuration files such as C</etc/"
9705 "fstab>.  I<In particular note> that this may return filesystems which are "
9706 "non-existent or not mountable and callers should be prepared to handle or "
9707 "ignore failures if they try to mount them."
9708 msgstr ""
9709
9710 #. type: textblock
9711 #: ../fish/guestfish-actions.pod:2085 ../src/guestfs-actions.pod:3134
9712 msgid ""
9713 "Each element in the returned hashtable has a key which is the path of the "
9714 "mountpoint (eg. C</boot>) and a value which is the filesystem that would be "
9715 "mounted there (eg. C</dev/sda1>)."
9716 msgstr ""
9717
9718 #. type: textblock
9719 #: ../fish/guestfish-actions.pod:2090 ../src/guestfs-actions.pod:3139
9720 msgid ""
9721 "Non-mounted devices such as swap devices are I<not> returned in this list."
9722 msgstr ""
9723
9724 #. type: textblock
9725 #: ../fish/guestfish-actions.pod:2093
9726 msgid ""
9727 "For operating systems like Windows which still use drive letters, this call "
9728 "will only return an entry for the first drive \"mounted on\" C</>.  For "
9729 "information about the mapping of drive letters to partitions, see L</inspect-"
9730 "get-drive-mappings>."
9731 msgstr ""
9732
9733 #. type: textblock
9734 #: ../fish/guestfish-actions.pod:2099
9735 msgid ""
9736 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9737 "get-filesystems>."
9738 msgstr ""
9739
9740 #. type: =head2
9741 #: ../fish/guestfish-actions.pod:2102
9742 msgid "inspect-get-package-format"
9743 msgstr "inspect-get-package-format"
9744
9745 #. type: verbatim
9746 #: ../fish/guestfish-actions.pod:2104
9747 #, no-wrap
9748 msgid ""
9749 " inspect-get-package-format root\n"
9750 "\n"
9751 msgstr ""
9752 " inspect-get-package-format корінь\n"
9753 "\n"
9754
9755 #. type: textblock
9756 #: ../fish/guestfish-actions.pod:2106
9757 msgid ""
9758 "This function and L</inspect-get-package-management> return the package "
9759 "format and package management tool used by the inspected operating system.  "
9760 "For example for Fedora these functions would return C<rpm> (package format) "
9761 "and C<yum> (package management)."
9762 msgstr ""
9763
9764 #. type: textblock
9765 #: ../fish/guestfish-actions.pod:2112 ../src/guestfs-actions.pod:3171
9766 msgid ""
9767 "This returns the string C<unknown> if we could not determine the package "
9768 "format I<or> if the operating system does not have a real packaging system "
9769 "(eg. Windows)."
9770 msgstr ""
9771
9772 #. type: textblock
9773 #: ../fish/guestfish-actions.pod:2116 ../src/guestfs-actions.pod:3175
9774 msgid ""
9775 "Possible strings include: C<rpm>, C<deb>, C<ebuild>, C<pisi>, C<pacman>.  "
9776 "Future versions of libguestfs may return other strings."
9777 msgstr ""
9778
9779 #. type: =head2
9780 #: ../fish/guestfish-actions.pod:2121
9781 msgid "inspect-get-package-management"
9782 msgstr "inspect-get-package-management"
9783
9784 #. type: verbatim
9785 #: ../fish/guestfish-actions.pod:2123
9786 #, no-wrap
9787 msgid ""
9788 " inspect-get-package-management root\n"
9789 "\n"
9790 msgstr ""
9791 " inspect-get-package-management корінь\n"
9792 "\n"
9793
9794 #. type: textblock
9795 #: ../fish/guestfish-actions.pod:2125
9796 msgid ""
9797 "L</inspect-get-package-format> and this function return the package format "
9798 "and package management tool used by the inspected operating system.  For "
9799 "example for Fedora these functions would return C<rpm> (package format) and "
9800 "C<yum> (package management)."
9801 msgstr ""
9802
9803 #. type: textblock
9804 #: ../fish/guestfish-actions.pod:2131 ../src/guestfs-actions.pod:3197
9805 msgid ""
9806 "This returns the string C<unknown> if we could not determine the package "
9807 "management tool I<or> if the operating system does not have a real packaging "
9808 "system (eg. Windows)."
9809 msgstr ""
9810
9811 #. type: textblock
9812 #: ../fish/guestfish-actions.pod:2135 ../src/guestfs-actions.pod:3201
9813 msgid ""
9814 "Possible strings include: C<yum>, C<up2date>, C<apt> (for all Debian "
9815 "derivatives), C<portage>, C<pisi>, C<pacman>, C<urpmi>.  Future versions of "
9816 "libguestfs may return other strings."
9817 msgstr ""
9818
9819 #. type: =head2
9820 #: ../fish/guestfish-actions.pod:2142
9821 msgid "inspect-get-product-name"
9822 msgstr "inspect-get-product-name"
9823
9824 #. type: verbatim
9825 #: ../fish/guestfish-actions.pod:2144
9826 #, no-wrap
9827 msgid ""
9828 " inspect-get-product-name root\n"
9829 "\n"
9830 msgstr ""
9831 " inspect-get-product-name корінь\n"
9832 "\n"
9833
9834 #. type: textblock
9835 #: ../fish/guestfish-actions.pod:2146 ../src/guestfs-actions.pod:3219
9836 msgid ""
9837 "This returns the product name of the inspected operating system.  The "
9838 "product name is generally some freeform string which can be displayed to the "
9839 "user, but should not be parsed by programs."
9840 msgstr ""
9841
9842 #. type: textblock
9843 #: ../fish/guestfish-actions.pod:2151 ../src/guestfs-actions.pod:3224
9844 msgid ""
9845 "If the product name could not be determined, then the string C<unknown> is "
9846 "returned."
9847 msgstr ""
9848
9849 #. type: =head2
9850 #: ../fish/guestfish-actions.pod:2156
9851 msgid "inspect-get-product-variant"
9852 msgstr ""
9853
9854 #. type: verbatim
9855 #: ../fish/guestfish-actions.pod:2158
9856 #, no-wrap
9857 msgid ""
9858 " inspect-get-product-variant root\n"
9859 "\n"
9860 msgstr ""
9861
9862 #. type: textblock
9863 #: ../fish/guestfish-actions.pod:2160 ../src/guestfs-actions.pod:3240
9864 msgid "This returns the product variant of the inspected operating system."
9865 msgstr ""
9866
9867 #. type: textblock
9868 #: ../fish/guestfish-actions.pod:2163 ../src/guestfs-actions.pod:3243
9869 msgid ""
9870 "For Windows guests, this returns the contents of the Registry key C<HKLM"
9871 "\\Software\\Microsoft\\Windows NT\\CurrentVersion> C<InstallationType> which "
9872 "is usually a string such as C<Client> or C<Server> (other values are "
9873 "possible).  This can be used to distinguish consumer and enterprise versions "
9874 "of Windows that have the same version number (for example, Windows 7 and "
9875 "Windows 2008 Server are both version 6.1, but the former is C<Client> and "
9876 "the latter is C<Server>)."
9877 msgstr ""
9878
9879 #. type: textblock
9880 #: ../fish/guestfish-actions.pod:2172 ../src/guestfs-actions.pod:3252
9881 msgid ""
9882 "For enterprise Linux guests, in future we intend this to return the product "
9883 "variant such as C<Desktop>, C<Server> and so on.  But this is not "
9884 "implemented at present."
9885 msgstr ""
9886
9887 #. type: textblock
9888 #: ../fish/guestfish-actions.pod:2176 ../src/guestfs-actions.pod:3256
9889 msgid ""
9890 "If the product variant could not be determined, then the string C<unknown> "
9891 "is returned."
9892 msgstr ""
9893
9894 #. type: textblock
9895 #: ../fish/guestfish-actions.pod:2179
9896 msgid ""
9897 "Please read L<guestfs(3)/INSPECTION> for more details.  See also L</inspect-"
9898 "get-product-name>, L</inspect-get-major-version>."
9899 msgstr ""
9900
9901 #. type: =head2
9902 #: ../fish/guestfish-actions.pod:2183
9903 msgid "inspect-get-roots"
9904 msgstr "inspect-get-roots"
9905
9906 #. type: verbatim
9907 #: ../fish/guestfish-actions.pod:2185
9908 #, no-wrap
9909 msgid ""
9910 " inspect-get-roots\n"
9911 "\n"
9912 msgstr ""
9913 " inspect-get-roots\n"
9914 "\n"
9915
9916 #. type: textblock
9917 #: ../fish/guestfish-actions.pod:2187
9918 msgid ""
9919 "This function is a convenient way to get the list of root devices, as "
9920 "returned from a previous call to L</inspect-os>, but without redoing the "
9921 "whole inspection process."
9922 msgstr ""
9923
9924 #. type: textblock
9925 #: ../fish/guestfish-actions.pod:2191
9926 msgid ""
9927 "This returns an empty list if either no root devices were found or the "
9928 "caller has not called L</inspect-os>."
9929 msgstr ""
9930
9931 #. type: =head2
9932 #: ../fish/guestfish-actions.pod:2196
9933 msgid "inspect-get-type"
9934 msgstr "inspect-get-type"
9935
9936 #. type: verbatim
9937 #: ../fish/guestfish-actions.pod:2198
9938 #, no-wrap
9939 msgid ""
9940 " inspect-get-type root\n"
9941 "\n"
9942 msgstr ""
9943 " inspect-get-type корінь\n"
9944 "\n"
9945
9946 #. type: textblock
9947 #: ../fish/guestfish-actions.pod:2200 ../src/guestfs-actions.pod:3294
9948 msgid ""
9949 "This returns the type of the inspected operating system.  Currently defined "
9950 "types are:"
9951 msgstr ""
9952
9953 #. type: =item
9954 #: ../fish/guestfish-actions.pod:2205 ../src/guestfs-actions.pod:3299
9955 msgid "\"linux\""
9956 msgstr "\"linux\""
9957
9958 #. type: textblock
9959 #: ../fish/guestfish-actions.pod:2207 ../src/guestfs-actions.pod:3301
9960 msgid "Any Linux-based operating system."
9961 msgstr ""
9962
9963 #. type: textblock
9964 #: ../fish/guestfish-actions.pod:2211 ../src/guestfs-actions.pod:3305
9965 msgid "Any Microsoft Windows operating system."
9966 msgstr ""
9967
9968 #. type: =item
9969 #: ../fish/guestfish-actions.pod:2213 ../src/guestfs-actions.pod:3307
9970 msgid "\"freebsd\""
9971 msgstr "\"freebsd\""
9972
9973 #. type: textblock
9974 #: ../fish/guestfish-actions.pod:2215 ../src/guestfs-actions.pod:3309
9975 msgid "FreeBSD."
9976 msgstr "FreeBSD."
9977
9978 #. type: textblock
9979 #: ../fish/guestfish-actions.pod:2219 ../src/guestfs-actions.pod:3313
9980 msgid "The operating system type could not be determined."
9981 msgstr ""
9982
9983 #. type: =head2
9984 #: ../fish/guestfish-actions.pod:2228
9985 msgid "inspect-get-windows-current-control-set"
9986 msgstr ""
9987
9988 #. type: verbatim
9989 #: ../fish/guestfish-actions.pod:2230
9990 #, no-wrap
9991 msgid ""
9992 " inspect-get-windows-current-control-set root\n"
9993 "\n"
9994 msgstr ""
9995
9996 #. type: textblock
9997 #: ../fish/guestfish-actions.pod:2232 ../src/guestfs-actions.pod:3333
9998 msgid ""
9999 "This returns the Windows CurrentControlSet of the inspected guest.  The "
10000 "CurrentControlSet is a registry key name such as C<ControlSet001>."
10001 msgstr ""
10002
10003 #. type: textblock
10004 #: ../fish/guestfish-actions.pod:2235 ../src/guestfs-actions.pod:3336
10005 msgid ""
10006 "This call assumes that the guest is Windows and that the Registry could be "
10007 "examined by inspection.  If this is not the case then an error is returned."
10008 msgstr ""
10009
10010 #. type: =head2
10011 #: ../fish/guestfish-actions.pod:2241
10012 msgid "inspect-get-windows-systemroot"
10013 msgstr "inspect-get-windows-systemroot"
10014
10015 #. type: verbatim
10016 #: ../fish/guestfish-actions.pod:2243
10017 #, no-wrap
10018 msgid ""
10019 " inspect-get-windows-systemroot root\n"
10020 "\n"
10021 msgstr ""
10022 " inspect-get-windows-systemroot корінь\n"
10023 "\n"
10024
10025 #. type: textblock
10026 #: ../fish/guestfish-actions.pod:2245 ../src/guestfs-actions.pod:3353
10027 msgid ""
10028 "This returns the Windows systemroot of the inspected guest.  The systemroot "
10029 "is a directory path such as C</WINDOWS>."
10030 msgstr ""
10031
10032 #. type: textblock
10033 #: ../fish/guestfish-actions.pod:2248 ../src/guestfs-actions.pod:3356
10034 msgid ""
10035 "This call assumes that the guest is Windows and that the systemroot could be "
10036 "determined by inspection.  If this is not the case then an error is returned."
10037 msgstr ""
10038
10039 #. type: =head2
10040 #: ../fish/guestfish-actions.pod:2254
10041 msgid "inspect-is-live"
10042 msgstr "inspect-is-live"
10043
10044 #. type: verbatim
10045 #: ../fish/guestfish-actions.pod:2256
10046 #, no-wrap
10047 msgid ""
10048 " inspect-is-live root\n"
10049 "\n"
10050 msgstr ""
10051 " inspect-is-live корінь\n"
10052 "\n"
10053
10054 #. type: textblock
10055 #: ../fish/guestfish-actions.pod:2258
10056 msgid ""
10057 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10058 "then this returns true if a live image was detected on the disk."
10059 msgstr ""
10060
10061 #. type: =head2
10062 #: ../fish/guestfish-actions.pod:2264
10063 msgid "inspect-is-multipart"
10064 msgstr "inspect-is-multipart"
10065
10066 #. type: verbatim
10067 #: ../fish/guestfish-actions.pod:2266
10068 #, no-wrap
10069 msgid ""
10070 " inspect-is-multipart root\n"
10071 "\n"
10072 msgstr ""
10073 " inspect-is-multipart корінь\n"
10074 "\n"
10075
10076 #. type: textblock
10077 #: ../fish/guestfish-actions.pod:2268
10078 msgid ""
10079 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10080 "then this returns true if the disk is part of a set."
10081 msgstr ""
10082
10083 #. type: =head2
10084 #: ../fish/guestfish-actions.pod:2274
10085 msgid "inspect-is-netinst"
10086 msgstr "inspect-is-netinst"
10087
10088 #. type: verbatim
10089 #: ../fish/guestfish-actions.pod:2276
10090 #, no-wrap
10091 msgid ""
10092 " inspect-is-netinst root\n"
10093 "\n"
10094 msgstr ""
10095 " inspect-is-netinst корінь\n"
10096 "\n"
10097
10098 #. type: textblock
10099 #: ../fish/guestfish-actions.pod:2278
10100 msgid ""
10101 "If L</inspect-get-format> returns C<installer> (this is an install disk), "
10102 "then this returns true if the disk is a network installer, ie. not a self-"
10103 "contained install CD but one which is likely to require network access to "
10104 "complete the install."
10105 msgstr ""
10106
10107 #. type: =head2
10108 #: ../fish/guestfish-actions.pod:2286
10109 msgid "inspect-list-applications"
10110 msgstr "inspect-list-applications"
10111
10112 #. type: verbatim
10113 #: ../fish/guestfish-actions.pod:2288
10114 #, no-wrap
10115 msgid ""
10116 " inspect-list-applications root\n"
10117 "\n"
10118 msgstr ""
10119 " inspect-list-applications кореневий_каталог\n"
10120 "\n"
10121
10122 #. type: textblock
10123 #: ../fish/guestfish-actions.pod:2290 ../src/guestfs-actions.pod:3423
10124 msgid "Return the list of applications installed in the operating system."
10125 msgstr ""
10126
10127 #. type: textblock
10128 #: ../fish/guestfish-actions.pod:2292
10129 msgid ""
10130 "I<Note:> This call works differently from other parts of the inspection "
10131 "API.  You have to call L</inspect-os>, then L</inspect-get-mountpoints>, "
10132 "then mount up the disks, before calling this.  Listing applications is a "
10133 "significantly more difficult operation which requires access to the full "
10134 "filesystem.  Also note that unlike the other L</inspect-get-*> calls which "
10135 "are just returning data cached in the libguestfs handle, this call actually "
10136 "reads parts of the mounted filesystems during the call."
10137 msgstr ""
10138
10139 #. type: textblock
10140 #: ../fish/guestfish-actions.pod:2302 ../src/guestfs-actions.pod:3435
10141 msgid ""
10142 "This returns an empty list if the inspection code was not able to determine "
10143 "the list of applications."
10144 msgstr ""
10145
10146 #. type: textblock
10147 #: ../fish/guestfish-actions.pod:2305 ../src/guestfs-actions.pod:3438
10148 msgid "The application structure contains the following fields:"
10149 msgstr ""
10150
10151 #. type: =item
10152 #: ../fish/guestfish-actions.pod:2309 ../src/guestfs-actions.pod:3442
10153 msgid "C<app_name>"
10154 msgstr "C<app_name>"
10155
10156 #. type: textblock
10157 #: ../fish/guestfish-actions.pod:2311 ../src/guestfs-actions.pod:3444
10158 msgid ""
10159 "The name of the application.  For Red Hat-derived and Debian-derived Linux "
10160 "guests, this is the package name."
10161 msgstr ""
10162
10163 #. type: =item
10164 #: ../fish/guestfish-actions.pod:2314 ../src/guestfs-actions.pod:3447
10165 msgid "C<app_display_name>"
10166 msgstr "C<app_display_name>"
10167
10168 #. type: textblock
10169 #: ../fish/guestfish-actions.pod:2316 ../src/guestfs-actions.pod:3449
10170 msgid ""
10171 "The display name of the application, sometimes localized to the install "
10172 "language of the guest operating system."
10173 msgstr ""
10174
10175 #. type: textblock
10176 #: ../fish/guestfish-actions.pod:2319 ../src/guestfs-actions.pod:3452
10177 msgid ""
10178 "If unavailable this is returned as an empty string C<\"\">.  Callers needing "
10179 "to display something can use C<app_name> instead."
10180 msgstr ""
10181
10182 #. type: =item
10183 #: ../fish/guestfish-actions.pod:2322 ../src/guestfs-actions.pod:3455
10184 msgid "C<app_epoch>"
10185 msgstr "C<app_epoch>"
10186
10187 #. type: textblock
10188 #: ../fish/guestfish-actions.pod:2324 ../src/guestfs-actions.pod:3457
10189 msgid ""
10190 "For package managers which use epochs, this contains the epoch of the "
10191 "package (an integer).  If unavailable, this is returned as C<0>."
10192 msgstr ""
10193
10194 #. type: =item
10195 #: ../fish/guestfish-actions.pod:2327 ../src/guestfs-actions.pod:3460
10196 msgid "C<app_version>"
10197 msgstr "C<app_version>"
10198
10199 #. type: textblock
10200 #: ../fish/guestfish-actions.pod:2329 ../src/guestfs-actions.pod:3462
10201 msgid ""
10202 "The version string of the application or package.  If unavailable this is "
10203 "returned as an empty string C<\"\">."
10204 msgstr ""
10205
10206 #. type: =item
10207 #: ../fish/guestfish-actions.pod:2332 ../src/guestfs-actions.pod:3465
10208 msgid "C<app_release>"
10209 msgstr "C<app_release>"
10210
10211 #. type: textblock
10212 #: ../fish/guestfish-actions.pod:2334 ../src/guestfs-actions.pod:3467
10213 msgid ""
10214 "The release string of the application or package, for package managers that "
10215 "use this.  If unavailable this is returned as an empty string C<\"\">."
10216 msgstr ""
10217
10218 #. type: =item
10219 #: ../fish/guestfish-actions.pod:2338 ../src/guestfs-actions.pod:3471
10220 msgid "C<app_install_path>"
10221 msgstr "C<app_install_path>"
10222
10223 #. type: textblock
10224 #: ../fish/guestfish-actions.pod:2340 ../src/guestfs-actions.pod:3473
10225 msgid ""
10226 "The installation path of the application (on operating systems such as "
10227 "Windows which use installation paths).  This path is in the format used by "
10228 "the guest operating system, it is not a libguestfs path."
10229 msgstr ""
10230
10231 #. type: textblock
10232 #: ../fish/guestfish-actions.pod:2345 ../src/guestfs-actions.pod:3478
10233 msgid "If unavailable this is returned as an empty string C<\"\">."
10234 msgstr ""
10235
10236 #. type: =item
10237 #: ../fish/guestfish-actions.pod:2347 ../src/guestfs-actions.pod:3480
10238 msgid "C<app_trans_path>"
10239 msgstr "C<app_trans_path>"
10240
10241 #. type: textblock
10242 #: ../fish/guestfish-actions.pod:2349 ../src/guestfs-actions.pod:3482
10243 msgid ""
10244 "The install path translated into a libguestfs path.  If unavailable this is "
10245 "returned as an empty string C<\"\">."
10246 msgstr ""
10247
10248 #. type: =item
10249 #: ../fish/guestfish-actions.pod:2352 ../src/guestfs-actions.pod:3485
10250 msgid "C<app_publisher>"
10251 msgstr "C<app_publisher>"
10252
10253 #. type: textblock
10254 #: ../fish/guestfish-actions.pod:2354 ../src/guestfs-actions.pod:3487
10255 msgid ""
10256 "The name of the publisher of the application, for package managers that use "
10257 "this.  If unavailable this is returned as an empty string C<\"\">."
10258 msgstr ""
10259
10260 #. type: =item
10261 #: ../fish/guestfish-actions.pod:2358 ../src/guestfs-actions.pod:3491
10262 msgid "C<app_url>"
10263 msgstr "C<app_url>"
10264
10265 #. type: textblock
10266 #: ../fish/guestfish-actions.pod:2360 ../src/guestfs-actions.pod:3493
10267 msgid ""
10268 "The URL (eg. upstream URL) of the application.  If unavailable this is "
10269 "returned as an empty string C<\"\">."
10270 msgstr ""
10271
10272 #. type: =item
10273 #: ../fish/guestfish-actions.pod:2363 ../src/guestfs-actions.pod:3496
10274 msgid "C<app_source_package>"
10275 msgstr "C<app_source_package>"
10276
10277 #. type: textblock
10278 #: ../fish/guestfish-actions.pod:2365 ../src/guestfs-actions.pod:3498
10279 msgid ""
10280 "For packaging systems which support this, the name of the source package.  "
10281 "If unavailable this is returned as an empty string C<\"\">."
10282 msgstr ""
10283
10284 #. type: =item
10285 #: ../fish/guestfish-actions.pod:2368 ../src/guestfs-actions.pod:3501
10286 msgid "C<app_summary>"
10287 msgstr "C<app_summary>"
10288
10289 #. type: textblock
10290 #: ../fish/guestfish-actions.pod:2370 ../src/guestfs-actions.pod:3503
10291 msgid ""
10292 "A short (usually one line) description of the application or package.  If "
10293 "unavailable this is returned as an empty string C<\"\">."
10294 msgstr ""
10295
10296 #. type: =item
10297 #: ../fish/guestfish-actions.pod:2373 ../src/guestfs-actions.pod:3506
10298 msgid "C<app_description>"
10299 msgstr "C<app_description>"
10300
10301 #. type: textblock
10302 #: ../fish/guestfish-actions.pod:2375 ../src/guestfs-actions.pod:3508
10303 msgid ""
10304 "A longer description of the application or package.  If unavailable this is "
10305 "returned as an empty string C<\"\">."
10306 msgstr ""
10307
10308 #. type: =head2
10309 #: ../fish/guestfish-actions.pod:2382
10310 msgid "inspect-os"
10311 msgstr "inspect-os"
10312
10313 #. type: verbatim
10314 #: ../fish/guestfish-actions.pod:2384
10315 #, no-wrap
10316 msgid ""
10317 " inspect-os\n"
10318 "\n"
10319 msgstr ""
10320 " inspect-os\n"
10321 "\n"
10322
10323 #. type: textblock
10324 #: ../fish/guestfish-actions.pod:2386 ../src/guestfs-actions.pod:3526
10325 msgid ""
10326 "This function uses other libguestfs functions and certain heuristics to "
10327 "inspect the disk(s) (usually disks belonging to a virtual machine), looking "
10328 "for operating systems."
10329 msgstr ""
10330
10331 #. type: textblock
10332 #: ../fish/guestfish-actions.pod:2390 ../src/guestfs-actions.pod:3530
10333 msgid "The list returned is empty if no operating systems were found."
10334 msgstr ""
10335
10336 #. type: textblock
10337 #: ../fish/guestfish-actions.pod:2392 ../src/guestfs-actions.pod:3532
10338 msgid ""
10339 "If one operating system was found, then this returns a list with a single "
10340 "element, which is the name of the root filesystem of this operating system.  "
10341 "It is also possible for this function to return a list containing more than "
10342 "one element, indicating a dual-boot or multi-boot virtual machine, with each "
10343 "element being the root filesystem of one of the operating systems."
10344 msgstr ""
10345
10346 #. type: textblock
10347 #: ../fish/guestfish-actions.pod:2399
10348 msgid ""
10349 "You can pass the root string(s) returned to other L</inspect-get-*> "
10350 "functions in order to query further information about each operating system, "
10351 "such as the name and version."
10352 msgstr ""
10353
10354 #. type: textblock
10355 #: ../fish/guestfish-actions.pod:2404
10356 msgid ""
10357 "This function uses other libguestfs features such as L</mount-ro> and L</"
10358 "umount-all> in order to mount and unmount filesystems and look at the "
10359 "contents.  This should be called with no disks currently mounted.  The "
10360 "function may also use Augeas, so any existing Augeas handle will be closed."
10361 msgstr ""
10362
10363 #. type: textblock
10364 #: ../fish/guestfish-actions.pod:2410 ../src/guestfs-actions.pod:3550
10365 msgid ""
10366 "This function cannot decrypt encrypted disks.  The caller must do that first "
10367 "(supplying the necessary keys) if the disk is encrypted."
10368 msgstr ""
10369
10370 #. type: textblock
10371 #: ../fish/guestfish-actions.pod:2416 ../fish/guestfish-actions.pod:2614
10372 #: ../fish/guestfish-actions.pod:2673
10373 msgid "See also L</list-filesystems>."
10374 msgstr "Див. також L</list-filesystems>."
10375
10376 #. type: =head2
10377 #: ../fish/guestfish-actions.pod:2418
10378 msgid "is-blockdev"
10379 msgstr "is-blockdev"
10380
10381 #. type: verbatim
10382 #: ../fish/guestfish-actions.pod:2420
10383 #, no-wrap
10384 msgid ""
10385 " is-blockdev path\n"
10386 "\n"
10387 msgstr ""
10388 " is-blockdev шлях\n"
10389 "\n"
10390
10391 #. type: textblock
10392 #: ../fish/guestfish-actions.pod:2422 ../src/guestfs-actions.pod:3570
10393 msgid ""
10394 "This returns C<true> if and only if there is a block device with the given "
10395 "C<path> name."
10396 msgstr ""
10397
10398 #. type: textblock
10399 #: ../fish/guestfish-actions.pod:2425 ../fish/guestfish-actions.pod:2443
10400 #: ../fish/guestfish-actions.pod:2462 ../fish/guestfish-actions.pod:2471
10401 #: ../fish/guestfish-actions.pod:2481 ../fish/guestfish-actions.pod:2515
10402 #: ../fish/guestfish-actions.pod:2524
10403 msgid "See also L</stat>."
10404 msgstr "Див. також L</stat>."
10405
10406 #. type: =head2
10407 #: ../fish/guestfish-actions.pod:2427
10408 msgid "is-busy"
10409 msgstr "is-busy"
10410
10411 #. type: verbatim
10412 #: ../fish/guestfish-actions.pod:2429
10413 #, no-wrap
10414 msgid ""
10415 " is-busy\n"
10416 "\n"
10417 msgstr ""
10418 " is-busy\n"
10419 "\n"
10420
10421 #. type: textblock
10422 #: ../fish/guestfish-actions.pod:2431 ../src/guestfs-actions.pod:3584
10423 msgid ""
10424 "This returns true iff this handle is busy processing a command (in the "
10425 "C<BUSY> state)."
10426 msgstr ""
10427
10428 #. type: =head2
10429 #: ../fish/guestfish-actions.pod:2436
10430 msgid "is-chardev"
10431 msgstr "is-chardev"
10432
10433 #. type: verbatim
10434 #: ../fish/guestfish-actions.pod:2438
10435 #, no-wrap
10436 msgid ""
10437 " is-chardev path\n"
10438 "\n"
10439 msgstr ""
10440 " is-chardev шлях\n"
10441 "\n"
10442
10443 #. type: textblock
10444 #: ../fish/guestfish-actions.pod:2440 ../src/guestfs-actions.pod:3599
10445 msgid ""
10446 "This returns C<true> if and only if there is a character device with the "
10447 "given C<path> name."
10448 msgstr ""
10449
10450 #. type: =head2
10451 #: ../fish/guestfish-actions.pod:2445
10452 msgid "is-config"
10453 msgstr "is-config"
10454
10455 #. type: verbatim
10456 #: ../fish/guestfish-actions.pod:2447
10457 #, no-wrap
10458 msgid ""
10459 " is-config\n"
10460 "\n"
10461 msgstr ""
10462 " is-config\n"
10463 "\n"
10464
10465 #. type: textblock
10466 #: ../fish/guestfish-actions.pod:2449 ../src/guestfs-actions.pod:3613
10467 msgid ""
10468 "This returns true iff this handle is being configured (in the C<CONFIG> "
10469 "state)."
10470 msgstr ""
10471
10472 #. type: =head2
10473 #: ../fish/guestfish-actions.pod:2454
10474 msgid "is-dir"
10475 msgstr "is-dir"
10476
10477 #. type: verbatim
10478 #: ../fish/guestfish-actions.pod:2456
10479 #, no-wrap
10480 msgid ""
10481 " is-dir path\n"
10482 "\n"
10483 msgstr ""
10484 " is-dir шлях\n"
10485 "\n"
10486
10487 #. type: textblock
10488 #: ../fish/guestfish-actions.pod:2458 ../src/guestfs-actions.pod:3628
10489 msgid ""
10490 "This returns C<true> if and only if there is a directory with the given "
10491 "C<path> name.  Note that it returns false for other objects like files."
10492 msgstr ""
10493
10494 #. type: =head2
10495 #: ../fish/guestfish-actions.pod:2464
10496 msgid "is-fifo"
10497 msgstr "is-fifo"
10498
10499 #. type: verbatim
10500 #: ../fish/guestfish-actions.pod:2466
10501 #, no-wrap
10502 msgid ""
10503 " is-fifo path\n"
10504 "\n"
10505 msgstr ""
10506 " is-fifo шлях\n"
10507 "\n"
10508
10509 #. type: textblock
10510 #: ../fish/guestfish-actions.pod:2468 ../src/guestfs-actions.pod:3644
10511 msgid ""
10512 "This returns C<true> if and only if there is a FIFO (named pipe)  with the "
10513 "given C<path> name."
10514 msgstr ""
10515
10516 #. type: =head2
10517 #: ../fish/guestfish-actions.pod:2473
10518 msgid "is-file"
10519 msgstr "is-file"
10520
10521 #. type: verbatim
10522 #: ../fish/guestfish-actions.pod:2475
10523 #, no-wrap
10524 msgid ""
10525 " is-file path\n"
10526 "\n"
10527 msgstr ""
10528 " is-file шлях\n"
10529 "\n"
10530
10531 #. type: textblock
10532 #: ../fish/guestfish-actions.pod:2477 ../src/guestfs-actions.pod:3659
10533 msgid ""
10534 "This returns C<true> if and only if there is a regular file with the given "
10535 "C<path> name.  Note that it returns false for other objects like directories."
10536 msgstr ""
10537
10538 #. type: =head2
10539 #: ../fish/guestfish-actions.pod:2483
10540 msgid "is-launching"
10541 msgstr "is-launching"
10542
10543 #. type: verbatim
10544 #: ../fish/guestfish-actions.pod:2485
10545 #, no-wrap
10546 msgid ""
10547 " is-launching\n"
10548 "\n"
10549 msgstr ""
10550 " is-launching\n"
10551 "\n"
10552
10553 #. type: textblock
10554 #: ../fish/guestfish-actions.pod:2487 ../src/guestfs-actions.pod:3674
10555 msgid ""
10556 "This returns true iff this handle is launching the subprocess (in the "
10557 "C<LAUNCHING> state)."
10558 msgstr ""
10559
10560 #. type: =head2
10561 #: ../fish/guestfish-actions.pod:2492
10562 msgid "is-lv"
10563 msgstr "is-lv"
10564
10565 #. type: verbatim
10566 #: ../fish/guestfish-actions.pod:2494
10567 #, no-wrap
10568 msgid ""
10569 " is-lv device\n"
10570 "\n"
10571 msgstr ""
10572 " is-lv пристрій\n"
10573 "\n"
10574
10575 #. type: textblock
10576 #: ../fish/guestfish-actions.pod:2496 ../src/guestfs-actions.pod:3689
10577 msgid ""
10578 "This command tests whether C<device> is a logical volume, and returns true "
10579 "iff this is the case."
10580 msgstr ""
10581
10582 #. type: =head2
10583 #: ../fish/guestfish-actions.pod:2499
10584 msgid "is-ready"
10585 msgstr "is-ready"
10586
10587 #. type: verbatim
10588 #: ../fish/guestfish-actions.pod:2501
10589 #, no-wrap
10590 msgid ""
10591 " is-ready\n"
10592 "\n"
10593 msgstr ""
10594 " is-ready\n"
10595 "\n"
10596
10597 #. type: textblock
10598 #: ../fish/guestfish-actions.pod:2503 ../src/guestfs-actions.pod:3701
10599 msgid ""
10600 "This returns true iff this handle is ready to accept commands (in the "
10601 "C<READY> state)."
10602 msgstr ""
10603
10604 #. type: =head2
10605 #: ../fish/guestfish-actions.pod:2508
10606 msgid "is-socket"
10607 msgstr "is-socket"
10608
10609 #. type: verbatim
10610 #: ../fish/guestfish-actions.pod:2510
10611 #, no-wrap
10612 msgid ""
10613 " is-socket path\n"
10614 "\n"
10615 msgstr ""
10616 " is-socket шлях\n"
10617 "\n"
10618
10619 #. type: textblock
10620 #: ../fish/guestfish-actions.pod:2512 ../src/guestfs-actions.pod:3716
10621 msgid ""
10622 "This returns C<true> if and only if there is a Unix domain socket with the "
10623 "given C<path> name."
10624 msgstr ""
10625
10626 #. type: =head2
10627 #: ../fish/guestfish-actions.pod:2517
10628 msgid "is-symlink"
10629 msgstr "is-symlink"
10630
10631 #. type: verbatim
10632 #: ../fish/guestfish-actions.pod:2519
10633 #, no-wrap
10634 msgid ""
10635 " is-symlink path\n"
10636 "\n"
10637 msgstr ""
10638 " is-symlink шлях\n"
10639 "\n"
10640
10641 #. type: textblock
10642 #: ../fish/guestfish-actions.pod:2521 ../src/guestfs-actions.pod:3731
10643 msgid ""
10644 "This returns C<true> if and only if there is a symbolic link with the given "
10645 "C<path> name."
10646 msgstr ""
10647
10648 #. type: =head2
10649 #: ../fish/guestfish-actions.pod:2526
10650 msgid "is-zero"
10651 msgstr ""
10652
10653 #. type: verbatim
10654 #: ../fish/guestfish-actions.pod:2528
10655 #, no-wrap
10656 msgid ""
10657 " is-zero path\n"
10658 "\n"
10659 msgstr ""
10660
10661 #. type: textblock
10662 #: ../fish/guestfish-actions.pod:2530 ../src/guestfs-actions.pod:3746
10663 msgid ""
10664 "This returns true iff the file exists and the file is empty or it contains "
10665 "all zero bytes."
10666 msgstr ""
10667
10668 #. type: =head2
10669 #: ../fish/guestfish-actions.pod:2533
10670 msgid "is-zero-device"
10671 msgstr ""
10672
10673 #. type: verbatim
10674 #: ../fish/guestfish-actions.pod:2535
10675 #, no-wrap
10676 msgid ""
10677 " is-zero-device device\n"
10678 "\n"
10679 msgstr ""
10680
10681 #. type: textblock
10682 #: ../fish/guestfish-actions.pod:2537 ../src/guestfs-actions.pod:3759
10683 msgid "This returns true iff the device exists and contains all zero bytes."
10684 msgstr ""
10685
10686 #. type: textblock
10687 #: ../fish/guestfish-actions.pod:2539 ../src/guestfs-actions.pod:3761
10688 msgid "Note that for large devices this can take a long time to run."
10689 msgstr ""
10690
10691 #. type: =head2
10692 #: ../fish/guestfish-actions.pod:2541
10693 msgid "kill-subprocess"
10694 msgstr "kill-subprocess"
10695
10696 #. type: verbatim
10697 #: ../fish/guestfish-actions.pod:2543
10698 #, no-wrap
10699 msgid ""
10700 " kill-subprocess\n"
10701 "\n"
10702 msgstr ""
10703 " kill-subprocess\n"
10704 "\n"
10705
10706 #. type: textblock
10707 #: ../fish/guestfish-actions.pod:2545 ../src/guestfs-actions.pod:3772
10708 msgid "This kills the qemu subprocess.  You should never need to call this."
10709 msgstr ""
10710
10711 #. type: =head2
10712 #: ../fish/guestfish-actions.pod:2547
10713 msgid "launch"
10714 msgstr "launch"
10715
10716 #. type: =head2
10717 #: ../fish/guestfish-actions.pod:2549
10718 msgid "run"
10719 msgstr ""
10720
10721 #. type: verbatim
10722 #: ../fish/guestfish-actions.pod:2551
10723 #, no-wrap
10724 msgid ""
10725 " launch\n"
10726 "\n"
10727 msgstr ""
10728 " launch\n"
10729 "\n"
10730
10731 #. type: textblock
10732 #: ../fish/guestfish-actions.pod:2553 ../src/guestfs-actions.pod:3783
10733 msgid ""
10734 "Internally libguestfs is implemented by running a virtual machine using "
10735 "L<qemu(1)>."
10736 msgstr ""
10737
10738 #. type: textblock
10739 #: ../fish/guestfish-actions.pod:2556 ../src/guestfs-actions.pod:3786
10740 msgid ""
10741 "You should call this after configuring the handle (eg. adding drives) but "
10742 "before performing any actions."
10743 msgstr ""
10744
10745 #. type: =head2
10746 #: ../fish/guestfish-actions.pod:2559
10747 msgid "lchown"
10748 msgstr "lchown"
10749
10750 #. type: verbatim
10751 #: ../fish/guestfish-actions.pod:2561
10752 #, no-wrap
10753 msgid ""
10754 " lchown owner group path\n"
10755 "\n"
10756 msgstr ""
10757 " lchown власник група шлях\n"
10758 "\n"
10759
10760 #. type: textblock
10761 #: ../fish/guestfish-actions.pod:2563
10762 msgid ""
10763 "Change the file owner to C<owner> and group to C<group>.  This is like L</"
10764 "chown> but if C<path> is a symlink then the link itself is changed, not the "
10765 "target."
10766 msgstr ""
10767
10768 #. type: =head2
10769 #: ../fish/guestfish-actions.pod:2571
10770 msgid "lgetxattr"
10771 msgstr "lgetxattr"
10772
10773 #. type: verbatim
10774 #: ../fish/guestfish-actions.pod:2573
10775 #, no-wrap
10776 msgid ""
10777 " lgetxattr path name\n"
10778 "\n"
10779 msgstr ""
10780 " lgetxattr шлях назва\n"
10781 "\n"
10782
10783 #. type: textblock
10784 #: ../fish/guestfish-actions.pod:2575 ../src/guestfs-actions.pod:3826
10785 msgid ""
10786 "Get a single extended attribute from file C<path> named C<name>.  If C<path> "
10787 "is a symlink, then this call returns an extended attribute from the symlink."
10788 msgstr ""
10789
10790 #. type: textblock
10791 #: ../fish/guestfish-actions.pod:2589
10792 msgid "See also: L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10793 msgstr "Див. також L</lgetxattrs>, L</getxattr>, L<attr(5)>."
10794
10795 #. type: =head2
10796 #: ../fish/guestfish-actions.pod:2591
10797 msgid "lgetxattrs"
10798 msgstr "lgetxattrs"
10799
10800 #. type: verbatim
10801 #: ../fish/guestfish-actions.pod:2593
10802 #, no-wrap
10803 msgid ""
10804 " lgetxattrs path\n"
10805 "\n"
10806 msgstr ""
10807 " lgetxattrs шлях\n"
10808 "\n"
10809
10810 #. type: textblock
10811 #: ../fish/guestfish-actions.pod:2595
10812 msgid ""
10813 "This is the same as L</getxattrs>, but if C<path> is a symbolic link, then "
10814 "it returns the extended attributes of the link itself."
10815 msgstr ""
10816
10817 #. type: =head2
10818 #: ../fish/guestfish-actions.pod:2599
10819 msgid "list-9p"
10820 msgstr ""
10821
10822 #. type: verbatim
10823 #: ../fish/guestfish-actions.pod:2601
10824 #, no-wrap
10825 msgid ""
10826 " list-9p\n"
10827 "\n"
10828 msgstr ""
10829
10830 #. type: textblock
10831 #: ../fish/guestfish-actions.pod:2603 ../src/guestfs-actions.pod:3869
10832 msgid ""
10833 "List all 9p filesystems attached to the guest.  A list of mount tags is "
10834 "returned."
10835 msgstr ""
10836
10837 #. type: =head2
10838 #: ../fish/guestfish-actions.pod:2606
10839 msgid "list-devices"
10840 msgstr "list-devices"
10841
10842 #. type: verbatim
10843 #: ../fish/guestfish-actions.pod:2608
10844 #, no-wrap
10845 msgid ""
10846 " list-devices\n"
10847 "\n"
10848 msgstr ""
10849 " list-devices\n"
10850 "\n"
10851
10852 #. type: textblock
10853 #: ../fish/guestfish-actions.pod:2610 ../src/guestfs-actions.pod:3883
10854 msgid "List all the block devices."
10855 msgstr ""
10856
10857 #. type: textblock
10858 #: ../fish/guestfish-actions.pod:2612 ../src/guestfs-actions.pod:3885
10859 msgid "The full block device names are returned, eg. C</dev/sda>."
10860 msgstr ""
10861
10862 #. type: =head2
10863 #: ../fish/guestfish-actions.pod:2616
10864 msgid "list-dm-devices"
10865 msgstr ""
10866
10867 #. type: verbatim
10868 #: ../fish/guestfish-actions.pod:2618
10869 #, no-wrap
10870 msgid ""
10871 " list-dm-devices\n"
10872 "\n"
10873 msgstr ""
10874
10875 #. type: textblock
10876 #: ../fish/guestfish-actions.pod:2620 ../src/guestfs-actions.pod:3900
10877 msgid "List all device mapper devices."
10878 msgstr ""
10879
10880 #. type: textblock
10881 #: ../fish/guestfish-actions.pod:2622
10882 msgid ""
10883 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
10884 "previous call to L</luks-open>."
10885 msgstr ""
10886
10887 #. type: textblock
10888 #: ../fish/guestfish-actions.pod:2625
10889 msgid ""
10890 "Device mapper devices which correspond to logical volumes are I<not> "
10891 "returned in this list.  Call L</lvs> if you want to list logical volumes."
10892 msgstr ""
10893
10894 #. type: =head2
10895 #: ../fish/guestfish-actions.pod:2629
10896 msgid "list-filesystems"
10897 msgstr "list-filesystems"
10898
10899 #. type: verbatim
10900 #: ../fish/guestfish-actions.pod:2631
10901 #, no-wrap
10902 msgid ""
10903 " list-filesystems\n"
10904 "\n"
10905 msgstr ""
10906 " list-filesystems\n"
10907 "\n"
10908
10909 #. type: textblock
10910 #: ../fish/guestfish-actions.pod:2633 ../src/guestfs-actions.pod:3920
10911 msgid ""
10912 "This inspection command looks for filesystems on partitions, block devices "
10913 "and logical volumes, returning a list of devices containing filesystems and "
10914 "their type."
10915 msgstr ""
10916
10917 #. type: textblock
10918 #: ../fish/guestfish-actions.pod:2637 ../src/guestfs-actions.pod:3924
10919 msgid ""
10920 "The return value is a hash, where the keys are the devices containing "
10921 "filesystems, and the values are the filesystem types.  For example:"
10922 msgstr ""
10923
10924 #. type: verbatim
10925 #: ../fish/guestfish-actions.pod:2641 ../src/guestfs-actions.pod:3928
10926 #, no-wrap
10927 msgid ""
10928 " \"/dev/sda1\" => \"ntfs\"\n"
10929 " \"/dev/sda2\" => \"ext2\"\n"
10930 " \"/dev/vg_guest/lv_root\" => \"ext4\"\n"
10931 " \"/dev/vg_guest/lv_swap\" => \"swap\"\n"
10932 "\n"
10933 msgstr ""
10934
10935 #. type: textblock
10936 #: ../fish/guestfish-actions.pod:2646 ../src/guestfs-actions.pod:3933
10937 msgid ""
10938 "The value can have the special value \"unknown\", meaning the content of the "
10939 "device is undetermined or empty.  \"swap\" means a Linux swap partition."
10940 msgstr ""
10941
10942 #. type: textblock
10943 #: ../fish/guestfish-actions.pod:2650
10944 msgid ""
10945 "This command runs other libguestfs commands, which might include L</mount> "
10946 "and L</umount>, and therefore you should use this soon after launch and only "
10947 "when nothing is mounted."
10948 msgstr ""
10949
10950 #. type: textblock
10951 #: ../fish/guestfish-actions.pod:2654
10952 msgid ""
10953 "Not all of the filesystems returned will be mountable.  In particular, swap "
10954 "partitions are returned in the list.  Also this command does not check that "
10955 "each filesystem found is valid and mountable, and some filesystems might be "
10956 "mountable but require special options.  Filesystems may not all belong to a "
10957 "single logical operating system (use L</inspect-os> to look for OSes)."
10958 msgstr ""
10959
10960 #. type: =head2
10961 #: ../fish/guestfish-actions.pod:2662
10962 msgid "list-partitions"
10963 msgstr "list-partitions"
10964
10965 #. type: verbatim
10966 #: ../fish/guestfish-actions.pod:2664
10967 #, no-wrap
10968 msgid ""
10969 " list-partitions\n"
10970 "\n"
10971 msgstr ""
10972 " list-partitions\n"
10973 "\n"
10974
10975 #. type: textblock
10976 #: ../fish/guestfish-actions.pod:2666 ../src/guestfs-actions.pod:3962
10977 msgid "List all the partitions detected on all block devices."
10978 msgstr ""
10979
10980 #. type: textblock
10981 #: ../fish/guestfish-actions.pod:2668 ../src/guestfs-actions.pod:3964
10982 msgid "The full partition device names are returned, eg. C</dev/sda1>"
10983 msgstr ""
10984
10985 #. type: textblock
10986 #: ../fish/guestfish-actions.pod:2670
10987 msgid ""
10988 "This does not return logical volumes.  For that you will need to call L</"
10989 "lvs>."
10990 msgstr ""
10991
10992 #. type: =head2
10993 #: ../fish/guestfish-actions.pod:2675
10994 msgid "ll"
10995 msgstr "ll"
10996
10997 #. type: verbatim
10998 #: ../fish/guestfish-actions.pod:2677
10999 #, no-wrap
11000 msgid ""
11001 " ll directory\n"
11002 "\n"
11003 msgstr ""
11004 " ll каталог\n"
11005 "\n"
11006
11007 #. type: textblock
11008 #: ../fish/guestfish-actions.pod:2679 ../src/guestfs-actions.pod:3983
11009 msgid ""
11010 "List the files in C<directory> (relative to the root directory, there is no "
11011 "cwd) in the format of 'ls -la'."
11012 msgstr ""
11013
11014 #. type: textblock
11015 #: ../fish/guestfish-actions.pod:2682 ../src/guestfs-actions.pod:3986
11016 msgid ""
11017 "This command is mostly useful for interactive sessions.  It is I<not> "
11018 "intended that you try to parse the output string."
11019 msgstr ""
11020
11021 #. type: =head2
11022 #: ../fish/guestfish-actions.pod:2685
11023 msgid "ln"
11024 msgstr "ln"
11025
11026 #. type: verbatim
11027 #: ../fish/guestfish-actions.pod:2687
11028 #, no-wrap
11029 msgid ""
11030 " ln target linkname\n"
11031 "\n"
11032 msgstr ""
11033 " ln призначення назва_посилання\n"
11034 "\n"
11035
11036 #. type: textblock
11037 #: ../fish/guestfish-actions.pod:2689 ../src/guestfs-actions.pod:4001
11038 msgid "This command creates a hard link using the C<ln> command."
11039 msgstr ""
11040
11041 #. type: =head2
11042 #: ../fish/guestfish-actions.pod:2691
11043 msgid "ln-f"
11044 msgstr "ln-f"
11045
11046 #. type: verbatim
11047 #: ../fish/guestfish-actions.pod:2693
11048 #, no-wrap
11049 msgid ""
11050 " ln-f target linkname\n"
11051 "\n"
11052 msgstr ""
11053 " ln-f призначення назва_посилання\n"
11054 "\n"
11055
11056 #. type: textblock
11057 #: ../fish/guestfish-actions.pod:2695 ../src/guestfs-actions.pod:4014
11058 msgid ""
11059 "This command creates a hard link using the C<ln -f> command.  The I<-f> "
11060 "option removes the link (C<linkname>) if it exists already."
11061 msgstr ""
11062
11063 #. type: =head2
11064 #: ../fish/guestfish-actions.pod:2698
11065 msgid "ln-s"
11066 msgstr "ln-s"
11067
11068 #. type: verbatim
11069 #: ../fish/guestfish-actions.pod:2700
11070 #, no-wrap
11071 msgid ""
11072 " ln-s target linkname\n"
11073 "\n"
11074 msgstr ""
11075 " ln-s призначення назва_посилання\n"
11076 "\n"
11077
11078 #. type: textblock
11079 #: ../fish/guestfish-actions.pod:2702 ../src/guestfs-actions.pod:4028
11080 msgid "This command creates a symbolic link using the C<ln -s> command."
11081 msgstr ""
11082
11083 #. type: =head2
11084 #: ../fish/guestfish-actions.pod:2704
11085 msgid "ln-sf"
11086 msgstr "ln-sf"
11087
11088 #. type: verbatim
11089 #: ../fish/guestfish-actions.pod:2706
11090 #, no-wrap
11091 msgid ""
11092 " ln-sf target linkname\n"
11093 "\n"
11094 msgstr ""
11095 " ln-sf призначення назва_посилання\n"
11096 "\n"
11097
11098 #. type: textblock
11099 #: ../fish/guestfish-actions.pod:2708 ../src/guestfs-actions.pod:4041
11100 msgid ""
11101 "This command creates a symbolic link using the C<ln -sf> command, The I<-f> "
11102 "option removes the link (C<linkname>) if it exists already."
11103 msgstr ""
11104
11105 #. type: =head2
11106 #: ../fish/guestfish-actions.pod:2711
11107 msgid "lremovexattr"
11108 msgstr "lremovexattr"
11109
11110 #. type: verbatim
11111 #: ../fish/guestfish-actions.pod:2713
11112 #, no-wrap
11113 msgid ""
11114 " lremovexattr xattr path\n"
11115 "\n"
11116 msgstr ""
11117
11118 #. type: textblock
11119 #: ../fish/guestfish-actions.pod:2715
11120 msgid ""
11121 "This is the same as L</removexattr>, but if C<path> is a symbolic link, then "
11122 "it removes an extended attribute of the link itself."
11123 msgstr ""
11124
11125 #. type: =head2
11126 #: ../fish/guestfish-actions.pod:2719
11127 msgid "ls"
11128 msgstr "ls"
11129
11130 #. type: verbatim
11131 #: ../fish/guestfish-actions.pod:2721
11132 #, no-wrap
11133 msgid ""
11134 " ls directory\n"
11135 "\n"
11136 msgstr ""
11137 " ls каталог\n"
11138 "\n"
11139
11140 #. type: textblock
11141 #: ../fish/guestfish-actions.pod:2723 ../src/guestfs-actions.pod:4069
11142 msgid ""
11143 "List the files in C<directory> (relative to the root directory, there is no "
11144 "cwd).  The '.' and '..' entries are not returned, but hidden files are shown."
11145 msgstr ""
11146
11147 #. type: textblock
11148 #: ../fish/guestfish-actions.pod:2727
11149 msgid ""
11150 "This command is mostly useful for interactive sessions.  Programs should "
11151 "probably use L</readdir> instead."
11152 msgstr ""
11153
11154 #. type: =head2
11155 #: ../fish/guestfish-actions.pod:2730
11156 msgid "lsetxattr"
11157 msgstr "lsetxattr"
11158
11159 #. type: verbatim
11160 #: ../fish/guestfish-actions.pod:2732
11161 #, no-wrap
11162 msgid ""
11163 " lsetxattr xattr val vallen path\n"
11164 "\n"
11165 msgstr ""
11166
11167 #. type: textblock
11168 #: ../fish/guestfish-actions.pod:2734
11169 msgid ""
11170 "This is the same as L</setxattr>, but if C<path> is a symbolic link, then it "
11171 "sets an extended attribute of the link itself."
11172 msgstr ""
11173
11174 #. type: =head2
11175 #: ../fish/guestfish-actions.pod:2738
11176 msgid "lstat"
11177 msgstr "lstat"
11178
11179 #. type: verbatim
11180 #: ../fish/guestfish-actions.pod:2740
11181 #, no-wrap
11182 msgid ""
11183 " lstat path\n"
11184 "\n"
11185 msgstr ""
11186 " lstat шлях\n"
11187 "\n"
11188
11189 #. type: textblock
11190 #: ../fish/guestfish-actions.pod:2742 ../fish/guestfish-actions.pod:4552
11191 #: ../src/guestfs-actions.pod:4105 ../src/guestfs-actions.pod:6890
11192 msgid "Returns file information for the given C<path>."
11193 msgstr ""
11194
11195 #. type: textblock
11196 #: ../fish/guestfish-actions.pod:2744
11197 msgid ""
11198 "This is the same as L</stat> except that if C<path> is a symbolic link, then "
11199 "the link is stat-ed, not the file it refers to."
11200 msgstr ""
11201
11202 #. type: textblock
11203 #: ../fish/guestfish-actions.pod:2748 ../src/guestfs-actions.pod:4111
11204 msgid "This is the same as the C<lstat(2)> system call."
11205 msgstr ""
11206
11207 #. type: =head2
11208 #: ../fish/guestfish-actions.pod:2750
11209 msgid "lstatlist"
11210 msgstr "lstatlist"
11211
11212 #. type: verbatim
11213 #: ../fish/guestfish-actions.pod:2752
11214 #, no-wrap
11215 msgid ""
11216 " lstatlist path 'names ...'\n"
11217 "\n"
11218 msgstr ""
11219
11220 #. type: textblock
11221 #: ../fish/guestfish-actions.pod:2754
11222 msgid ""
11223 "This call allows you to perform the L</lstat> operation on multiple files, "
11224 "where all files are in the directory C<path>.  C<names> is the list of files "
11225 "from this directory."
11226 msgstr ""
11227
11228 #. type: textblock
11229 #: ../fish/guestfish-actions.pod:2758 ../src/guestfs-actions.pod:4130
11230 msgid ""
11231 "On return you get a list of stat structs, with a one-to-one correspondence "
11232 "to the C<names> list.  If any name did not exist or could not be lstat'd, "
11233 "then the C<ino> field of that structure is set to C<-1>."
11234 msgstr ""
11235
11236 #. type: textblock
11237 #: ../fish/guestfish-actions.pod:2763
11238 msgid ""
11239 "This call is intended for programs that want to efficiently list a directory "
11240 "contents without making many round-trips.  See also L</lxattrlist> for a "
11241 "similarly efficient call for getting extended attributes.  Very long "
11242 "directory listings might cause the protocol message size to be exceeded, "
11243 "causing this call to fail.  The caller must split up such requests into "
11244 "smaller groups of names."
11245 msgstr ""
11246
11247 #. type: =head2
11248 #: ../fish/guestfish-actions.pod:2771
11249 msgid "luks-add-key"
11250 msgstr "luks-add-key"
11251
11252 #. type: verbatim
11253 #: ../fish/guestfish-actions.pod:2773
11254 #, no-wrap
11255 msgid ""
11256 " luks-add-key device keyslot\n"
11257 "\n"
11258 msgstr ""
11259
11260 #. type: textblock
11261 #: ../fish/guestfish-actions.pod:2775 ../src/guestfs-actions.pod:4158
11262 msgid ""
11263 "This command adds a new key on LUKS device C<device>.  C<key> is any "
11264 "existing key, and is used to access the device.  C<newkey> is the new key to "
11265 "add.  C<keyslot> is the key slot that will be replaced."
11266 msgstr ""
11267
11268 #. type: textblock
11269 #: ../fish/guestfish-actions.pod:2780
11270 msgid ""
11271 "Note that if C<keyslot> already contains a key, then this command will "
11272 "fail.  You have to use L</luks-kill-slot> first to remove that key."
11273 msgstr ""
11274
11275 #. type: textblock
11276 #: ../fish/guestfish-actions.pod:2784 ../fish/guestfish-actions.pod:2806
11277 #: ../fish/guestfish-actions.pod:2819 ../fish/guestfish-actions.pod:2833
11278 #: ../fish/guestfish-actions.pod:2859 ../fish/guestfish-actions.pod:2869
11279 msgid ""
11280 "This command has one or more key or passphrase parameters.  Guestfish will "
11281 "prompt for these separately."
11282 msgstr ""
11283
11284 #. type: =head2
11285 #: ../fish/guestfish-actions.pod:2787
11286 msgid "luks-close"
11287 msgstr "luks-close"
11288
11289 #. type: verbatim
11290 #: ../fish/guestfish-actions.pod:2789
11291 #, no-wrap
11292 msgid ""
11293 " luks-close device\n"
11294 "\n"
11295 msgstr ""
11296 " luks-close пристрій\n"
11297 "\n"
11298
11299 #. type: textblock
11300 #: ../fish/guestfish-actions.pod:2791
11301 msgid ""
11302 "This closes a LUKS device that was created earlier by L</luks-open> or L</"
11303 "luks-open-ro>.  The C<device> parameter must be the name of the LUKS mapping "
11304 "device (ie. C</dev/mapper/mapname>) and I<not> the name of the underlying "
11305 "block device."
11306 msgstr ""
11307
11308 #. type: =head2
11309 #: ../fish/guestfish-actions.pod:2797
11310 msgid "luks-format"
11311 msgstr "luks-format"
11312
11313 #. type: verbatim
11314 #: ../fish/guestfish-actions.pod:2799
11315 #, no-wrap
11316 msgid ""
11317 " luks-format device keyslot\n"
11318 "\n"
11319 msgstr ""
11320
11321 #. type: textblock
11322 #: ../fish/guestfish-actions.pod:2801 ../src/guestfs-actions.pod:4199
11323 msgid ""
11324 "This command erases existing data on C<device> and formats the device as a "
11325 "LUKS encrypted device.  C<key> is the initial key, which is added to key "
11326 "slot C<slot>.  (LUKS supports 8 key slots, numbered 0-7)."
11327 msgstr ""
11328
11329 #. type: textblock
11330 #: ../fish/guestfish-actions.pod:2809 ../fish/guestfish-actions.pod:2822
11331 #: ../fish/guestfish-actions.pod:2909 ../fish/guestfish-actions.pod:3560
11332 #: ../fish/guestfish-actions.pod:4086 ../fish/guestfish-actions.pod:4423
11333 #: ../fish/guestfish-actions.pod:4446 ../fish/guestfish-actions.pod:4468
11334 #: ../fish/guestfish-actions.pod:5214 ../src/guestfs-actions.pod:4206
11335 #: ../src/guestfs-actions.pod:4229 ../src/guestfs-actions.pod:4372
11336 #: ../src/guestfs-actions.pod:5465 ../src/guestfs-actions.pod:6253
11337 #: ../src/guestfs-actions.pod:6704 ../src/guestfs-actions.pod:6734
11338 #: ../src/guestfs-actions.pod:6767 ../src/guestfs-actions.pod:7966
11339 msgid ""
11340 "B<This command is dangerous.  Without careful use you can easily destroy all "
11341 "your data>."
11342 msgstr ""
11343
11344 #. type: =head2
11345 #: ../fish/guestfish-actions.pod:2812
11346 msgid "luks-format-cipher"
11347 msgstr "luks-format-cipher"
11348
11349 #. type: verbatim
11350 #: ../fish/guestfish-actions.pod:2814
11351 #, no-wrap
11352 msgid ""
11353 " luks-format-cipher device keyslot cipher\n"
11354 "\n"
11355 msgstr ""
11356
11357 #. type: textblock
11358 #: ../fish/guestfish-actions.pod:2816
11359 msgid ""
11360 "This command is the same as L</luks-format> but it also allows you to set "
11361 "the C<cipher> used."
11362 msgstr ""
11363
11364 #. type: =head2
11365 #: ../fish/guestfish-actions.pod:2825
11366 msgid "luks-kill-slot"
11367 msgstr "luks-kill-slot"
11368
11369 #. type: verbatim
11370 #: ../fish/guestfish-actions.pod:2827
11371 #, no-wrap
11372 msgid ""
11373 " luks-kill-slot device keyslot\n"
11374 "\n"
11375 msgstr ""
11376
11377 #. type: textblock
11378 #: ../fish/guestfish-actions.pod:2829 ../src/guestfs-actions.pod:4246
11379 msgid ""
11380 "This command deletes the key in key slot C<keyslot> from the encrypted LUKS "
11381 "device C<device>.  C<key> must be one of the I<other> keys."
11382 msgstr ""
11383
11384 #. type: =head2
11385 #: ../fish/guestfish-actions.pod:2836
11386 msgid "luks-open"
11387 msgstr "luks-open"
11388
11389 #. type: verbatim
11390 #: ../fish/guestfish-actions.pod:2838
11391 #, no-wrap
11392 msgid ""
11393 " luks-open device mapname\n"
11394 "\n"
11395 msgstr ""
11396
11397 #. type: textblock
11398 #: ../fish/guestfish-actions.pod:2840 ../src/guestfs-actions.pod:4266
11399 msgid ""
11400 "This command opens a block device which has been encrypted according to the "
11401 "Linux Unified Key Setup (LUKS) standard."
11402 msgstr ""
11403
11404 #. type: textblock
11405 #: ../fish/guestfish-actions.pod:2843 ../src/guestfs-actions.pod:4269
11406 msgid "C<device> is the encrypted block device or partition."
11407 msgstr ""
11408
11409 #. type: textblock
11410 #: ../fish/guestfish-actions.pod:2845 ../src/guestfs-actions.pod:4271
11411 msgid ""
11412 "The caller must supply one of the keys associated with the LUKS block "
11413 "device, in the C<key> parameter."
11414 msgstr ""
11415
11416 #. type: textblock
11417 #: ../fish/guestfish-actions.pod:2848 ../src/guestfs-actions.pod:4274
11418 msgid ""
11419 "This creates a new block device called C</dev/mapper/mapname>.  Reads and "
11420 "writes to this block device are decrypted from and encrypted to the "
11421 "underlying C<device> respectively."
11422 msgstr ""
11423
11424 #. type: textblock
11425 #: ../fish/guestfish-actions.pod:2852
11426 msgid ""
11427 "If this block device contains LVM volume groups, then calling L</vgscan> "
11428 "followed by L</vg-activate-all> will make them visible."
11429 msgstr ""
11430
11431 #. type: textblock
11432 #: ../fish/guestfish-actions.pod:2856
11433 msgid "Use L</list-dm-devices> to list all device mapper devices."
11434 msgstr ""
11435
11436 #. type: =head2
11437 #: ../fish/guestfish-actions.pod:2862
11438 msgid "luks-open-ro"
11439 msgstr "luks-open-ro"
11440
11441 #. type: verbatim
11442 #: ../fish/guestfish-actions.pod:2864
11443 #, no-wrap
11444 msgid ""
11445 " luks-open-ro device mapname\n"
11446 "\n"
11447 msgstr ""
11448
11449 #. type: textblock
11450 #: ../fish/guestfish-actions.pod:2866
11451 msgid ""
11452 "This is the same as L</luks-open> except that a read-only mapping is created."
11453 msgstr ""
11454
11455 #. type: =head2
11456 #: ../fish/guestfish-actions.pod:2872
11457 msgid "lvcreate"
11458 msgstr "lvcreate"
11459
11460 #. type: verbatim
11461 #: ../fish/guestfish-actions.pod:2874
11462 #, no-wrap
11463 msgid ""
11464 " lvcreate logvol volgroup mbytes\n"
11465 "\n"
11466 msgstr ""
11467
11468 #. type: textblock
11469 #: ../fish/guestfish-actions.pod:2876 ../src/guestfs-actions.pod:4320
11470 msgid ""
11471 "This creates an LVM logical volume called C<logvol> on the volume group "
11472 "C<volgroup>, with C<size> megabytes."
11473 msgstr ""
11474
11475 #. type: =head2
11476 #: ../fish/guestfish-actions.pod:2879
11477 msgid "lvm-canonical-lv-name"
11478 msgstr "lvm-canonical-lv-name"
11479
11480 #. type: verbatim
11481 #: ../fish/guestfish-actions.pod:2881
11482 #, no-wrap
11483 msgid ""
11484 " lvm-canonical-lv-name lvname\n"
11485 "\n"
11486 msgstr ""
11487
11488 #. type: textblock
11489 #: ../fish/guestfish-actions.pod:2883 ../src/guestfs-actions.pod:4333
11490 msgid ""
11491 "This converts alternative naming schemes for LVs that you might find to the "
11492 "canonical name.  For example, C</dev/mapper/VG-LV> is converted to C</dev/VG/"
11493 "LV>."
11494 msgstr ""
11495
11496 #. type: textblock
11497 #: ../fish/guestfish-actions.pod:2887 ../src/guestfs-actions.pod:4337
11498 msgid ""
11499 "This command returns an error if the C<lvname> parameter does not refer to a "
11500 "logical volume."
11501 msgstr ""
11502
11503 #. type: textblock
11504 #: ../fish/guestfish-actions.pod:2890
11505 msgid "See also L</is-lv>."
11506 msgstr "Див. також L</is-lv>."
11507
11508 #. type: =head2
11509 #: ../fish/guestfish-actions.pod:2892
11510 msgid "lvm-clear-filter"
11511 msgstr "lvm-clear-filter"
11512
11513 #. type: verbatim
11514 #: ../fish/guestfish-actions.pod:2894
11515 #, no-wrap
11516 msgid ""
11517 " lvm-clear-filter\n"
11518 "\n"
11519 msgstr ""
11520 " lvm-clear-filter\n"
11521 "\n"
11522
11523 #. type: textblock
11524 #: ../fish/guestfish-actions.pod:2896
11525 msgid ""
11526 "This undoes the effect of L</lvm-set-filter>.  LVM will be able to see every "
11527 "block device."
11528 msgstr ""
11529
11530 #. type: textblock
11531 #: ../fish/guestfish-actions.pod:2899 ../fish/guestfish-actions.pod:2930
11532 #: ../src/guestfs-actions.pod:4355 ../src/guestfs-actions.pod:4397
11533 msgid ""
11534 "This command also clears the LVM cache and performs a volume group scan."
11535 msgstr ""
11536
11537 #. type: =head2
11538 #: ../fish/guestfish-actions.pod:2902
11539 msgid "lvm-remove-all"
11540 msgstr "lvm-remove-all"
11541
11542 #. type: verbatim
11543 #: ../fish/guestfish-actions.pod:2904
11544 #, no-wrap
11545 msgid ""
11546 " lvm-remove-all\n"
11547 "\n"
11548 msgstr ""
11549 " lvm-remove-all\n"
11550 "\n"
11551
11552 #. type: textblock
11553 #: ../fish/guestfish-actions.pod:2906 ../src/guestfs-actions.pod:4367
11554 msgid ""
11555 "This command removes all LVM logical volumes, volume groups and physical "
11556 "volumes."
11557 msgstr ""
11558
11559 #. type: =head2
11560 #: ../fish/guestfish-actions.pod:2912
11561 msgid "lvm-set-filter"
11562 msgstr "lvm-set-filter"
11563
11564 #. type: verbatim
11565 #: ../fish/guestfish-actions.pod:2914
11566 #, no-wrap
11567 msgid ""
11568 " lvm-set-filter 'devices ...'\n"
11569 "\n"
11570 msgstr ""
11571 " lvm-set-filter 'пристрої...'\n"
11572 "\n"
11573
11574 #. type: textblock
11575 #: ../fish/guestfish-actions.pod:2916 ../src/guestfs-actions.pod:4383
11576 msgid ""
11577 "This sets the LVM device filter so that LVM will only be able to \"see\" the "
11578 "block devices in the list C<devices>, and will ignore all other attached "
11579 "block devices."
11580 msgstr ""
11581
11582 #. type: textblock
11583 #: ../fish/guestfish-actions.pod:2920 ../src/guestfs-actions.pod:4387
11584 msgid ""
11585 "Where disk image(s) contain duplicate PVs or VGs, this command is useful to "
11586 "get LVM to ignore the duplicates, otherwise LVM can get confused.  Note also "
11587 "there are two types of duplication possible: either cloned PVs/VGs which "
11588 "have identical UUIDs; or VGs that are not cloned but just happen to have the "
11589 "same name.  In normal operation you cannot create this situation, but you "
11590 "can do it outside LVM, eg.  by cloning disk images or by bit twiddling "
11591 "inside the LVM metadata."
11592 msgstr ""
11593
11594 #. type: textblock
11595 #: ../fish/guestfish-actions.pod:2933 ../src/guestfs-actions.pod:4400
11596 msgid "You can filter whole block devices or individual partitions."
11597 msgstr ""
11598
11599 #. type: textblock
11600 #: ../fish/guestfish-actions.pod:2935 ../src/guestfs-actions.pod:4402
11601 msgid ""
11602 "You cannot use this if any VG is currently in use (eg.  contains a mounted "
11603 "filesystem), even if you are not filtering out that VG."
11604 msgstr ""
11605
11606 #. type: =head2
11607 #: ../fish/guestfish-actions.pod:2939
11608 msgid "lvremove"
11609 msgstr "lvremove"
11610
11611 #. type: verbatim
11612 #: ../fish/guestfish-actions.pod:2941
11613 #, no-wrap
11614 msgid ""
11615 " lvremove device\n"
11616 "\n"
11617 msgstr ""
11618 " lvremove пристрій\n"
11619 "\n"
11620
11621 #. type: textblock
11622 #: ../fish/guestfish-actions.pod:2943 ../src/guestfs-actions.pod:4416
11623 msgid ""
11624 "Remove an LVM logical volume C<device>, where C<device> is the path to the "
11625 "LV, such as C</dev/VG/LV>."
11626 msgstr ""
11627
11628 #. type: textblock
11629 #: ../fish/guestfish-actions.pod:2946 ../src/guestfs-actions.pod:4419
11630 msgid ""
11631 "You can also remove all LVs in a volume group by specifying the VG name, C</"
11632 "dev/VG>."
11633 msgstr ""
11634
11635 #. type: =head2
11636 #: ../fish/guestfish-actions.pod:2949
11637 msgid "lvrename"
11638 msgstr "lvrename"
11639
11640 #. type: verbatim
11641 #: ../fish/guestfish-actions.pod:2951
11642 #, no-wrap
11643 msgid ""
11644 " lvrename logvol newlogvol\n"
11645 "\n"
11646 msgstr ""
11647
11648 #. type: textblock
11649 #: ../fish/guestfish-actions.pod:2953 ../src/guestfs-actions.pod:4433
11650 msgid "Rename a logical volume C<logvol> with the new name C<newlogvol>."
11651 msgstr ""
11652
11653 #. type: =head2
11654 #: ../fish/guestfish-actions.pod:2955
11655 msgid "lvresize"
11656 msgstr "lvresize"
11657
11658 #. type: verbatim
11659 #: ../fish/guestfish-actions.pod:2957
11660 #, no-wrap
11661 msgid ""
11662 " lvresize device mbytes\n"
11663 "\n"
11664 msgstr ""
11665
11666 #. type: textblock
11667 #: ../fish/guestfish-actions.pod:2959 ../src/guestfs-actions.pod:4446
11668 msgid ""
11669 "This resizes (expands or shrinks) an existing LVM logical volume to "
11670 "C<mbytes>.  When reducing, data in the reduced part is lost."
11671 msgstr ""
11672
11673 #. type: =head2
11674 #: ../fish/guestfish-actions.pod:2963
11675 msgid "lvresize-free"
11676 msgstr "lvresize-free"
11677
11678 #. type: verbatim
11679 #: ../fish/guestfish-actions.pod:2965
11680 #, no-wrap
11681 msgid ""
11682 " lvresize-free lv percent\n"
11683 "\n"
11684 msgstr ""
11685
11686 #. type: textblock
11687 #: ../fish/guestfish-actions.pod:2967 ../src/guestfs-actions.pod:4461
11688 msgid ""
11689 "This expands an existing logical volume C<lv> so that it fills C<pc>% of the "
11690 "remaining free space in the volume group.  Commonly you would call this with "
11691 "pc = 100 which expands the logical volume as much as possible, using all "
11692 "remaining free space in the volume group."
11693 msgstr ""
11694
11695 #. type: =head2
11696 #: ../fish/guestfish-actions.pod:2973
11697 msgid "lvs"
11698 msgstr "lvs"
11699
11700 #. type: verbatim
11701 #: ../fish/guestfish-actions.pod:2975
11702 #, no-wrap
11703 msgid ""
11704 " lvs\n"
11705 "\n"
11706 msgstr ""
11707 " lvs\n"
11708 "\n"
11709
11710 #. type: textblock
11711 #: ../fish/guestfish-actions.pod:2977 ../src/guestfs-actions.pod:4476
11712 msgid ""
11713 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11714 "(8)> command."
11715 msgstr ""
11716
11717 #. type: textblock
11718 #: ../fish/guestfish-actions.pod:2980 ../src/guestfs-actions.pod:4479
11719 msgid ""
11720 "This returns a list of the logical volume device names (eg. C</dev/"
11721 "VolGroup00/LogVol00>)."
11722 msgstr ""
11723
11724 #. type: textblock
11725 #: ../fish/guestfish-actions.pod:2983
11726 msgid "See also L</lvs-full>, L</list-filesystems>."
11727 msgstr "Див. також L</lvs-full>, L</list-filesystems>."
11728
11729 #. type: =head2
11730 #: ../fish/guestfish-actions.pod:2985
11731 msgid "lvs-full"
11732 msgstr "lvs-full"
11733
11734 #. type: verbatim
11735 #: ../fish/guestfish-actions.pod:2987
11736 #, no-wrap
11737 msgid ""
11738 " lvs-full\n"
11739 "\n"
11740 msgstr ""
11741 " lvs-full\n"
11742 "\n"
11743
11744 #. type: textblock
11745 #: ../fish/guestfish-actions.pod:2989 ../src/guestfs-actions.pod:4495
11746 msgid ""
11747 "List all the logical volumes detected.  This is the equivalent of the L<lvs"
11748 "(8)> command.  The \"full\" version includes all fields."
11749 msgstr ""
11750
11751 #. type: =head2
11752 #: ../fish/guestfish-actions.pod:2992
11753 msgid "lvuuid"
11754 msgstr "lvuuid"
11755
11756 #. type: verbatim
11757 #: ../fish/guestfish-actions.pod:2994
11758 #, no-wrap
11759 msgid ""
11760 " lvuuid device\n"
11761 "\n"
11762 msgstr ""
11763 " lvuuid пристрій\n"
11764 "\n"
11765
11766 #. type: textblock
11767 #: ../fish/guestfish-actions.pod:2996 ../src/guestfs-actions.pod:4510
11768 msgid "This command returns the UUID of the LVM LV C<device>."
11769 msgstr ""
11770
11771 #. type: =head2
11772 #: ../fish/guestfish-actions.pod:2998
11773 msgid "lxattrlist"
11774 msgstr "lxattrlist"
11775
11776 #. type: verbatim
11777 #: ../fish/guestfish-actions.pod:3000
11778 #, no-wrap
11779 msgid ""
11780 " lxattrlist path 'names ...'\n"
11781 "\n"
11782 msgstr ""
11783
11784 #. type: textblock
11785 #: ../fish/guestfish-actions.pod:3002 ../src/guestfs-actions.pod:4524
11786 msgid ""
11787 "This call allows you to get the extended attributes of multiple files, where "
11788 "all files are in the directory C<path>.  C<names> is the list of files from "
11789 "this directory."
11790 msgstr ""
11791
11792 #. type: textblock
11793 #: ../fish/guestfish-actions.pod:3006 ../src/guestfs-actions.pod:4528
11794 msgid ""
11795 "On return you get a flat list of xattr structs which must be interpreted "
11796 "sequentially.  The first xattr struct always has a zero-length C<attrname>.  "
11797 "C<attrval> in this struct is zero-length to indicate there was an error "
11798 "doing C<lgetxattr> for this file, I<or> is a C string which is a decimal "
11799 "number (the number of following attributes for this file, which could be C<"
11800 "\"0\">).  Then after the first xattr struct are the zero or more attributes "
11801 "for the first named file.  This repeats for the second and subsequent files."
11802 msgstr ""
11803
11804 #. type: textblock
11805 #: ../fish/guestfish-actions.pod:3016
11806 msgid ""
11807 "This call is intended for programs that want to efficiently list a directory "
11808 "contents without making many round-trips.  See also L</lstatlist> for a "
11809 "similarly efficient call for getting standard stats.  Very long directory "
11810 "listings might cause the protocol message size to be exceeded, causing this "
11811 "call to fail.  The caller must split up such requests into smaller groups of "
11812 "names."
11813 msgstr ""
11814
11815 #. type: =head2
11816 #: ../fish/guestfish-actions.pod:3024
11817 msgid "mkdir"
11818 msgstr "mkdir"
11819
11820 #. type: verbatim
11821 #: ../fish/guestfish-actions.pod:3026
11822 #, no-wrap
11823 msgid ""
11824 " mkdir path\n"
11825 "\n"
11826 msgstr ""
11827 " mkdir шлях\n"
11828 "\n"
11829
11830 #. type: textblock
11831 #: ../fish/guestfish-actions.pod:3028 ../src/guestfs-actions.pod:4558
11832 msgid "Create a directory named C<path>."
11833 msgstr ""
11834
11835 #. type: =head2
11836 #: ../fish/guestfish-actions.pod:3030
11837 msgid "mkdir-mode"
11838 msgstr "mkdir-mode"
11839
11840 #. type: verbatim
11841 #: ../fish/guestfish-actions.pod:3032
11842 #, no-wrap
11843 msgid ""
11844 " mkdir-mode path mode\n"
11845 "\n"
11846 msgstr ""
11847 " mkdir-mode шлях режим\n"
11848 "\n"
11849
11850 #. type: textblock
11851 #: ../fish/guestfish-actions.pod:3034 ../src/guestfs-actions.pod:4571
11852 msgid ""
11853 "This command creates a directory, setting the initial permissions of the "
11854 "directory to C<mode>."
11855 msgstr ""
11856
11857 #. type: textblock
11858 #: ../fish/guestfish-actions.pod:3037 ../src/guestfs-actions.pod:4574
11859 msgid ""
11860 "For common Linux filesystems, the actual mode which is set will be C<mode & "
11861 "~umask & 01777>.  Non-native-Linux filesystems may interpret the mode in "
11862 "other ways."
11863 msgstr ""
11864
11865 #. type: textblock
11866 #: ../fish/guestfish-actions.pod:3041
11867 msgid "See also L</mkdir>, L</umask>"
11868 msgstr "Див. також L</mkdir>, L</umask>"
11869
11870 #. type: =head2
11871 #: ../fish/guestfish-actions.pod:3043
11872 msgid "mkdir-p"
11873 msgstr "mkdir-p"
11874
11875 #. type: verbatim
11876 #: ../fish/guestfish-actions.pod:3045
11877 #, no-wrap
11878 msgid ""
11879 " mkdir-p path\n"
11880 "\n"
11881 msgstr ""
11882 " mkdir-p шлях\n"
11883 "\n"
11884
11885 #. type: textblock
11886 #: ../fish/guestfish-actions.pod:3047 ../src/guestfs-actions.pod:4590
11887 msgid ""
11888 "Create a directory named C<path>, creating any parent directories as "
11889 "necessary.  This is like the C<mkdir -p> shell command."
11890 msgstr ""
11891
11892 #. type: =head2
11893 #: ../fish/guestfish-actions.pod:3050
11894 msgid "mkdtemp"
11895 msgstr "mkdtemp"
11896
11897 #. type: verbatim
11898 #: ../fish/guestfish-actions.pod:3052
11899 #, no-wrap
11900 msgid ""
11901 " mkdtemp template\n"
11902 "\n"
11903 msgstr ""
11904 " mkdtemp шаблон\n"
11905 "\n"
11906
11907 #. type: textblock
11908 #: ../fish/guestfish-actions.pod:3054 ../src/guestfs-actions.pod:4603
11909 msgid ""
11910 "This command creates a temporary directory.  The C<template> parameter "
11911 "should be a full pathname for the temporary directory name with the final "
11912 "six characters being \"XXXXXX\"."
11913 msgstr ""
11914
11915 #. type: textblock
11916 #: ../fish/guestfish-actions.pod:3059 ../src/guestfs-actions.pod:4608
11917 msgid ""
11918 "For example: \"/tmp/myprogXXXXXX\" or \"/Temp/myprogXXXXXX\", the second one "
11919 "being suitable for Windows filesystems."
11920 msgstr ""
11921
11922 #. type: textblock
11923 #: ../fish/guestfish-actions.pod:3062 ../src/guestfs-actions.pod:4611
11924 msgid "The name of the temporary directory that was created is returned."
11925 msgstr ""
11926
11927 #. type: textblock
11928 #: ../fish/guestfish-actions.pod:3065 ../src/guestfs-actions.pod:4614
11929 msgid "The temporary directory is created with mode 0700 and is owned by root."
11930 msgstr ""
11931
11932 #. type: textblock
11933 #: ../fish/guestfish-actions.pod:3068 ../src/guestfs-actions.pod:4617
11934 msgid ""
11935 "The caller is responsible for deleting the temporary directory and its "
11936 "contents after use."
11937 msgstr ""
11938
11939 #. type: textblock
11940 #: ../fish/guestfish-actions.pod:3071 ../src/guestfs-actions.pod:4620
11941 msgid "See also: L<mkdtemp(3)>"
11942 msgstr ""
11943
11944 #. type: =head2
11945 #: ../fish/guestfish-actions.pod:3073
11946 msgid "mke2fs-J"
11947 msgstr "mke2fs-J"
11948
11949 #. type: verbatim
11950 #: ../fish/guestfish-actions.pod:3075
11951 #, no-wrap
11952 msgid ""
11953 " mke2fs-J fstype blocksize device journal\n"
11954 "\n"
11955 msgstr ""
11956
11957 #. type: textblock
11958 #: ../fish/guestfish-actions.pod:3077 ../src/guestfs-actions.pod:4636
11959 msgid ""
11960 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11961 "C<journal>.  It is equivalent to the command:"
11962 msgstr ""
11963
11964 #. type: verbatim
11965 #: ../fish/guestfish-actions.pod:3081 ../src/guestfs-actions.pod:4640
11966 #, no-wrap
11967 msgid ""
11968 " mke2fs -t fstype -b blocksize -J device=<journal> <device>\n"
11969 "\n"
11970 msgstr ""
11971 " mke2fs -t fstype -b blocksize -J device=<журнал> <пристрій>\n"
11972 "\n"
11973
11974 #. type: textblock
11975 #: ../fish/guestfish-actions.pod:3083
11976 msgid "See also L</mke2journal>."
11977 msgstr "Див. також L</mke2journal>."
11978
11979 #. type: =head2
11980 #: ../fish/guestfish-actions.pod:3085
11981 msgid "mke2fs-JL"
11982 msgstr "mke2fs-JL"
11983
11984 #. type: verbatim
11985 #: ../fish/guestfish-actions.pod:3087
11986 #, no-wrap
11987 msgid ""
11988 " mke2fs-JL fstype blocksize device label\n"
11989 "\n"
11990 msgstr ""
11991
11992 #. type: textblock
11993 #: ../fish/guestfish-actions.pod:3089 ../src/guestfs-actions.pod:4657
11994 msgid ""
11995 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
11996 "the journal labeled C<label>."
11997 msgstr ""
11998
11999 #. type: textblock
12000 #: ../fish/guestfish-actions.pod:3092
12001 msgid "See also L</mke2journal-L>."
12002 msgstr "Див. також L</mke2journal-L>."
12003
12004 #. type: =head2
12005 #: ../fish/guestfish-actions.pod:3094
12006 msgid "mke2fs-JU"
12007 msgstr "mke2fs-JU"
12008
12009 #. type: verbatim
12010 #: ../fish/guestfish-actions.pod:3096
12011 #, no-wrap
12012 msgid ""
12013 " mke2fs-JU fstype blocksize device uuid\n"
12014 "\n"
12015 msgstr ""
12016
12017 #. type: textblock
12018 #: ../fish/guestfish-actions.pod:3098 ../src/guestfs-actions.pod:4675
12019 msgid ""
12020 "This creates an ext2/3/4 filesystem on C<device> with an external journal on "
12021 "the journal with UUID C<uuid>."
12022 msgstr ""
12023
12024 #. type: textblock
12025 #: ../fish/guestfish-actions.pod:3101
12026 msgid "See also L</mke2journal-U>."
12027 msgstr "Див. також L</mke2journal-U>."
12028
12029 #. type: =head2
12030 #: ../fish/guestfish-actions.pod:3103
12031 msgid "mke2journal"
12032 msgstr "mke2journal"
12033
12034 #. type: verbatim
12035 #: ../fish/guestfish-actions.pod:3105
12036 #, no-wrap
12037 msgid ""
12038 " mke2journal blocksize device\n"
12039 "\n"
12040 msgstr ""
12041
12042 #. type: textblock
12043 #: ../fish/guestfish-actions.pod:3107 ../src/guestfs-actions.pod:4691
12044 msgid ""
12045 "This creates an ext2 external journal on C<device>.  It is equivalent to the "
12046 "command:"
12047 msgstr ""
12048
12049 #. type: verbatim
12050 #: ../fish/guestfish-actions.pod:3110 ../src/guestfs-actions.pod:4694
12051 #, no-wrap
12052 msgid ""
12053 " mke2fs -O journal_dev -b blocksize device\n"
12054 "\n"
12055 msgstr ""
12056
12057 #. type: =head2
12058 #: ../fish/guestfish-actions.pod:3112
12059 msgid "mke2journal-L"
12060 msgstr "mke2journal-L"
12061
12062 #. type: verbatim
12063 #: ../fish/guestfish-actions.pod:3114
12064 #, no-wrap
12065 msgid ""
12066 " mke2journal-L blocksize label device\n"
12067 "\n"
12068 msgstr ""
12069
12070 #. type: textblock
12071 #: ../fish/guestfish-actions.pod:3116 ../src/guestfs-actions.pod:4708
12072 msgid "This creates an ext2 external journal on C<device> with label C<label>."
12073 msgstr ""
12074
12075 #. type: =head2
12076 #: ../fish/guestfish-actions.pod:3118
12077 msgid "mke2journal-U"
12078 msgstr "mke2journal-U"
12079
12080 #. type: verbatim
12081 #: ../fish/guestfish-actions.pod:3120
12082 #, no-wrap
12083 msgid ""
12084 " mke2journal-U blocksize uuid device\n"
12085 "\n"
12086 msgstr ""
12087
12088 #. type: textblock
12089 #: ../fish/guestfish-actions.pod:3122 ../src/guestfs-actions.pod:4722
12090 msgid "This creates an ext2 external journal on C<device> with UUID C<uuid>."
12091 msgstr ""
12092
12093 #. type: =head2
12094 #: ../fish/guestfish-actions.pod:3124
12095 msgid "mkfifo"
12096 msgstr "mkfifo"
12097
12098 #. type: verbatim
12099 #: ../fish/guestfish-actions.pod:3126
12100 #, no-wrap
12101 msgid ""
12102 " mkfifo mode path\n"
12103 "\n"
12104 msgstr ""
12105 " mkfifo режим шлях\n"
12106 "\n"
12107
12108 #. type: textblock
12109 #: ../fish/guestfish-actions.pod:3128
12110 msgid ""
12111 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
12112 "is just a convenient wrapper around L</mknod>."
12113 msgstr ""
12114
12115 #. type: =head2
12116 #: ../fish/guestfish-actions.pod:3134
12117 msgid "mkfs"
12118 msgstr "mkfs"
12119
12120 #. type: verbatim
12121 #: ../fish/guestfish-actions.pod:3136
12122 #, no-wrap
12123 msgid ""
12124 " mkfs fstype device\n"
12125 "\n"
12126 msgstr ""
12127 " mkfs тип_файлової_системи пристрій\n"
12128 "\n"
12129
12130 #. type: textblock
12131 #: ../fish/guestfish-actions.pod:3138 ../src/guestfs-actions.pod:4752
12132 msgid ""
12133 "This creates a filesystem on C<device> (usually a partition or LVM logical "
12134 "volume).  The filesystem type is C<fstype>, for example C<ext3>."
12135 msgstr ""
12136
12137 #. type: =head2
12138 #: ../fish/guestfish-actions.pod:3142
12139 msgid "mkfs-b"
12140 msgstr "mkfs-b"
12141
12142 #. type: verbatim
12143 #: ../fish/guestfish-actions.pod:3144
12144 #, no-wrap
12145 msgid ""
12146 " mkfs-b fstype blocksize device\n"
12147 "\n"
12148 msgstr ""
12149
12150 #. type: textblock
12151 #: ../fish/guestfish-actions.pod:3146
12152 msgid ""
12153 "This call is similar to L</mkfs>, but it allows you to control the block "
12154 "size of the resulting filesystem.  Supported block sizes depend on the "
12155 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
12156 msgstr ""
12157
12158 #. type: textblock
12159 #: ../fish/guestfish-actions.pod:3151 ../fish/guestfish-actions.pod:3178
12160 #: ../src/guestfs-actions.pod:4780 ../src/guestfs-actions.pod:4818
12161 msgid ""
12162 "For VFAT and NTFS the C<blocksize> parameter is treated as the requested "
12163 "cluster size."
12164 msgstr ""
12165
12166 #. type: textblock
12167 #: ../fish/guestfish-actions.pod:3154
12168 msgid ""
12169 "I<This function is deprecated.> In new code, use the L</mkfs_opts> call "
12170 "instead."
12171 msgstr ""
12172
12173 #. type: =head2
12174 #: ../fish/guestfish-actions.pod:3161
12175 msgid "mkfs-opts"
12176 msgstr "mkfs-opts"
12177
12178 #. type: verbatim
12179 #: ../fish/guestfish-actions.pod:3163
12180 #, no-wrap
12181 msgid ""
12182 " mkfs-opts fstype device [blocksize:..] [features:..] [inode:..] [sectorsize:..]\n"
12183 "\n"
12184 msgstr ""
12185
12186 #. type: textblock
12187 #: ../fish/guestfish-actions.pod:3165 ../src/guestfs-actions.pod:4805
12188 msgid ""
12189 "This function creates a filesystem on C<device>.  The filesystem type is "
12190 "C<fstype>, for example C<ext3>."
12191 msgstr ""
12192
12193 #. type: =item
12194 #: ../fish/guestfish-actions.pod:3172 ../src/guestfs-actions.pod:4812
12195 msgid "C<blocksize>"
12196 msgstr "C<blocksize>"
12197
12198 #. type: textblock
12199 #: ../fish/guestfish-actions.pod:3174 ../src/guestfs-actions.pod:4814
12200 msgid ""
12201 "The filesystem block size.  Supported block sizes depend on the filesystem "
12202 "type, but typically they are C<1024>, C<2048> or C<4096> for Linux ext2/3 "
12203 "filesystems."
12204 msgstr ""
12205
12206 #. type: textblock
12207 #: ../fish/guestfish-actions.pod:3181 ../src/guestfs-actions.pod:4821
12208 msgid "For UFS block sizes, please see L<mkfs.ufs(8)>."
12209 msgstr ""
12210
12211 #. type: =item
12212 #: ../fish/guestfish-actions.pod:3183 ../src/guestfs-actions.pod:4823
12213 msgid "C<features>"
12214 msgstr "C<features>"
12215
12216 #. type: textblock
12217 #: ../fish/guestfish-actions.pod:3185 ../src/guestfs-actions.pod:4825
12218 msgid "This passes the I<-O> parameter to the external mkfs program."
12219 msgstr ""
12220
12221 #. type: textblock
12222 #: ../fish/guestfish-actions.pod:3187 ../src/guestfs-actions.pod:4827
12223 msgid ""
12224 "For certain filesystem types, this allows extra filesystem features to be "
12225 "selected.  See L<mke2fs(8)> and L<mkfs.ufs(8)> for more details."
12226 msgstr ""
12227
12228 #. type: textblock
12229 #: ../fish/guestfish-actions.pod:3191 ../src/guestfs-actions.pod:4831
12230 msgid ""
12231 "You cannot use this optional parameter with the C<gfs> or C<gfs2> filesystem "
12232 "type."
12233 msgstr ""
12234
12235 #. type: =item
12236 #: ../fish/guestfish-actions.pod:3194 ../src/guestfs-actions.pod:4834
12237 msgid "C<inode>"
12238 msgstr ""
12239
12240 #. type: textblock
12241 #: ../fish/guestfish-actions.pod:3196 ../src/guestfs-actions.pod:4836
12242 msgid ""
12243 "This passes the I<-I> parameter to the external L<mke2fs(8)> program which "
12244 "sets the inode size (only for ext2/3/4 filesystems at present)."
12245 msgstr ""
12246
12247 #. type: =item
12248 #: ../fish/guestfish-actions.pod:3199 ../src/guestfs-actions.pod:4839
12249 msgid "C<sectorsize>"
12250 msgstr ""
12251
12252 #. type: textblock
12253 #: ../fish/guestfish-actions.pod:3201 ../src/guestfs-actions.pod:4841
12254 msgid ""
12255 "This passes the I<-S> parameter to external L<mkfs.ufs(8)> program, which "
12256 "sets sector size for ufs filesystem."
12257 msgstr ""
12258
12259 #. type: =head2
12260 #: ../fish/guestfish-actions.pod:3208
12261 msgid "mkmountpoint"
12262 msgstr "mkmountpoint"
12263
12264 #. type: verbatim
12265 #: ../fish/guestfish-actions.pod:3210
12266 #, no-wrap
12267 msgid ""
12268 " mkmountpoint exemptpath\n"
12269 "\n"
12270 msgstr ""
12271
12272 #. type: textblock
12273 #: ../fish/guestfish-actions.pod:3212
12274 msgid ""
12275 "L</mkmountpoint> and L</rmmountpoint> are specialized calls that can be used "
12276 "to create extra mountpoints before mounting the first filesystem."
12277 msgstr ""
12278
12279 #. type: textblock
12280 #: ../fish/guestfish-actions.pod:3216 ../src/guestfs-actions.pod:4884
12281 msgid ""
12282 "These calls are I<only> necessary in some very limited circumstances, mainly "
12283 "the case where you want to mount a mix of unrelated and/or read-only "
12284 "filesystems together."
12285 msgstr ""
12286
12287 #. type: textblock
12288 #: ../fish/guestfish-actions.pod:3220 ../src/guestfs-actions.pod:4888
12289 msgid ""
12290 "For example, live CDs often contain a \"Russian doll\" nest of filesystems, "
12291 "an ISO outer layer, with a squashfs image inside, with an ext2/3 image "
12292 "inside that.  You can unpack this as follows in guestfish:"
12293 msgstr ""
12294
12295 #. type: verbatim
12296 #: ../fish/guestfish-actions.pod:3225 ../src/guestfs-actions.pod:4893
12297 #, no-wrap
12298 msgid ""
12299 " add-ro Fedora-11-i686-Live.iso\n"
12300 " run\n"
12301 " mkmountpoint /cd\n"
12302 " mkmountpoint /sqsh\n"
12303 " mkmountpoint /ext3fs\n"
12304 " mount /dev/sda /cd\n"
12305 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
12306 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
12307 "\n"
12308 msgstr ""
12309 " add-ro Fedora-11-i686-Live.iso\n"
12310 " run\n"
12311 " mkmountpoint /cd\n"
12312 " mkmountpoint /sqsh\n"
12313 " mkmountpoint /ext3fs\n"
12314 " mount /dev/sda /cd\n"
12315 " mount-loop /cd/LiveOS/squashfs.img /sqsh\n"
12316 " mount-loop /sqsh/LiveOS/ext3fs.img /ext3fs\n"
12317 "\n"
12318
12319 #. type: textblock
12320 #: ../fish/guestfish-actions.pod:3234 ../src/guestfs-actions.pod:4902
12321 msgid "The inner filesystem is now unpacked under the /ext3fs mountpoint."
12322 msgstr ""
12323
12324 #. type: textblock
12325 #: ../fish/guestfish-actions.pod:3236
12326 msgid ""
12327 "L</mkmountpoint> is not compatible with L</umount-all>.  You may get "
12328 "unexpected errors if you try to mix these calls.  It is safest to manually "
12329 "unmount filesystems and remove mountpoints after use."
12330 msgstr ""
12331
12332 #. type: textblock
12333 #: ../fish/guestfish-actions.pod:3240
12334 msgid ""
12335 "L</umount-all> unmounts filesystems by sorting the paths longest first, so "
12336 "for this to work for manual mountpoints, you must ensure that the innermost "
12337 "mountpoints have the longest pathnames, as in the example code above."
12338 msgstr ""
12339
12340 #. type: textblock
12341 #: ../fish/guestfish-actions.pod:3245 ../src/guestfs-actions.pod:4913
12342 msgid ""
12343 "For more details see L<https://bugzilla.redhat.com/show_bug.cgi?id=599503>"
12344 msgstr ""
12345
12346 #. type: textblock
12347 #: ../fish/guestfish-actions.pod:3247
12348 msgid ""
12349 "Autosync [see L</set-autosync>, this is set by default on handles] can cause "
12350 "L</umount-all> to be called when the handle is closed which can also trigger "
12351 "these issues."
12352 msgstr ""
12353
12354 #. type: =head2
12355 #: ../fish/guestfish-actions.pod:3251
12356 msgid "mknod"
12357 msgstr "mknod"
12358
12359 #. type: verbatim
12360 #: ../fish/guestfish-actions.pod:3253
12361 #, no-wrap
12362 msgid ""
12363 " mknod mode devmajor devminor path\n"
12364 "\n"
12365 msgstr ""
12366
12367 #. type: textblock
12368 #: ../fish/guestfish-actions.pod:3255 ../src/guestfs-actions.pod:4932
12369 msgid ""
12370 "This call creates block or character special devices, or named pipes (FIFOs)."
12371 msgstr ""
12372
12373 #. type: textblock
12374 #: ../fish/guestfish-actions.pod:3258 ../src/guestfs-actions.pod:4935
12375 msgid ""
12376 "The C<mode> parameter should be the mode, using the standard constants.  "
12377 "C<devmajor> and C<devminor> are the device major and minor numbers, only "
12378 "used when creating block and character special devices."
12379 msgstr ""
12380
12381 #. type: textblock
12382 #: ../fish/guestfish-actions.pod:3263
12383 msgid ""
12384 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
12385 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
12386 "regular file).  These constants are available in the standard Linux header "
12387 "files, or you can use L</mknod-b>, L</mknod-c> or L</mkfifo> which are "
12388 "wrappers around this command which bitwise OR in the appropriate constant "
12389 "for you."
12390 msgstr ""
12391
12392 #. type: =head2
12393 #: ../fish/guestfish-actions.pod:3273
12394 msgid "mknod-b"
12395 msgstr "mknod-b"
12396
12397 #. type: verbatim
12398 #: ../fish/guestfish-actions.pod:3275
12399 #, no-wrap
12400 msgid ""
12401 " mknod-b mode devmajor devminor path\n"
12402 "\n"
12403 msgstr ""
12404
12405 #. type: textblock
12406 #: ../fish/guestfish-actions.pod:3277
12407 msgid ""
12408 "This call creates a block device node called C<path> with mode C<mode> and "
12409 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12410 "wrapper around L</mknod>."
12411 msgstr ""
12412
12413 #. type: =head2
12414 #: ../fish/guestfish-actions.pod:3283
12415 msgid "mknod-c"
12416 msgstr "mknod-c"
12417
12418 #. type: verbatim
12419 #: ../fish/guestfish-actions.pod:3285
12420 #, no-wrap
12421 msgid ""
12422 " mknod-c mode devmajor devminor path\n"
12423 "\n"
12424 msgstr ""
12425
12426 #. type: textblock
12427 #: ../fish/guestfish-actions.pod:3287
12428 msgid ""
12429 "This call creates a char device node called C<path> with mode C<mode> and "
12430 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
12431 "wrapper around L</mknod>."
12432 msgstr ""
12433
12434 #. type: =head2
12435 #: ../fish/guestfish-actions.pod:3293
12436 msgid "mkswap"
12437 msgstr "mkswap"
12438
12439 #. type: verbatim
12440 #: ../fish/guestfish-actions.pod:3295
12441 #, no-wrap
12442 msgid ""
12443 " mkswap device\n"
12444 "\n"
12445 msgstr ""
12446 " mkswap пристрій\n"
12447 "\n"
12448
12449 #. type: textblock
12450 #: ../fish/guestfish-actions.pod:3297 ../src/guestfs-actions.pod:4998
12451 msgid "Create a swap partition on C<device>."
12452 msgstr ""
12453
12454 #. type: =head2
12455 #: ../fish/guestfish-actions.pod:3299
12456 msgid "mkswap-L"
12457 msgstr "mkswap-L"
12458
12459 #. type: verbatim
12460 #: ../fish/guestfish-actions.pod:3301
12461 #, no-wrap
12462 msgid ""
12463 " mkswap-L label device\n"
12464 "\n"
12465 msgstr ""
12466 " mkswap-L мітка пристрій\n"
12467 "\n"
12468
12469 #. type: textblock
12470 #: ../fish/guestfish-actions.pod:3303 ../src/guestfs-actions.pod:5011
12471 msgid "Create a swap partition on C<device> with label C<label>."
12472 msgstr ""
12473
12474 #. type: textblock
12475 #: ../fish/guestfish-actions.pod:3305 ../src/guestfs-actions.pod:5013
12476 msgid ""
12477 "Note that you cannot attach a swap label to a block device (eg. C</dev/"
12478 "sda>), just to a partition.  This appears to be a limitation of the kernel "
12479 "or swap tools."
12480 msgstr ""
12481
12482 #. type: =head2
12483 #: ../fish/guestfish-actions.pod:3309
12484 msgid "mkswap-U"
12485 msgstr "mkswap-U"
12486
12487 #. type: verbatim
12488 #: ../fish/guestfish-actions.pod:3311
12489 #, no-wrap
12490 msgid ""
12491 " mkswap-U uuid device\n"
12492 "\n"
12493 msgstr ""
12494 " mkswap-U uuid пристрій\n"
12495 "\n"
12496
12497 #. type: textblock
12498 #: ../fish/guestfish-actions.pod:3313 ../src/guestfs-actions.pod:5028
12499 msgid "Create a swap partition on C<device> with UUID C<uuid>."
12500 msgstr ""
12501
12502 #. type: =head2
12503 #: ../fish/guestfish-actions.pod:3315
12504 msgid "mkswap-file"
12505 msgstr "mkswap-file"
12506
12507 #. type: verbatim
12508 #: ../fish/guestfish-actions.pod:3317
12509 #, no-wrap
12510 msgid ""
12511 " mkswap-file path\n"
12512 "\n"
12513 msgstr ""
12514 " mkswap-file шлях\n"
12515 "\n"
12516
12517 #. type: textblock
12518 #: ../fish/guestfish-actions.pod:3319 ../src/guestfs-actions.pod:5040
12519 msgid "Create a swap file."
12520 msgstr "Створити файл резервної пам’яті."
12521
12522 #. type: textblock
12523 #: ../fish/guestfish-actions.pod:3321
12524 msgid ""
12525 "This command just writes a swap file signature to an existing file.  To "
12526 "create the file itself, use something like L</fallocate>."
12527 msgstr ""
12528
12529 #. type: =head2
12530 #: ../fish/guestfish-actions.pod:3324
12531 msgid "modprobe"
12532 msgstr "modprobe"
12533
12534 #. type: verbatim
12535 #: ../fish/guestfish-actions.pod:3326
12536 #, no-wrap
12537 msgid ""
12538 " modprobe modulename\n"
12539 "\n"
12540 msgstr ""
12541 " modprobe назва_модуля\n"
12542 "\n"
12543
12544 #. type: textblock
12545 #: ../fish/guestfish-actions.pod:3328 ../src/guestfs-actions.pod:5055
12546 msgid "This loads a kernel module in the appliance."
12547 msgstr ""
12548
12549 #. type: textblock
12550 #: ../fish/guestfish-actions.pod:3330 ../src/guestfs-actions.pod:5057
12551 msgid ""
12552 "The kernel module must have been whitelisted when libguestfs was built (see "
12553 "C<appliance/kmod.whitelist.in> in the source)."
12554 msgstr ""
12555
12556 #. type: =head2
12557 #: ../fish/guestfish-actions.pod:3333
12558 msgid "mount"
12559 msgstr "mount"
12560
12561 #. type: verbatim
12562 #: ../fish/guestfish-actions.pod:3335
12563 #, no-wrap
12564 msgid ""
12565 " mount device mountpoint\n"
12566 "\n"
12567 msgstr ""
12568 " mount пристрій точка_монтування\n"
12569 "\n"
12570
12571 #. type: textblock
12572 #: ../fish/guestfish-actions.pod:3337 ../src/guestfs-actions.pod:5071
12573 msgid ""
12574 "Mount a guest disk at a position in the filesystem.  Block devices are named "
12575 "C</dev/sda>, C</dev/sdb> and so on, as they were added to the guest.  If "
12576 "those block devices contain partitions, they will have the usual names (eg. "
12577 "C</dev/sda1>).  Also LVM C</dev/VG/LV>-style names can be used."
12578 msgstr ""
12579
12580 #. type: textblock
12581 #: ../fish/guestfish-actions.pod:3343 ../src/guestfs-actions.pod:5077
12582 msgid ""
12583 "The rules are the same as for L<mount(2)>: A filesystem must first be "
12584 "mounted on C</> before others can be mounted.  Other filesystems can only be "
12585 "mounted on directories which already exist."
12586 msgstr ""
12587
12588 #. type: textblock
12589 #: ../fish/guestfish-actions.pod:3348 ../src/guestfs-actions.pod:5082
12590 msgid ""
12591 "The mounted filesystem is writable, if we have sufficient permissions on the "
12592 "underlying device."
12593 msgstr ""
12594
12595 #. type: textblock
12596 #: ../fish/guestfish-actions.pod:3351
12597 msgid ""
12598 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
12599 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
12600 "problems for users.  If your program might need to work with older versions "
12601 "of libguestfs, use L</mount-options> instead (using an empty string for the "
12602 "first parameter if you don't want any options)."
12603 msgstr ""
12604
12605 #. type: =head2
12606 #: ../fish/guestfish-actions.pod:3358
12607 msgid "mount-9p"
12608 msgstr ""
12609
12610 #. type: verbatim
12611 #: ../fish/guestfish-actions.pod:3360
12612 #, no-wrap
12613 msgid ""
12614 " mount-9p mounttag mountpoint [options:..]\n"
12615 "\n"
12616 msgstr ""
12617
12618 #. type: textblock
12619 #: ../fish/guestfish-actions.pod:3362 ../src/guestfs-actions.pod:5111
12620 msgid ""
12621 "Mount the virtio-9p filesystem with the tag C<mounttag> on the directory "
12622 "C<mountpoint>."
12623 msgstr ""
12624
12625 #. type: textblock
12626 #: ../fish/guestfish-actions.pod:3365 ../src/guestfs-actions.pod:5114
12627 msgid ""
12628 "If required, C<trans=virtio> will be automatically added to the options.  "
12629 "Any other options required can be passed in the optional C<options> "
12630 "parameter."
12631 msgstr ""
12632
12633 #. type: =head2
12634 #: ../fish/guestfish-actions.pod:3371
12635 msgid "mount-loop"
12636 msgstr "mount-loop"
12637
12638 #. type: verbatim
12639 #: ../fish/guestfish-actions.pod:3373
12640 #, no-wrap
12641 msgid ""
12642 " mount-loop file mountpoint\n"
12643 "\n"
12644 msgstr ""
12645
12646 #. type: textblock
12647 #: ../fish/guestfish-actions.pod:3375 ../src/guestfs-actions.pod:5153
12648 msgid ""
12649 "This command lets you mount C<file> (a filesystem image in a file) on a "
12650 "mount point.  It is entirely equivalent to the command C<mount -o loop file "
12651 "mountpoint>."
12652 msgstr ""
12653
12654 #. type: =head2
12655 #: ../fish/guestfish-actions.pod:3379
12656 msgid "mount-options"
12657 msgstr "mount-options"
12658
12659 #. type: verbatim
12660 #: ../fish/guestfish-actions.pod:3381
12661 #, no-wrap
12662 msgid ""
12663 " mount-options options device mountpoint\n"
12664 "\n"
12665 msgstr ""
12666
12667 #. type: textblock
12668 #: ../fish/guestfish-actions.pod:3383
12669 msgid ""
12670 "This is the same as the L</mount> command, but it allows you to set the "
12671 "mount options as for the L<mount(8)> I<-o> flag."
12672 msgstr ""
12673
12674 #. type: textblock
12675 #: ../fish/guestfish-actions.pod:3387 ../src/guestfs-actions.pod:5173
12676 msgid ""
12677 "If the C<options> parameter is an empty string, then no options are passed "
12678 "(all options default to whatever the filesystem uses)."
12679 msgstr ""
12680
12681 #. type: =head2
12682 #: ../fish/guestfish-actions.pod:3391
12683 msgid "mount-ro"
12684 msgstr "mount-ro"
12685
12686 #. type: verbatim
12687 #: ../fish/guestfish-actions.pod:3393
12688 #, no-wrap
12689 msgid ""
12690 " mount-ro device mountpoint\n"
12691 "\n"
12692 msgstr ""
12693 " mount-ro пристрій точка_монтування\n"
12694 "\n"
12695
12696 #. type: textblock
12697 #: ../fish/guestfish-actions.pod:3395
12698 msgid ""
12699 "This is the same as the L</mount> command, but it mounts the filesystem with "
12700 "the read-only (I<-o ro>) flag."
12701 msgstr ""
12702
12703 #. type: =head2
12704 #: ../fish/guestfish-actions.pod:3398
12705 msgid "mount-vfs"
12706 msgstr "mount-vfs"
12707
12708 #. type: verbatim
12709 #: ../fish/guestfish-actions.pod:3400
12710 #, no-wrap
12711 msgid ""
12712 " mount-vfs options vfstype device mountpoint\n"
12713 "\n"
12714 msgstr ""
12715
12716 #. type: textblock
12717 #: ../fish/guestfish-actions.pod:3402
12718 msgid ""
12719 "This is the same as the L</mount> command, but it allows you to set both the "
12720 "mount options and the vfstype as for the L<mount(8)> I<-o> and I<-t> flags."
12721 msgstr ""
12722
12723 #. type: =head2
12724 #: ../fish/guestfish-actions.pod:3406
12725 msgid "mountpoints"
12726 msgstr "mountpoints"
12727
12728 #. type: verbatim
12729 #: ../fish/guestfish-actions.pod:3408
12730 #, no-wrap
12731 msgid ""
12732 " mountpoints\n"
12733 "\n"
12734 msgstr ""
12735 " mountpoints\n"
12736 "\n"
12737
12738 #. type: textblock
12739 #: ../fish/guestfish-actions.pod:3410
12740 msgid ""
12741 "This call is similar to L</mounts>.  That call returns a list of devices.  "
12742 "This one returns a hash table (map) of device name to directory where the "
12743 "device is mounted."
12744 msgstr ""
12745
12746 #. type: =head2
12747 #: ../fish/guestfish-actions.pod:3414
12748 msgid "mounts"
12749 msgstr "mounts"
12750
12751 #. type: verbatim
12752 #: ../fish/guestfish-actions.pod:3416
12753 #, no-wrap
12754 msgid ""
12755 " mounts\n"
12756 "\n"
12757 msgstr ""
12758 " mounts\n"
12759 "\n"
12760
12761 #. type: textblock
12762 #: ../fish/guestfish-actions.pod:3418 ../src/guestfs-actions.pod:5234
12763 msgid ""
12764 "This returns the list of currently mounted filesystems.  It returns the list "
12765 "of devices (eg. C</dev/sda1>, C</dev/VG/LV>)."
12766 msgstr ""
12767
12768 #. type: textblock
12769 #: ../fish/guestfish-actions.pod:3421 ../src/guestfs-actions.pod:5237
12770 msgid "Some internal mounts are not shown."
12771 msgstr ""
12772
12773 #. type: textblock
12774 #: ../fish/guestfish-actions.pod:3423
12775 msgid "See also: L</mountpoints>"
12776 msgstr "Див. також L</mountpoints>"
12777
12778 #. type: =head2
12779 #: ../fish/guestfish-actions.pod:3425
12780 msgid "mv"
12781 msgstr "mv"
12782
12783 #. type: verbatim
12784 #: ../fish/guestfish-actions.pod:3427
12785 #, no-wrap
12786 msgid ""
12787 " mv src dest\n"
12788 "\n"
12789 msgstr ""
12790 " mv джерело призначення\n"
12791 "\n"
12792
12793 #. type: textblock
12794 #: ../fish/guestfish-actions.pod:3429 ../src/guestfs-actions.pod:5254
12795 msgid ""
12796 "This moves a file from C<src> to C<dest> where C<dest> is either a "
12797 "destination filename or destination directory."
12798 msgstr ""
12799
12800 #. type: =head2
12801 #: ../fish/guestfish-actions.pod:3432
12802 msgid "ntfs-3g-probe"
12803 msgstr "ntfs-3g-probe"
12804
12805 #. type: verbatim
12806 #: ../fish/guestfish-actions.pod:3434
12807 #, no-wrap
12808 msgid ""
12809 " ntfs-3g-probe true|false device\n"
12810 "\n"
12811 msgstr ""
12812
12813 #. type: textblock
12814 #: ../fish/guestfish-actions.pod:3436 ../src/guestfs-actions.pod:5268
12815 msgid ""
12816 "This command runs the L<ntfs-3g.probe(8)> command which probes an NTFS "
12817 "C<device> for mountability.  (Not all NTFS volumes can be mounted read-"
12818 "write, and some cannot be mounted at all)."
12819 msgstr ""
12820
12821 #. type: textblock
12822 #: ../fish/guestfish-actions.pod:3440 ../src/guestfs-actions.pod:5272
12823 msgid ""
12824 "C<rw> is a boolean flag.  Set it to true if you want to test if the volume "
12825 "can be mounted read-write.  Set it to false if you want to test if the "
12826 "volume can be mounted read-only."
12827 msgstr ""
12828
12829 #. type: textblock
12830 #: ../fish/guestfish-actions.pod:3444 ../src/guestfs-actions.pod:5276
12831 msgid ""
12832 "The return value is an integer which C<0> if the operation would succeed, or "
12833 "some non-zero value documented in the L<ntfs-3g.probe(8)> manual page."
12834 msgstr ""
12835
12836 #. type: =head2
12837 #: ../fish/guestfish-actions.pod:3448
12838 msgid "ntfsresize"
12839 msgstr "ntfsresize"
12840
12841 #. type: verbatim
12842 #: ../fish/guestfish-actions.pod:3450
12843 #, no-wrap
12844 msgid ""
12845 " ntfsresize device\n"
12846 "\n"
12847 msgstr ""
12848 " ntfsresize пристрій\n"
12849 "\n"
12850
12851 #. type: textblock
12852 #: ../fish/guestfish-actions.pod:3452 ../fish/guestfish-actions.pod:3476
12853 #: ../src/guestfs-actions.pod:5297 ../src/guestfs-actions.pod:5329
12854 msgid ""
12855 "This command resizes an NTFS filesystem, expanding or shrinking it to the "
12856 "size of the underlying device."
12857 msgstr ""
12858
12859 #. type: textblock
12860 #: ../fish/guestfish-actions.pod:3455 ../src/guestfs-actions.pod:5300
12861 msgid ""
12862 "I<Note:> After the resize operation, the filesystem is marked as requiring a "
12863 "consistency check (for safety).  You have to boot into Windows to perform "
12864 "this check and clear this condition.  Furthermore, ntfsresize refuses to "
12865 "resize filesystems which have been marked in this way.  So in effect it is "
12866 "not possible to call ntfsresize multiple times on a single filesystem "
12867 "without booting into Windows between each resize."
12868 msgstr ""
12869
12870 #. type: textblock
12871 #: ../fish/guestfish-actions.pod:3463 ../fish/guestfish-actions.pod:3502
12872 #: ../src/guestfs-actions.pod:5308 ../src/guestfs-actions.pod:5355
12873 msgid "See also L<ntfsresize(8)>."
12874 msgstr ""
12875
12876 #. type: textblock
12877 #: ../fish/guestfish-actions.pod:3465 ../fish/guestfish-actions.pod:3513
12878 msgid ""
12879 "I<This function is deprecated.> In new code, use the L</ntfsresize_opts> "
12880 "call instead."
12881 msgstr ""
12882
12883 #. type: =head2
12884 #: ../fish/guestfish-actions.pod:3472
12885 msgid "ntfsresize-opts"
12886 msgstr ""
12887
12888 #. type: verbatim
12889 #: ../fish/guestfish-actions.pod:3474
12890 #, no-wrap
12891 msgid ""
12892 " ntfsresize-opts device [size:..] [force:..]\n"
12893 "\n"
12894 msgstr ""
12895
12896 #. type: textblock
12897 #: ../fish/guestfish-actions.pod:3485 ../src/guestfs-actions.pod:5338
12898 msgid ""
12899 "The new size (in bytes) of the filesystem.  If omitted, the filesystem is "
12900 "resized to fit the container (eg. partition)."
12901 msgstr ""
12902
12903 #. type: =item
12904 #: ../fish/guestfish-actions.pod:3488 ../src/guestfs-actions.pod:5341
12905 msgid "C<force>"
12906 msgstr ""
12907
12908 #. type: textblock
12909 #: ../fish/guestfish-actions.pod:3490 ../src/guestfs-actions.pod:5343
12910 msgid ""
12911 "If this option is true, then force the resize of the filesystem even if the "
12912 "filesystem is marked as requiring a consistency check."
12913 msgstr ""
12914
12915 #. type: textblock
12916 #: ../fish/guestfish-actions.pod:3493
12917 msgid ""
12918 "After the resize operation, the filesystem is always marked as requiring a "
12919 "consistency check (for safety).  You have to boot into Windows to perform "
12920 "this check and clear this condition.  If you I<don't> set the C<force> "
12921 "option then it is not possible to call L</ntfsresize-opts> multiple times on "
12922 "a single filesystem without booting into Windows between each resize."
12923 msgstr ""
12924
12925 #. type: =head2
12926 #: ../fish/guestfish-actions.pod:3506
12927 msgid "ntfsresize-size"
12928 msgstr "ntfsresize-size"
12929
12930 #. type: verbatim
12931 #: ../fish/guestfish-actions.pod:3508
12932 #, no-wrap
12933 msgid ""
12934 " ntfsresize-size device size\n"
12935 "\n"
12936 msgstr ""
12937
12938 #. type: textblock
12939 #: ../fish/guestfish-actions.pod:3510
12940 msgid ""
12941 "This command is the same as L</ntfsresize> except that it allows you to "
12942 "specify the new size (in bytes) explicitly."
12943 msgstr ""
12944
12945 #. type: =head2
12946 #: ../fish/guestfish-actions.pod:3520
12947 msgid "part-add"
12948 msgstr "part-add"
12949
12950 #. type: verbatim
12951 #: ../fish/guestfish-actions.pod:3522
12952 #, no-wrap
12953 msgid ""
12954 " part-add device prlogex startsect endsect\n"
12955 "\n"
12956 msgstr ""
12957
12958 #. type: textblock
12959 #: ../fish/guestfish-actions.pod:3524
12960 msgid ""
12961 "This command adds a partition to C<device>.  If there is no partition table "
12962 "on the device, call L</part-init> first."
12963 msgstr ""
12964
12965 #. type: textblock
12966 #: ../fish/guestfish-actions.pod:3527 ../src/guestfs-actions.pod:5416
12967 msgid ""
12968 "The C<prlogex> parameter is the type of partition.  Normally you should pass "
12969 "C<p> or C<primary> here, but MBR partition tables also support C<l> (or "
12970 "C<logical>) and C<e> (or C<extended>) partition types."
12971 msgstr ""
12972
12973 #. type: textblock
12974 #: ../fish/guestfish-actions.pod:3532 ../src/guestfs-actions.pod:5421
12975 msgid ""
12976 "C<startsect> and C<endsect> are the start and end of the partition in "
12977 "I<sectors>.  C<endsect> may be negative, which means it counts backwards "
12978 "from the end of the disk (C<-1> is the last sector)."
12979 msgstr ""
12980
12981 #. type: textblock
12982 #: ../fish/guestfish-actions.pod:3536
12983 msgid ""
12984 "Creating a partition which covers the whole disk is not so easy.  Use L</"
12985 "part-disk> to do that."
12986 msgstr ""
12987
12988 #. type: =head2
12989 #: ../fish/guestfish-actions.pod:3539
12990 msgid "part-del"
12991 msgstr "part-del"
12992
12993 #. type: verbatim
12994 #: ../fish/guestfish-actions.pod:3541
12995 #, no-wrap
12996 msgid ""
12997 " part-del device partnum\n"
12998 "\n"
12999 msgstr ""
13000
13001 #. type: textblock
13002 #: ../fish/guestfish-actions.pod:3543 ../src/guestfs-actions.pod:5439
13003 msgid "This command deletes the partition numbered C<partnum> on C<device>."
13004 msgstr ""
13005
13006 #. type: textblock
13007 #: ../fish/guestfish-actions.pod:3545 ../src/guestfs-actions.pod:5441
13008 msgid ""
13009 "Note that in the case of MBR partitioning, deleting an extended partition "
13010 "also deletes any logical partitions it contains."
13011 msgstr ""
13012
13013 #. type: =head2
13014 #: ../fish/guestfish-actions.pod:3549
13015 msgid "part-disk"
13016 msgstr "part-disk"
13017
13018 #. type: verbatim
13019 #: ../fish/guestfish-actions.pod:3551
13020 #, no-wrap
13021 msgid ""
13022 " part-disk device parttype\n"
13023 "\n"
13024 msgstr ""
13025 " part-disk пристрій тип_розділу\n"
13026 "\n"
13027
13028 #. type: textblock
13029 #: ../fish/guestfish-actions.pod:3553
13030 msgid ""
13031 "This command is simply a combination of L</part-init> followed by L</part-"
13032 "add> to create a single primary partition covering the whole disk."
13033 msgstr ""
13034
13035 #. type: textblock
13036 #: ../fish/guestfish-actions.pod:3557
13037 msgid ""
13038 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
13039 "possible values are described in L</part-init>."
13040 msgstr ""
13041
13042 #. type: =head2
13043 #: ../fish/guestfish-actions.pod:3563
13044 msgid "part-get-bootable"
13045 msgstr "part-get-bootable"
13046
13047 #. type: verbatim
13048 #: ../fish/guestfish-actions.pod:3565
13049 #, no-wrap
13050 msgid ""
13051 " part-get-bootable device partnum\n"
13052 "\n"
13053 msgstr ""
13054
13055 #. type: textblock
13056 #: ../fish/guestfish-actions.pod:3567 ../src/guestfs-actions.pod:5477
13057 msgid ""
13058 "This command returns true if the partition C<partnum> on C<device> has the "
13059 "bootable flag set."
13060 msgstr ""
13061
13062 #. type: textblock
13063 #: ../fish/guestfish-actions.pod:3570
13064 msgid "See also L</part-set-bootable>."
13065 msgstr "Див. також L</part-set-bootable>."
13066
13067 #. type: =head2
13068 #: ../fish/guestfish-actions.pod:3572
13069 msgid "part-get-mbr-id"
13070 msgstr "part-get-mbr-id"
13071
13072 #. type: verbatim
13073 #: ../fish/guestfish-actions.pod:3574
13074 #, no-wrap
13075 msgid ""
13076 " part-get-mbr-id device partnum\n"
13077 "\n"
13078 msgstr ""
13079
13080 #. type: textblock
13081 #: ../fish/guestfish-actions.pod:3576 ../src/guestfs-actions.pod:5493
13082 msgid ""
13083 "Returns the MBR type byte (also known as the ID byte) from the numbered "
13084 "partition C<partnum>."
13085 msgstr ""
13086
13087 #. type: textblock
13088 #: ../fish/guestfish-actions.pod:3579 ../fish/guestfish-actions.pod:3723
13089 msgid ""
13090 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
13091 "undefined results for other partition table types (see L</part-get-"
13092 "parttype>)."
13093 msgstr ""
13094
13095 #. type: =head2
13096 #: ../fish/guestfish-actions.pod:3583
13097 msgid "part-get-parttype"
13098 msgstr "part-get-parttype"
13099
13100 #. type: verbatim
13101 #: ../fish/guestfish-actions.pod:3585
13102 #, no-wrap
13103 msgid ""
13104 " part-get-parttype device\n"
13105 "\n"
13106 msgstr ""
13107 " part-get-parttype пристрій\n"
13108 "\n"
13109
13110 #. type: textblock
13111 #: ../fish/guestfish-actions.pod:3587 ../src/guestfs-actions.pod:5510
13112 msgid ""
13113 "This command examines the partition table on C<device> and returns the "
13114 "partition table type (format) being used."
13115 msgstr ""
13116
13117 #. type: textblock
13118 #: ../fish/guestfish-actions.pod:3590
13119 msgid ""
13120 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
13121 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
13122 "possible, although unusual.  See L</part-init> for a full list."
13123 msgstr ""
13124
13125 #. type: =head2
13126 #: ../fish/guestfish-actions.pod:3595
13127 msgid "part-init"
13128 msgstr "part-init"
13129
13130 #. type: verbatim
13131 #: ../fish/guestfish-actions.pod:3597
13132 #, no-wrap
13133 msgid ""
13134 " part-init device parttype\n"
13135 "\n"
13136 msgstr ""
13137
13138 #. type: textblock
13139 #: ../fish/guestfish-actions.pod:3599 ../src/guestfs-actions.pod:5530
13140 msgid ""
13141 "This creates an empty partition table on C<device> of one of the partition "
13142 "types listed below.  Usually C<parttype> should be either C<msdos> or C<gpt> "
13143 "(for large disks)."
13144 msgstr ""
13145
13146 #. type: textblock
13147 #: ../fish/guestfish-actions.pod:3603
13148 msgid ""
13149 "Initially there are no partitions.  Following this, you should call L</part-"
13150 "add> for each partition required."
13151 msgstr ""
13152
13153 #. type: textblock
13154 #: ../fish/guestfish-actions.pod:3606 ../src/guestfs-actions.pod:5537
13155 msgid "Possible values for C<parttype> are:"
13156 msgstr ""
13157
13158 #. type: =item
13159 #: ../fish/guestfish-actions.pod:3610 ../src/guestfs-actions.pod:5541
13160 msgid "B<efi>"
13161 msgstr ""
13162
13163 #. type: =item
13164 #: ../fish/guestfish-actions.pod:3612 ../src/guestfs-actions.pod:5543
13165 msgid "B<gpt>"
13166 msgstr ""
13167
13168 #. type: textblock
13169 #: ../fish/guestfish-actions.pod:3614 ../src/guestfs-actions.pod:5545
13170 msgid "Intel EFI / GPT partition table."
13171 msgstr ""
13172
13173 #. type: textblock
13174 #: ../fish/guestfish-actions.pod:3616 ../src/guestfs-actions.pod:5547
13175 msgid ""
13176 "This is recommended for >= 2 TB partitions that will be accessed from Linux "
13177 "and Intel-based Mac OS X.  It also has limited backwards compatibility with "
13178 "the C<mbr> format."
13179 msgstr ""
13180
13181 #. type: =item
13182 #: ../fish/guestfish-actions.pod:3620 ../src/guestfs-actions.pod:5551
13183 msgid "B<mbr>"
13184 msgstr ""
13185
13186 #. type: =item
13187 #: ../fish/guestfish-actions.pod:3622 ../src/guestfs-actions.pod:5553
13188 msgid "B<msdos>"
13189 msgstr ""
13190
13191 #. type: textblock
13192 #: ../fish/guestfish-actions.pod:3624 ../src/guestfs-actions.pod:5555
13193 msgid ""
13194 "The standard PC \"Master Boot Record\" (MBR) format used by MS-DOS and "
13195 "Windows.  This partition type will B<only> work for device sizes up to 2 "
13196 "TB.  For large disks we recommend using C<gpt>."
13197 msgstr ""
13198
13199 #. type: textblock
13200 #: ../fish/guestfish-actions.pod:3631 ../src/guestfs-actions.pod:5562
13201 msgid ""
13202 "Other partition table types that may work but are not supported include:"
13203 msgstr ""
13204
13205 #. type: =item
13206 #: ../fish/guestfish-actions.pod:3636 ../src/guestfs-actions.pod:5567
13207 msgid "B<aix>"
13208 msgstr "B<aix>"
13209
13210 #. type: textblock
13211 #: ../fish/guestfish-actions.pod:3638 ../src/guestfs-actions.pod:5569
13212 msgid "AIX disk labels."
13213 msgstr "Мітки дисків AIX."
13214
13215 #. type: =item
13216 #: ../fish/guestfish-actions.pod:3640 ../src/guestfs-actions.pod:5571
13217 #, fuzzy
13218 #| msgid "B<amiga> | B<rdb>"
13219 msgid "B<amiga>"
13220 msgstr "B<amiga> | B<rdb>"
13221
13222 #. type: =item
13223 #: ../fish/guestfish-actions.pod:3642 ../src/guestfs-actions.pod:5573
13224 msgid "B<rdb>"
13225 msgstr ""
13226
13227 #. type: textblock
13228 #: ../fish/guestfish-actions.pod:3644 ../src/guestfs-actions.pod:5575
13229 msgid "Amiga \"Rigid Disk Block\" format."
13230 msgstr "Формат \"Rigid Disk Block\" Amiga."
13231
13232 #. type: =item
13233 #: ../fish/guestfish-actions.pod:3646 ../src/guestfs-actions.pod:5577
13234 msgid "B<bsd>"
13235 msgstr "B<bsd>"
13236
13237 #. type: textblock
13238 #: ../fish/guestfish-actions.pod:3648 ../src/guestfs-actions.pod:5579
13239 msgid "BSD disk labels."
13240 msgstr "Мітки дисків BSD."
13241
13242 #. type: =item
13243 #: ../fish/guestfish-actions.pod:3650 ../src/guestfs-actions.pod:5581
13244 msgid "B<dasd>"
13245 msgstr "B<dasd>"
13246
13247 #. type: textblock
13248 #: ../fish/guestfish-actions.pod:3652 ../src/guestfs-actions.pod:5583
13249 msgid "DASD, used on IBM mainframes."
13250 msgstr "DASD, використовувалися у мейнфреймах IBM."
13251
13252 #. type: =item
13253 #: ../fish/guestfish-actions.pod:3654 ../src/guestfs-actions.pod:5585
13254 msgid "B<dvh>"
13255 msgstr "B<dvh>"
13256
13257 #. type: textblock
13258 #: ../fish/guestfish-actions.pod:3656 ../src/guestfs-actions.pod:5587
13259 msgid "MIPS/SGI volumes."
13260 msgstr "Томи MIPS/SGI."
13261
13262 #. type: =item
13263 #: ../fish/guestfish-actions.pod:3658 ../src/guestfs-actions.pod:5589
13264 msgid "B<mac>"
13265 msgstr "B<mac>"
13266
13267 #. type: textblock
13268 #: ../fish/guestfish-actions.pod:3660 ../src/guestfs-actions.pod:5591
13269 msgid "Old Mac partition format.  Modern Macs use C<gpt>."
13270 msgstr "Старий формат розділів Mac. Сучасні системи Mac використовують C<gpt>."
13271
13272 #. type: =item
13273 #: ../fish/guestfish-actions.pod:3662 ../src/guestfs-actions.pod:5593
13274 msgid "B<pc98>"
13275 msgstr "B<pc98>"
13276
13277 #. type: textblock
13278 #: ../fish/guestfish-actions.pod:3664 ../src/guestfs-actions.pod:5595
13279 msgid "NEC PC-98 format, common in Japan apparently."
13280 msgstr "Формат NEC PC-98, поширений у Японії."
13281
13282 #. type: =item
13283 #: ../fish/guestfish-actions.pod:3666 ../src/guestfs-actions.pod:5597
13284 msgid "B<sun>"
13285 msgstr "B<sun>"
13286
13287 #. type: textblock
13288 #: ../fish/guestfish-actions.pod:3668 ../src/guestfs-actions.pod:5599
13289 msgid "Sun disk labels."
13290 msgstr "Мітки дисків Sun."
13291
13292 #. type: =head2
13293 #: ../fish/guestfish-actions.pod:3672
13294 msgid "part-list"
13295 msgstr "part-list"
13296
13297 #. type: verbatim
13298 #: ../fish/guestfish-actions.pod:3674
13299 #, no-wrap
13300 msgid ""
13301 " part-list device\n"
13302 "\n"
13303 msgstr ""
13304 " part-list device\n"
13305 "\n"
13306
13307 #. type: textblock
13308 #: ../fish/guestfish-actions.pod:3676 ../src/guestfs-actions.pod:5613
13309 msgid ""
13310 "This command parses the partition table on C<device> and returns the list of "
13311 "partitions found."
13312 msgstr ""
13313
13314 #. type: textblock
13315 #: ../fish/guestfish-actions.pod:3679 ../src/guestfs-actions.pod:5616
13316 msgid "The fields in the returned structure are:"
13317 msgstr ""
13318
13319 #. type: =item
13320 #: ../fish/guestfish-actions.pod:3683 ../src/guestfs-actions.pod:5620
13321 msgid "B<part_num>"
13322 msgstr "B<part_num>"
13323
13324 #. type: textblock
13325 #: ../fish/guestfish-actions.pod:3685 ../src/guestfs-actions.pod:5622
13326 msgid "Partition number, counting from 1."
13327 msgstr ""
13328
13329 #. type: =item
13330 #: ../fish/guestfish-actions.pod:3687 ../src/guestfs-actions.pod:5624
13331 msgid "B<part_start>"
13332 msgstr "B<part_start>"
13333
13334 #. type: textblock
13335 #: ../fish/guestfish-actions.pod:3689
13336 msgid ""
13337 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
13338 "the device's sector size, see L</blockdev-getss>."
13339 msgstr ""
13340
13341 #. type: =item
13342 #: ../fish/guestfish-actions.pod:3692 ../src/guestfs-actions.pod:5629
13343 msgid "B<part_end>"
13344 msgstr "B<part_end>"
13345
13346 #. type: textblock
13347 #: ../fish/guestfish-actions.pod:3694 ../src/guestfs-actions.pod:5631
13348 msgid "End of the partition in bytes."
13349 msgstr ""
13350
13351 #. type: =item
13352 #: ../fish/guestfish-actions.pod:3696 ../src/guestfs-actions.pod:5633
13353 msgid "B<part_size>"
13354 msgstr "B<part_size>"
13355
13356 #. type: textblock
13357 #: ../fish/guestfish-actions.pod:3698 ../src/guestfs-actions.pod:5635
13358 msgid "Size of the partition in bytes."
13359 msgstr ""
13360
13361 #. type: =head2
13362 #: ../fish/guestfish-actions.pod:3702
13363 msgid "part-set-bootable"
13364 msgstr "part-set-bootable"
13365
13366 #. type: verbatim
13367 #: ../fish/guestfish-actions.pod:3704
13368 #, no-wrap
13369 msgid ""
13370 " part-set-bootable device partnum true|false\n"
13371 "\n"
13372 msgstr ""
13373
13374 #. type: textblock
13375 #: ../fish/guestfish-actions.pod:3706 ../src/guestfs-actions.pod:5653
13376 msgid ""
13377 "This sets the bootable flag on partition numbered C<partnum> on device "
13378 "C<device>.  Note that partitions are numbered from 1."
13379 msgstr ""
13380
13381 #. type: textblock
13382 #: ../fish/guestfish-actions.pod:3709 ../src/guestfs-actions.pod:5656
13383 msgid ""
13384 "The bootable flag is used by some operating systems (notably Windows) to "
13385 "determine which partition to boot from.  It is by no means universally "
13386 "recognized."
13387 msgstr ""
13388
13389 #. type: =head2
13390 #: ../fish/guestfish-actions.pod:3713
13391 msgid "part-set-mbr-id"
13392 msgstr "part-set-mbr-id"
13393
13394 #. type: verbatim
13395 #: ../fish/guestfish-actions.pod:3715
13396 #, no-wrap
13397 msgid ""
13398 " part-set-mbr-id device partnum idbyte\n"
13399 "\n"
13400 msgstr ""
13401
13402 #. type: textblock
13403 #: ../fish/guestfish-actions.pod:3717 ../src/guestfs-actions.pod:5672
13404 msgid ""
13405 "Sets the MBR type byte (also known as the ID byte) of the numbered partition "
13406 "C<partnum> to C<idbyte>.  Note that the type bytes quoted in most "
13407 "documentation are in fact hexadecimal numbers, but usually documented "
13408 "without any leading \"0x\" which might be confusing."
13409 msgstr ""
13410
13411 #. type: =head2
13412 #: ../fish/guestfish-actions.pod:3727
13413 msgid "part-set-name"
13414 msgstr "part-set-name"
13415
13416 #. type: verbatim
13417 #: ../fish/guestfish-actions.pod:3729
13418 #, no-wrap
13419 msgid ""
13420 " part-set-name device partnum name\n"
13421 "\n"
13422 msgstr ""
13423
13424 #. type: textblock
13425 #: ../fish/guestfish-actions.pod:3731 ../src/guestfs-actions.pod:5694
13426 msgid ""
13427 "This sets the partition name on partition numbered C<partnum> on device "
13428 "C<device>.  Note that partitions are numbered from 1."
13429 msgstr ""
13430
13431 #. type: textblock
13432 #: ../fish/guestfish-actions.pod:3734 ../src/guestfs-actions.pod:5697
13433 msgid ""
13434 "The partition name can only be set on certain types of partition table.  "
13435 "This works on C<gpt> but not on C<mbr> partitions."
13436 msgstr ""
13437
13438 #. type: =head2
13439 #: ../fish/guestfish-actions.pod:3737
13440 msgid "part-to-dev"
13441 msgstr "part-to-dev"
13442
13443 #. type: verbatim
13444 #: ../fish/guestfish-actions.pod:3739
13445 #, no-wrap
13446 msgid ""
13447 " part-to-dev partition\n"
13448 "\n"
13449 msgstr ""
13450 " part-to-dev розділ\n"
13451 "\n"
13452
13453 #. type: textblock
13454 #: ../fish/guestfish-actions.pod:3741 ../src/guestfs-actions.pod:5710
13455 msgid ""
13456 "This function takes a partition name (eg. \"/dev/sdb1\") and removes the "
13457 "partition number, returning the device name (eg. \"/dev/sdb\")."
13458 msgstr ""
13459
13460 #. type: textblock
13461 #: ../fish/guestfish-actions.pod:3745
13462 msgid ""
13463 "The named partition must exist, for example as a string returned from L</"
13464 "list-partitions>."
13465 msgstr ""
13466
13467 #. type: =head2
13468 #: ../fish/guestfish-actions.pod:3748
13469 msgid "ping-daemon"
13470 msgstr "ping-daemon"
13471
13472 #. type: verbatim
13473 #: ../fish/guestfish-actions.pod:3750
13474 #, no-wrap
13475 msgid ""
13476 " ping-daemon\n"
13477 "\n"
13478 msgstr ""
13479 " ping-daemon\n"
13480 "\n"
13481
13482 #. type: textblock
13483 #: ../fish/guestfish-actions.pod:3752 ../src/guestfs-actions.pod:5727
13484 msgid ""
13485 "This is a test probe into the guestfs daemon running inside the qemu "
13486 "subprocess.  Calling this function checks that the daemon responds to the "
13487 "ping message, without affecting the daemon or attached block device(s) in "
13488 "any other way."
13489 msgstr ""
13490
13491 #. type: =head2
13492 #: ../fish/guestfish-actions.pod:3757
13493 msgid "pread"
13494 msgstr "pread"
13495
13496 #. type: verbatim
13497 #: ../fish/guestfish-actions.pod:3759
13498 #, no-wrap
13499 msgid ""
13500 " pread path count offset\n"
13501 "\n"
13502 msgstr ""
13503
13504 #. type: textblock
13505 #: ../fish/guestfish-actions.pod:3761 ../src/guestfs-actions.pod:5745
13506 msgid ""
13507 "This command lets you read part of a file.  It reads C<count> bytes of the "
13508 "file, starting at C<offset>, from file C<path>."
13509 msgstr ""
13510
13511 #. type: textblock
13512 #: ../fish/guestfish-actions.pod:3764 ../fish/guestfish-actions.pod:3779
13513 #: ../src/guestfs-actions.pod:5748 ../src/guestfs-actions.pod:5774
13514 msgid ""
13515 "This may read fewer bytes than requested.  For further details see the "
13516 "L<pread(2)> system call."
13517 msgstr ""
13518
13519 #. type: textblock
13520 #: ../fish/guestfish-actions.pod:3767
13521 msgid "See also L</pwrite>, L</pread-device>."
13522 msgstr "Див. також L</pwrite>, L</pread-device>."
13523
13524 #. type: =head2
13525 #: ../fish/guestfish-actions.pod:3772
13526 msgid "pread-device"
13527 msgstr "pread-device"
13528
13529 #. type: verbatim
13530 #: ../fish/guestfish-actions.pod:3774
13531 #, no-wrap
13532 msgid ""
13533 " pread-device device count offset\n"
13534 "\n"
13535 msgstr ""
13536
13537 #. type: textblock
13538 #: ../fish/guestfish-actions.pod:3776 ../src/guestfs-actions.pod:5771
13539 msgid ""
13540 "This command lets you read part of a file.  It reads C<count> bytes of "
13541 "C<device>, starting at C<offset>."
13542 msgstr ""
13543
13544 #. type: textblock
13545 #: ../fish/guestfish-actions.pod:3782
13546 msgid "See also L</pread>."
13547 msgstr "Див. також L</pread>."
13548
13549 #. type: =head2
13550 #: ../fish/guestfish-actions.pod:3787
13551 msgid "pvcreate"
13552 msgstr "pvcreate"
13553
13554 #. type: verbatim
13555 #: ../fish/guestfish-actions.pod:3789
13556 #, no-wrap
13557 msgid ""
13558 " pvcreate device\n"
13559 "\n"
13560 msgstr ""
13561 " pvcreate пристрій\n"
13562 "\n"
13563
13564 #. type: textblock
13565 #: ../fish/guestfish-actions.pod:3791 ../src/guestfs-actions.pod:5794
13566 msgid ""
13567 "This creates an LVM physical volume on the named C<device>, where C<device> "
13568 "should usually be a partition name such as C</dev/sda1>."
13569 msgstr ""
13570
13571 #. type: =head2
13572 #: ../fish/guestfish-actions.pod:3795
13573 msgid "pvremove"
13574 msgstr "pvremove"
13575
13576 #. type: verbatim
13577 #: ../fish/guestfish-actions.pod:3797
13578 #, no-wrap
13579 msgid ""
13580 " pvremove device\n"
13581 "\n"
13582 msgstr ""
13583 " pvremove пристрій\n"
13584 "\n"
13585
13586 #. type: textblock
13587 #: ../fish/guestfish-actions.pod:3799 ../src/guestfs-actions.pod:5808
13588 msgid ""
13589 "This wipes a physical volume C<device> so that LVM will no longer recognise "
13590 "it."
13591 msgstr ""
13592
13593 #. type: textblock
13594 #: ../fish/guestfish-actions.pod:3802 ../src/guestfs-actions.pod:5811
13595 msgid ""
13596 "The implementation uses the C<pvremove> command which refuses to wipe "
13597 "physical volumes that contain any volume groups, so you have to remove those "
13598 "first."
13599 msgstr ""
13600
13601 #. type: =head2
13602 #: ../fish/guestfish-actions.pod:3806
13603 msgid "pvresize"
13604 msgstr "pvresize"
13605
13606 #. type: verbatim
13607 #: ../fish/guestfish-actions.pod:3808
13608 #, no-wrap
13609 msgid ""
13610 " pvresize device\n"
13611 "\n"
13612 msgstr ""
13613 " pvresize пристрій\n"
13614 "\n"
13615
13616 #. type: textblock
13617 #: ../fish/guestfish-actions.pod:3810 ../src/guestfs-actions.pod:5825
13618 msgid ""
13619 "This resizes (expands or shrinks) an existing LVM physical volume to match "
13620 "the new size of the underlying device."
13621 msgstr ""
13622
13623 #. type: =head2
13624 #: ../fish/guestfish-actions.pod:3813
13625 msgid "pvresize-size"
13626 msgstr "pvresize-size"
13627
13628 #. type: verbatim
13629 #: ../fish/guestfish-actions.pod:3815
13630 #, no-wrap
13631 msgid ""
13632 " pvresize-size device size\n"
13633 "\n"
13634 msgstr ""
13635
13636 #. type: textblock
13637 #: ../fish/guestfish-actions.pod:3817
13638 msgid ""
13639 "This command is the same as L</pvresize> except that it allows you to "
13640 "specify the new size (in bytes) explicitly."
13641 msgstr ""
13642
13643 #. type: =head2
13644 #: ../fish/guestfish-actions.pod:3820
13645 msgid "pvs"
13646 msgstr "pvs"
13647
13648 #. type: verbatim
13649 #: ../fish/guestfish-actions.pod:3822
13650 #, no-wrap
13651 msgid ""
13652 " pvs\n"
13653 "\n"
13654 msgstr ""
13655 " pvs\n"
13656 "\n"
13657
13658 #. type: textblock
13659 #: ../fish/guestfish-actions.pod:3824 ../src/guestfs-actions.pod:5851
13660 msgid ""
13661 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
13662 "(8)> command."
13663 msgstr ""
13664
13665 #. type: textblock
13666 #: ../fish/guestfish-actions.pod:3827 ../src/guestfs-actions.pod:5854
13667 msgid ""
13668 "This returns a list of just the device names that contain PVs (eg. C</dev/"
13669 "sda2>)."
13670 msgstr ""
13671
13672 #. type: textblock
13673 #: ../fish/guestfish-actions.pod:3830
13674 msgid "See also L</pvs-full>."
13675 msgstr "Див. також L</pvs-full>."
13676
13677 #. type: =head2
13678 #: ../fish/guestfish-actions.pod:3832
13679 msgid "pvs-full"
13680 msgstr "pvs-full"
13681
13682 #. type: verbatim
13683 #: ../fish/guestfish-actions.pod:3834
13684 #, no-wrap
13685 msgid ""
13686 " pvs-full\n"
13687 "\n"
13688 msgstr ""
13689 " pvs-full\n"
13690 "\n"
13691
13692 #. type: textblock
13693 #: ../fish/guestfish-actions.pod:3836 ../src/guestfs-actions.pod:5870
13694 msgid ""
13695 "List all the physical volumes detected.  This is the equivalent of the L<pvs"
13696 "(8)> command.  The \"full\" version includes all fields."
13697 msgstr ""
13698
13699 #. type: =head2
13700 #: ../fish/guestfish-actions.pod:3839
13701 msgid "pvuuid"
13702 msgstr "pvuuid"
13703
13704 #. type: verbatim
13705 #: ../fish/guestfish-actions.pod:3841
13706 #, no-wrap
13707 msgid ""
13708 " pvuuid device\n"
13709 "\n"
13710 msgstr ""
13711 " pvuuid пристрій\n"
13712 "\n"
13713
13714 #. type: textblock
13715 #: ../fish/guestfish-actions.pod:3843 ../src/guestfs-actions.pod:5885
13716 msgid "This command returns the UUID of the LVM PV C<device>."
13717 msgstr ""
13718
13719 #. type: =head2
13720 #: ../fish/guestfish-actions.pod:3845
13721 msgid "pwrite"
13722 msgstr "pwrite"
13723
13724 #. type: verbatim
13725 #: ../fish/guestfish-actions.pod:3847
13726 #, no-wrap
13727 msgid ""
13728 " pwrite path content offset\n"
13729 "\n"
13730 msgstr ""
13731
13732 #. type: textblock
13733 #: ../fish/guestfish-actions.pod:3849 ../src/guestfs-actions.pod:5901
13734 msgid ""
13735 "This command writes to part of a file.  It writes the data buffer C<content> "
13736 "to the file C<path> starting at offset C<offset>."
13737 msgstr ""
13738
13739 #. type: textblock
13740 #: ../fish/guestfish-actions.pod:3852 ../src/guestfs-actions.pod:5904
13741 msgid ""
13742 "This command implements the L<pwrite(2)> system call, and like that system "
13743 "call it may not write the full data requested.  The return value is the "
13744 "number of bytes that were actually written to the file.  This could even be "
13745 "0, although short writes are unlikely for regular files in ordinary "
13746 "circumstances."
13747 msgstr ""
13748
13749 #. type: textblock
13750 #: ../fish/guestfish-actions.pod:3858
13751 msgid "See also L</pread>, L</pwrite-device>."
13752 msgstr "Див. також L</pread>, L</pwrite-device>."
13753
13754 #. type: =head2
13755 #: ../fish/guestfish-actions.pod:3863
13756 msgid "pwrite-device"
13757 msgstr "pwrite-device"
13758
13759 #. type: verbatim
13760 #: ../fish/guestfish-actions.pod:3865
13761 #, no-wrap
13762 msgid ""
13763 " pwrite-device device content offset\n"
13764 "\n"
13765 msgstr ""
13766
13767 #. type: textblock
13768 #: ../fish/guestfish-actions.pod:3867 ../src/guestfs-actions.pod:5928
13769 msgid ""
13770 "This command writes to part of a device.  It writes the data buffer "
13771 "C<content> to C<device> starting at offset C<offset>."
13772 msgstr ""
13773
13774 #. type: textblock
13775 #: ../fish/guestfish-actions.pod:3870 ../src/guestfs-actions.pod:5931
13776 msgid ""
13777 "This command implements the L<pwrite(2)> system call, and like that system "
13778 "call it may not write the full data requested (although short writes to disk "
13779 "devices and partitions are probably impossible with standard Linux kernels)."
13780 msgstr ""
13781
13782 #. type: textblock
13783 #: ../fish/guestfish-actions.pod:3875
13784 msgid "See also L</pwrite>."
13785 msgstr "Див. також L</pwrite>."
13786
13787 #. type: =head2
13788 #: ../fish/guestfish-actions.pod:3880
13789 msgid "read-file"
13790 msgstr "read-file"
13791
13792 #. type: verbatim
13793 #: ../fish/guestfish-actions.pod:3882
13794 #, no-wrap
13795 msgid ""
13796 " read-file path\n"
13797 "\n"
13798 msgstr ""
13799 " read-file шлях\n"
13800 "\n"
13801
13802 #. type: textblock
13803 #: ../fish/guestfish-actions.pod:3884 ../src/guestfs-actions.pod:5952
13804 msgid "This calls returns the contents of the file C<path> as a buffer."
13805 msgstr ""
13806
13807 #. type: textblock
13808 #: ../fish/guestfish-actions.pod:3887
13809 msgid ""
13810 "Unlike L</cat>, this function can correctly handle files that contain "
13811 "embedded ASCII NUL characters.  However unlike L</download>, this function "
13812 "is limited in the total size of file that can be handled."
13813 msgstr ""
13814
13815 #. type: =head2
13816 #: ../fish/guestfish-actions.pod:3895
13817 msgid "read-lines"
13818 msgstr "read-lines"
13819
13820 #. type: verbatim
13821 #: ../fish/guestfish-actions.pod:3897
13822 #, no-wrap
13823 msgid ""
13824 " read-lines path\n"
13825 "\n"
13826 msgstr ""
13827 " read-lines шлях\n"
13828 "\n"
13829
13830 #. type: textblock
13831 #: ../fish/guestfish-actions.pod:3901 ../src/guestfs-actions.pod:5977
13832 msgid ""
13833 "The file contents are returned as a list of lines.  Trailing C<LF> and "
13834 "C<CRLF> character sequences are I<not> returned."
13835 msgstr ""
13836
13837 #. type: textblock
13838 #: ../fish/guestfish-actions.pod:3904
13839 msgid ""
13840 "Note that this function cannot correctly handle binary files (specifically, "
13841 "files containing C<\\0> character which is treated as end of line).  For "
13842 "those you need to use the L</read-file> function which has a more complex "
13843 "interface."
13844 msgstr ""
13845
13846 #. type: =head2
13847 #: ../fish/guestfish-actions.pod:3909
13848 msgid "readdir"
13849 msgstr "readdir"
13850
13851 #. type: verbatim
13852 #: ../fish/guestfish-actions.pod:3911
13853 #, no-wrap
13854 msgid ""
13855 " readdir dir\n"
13856 "\n"
13857 msgstr ""
13858 " readdir каталог\n"
13859 "\n"
13860
13861 #. type: textblock
13862 #: ../fish/guestfish-actions.pod:3913 ../src/guestfs-actions.pod:5997
13863 msgid "This returns the list of directory entries in directory C<dir>."
13864 msgstr ""
13865
13866 #. type: textblock
13867 #: ../fish/guestfish-actions.pod:3915 ../src/guestfs-actions.pod:5999
13868 msgid ""
13869 "All entries in the directory are returned, including C<.> and C<..>.  The "
13870 "entries are I<not> sorted, but returned in the same order as the underlying "
13871 "filesystem."
13872 msgstr ""
13873
13874 #. type: textblock
13875 #: ../fish/guestfish-actions.pod:3919 ../src/guestfs-actions.pod:6003
13876 msgid ""
13877 "Also this call returns basic file type information about each file.  The "
13878 "C<ftyp> field will contain one of the following characters:"
13879 msgstr ""
13880
13881 #. type: =item
13882 #: ../fish/guestfish-actions.pod:3924 ../src/guestfs-actions.pod:6008
13883 msgid "'b'"
13884 msgstr "'b'"
13885
13886 #. type: textblock
13887 #: ../fish/guestfish-actions.pod:3926 ../src/guestfs-actions.pod:6010
13888 msgid "Block special"
13889 msgstr "Блоковий особливий"
13890
13891 #. type: =item
13892 #: ../fish/guestfish-actions.pod:3928 ../src/guestfs-actions.pod:6012
13893 msgid "'c'"
13894 msgstr "'c'"
13895
13896 #. type: textblock
13897 #: ../fish/guestfish-actions.pod:3930 ../src/guestfs-actions.pod:6014
13898 msgid "Char special"
13899 msgstr "Символьний особливий"
13900
13901 #. type: =item
13902 #: ../fish/guestfish-actions.pod:3932 ../src/guestfs-actions.pod:6016
13903 msgid "'d'"
13904 msgstr "'d'"
13905
13906 #. type: textblock
13907 #: ../fish/guestfish-actions.pod:3934 ../src/guestfs-actions.pod:6018
13908 msgid "Directory"
13909 msgstr "Каталог"
13910
13911 #. type: =item
13912 #: ../fish/guestfish-actions.pod:3936 ../src/guestfs-actions.pod:6020
13913 msgid "'f'"
13914 msgstr "'f'"
13915
13916 #. type: textblock
13917 #: ../fish/guestfish-actions.pod:3938 ../src/guestfs-actions.pod:6022
13918 msgid "FIFO (named pipe)"
13919 msgstr "FIFO (іменований канал)"
13920
13921 #. type: =item
13922 #: ../fish/guestfish-actions.pod:3940 ../src/guestfs-actions.pod:6024
13923 msgid "'l'"
13924 msgstr "'l'"
13925
13926 #. type: textblock
13927 #: ../fish/guestfish-actions.pod:3942 ../src/guestfs-actions.pod:6026
13928 msgid "Symbolic link"
13929 msgstr "Символічне посилання"
13930
13931 #. type: =item
13932 #: ../fish/guestfish-actions.pod:3944 ../src/guestfs-actions.pod:6028
13933 msgid "'r'"
13934 msgstr "'r'"
13935
13936 #. type: textblock
13937 #: ../fish/guestfish-actions.pod:3946 ../src/guestfs-actions.pod:6030
13938 msgid "Regular file"
13939 msgstr "Звичайний файл"
13940
13941 #. type: =item
13942 #: ../fish/guestfish-actions.pod:3948 ../src/guestfs-actions.pod:6032
13943 msgid "'s'"
13944 msgstr "'s'"
13945
13946 #. type: textblock
13947 #: ../fish/guestfish-actions.pod:3950 ../src/guestfs-actions.pod:6034
13948 msgid "Socket"
13949 msgstr "Сокет"
13950
13951 #. type: =item
13952 #: ../fish/guestfish-actions.pod:3952 ../src/guestfs-actions.pod:6036
13953 msgid "'u'"
13954 msgstr "'u'"
13955
13956 #. type: textblock
13957 #: ../fish/guestfish-actions.pod:3954 ../src/guestfs-actions.pod:6038
13958 msgid "Unknown file type"
13959 msgstr "Невідомий тип файла"
13960
13961 #. type: =item
13962 #: ../fish/guestfish-actions.pod:3956 ../src/guestfs-actions.pod:6040
13963 msgid "'?'"
13964 msgstr ""
13965
13966 #. type: textblock
13967 #: ../fish/guestfish-actions.pod:3958 ../src/guestfs-actions.pod:6042
13968 msgid ""
13969 "The L<readdir(3)> call returned a C<d_type> field with an unexpected value"
13970 msgstr ""
13971
13972 #. type: textblock
13973 #: ../fish/guestfish-actions.pod:3963
13974 msgid ""
13975 "This function is primarily intended for use by programs.  To get a simple "
13976 "list of names, use L</ls>.  To get a printable directory for human "
13977 "consumption, use L</ll>."
13978 msgstr ""
13979
13980 #. type: =head2
13981 #: ../fish/guestfish-actions.pod:3967
13982 msgid "readlink"
13983 msgstr "readlink"
13984
13985 #. type: verbatim
13986 #: ../fish/guestfish-actions.pod:3969
13987 #, no-wrap
13988 msgid ""
13989 " readlink path\n"
13990 "\n"
13991 msgstr ""
13992 " readlink шлях\n"
13993 "\n"
13994
13995 #. type: textblock
13996 #: ../fish/guestfish-actions.pod:3971 ../src/guestfs-actions.pod:6063
13997 msgid "This command reads the target of a symbolic link."
13998 msgstr ""
13999
14000 #. type: =head2
14001 #: ../fish/guestfish-actions.pod:3973
14002 msgid "readlinklist"
14003 msgstr "readlinklist"
14004
14005 #. type: verbatim
14006 #: ../fish/guestfish-actions.pod:3975
14007 #, no-wrap
14008 msgid ""
14009 " readlinklist path 'names ...'\n"
14010 "\n"
14011 msgstr ""
14012
14013 #. type: textblock
14014 #: ../fish/guestfish-actions.pod:3977 ../src/guestfs-actions.pod:6077
14015 msgid ""
14016 "This call allows you to do a C<readlink> operation on multiple files, where "
14017 "all files are in the directory C<path>.  C<names> is the list of files from "
14018 "this directory."
14019 msgstr ""
14020
14021 #. type: textblock
14022 #: ../fish/guestfish-actions.pod:3981 ../src/guestfs-actions.pod:6081
14023 msgid ""
14024 "On return you get a list of strings, with a one-to-one correspondence to the "
14025 "C<names> list.  Each string is the value of the symbolic link."
14026 msgstr ""
14027
14028 #. type: textblock
14029 #: ../fish/guestfish-actions.pod:3985 ../src/guestfs-actions.pod:6085
14030 msgid ""
14031 "If the C<readlink(2)> operation fails on any name, then the corresponding "
14032 "result string is the empty string C<\"\">.  However the whole operation is "
14033 "completed even if there were C<readlink(2)> errors, and so you can call this "
14034 "function with names where you don't know if they are symbolic links already "
14035 "(albeit slightly less efficient)."
14036 msgstr ""
14037
14038 #. type: textblock
14039 #: ../fish/guestfish-actions.pod:3992 ../src/guestfs-actions.pod:6092
14040 msgid ""
14041 "This call is intended for programs that want to efficiently list a directory "
14042 "contents without making many round-trips.  Very long directory listings "
14043 "might cause the protocol message size to be exceeded, causing this call to "
14044 "fail.  The caller must split up such requests into smaller groups of names."
14045 msgstr ""
14046
14047 #. type: =head2
14048 #: ../fish/guestfish-actions.pod:3999
14049 msgid "realpath"
14050 msgstr "realpath"
14051
14052 #. type: verbatim
14053 #: ../fish/guestfish-actions.pod:4001
14054 #, no-wrap
14055 msgid ""
14056 " realpath path\n"
14057 "\n"
14058 msgstr ""
14059 " realpath шлях\n"
14060 "\n"
14061
14062 #. type: textblock
14063 #: ../fish/guestfish-actions.pod:4003 ../src/guestfs-actions.pod:6111
14064 msgid ""
14065 "Return the canonicalized absolute pathname of C<path>.  The returned path "
14066 "has no C<.>, C<..> or symbolic link path elements."
14067 msgstr ""
14068
14069 #. type: =head2
14070 #: ../fish/guestfish-actions.pod:4006
14071 msgid "removexattr"
14072 msgstr "removexattr"
14073
14074 #. type: verbatim
14075 #: ../fish/guestfish-actions.pod:4008
14076 #, no-wrap
14077 msgid ""
14078 " removexattr xattr path\n"
14079 "\n"
14080 msgstr ""
14081
14082 #. type: textblock
14083 #: ../fish/guestfish-actions.pod:4010 ../src/guestfs-actions.pod:6126
14084 msgid ""
14085 "This call removes the extended attribute named C<xattr> of the file C<path>."
14086 msgstr ""
14087
14088 #. type: textblock
14089 #: ../fish/guestfish-actions.pod:4013
14090 msgid "See also: L</lremovexattr>, L<attr(5)>."
14091 msgstr "Див. також L</lremovexattr>, L<attr(5)>."
14092
14093 #. type: =head2
14094 #: ../fish/guestfish-actions.pod:4015
14095 msgid "resize2fs"
14096 msgstr "resize2fs"
14097
14098 #. type: verbatim
14099 #: ../fish/guestfish-actions.pod:4017
14100 #, no-wrap
14101 msgid ""
14102 " resize2fs device\n"
14103 "\n"
14104 msgstr ""
14105 " resize2fs пристрій\n"
14106 "\n"
14107
14108 #. type: textblock
14109 #: ../fish/guestfish-actions.pod:4019 ../src/guestfs-actions.pod:6141
14110 msgid ""
14111 "This resizes an ext2, ext3 or ext4 filesystem to match the size of the "
14112 "underlying device."
14113 msgstr ""
14114
14115 #. type: textblock
14116 #: ../fish/guestfish-actions.pod:4022
14117 msgid ""
14118 "I<Note:> It is sometimes required that you run L</e2fsck-f> on the C<device> "
14119 "before calling this command.  For unknown reasons C<resize2fs> sometimes "
14120 "gives an error about this and sometimes not.  In any case, it is always safe "
14121 "to call L</e2fsck-f> before calling this function."
14122 msgstr ""
14123
14124 #. type: =head2
14125 #: ../fish/guestfish-actions.pod:4028
14126 msgid "resize2fs-M"
14127 msgstr "resize2fs-M"
14128
14129 #. type: verbatim
14130 #: ../fish/guestfish-actions.pod:4030
14131 #, no-wrap
14132 msgid ""
14133 " resize2fs-M device\n"
14134 "\n"
14135 msgstr ""
14136 " resize2fs-M пристрій\n"
14137 "\n"
14138
14139 #. type: textblock
14140 #: ../fish/guestfish-actions.pod:4032
14141 msgid ""
14142 "This command is the same as L</resize2fs>, but the filesystem is resized to "
14143 "its minimum size.  This works like the I<-M> option to the C<resize2fs> "
14144 "command."
14145 msgstr ""
14146
14147 #. type: textblock
14148 #: ../fish/guestfish-actions.pod:4036
14149 msgid ""
14150 "To get the resulting size of the filesystem you should call L</tune2fs-l> "
14151 "and read the C<Block size> and C<Block count> values.  These two numbers, "
14152 "multiplied together, give the resulting size of the minimal filesystem in "
14153 "bytes."
14154 msgstr ""
14155
14156 #. type: =head2
14157 #: ../fish/guestfish-actions.pod:4041
14158 msgid "resize2fs-size"
14159 msgstr "resize2fs-size"
14160
14161 #. type: verbatim
14162 #: ../fish/guestfish-actions.pod:4043
14163 #, no-wrap
14164 msgid ""
14165 " resize2fs-size device size\n"
14166 "\n"
14167 msgstr ""
14168
14169 #. type: textblock
14170 #: ../fish/guestfish-actions.pod:4045
14171 msgid ""
14172 "This command is the same as L</resize2fs> except that it allows you to "
14173 "specify the new size (in bytes) explicitly."
14174 msgstr ""
14175
14176 #. type: =head2
14177 #: ../fish/guestfish-actions.pod:4048
14178 msgid "rm"
14179 msgstr "rm"
14180
14181 #. type: verbatim
14182 #: ../fish/guestfish-actions.pod:4050
14183 #, no-wrap
14184 msgid ""
14185 " rm path\n"
14186 "\n"
14187 msgstr ""
14188 " rm шлях\n"
14189 "\n"
14190
14191 #. type: textblock
14192 #: ../fish/guestfish-actions.pod:4052 ../src/guestfs-actions.pod:6193
14193 msgid "Remove the single file C<path>."
14194 msgstr ""
14195
14196 #. type: =head2
14197 #: ../fish/guestfish-actions.pod:4054
14198 msgid "rm-rf"
14199 msgstr "rm-rf"
14200
14201 #. type: verbatim
14202 #: ../fish/guestfish-actions.pod:4056
14203 #, no-wrap
14204 msgid ""
14205 " rm-rf path\n"
14206 "\n"
14207 msgstr ""
14208 " rm-rf шлях\n"
14209 "\n"
14210
14211 #. type: textblock
14212 #: ../fish/guestfish-actions.pod:4058 ../src/guestfs-actions.pod:6205
14213 msgid ""
14214 "Remove the file or directory C<path>, recursively removing the contents if "
14215 "its a directory.  This is like the C<rm -rf> shell command."
14216 msgstr ""
14217
14218 #. type: =head2
14219 #: ../fish/guestfish-actions.pod:4062
14220 msgid "rmdir"
14221 msgstr "rmdir"
14222
14223 #. type: verbatim
14224 #: ../fish/guestfish-actions.pod:4064
14225 #, no-wrap
14226 msgid ""
14227 " rmdir path\n"
14228 "\n"
14229 msgstr ""
14230 " rmdir шлях\n"
14231 "\n"
14232
14233 #. type: textblock
14234 #: ../fish/guestfish-actions.pod:4066 ../src/guestfs-actions.pod:6219
14235 msgid "Remove the single directory C<path>."
14236 msgstr ""
14237
14238 #. type: =head2
14239 #: ../fish/guestfish-actions.pod:4068
14240 msgid "rmmountpoint"
14241 msgstr "rmmountpoint"
14242
14243 #. type: verbatim
14244 #: ../fish/guestfish-actions.pod:4070
14245 #, no-wrap
14246 msgid ""
14247 " rmmountpoint exemptpath\n"
14248 "\n"
14249 msgstr ""
14250
14251 #. type: textblock
14252 #: ../fish/guestfish-actions.pod:4072
14253 msgid ""
14254 "This calls removes a mountpoint that was previously created with L</"
14255 "mkmountpoint>.  See L</mkmountpoint> for full details."
14256 msgstr ""
14257
14258 #. type: =head2
14259 #: ../fish/guestfish-actions.pod:4076
14260 msgid "scrub-device"
14261 msgstr "scrub-device"
14262
14263 #. type: verbatim
14264 #: ../fish/guestfish-actions.pod:4078
14265 #, no-wrap
14266 msgid ""
14267 " scrub-device device\n"
14268 "\n"
14269 msgstr ""
14270 " scrub-device пристрій\n"
14271 "\n"
14272
14273 #. type: textblock
14274 #: ../fish/guestfish-actions.pod:4080 ../src/guestfs-actions.pod:6245
14275 msgid ""
14276 "This command writes patterns over C<device> to make data retrieval more "
14277 "difficult."
14278 msgstr ""
14279
14280 #. type: textblock
14281 #: ../fish/guestfish-actions.pod:4083 ../fish/guestfish-actions.pod:4098
14282 #: ../fish/guestfish-actions.pod:4111 ../src/guestfs-actions.pod:6248
14283 #: ../src/guestfs-actions.pod:6269 ../src/guestfs-actions.pod:6288
14284 msgid ""
14285 "It is an interface to the L<scrub(1)> program.  See that manual page for "
14286 "more details."
14287 msgstr ""
14288
14289 #. type: =head2
14290 #: ../fish/guestfish-actions.pod:4089
14291 msgid "scrub-file"
14292 msgstr "scrub-file"
14293
14294 #. type: verbatim
14295 #: ../fish/guestfish-actions.pod:4091
14296 #, no-wrap
14297 msgid ""
14298 " scrub-file file\n"
14299 "\n"
14300 msgstr ""
14301 " scrub-file файл\n"
14302 "\n"
14303
14304 #. type: textblock
14305 #: ../fish/guestfish-actions.pod:4093 ../src/guestfs-actions.pod:6264
14306 msgid ""
14307 "This command writes patterns over a file to make data retrieval more "
14308 "difficult."
14309 msgstr ""
14310
14311 #. type: textblock
14312 #: ../fish/guestfish-actions.pod:4096 ../src/guestfs-actions.pod:6267
14313 msgid "The file is I<removed> after scrubbing."
14314 msgstr ""
14315
14316 #. type: =head2
14317 #: ../fish/guestfish-actions.pod:4101
14318 msgid "scrub-freespace"
14319 msgstr "scrub-freespace"
14320
14321 #. type: verbatim
14322 #: ../fish/guestfish-actions.pod:4103
14323 #, no-wrap
14324 msgid ""
14325 " scrub-freespace dir\n"
14326 "\n"
14327 msgstr ""
14328 " scrub-freespace каталог\n"
14329 "\n"
14330
14331 #. type: textblock
14332 #: ../fish/guestfish-actions.pod:4105
14333 msgid ""
14334 "This command creates the directory C<dir> and then fills it with files until "
14335 "the filesystem is full, and scrubs the files as for L</scrub-file>, and "
14336 "deletes them.  The intention is to scrub any free space on the partition "
14337 "containing C<dir>."
14338 msgstr ""
14339
14340 #. type: =head2
14341 #: ../fish/guestfish-actions.pod:4114
14342 msgid "set-append"
14343 msgstr "set-append"
14344
14345 #. type: =head2
14346 #: ../fish/guestfish-actions.pod:4116
14347 msgid "append"
14348 msgstr ""
14349
14350 #. type: verbatim
14351 #: ../fish/guestfish-actions.pod:4118
14352 #, no-wrap
14353 msgid ""
14354 " set-append append\n"
14355 "\n"
14356 msgstr ""
14357
14358 #. type: textblock
14359 #: ../fish/guestfish-actions.pod:4120 ../src/guestfs-actions.pod:6301
14360 msgid ""
14361 "This function is used to add additional options to the guest kernel command "
14362 "line."
14363 msgstr ""
14364
14365 #. type: textblock
14366 #: ../fish/guestfish-actions.pod:4123 ../src/guestfs-actions.pod:6304
14367 msgid ""
14368 "The default is C<NULL> unless overridden by setting C<LIBGUESTFS_APPEND> "
14369 "environment variable."
14370 msgstr ""
14371
14372 #. type: textblock
14373 #: ../fish/guestfish-actions.pod:4126 ../src/guestfs-actions.pod:6307
14374 msgid ""
14375 "Setting C<append> to C<NULL> means I<no> additional options are passed "
14376 "(libguestfs always adds a few of its own)."
14377 msgstr ""
14378
14379 #. type: =head2
14380 #: ../fish/guestfish-actions.pod:4129
14381 msgid "set-attach-method"
14382 msgstr "set-attach-method"
14383
14384 #. type: =head2
14385 #: ../fish/guestfish-actions.pod:4131
14386 msgid "attach-method"
14387 msgstr ""
14388
14389 #. type: verbatim
14390 #: ../fish/guestfish-actions.pod:4133
14391 #, no-wrap
14392 msgid ""
14393 " set-attach-method attachmethod\n"
14394 "\n"
14395 msgstr ""
14396
14397 #. type: textblock
14398 #: ../fish/guestfish-actions.pod:4135 ../src/guestfs-actions.pod:6320
14399 msgid ""
14400 "Set the method that libguestfs uses to connect to the back end guestfsd "
14401 "daemon.  Possible methods are:"
14402 msgstr ""
14403
14404 #. type: =item
14405 #: ../fish/guestfish-actions.pod:4140 ../src/guestfs-actions.pod:6325
14406 #: ../src/guestfs.pod:2830
14407 msgid "C<appliance>"
14408 msgstr "C<appliance>"
14409
14410 #. type: textblock
14411 #: ../fish/guestfish-actions.pod:4142 ../src/guestfs-actions.pod:6327
14412 msgid ""
14413 "Launch an appliance and connect to it.  This is the ordinary method and the "
14414 "default."
14415 msgstr ""
14416
14417 #. type: =item
14418 #: ../fish/guestfish-actions.pod:4145 ../src/guestfs-actions.pod:6330
14419 msgid "C<unix:I<path>>"
14420 msgstr "C<unix:I<шлях>>"
14421
14422 #. type: textblock
14423 #: ../fish/guestfish-actions.pod:4147 ../src/guestfs-actions.pod:6332
14424 msgid "Connect to the Unix domain socket I<path>."
14425 msgstr "Встановити з’єднання з сокетом домену Unix I<шлях>."
14426
14427 #. type: textblock
14428 #: ../fish/guestfish-actions.pod:4149 ../src/guestfs-actions.pod:6334
14429 msgid ""
14430 "This method lets you connect to an existing daemon or (using virtio-serial) "
14431 "to a live guest.  For more information, see L<guestfs(3)/ATTACHING TO "
14432 "RUNNING DAEMONS>."
14433 msgstr ""
14434
14435 #. type: =head2
14436 #: ../fish/guestfish-actions.pod:4155
14437 msgid "set-autosync"
14438 msgstr "set-autosync"
14439
14440 #. type: =head2
14441 #: ../fish/guestfish-actions.pod:4157
14442 msgid "autosync"
14443 msgstr "autosync"
14444
14445 #. type: verbatim
14446 #: ../fish/guestfish-actions.pod:4159
14447 #, no-wrap
14448 msgid ""
14449 " set-autosync true|false\n"
14450 "\n"
14451 msgstr ""
14452 " set-autosync true|false\n"
14453 "\n"
14454
14455 #. type: textblock
14456 #: ../fish/guestfish-actions.pod:4161 ../src/guestfs-actions.pod:6350
14457 msgid ""
14458 "If C<autosync> is true, this enables autosync.  Libguestfs will make a best "
14459 "effort attempt to make filesystems consistent and synchronized when the "
14460 "handle is closed (also if the program exits without closing handles)."
14461 msgstr ""
14462
14463 #. type: textblock
14464 #: ../fish/guestfish-actions.pod:4166 ../src/guestfs-actions.pod:6355
14465 msgid ""
14466 "This is enabled by default (since libguestfs 1.5.24, previously it was "
14467 "disabled by default)."
14468 msgstr ""
14469
14470 #. type: =head2
14471 #: ../fish/guestfish-actions.pod:4169
14472 msgid "set-direct"
14473 msgstr "set-direct"
14474
14475 #. type: =head2
14476 #: ../fish/guestfish-actions.pod:4171
14477 msgid "direct"
14478 msgstr "direct"
14479
14480 #. type: verbatim
14481 #: ../fish/guestfish-actions.pod:4173
14482 #, no-wrap
14483 msgid ""
14484 " set-direct true|false\n"
14485 "\n"
14486 msgstr ""
14487 " set-direct true|false\n"
14488 "\n"
14489
14490 #. type: textblock
14491 #: ../fish/guestfish-actions.pod:4175 ../src/guestfs-actions.pod:6368
14492 msgid ""
14493 "If the direct appliance mode flag is enabled, then stdin and stdout are "
14494 "passed directly through to the appliance once it is launched."
14495 msgstr ""
14496
14497 #. type: textblock
14498 #: ../fish/guestfish-actions.pod:4179
14499 msgid ""
14500 "One consequence of this is that log messages aren't caught by the library "
14501 "and handled by L</set-log-message-callback>, but go straight to stdout."
14502 msgstr ""
14503
14504 #. type: textblock
14505 #: ../fish/guestfish-actions.pod:4183 ../src/guestfs-actions.pod:6376
14506 msgid "You probably don't want to use this unless you know what you are doing."
14507 msgstr ""
14508
14509 #. type: textblock
14510 #: ../fish/guestfish-actions.pod:4186 ../src/guestfs-actions.pod:6379
14511 msgid "The default is disabled."
14512 msgstr ""
14513
14514 #. type: =head2
14515 #: ../fish/guestfish-actions.pod:4188
14516 msgid "set-e2label"
14517 msgstr "set-e2label"
14518
14519 #. type: verbatim
14520 #: ../fish/guestfish-actions.pod:4190
14521 #, no-wrap
14522 msgid ""
14523 " set-e2label device label\n"
14524 "\n"
14525 msgstr ""
14526
14527 #. type: textblock
14528 #: ../fish/guestfish-actions.pod:4192 ../src/guestfs-actions.pod:6392
14529 msgid ""
14530 "This sets the ext2/3/4 filesystem label of the filesystem on C<device> to "
14531 "C<label>.  Filesystem labels are limited to 16 characters."
14532 msgstr ""
14533
14534 #. type: textblock
14535 #: ../fish/guestfish-actions.pod:4196
14536 msgid ""
14537 "You can use either L</tune2fs-l> or L</get-e2label> to return the existing "
14538 "label on a filesystem."
14539 msgstr ""
14540
14541 #. type: =head2
14542 #: ../fish/guestfish-actions.pod:4199
14543 msgid "set-e2uuid"
14544 msgstr "set-e2uuid"
14545
14546 #. type: verbatim
14547 #: ../fish/guestfish-actions.pod:4201
14548 #, no-wrap
14549 msgid ""
14550 " set-e2uuid device uuid\n"
14551 "\n"
14552 msgstr ""
14553
14554 #. type: textblock
14555 #: ../fish/guestfish-actions.pod:4203 ../src/guestfs-actions.pod:6410
14556 msgid ""
14557 "This sets the ext2/3/4 filesystem UUID of the filesystem on C<device> to "
14558 "C<uuid>.  The format of the UUID and alternatives such as C<clear>, "
14559 "C<random> and C<time> are described in the L<tune2fs(8)> manpage."
14560 msgstr ""
14561
14562 #. type: textblock
14563 #: ../fish/guestfish-actions.pod:4208
14564 msgid ""
14565 "You can use either L</tune2fs-l> or L</get-e2uuid> to return the existing "
14566 "UUID of a filesystem."
14567 msgstr ""
14568
14569 #. type: =head2
14570 #: ../fish/guestfish-actions.pod:4211
14571 msgid "set-memsize"
14572 msgstr "set-memsize"
14573
14574 #. type: =head2
14575 #: ../fish/guestfish-actions.pod:4213
14576 msgid "memsize"
14577 msgstr ""
14578
14579 #. type: verbatim
14580 #: ../fish/guestfish-actions.pod:4215
14581 #, no-wrap
14582 msgid ""
14583 " set-memsize memsize\n"
14584 "\n"
14585 msgstr ""
14586
14587 #. type: textblock
14588 #: ../fish/guestfish-actions.pod:4217
14589 msgid ""
14590 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
14591 "This only has any effect if called before L</launch>."
14592 msgstr ""
14593
14594 #. type: textblock
14595 #: ../fish/guestfish-actions.pod:4221 ../src/guestfs-actions.pod:6432
14596 msgid ""
14597 "You can also change this by setting the environment variable "
14598 "C<LIBGUESTFS_MEMSIZE> before the handle is created."
14599 msgstr ""
14600
14601 #. type: =head2
14602 #: ../fish/guestfish-actions.pod:4228
14603 msgid "set-network"
14604 msgstr "set-network"
14605
14606 #. type: =head2
14607 #: ../fish/guestfish-actions.pod:4230
14608 msgid "network"
14609 msgstr "network"
14610
14611 #. type: verbatim
14612 #: ../fish/guestfish-actions.pod:4232
14613 #, no-wrap
14614 msgid ""
14615 " set-network true|false\n"
14616 "\n"
14617 msgstr ""
14618 " set-network true|false\n"
14619 "\n"
14620
14621 #. type: textblock
14622 #: ../fish/guestfish-actions.pod:4234 ../src/guestfs-actions.pod:6449
14623 msgid ""
14624 "If C<network> is true, then the network is enabled in the libguestfs "
14625 "appliance.  The default is false."
14626 msgstr ""
14627
14628 #. type: textblock
14629 #: ../fish/guestfish-actions.pod:4237 ../src/guestfs-actions.pod:6452
14630 msgid ""
14631 "This affects whether commands are able to access the network (see L<guestfs"
14632 "(3)/RUNNING COMMANDS>)."
14633 msgstr ""
14634
14635 #. type: textblock
14636 #: ../fish/guestfish-actions.pod:4240
14637 msgid ""
14638 "You must call this before calling L</launch>, otherwise it has no effect."
14639 msgstr ""
14640
14641 #. type: =head2
14642 #: ../fish/guestfish-actions.pod:4243
14643 msgid "set-path"
14644 msgstr "set-path"
14645
14646 #. type: verbatim
14647 #: ../fish/guestfish-actions.pod:4247
14648 #, no-wrap
14649 msgid ""
14650 " set-path searchpath\n"
14651 "\n"
14652 msgstr ""
14653
14654 #. type: textblock
14655 #: ../fish/guestfish-actions.pod:4249 ../src/guestfs-actions.pod:6468
14656 msgid "Set the path that libguestfs searches for kernel and initrd.img."
14657 msgstr ""
14658
14659 #. type: textblock
14660 #: ../fish/guestfish-actions.pod:4251 ../src/guestfs-actions.pod:6470
14661 msgid ""
14662 "The default is C<$libdir/guestfs> unless overridden by setting "
14663 "C<LIBGUESTFS_PATH> environment variable."
14664 msgstr ""
14665
14666 #. type: textblock
14667 #: ../fish/guestfish-actions.pod:4254 ../src/guestfs-actions.pod:6473
14668 msgid "Setting C<path> to C<NULL> restores the default path."
14669 msgstr ""
14670
14671 #. type: =head2
14672 #: ../fish/guestfish-actions.pod:4256
14673 msgid "set-pgroup"
14674 msgstr ""
14675
14676 #. type: =head2
14677 #: ../fish/guestfish-actions.pod:4258
14678 msgid "pgroup"
14679 msgstr ""
14680
14681 #. type: verbatim
14682 #: ../fish/guestfish-actions.pod:4260
14683 #, no-wrap
14684 msgid ""
14685 " set-pgroup true|false\n"
14686 "\n"
14687 msgstr ""
14688
14689 #. type: textblock
14690 #: ../fish/guestfish-actions.pod:4262 ../src/guestfs-actions.pod:6485
14691 msgid ""
14692 "If C<pgroup> is true, child processes are placed into their own process "
14693 "group."
14694 msgstr ""
14695
14696 #. type: textblock
14697 #: ../fish/guestfish-actions.pod:4265 ../src/guestfs-actions.pod:6488
14698 msgid ""
14699 "The practical upshot of this is that signals like C<SIGINT> (from users "
14700 "pressing C<^C>) won't be received by the child process."
14701 msgstr ""
14702
14703 #. type: textblock
14704 #: ../fish/guestfish-actions.pod:4268 ../src/guestfs-actions.pod:6491
14705 msgid ""
14706 "The default for this flag is false, because usually you want C<^C> to kill "
14707 "the subprocess."
14708 msgstr ""
14709
14710 #. type: =head2
14711 #: ../fish/guestfish-actions.pod:4271
14712 msgid "set-qemu"
14713 msgstr "set-qemu"
14714
14715 #. type: =head2
14716 #: ../fish/guestfish-actions.pod:4273
14717 msgid "qemu"
14718 msgstr "qemu"
14719
14720 #. type: verbatim
14721 #: ../fish/guestfish-actions.pod:4275
14722 #, no-wrap
14723 msgid ""
14724 " set-qemu qemu\n"
14725 "\n"
14726 msgstr ""
14727 " set-qemu qemu\n"
14728 "\n"
14729
14730 #. type: textblock
14731 #: ../fish/guestfish-actions.pod:4277 ../src/guestfs-actions.pod:6504
14732 msgid "Set the qemu binary that we will use."
14733 msgstr ""
14734
14735 #. type: textblock
14736 #: ../fish/guestfish-actions.pod:4279 ../src/guestfs-actions.pod:6506
14737 msgid ""
14738 "The default is chosen when the library was compiled by the configure script."
14739 msgstr ""
14740
14741 #. type: textblock
14742 #: ../fish/guestfish-actions.pod:4282 ../src/guestfs-actions.pod:6509
14743 msgid ""
14744 "You can also override this by setting the C<LIBGUESTFS_QEMU> environment "
14745 "variable."
14746 msgstr ""
14747
14748 #. type: textblock
14749 #: ../fish/guestfish-actions.pod:4285 ../src/guestfs-actions.pod:6512
14750 msgid "Setting C<qemu> to C<NULL> restores the default qemu binary."
14751 msgstr ""
14752
14753 #. type: textblock
14754 #: ../fish/guestfish-actions.pod:4287 ../src/guestfs-actions.pod:6514
14755 msgid ""
14756 "Note that you should call this function as early as possible after creating "
14757 "the handle.  This is because some pre-launch operations depend on testing "
14758 "qemu features (by running C<qemu -help>).  If the qemu binary changes, we "
14759 "don't retest features, and so you might see inconsistent results.  Using the "
14760 "environment variable C<LIBGUESTFS_QEMU> is safest of all since that picks "
14761 "the qemu binary at the same time as the handle is created."
14762 msgstr ""
14763
14764 #. type: =head2
14765 #: ../fish/guestfish-actions.pod:4295
14766 msgid "set-recovery-proc"
14767 msgstr "set-recovery-proc"
14768
14769 #. type: =head2
14770 #: ../fish/guestfish-actions.pod:4297
14771 msgid "recovery-proc"
14772 msgstr "recovery-proc"
14773
14774 #. type: verbatim
14775 #: ../fish/guestfish-actions.pod:4299
14776 #, no-wrap
14777 msgid ""
14778 " set-recovery-proc true|false\n"
14779 "\n"
14780 msgstr ""
14781 " set-recovery-proc true|false\n"
14782 "\n"
14783
14784 #. type: textblock
14785 #: ../fish/guestfish-actions.pod:4301
14786 msgid ""
14787 "If this is called with the parameter C<false> then L</launch> does not "
14788 "create a recovery process.  The purpose of the recovery process is to stop "
14789 "runaway qemu processes in the case where the main program aborts abruptly."
14790 msgstr ""
14791
14792 #. type: textblock
14793 #: ../fish/guestfish-actions.pod:4306
14794 msgid ""
14795 "This only has any effect if called before L</launch>, and the default is "
14796 "true."
14797 msgstr ""
14798
14799 #. type: textblock
14800 #: ../fish/guestfish-actions.pod:4309 ../src/guestfs-actions.pod:6540
14801 msgid ""
14802 "About the only time when you would want to disable this is if the main "
14803 "process will fork itself into the background (\"daemonize\" itself).  In "
14804 "this case the recovery process thinks that the main program has disappeared "
14805 "and so kills qemu, which is not very helpful."
14806 msgstr ""
14807
14808 #. type: =head2
14809 #: ../fish/guestfish-actions.pod:4315
14810 msgid "set-selinux"
14811 msgstr "set-selinux"
14812
14813 #. type: =head2
14814 #: ../fish/guestfish-actions.pod:4317
14815 msgid "selinux"
14816 msgstr "selinux"
14817
14818 #. type: verbatim
14819 #: ../fish/guestfish-actions.pod:4319
14820 #, no-wrap
14821 msgid ""
14822 " set-selinux true|false\n"
14823 "\n"
14824 msgstr ""
14825 " set-selinux true|false\n"
14826 "\n"
14827
14828 #. type: textblock
14829 #: ../fish/guestfish-actions.pod:4321 ../src/guestfs-actions.pod:6556
14830 msgid ""
14831 "This sets the selinux flag that is passed to the appliance at boot time.  "
14832 "The default is C<selinux=0> (disabled)."
14833 msgstr ""
14834
14835 #. type: textblock
14836 #: ../fish/guestfish-actions.pod:4324 ../src/guestfs-actions.pod:6559
14837 msgid ""
14838 "Note that if SELinux is enabled, it is always in Permissive mode "
14839 "(C<enforcing=0>)."
14840 msgstr ""
14841
14842 #. type: =head2
14843 #: ../fish/guestfish-actions.pod:4330
14844 #, fuzzy
14845 #| msgid "set-path"
14846 msgid "set-smp"
14847 msgstr "set-path"
14848
14849 #. type: =head2
14850 #: ../fish/guestfish-actions.pod:4332
14851 msgid "smp"
14852 msgstr ""
14853
14854 #. type: verbatim
14855 #: ../fish/guestfish-actions.pod:4334
14856 #, fuzzy, no-wrap
14857 #| msgid ""
14858 #| " set-qemu qemu\n"
14859 #| "\n"
14860 msgid ""
14861 " set-smp smp\n"
14862 "\n"
14863 msgstr ""
14864 " set-qemu qemu\n"
14865 "\n"
14866
14867 #. type: textblock
14868 #: ../fish/guestfish-actions.pod:4336 ../src/guestfs-actions.pod:6575
14869 msgid ""
14870 "Change the number of virtual CPUs assigned to the appliance.  The default is "
14871 "C<1>.  Increasing this may improve performance, though often it has no "
14872 "effect."
14873 msgstr ""
14874
14875 #. type: textblock
14876 #: ../fish/guestfish-actions.pod:4340
14877 msgid "This function must be called before L</launch>."
14878 msgstr ""
14879
14880 #. type: =head2
14881 #: ../fish/guestfish-actions.pod:4342
14882 msgid "set-trace"
14883 msgstr "set-trace"
14884
14885 #. type: =head2
14886 #: ../fish/guestfish-actions.pod:4344
14887 msgid "trace"
14888 msgstr "trace"
14889
14890 #. type: verbatim
14891 #: ../fish/guestfish-actions.pod:4346
14892 #, no-wrap
14893 msgid ""
14894 " set-trace true|false\n"
14895 "\n"
14896 msgstr ""
14897 " set-trace true|false\n"
14898 "\n"
14899
14900 #. type: textblock
14901 #: ../fish/guestfish-actions.pod:4348 ../src/guestfs-actions.pod:6591
14902 msgid ""
14903 "If the command trace flag is set to 1, then libguestfs calls, parameters and "
14904 "return values are traced."
14905 msgstr ""
14906
14907 #. type: textblock
14908 #: ../fish/guestfish-actions.pod:4351 ../src/guestfs-actions.pod:6594
14909 msgid ""
14910 "If you want to trace C API calls into libguestfs (and other libraries) then "
14911 "possibly a better way is to use the external ltrace(1) command."
14912 msgstr ""
14913
14914 #. type: textblock
14915 #: ../fish/guestfish-actions.pod:4355 ../src/guestfs-actions.pod:6598
14916 msgid ""
14917 "Command traces are disabled unless the environment variable "
14918 "C<LIBGUESTFS_TRACE> is defined and set to C<1>."
14919 msgstr ""
14920
14921 #. type: textblock
14922 #: ../fish/guestfish-actions.pod:4358
14923 msgid ""
14924 "Trace messages are normally sent to C<stderr>, unless you register a "
14925 "callback to send them somewhere else (see L</set-event-callback>)."
14926 msgstr ""
14927
14928 #. type: =head2
14929 #: ../fish/guestfish-actions.pod:4362
14930 msgid "set-verbose"
14931 msgstr "set-verbose"
14932
14933 #. type: =head2
14934 #: ../fish/guestfish-actions.pod:4364
14935 msgid "verbose"
14936 msgstr ""
14937
14938 #. type: verbatim
14939 #: ../fish/guestfish-actions.pod:4366
14940 #, no-wrap
14941 msgid ""
14942 " set-verbose true|false\n"
14943 "\n"
14944 msgstr ""
14945 " set-verbose true|false\n"
14946 "\n"
14947
14948 #. type: textblock
14949 #: ../fish/guestfish-actions.pod:4368 ../src/guestfs-actions.pod:6615
14950 msgid "If C<verbose> is true, this turns on verbose messages."
14951 msgstr ""
14952
14953 #. type: textblock
14954 #: ../fish/guestfish-actions.pod:4370 ../src/guestfs-actions.pod:6617
14955 msgid ""
14956 "Verbose messages are disabled unless the environment variable "
14957 "C<LIBGUESTFS_DEBUG> is defined and set to C<1>."
14958 msgstr ""
14959
14960 #. type: textblock
14961 #: ../fish/guestfish-actions.pod:4373
14962 msgid ""
14963 "Verbose messages are normally sent to C<stderr>, unless you register a "
14964 "callback to send them somewhere else (see L</set-event-callback>)."
14965 msgstr ""
14966
14967 #. type: =head2
14968 #: ../fish/guestfish-actions.pod:4377
14969 msgid "setcon"
14970 msgstr "setcon"
14971
14972 #. type: verbatim
14973 #: ../fish/guestfish-actions.pod:4379
14974 #, no-wrap
14975 msgid ""
14976 " setcon context\n"
14977 "\n"
14978 msgstr ""
14979 " setcon контекст\n"
14980 "\n"
14981
14982 #. type: textblock
14983 #: ../fish/guestfish-actions.pod:4381 ../src/guestfs-actions.pod:6634
14984 msgid ""
14985 "This sets the SELinux security context of the daemon to the string "
14986 "C<context>."
14987 msgstr ""
14988
14989 #. type: textblock
14990 #: ../fish/guestfish-actions.pod:4384 ../src/guestfs-actions.pod:6637
14991 msgid "See the documentation about SELINUX in L<guestfs(3)>."
14992 msgstr ""
14993
14994 #. type: =head2
14995 #: ../fish/guestfish-actions.pod:4386
14996 msgid "setxattr"
14997 msgstr "setxattr"
14998
14999 #. type: verbatim
15000 #: ../fish/guestfish-actions.pod:4388
15001 #, no-wrap
15002 msgid ""
15003 " setxattr xattr val vallen path\n"
15004 "\n"
15005 msgstr ""
15006
15007 #. type: textblock
15008 #: ../fish/guestfish-actions.pod:4390 ../src/guestfs-actions.pod:6652
15009 msgid ""
15010 "This call sets the extended attribute named C<xattr> of the file C<path> to "
15011 "the value C<val> (of length C<vallen>).  The value is arbitrary 8 bit data."
15012 msgstr ""
15013
15014 #. type: textblock
15015 #: ../fish/guestfish-actions.pod:4394
15016 msgid "See also: L</lsetxattr>, L<attr(5)>."
15017 msgstr "Див. також L</lsetxattr>, L<attr(5)>."
15018
15019 #. type: =head2
15020 #: ../fish/guestfish-actions.pod:4396
15021 msgid "sfdisk"
15022 msgstr "sfdisk"
15023
15024 #. type: verbatim
15025 #: ../fish/guestfish-actions.pod:4398
15026 #, no-wrap
15027 msgid ""
15028 " sfdisk device cyls heads sectors 'lines ...'\n"
15029 "\n"
15030 msgstr ""
15031
15032 #. type: textblock
15033 #: ../fish/guestfish-actions.pod:4400 ../src/guestfs-actions.pod:6679
15034 msgid ""
15035 "This is a direct interface to the L<sfdisk(8)> program for creating "
15036 "partitions on block devices."
15037 msgstr ""
15038
15039 #. type: textblock
15040 #: ../fish/guestfish-actions.pod:4403 ../src/guestfs-actions.pod:6682
15041 msgid "C<device> should be a block device, for example C</dev/sda>."
15042 msgstr ""
15043
15044 #. type: textblock
15045 #: ../fish/guestfish-actions.pod:4405 ../src/guestfs-actions.pod:6684
15046 msgid ""
15047 "C<cyls>, C<heads> and C<sectors> are the number of cylinders, heads and "
15048 "sectors on the device, which are passed directly to sfdisk as the I<-C>, I<-"
15049 "H> and I<-S> parameters.  If you pass C<0> for any of these, then the "
15050 "corresponding parameter is omitted.  Usually for 'large' disks, you can just "
15051 "pass C<0> for these, but for small (floppy-sized) disks, sfdisk (or rather, "
15052 "the kernel) cannot work out the right geometry and you will need to tell it."
15053 msgstr ""
15054
15055 #. type: textblock
15056 #: ../fish/guestfish-actions.pod:4413 ../src/guestfs-actions.pod:6692
15057 msgid ""
15058 "C<lines> is a list of lines that we feed to C<sfdisk>.  For more information "
15059 "refer to the L<sfdisk(8)> manpage."
15060 msgstr ""
15061
15062 #. type: textblock
15063 #: ../fish/guestfish-actions.pod:4416 ../src/guestfs-actions.pod:6695
15064 msgid ""
15065 "To create a single partition occupying the whole disk, you would pass "
15066 "C<lines> as a single element list, when the single element being the string "
15067 "C<,> (comma)."
15068 msgstr ""
15069
15070 #. type: textblock
15071 #: ../fish/guestfish-actions.pod:4420
15072 msgid "See also: L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15073 msgstr "Див. також L</sfdisk-l>, L</sfdisk-N>, L</part-init>"
15074
15075 #. type: textblock
15076 #: ../fish/guestfish-actions.pod:4426 ../fish/guestfish-actions.pod:4449
15077 #: ../fish/guestfish-actions.pod:4471
15078 msgid ""
15079 "I<This function is deprecated.> In new code, use the L</part_add> call "
15080 "instead."
15081 msgstr ""
15082
15083 #. type: =head2
15084 #: ../fish/guestfish-actions.pod:4433
15085 msgid "sfdiskM"
15086 msgstr "sfdiskM"
15087
15088 #. type: verbatim
15089 #: ../fish/guestfish-actions.pod:4435
15090 #, no-wrap
15091 msgid ""
15092 " sfdiskM device 'lines ...'\n"
15093 "\n"
15094 msgstr ""
15095
15096 #. type: textblock
15097 #: ../fish/guestfish-actions.pod:4437
15098 msgid ""
15099 "This is a simplified interface to the L</sfdisk> command, where partition "
15100 "sizes are specified in megabytes only (rounded to the nearest cylinder) and "
15101 "you don't need to specify the cyls, heads and sectors parameters which were "
15102 "rarely if ever used anyway."
15103 msgstr ""
15104
15105 #. type: textblock
15106 #: ../fish/guestfish-actions.pod:4443
15107 msgid "See also: L</sfdisk>, the L<sfdisk(8)> manpage and L</part-disk>"
15108 msgstr ""
15109 "Див також L</sfdisk>, сторінку довідки (man) L<sfdisk(8)> та L</part-disk>"
15110
15111 #. type: =head2
15112 #: ../fish/guestfish-actions.pod:4456
15113 msgid "sfdisk-N"
15114 msgstr "sfdisk-N"
15115
15116 #. type: verbatim
15117 #: ../fish/guestfish-actions.pod:4458
15118 #, no-wrap
15119 msgid ""
15120 " sfdisk-N device partnum cyls heads sectors line\n"
15121 "\n"
15122 msgstr ""
15123
15124 #. type: textblock
15125 #: ../fish/guestfish-actions.pod:4460 ../src/guestfs-actions.pod:6757
15126 msgid ""
15127 "This runs L<sfdisk(8)> option to modify just the single partition C<n> "
15128 "(note: C<n> counts from 1)."
15129 msgstr ""
15130
15131 #. type: textblock
15132 #: ../fish/guestfish-actions.pod:4463
15133 msgid ""
15134 "For other parameters, see L</sfdisk>.  You should usually pass C<0> for the "
15135 "cyls/heads/sectors parameters."
15136 msgstr ""
15137
15138 #. type: textblock
15139 #: ../fish/guestfish-actions.pod:4466
15140 msgid "See also: L</part-add>"
15141 msgstr "Див. також L</part-add>"
15142
15143 #. type: =head2
15144 #: ../fish/guestfish-actions.pod:4478
15145 msgid "sfdisk-disk-geometry"
15146 msgstr "sfdisk-disk-geometry"
15147
15148 #. type: verbatim
15149 #: ../fish/guestfish-actions.pod:4480
15150 #, no-wrap
15151 msgid ""
15152 " sfdisk-disk-geometry device\n"
15153 "\n"
15154 msgstr ""
15155 " sfdisk-disk-geometry пристрій\n"
15156 "\n"
15157
15158 #. type: textblock
15159 #: ../fish/guestfish-actions.pod:4482
15160 msgid ""
15161 "This displays the disk geometry of C<device> read from the partition table.  "
15162 "Especially in the case where the underlying block device has been resized, "
15163 "this can be different from the kernel's idea of the geometry (see L</sfdisk-"
15164 "kernel-geometry>)."
15165 msgstr ""
15166
15167 #. type: textblock
15168 #: ../fish/guestfish-actions.pod:4487 ../fish/guestfish-actions.pod:4496
15169 #: ../src/guestfs-actions.pod:6783 ../src/guestfs-actions.pod:6799
15170 msgid "The result is in human-readable format, and not designed to be parsed."
15171 msgstr ""
15172
15173 #. type: =head2
15174 #: ../fish/guestfish-actions.pod:4490
15175 msgid "sfdisk-kernel-geometry"
15176 msgstr "sfdisk-kernel-geometry"
15177
15178 #. type: verbatim
15179 #: ../fish/guestfish-actions.pod:4492
15180 #, no-wrap
15181 msgid ""
15182 " sfdisk-kernel-geometry device\n"
15183 "\n"
15184 msgstr ""
15185 " sfdisk-kernel-geometry пристрій\n"
15186 "\n"
15187
15188 #. type: textblock
15189 #: ../fish/guestfish-actions.pod:4494 ../src/guestfs-actions.pod:6797
15190 msgid "This displays the kernel's idea of the geometry of C<device>."
15191 msgstr ""
15192
15193 #. type: =head2
15194 #: ../fish/guestfish-actions.pod:4499
15195 msgid "sfdisk-l"
15196 msgstr "sfdisk-l"
15197
15198 #. type: verbatim
15199 #: ../fish/guestfish-actions.pod:4501
15200 #, no-wrap
15201 msgid ""
15202 " sfdisk-l device\n"
15203 "\n"
15204 msgstr ""
15205 " sfdisk-l пристрій\n"
15206 "\n"
15207
15208 #. type: textblock
15209 #: ../fish/guestfish-actions.pod:4503 ../src/guestfs-actions.pod:6820
15210 msgid ""
15211 "This displays the partition table on C<device>, in the human-readable output "
15212 "of the L<sfdisk(8)> command.  It is not intended to be parsed."
15213 msgstr ""
15214
15215 #. type: textblock
15216 #: ../fish/guestfish-actions.pod:4507
15217 msgid "See also: L</part-list>"
15218 msgstr "Див. також L</part-list>"
15219
15220 #. type: textblock
15221 #: ../fish/guestfish-actions.pod:4509
15222 msgid ""
15223 "I<This function is deprecated.> In new code, use the L</part_list> call "
15224 "instead."
15225 msgstr ""
15226
15227 #. type: =head2
15228 #: ../fish/guestfish-actions.pod:4516
15229 msgid "sh"
15230 msgstr "sh"
15231
15232 #. type: verbatim
15233 #: ../fish/guestfish-actions.pod:4518
15234 #, no-wrap
15235 msgid ""
15236 " sh command\n"
15237 "\n"
15238 msgstr ""
15239 " sh команда\n"
15240 "\n"
15241
15242 #. type: textblock
15243 #: ../fish/guestfish-actions.pod:4520 ../src/guestfs-actions.pod:6837
15244 msgid ""
15245 "This call runs a command from the guest filesystem via the guest's C</bin/"
15246 "sh>."
15247 msgstr ""
15248
15249 #. type: textblock
15250 #: ../fish/guestfish-actions.pod:4523
15251 msgid "This is like L</command>, but passes the command to:"
15252 msgstr ""
15253
15254 #. type: verbatim
15255 #: ../fish/guestfish-actions.pod:4525 ../src/guestfs-actions.pod:6842
15256 #, no-wrap
15257 msgid ""
15258 " /bin/sh -c \"command\"\n"
15259 "\n"
15260 msgstr ""
15261
15262 #. type: textblock
15263 #: ../fish/guestfish-actions.pod:4527 ../src/guestfs-actions.pod:6844
15264 msgid ""
15265 "Depending on the guest's shell, this usually results in wildcards being "
15266 "expanded, shell expressions being interpolated and so on."
15267 msgstr ""
15268
15269 #. type: textblock
15270 #: ../fish/guestfish-actions.pod:4531
15271 msgid "All the provisos about L</command> apply to this call."
15272 msgstr ""
15273
15274 #. type: =head2
15275 #: ../fish/guestfish-actions.pod:4533
15276 msgid "sh-lines"
15277 msgstr "sh-lines"
15278
15279 #. type: verbatim
15280 #: ../fish/guestfish-actions.pod:4535
15281 #, no-wrap
15282 msgid ""
15283 " sh-lines command\n"
15284 "\n"
15285 msgstr ""
15286 " sh-lines команда\n"
15287 "\n"
15288
15289 #. type: textblock
15290 #: ../fish/guestfish-actions.pod:4537
15291 msgid "This is the same as L</sh>, but splits the result into a list of lines."
15292 msgstr ""
15293
15294 #. type: textblock
15295 #: ../fish/guestfish-actions.pod:4540
15296 msgid "See also: L</command-lines>"
15297 msgstr "Див. також L</command-lines>"
15298
15299 #. type: =head2
15300 #: ../fish/guestfish-actions.pod:4542
15301 msgid "sleep"
15302 msgstr "sleep"
15303
15304 #. type: verbatim
15305 #: ../fish/guestfish-actions.pod:4544
15306 #, no-wrap
15307 msgid ""
15308 " sleep secs\n"
15309 "\n"
15310 msgstr ""
15311 " sleep час_у_секундах\n"
15312 "\n"
15313
15314 #. type: textblock
15315 #: ../fish/guestfish-actions.pod:4546 ../src/guestfs-actions.pod:6878
15316 msgid "Sleep for C<secs> seconds."
15317 msgstr ""
15318
15319 #. type: =head2
15320 #: ../fish/guestfish-actions.pod:4548
15321 msgid "stat"
15322 msgstr "stat"
15323
15324 #. type: verbatim
15325 #: ../fish/guestfish-actions.pod:4550
15326 #, no-wrap
15327 msgid ""
15328 " stat path\n"
15329 "\n"
15330 msgstr ""
15331 " stat шлях\n"
15332 "\n"
15333
15334 #. type: textblock
15335 #: ../fish/guestfish-actions.pod:4554 ../src/guestfs-actions.pod:6892
15336 msgid "This is the same as the C<stat(2)> system call."
15337 msgstr ""
15338
15339 #. type: =head2
15340 #: ../fish/guestfish-actions.pod:4556
15341 msgid "statvfs"
15342 msgstr "statvfs"
15343
15344 #. type: verbatim
15345 #: ../fish/guestfish-actions.pod:4558
15346 #, no-wrap
15347 msgid ""
15348 " statvfs path\n"
15349 "\n"
15350 msgstr ""
15351 " statvfs шлях\n"
15352 "\n"
15353
15354 #. type: textblock
15355 #: ../fish/guestfish-actions.pod:4560 ../src/guestfs-actions.pod:6906
15356 msgid ""
15357 "Returns file system statistics for any mounted file system.  C<path> should "
15358 "be a file or directory in the mounted file system (typically it is the mount "
15359 "point itself, but it doesn't need to be)."
15360 msgstr ""
15361
15362 #. type: textblock
15363 #: ../fish/guestfish-actions.pod:4564 ../src/guestfs-actions.pod:6910
15364 msgid "This is the same as the C<statvfs(2)> system call."
15365 msgstr ""
15366
15367 #. type: =head2
15368 #: ../fish/guestfish-actions.pod:4566
15369 msgid "strings"
15370 msgstr "strings"
15371
15372 #. type: verbatim
15373 #: ../fish/guestfish-actions.pod:4568
15374 #, no-wrap
15375 msgid ""
15376 " strings path\n"
15377 "\n"
15378 msgstr ""
15379 " strings шлях\n"
15380 "\n"
15381
15382 #. type: textblock
15383 #: ../fish/guestfish-actions.pod:4570 ../src/guestfs-actions.pod:6924
15384 msgid ""
15385 "This runs the L<strings(1)> command on a file and returns the list of "
15386 "printable strings found."
15387 msgstr ""
15388
15389 #. type: =head2
15390 #: ../fish/guestfish-actions.pod:4576
15391 msgid "strings-e"
15392 msgstr "strings-e"
15393
15394 #. type: verbatim
15395 #: ../fish/guestfish-actions.pod:4578
15396 #, no-wrap
15397 msgid ""
15398 " strings-e encoding path\n"
15399 "\n"
15400 msgstr ""
15401 " strings-e кодування шлях\n"
15402 "\n"
15403
15404 #. type: textblock
15405 #: ../fish/guestfish-actions.pod:4580
15406 msgid ""
15407 "This is like the L</strings> command, but allows you to specify the encoding "
15408 "of strings that are looked for in the source file C<path>."
15409 msgstr ""
15410
15411 #. type: textblock
15412 #: ../fish/guestfish-actions.pod:4584 ../src/guestfs-actions.pod:6947
15413 msgid "Allowed encodings are:"
15414 msgstr "Можливими кодуваннями є:"
15415
15416 #. type: =item
15417 #: ../fish/guestfish-actions.pod:4588 ../src/guestfs-actions.pod:6951
15418 msgid "s"
15419 msgstr "s"
15420
15421 #. type: textblock
15422 #: ../fish/guestfish-actions.pod:4590
15423 msgid ""
15424 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
15425 "ISO-8859-X (this is what L</strings> uses)."
15426 msgstr ""
15427
15428 #. type: =item
15429 #: ../fish/guestfish-actions.pod:4593 ../src/guestfs-actions.pod:6956
15430 msgid "S"
15431 msgstr "S"
15432
15433 #. type: textblock
15434 #: ../fish/guestfish-actions.pod:4595 ../src/guestfs-actions.pod:6958
15435 msgid "Single 8-bit-byte characters."
15436 msgstr "Окремі 8-бітові-байтові символи."
15437
15438 #. type: =item
15439 #: ../fish/guestfish-actions.pod:4597 ../src/guestfs-actions.pod:6960
15440 msgid "b"
15441 msgstr "b"
15442
15443 #. type: textblock
15444 #: ../fish/guestfish-actions.pod:4599 ../src/guestfs-actions.pod:6962
15445 msgid "16-bit big endian strings such as those encoded in UTF-16BE or UCS-2BE."
15446 msgstr ""
15447
15448 #. type: =item
15449 #: ../fish/guestfish-actions.pod:4602 ../src/guestfs-actions.pod:6965
15450 msgid "l (lower case letter L)"
15451 msgstr ""
15452
15453 #. type: textblock
15454 #: ../fish/guestfish-actions.pod:4604 ../src/guestfs-actions.pod:6967
15455 msgid ""
15456 "16-bit little endian such as UTF-16LE and UCS-2LE.  This is useful for "
15457 "examining binaries in Windows guests."
15458 msgstr ""
15459
15460 #. type: =item
15461 #: ../fish/guestfish-actions.pod:4607 ../src/guestfs-actions.pod:6970
15462 msgid "B"
15463 msgstr "B"
15464
15465 #. type: textblock
15466 #: ../fish/guestfish-actions.pod:4609 ../src/guestfs-actions.pod:6972
15467 msgid "32-bit big endian such as UCS-4BE."
15468 msgstr ""
15469
15470 #. type: =item
15471 #: ../fish/guestfish-actions.pod:4611 ../src/guestfs-actions.pod:6974
15472 msgid "L"
15473 msgstr "L"
15474
15475 #. type: textblock
15476 #: ../fish/guestfish-actions.pod:4613 ../src/guestfs-actions.pod:6976
15477 msgid "32-bit little endian such as UCS-4LE."
15478 msgstr ""
15479
15480 #. type: textblock
15481 #: ../fish/guestfish-actions.pod:4617 ../src/guestfs-actions.pod:6980
15482 msgid "The returned strings are transcoded to UTF-8."
15483 msgstr ""
15484
15485 #. type: =head2
15486 #: ../fish/guestfish-actions.pod:4622
15487 msgid "swapoff-device"
15488 msgstr "swapoff-device"
15489
15490 #. type: verbatim
15491 #: ../fish/guestfish-actions.pod:4624
15492 #, no-wrap
15493 msgid ""
15494 " swapoff-device device\n"
15495 "\n"
15496 msgstr ""
15497 " swapoff-device пристрій\n"
15498 "\n"
15499
15500 #. type: textblock
15501 #: ../fish/guestfish-actions.pod:4626
15502 msgid ""
15503 "This command disables the libguestfs appliance swap device or partition "
15504 "named C<device>.  See L</swapon-device>."
15505 msgstr ""
15506
15507 #. type: =head2
15508 #: ../fish/guestfish-actions.pod:4630
15509 msgid "swapoff-file"
15510 msgstr "swapoff-file"
15511
15512 #. type: verbatim
15513 #: ../fish/guestfish-actions.pod:4632
15514 #, no-wrap
15515 msgid ""
15516 " swapoff-file file\n"
15517 "\n"
15518 msgstr ""
15519 " swapoff-file файл\n"
15520 "\n"
15521
15522 #. type: textblock
15523 #: ../fish/guestfish-actions.pod:4634 ../src/guestfs-actions.pod:7011
15524 msgid "This command disables the libguestfs appliance swap on file."
15525 msgstr ""
15526
15527 #. type: =head2
15528 #: ../fish/guestfish-actions.pod:4636
15529 msgid "swapoff-label"
15530 msgstr "swapoff-label"
15531
15532 #. type: verbatim
15533 #: ../fish/guestfish-actions.pod:4638
15534 #, no-wrap
15535 msgid ""
15536 " swapoff-label label\n"
15537 "\n"
15538 msgstr ""
15539 " swapoff-label мітка\n"
15540 "\n"
15541
15542 #. type: textblock
15543 #: ../fish/guestfish-actions.pod:4640 ../src/guestfs-actions.pod:7023
15544 msgid ""
15545 "This command disables the libguestfs appliance swap on labeled swap "
15546 "partition."
15547 msgstr ""
15548
15549 #. type: =head2
15550 #: ../fish/guestfish-actions.pod:4643
15551 msgid "swapoff-uuid"
15552 msgstr "swapoff-uuid"
15553
15554 #. type: verbatim
15555 #: ../fish/guestfish-actions.pod:4645
15556 #, no-wrap
15557 msgid ""
15558 " swapoff-uuid uuid\n"
15559 "\n"
15560 msgstr ""
15561 " swapoff-uuid uuid\n"
15562 "\n"
15563
15564 #. type: textblock
15565 #: ../fish/guestfish-actions.pod:4647 ../src/guestfs-actions.pod:7036
15566 msgid ""
15567 "This command disables the libguestfs appliance swap partition with the given "
15568 "UUID."
15569 msgstr ""
15570
15571 #. type: =head2
15572 #: ../fish/guestfish-actions.pod:4650
15573 msgid "swapon-device"
15574 msgstr "swapon-device"
15575
15576 #. type: verbatim
15577 #: ../fish/guestfish-actions.pod:4652
15578 #, no-wrap
15579 msgid ""
15580 " swapon-device device\n"
15581 "\n"
15582 msgstr ""
15583 " swapon-device пристрій\n"
15584 "\n"
15585
15586 #. type: textblock
15587 #: ../fish/guestfish-actions.pod:4654
15588 msgid ""
15589 "This command enables the libguestfs appliance to use the swap device or "
15590 "partition named C<device>.  The increased memory is made available for all "
15591 "commands, for example those run using L</command> or L</sh>."
15592 msgstr ""
15593
15594 #. type: textblock
15595 #: ../fish/guestfish-actions.pod:4659 ../src/guestfs-actions.pod:7054
15596 msgid ""
15597 "Note that you should not swap to existing guest swap partitions unless you "
15598 "know what you are doing.  They may contain hibernation information, or other "
15599 "information that the guest doesn't want you to trash.  You also risk leaking "
15600 "information about the host to the guest this way.  Instead, attach a new "
15601 "host device to the guest and swap on that."
15602 msgstr ""
15603
15604 #. type: =head2
15605 #: ../fish/guestfish-actions.pod:4666
15606 msgid "swapon-file"
15607 msgstr "swapon-file"
15608
15609 #. type: verbatim
15610 #: ../fish/guestfish-actions.pod:4668
15611 #, no-wrap
15612 msgid ""
15613 " swapon-file file\n"
15614 "\n"
15615 msgstr ""
15616 " swapon-file файл\n"
15617 "\n"
15618
15619 #. type: textblock
15620 #: ../fish/guestfish-actions.pod:4670
15621 msgid ""
15622 "This command enables swap to a file.  See L</swapon-device> for other notes."
15623 msgstr ""
15624
15625 #. type: =head2
15626 #: ../fish/guestfish-actions.pod:4673
15627 msgid "swapon-label"
15628 msgstr "swapon-label"
15629
15630 #. type: verbatim
15631 #: ../fish/guestfish-actions.pod:4675
15632 #, no-wrap
15633 msgid ""
15634 " swapon-label label\n"
15635 "\n"
15636 msgstr ""
15637 " swapon-label мітка\n"
15638 "\n"
15639
15640 #. type: textblock
15641 #: ../fish/guestfish-actions.pod:4677
15642 msgid ""
15643 "This command enables swap to a labeled swap partition.  See L</swapon-"
15644 "device> for other notes."
15645 msgstr ""
15646
15647 #. type: =head2
15648 #: ../fish/guestfish-actions.pod:4680
15649 msgid "swapon-uuid"
15650 msgstr "swapon-uuid"
15651
15652 #. type: verbatim
15653 #: ../fish/guestfish-actions.pod:4682
15654 #, no-wrap
15655 msgid ""
15656 " swapon-uuid uuid\n"
15657 "\n"
15658 msgstr ""
15659 " swapon-uuid uuid\n"
15660 "\n"
15661
15662 #. type: textblock
15663 #: ../fish/guestfish-actions.pod:4684
15664 msgid ""
15665 "This command enables swap to a swap partition with the given UUID.  See L</"
15666 "swapon-device> for other notes."
15667 msgstr ""
15668
15669 #. type: =head2
15670 #: ../fish/guestfish-actions.pod:4687
15671 msgid "sync"
15672 msgstr "sync"
15673
15674 #. type: verbatim
15675 #: ../fish/guestfish-actions.pod:4689
15676 #, no-wrap
15677 msgid ""
15678 " sync\n"
15679 "\n"
15680 msgstr ""
15681 " sync\n"
15682 "\n"
15683
15684 #. type: textblock
15685 #: ../fish/guestfish-actions.pod:4691 ../src/guestfs-actions.pod:7109
15686 msgid ""
15687 "This syncs the disk, so that any writes are flushed through to the "
15688 "underlying disk image."
15689 msgstr ""
15690
15691 #. type: textblock
15692 #: ../fish/guestfish-actions.pod:4694 ../src/guestfs-actions.pod:7112
15693 msgid ""
15694 "You should always call this if you have modified a disk image, before "
15695 "closing the handle."
15696 msgstr ""
15697
15698 #. type: =head2
15699 #: ../fish/guestfish-actions.pod:4697
15700 msgid "tail"
15701 msgstr "tail"
15702
15703 #. type: verbatim
15704 #: ../fish/guestfish-actions.pod:4699
15705 #, no-wrap
15706 msgid ""
15707 " tail path\n"
15708 "\n"
15709 msgstr ""
15710 " tail шлях\n"
15711 "\n"
15712
15713 #. type: textblock
15714 #: ../fish/guestfish-actions.pod:4701 ../src/guestfs-actions.pod:7125
15715 msgid ""
15716 "This command returns up to the last 10 lines of a file as a list of strings."
15717 msgstr ""
15718
15719 #. type: =head2
15720 #: ../fish/guestfish-actions.pod:4707
15721 msgid "tail-n"
15722 msgstr "tail-n"
15723
15724 #. type: verbatim
15725 #: ../fish/guestfish-actions.pod:4709
15726 #, no-wrap
15727 msgid ""
15728 " tail-n nrlines path\n"
15729 "\n"
15730 msgstr ""
15731
15732 #. type: textblock
15733 #: ../fish/guestfish-actions.pod:4711 ../src/guestfs-actions.pod:7144
15734 msgid ""
15735 "If the parameter C<nrlines> is a positive number, this returns the last "
15736 "C<nrlines> lines of the file C<path>."
15737 msgstr ""
15738
15739 #. type: textblock
15740 #: ../fish/guestfish-actions.pod:4714 ../src/guestfs-actions.pod:7147
15741 msgid ""
15742 "If the parameter C<nrlines> is a negative number, this returns lines from "
15743 "the file C<path>, starting with the C<-nrlines>th line."
15744 msgstr ""
15745
15746 #. type: =head2
15747 #: ../fish/guestfish-actions.pod:4722
15748 msgid "tar-in"
15749 msgstr "tar-in"
15750
15751 #. type: verbatim
15752 #: ../fish/guestfish-actions.pod:4724
15753 #, no-wrap
15754 msgid ""
15755 " tar-in (tarfile|-) directory\n"
15756 "\n"
15757 msgstr ""
15758 " tar-in (файл_tar|-) каталог\n"
15759 "\n"
15760
15761 #. type: textblock
15762 #: ../fish/guestfish-actions.pod:4726 ../src/guestfs-actions.pod:7168
15763 msgid ""
15764 "This command uploads and unpacks local file C<tarfile> (an I<uncompressed> "
15765 "tar file) into C<directory>."
15766 msgstr ""
15767
15768 #. type: textblock
15769 #: ../fish/guestfish-actions.pod:4729
15770 msgid "To upload a compressed tarball, use L</tgz-in> or L</txz-in>."
15771 msgstr ""
15772
15773 #. type: =head2
15774 #: ../fish/guestfish-actions.pod:4734
15775 msgid "tar-out"
15776 msgstr "tar-out"
15777
15778 #. type: verbatim
15779 #: ../fish/guestfish-actions.pod:4736
15780 #, no-wrap
15781 msgid ""
15782 " tar-out directory (tarfile|-)\n"
15783 "\n"
15784 msgstr ""
15785 " tar-out каталог (файл tar|-)\n"
15786 "\n"
15787
15788 #. type: textblock
15789 #: ../fish/guestfish-actions.pod:4738 ../src/guestfs-actions.pod:7185
15790 msgid ""
15791 "This command packs the contents of C<directory> and downloads it to local "
15792 "file C<tarfile>."
15793 msgstr ""
15794
15795 #. type: textblock
15796 #: ../fish/guestfish-actions.pod:4741
15797 msgid "To download a compressed tarball, use L</tgz-out> or L</txz-out>."
15798 msgstr ""
15799
15800 #. type: =head2
15801 #: ../fish/guestfish-actions.pod:4746
15802 msgid "tgz-in"
15803 msgstr "tgz-in"
15804
15805 #. type: verbatim
15806 #: ../fish/guestfish-actions.pod:4748
15807 #, no-wrap
15808 msgid ""
15809 " tgz-in (tarball|-) directory\n"
15810 "\n"
15811 msgstr ""
15812 " tgz-in (архів tar|-) каталог\n"
15813 "\n"
15814
15815 #. type: textblock
15816 #: ../fish/guestfish-actions.pod:4750 ../src/guestfs-actions.pod:7202
15817 msgid ""
15818 "This command uploads and unpacks local file C<tarball> (a I<gzip compressed> "
15819 "tar file) into C<directory>."
15820 msgstr ""
15821
15822 #. type: textblock
15823 #: ../fish/guestfish-actions.pod:4753
15824 msgid "To upload an uncompressed tarball, use L</tar-in>."
15825 msgstr ""
15826
15827 #. type: =head2
15828 #: ../fish/guestfish-actions.pod:4757
15829 msgid "tgz-out"
15830 msgstr "tgz-out"
15831
15832 #. type: verbatim
15833 #: ../fish/guestfish-actions.pod:4759
15834 #, no-wrap
15835 msgid ""
15836 " tgz-out directory (tarball|-)\n"
15837 "\n"
15838 msgstr ""
15839 " tgz-out каталог (архів tar|-)\n"
15840 "\n"
15841
15842 #. type: textblock
15843 #: ../fish/guestfish-actions.pod:4761 ../src/guestfs-actions.pod:7218
15844 msgid ""
15845 "This command packs the contents of C<directory> and downloads it to local "
15846 "file C<tarball>."
15847 msgstr ""
15848
15849 #. type: textblock
15850 #: ../fish/guestfish-actions.pod:4764
15851 msgid "To download an uncompressed tarball, use L</tar-out>."
15852 msgstr ""
15853
15854 #. type: =head2
15855 #: ../fish/guestfish-actions.pod:4768
15856 msgid "touch"
15857 msgstr "touch"
15858
15859 #. type: verbatim
15860 #: ../fish/guestfish-actions.pod:4770
15861 #, no-wrap
15862 msgid ""
15863 " touch path\n"
15864 "\n"
15865 msgstr ""
15866 " touch шлях\n"
15867 "\n"
15868
15869 #. type: textblock
15870 #: ../fish/guestfish-actions.pod:4772 ../src/guestfs-actions.pod:7233
15871 msgid ""
15872 "Touch acts like the L<touch(1)> command.  It can be used to update the "
15873 "timestamps on a file, or, if the file does not exist, to create a new zero-"
15874 "length file."
15875 msgstr ""
15876
15877 #. type: textblock
15878 #: ../fish/guestfish-actions.pod:4776 ../src/guestfs-actions.pod:7237
15879 msgid ""
15880 "This command only works on regular files, and will fail on other file types "
15881 "such as directories, symbolic links, block special etc."
15882 msgstr ""
15883
15884 #. type: =head2
15885 #: ../fish/guestfish-actions.pod:4779
15886 msgid "truncate"
15887 msgstr "truncate"
15888
15889 #. type: verbatim
15890 #: ../fish/guestfish-actions.pod:4781
15891 #, no-wrap
15892 msgid ""
15893 " truncate path\n"
15894 "\n"
15895 msgstr ""
15896 " truncate шлях\n"
15897 "\n"
15898
15899 #. type: textblock
15900 #: ../fish/guestfish-actions.pod:4783 ../src/guestfs-actions.pod:7250
15901 msgid ""
15902 "This command truncates C<path> to a zero-length file.  The file must exist "
15903 "already."
15904 msgstr ""
15905
15906 #. type: =head2
15907 #: ../fish/guestfish-actions.pod:4786
15908 msgid "truncate-size"
15909 msgstr "truncate-size"
15910
15911 #. type: verbatim
15912 #: ../fish/guestfish-actions.pod:4788
15913 #, no-wrap
15914 msgid ""
15915 " truncate-size path size\n"
15916 "\n"
15917 msgstr ""
15918 " truncate-size шлях розмір\n"
15919 "\n"
15920
15921 #. type: textblock
15922 #: ../fish/guestfish-actions.pod:4790 ../src/guestfs-actions.pod:7264
15923 msgid ""
15924 "This command truncates C<path> to size C<size> bytes.  The file must exist "
15925 "already."
15926 msgstr ""
15927
15928 #. type: textblock
15929 #: ../fish/guestfish-actions.pod:4793
15930 msgid ""
15931 "If the current file size is less than C<size> then the file is extended to "
15932 "the required size with zero bytes.  This creates a sparse file (ie. disk "
15933 "blocks are not allocated for the file until you write to it).  To create a "
15934 "non-sparse file of zeroes, use L</fallocate64> instead."
15935 msgstr ""
15936
15937 #. type: =head2
15938 #: ../fish/guestfish-actions.pod:4799
15939 msgid "tune2fs-l"
15940 msgstr "tune2fs-l"
15941
15942 #. type: verbatim
15943 #: ../fish/guestfish-actions.pod:4801
15944 #, no-wrap
15945 msgid ""
15946 " tune2fs-l device\n"
15947 "\n"
15948 msgstr ""
15949 " tune2fs-l пристрій\n"
15950 "\n"
15951
15952 #. type: textblock
15953 #: ../fish/guestfish-actions.pod:4803 ../src/guestfs-actions.pod:7283
15954 msgid ""
15955 "This returns the contents of the ext2, ext3 or ext4 filesystem superblock on "
15956 "C<device>."
15957 msgstr ""
15958
15959 #. type: textblock
15960 #: ../fish/guestfish-actions.pod:4806 ../src/guestfs-actions.pod:7286
15961 msgid ""
15962 "It is the same as running C<tune2fs -l device>.  See L<tune2fs(8)> manpage "
15963 "for more details.  The list of fields returned isn't clearly defined, and "
15964 "depends on both the version of C<tune2fs> that libguestfs was built against, "
15965 "and the filesystem itself."
15966 msgstr ""
15967
15968 #. type: =head2
15969 #: ../fish/guestfish-actions.pod:4811
15970 msgid "txz-in"
15971 msgstr "txz-in"
15972
15973 #. type: verbatim
15974 #: ../fish/guestfish-actions.pod:4813
15975 #, no-wrap
15976 msgid ""
15977 " txz-in (tarball|-) directory\n"
15978 "\n"
15979 msgstr ""
15980 " txz-in (архів tar|-) каталог\n"
15981 "\n"
15982
15983 #. type: textblock
15984 #: ../fish/guestfish-actions.pod:4815 ../src/guestfs-actions.pod:7306
15985 msgid ""
15986 "This command uploads and unpacks local file C<tarball> (an I<xz compressed> "
15987 "tar file) into C<directory>."
15988 msgstr ""
15989
15990 #. type: =head2
15991 #: ../fish/guestfish-actions.pod:4820
15992 msgid "txz-out"
15993 msgstr "txz-out"
15994
15995 #. type: verbatim
15996 #: ../fish/guestfish-actions.pod:4822
15997 #, no-wrap
15998 msgid ""
15999 " txz-out directory (tarball|-)\n"
16000 "\n"
16001 msgstr ""
16002 " txz-out каталог (архів tar|-)\n"
16003 "\n"
16004
16005 #. type: textblock
16006 #: ../fish/guestfish-actions.pod:4824 ../src/guestfs-actions.pod:7320
16007 msgid ""
16008 "This command packs the contents of C<directory> and downloads it to local "
16009 "file C<tarball> (as an xz compressed tar archive)."
16010 msgstr ""
16011
16012 #. type: =head2
16013 #: ../fish/guestfish-actions.pod:4829
16014 msgid "umask"
16015 msgstr "umask"
16016
16017 #. type: verbatim
16018 #: ../fish/guestfish-actions.pod:4831
16019 #, no-wrap
16020 msgid ""
16021 " umask mask\n"
16022 "\n"
16023 msgstr ""
16024 " umask маска\n"
16025 "\n"
16026
16027 #. type: textblock
16028 #: ../fish/guestfish-actions.pod:4833 ../src/guestfs-actions.pod:7333
16029 msgid ""
16030 "This function sets the mask used for creating new files and device nodes to "
16031 "C<mask & 0777>."
16032 msgstr ""
16033
16034 #. type: textblock
16035 #: ../fish/guestfish-actions.pod:4836 ../src/guestfs-actions.pod:7336
16036 msgid ""
16037 "Typical umask values would be C<022> which creates new files with "
16038 "permissions like \"-rw-r--r--\" or \"-rwxr-xr-x\", and C<002> which creates "
16039 "new files with permissions like \"-rw-rw-r--\" or \"-rwxrwxr-x\"."
16040 msgstr ""
16041
16042 #. type: textblock
16043 #: ../fish/guestfish-actions.pod:4841 ../src/guestfs-actions.pod:7341
16044 msgid ""
16045 "The default umask is C<022>.  This is important because it means that "
16046 "directories and device nodes will be created with C<0644> or C<0755> mode "
16047 "even if you specify C<0777>."
16048 msgstr ""
16049
16050 #. type: textblock
16051 #: ../fish/guestfish-actions.pod:4845
16052 msgid "See also L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16053 msgstr "Див. також L</get-umask>, L<umask(2)>, L</mknod>, L</mkdir>."
16054
16055 #. type: textblock
16056 #: ../fish/guestfish-actions.pod:4848 ../src/guestfs-actions.pod:7348
16057 msgid "This call returns the previous umask."
16058 msgstr ""
16059
16060 #. type: =head2
16061 #: ../fish/guestfish-actions.pod:4850
16062 msgid "umount"
16063 msgstr "umount"
16064
16065 #. type: =head2
16066 #: ../fish/guestfish-actions.pod:4852
16067 msgid "unmount"
16068 msgstr "unmount"
16069
16070 #. type: verbatim
16071 #: ../fish/guestfish-actions.pod:4854
16072 #, no-wrap
16073 msgid ""
16074 " umount pathordevice\n"
16075 "\n"
16076 msgstr ""
16077 " umount шлях_або_пристрій\n"
16078 "\n"
16079
16080 #. type: textblock
16081 #: ../fish/guestfish-actions.pod:4856 ../src/guestfs-actions.pod:7360
16082 msgid ""
16083 "This unmounts the given filesystem.  The filesystem may be specified either "
16084 "by its mountpoint (path) or the device which contains the filesystem."
16085 msgstr ""
16086
16087 #. type: =head2
16088 #: ../fish/guestfish-actions.pod:4860
16089 msgid "umount-all"
16090 msgstr "umount-all"
16091
16092 #. type: =head2
16093 #: ../fish/guestfish-actions.pod:4862
16094 msgid "unmount-all"
16095 msgstr "unmount-all"
16096
16097 #. type: verbatim
16098 #: ../fish/guestfish-actions.pod:4864
16099 #, no-wrap
16100 msgid ""
16101 " umount-all\n"
16102 "\n"
16103 msgstr ""
16104 " umount-all\n"
16105 "\n"
16106
16107 #. type: textblock
16108 #: ../fish/guestfish-actions.pod:4866 ../src/guestfs-actions.pod:7373
16109 msgid "This unmounts all mounted filesystems."
16110 msgstr ""
16111
16112 #. type: textblock
16113 #: ../fish/guestfish-actions.pod:4868 ../src/guestfs-actions.pod:7375
16114 msgid "Some internal mounts are not unmounted by this call."
16115 msgstr ""
16116
16117 #. type: =head2
16118 #: ../fish/guestfish-actions.pod:4870
16119 msgid "upload"
16120 msgstr "upload"
16121
16122 #. type: verbatim
16123 #: ../fish/guestfish-actions.pod:4872
16124 #, no-wrap
16125 msgid ""
16126 " upload (filename|-) remotefilename\n"
16127 "\n"
16128 msgstr ""
16129 " upload (назва_файла|-) назва_віддаленого_файла\n"
16130 "\n"
16131
16132 #. type: textblock
16133 #: ../fish/guestfish-actions.pod:4874 ../fish/guestfish-actions.pod:4887
16134 #: ../src/guestfs-actions.pod:7388 ../src/guestfs-actions.pod:7412
16135 msgid "Upload local file C<filename> to C<remotefilename> on the filesystem."
16136 msgstr ""
16137
16138 #. type: textblock
16139 #: ../fish/guestfish-actions.pod:4879
16140 msgid "See also L</download>."
16141 msgstr "Див. також L</download>."
16142
16143 #. type: =head2
16144 #: ../fish/guestfish-actions.pod:4883
16145 msgid "upload-offset"
16146 msgstr "upload-offset"
16147
16148 #. type: verbatim
16149 #: ../fish/guestfish-actions.pod:4885
16150 #, no-wrap
16151 msgid ""
16152 " upload-offset (filename|-) remotefilename offset\n"
16153 "\n"
16154 msgstr ""
16155 " upload-offset (назва_файла|-) назва_віддаленого_файла відступ\n"
16156 "\n"
16157
16158 #. type: textblock
16159 #: ../fish/guestfish-actions.pod:4890 ../src/guestfs-actions.pod:7415
16160 msgid ""
16161 "C<remotefilename> is overwritten starting at the byte C<offset> specified.  "
16162 "The intention is to overwrite parts of existing files or devices, although "
16163 "if a non-existant file is specified then it is created with a \"hole\" "
16164 "before C<offset>.  The size of the data written is implicit in the size of "
16165 "the source C<filename>."
16166 msgstr ""
16167
16168 #. type: textblock
16169 #: ../fish/guestfish-actions.pod:4897
16170 msgid ""
16171 "Note that there is no limit on the amount of data that can be uploaded with "
16172 "this call, unlike with L</pwrite>, and this call always writes the full "
16173 "amount unless an error occurs."
16174 msgstr ""
16175
16176 #. type: textblock
16177 #: ../fish/guestfish-actions.pod:4902
16178 msgid "See also L</upload>, L</pwrite>."
16179 msgstr "Див. також L</upload>, L</pwrite>."
16180
16181 #. type: =head2
16182 #: ../fish/guestfish-actions.pod:4906
16183 msgid "utimens"
16184 msgstr "utimens"
16185
16186 #. type: verbatim
16187 #: ../fish/guestfish-actions.pod:4908
16188 #, no-wrap
16189 msgid ""
16190 " utimens path atsecs atnsecs mtsecs mtnsecs\n"
16191 "\n"
16192 msgstr ""
16193
16194 #. type: textblock
16195 #: ../fish/guestfish-actions.pod:4910 ../src/guestfs-actions.pod:7448
16196 msgid "This command sets the timestamps of a file with nanosecond precision."
16197 msgstr ""
16198
16199 #. type: textblock
16200 #: ../fish/guestfish-actions.pod:4913 ../src/guestfs-actions.pod:7451
16201 msgid ""
16202 "C<atsecs, atnsecs> are the last access time (atime) in secs and nanoseconds "
16203 "from the epoch."
16204 msgstr ""
16205
16206 #. type: textblock
16207 #: ../fish/guestfish-actions.pod:4916 ../src/guestfs-actions.pod:7454
16208 msgid ""
16209 "C<mtsecs, mtnsecs> are the last modification time (mtime) in secs and "
16210 "nanoseconds from the epoch."
16211 msgstr ""
16212
16213 #. type: textblock
16214 #: ../fish/guestfish-actions.pod:4919 ../src/guestfs-actions.pod:7457
16215 msgid ""
16216 "If the C<*nsecs> field contains the special value C<-1> then the "
16217 "corresponding timestamp is set to the current time.  (The C<*secs> field is "
16218 "ignored in this case)."
16219 msgstr ""
16220
16221 #. type: textblock
16222 #: ../fish/guestfish-actions.pod:4923 ../src/guestfs-actions.pod:7461
16223 msgid ""
16224 "If the C<*nsecs> field contains the special value C<-2> then the "
16225 "corresponding timestamp is left unchanged.  (The C<*secs> field is ignored "
16226 "in this case)."
16227 msgstr ""
16228
16229 #. type: =head2
16230 #: ../fish/guestfish-actions.pod:4927
16231 msgid "version"
16232 msgstr "version"
16233
16234 #. type: verbatim
16235 #: ../fish/guestfish-actions.pod:4929
16236 #, no-wrap
16237 msgid ""
16238 " version\n"
16239 "\n"
16240 msgstr ""
16241 " version\n"
16242 "\n"
16243
16244 #. type: textblock
16245 #: ../fish/guestfish-actions.pod:4931 ../src/guestfs-actions.pod:7474
16246 msgid ""
16247 "Return the libguestfs version number that the program is linked against."
16248 msgstr ""
16249
16250 #. type: textblock
16251 #: ../fish/guestfish-actions.pod:4934 ../src/guestfs-actions.pod:7477
16252 msgid ""
16253 "Note that because of dynamic linking this is not necessarily the version of "
16254 "libguestfs that you compiled against.  You can compile the program, and then "
16255 "at runtime dynamically link against a completely different C<libguestfs.so> "
16256 "library."
16257 msgstr ""
16258
16259 #. type: textblock
16260 #: ../fish/guestfish-actions.pod:4939 ../src/guestfs-actions.pod:7482
16261 msgid ""
16262 "This call was added in version C<1.0.58>.  In previous versions of "
16263 "libguestfs there was no way to get the version number.  From C code you can "
16264 "use dynamic linker functions to find out if this symbol exists (if it "
16265 "doesn't, then it's an earlier version)."
16266 msgstr ""
16267
16268 #. type: textblock
16269 #: ../fish/guestfish-actions.pod:4945 ../src/guestfs-actions.pod:7488
16270 msgid ""
16271 "The call returns a structure with four elements.  The first three (C<major>, "
16272 "C<minor> and C<release>) are numbers and correspond to the usual version "
16273 "triplet.  The fourth element (C<extra>) is a string and is normally empty, "
16274 "but may be used for distro-specific information."
16275 msgstr ""
16276
16277 #. type: textblock
16278 #: ../fish/guestfish-actions.pod:4951 ../src/guestfs-actions.pod:7494
16279 msgid ""
16280 "To construct the original version string: C<$major.$minor.$release$extra>"
16281 msgstr ""
16282
16283 #. type: textblock
16284 #: ../fish/guestfish-actions.pod:4954 ../src/guestfs-actions.pod:7497
16285 msgid "See also: L<guestfs(3)/LIBGUESTFS VERSION NUMBERS>."
16286 msgstr ""
16287
16288 #. type: textblock
16289 #: ../fish/guestfish-actions.pod:4956
16290 msgid ""
16291 "I<Note:> Don't use this call to test for availability of features.  In "
16292 "enterprise distributions we backport features from later versions into "
16293 "earlier versions, making this an unreliable way to test for features.  Use "
16294 "L</available> instead."
16295 msgstr ""
16296
16297 #. type: =head2
16298 #: ../fish/guestfish-actions.pod:4962
16299 msgid "vfs-label"
16300 msgstr "vfs-label"
16301
16302 #. type: verbatim
16303 #: ../fish/guestfish-actions.pod:4964
16304 #, no-wrap
16305 msgid ""
16306 " vfs-label device\n"
16307 "\n"
16308 msgstr ""
16309 " vfs-label пристрій\n"
16310 "\n"
16311
16312 #. type: textblock
16313 #: ../fish/guestfish-actions.pod:4966 ../src/guestfs-actions.pod:7517
16314 msgid "This returns the filesystem label of the filesystem on C<device>."
16315 msgstr ""
16316
16317 #. type: textblock
16318 #: ../fish/guestfish-actions.pod:4969 ../src/guestfs-actions.pod:7520
16319 msgid "If the filesystem is unlabeled, this returns the empty string."
16320 msgstr ""
16321
16322 #. type: textblock
16323 #: ../fish/guestfish-actions.pod:4971
16324 msgid "To find a filesystem from the label, use L</findfs-label>."
16325 msgstr ""
16326
16327 #. type: =head2
16328 #: ../fish/guestfish-actions.pod:4973
16329 msgid "vfs-type"
16330 msgstr "vfs-type"
16331
16332 #. type: verbatim
16333 #: ../fish/guestfish-actions.pod:4975
16334 #, no-wrap
16335 msgid ""
16336 " vfs-type device\n"
16337 "\n"
16338 msgstr ""
16339 " vfs-type пристрій\n"
16340 "\n"
16341
16342 #. type: textblock
16343 #: ../fish/guestfish-actions.pod:4977 ../src/guestfs-actions.pod:7535
16344 msgid ""
16345 "This command gets the filesystem type corresponding to the filesystem on "
16346 "C<device>."
16347 msgstr ""
16348
16349 #. type: textblock
16350 #: ../fish/guestfish-actions.pod:4980 ../src/guestfs-actions.pod:7538
16351 msgid ""
16352 "For most filesystems, the result is the name of the Linux VFS module which "
16353 "would be used to mount this filesystem if you mounted it without specifying "
16354 "the filesystem type.  For example a string such as C<ext3> or C<ntfs>."
16355 msgstr ""
16356
16357 #. type: =head2
16358 #: ../fish/guestfish-actions.pod:4985
16359 msgid "vfs-uuid"
16360 msgstr "vfs-uuid"
16361
16362 #. type: verbatim
16363 #: ../fish/guestfish-actions.pod:4987
16364 #, no-wrap
16365 msgid ""
16366 " vfs-uuid device\n"
16367 "\n"
16368 msgstr ""
16369 " vfs-uuid пристрій\n"
16370 "\n"
16371
16372 #. type: textblock
16373 #: ../fish/guestfish-actions.pod:4989 ../src/guestfs-actions.pod:7554
16374 msgid "This returns the filesystem UUID of the filesystem on C<device>."
16375 msgstr ""
16376
16377 #. type: textblock
16378 #: ../fish/guestfish-actions.pod:4992 ../src/guestfs-actions.pod:7557
16379 msgid "If the filesystem does not have a UUID, this returns the empty string."
16380 msgstr ""
16381
16382 #. type: textblock
16383 #: ../fish/guestfish-actions.pod:4994
16384 msgid "To find a filesystem from the UUID, use L</findfs-uuid>."
16385 msgstr ""
16386
16387 #. type: =head2
16388 #: ../fish/guestfish-actions.pod:4996
16389 msgid "vg-activate"
16390 msgstr "vg-activate"
16391
16392 #. type: verbatim
16393 #: ../fish/guestfish-actions.pod:4998
16394 #, no-wrap
16395 msgid ""
16396 " vg-activate true|false 'volgroups ...'\n"
16397 "\n"
16398 msgstr ""
16399
16400 #. type: textblock
16401 #: ../fish/guestfish-actions.pod:5000 ../src/guestfs-actions.pod:7573
16402 msgid ""
16403 "This command activates or (if C<activate> is false) deactivates all logical "
16404 "volumes in the listed volume groups C<volgroups>."
16405 msgstr ""
16406
16407 #. type: textblock
16408 #: ../fish/guestfish-actions.pod:5003 ../src/guestfs-actions.pod:7576
16409 msgid "This command is the same as running C<vgchange -a y|n volgroups...>"
16410 msgstr ""
16411
16412 #. type: textblock
16413 #: ../fish/guestfish-actions.pod:5005 ../src/guestfs-actions.pod:7578
16414 msgid ""
16415 "Note that if C<volgroups> is an empty list then B<all> volume groups are "
16416 "activated or deactivated."
16417 msgstr ""
16418
16419 #. type: =head2
16420 #: ../fish/guestfish-actions.pod:5008
16421 msgid "vg-activate-all"
16422 msgstr "vg-activate-all"
16423
16424 #. type: verbatim
16425 #: ../fish/guestfish-actions.pod:5010
16426 #, no-wrap
16427 msgid ""
16428 " vg-activate-all true|false\n"
16429 "\n"
16430 msgstr ""
16431 " vg-activate-all true|false\n"
16432 "\n"
16433
16434 #. type: textblock
16435 #: ../fish/guestfish-actions.pod:5012 ../src/guestfs-actions.pod:7591
16436 msgid ""
16437 "This command activates or (if C<activate> is false) deactivates all logical "
16438 "volumes in all volume groups."
16439 msgstr ""
16440
16441 #. type: textblock
16442 #: ../fish/guestfish-actions.pod:5015 ../src/guestfs-actions.pod:7594
16443 msgid "This command is the same as running C<vgchange -a y|n>"
16444 msgstr ""
16445
16446 #. type: =head2
16447 #: ../fish/guestfish-actions.pod:5017
16448 msgid "vgcreate"
16449 msgstr "vgcreate"
16450
16451 #. type: verbatim
16452 #: ../fish/guestfish-actions.pod:5019
16453 #, no-wrap
16454 msgid ""
16455 " vgcreate volgroup 'physvols ...'\n"
16456 "\n"
16457 msgstr ""
16458
16459 #. type: textblock
16460 #: ../fish/guestfish-actions.pod:5021 ../src/guestfs-actions.pod:7607
16461 msgid ""
16462 "This creates an LVM volume group called C<volgroup> from the non-empty list "
16463 "of physical volumes C<physvols>."
16464 msgstr ""
16465
16466 #. type: =head2
16467 #: ../fish/guestfish-actions.pod:5024
16468 msgid "vglvuuids"
16469 msgstr "vglvuuids"
16470
16471 #. type: verbatim
16472 #: ../fish/guestfish-actions.pod:5026
16473 #, no-wrap
16474 msgid ""
16475 " vglvuuids vgname\n"
16476 "\n"
16477 msgstr ""
16478
16479 #. type: textblock
16480 #: ../fish/guestfish-actions.pod:5028 ../src/guestfs-actions.pod:7620
16481 msgid ""
16482 "Given a VG called C<vgname>, this returns the UUIDs of all the logical "
16483 "volumes created in this volume group."
16484 msgstr ""
16485
16486 #. type: textblock
16487 #: ../fish/guestfish-actions.pod:5031
16488 msgid ""
16489 "You can use this along with L</lvs> and L</lvuuid> calls to associate "
16490 "logical volumes and volume groups."
16491 msgstr ""
16492
16493 #. type: textblock
16494 #: ../fish/guestfish-actions.pod:5034
16495 msgid "See also L</vgpvuuids>."
16496 msgstr "Див. також L</vgpvuuids>."
16497
16498 #. type: =head2
16499 #: ../fish/guestfish-actions.pod:5036
16500 msgid "vgpvuuids"
16501 msgstr "vgpvuuids"
16502
16503 #. type: verbatim
16504 #: ../fish/guestfish-actions.pod:5038
16505 #, no-wrap
16506 msgid ""
16507 " vgpvuuids vgname\n"
16508 "\n"
16509 msgstr ""
16510
16511 #. type: textblock
16512 #: ../fish/guestfish-actions.pod:5040 ../src/guestfs-actions.pod:7640
16513 msgid ""
16514 "Given a VG called C<vgname>, this returns the UUIDs of all the physical "
16515 "volumes that this volume group resides on."
16516 msgstr ""
16517
16518 #. type: textblock
16519 #: ../fish/guestfish-actions.pod:5043
16520 msgid ""
16521 "You can use this along with L</pvs> and L</pvuuid> calls to associate "
16522 "physical volumes and volume groups."
16523 msgstr ""
16524
16525 #. type: textblock
16526 #: ../fish/guestfish-actions.pod:5046
16527 msgid "See also L</vglvuuids>."
16528 msgstr "Див. також L</vglvuuids>."
16529
16530 #. type: =head2
16531 #: ../fish/guestfish-actions.pod:5048
16532 msgid "vgremove"
16533 msgstr "vgremove"
16534
16535 #. type: verbatim
16536 #: ../fish/guestfish-actions.pod:5050
16537 #, no-wrap
16538 msgid ""
16539 " vgremove vgname\n"
16540 "\n"
16541 msgstr ""
16542
16543 #. type: textblock
16544 #: ../fish/guestfish-actions.pod:5052 ../src/guestfs-actions.pod:7660
16545 msgid "Remove an LVM volume group C<vgname>, (for example C<VG>)."
16546 msgstr ""
16547
16548 #. type: textblock
16549 #: ../fish/guestfish-actions.pod:5054 ../src/guestfs-actions.pod:7662
16550 msgid ""
16551 "This also forcibly removes all logical volumes in the volume group (if any)."
16552 msgstr ""
16553
16554 #. type: =head2
16555 #: ../fish/guestfish-actions.pod:5057
16556 msgid "vgrename"
16557 msgstr "vgrename"
16558
16559 #. type: verbatim
16560 #: ../fish/guestfish-actions.pod:5059
16561 #, no-wrap
16562 msgid ""
16563 " vgrename volgroup newvolgroup\n"
16564 "\n"
16565 msgstr ""
16566
16567 #. type: textblock
16568 #: ../fish/guestfish-actions.pod:5061 ../src/guestfs-actions.pod:7676
16569 msgid "Rename a volume group C<volgroup> with the new name C<newvolgroup>."
16570 msgstr ""
16571
16572 #. type: =head2
16573 #: ../fish/guestfish-actions.pod:5063
16574 msgid "vgs"
16575 msgstr "vgs"
16576
16577 #. type: verbatim
16578 #: ../fish/guestfish-actions.pod:5065
16579 #, no-wrap
16580 msgid ""
16581 " vgs\n"
16582 "\n"
16583 msgstr ""
16584 " vgs\n"
16585 "\n"
16586
16587 #. type: textblock
16588 #: ../fish/guestfish-actions.pod:5067 ../src/guestfs-actions.pod:7687
16589 msgid ""
16590 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
16591 "> command."
16592 msgstr ""
16593
16594 #. type: textblock
16595 #: ../fish/guestfish-actions.pod:5070 ../src/guestfs-actions.pod:7690
16596 msgid ""
16597 "This returns a list of just the volume group names that were detected (eg. "
16598 "C<VolGroup00>)."
16599 msgstr ""
16600
16601 #. type: textblock
16602 #: ../fish/guestfish-actions.pod:5073
16603 msgid "See also L</vgs-full>."
16604 msgstr "Див. також L</vgs-full>."
16605
16606 #. type: =head2
16607 #: ../fish/guestfish-actions.pod:5075
16608 msgid "vgs-full"
16609 msgstr "vgs-full"
16610
16611 #. type: verbatim
16612 #: ../fish/guestfish-actions.pod:5077
16613 #, no-wrap
16614 msgid ""
16615 " vgs-full\n"
16616 "\n"
16617 msgstr ""
16618 " vgs-full\n"
16619 "\n"
16620
16621 #. type: textblock
16622 #: ../fish/guestfish-actions.pod:5079 ../src/guestfs-actions.pod:7706
16623 msgid ""
16624 "List all the volumes groups detected.  This is the equivalent of the L<vgs(8)"
16625 "> command.  The \"full\" version includes all fields."
16626 msgstr ""
16627
16628 #. type: =head2
16629 #: ../fish/guestfish-actions.pod:5082
16630 msgid "vgscan"
16631 msgstr "vgscan"
16632
16633 #. type: verbatim
16634 #: ../fish/guestfish-actions.pod:5084
16635 #, no-wrap
16636 msgid ""
16637 " vgscan\n"
16638 "\n"
16639 msgstr ""
16640 " vgscan\n"
16641 "\n"
16642
16643 #. type: textblock
16644 #: ../fish/guestfish-actions.pod:5086 ../src/guestfs-actions.pod:7720
16645 msgid ""
16646 "This rescans all block devices and rebuilds the list of LVM physical "
16647 "volumes, volume groups and logical volumes."
16648 msgstr ""
16649
16650 #. type: =head2
16651 #: ../fish/guestfish-actions.pod:5089
16652 msgid "vguuid"
16653 msgstr "vguuid"
16654
16655 #. type: verbatim
16656 #: ../fish/guestfish-actions.pod:5091
16657 #, no-wrap
16658 msgid ""
16659 " vguuid vgname\n"
16660 "\n"
16661 msgstr ""
16662
16663 #. type: textblock
16664 #: ../fish/guestfish-actions.pod:5093 ../src/guestfs-actions.pod:7733
16665 msgid "This command returns the UUID of the LVM VG named C<vgname>."
16666 msgstr ""
16667
16668 #. type: =head2
16669 #: ../fish/guestfish-actions.pod:5095
16670 msgid "wc-c"
16671 msgstr "wc-c"
16672
16673 #. type: verbatim
16674 #: ../fish/guestfish-actions.pod:5097
16675 #, no-wrap
16676 msgid ""
16677 " wc-c path\n"
16678 "\n"
16679 msgstr ""
16680 " wc-c шлях\n"
16681 "\n"
16682
16683 #. type: textblock
16684 #: ../fish/guestfish-actions.pod:5099 ../src/guestfs-actions.pod:7773
16685 msgid ""
16686 "This command counts the characters in a file, using the C<wc -c> external "
16687 "command."
16688 msgstr ""
16689
16690 #. type: =head2
16691 #: ../fish/guestfish-actions.pod:5102
16692 msgid "wc-l"
16693 msgstr "wc-l"
16694
16695 #. type: verbatim
16696 #: ../fish/guestfish-actions.pod:5104
16697 #, no-wrap
16698 msgid ""
16699 " wc-l path\n"
16700 "\n"
16701 msgstr ""
16702 " wc-l шлях\n"
16703 "\n"
16704
16705 #. type: textblock
16706 #: ../fish/guestfish-actions.pod:5106 ../src/guestfs-actions.pod:7786
16707 msgid ""
16708 "This command counts the lines in a file, using the C<wc -l> external command."
16709 msgstr ""
16710
16711 #. type: =head2
16712 #: ../fish/guestfish-actions.pod:5109
16713 msgid "wc-w"
16714 msgstr "wc-w"
16715
16716 #. type: verbatim
16717 #: ../fish/guestfish-actions.pod:5111
16718 #, no-wrap
16719 msgid ""
16720 " wc-w path\n"
16721 "\n"
16722 msgstr ""
16723 " wc-w шлях\n"
16724 "\n"
16725
16726 #. type: textblock
16727 #: ../fish/guestfish-actions.pod:5113 ../src/guestfs-actions.pod:7799
16728 msgid ""
16729 "This command counts the words in a file, using the C<wc -w> external command."
16730 msgstr ""
16731
16732 #. type: =head2
16733 #: ../fish/guestfish-actions.pod:5116
16734 msgid "write"
16735 msgstr "write"
16736
16737 #. type: verbatim
16738 #: ../fish/guestfish-actions.pod:5118
16739 #, no-wrap
16740 msgid ""
16741 " write path content\n"
16742 "\n"
16743 msgstr ""
16744 " write шлях дані\n"
16745 "\n"
16746
16747 #. type: textblock
16748 #: ../fish/guestfish-actions.pod:5120 ../src/guestfs-actions.pod:7814
16749 msgid ""
16750 "This call creates a file called C<path>.  The content of the file is the "
16751 "string C<content> (which can contain any 8 bit data)."
16752 msgstr ""
16753
16754 #. type: textblock
16755 #: ../fish/guestfish-actions.pod:5123
16756 msgid "See also L</write-append>."
16757 msgstr ""
16758
16759 #. type: =head2
16760 #: ../fish/guestfish-actions.pod:5128
16761 msgid "write-append"
16762 msgstr ""
16763
16764 #. type: verbatim
16765 #: ../fish/guestfish-actions.pod:5130
16766 #, no-wrap
16767 msgid ""
16768 " write-append path content\n"
16769 "\n"
16770 msgstr ""
16771
16772 #. type: textblock
16773 #: ../fish/guestfish-actions.pod:5132 ../src/guestfs-actions.pod:7834
16774 msgid ""
16775 "This call appends C<content> to the end of file C<path>.  If C<path> does "
16776 "not exist, then a new file is created."
16777 msgstr ""
16778
16779 #. type: textblock
16780 #: ../fish/guestfish-actions.pod:5135
16781 msgid "See also L</write>."
16782 msgstr ""
16783
16784 #. type: =head2
16785 #: ../fish/guestfish-actions.pod:5140
16786 msgid "write-file"
16787 msgstr "write-file"
16788
16789 #. type: verbatim
16790 #: ../fish/guestfish-actions.pod:5142
16791 #, no-wrap
16792 msgid ""
16793 " write-file path content size\n"
16794 "\n"
16795 msgstr ""
16796
16797 #. type: textblock
16798 #: ../fish/guestfish-actions.pod:5144 ../src/guestfs-actions.pod:7861
16799 msgid ""
16800 "This call creates a file called C<path>.  The contents of the file is the "
16801 "string C<content> (which can contain any 8 bit data), with length C<size>."
16802 msgstr ""
16803
16804 #. type: textblock
16805 #: ../fish/guestfish-actions.pod:5148 ../src/guestfs-actions.pod:7865
16806 msgid ""
16807 "As a special case, if C<size> is C<0> then the length is calculated using "
16808 "C<strlen> (so in this case the content cannot contain embedded ASCII NULs)."
16809 msgstr ""
16810
16811 #. type: textblock
16812 #: ../fish/guestfish-actions.pod:5152 ../src/guestfs-actions.pod:7869
16813 msgid ""
16814 "I<NB.> Owing to a bug, writing content containing ASCII NUL characters does "
16815 "I<not> work, even if the length is specified."
16816 msgstr ""
16817
16818 #. type: textblock
16819 #: ../fish/guestfish-actions.pod:5158
16820 msgid ""
16821 "I<This function is deprecated.> In new code, use the L</write> call instead."
16822 msgstr ""
16823
16824 #. type: =head2
16825 #: ../fish/guestfish-actions.pod:5165
16826 msgid "zegrep"
16827 msgstr "zegrep"
16828
16829 #. type: verbatim
16830 #: ../fish/guestfish-actions.pod:5167
16831 #, no-wrap
16832 msgid ""
16833 " zegrep regex path\n"
16834 "\n"
16835 msgstr ""
16836 " zegrep формальний_вираз шлях\n"
16837 "\n"
16838
16839 #. type: textblock
16840 #: ../fish/guestfish-actions.pod:5169 ../src/guestfs-actions.pod:7886
16841 msgid ""
16842 "This calls the external C<zegrep> program and returns the matching lines."
16843 msgstr ""
16844
16845 #. type: =head2
16846 #: ../fish/guestfish-actions.pod:5175
16847 msgid "zegrepi"
16848 msgstr "zegrepi"
16849
16850 #. type: verbatim
16851 #: ../fish/guestfish-actions.pod:5177
16852 #, no-wrap
16853 msgid ""
16854 " zegrepi regex path\n"
16855 "\n"
16856 msgstr ""
16857
16858 #. type: textblock
16859 #: ../fish/guestfish-actions.pod:5179 ../src/guestfs-actions.pod:7905
16860 msgid ""
16861 "This calls the external C<zegrep -i> program and returns the matching lines."
16862 msgstr ""
16863
16864 #. type: =head2
16865 #: ../fish/guestfish-actions.pod:5185
16866 msgid "zero"
16867 msgstr "zero"
16868
16869 #. type: verbatim
16870 #: ../fish/guestfish-actions.pod:5187
16871 #, no-wrap
16872 msgid ""
16873 " zero device\n"
16874 "\n"
16875 msgstr ""
16876 " zero пристрій\n"
16877 "\n"
16878
16879 #. type: textblock
16880 #: ../fish/guestfish-actions.pod:5189 ../src/guestfs-actions.pod:7923
16881 msgid "This command writes zeroes over the first few blocks of C<device>."
16882 msgstr ""
16883
16884 #. type: textblock
16885 #: ../fish/guestfish-actions.pod:5191 ../src/guestfs-actions.pod:7925
16886 msgid ""
16887 "How many blocks are zeroed isn't specified (but it's I<not> enough to "
16888 "securely wipe the device).  It should be sufficient to remove any partition "
16889 "tables, filesystem superblocks and so on."
16890 msgstr ""
16891
16892 #. type: textblock
16893 #: ../fish/guestfish-actions.pod:5195 ../fish/guestfish-actions.pod:5210
16894 #: ../src/guestfs-actions.pod:7929 ../src/guestfs-actions.pod:7955
16895 msgid ""
16896 "If blocks are already zero, then this command avoids writing zeroes.  This "
16897 "prevents the underlying device from becoming non-sparse or growing "
16898 "unnecessarily."
16899 msgstr ""
16900
16901 #. type: textblock
16902 #: ../fish/guestfish-actions.pod:5199
16903 msgid "See also: L</zero-device>, L</scrub-device>, L</is-zero-device>"
16904 msgstr ""
16905
16906 #. type: =head2
16907 #: ../fish/guestfish-actions.pod:5202
16908 msgid "zero-device"
16909 msgstr "zero-device"
16910
16911 #. type: verbatim
16912 #: ../fish/guestfish-actions.pod:5204
16913 #, no-wrap
16914 msgid ""
16915 " zero-device device\n"
16916 "\n"
16917 msgstr ""
16918 " zero-device пристрій\n"
16919 "\n"
16920
16921 #. type: textblock
16922 #: ../fish/guestfish-actions.pod:5206
16923 msgid ""
16924 "This command writes zeroes over the entire C<device>.  Compare with L</zero> "
16925 "which just zeroes the first few blocks of a device."
16926 msgstr ""
16927
16928 #. type: =head2
16929 #: ../fish/guestfish-actions.pod:5217
16930 msgid "zerofree"
16931 msgstr "zerofree"
16932
16933 #. type: verbatim
16934 #: ../fish/guestfish-actions.pod:5219
16935 #, no-wrap
16936 msgid ""
16937 " zerofree device\n"
16938 "\n"
16939 msgstr ""
16940 " zerofree пристрій\n"
16941 "\n"
16942
16943 #. type: textblock
16944 #: ../fish/guestfish-actions.pod:5221 ../src/guestfs-actions.pod:7977
16945 msgid ""
16946 "This runs the I<zerofree> program on C<device>.  This program claims to zero "
16947 "unused inodes and disk blocks on an ext2/3 filesystem, thus making it "
16948 "possible to compress the filesystem more effectively."
16949 msgstr ""
16950
16951 #. type: textblock
16952 #: ../fish/guestfish-actions.pod:5226 ../src/guestfs-actions.pod:7982
16953 msgid "You should B<not> run this program if the filesystem is mounted."
16954 msgstr ""
16955
16956 #. type: textblock
16957 #: ../fish/guestfish-actions.pod:5229 ../src/guestfs-actions.pod:7985
16958 msgid ""
16959 "It is possible that using this program can damage the filesystem or data on "
16960 "the filesystem."
16961 msgstr ""
16962
16963 #. type: =head2
16964 #: ../fish/guestfish-actions.pod:5232
16965 msgid "zfgrep"
16966 msgstr "zfgrep"
16967
16968 #. type: verbatim
16969 #: ../fish/guestfish-actions.pod:5234
16970 #, no-wrap
16971 msgid ""
16972 " zfgrep pattern path\n"
16973 "\n"
16974 msgstr ""
16975 " zfgrep шаблон шлях\n"
16976 "\n"
16977
16978 #. type: textblock
16979 #: ../fish/guestfish-actions.pod:5236 ../src/guestfs-actions.pod:7999
16980 msgid ""
16981 "This calls the external C<zfgrep> program and returns the matching lines."
16982 msgstr ""
16983
16984 #. type: =head2
16985 #: ../fish/guestfish-actions.pod:5242
16986 msgid "zfgrepi"
16987 msgstr "zfgrepi"
16988
16989 #. type: verbatim
16990 #: ../fish/guestfish-actions.pod:5244
16991 #, no-wrap
16992 msgid ""
16993 " zfgrepi pattern path\n"
16994 "\n"
16995 msgstr ""
16996 " zfgrepi шаблон шлях\n"
16997 "\n"
16998
16999 #. type: textblock
17000 #: ../fish/guestfish-actions.pod:5246 ../src/guestfs-actions.pod:8018
17001 msgid ""
17002 "This calls the external C<zfgrep -i> program and returns the matching lines."
17003 msgstr ""
17004
17005 #. type: =head2
17006 #: ../fish/guestfish-actions.pod:5252
17007 msgid "zfile"
17008 msgstr "zfile"
17009
17010 #. type: verbatim
17011 #: ../fish/guestfish-actions.pod:5254
17012 #, no-wrap
17013 msgid ""
17014 " zfile meth path\n"
17015 "\n"
17016 msgstr ""
17017 " zfile метод шлях\n"
17018 "\n"
17019
17020 #. type: textblock
17021 #: ../fish/guestfish-actions.pod:5256 ../src/guestfs-actions.pod:8044
17022 msgid ""
17023 "This command runs C<file> after first decompressing C<path> using C<method>."
17024 msgstr ""
17025
17026 #. type: textblock
17027 #: ../fish/guestfish-actions.pod:5259 ../src/guestfs-actions.pod:8047
17028 msgid "C<method> must be one of C<gzip>, C<compress> or C<bzip2>."
17029 msgstr ""
17030
17031 #. type: textblock
17032 #: ../fish/guestfish-actions.pod:5261
17033 msgid ""
17034 "Since 1.0.63, use L</file> instead which can now process compressed files."
17035 msgstr ""
17036
17037 #. type: textblock
17038 #: ../fish/guestfish-actions.pod:5264
17039 msgid ""
17040 "I<This function is deprecated.> In new code, use the L</file> call instead."
17041 msgstr ""
17042
17043 #. type: =head2
17044 #: ../fish/guestfish-actions.pod:5271
17045 msgid "zgrep"
17046 msgstr "zgrep"
17047
17048 #. type: verbatim
17049 #: ../fish/guestfish-actions.pod:5273
17050 #, no-wrap
17051 msgid ""
17052 " zgrep regex path\n"
17053 "\n"
17054 msgstr ""
17055 " zgrep формальний_вираз шлях\n"
17056 "\n"
17057
17058 #. type: textblock
17059 #: ../fish/guestfish-actions.pod:5275 ../src/guestfs-actions.pod:8064
17060 msgid ""
17061 "This calls the external C<zgrep> program and returns the matching lines."
17062 msgstr ""
17063
17064 #. type: =head2
17065 #: ../fish/guestfish-actions.pod:5281
17066 msgid "zgrepi"
17067 msgstr "zgrepi"
17068
17069 #. type: verbatim
17070 #: ../fish/guestfish-actions.pod:5283
17071 #, no-wrap
17072 msgid ""
17073 " zgrepi regex path\n"
17074 "\n"
17075 msgstr ""
17076 " zgrepi формальний_вираз шлях\n"
17077 "\n"
17078
17079 #. type: textblock
17080 #: ../fish/guestfish-actions.pod:5285 ../src/guestfs-actions.pod:8083
17081 msgid ""
17082 "This calls the external C<zgrep -i> program and returns the matching lines."
17083 msgstr ""
17084
17085 #. type: =head2
17086 #: ../fish/guestfish-commands.pod:1
17087 msgid "alloc"
17088 msgstr "alloc"
17089
17090 #. type: =head2
17091 #: ../fish/guestfish-commands.pod:3
17092 msgid "allocate"
17093 msgstr ""
17094
17095 #. type: verbatim
17096 #: ../fish/guestfish-commands.pod:5
17097 #, no-wrap
17098 msgid ""
17099 " alloc filename size\n"
17100 "\n"
17101 msgstr ""
17102
17103 #. type: textblock
17104 #: ../fish/guestfish-commands.pod:7
17105 msgid ""
17106 "This creates an empty (zeroed) file of the given size, and then adds so it "
17107 "can be further examined."
17108 msgstr ""
17109
17110 #. type: textblock
17111 #: ../fish/guestfish-commands.pod:10 ../fish/guestfish-commands.pod:193
17112 msgid "For more advanced image creation, see L<qemu-img(1)> utility."
17113 msgstr ""
17114
17115 #. type: textblock
17116 #: ../fish/guestfish-commands.pod:12 ../fish/guestfish-commands.pod:195
17117 msgid "Size can be specified using standard suffixes, eg. C<1M>."
17118 msgstr ""
17119
17120 #. type: textblock
17121 #: ../fish/guestfish-commands.pod:14
17122 msgid ""
17123 "To create a sparse file, use L</sparse> instead.  To create a prepared disk "
17124 "image, see L</PREPARED DISK IMAGES>."
17125 msgstr ""
17126
17127 #. type: =head2
17128 #: ../fish/guestfish-commands.pod:17
17129 msgid "copy-in"
17130 msgstr "copy-in"
17131
17132 #. type: verbatim
17133 #: ../fish/guestfish-commands.pod:19
17134 #, no-wrap
17135 msgid ""
17136 " copy-in local [local ...] /remotedir\n"
17137 "\n"
17138 msgstr ""
17139
17140 #. type: textblock
17141 #: ../fish/guestfish-commands.pod:21
17142 msgid ""
17143 "C<copy-in> copies local files or directories recursively into the disk "
17144 "image, placing them in the directory called C</remotedir> (which must "
17145 "exist).  This guestfish meta-command turns into a sequence of L</tar-in> and "
17146 "other commands as necessary."
17147 msgstr ""
17148
17149 #. type: textblock
17150 #: ../fish/guestfish-commands.pod:26
17151 msgid ""
17152 "Multiple local files and directories can be specified, but the last "
17153 "parameter must always be a remote directory.  Wildcards cannot be used."
17154 msgstr ""
17155
17156 #. type: =head2
17157 #: ../fish/guestfish-commands.pod:30
17158 msgid "copy-out"
17159 msgstr "copy-out"
17160
17161 #. type: verbatim
17162 #: ../fish/guestfish-commands.pod:32
17163 #, no-wrap
17164 msgid ""
17165 " copy-out remote [remote ...] localdir\n"
17166 "\n"
17167 msgstr ""
17168
17169 #. type: textblock
17170 #: ../fish/guestfish-commands.pod:34
17171 msgid ""
17172 "C<copy-out> copies remote files or directories recursively out of the disk "
17173 "image, placing them on the host disk in a local directory called C<localdir> "
17174 "(which must exist).  This guestfish meta-command turns into a sequence of L</"
17175 "download>, L</tar-out> and other commands as necessary."
17176 msgstr ""
17177
17178 #. type: textblock
17179 #: ../fish/guestfish-commands.pod:40
17180 msgid ""
17181 "Multiple remote files and directories can be specified, but the last "
17182 "parameter must always be a local directory.  To download to the current "
17183 "directory, use C<.> as in:"
17184 msgstr ""
17185
17186 #. type: verbatim
17187 #: ../fish/guestfish-commands.pod:44
17188 #, no-wrap
17189 msgid ""
17190 " copy-out /home .\n"
17191 "\n"
17192 msgstr ""
17193 " copy-out /home .\n"
17194 "\n"
17195
17196 #. type: textblock
17197 #: ../fish/guestfish-commands.pod:46
17198 msgid ""
17199 "Wildcards cannot be used in the ordinary command, but you can use them with "
17200 "the help of L</glob> like this:"
17201 msgstr ""
17202
17203 #. type: verbatim
17204 #: ../fish/guestfish-commands.pod:49
17205 #, no-wrap
17206 msgid ""
17207 " glob copy-out /home/* .\n"
17208 "\n"
17209 msgstr ""
17210 " glob copy-out /home/* .\n"
17211 "\n"
17212
17213 #. type: =head2
17214 #: ../fish/guestfish-commands.pod:51
17215 msgid "display"
17216 msgstr ""
17217
17218 #. type: verbatim
17219 #: ../fish/guestfish-commands.pod:53
17220 #, no-wrap
17221 msgid ""
17222 " display filename\n"
17223 "\n"
17224 msgstr ""
17225
17226 #. type: textblock
17227 #: ../fish/guestfish-commands.pod:55
17228 msgid ""
17229 "Use C<display> (a graphical display program) to display an image file.  It "
17230 "downloads the file, and runs C<display> on it."
17231 msgstr ""
17232
17233 #. type: textblock
17234 #: ../fish/guestfish-commands.pod:58
17235 msgid ""
17236 "To use an alternative program, set the C<GUESTFISH_DISPLAY_IMAGE> "
17237 "environment variable.  For example to use the GNOME display program:"
17238 msgstr ""
17239
17240 #. type: verbatim
17241 #: ../fish/guestfish-commands.pod:61
17242 #, no-wrap
17243 msgid ""
17244 " export GUESTFISH_DISPLAY_IMAGE=eog\n"
17245 "\n"
17246 msgstr ""
17247
17248 #. type: textblock
17249 #: ../fish/guestfish-commands.pod:63
17250 msgid "See also L<display(1)>."
17251 msgstr ""
17252
17253 #. type: =head2
17254 #: ../fish/guestfish-commands.pod:65
17255 msgid "echo"
17256 msgstr "echo"
17257
17258 #. type: verbatim
17259 #: ../fish/guestfish-commands.pod:67
17260 #, no-wrap
17261 msgid ""
17262 " echo [params ...]\n"
17263 "\n"
17264 msgstr ""
17265 " echo [параметри...]\n"
17266 "\n"
17267
17268 #. type: textblock
17269 #: ../fish/guestfish-commands.pod:69
17270 msgid "This echos the parameters to the terminal."
17271 msgstr ""
17272
17273 #. type: =head2
17274 #: ../fish/guestfish-commands.pod:71
17275 msgid "edit"
17276 msgstr "edit"
17277
17278 #. type: =head2
17279 #: ../fish/guestfish-commands.pod:73
17280 msgid "vi"
17281 msgstr "vi"
17282
17283 #. type: =head2
17284 #: ../fish/guestfish-commands.pod:75
17285 msgid "emacs"
17286 msgstr "emacs"
17287
17288 #. type: verbatim
17289 #: ../fish/guestfish-commands.pod:77
17290 #, no-wrap
17291 msgid ""
17292 " edit filename\n"
17293 "\n"
17294 msgstr ""
17295 " edit назва_файла\n"
17296 "\n"
17297
17298 #. type: textblock
17299 #: ../fish/guestfish-commands.pod:79
17300 msgid ""
17301 "This is used to edit a file.  It downloads the file, edits it locally using "
17302 "your editor, then uploads the result."
17303 msgstr ""
17304
17305 #. type: textblock
17306 #: ../fish/guestfish-commands.pod:82
17307 msgid ""
17308 "The editor is C<$EDITOR>.  However if you use the alternate commands C<vi> "
17309 "or C<emacs> you will get those corresponding editors."
17310 msgstr ""
17311
17312 #. type: =head2
17313 #: ../fish/guestfish-commands.pod:86
17314 msgid "glob"
17315 msgstr "glob"
17316
17317 #. type: verbatim
17318 #: ../fish/guestfish-commands.pod:88
17319 #, no-wrap
17320 msgid ""
17321 " glob command args...\n"
17322 "\n"
17323 msgstr ""
17324 " glob команда параметри...\n"
17325 "\n"
17326
17327 #. type: textblock
17328 #: ../fish/guestfish-commands.pod:90
17329 msgid ""
17330 "Expand wildcards in any paths in the args list, and run C<command> "
17331 "repeatedly on each matching path."
17332 msgstr ""
17333
17334 #. type: textblock
17335 #: ../fish/guestfish-commands.pod:93
17336 msgid "See L</WILDCARDS AND GLOBBING>."
17337 msgstr "Див. L</WILDCARDS AND GLOBBING>."
17338
17339 #. type: =head2
17340 #: ../fish/guestfish-commands.pod:95
17341 msgid "hexedit"
17342 msgstr "hexedit"
17343
17344 #. type: verbatim
17345 #: ../fish/guestfish-commands.pod:97
17346 #, no-wrap
17347 msgid ""
17348 " hexedit <filename|device>\n"
17349 " hexedit <filename|device> <max>\n"
17350 " hexedit <filename|device> <start> <max>\n"
17351 "\n"
17352 msgstr ""
17353
17354 #. type: textblock
17355 #: ../fish/guestfish-commands.pod:101
17356 msgid ""
17357 "Use hexedit (a hex editor) to edit all or part of a binary file or block "
17358 "device."
17359 msgstr ""
17360
17361 #. type: textblock
17362 #: ../fish/guestfish-commands.pod:104
17363 msgid ""
17364 "This command works by downloading potentially the whole file or device, "
17365 "editing it locally, then uploading it.  If the file or device is large, you "
17366 "have to specify which part you wish to edit by using C<max> and/or C<start> "
17367 "C<max> parameters.  C<start> and C<max> are specified in bytes, with the "
17368 "usual modifiers allowed such as C<1M> (1 megabyte)."
17369 msgstr ""
17370
17371 #. type: textblock
17372 #: ../fish/guestfish-commands.pod:111
17373 msgid "For example to edit the first few sectors of a disk you might do:"
17374 msgstr ""
17375
17376 #. type: verbatim
17377 #: ../fish/guestfish-commands.pod:114
17378 #, no-wrap
17379 msgid ""
17380 " hexedit /dev/sda 1M\n"
17381 "\n"
17382 msgstr ""
17383 " hexedit /dev/sda 1M\n"
17384 "\n"
17385
17386 #. type: textblock
17387 #: ../fish/guestfish-commands.pod:116
17388 msgid ""
17389 "which would allow you to edit anywhere within the first megabyte of the disk."
17390 msgstr ""
17391
17392 #. type: textblock
17393 #: ../fish/guestfish-commands.pod:119
17394 msgid "To edit the superblock of an ext2 filesystem on C</dev/sda1>, do:"
17395 msgstr ""
17396
17397 #. type: verbatim
17398 #: ../fish/guestfish-commands.pod:121
17399 #, no-wrap
17400 msgid ""
17401 " hexedit /dev/sda1 0x400 0x400\n"
17402 "\n"
17403 msgstr ""
17404 " hexedit /dev/sda1 0x400 0x400\n"
17405 "\n"
17406
17407 #. type: textblock
17408 #: ../fish/guestfish-commands.pod:123
17409 msgid "(assuming the superblock is in the standard location)."
17410 msgstr ""
17411
17412 #. type: textblock
17413 #: ../fish/guestfish-commands.pod:125
17414 msgid ""
17415 "This command requires the external L<hexedit(1)> program.  You can specify "
17416 "another program to use by setting the C<HEXEDITOR> environment variable."
17417 msgstr ""
17418
17419 #. type: textblock
17420 #: ../fish/guestfish-commands.pod:129
17421 msgid "See also L</hexdump>."
17422 msgstr "Див. також L</hexdump>."
17423
17424 #. type: =head2
17425 #: ../fish/guestfish-commands.pod:131
17426 msgid "lcd"
17427 msgstr "lcd"
17428
17429 #. type: verbatim
17430 #: ../fish/guestfish-commands.pod:133
17431 #, no-wrap
17432 msgid ""
17433 " lcd directory\n"
17434 "\n"
17435 msgstr ""
17436
17437 #. type: textblock
17438 #: ../fish/guestfish-commands.pod:135
17439 msgid ""
17440 "Change the local directory, ie. the current directory of guestfish itself."
17441 msgstr ""
17442
17443 #. type: textblock
17444 #: ../fish/guestfish-commands.pod:138
17445 msgid "Note that C<!cd> won't do what you might expect."
17446 msgstr ""
17447
17448 #. type: =head2
17449 #: ../fish/guestfish-commands.pod:140
17450 msgid "man"
17451 msgstr "man"
17452
17453 #. type: =head2
17454 #: ../fish/guestfish-commands.pod:142
17455 msgid "manual"
17456 msgstr ""
17457
17458 #. type: verbatim
17459 #: ../fish/guestfish-commands.pod:144
17460 #, no-wrap
17461 msgid ""
17462 "  man\n"
17463 "\n"
17464 msgstr ""
17465 "  man\n"
17466 "\n"
17467
17468 #. type: textblock
17469 #: ../fish/guestfish-commands.pod:146
17470 msgid "Opens the manual page for guestfish."
17471 msgstr ""
17472
17473 #. type: =head2
17474 #: ../fish/guestfish-commands.pod:148
17475 msgid "more"
17476 msgstr "more"
17477
17478 #. type: =head2
17479 #: ../fish/guestfish-commands.pod:150
17480 msgid "less"
17481 msgstr "less"
17482
17483 #. type: verbatim
17484 #: ../fish/guestfish-commands.pod:152
17485 #, no-wrap
17486 msgid ""
17487 " more filename\n"
17488 "\n"
17489 msgstr ""
17490
17491 #. type: verbatim
17492 #: ../fish/guestfish-commands.pod:154
17493 #, no-wrap
17494 msgid ""
17495 " less filename\n"
17496 "\n"
17497 msgstr ""
17498
17499 #. type: textblock
17500 #: ../fish/guestfish-commands.pod:156
17501 msgid "This is used to view a file."
17502 msgstr ""
17503
17504 #. type: textblock
17505 #: ../fish/guestfish-commands.pod:158
17506 msgid ""
17507 "The default viewer is C<$PAGER>.  However if you use the alternate command "
17508 "C<less> you will get the C<less> command specifically."
17509 msgstr ""
17510
17511 #. type: =head2
17512 #: ../fish/guestfish-commands.pod:161
17513 msgid "reopen"
17514 msgstr "reopen"
17515
17516 #. type: verbatim
17517 #: ../fish/guestfish-commands.pod:163
17518 #, no-wrap
17519 msgid ""
17520 "  reopen\n"
17521 "\n"
17522 msgstr ""
17523
17524 #. type: textblock
17525 #: ../fish/guestfish-commands.pod:165
17526 msgid ""
17527 "Close and reopen the libguestfs handle.  It is not necessary to use this "
17528 "normally, because the handle is closed properly when guestfish exits.  "
17529 "However this is occasionally useful for testing."
17530 msgstr ""
17531
17532 #. type: =head2
17533 #: ../fish/guestfish-commands.pod:169
17534 msgid "setenv"
17535 msgstr ""
17536
17537 #. type: verbatim
17538 #: ../fish/guestfish-commands.pod:171
17539 #, no-wrap
17540 msgid ""
17541 "  setenv VAR value\n"
17542 "\n"
17543 msgstr ""
17544
17545 #. type: textblock
17546 #: ../fish/guestfish-commands.pod:173
17547 msgid "Set the environment variable C<VAR> to the string C<value>."
17548 msgstr ""
17549
17550 #. type: textblock
17551 #: ../fish/guestfish-commands.pod:175
17552 msgid ""
17553 "To print the value of an environment variable use a shell command such as:"
17554 msgstr ""
17555
17556 #. type: verbatim
17557 #: ../fish/guestfish-commands.pod:178
17558 #, no-wrap
17559 msgid ""
17560 " !echo $VAR\n"
17561 "\n"
17562 msgstr ""
17563
17564 #. type: =head2
17565 #: ../fish/guestfish-commands.pod:180
17566 msgid "sparse"
17567 msgstr "sparse"
17568
17569 #. type: verbatim
17570 #: ../fish/guestfish-commands.pod:182
17571 #, no-wrap
17572 msgid ""
17573 " sparse filename size\n"
17574 "\n"
17575 msgstr ""
17576
17577 #. type: textblock
17578 #: ../fish/guestfish-commands.pod:184
17579 msgid ""
17580 "This creates an empty sparse file of the given size, and then adds so it can "
17581 "be further examined."
17582 msgstr ""
17583
17584 #. type: textblock
17585 #: ../fish/guestfish-commands.pod:187
17586 msgid ""
17587 "In all respects it works the same as the L</alloc> command, except that the "
17588 "image file is allocated sparsely, which means that disk blocks are not "
17589 "assigned to the file until they are needed.  Sparse disk files only use "
17590 "space when written to, but they are slower and there is a danger you could "
17591 "run out of real disk space during a write operation."
17592 msgstr ""
17593
17594 #. type: =head2
17595 #: ../fish/guestfish-commands.pod:197
17596 msgid "supported"
17597 msgstr "supported"
17598
17599 #. type: verbatim
17600 #: ../fish/guestfish-commands.pod:199
17601 #, no-wrap
17602 msgid ""
17603 " supported\n"
17604 "\n"
17605 msgstr ""
17606 " supported\n"
17607 "\n"
17608
17609 #. type: textblock
17610 #: ../fish/guestfish-commands.pod:201
17611 msgid ""
17612 "This command returns a list of the optional groups known to the daemon, and "
17613 "indicates which ones are supported by this build of the libguestfs appliance."
17614 msgstr ""
17615
17616 #. type: textblock
17617 #: ../fish/guestfish-commands.pod:205
17618 msgid "See also L<guestfs(3)/AVAILABILITY>."
17619 msgstr ""
17620
17621 #. type: =head2
17622 #: ../fish/guestfish-commands.pod:207
17623 msgid "time"
17624 msgstr "time"
17625
17626 #. type: verbatim
17627 #: ../fish/guestfish-commands.pod:209
17628 #, no-wrap
17629 msgid ""
17630 " time command args...\n"
17631 "\n"
17632 msgstr ""
17633
17634 #. type: textblock
17635 #: ../fish/guestfish-commands.pod:211
17636 msgid ""
17637 "Run the command as usual, but print the elapsed time afterwards.  This can "
17638 "be useful for benchmarking operations."
17639 msgstr ""
17640
17641 #. type: =head2
17642 #: ../fish/guestfish-commands.pod:214
17643 msgid "unsetenv"
17644 msgstr ""
17645
17646 #. type: verbatim
17647 #: ../fish/guestfish-commands.pod:216
17648 #, no-wrap
17649 msgid ""
17650 "  unsetenv VAR\n"
17651 "\n"
17652 msgstr ""
17653
17654 #. type: textblock
17655 #: ../fish/guestfish-commands.pod:218
17656 msgid "Remove C<VAR> from the environment."
17657 msgstr ""
17658
17659 #. type: textblock
17660 #: ../fish/guestfish.pod:5
17661 msgid "guestfish - the libguestfs Filesystem Interactive SHell"
17662 msgstr ""
17663
17664 #. type: verbatim
17665 #: ../fish/guestfish.pod:9
17666 #, no-wrap
17667 msgid ""
17668 " guestfish [--options] [commands]\n"
17669 "\n"
17670 msgstr ""
17671
17672 #. type: verbatim
17673 #: ../fish/guestfish.pod:11
17674 #, no-wrap
17675 msgid ""
17676 " guestfish\n"
17677 "\n"
17678 msgstr ""
17679
17680 #. type: verbatim
17681 #: ../fish/guestfish.pod:13
17682 #, no-wrap
17683 msgid ""
17684 " guestfish [--ro|--rw] -a disk.img\n"
17685 "\n"
17686 msgstr ""
17687
17688 #. type: verbatim
17689 #: ../fish/guestfish.pod:15
17690 #, no-wrap
17691 msgid ""
17692 " guestfish [--ro|--rw] -a disk.img -m dev[:mountpoint]\n"
17693 "\n"
17694 msgstr ""
17695
17696 #. type: verbatim
17697 #: ../fish/guestfish.pod:17
17698 #, no-wrap
17699 msgid ""
17700 " guestfish -d libvirt-domain\n"
17701 "\n"
17702 msgstr ""
17703
17704 #. type: verbatim
17705 #: ../fish/guestfish.pod:19
17706 #, no-wrap
17707 msgid ""
17708 " guestfish [--ro|--rw] -a disk.img -i\n"
17709 "\n"
17710 msgstr ""
17711
17712 #. type: verbatim
17713 #: ../fish/guestfish.pod:21
17714 #, no-wrap
17715 msgid ""
17716 " guestfish -d libvirt-domain -i\n"
17717 "\n"
17718 msgstr ""
17719
17720 #. type: textblock
17721 #: ../fish/guestfish.pod:25
17722 msgid ""
17723 "Using guestfish in read/write mode on live virtual machines can be "
17724 "dangerous, potentially causing disk corruption.  Use the I<--ro> (read-only) "
17725 "option to use guestfish safely if the disk image or virtual machine might be "
17726 "live."
17727 msgstr ""
17728
17729 #. type: textblock
17730 #: ../fish/guestfish.pod:32
17731 msgid ""
17732 "Guestfish is a shell and command-line tool for examining and modifying "
17733 "virtual machine filesystems.  It uses libguestfs and exposes all of the "
17734 "functionality of the guestfs API, see L<guestfs(3)>."
17735 msgstr ""
17736
17737 #. type: textblock
17738 #: ../fish/guestfish.pod:36
17739 msgid ""
17740 "Guestfish gives you structured access to the libguestfs API, from shell "
17741 "scripts or the command line or interactively.  If you want to rescue a "
17742 "broken virtual machine image, you should look at the L<virt-rescue(1)> "
17743 "command."
17744 msgstr ""
17745
17746 #. type: =head2
17747 #: ../fish/guestfish.pod:43
17748 msgid "As an interactive shell"
17749 msgstr ""
17750
17751 #. type: verbatim
17752 #: ../fish/guestfish.pod:45
17753 #, no-wrap
17754 msgid ""
17755 " $ guestfish\n"
17756 " \n"
17757 msgstr ""
17758
17759 #. type: verbatim
17760 #: ../fish/guestfish.pod:47
17761 #, no-wrap
17762 msgid ""
17763 " Welcome to guestfish, the libguestfs filesystem interactive shell for\n"
17764 " editing virtual machine filesystems.\n"
17765 " \n"
17766 msgstr ""
17767
17768 #. type: verbatim
17769 #: ../fish/guestfish.pod:50
17770 #, no-wrap
17771 msgid ""
17772 " Type: 'help' for a list of commands\n"
17773 "       'man' to read the manual\n"
17774 "       'quit' to quit the shell\n"
17775 " \n"
17776 msgstr ""
17777
17778 #. type: verbatim
17779 #: ../fish/guestfish.pod:54
17780 #, no-wrap
17781 msgid ""
17782 " ><fs> add-ro disk.img\n"
17783 " ><fs> run\n"
17784 " ><fs> list-filesystems\n"
17785 " /dev/sda1: ext4\n"
17786 " /dev/vg_guest/lv_root: ext4\n"
17787 " /dev/vg_guest/lv_swap: swap\n"
17788 " ><fs> mount /dev/vg_guest/lv_root /\n"
17789 " ><fs> cat /etc/fstab\n"
17790 " # /etc/fstab\n"
17791 " # Created by anaconda\n"
17792 " [...]\n"
17793 " ><fs> exit\n"
17794 "\n"
17795 msgstr ""
17796
17797 #. type: =head2
17798 #: ../fish/guestfish.pod:67
17799 msgid "From shell scripts"
17800 msgstr ""
17801
17802 #. type: textblock
17803 #: ../fish/guestfish.pod:69
17804 msgid "Create a new C</etc/motd> file in a guest or disk image:"
17805 msgstr ""
17806
17807 #. type: verbatim
17808 #: ../fish/guestfish.pod:71
17809 #, no-wrap
17810 msgid ""
17811 " guestfish <<_EOF_\n"
17812 " add disk.img\n"
17813 " run\n"
17814 " mount /dev/vg_guest/lv_root /\n"
17815 " write /etc/motd \"Welcome, new users\"\n"
17816 " _EOF_\n"
17817 "\n"
17818 msgstr ""
17819
17820 #. type: textblock
17821 #: ../fish/guestfish.pod:78
17822 msgid "List the LVM logical volumes in a disk image:"
17823 msgstr ""
17824
17825 #. type: verbatim
17826 #: ../fish/guestfish.pod:80
17827 #, no-wrap
17828 msgid ""
17829 " guestfish -a disk.img --ro <<_EOF_\n"
17830 " run\n"
17831 " lvs\n"
17832 " _EOF_\n"
17833 "\n"
17834 msgstr ""
17835
17836 #. type: textblock
17837 #: ../fish/guestfish.pod:85
17838 msgid "List all the filesystems in a disk image:"
17839 msgstr ""
17840
17841 #. type: verbatim
17842 #: ../fish/guestfish.pod:87
17843 #, no-wrap
17844 msgid ""
17845 " guestfish -a disk.img --ro <<_EOF_\n"
17846 " run\n"
17847 " list-filesystems\n"
17848 " _EOF_\n"
17849 "\n"
17850 msgstr ""
17851
17852 #. type: =head2
17853 #: ../fish/guestfish.pod:92
17854 msgid "On one command line"
17855 msgstr ""
17856
17857 #. type: textblock
17858 #: ../fish/guestfish.pod:94 ../fish/virt-copy-in.pod:31
17859 msgid "Update C</etc/resolv.conf> in a guest:"
17860 msgstr ""
17861
17862 #. type: verbatim
17863 #: ../fish/guestfish.pod:96
17864 #, no-wrap
17865 msgid ""
17866 " guestfish \\\n"
17867 "   add disk.img : run : mount /dev/vg_guest/lv_root / : \\\n"
17868 "   write /etc/resolv.conf \"nameserver 1.2.3.4\"\n"
17869 "\n"
17870 msgstr ""
17871
17872 #. type: textblock
17873 #: ../fish/guestfish.pod:100
17874 msgid "Edit C</boot/grub/grub.conf> interactively:"
17875 msgstr ""
17876
17877 #. type: verbatim
17878 #: ../fish/guestfish.pod:102
17879 #, no-wrap
17880 msgid ""
17881 " guestfish --rw --add disk.img \\\n"
17882 "   --mount /dev/vg_guest/lv_root \\\n"
17883 "   --mount /dev/sda1:/boot \\\n"
17884 "   edit /boot/grub/grub.conf\n"
17885 "\n"
17886 msgstr ""
17887
17888 #. type: =head2
17889 #: ../fish/guestfish.pod:107
17890 msgid "Mount disks automatically"
17891 msgstr ""
17892
17893 #. type: textblock
17894 #: ../fish/guestfish.pod:109
17895 msgid ""
17896 "Use the I<-i> option to automatically mount the disks from a virtual machine:"
17897 msgstr ""
17898
17899 #. type: verbatim
17900 #: ../fish/guestfish.pod:112
17901 #, no-wrap
17902 msgid ""
17903 " guestfish --ro -a disk.img -i cat /etc/group\n"
17904 "\n"
17905 msgstr ""
17906
17907 #. type: verbatim
17908 #: ../fish/guestfish.pod:114
17909 #, no-wrap
17910 msgid ""
17911 " guestfish --ro -d libvirt-domain -i cat /etc/group\n"
17912 "\n"
17913 msgstr ""
17914
17915 #. type: textblock
17916 #: ../fish/guestfish.pod:116
17917 msgid "Another way to edit C</boot/grub/grub.conf> interactively is:"
17918 msgstr ""
17919
17920 #. type: verbatim
17921 #: ../fish/guestfish.pod:118
17922 #, no-wrap
17923 msgid ""
17924 " guestfish --rw -a disk.img -i edit /boot/grub/grub.conf\n"
17925 "\n"
17926 msgstr ""
17927
17928 #. type: =head2
17929 #: ../fish/guestfish.pod:120
17930 msgid "As a script interpreter"
17931 msgstr ""
17932
17933 #. type: textblock
17934 #: ../fish/guestfish.pod:122
17935 msgid "Create a 100MB disk containing an ext2-formatted partition:"
17936 msgstr ""
17937
17938 #. type: verbatim
17939 #: ../fish/guestfish.pod:124
17940 #, no-wrap
17941 msgid ""
17942 " #!/usr/bin/guestfish -f\n"
17943 " sparse test1.img 100M\n"
17944 " run\n"
17945 " part-disk /dev/sda mbr\n"
17946 " mkfs ext2 /dev/sda1\n"
17947 "\n"
17948 msgstr ""
17949
17950 #. type: =head2
17951 #: ../fish/guestfish.pod:130
17952 msgid "Start with a prepared disk"
17953 msgstr ""
17954
17955 #. type: textblock
17956 #: ../fish/guestfish.pod:132
17957 msgid ""
17958 "An alternate way to create a 100MB disk called C<test1.img> containing a "
17959 "single ext2-formatted partition:"
17960 msgstr ""
17961
17962 #. type: verbatim
17963 #: ../fish/guestfish.pod:135
17964 #, no-wrap
17965 msgid ""
17966 " guestfish -N fs\n"
17967 "\n"
17968 msgstr ""
17969
17970 #. type: textblock
17971 #: ../fish/guestfish.pod:137
17972 msgid "To list what is available do:"
17973 msgstr ""
17974
17975 #. type: verbatim
17976 #: ../fish/guestfish.pod:139 ../fish/guestfish.pod:1009
17977 #, no-wrap
17978 msgid ""
17979 " guestfish -N help | less\n"
17980 "\n"
17981 msgstr ""
17982
17983 #. type: =head2
17984 #: ../fish/guestfish.pod:141
17985 msgid "Remote control"
17986 msgstr "Дистанційне керування"
17987
17988 #. type: verbatim
17989 #: ../fish/guestfish.pod:143
17990 #, no-wrap
17991 msgid ""
17992 " eval \"`guestfish --listen`\"\n"
17993 " guestfish --remote add-ro disk.img\n"
17994 " guestfish --remote run\n"
17995 " guestfish --remote lvs\n"
17996 "\n"
17997 msgstr ""
17998 " eval \"`guestfish --listen`\"\n"
17999 " guestfish --remote add-ro disk.img\n"
18000 " guestfish --remote run\n"
18001 " guestfish --remote lvs\n"
18002 "\n"
18003
18004 #. type: textblock
18005 #: ../fish/guestfish.pod:154
18006 msgid "Displays general help on options."
18007 msgstr ""
18008
18009 #. type: =item
18010 #: ../fish/guestfish.pod:158
18011 msgid "B<--cmd-help>"
18012 msgstr "B<--cmd-help>"
18013
18014 #. type: textblock
18015 #: ../fish/guestfish.pod:160
18016 msgid "Lists all available guestfish commands."
18017 msgstr ""
18018
18019 #. type: =item
18020 #: ../fish/guestfish.pod:162
18021 msgid "B<-h cmd>"
18022 msgstr "B<-h команда>"
18023
18024 #. type: =item
18025 #: ../fish/guestfish.pod:164
18026 msgid "B<--cmd-help cmd>"
18027 msgstr "B<--cmd-help команда>"
18028
18029 #. type: textblock
18030 #: ../fish/guestfish.pod:166
18031 msgid "Displays detailed help on a single command C<cmd>."
18032 msgstr ""
18033
18034 #. type: =item
18035 #: ../fish/guestfish.pod:168 ../fuse/guestmount.pod:87
18036 msgid "B<-a image>"
18037 msgstr "B<-a образ>"
18038
18039 #. type: =item
18040 #: ../fish/guestfish.pod:170 ../fuse/guestmount.pod:89
18041 msgid "B<--add image>"
18042 msgstr "B<--add образ>"
18043
18044 #. type: textblock
18045 #: ../fish/guestfish.pod:172
18046 msgid "Add a block device or virtual machine image to the shell."
18047 msgstr ""
18048
18049 #. type: textblock
18050 #: ../fish/guestfish.pod:177
18051 msgid ""
18052 "Using this flag is mostly equivalent to using the C<add> command, with "
18053 "C<readonly:true> if the I<--ro> flag was given, and with C<format:...> if "
18054 "the I<--format=...> flag was given."
18055 msgstr ""
18056
18057 #. type: textblock
18058 #: ../fish/guestfish.pod:185 ../fuse/guestmount.pod:100
18059 msgid ""
18060 "When used in conjunction with the I<-d> option, this specifies the libvirt "
18061 "URI to use.  The default is to use the default libvirt connection."
18062 msgstr ""
18063
18064 #. type: =item
18065 #: ../fish/guestfish.pod:189
18066 msgid "B<--csh>"
18067 msgstr "B<--csh>"
18068
18069 #. type: textblock
18070 #: ../fish/guestfish.pod:191
18071 msgid ""
18072 "If using the I<--listen> option and a csh-like shell, use this option.  See "
18073 "section L</REMOTE CONTROL AND CSH> below."
18074 msgstr ""
18075
18076 #. type: =item
18077 #: ../fish/guestfish.pod:194 ../fuse/guestmount.pod:104
18078 msgid "B<-d libvirt-domain>"
18079 msgstr "B<-d домен-libvirt>"
18080
18081 #. type: =item
18082 #: ../fish/guestfish.pod:196 ../fuse/guestmount.pod:106
18083 msgid "B<--domain libvirt-domain>"
18084 msgstr "B<--domain домен-libvirt>"
18085
18086 #. type: textblock
18087 #: ../fish/guestfish.pod:198 ../fuse/guestmount.pod:108
18088 msgid ""
18089 "Add disks from the named libvirt domain.  If the I<--ro> option is also "
18090 "used, then any libvirt domain can be used.  However in write mode, only "
18091 "libvirt domains which are shut down can be named here."
18092 msgstr ""
18093
18094 #. type: textblock
18095 #: ../fish/guestfish.pod:202 ../fuse/guestmount.pod:112
18096 msgid "Domain UUIDs can be used instead of names."
18097 msgstr ""
18098
18099 #. type: textblock
18100 #: ../fish/guestfish.pod:204
18101 msgid ""
18102 "Using this flag is mostly equivalent to using the C<add-domain> command, "
18103 "with C<readonly:true> if the I<--ro> flag was given, and with C<format:...> "
18104 "if the I<--format:...> flag was given."
18105 msgstr ""
18106
18107 #. type: =item
18108 #: ../fish/guestfish.pod:208
18109 msgid "B<-D>"
18110 msgstr "B<-D>"
18111
18112 #. type: =item
18113 #: ../fish/guestfish.pod:210
18114 msgid "B<--no-dest-paths>"
18115 msgstr "B<--no-dest-paths>"
18116
18117 #. type: textblock
18118 #: ../fish/guestfish.pod:212
18119 msgid ""
18120 "Don't tab-complete paths on the guest filesystem.  It is useful to be able "
18121 "to hit the tab key to complete paths on the guest filesystem, but this "
18122 "causes extra \"hidden\" guestfs calls to be made, so this option is here to "
18123 "allow this feature to be disabled."
18124 msgstr ""
18125
18126 #. type: textblock
18127 #: ../fish/guestfish.pod:219 ../fuse/guestmount.pod:128
18128 msgid ""
18129 "When prompting for keys and passphrases, guestfish normally turns echoing "
18130 "off so you cannot see what you are typing.  If you are not worried about "
18131 "Tempest attacks and there is no one else in the room you can specify this "
18132 "flag to see what you are typing."
18133 msgstr ""
18134
18135 #. type: =item
18136 #: ../fish/guestfish.pod:224
18137 msgid "B<-f file>"
18138 msgstr "B<-f файл>"
18139
18140 #. type: =item
18141 #: ../fish/guestfish.pod:226
18142 msgid "B<--file file>"
18143 msgstr "B<--file файл>"
18144
18145 #. type: textblock
18146 #: ../fish/guestfish.pod:228
18147 msgid "Read commands from C<file>.  To write pure guestfish scripts, use:"
18148 msgstr ""
18149
18150 #. type: verbatim
18151 #: ../fish/guestfish.pod:231
18152 #, no-wrap
18153 msgid ""
18154 " #!/usr/bin/guestfish -f\n"
18155 "\n"
18156 msgstr ""
18157 " #!/usr/bin/guestfish -f\n"
18158 "\n"
18159
18160 #. type: verbatim
18161 #: ../fish/guestfish.pod:244
18162 #, no-wrap
18163 msgid ""
18164 " guestfish --format=raw -a disk.img\n"
18165 "\n"
18166 msgstr ""
18167 " guestfish --format=raw -a disk.img\n"
18168 "\n"
18169
18170 #. type: verbatim
18171 #: ../fish/guestfish.pod:248
18172 #, no-wrap
18173 msgid ""
18174 " guestfish --format=raw -a disk.img --format -a another.img\n"
18175 "\n"
18176 msgstr ""
18177 " guestfish --format=raw -a disk.img --format -a another.img\n"
18178 "\n"
18179
18180 #. type: textblock
18181 #: ../fish/guestfish.pod:253
18182 msgid ""
18183 "If you have untrusted raw-format guest disk images, you should use this "
18184 "option to specify the disk format.  This avoids a possible security problem "
18185 "with malicious guests (CVE-2010-3851).  See also L</add-drive-opts>."
18186 msgstr ""
18187
18188 #. type: =item
18189 #: ../fish/guestfish.pod:260 ../fuse/guestmount.pod:157
18190 msgid "B<--inspector>"
18191 msgstr "B<--inspector>"
18192
18193 #. type: textblock
18194 #: ../fish/guestfish.pod:262 ../fuse/guestmount.pod:159
18195 msgid ""
18196 "Using L<virt-inspector(1)> code, inspect the disks looking for an operating "
18197 "system and mount filesystems as they would be mounted on the real virtual "
18198 "machine."
18199 msgstr ""
18200
18201 #. type: textblock
18202 #: ../fish/guestfish.pod:266
18203 msgid "Typical usage is either:"
18204 msgstr ""
18205
18206 #. type: verbatim
18207 #: ../fish/guestfish.pod:268
18208 #, no-wrap
18209 msgid ""
18210 " guestfish -d myguest -i\n"
18211 "\n"
18212 msgstr ""
18213 " guestfish -d myguest -i\n"
18214 "\n"
18215
18216 #. type: textblock
18217 #: ../fish/guestfish.pod:270
18218 msgid "(for an inactive libvirt domain called I<myguest>), or:"
18219 msgstr ""
18220
18221 #. type: verbatim
18222 #: ../fish/guestfish.pod:272
18223 #, no-wrap
18224 msgid ""
18225 " guestfish --ro -d myguest -i\n"
18226 "\n"
18227 msgstr ""
18228 " guestfish --ro -d myguest -i\n"
18229 "\n"
18230
18231 #. type: textblock
18232 #: ../fish/guestfish.pod:274
18233 msgid "(for active domains, readonly), or specify the block device directly:"
18234 msgstr ""
18235
18236 #. type: verbatim
18237 #: ../fish/guestfish.pod:276
18238 #, no-wrap
18239 msgid ""
18240 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18241 "\n"
18242 msgstr ""
18243 " guestfish --rw -a /dev/Guests/MyGuest -i\n"
18244 "\n"
18245
18246 #. type: textblock
18247 #: ../fish/guestfish.pod:278
18248 msgid ""
18249 "Note that the command line syntax changed slightly over older versions of "
18250 "guestfish.  You can still use the old syntax:"
18251 msgstr ""
18252
18253 #. type: verbatim
18254 #: ../fish/guestfish.pod:281
18255 #, no-wrap
18256 msgid ""
18257 " guestfish [--ro] -i disk.img\n"
18258 "\n"
18259 msgstr ""
18260 " guestfish [--ro] -i disk.img\n"
18261 "\n"
18262
18263 #. type: verbatim
18264 #: ../fish/guestfish.pod:283
18265 #, no-wrap
18266 msgid ""
18267 " guestfish [--ro] -i libvirt-domain\n"
18268 "\n"
18269 msgstr ""
18270
18271 #. type: textblock
18272 #: ../fish/guestfish.pod:285
18273 msgid ""
18274 "Using this flag is mostly equivalent to using the C<inspect-os> command and "
18275 "then using other commands to mount the filesystems that were found."
18276 msgstr ""
18277
18278 #. type: =item
18279 #: ../fish/guestfish.pod:294
18280 msgid "B<--listen>"
18281 msgstr "B<--listen>"
18282
18283 #. type: textblock
18284 #: ../fish/guestfish.pod:296
18285 msgid ""
18286 "Fork into the background and listen for remote commands.  See section L</"
18287 "REMOTE CONTROL GUESTFISH OVER A SOCKET> below."
18288 msgstr ""
18289
18290 #. type: =item
18291 #: ../fish/guestfish.pod:299 ../fuse/guestmount.pod:168
18292 msgid "B<--live>"
18293 msgstr "B<--live>"
18294
18295 #. type: textblock
18296 #: ../fish/guestfish.pod:301 ../fuse/guestmount.pod:170
18297 msgid ""
18298 "Connect to a live virtual machine.  (Experimental, see L<guestfs(3)/"
18299 "ATTACHING TO RUNNING DAEMONS>)."
18300 msgstr ""
18301
18302 #. type: =item
18303 #: ../fish/guestfish.pod:304 ../fuse/guestmount.pod:173
18304 msgid "B<-m dev[:mountpoint[:options]]>"
18305 msgstr ""
18306
18307 #. type: =item
18308 #: ../fish/guestfish.pod:306 ../fuse/guestmount.pod:175
18309 msgid "B<--mount dev[:mountpoint[:options]]>"
18310 msgstr ""
18311
18312 #. type: textblock
18313 #: ../fish/guestfish.pod:308
18314 msgid "Mount the named partition or logical volume on the given mountpoint."
18315 msgstr ""
18316
18317 #. type: textblock
18318 #: ../fish/guestfish.pod:310
18319 msgid "If the mountpoint is omitted, it defaults to C</>."
18320 msgstr ""
18321
18322 #. type: textblock
18323 #: ../fish/guestfish.pod:312
18324 msgid "You have to mount something on C</> before most commands will work."
18325 msgstr ""
18326
18327 #. type: textblock
18328 #: ../fish/guestfish.pod:314
18329 msgid ""
18330 "If any I<-m> or I<--mount> options are given, the guest is automatically "
18331 "launched."
18332 msgstr ""
18333
18334 #. type: textblock
18335 #: ../fish/guestfish.pod:317
18336 msgid ""
18337 "If you don't know what filesystems a disk image contains, you can either run "
18338 "guestfish without this option, then list the partitions, filesystems and LVs "
18339 "available (see L</list-partitions>, L</list-filesystems> and L</lvs> "
18340 "commands), or you can use the L<virt-filesystems(1)> program."
18341 msgstr ""
18342
18343 #. type: textblock
18344 #: ../fish/guestfish.pod:323 ../fuse/guestmount.pod:183
18345 msgid ""
18346 "The third (and rarely used) part of the mount parameter is the list of mount "
18347 "options used to mount the underlying filesystem.  If this is not given, then "
18348 "the mount options are either the empty string or C<ro> (the latter if the "
18349 "I<--ro> flag is used).  By specifying the mount options, you override this "
18350 "default choice.  Probably the only time you would use this is to enable ACLs "
18351 "and/or extended attributes if the filesystem can support them:"
18352 msgstr ""
18353
18354 #. type: verbatim
18355 #: ../fish/guestfish.pod:331 ../fuse/guestmount.pod:191
18356 #, no-wrap
18357 msgid ""
18358 " -m /dev/sda1:/:acl,user_xattr\n"
18359 "\n"
18360 msgstr ""
18361
18362 #. type: textblock
18363 #: ../fish/guestfish.pod:333
18364 msgid "Using this flag is equivalent to using the C<mount-options> command."
18365 msgstr ""
18366
18367 #. type: =item
18368 #: ../fish/guestfish.pod:335 ../fuse/guestmount.pod:193
18369 #: ../resize/virt-resize.pod:358
18370 msgid "B<-n>"
18371 msgstr "B<-n>"
18372
18373 #. type: =item
18374 #: ../fish/guestfish.pod:337 ../fuse/guestmount.pod:195
18375 msgid "B<--no-sync>"
18376 msgstr "B<--no-sync>"
18377
18378 #. type: textblock
18379 #: ../fish/guestfish.pod:339
18380 msgid ""
18381 "Disable autosync.  This is enabled by default.  See the discussion of "
18382 "autosync in the L<guestfs(3)> manpage."
18383 msgstr ""
18384
18385 #. type: =item
18386 #: ../fish/guestfish.pod:342
18387 msgid "B<-N type>"
18388 msgstr "B<-N тип>"
18389
18390 #. type: =item
18391 #: ../fish/guestfish.pod:344
18392 msgid "B<--new type>"
18393 msgstr "B<--new тип>"
18394
18395 #. type: =item
18396 #: ../fish/guestfish.pod:346
18397 msgid "B<-N help>"
18398 msgstr "B<-N help>"
18399
18400 #. type: textblock
18401 #: ../fish/guestfish.pod:348
18402 msgid ""
18403 "Prepare a fresh disk image formatted as \"type\".  This is an alternative to "
18404 "the I<-a> option: whereas I<-a> adds an existing disk, I<-N> creates a "
18405 "preformatted disk with a filesystem and adds it.  See L</PREPARED DISK "
18406 "IMAGES> below."
18407 msgstr ""
18408
18409 #. type: =item
18410 #: ../fish/guestfish.pod:353
18411 msgid "B<--progress-bars>"
18412 msgstr "B<--progress-bars>"
18413
18414 #. type: textblock
18415 #: ../fish/guestfish.pod:355
18416 msgid "Enable progress bars, even when guestfish is used non-interactively."
18417 msgstr ""
18418
18419 #. type: textblock
18420 #: ../fish/guestfish.pod:357
18421 msgid ""
18422 "Progress bars are enabled by default when guestfish is used as an "
18423 "interactive shell."
18424 msgstr ""
18425
18426 #. type: =item
18427 #: ../fish/guestfish.pod:360
18428 msgid "B<--no-progress-bars>"
18429 msgstr "B<--no-progress-bars>"
18430
18431 #. type: textblock
18432 #: ../fish/guestfish.pod:362
18433 msgid "Disable progress bars."
18434 msgstr ""
18435
18436 #. type: =item
18437 #: ../fish/guestfish.pod:364
18438 msgid "B<--remote[=pid]>"
18439 msgstr "B<--remote[=pid]>"
18440
18441 #. type: textblock
18442 #: ../fish/guestfish.pod:366
18443 msgid ""
18444 "Send remote commands to C<$GUESTFISH_PID> or C<pid>.  See section L</REMOTE "
18445 "CONTROL GUESTFISH OVER A SOCKET> below."
18446 msgstr ""
18447
18448 #. type: =item
18449 #: ../fish/guestfish.pod:369 ../fuse/guestmount.pod:239
18450 #: ../rescue/virt-rescue.pod:161
18451 msgid "B<-r>"
18452 msgstr "B<-r>"
18453
18454 #. type: =item
18455 #: ../fish/guestfish.pod:371 ../fuse/guestmount.pod:241
18456 #: ../rescue/virt-rescue.pod:163
18457 msgid "B<--ro>"
18458 msgstr "B<--ro>"
18459
18460 #. type: textblock
18461 #: ../fish/guestfish.pod:373
18462 msgid ""
18463 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18464 "mounts are done read-only."
18465 msgstr ""
18466
18467 #. type: textblock
18468 #: ../fish/guestfish.pod:376 ../rescue/virt-rescue.pod:167
18469 msgid ""
18470 "The option must always be used if the disk image or virtual machine might be "
18471 "running, and is generally recommended in cases where you don't need write "
18472 "access to the disk."
18473 msgstr ""
18474
18475 #. type: textblock
18476 #: ../fish/guestfish.pod:380
18477 msgid ""
18478 "Note that prepared disk images created with I<-N> are not affected by this "
18479 "option.  Also commands like C<add> are not affected - you have to specify "
18480 "the C<readonly:true> option explicitly if you need it."
18481 msgstr ""
18482
18483 #. type: textblock
18484 #: ../fish/guestfish.pod:384
18485 msgid "See also L</OPENING DISKS FOR READ AND WRITE> below."
18486 msgstr ""
18487
18488 #. type: =item
18489 #: ../fish/guestfish.pod:386 ../fuse/guestmount.pod:253
18490 #: ../rescue/virt-rescue.pod:173
18491 msgid "B<--selinux>"
18492 msgstr "B<--selinux>"
18493
18494 #. type: textblock
18495 #: ../fish/guestfish.pod:388
18496 msgid "Enable SELinux support for the guest.  See L<guestfs(3)/SELINUX>."
18497 msgstr ""
18498
18499 #. type: textblock
18500 #: ../fish/guestfish.pod:394
18501 msgid ""
18502 "Enable very verbose messages.  This is particularly useful if you find a bug."
18503 msgstr ""
18504
18505 #. type: textblock
18506 #: ../fish/guestfish.pod:401
18507 msgid "Display the guestfish / libguestfs version number and exit."
18508 msgstr ""
18509
18510 #. type: =item
18511 #: ../fish/guestfish.pod:403 ../fuse/guestmount.pod:269
18512 #: ../rescue/virt-rescue.pod:194
18513 msgid "B<-w>"
18514 msgstr "B<-w>"
18515
18516 #. type: =item
18517 #: ../fish/guestfish.pod:405 ../fuse/guestmount.pod:271
18518 #: ../rescue/virt-rescue.pod:196
18519 msgid "B<--rw>"
18520 msgstr "B<--rw>"
18521
18522 #. type: textblock
18523 #: ../fish/guestfish.pod:407 ../fuse/guestmount.pod:273
18524 msgid ""
18525 "This changes the I<-a>, I<-d> and I<-m> options so that disks are added and "
18526 "mounts are done read-write."
18527 msgstr ""
18528
18529 #. type: textblock
18530 #: ../fish/guestfish.pod:410
18531 msgid "See L</OPENING DISKS FOR READ AND WRITE> below."
18532 msgstr ""
18533
18534 #. type: textblock
18535 #: ../fish/guestfish.pod:414
18536 msgid "Echo each command before executing it."
18537 msgstr ""
18538
18539 #. type: =head1
18540 #: ../fish/guestfish.pod:418
18541 msgid "COMMANDS ON COMMAND LINE"
18542 msgstr ""
18543
18544 #. type: textblock
18545 #: ../fish/guestfish.pod:420
18546 msgid ""
18547 "Any additional (non-option) arguments are treated as commands to execute."
18548 msgstr ""
18549
18550 #. type: textblock
18551 #: ../fish/guestfish.pod:423
18552 msgid ""
18553 "Commands to execute should be separated by a colon (C<:>), where the colon "
18554 "is a separate parameter.  Thus:"
18555 msgstr ""
18556
18557 #. type: verbatim
18558 #: ../fish/guestfish.pod:426
18559 #, no-wrap
18560 msgid ""
18561 " guestfish cmd [args...] : cmd [args...] : cmd [args...] ...\n"
18562 "\n"
18563 msgstr ""
18564
18565 #. type: textblock
18566 #: ../fish/guestfish.pod:428
18567 msgid ""
18568 "If there are no additional arguments, then we enter a shell, either an "
18569 "interactive shell with a prompt (if the input is a terminal) or a non-"
18570 "interactive shell."
18571 msgstr ""
18572
18573 #. type: textblock
18574 #: ../fish/guestfish.pod:432
18575 msgid ""
18576 "In either command line mode or non-interactive shell, the first command that "
18577 "gives an error causes the whole shell to exit.  In interactive mode (with a "
18578 "prompt) if a command fails, you can continue to enter commands."
18579 msgstr ""
18580
18581 #. type: =head1
18582 #: ../fish/guestfish.pod:437
18583 msgid "USING launch (OR run)"
18584 msgstr ""
18585
18586 #. type: textblock
18587 #: ../fish/guestfish.pod:439
18588 msgid ""
18589 "As with L<guestfs(3)>, you must first configure your guest by adding disks, "
18590 "then launch it, then mount any disks you need, and finally issue actions/"
18591 "commands.  So the general order of the day is:"
18592 msgstr ""
18593
18594 #. type: textblock
18595 #: ../fish/guestfish.pod:447
18596 msgid "add or -a/--add"
18597 msgstr ""
18598
18599 #. type: textblock
18600 #: ../fish/guestfish.pod:451
18601 msgid "launch (aka run)"
18602 msgstr ""
18603
18604 #. type: textblock
18605 #: ../fish/guestfish.pod:455
18606 msgid "mount or -m/--mount"
18607 msgstr ""
18608
18609 #. type: textblock
18610 #: ../fish/guestfish.pod:459
18611 msgid "any other commands"
18612 msgstr ""
18613
18614 #. type: textblock
18615 #: ../fish/guestfish.pod:463
18616 msgid ""
18617 "C<run> is a synonym for C<launch>.  You must C<launch> (or C<run>)  your "
18618 "guest before mounting or performing any other commands."
18619 msgstr ""
18620
18621 #. type: textblock
18622 #: ../fish/guestfish.pod:466
18623 msgid ""
18624 "The only exception is that if any of the I<-i>, I<-m>, I<--mount>, I<-N> or "
18625 "I<--new> options were given then C<run> is done automatically, simply "
18626 "because guestfish can't perform the action you asked for without doing this."
18627 msgstr ""
18628
18629 #. type: =head1
18630 #: ../fish/guestfish.pod:471
18631 msgid "OPENING DISKS FOR READ AND WRITE"
18632 msgstr ""
18633
18634 #. type: textblock
18635 #: ../fish/guestfish.pod:473
18636 msgid ""
18637 "The guestfish, L<guestmount(1)> and L<virt-rescue(1)> options I<--ro> and "
18638 "I<--rw> affect whether the other command line options I<-a>, I<-c>, I<-d>, "
18639 "I<-i> and I<-m> open disk images read-only or for writing."
18640 msgstr ""
18641
18642 #. type: textblock
18643 #: ../fish/guestfish.pod:478
18644 msgid ""
18645 "In libguestfs E<le> 1.10, guestfish, guestmount and virt-rescue defaulted to "
18646 "opening disk images supplied on the command line for write.  To open a disk "
18647 "image read-only you have to do I<-a image --ro>."
18648 msgstr ""
18649
18650 #. type: textblock
18651 #: ../fish/guestfish.pod:482
18652 msgid ""
18653 "This matters: If you accidentally open a live VM disk image writable then "
18654 "you will cause irreversible disk corruption."
18655 msgstr ""
18656
18657 #. type: textblock
18658 #: ../fish/guestfish.pod:485
18659 msgid ""
18660 "In a future libguestfs we intend to change the default the other way.  Disk "
18661 "images will be opened read-only.  You will have to either specify "
18662 "I<guestfish --rw>, I<guestmount --rw>, I<virt-rescue --rw>, or change the "
18663 "configuration file C</etc/libguestfs-tools.conf> in order to get write "
18664 "access for disk images specified by those other command line options."
18665 msgstr ""
18666
18667 #. type: textblock
18668 #: ../fish/guestfish.pod:492
18669 msgid ""
18670 "This version of guestfish, guestmount and virt-rescue has a I<--rw> option "
18671 "which does nothing (it is already the default).  However it is highly "
18672 "recommended that you use this option to indicate that you need write access, "
18673 "and prepare your scripts for the day when this option will be required for "
18674 "write access."
18675 msgstr ""
18676
18677 #. type: textblock
18678 #: ../fish/guestfish.pod:498
18679 msgid ""
18680 "B<Note:> This does I<not> affect commands like L</add> and L</mount>, or any "
18681 "other libguestfs program apart from guestfish and guestmount."
18682 msgstr ""
18683
18684 #. type: =head1
18685 #: ../fish/guestfish.pod:501
18686 msgid "QUOTING"
18687 msgstr ""
18688
18689 #. type: textblock
18690 #: ../fish/guestfish.pod:503
18691 msgid ""
18692 "You can quote ordinary parameters using either single or double quotes.  For "
18693 "example:"
18694 msgstr ""
18695
18696 #. type: verbatim
18697 #: ../fish/guestfish.pod:506
18698 #, no-wrap
18699 msgid ""
18700 " add \"file with a space.img\"\n"
18701 "\n"
18702 msgstr ""
18703
18704 #. type: verbatim
18705 #: ../fish/guestfish.pod:508
18706 #, no-wrap
18707 msgid ""
18708 " rm '/file name'\n"
18709 "\n"
18710 msgstr ""
18711
18712 #. type: verbatim
18713 #: ../fish/guestfish.pod:510
18714 #, no-wrap
18715 msgid ""
18716 " rm '/\"'\n"
18717 "\n"
18718 msgstr ""
18719
18720 #. type: textblock
18721 #: ../fish/guestfish.pod:512
18722 msgid ""
18723 "A few commands require a list of strings to be passed.  For these, use a "
18724 "whitespace-separated list, enclosed in quotes.  Strings containing "
18725 "whitespace to be passed through must be enclosed in single quotes.  A "
18726 "literal single quote must be escaped with a backslash."
18727 msgstr ""
18728
18729 #. type: verbatim
18730 #: ../fish/guestfish.pod:517
18731 #, no-wrap
18732 msgid ""
18733 " vgcreate VG \"/dev/sda1 /dev/sdb1\"\n"
18734 " command \"/bin/echo 'foo      bar'\"\n"
18735 " command \"/bin/echo \\'foo\\'\"\n"
18736 "\n"
18737 msgstr ""
18738
18739 #. type: =head2
18740 #: ../fish/guestfish.pod:521
18741 msgid "ESCAPE SEQUENCES IN DOUBLE QUOTED ARGUMENTS"
18742 msgstr ""
18743
18744 #. type: textblock
18745 #: ../fish/guestfish.pod:523
18746 msgid ""
18747 "In double-quoted arguments (only) use backslash to insert special characters:"
18748 msgstr ""
18749
18750 #. type: =item
18751 #: ../fish/guestfish.pod:528
18752 msgid "C<\\a>"
18753 msgstr ""
18754
18755 #. type: textblock
18756 #: ../fish/guestfish.pod:530
18757 msgid "Alert (bell) character."
18758 msgstr ""
18759
18760 #. type: =item
18761 #: ../fish/guestfish.pod:532
18762 msgid "C<\\b>"
18763 msgstr ""
18764
18765 #. type: textblock
18766 #: ../fish/guestfish.pod:534
18767 msgid "Backspace character."
18768 msgstr ""
18769
18770 #. type: =item
18771 #: ../fish/guestfish.pod:536
18772 msgid "C<\\f>"
18773 msgstr ""
18774
18775 #. type: textblock
18776 #: ../fish/guestfish.pod:538
18777 msgid "Form feed character."
18778 msgstr ""
18779
18780 #. type: =item
18781 #: ../fish/guestfish.pod:540
18782 msgid "C<\\n>"
18783 msgstr ""
18784
18785 #. type: textblock
18786 #: ../fish/guestfish.pod:542
18787 msgid "Newline character."
18788 msgstr ""
18789
18790 #. type: =item
18791 #: ../fish/guestfish.pod:544
18792 msgid "C<\\r>"
18793 msgstr ""
18794
18795 #. type: textblock
18796 #: ../fish/guestfish.pod:546
18797 msgid "Carriage return character."
18798 msgstr ""
18799
18800 #. type: =item
18801 #: ../fish/guestfish.pod:548
18802 msgid "C<\\t>"
18803 msgstr ""
18804
18805 #. type: textblock
18806 #: ../fish/guestfish.pod:550
18807 msgid "Horizontal tab character."
18808 msgstr ""
18809
18810 #. type: =item
18811 #: ../fish/guestfish.pod:552
18812 msgid "C<\\v>"
18813 msgstr ""
18814
18815 #. type: textblock
18816 #: ../fish/guestfish.pod:554
18817 msgid "Vertical tab character."
18818 msgstr ""
18819
18820 #. type: =item
18821 #: ../fish/guestfish.pod:556
18822 msgid "C<\\\">"
18823 msgstr ""
18824
18825 #. type: textblock
18826 #: ../fish/guestfish.pod:558
18827 msgid "A literal double quote character."
18828 msgstr ""
18829
18830 #. type: =item
18831 #: ../fish/guestfish.pod:560
18832 msgid "C<\\ooo>"
18833 msgstr ""
18834
18835 #. type: textblock
18836 #: ../fish/guestfish.pod:562
18837 msgid ""
18838 "A character with octal value I<ooo>.  There must be precisely 3 octal digits "
18839 "(unlike C)."
18840 msgstr ""
18841
18842 #. type: =item
18843 #: ../fish/guestfish.pod:565
18844 msgid "C<\\xhh>"
18845 msgstr ""
18846
18847 #. type: textblock
18848 #: ../fish/guestfish.pod:567
18849 msgid ""
18850 "A character with hex value I<hh>.  There must be precisely 2 hex digits."
18851 msgstr ""
18852
18853 #. type: textblock
18854 #: ../fish/guestfish.pod:570
18855 msgid ""
18856 "In the current implementation C<\\000> and C<\\x00> cannot be used in "
18857 "strings."
18858 msgstr ""
18859
18860 #. type: =item
18861 #: ../fish/guestfish.pod:573
18862 msgid "C<\\\\>"
18863 msgstr ""
18864
18865 #. type: textblock
18866 #: ../fish/guestfish.pod:575
18867 msgid "A literal backslash character."
18868 msgstr ""
18869
18870 #. type: =head1
18871 #: ../fish/guestfish.pod:579
18872 msgid "OPTIONAL ARGUMENTS"
18873 msgstr ""
18874
18875 #. type: textblock
18876 #: ../fish/guestfish.pod:581
18877 msgid ""
18878 "Some commands take optional arguments.  These arguments appear in this "
18879 "documentation as C<[argname:..]>.  You can use them as in these examples:"
18880 msgstr ""
18881
18882 #. type: verbatim
18883 #: ../fish/guestfish.pod:585
18884 #, no-wrap
18885 msgid ""
18886 " add-drive-opts filename\n"
18887 "\n"
18888 msgstr ""
18889
18890 #. type: verbatim
18891 #: ../fish/guestfish.pod:587
18892 #, no-wrap
18893 msgid ""
18894 " add-drive-opts filename readonly:true\n"
18895 "\n"
18896 msgstr ""
18897
18898 #. type: verbatim
18899 #: ../fish/guestfish.pod:589
18900 #, no-wrap
18901 msgid ""
18902 " add-drive-opts filename format:qcow2 readonly:false\n"
18903 "\n"
18904 msgstr ""
18905
18906 #. type: textblock
18907 #: ../fish/guestfish.pod:591
18908 msgid ""
18909 "Each optional argument can appear at most once.  All optional arguments must "
18910 "appear after the required ones."
18911 msgstr ""
18912
18913 #. type: =head1
18914 #: ../fish/guestfish.pod:594
18915 msgid "NUMBERS"
18916 msgstr "ЧИСЛА"
18917
18918 #. type: textblock
18919 #: ../fish/guestfish.pod:596
18920 msgid ""
18921 "This section applies to all commands which can take integers as parameters."
18922 msgstr ""
18923
18924 #. type: =head2
18925 #: ../fish/guestfish.pod:599
18926 msgid "SIZE SUFFIX"
18927 msgstr ""
18928
18929 #. type: textblock
18930 #: ../fish/guestfish.pod:601
18931 msgid ""
18932 "When the command takes a parameter measured in bytes, you can use one of the "
18933 "following suffixes to specify kilobytes, megabytes and larger sizes:"
18934 msgstr ""
18935
18936 #. type: =item
18937 #: ../fish/guestfish.pod:607
18938 msgid "B<k> or B<K> or B<KiB>"
18939 msgstr "B<k>, B<K> або B<KiB>"
18940
18941 #. type: textblock
18942 #: ../fish/guestfish.pod:609
18943 msgid "The size in kilobytes (multiplied by 1024)."
18944 msgstr ""
18945
18946 #. type: =item
18947 #: ../fish/guestfish.pod:611
18948 msgid "B<KB>"
18949 msgstr "B<KB>"
18950
18951 #. type: textblock
18952 #: ../fish/guestfish.pod:613
18953 msgid "The size in SI 1000 byte units."
18954 msgstr ""
18955
18956 #. type: =item
18957 #: ../fish/guestfish.pod:615
18958 msgid "B<M> or B<MiB>"
18959 msgstr "B<M> або B<MiB>"
18960
18961 #. type: textblock
18962 #: ../fish/guestfish.pod:617
18963 msgid "The size in megabytes (multiplied by 1048576)."
18964 msgstr ""
18965
18966 #. type: =item
18967 #: ../fish/guestfish.pod:619
18968 msgid "B<MB>"
18969 msgstr "B<MB>"
18970
18971 #. type: textblock
18972 #: ../fish/guestfish.pod:621
18973 msgid "The size in SI 1000000 byte units."
18974 msgstr ""
18975
18976 #. type: =item
18977 #: ../fish/guestfish.pod:623
18978 msgid "B<G> or B<GiB>"
18979 msgstr "B<G> або B<GiB>"
18980
18981 #. type: textblock
18982 #: ../fish/guestfish.pod:625
18983 msgid "The size in gigabytes (multiplied by 2**30)."
18984 msgstr "Розмір у гігабайтах (з множником 2**30)."
18985
18986 #. type: =item
18987 #: ../fish/guestfish.pod:627
18988 msgid "B<GB>"
18989 msgstr "B<GB>"
18990
18991 #. type: textblock
18992 #: ../fish/guestfish.pod:629
18993 msgid "The size in SI 10**9 byte units."
18994 msgstr "Розмір у одиницях СІ: 10**9 байтів."
18995
18996 #. type: =item
18997 #: ../fish/guestfish.pod:631
18998 msgid "B<T> or B<TiB>"
18999 msgstr "B<T> або B<TiB>"
19000
19001 #. type: textblock
19002 #: ../fish/guestfish.pod:633
19003 msgid "The size in terabytes (multiplied by 2**40)."
19004 msgstr "Розмір у терабайтах (з множником 2**40)."
19005
19006 #. type: =item
19007 #: ../fish/guestfish.pod:635
19008 msgid "B<TB>"
19009 msgstr "B<TB>"
19010
19011 #. type: textblock
19012 #: ../fish/guestfish.pod:637
19013 msgid "The size in SI 10**12 byte units."
19014 msgstr ""
19015
19016 #. type: =item
19017 #: ../fish/guestfish.pod:639
19018 msgid "B<P> or B<PiB>"
19019 msgstr "B<P> або B<PiB>"
19020
19021 #. type: textblock
19022 #: ../fish/guestfish.pod:641
19023 msgid "The size in petabytes (multiplied by 2**50)."
19024 msgstr ""
19025
19026 #. type: =item
19027 #: ../fish/guestfish.pod:643
19028 msgid "B<PB>"
19029 msgstr "B<PB>"
19030
19031 #. type: textblock
19032 #: ../fish/guestfish.pod:645
19033 msgid "The size in SI 10**15 byte units."
19034 msgstr ""
19035
19036 #. type: =item
19037 #: ../fish/guestfish.pod:647
19038 msgid "B<E> or B<EiB>"
19039 msgstr "B<E> або B<EiB>"
19040
19041 #. type: textblock
19042 #: ../fish/guestfish.pod:649
19043 msgid "The size in exabytes (multiplied by 2**60)."
19044 msgstr ""
19045
19046 #. type: =item
19047 #: ../fish/guestfish.pod:651
19048 msgid "B<EB>"
19049 msgstr "B<EB>"
19050
19051 #. type: textblock
19052 #: ../fish/guestfish.pod:653
19053 msgid "The size in SI 10**18 byte units."
19054 msgstr ""
19055
19056 #. type: =item
19057 #: ../fish/guestfish.pod:655
19058 msgid "B<Z> or B<ZiB>"
19059 msgstr "B<Z> або B<ZiB>"
19060
19061 #. type: textblock
19062 #: ../fish/guestfish.pod:657
19063 msgid "The size in zettabytes (multiplied by 2**70)."
19064 msgstr ""
19065
19066 #. type: =item
19067 #: ../fish/guestfish.pod:659
19068 msgid "B<ZB>"
19069 msgstr "B<ZB>"
19070
19071 #. type: textblock
19072 #: ../fish/guestfish.pod:661
19073 msgid "The size in SI 10**21 byte units."
19074 msgstr ""
19075
19076 #. type: =item
19077 #: ../fish/guestfish.pod:663
19078 msgid "B<Y> or B<YiB>"
19079 msgstr "B<Y> або B<YiB>"
19080
19081 #. type: textblock
19082 #: ../fish/guestfish.pod:665
19083 msgid "The size in yottabytes (multiplied by 2**80)."
19084 msgstr ""
19085
19086 #. type: =item
19087 #: ../fish/guestfish.pod:667
19088 msgid "B<YB>"
19089 msgstr "B<YB>"
19090
19091 #. type: textblock
19092 #: ../fish/guestfish.pod:669
19093 msgid "The size in SI 10**24 byte units."
19094 msgstr ""
19095
19096 #. type: verbatim
19097 #: ../fish/guestfish.pod:675
19098 #, no-wrap
19099 msgid ""
19100 " truncate-size /file 1G\n"
19101 "\n"
19102 msgstr ""
19103
19104 #. type: textblock
19105 #: ../fish/guestfish.pod:677
19106 msgid "would truncate the file to 1 gigabyte."
19107 msgstr ""
19108
19109 #. type: textblock
19110 #: ../fish/guestfish.pod:679
19111 msgid ""
19112 "Be careful because a few commands take sizes in kilobytes or megabytes (eg. "
19113 "the parameter to L</memsize> is specified in megabytes already).  Adding a "
19114 "suffix will probably not do what you expect."
19115 msgstr ""
19116
19117 #. type: =head2
19118 #: ../fish/guestfish.pod:683
19119 msgid "OCTAL AND HEXADECIMAL NUMBERS"
19120 msgstr ""
19121
19122 #. type: textblock
19123 #: ../fish/guestfish.pod:685
19124 msgid ""
19125 "For specifying the radix (base) use the C convention: C<0> to prefix an "
19126 "octal number or C<0x> to prefix a hexadecimal number.  For example:"
19127 msgstr ""
19128
19129 #. type: verbatim
19130 #: ../fish/guestfish.pod:688
19131 #, no-wrap
19132 msgid ""
19133 " 1234      decimal number 1234\n"
19134 " 02322     octal number, equivalent to decimal 1234\n"
19135 " 0x4d2     hexadecimal number, equivalent to decimal 1234\n"
19136 "\n"
19137 msgstr ""
19138
19139 #. type: textblock
19140 #: ../fish/guestfish.pod:692
19141 msgid ""
19142 "When using the C<chmod> command, you almost always want to specify an octal "
19143 "number for the mode, and you must prefix it with C<0> (unlike the Unix "
19144 "L<chmod(1)> program):"
19145 msgstr ""
19146
19147 #. type: verbatim
19148 #: ../fish/guestfish.pod:696
19149 #, no-wrap
19150 msgid ""
19151 " chmod 0777 /public  # OK\n"
19152 " chmod 777 /public   # WRONG! This is mode 777 decimal = 01411 octal.\n"
19153 "\n"
19154 msgstr ""
19155
19156 #. type: textblock
19157 #: ../fish/guestfish.pod:699
19158 msgid ""
19159 "Commands that return numbers usually print them in decimal, but some "
19160 "commands print numbers in other radices (eg. C<umask> prints the mode in "
19161 "octal, preceeded by C<0>)."
19162 msgstr ""
19163
19164 #. type: =head1
19165 #: ../fish/guestfish.pod:703
19166 msgid "WILDCARDS AND GLOBBING"
19167 msgstr ""
19168
19169 #. type: textblock
19170 #: ../fish/guestfish.pod:705
19171 msgid ""
19172 "Neither guestfish nor the underlying guestfs API performs wildcard expansion "
19173 "(globbing) by default.  So for example the following will not do what you "
19174 "expect:"
19175 msgstr ""
19176
19177 #. type: verbatim
19178 #: ../fish/guestfish.pod:709
19179 #, no-wrap
19180 msgid ""
19181 " rm-rf /home/*\n"
19182 "\n"
19183 msgstr ""
19184
19185 #. type: textblock
19186 #: ../fish/guestfish.pod:711
19187 msgid ""
19188 "Assuming you don't have a directory called literally C</home/*> then the "
19189 "above command will return an error."
19190 msgstr ""
19191
19192 #. type: textblock
19193 #: ../fish/guestfish.pod:714
19194 msgid "To perform wildcard expansion, use the C<glob> command."
19195 msgstr ""
19196
19197 #. type: verbatim
19198 #: ../fish/guestfish.pod:716
19199 #, no-wrap
19200 msgid ""
19201 " glob rm-rf /home/*\n"
19202 "\n"
19203 msgstr ""
19204
19205 #. type: textblock
19206 #: ../fish/guestfish.pod:718
19207 msgid ""
19208 "runs C<rm-rf> on each path that matches (ie. potentially running the command "
19209 "many times), equivalent to:"
19210 msgstr ""
19211
19212 #. type: verbatim
19213 #: ../fish/guestfish.pod:721
19214 #, no-wrap
19215 msgid ""
19216 " rm-rf /home/jim\n"
19217 " rm-rf /home/joe\n"
19218 " rm-rf /home/mary\n"
19219 "\n"
19220 msgstr ""
19221
19222 #. type: textblock
19223 #: ../fish/guestfish.pod:725
19224 msgid "C<glob> only works on simple guest paths and not on device names."
19225 msgstr ""
19226
19227 #. type: textblock
19228 #: ../fish/guestfish.pod:727
19229 msgid ""
19230 "If you have several parameters, each containing a wildcard, then glob will "
19231 "perform a Cartesian product."
19232 msgstr ""
19233
19234 #. type: =head1
19235 #: ../fish/guestfish.pod:730
19236 msgid "COMMENTS"
19237 msgstr "КОМЕНТАРІ"
19238
19239 #. type: textblock
19240 #: ../fish/guestfish.pod:732
19241 msgid ""
19242 "Any line which starts with a I<#> character is treated as a comment and "
19243 "ignored.  The I<#> can optionally be preceeded by whitespace, but B<not> by "
19244 "a command.  For example:"
19245 msgstr ""
19246
19247 #. type: verbatim
19248 #: ../fish/guestfish.pod:736
19249 #, no-wrap
19250 msgid ""
19251 " # this is a comment\n"
19252 "         # this is a comment\n"
19253 " foo # NOT a comment\n"
19254 "\n"
19255 msgstr ""
19256
19257 #. type: textblock
19258 #: ../fish/guestfish.pod:740
19259 msgid "Blank lines are also ignored."
19260 msgstr ""
19261
19262 #. type: =head1
19263 #: ../fish/guestfish.pod:742
19264 msgid "RUNNING COMMANDS LOCALLY"
19265 msgstr ""
19266
19267 #. type: textblock
19268 #: ../fish/guestfish.pod:744
19269 msgid ""
19270 "Any line which starts with a I<!> character is treated as a command sent to "
19271 "the local shell (C</bin/sh> or whatever L<system(3)> uses).  For example:"
19272 msgstr ""
19273
19274 #. type: verbatim
19275 #: ../fish/guestfish.pod:748
19276 #, no-wrap
19277 msgid ""
19278 " !mkdir local\n"
19279 " tgz-out /remote local/remote-data.tar.gz\n"
19280 "\n"
19281 msgstr ""
19282
19283 #. type: textblock
19284 #: ../fish/guestfish.pod:751
19285 msgid ""
19286 "will create a directory C<local> on the host, and then export the contents "
19287 "of C</remote> on the mounted filesystem to C<local/remote-data.tar.gz>.  "
19288 "(See C<tgz-out>)."
19289 msgstr ""
19290
19291 #. type: textblock
19292 #: ../fish/guestfish.pod:755
19293 msgid ""
19294 "To change the local directory, use the C<lcd> command.  C<!cd> will have no "
19295 "effect, due to the way that subprocesses work in Unix."
19296 msgstr ""
19297
19298 #. type: =head2
19299 #: ../fish/guestfish.pod:758
19300 msgid "LOCAL COMMANDS WITH INLINE EXECUTION"
19301 msgstr ""
19302
19303 #. type: textblock
19304 #: ../fish/guestfish.pod:760
19305 msgid ""
19306 "If a line starts with I<E<lt>!> then the shell command is executed (as for "
19307 "I<!>), but subsequently any output (stdout) of the shell command is parsed "
19308 "and executed as guestfish commands."
19309 msgstr ""
19310
19311 #. type: textblock
19312 #: ../fish/guestfish.pod:764
19313 msgid ""
19314 "Thus you can use shell script to construct arbitrary guestfish commands "
19315 "which are then parsed by guestfish."
19316 msgstr ""
19317
19318 #. type: textblock
19319 #: ../fish/guestfish.pod:767
19320 msgid ""
19321 "For example it is tedious to create a sequence of files (eg. C</foo.1> "
19322 "through C</foo.100>) using guestfish commands alone.  However this is simple "
19323 "if we use a shell script to create the guestfish commands for us:"
19324 msgstr ""
19325
19326 #. type: verbatim
19327 #: ../fish/guestfish.pod:772
19328 #, no-wrap
19329 msgid ""
19330 " <! for n in `seq 1 100`; do echo write /foo.$n $n; done\n"
19331 "\n"
19332 msgstr ""
19333
19334 #. type: textblock
19335 #: ../fish/guestfish.pod:774
19336 msgid "or with names like C</foo.001>:"
19337 msgstr ""
19338
19339 #. type: verbatim
19340 #: ../fish/guestfish.pod:776
19341 #, no-wrap
19342 msgid ""
19343 " <! for n in `seq 1 100`; do printf \"write /foo.%03d %d\\n\" $n $n; done\n"
19344 "\n"
19345 msgstr ""
19346
19347 #. type: textblock
19348 #: ../fish/guestfish.pod:778
19349 msgid ""
19350 "When using guestfish interactively it can be helpful to just run the shell "
19351 "script first (ie. remove the initial C<E<lt>> character so it is just an "
19352 "ordinary I<!> local command), see what guestfish commands it would run, and "
19353 "when you are happy with those prepend the C<E<lt>> character to run the "
19354 "guestfish commands for real."
19355 msgstr ""
19356
19357 #. type: =head1
19358 #: ../fish/guestfish.pod:784
19359 msgid "PIPES"
19360 msgstr "КАНАЛИ"
19361
19362 #. type: textblock
19363 #: ../fish/guestfish.pod:786
19364 msgid ""
19365 "Use C<command E<lt>spaceE<gt> | command> to pipe the output of the first "
19366 "command (a guestfish command) to the second command (any host command).  For "
19367 "example:"
19368 msgstr ""
19369
19370 #. type: verbatim
19371 #: ../fish/guestfish.pod:790
19372 #, no-wrap
19373 msgid ""
19374 " cat /etc/passwd | awk -F: '$3 == 0 { print }'\n"
19375 "\n"
19376 msgstr ""
19377
19378 #. type: textblock
19379 #: ../fish/guestfish.pod:792
19380 msgid ""
19381 "(where C<cat> is the guestfish cat command, but C<awk> is the host awk "
19382 "program).  The above command would list all accounts in the guest filesystem "
19383 "which have UID 0, ie. root accounts including backdoors.  Other examples:"
19384 msgstr ""
19385
19386 #. type: verbatim
19387 #: ../fish/guestfish.pod:797
19388 #, no-wrap
19389 msgid ""
19390 " hexdump /bin/ls | head\n"
19391 " list-devices | tail -1\n"
19392 " tgz-out / - | tar ztf -\n"
19393 "\n"
19394 msgstr ""
19395
19396 #. type: textblock
19397 #: ../fish/guestfish.pod:801
19398 msgid ""
19399 "The space before the pipe symbol is required, any space after the pipe "
19400 "symbol is optional.  Everything after the pipe symbol is just passed "
19401 "straight to the host shell, so it can contain redirections, globs and "
19402 "anything else that makes sense on the host side."
19403 msgstr ""
19404
19405 #. type: textblock
19406 #: ../fish/guestfish.pod:806
19407 msgid ""
19408 "To use a literal argument which begins with a pipe symbol, you have to quote "
19409 "it, eg:"
19410 msgstr ""
19411
19412 #. type: verbatim
19413 #: ../fish/guestfish.pod:809
19414 #, no-wrap
19415 msgid ""
19416 " echo \"|\"\n"
19417 "\n"
19418 msgstr ""
19419
19420 #. type: =head1
19421 #: ../fish/guestfish.pod:811
19422 msgid "HOME DIRECTORIES"
19423 msgstr ""
19424
19425 #. type: textblock
19426 #: ../fish/guestfish.pod:813
19427 msgid ""
19428 "If a parameter starts with the character C<~> then the tilde may be expanded "
19429 "as a home directory path (either C<~> for the current user's home directory, "
19430 "or C<~user> for another user)."
19431 msgstr ""
19432
19433 #. type: textblock
19434 #: ../fish/guestfish.pod:817
19435 msgid ""
19436 "Note that home directory expansion happens for users known I<on the host>, "
19437 "not in the guest filesystem."
19438 msgstr ""
19439
19440 #. type: textblock
19441 #: ../fish/guestfish.pod:820
19442 msgid ""
19443 "To use a literal argument which begins with a tilde, you have to quote it, "
19444 "eg:"
19445 msgstr ""
19446
19447 #. type: verbatim
19448 #: ../fish/guestfish.pod:823
19449 #, no-wrap
19450 msgid ""
19451 " echo \"~\"\n"
19452 "\n"
19453 msgstr ""
19454
19455 #. type: =head2
19456 #: ../fish/guestfish.pod:825 ../src/guestfs.pod:519
19457 msgid "ENCRYPTED DISKS"
19458 msgstr "ЗАШИФРОВАНІ ДИСКИ"
19459
19460 #. type: textblock
19461 #: ../fish/guestfish.pod:827
19462 msgid ""
19463 "Libguestfs has some support for Linux guests encrypted according to the "
19464 "Linux Unified Key Setup (LUKS) standard, which includes nearly all whole "
19465 "disk encryption systems used by modern Linux guests.  Currently only LVM-on-"
19466 "LUKS is supported."
19467 msgstr ""
19468
19469 #. type: textblock
19470 #: ../fish/guestfish.pod:832
19471 msgid "Identify encrypted block devices and partitions using L</vfs-type>:"
19472 msgstr ""
19473
19474 #. type: verbatim
19475 #: ../fish/guestfish.pod:834
19476 #, no-wrap
19477 msgid ""
19478 " ><fs> vfs-type /dev/sda2\n"
19479 " crypto_LUKS\n"
19480 "\n"
19481 msgstr ""
19482
19483 #. type: textblock
19484 #: ../fish/guestfish.pod:837
19485 msgid ""
19486 "Then open those devices using L</luks-open>.  This creates a device-mapper "
19487 "device called C</dev/mapper/luksdev>."
19488 msgstr ""
19489
19490 #. type: verbatim
19491 #: ../fish/guestfish.pod:840
19492 #, no-wrap
19493 msgid ""
19494 " ><fs> luks-open /dev/sda2 luksdev\n"
19495 " Enter key or passphrase (\"key\"): <enter the passphrase>\n"
19496 "\n"
19497 msgstr ""
19498
19499 #. type: textblock
19500 #: ../fish/guestfish.pod:843
19501 msgid ""
19502 "Finally you have to tell LVM to scan for volume groups on the newly created "
19503 "mapper device:"
19504 msgstr ""
19505
19506 #. type: verbatim
19507 #: ../fish/guestfish.pod:846
19508 #, no-wrap
19509 msgid ""
19510 " vgscan\n"
19511 " vg-activate-all true\n"
19512 "\n"
19513 msgstr ""
19514
19515 #. type: textblock
19516 #: ../fish/guestfish.pod:849
19517 msgid "The logical volume(s) can now be mounted in the usual way."
19518 msgstr ""
19519
19520 #. type: textblock
19521 #: ../fish/guestfish.pod:851
19522 msgid ""
19523 "Before closing a LUKS device you must unmount any logical volumes on it and "
19524 "deactivate the volume groups by calling C<vg-activate false VG> on each "
19525 "one.  Then you can close the mapper device:"
19526 msgstr ""
19527
19528 #. type: verbatim
19529 #: ../fish/guestfish.pod:855
19530 #, no-wrap
19531 msgid ""
19532 " vg-activate false /dev/VG\n"
19533 " luks-close /dev/mapper/luksdev\n"
19534 "\n"
19535 msgstr ""
19536
19537 #. type: textblock
19538 #: ../fish/guestfish.pod:860
19539 msgid ""
19540 "If a path is prefixed with C<win:> then you can use Windows-style drive "
19541 "letters and paths (with some limitations).  The following commands are "
19542 "equivalent:"
19543 msgstr ""
19544
19545 #. type: verbatim
19546 #: ../fish/guestfish.pod:864
19547 #, no-wrap
19548 msgid ""
19549 " file /WINDOWS/system32/config/system.LOG\n"
19550 "\n"
19551 msgstr ""
19552
19553 #. type: verbatim
19554 #: ../fish/guestfish.pod:866
19555 #, no-wrap
19556 msgid ""
19557 " file win:\\windows\\system32\\config\\system.log\n"
19558 "\n"
19559 msgstr ""
19560
19561 #. type: verbatim
19562 #: ../fish/guestfish.pod:868
19563 #, no-wrap
19564 msgid ""
19565 " file WIN:C:\\Windows\\SYSTEM32\\CONFIG\\SYSTEM.LOG\n"
19566 "\n"
19567 msgstr ""
19568
19569 #. type: textblock
19570 #: ../fish/guestfish.pod:870
19571 msgid ""
19572 "The parameter is rewritten \"behind the scenes\" by looking up the position "
19573 "where the drive is mounted, prepending that to the path, changing all "
19574 "backslash characters to forward slash, then resolving the result using L</"
19575 "case-sensitive-path>.  For example if the E: drive was mounted on C</e> then "
19576 "the parameter might be rewritten like this:"
19577 msgstr ""
19578
19579 #. type: verbatim
19580 #: ../fish/guestfish.pod:876
19581 #, no-wrap
19582 msgid ""
19583 " win:e:\\foo\\bar => /e/FOO/bar\n"
19584 "\n"
19585 msgstr ""
19586
19587 #. type: textblock
19588 #: ../fish/guestfish.pod:878
19589 msgid "This only works in argument positions that expect a path."
19590 msgstr ""
19591
19592 #. type: =head1
19593 #: ../fish/guestfish.pod:880
19594 msgid "UPLOADING AND DOWNLOADING FILES"
19595 msgstr ""
19596
19597 #. type: textblock
19598 #: ../fish/guestfish.pod:882
19599 msgid ""
19600 "For commands such as C<upload>, C<download>, C<tar-in>, C<tar-out> and "
19601 "others which upload from or download to a local file, you can use the "
19602 "special filename C<-> to mean \"from stdin\" or \"to stdout\".  For example:"
19603 msgstr ""
19604
19605 #. type: verbatim
19606 #: ../fish/guestfish.pod:886
19607 #, no-wrap
19608 msgid ""
19609 " upload - /foo\n"
19610 "\n"
19611 msgstr ""
19612
19613 #. type: textblock
19614 #: ../fish/guestfish.pod:888
19615 msgid ""
19616 "reads stdin and creates from that a file C</foo> in the disk image, and:"
19617 msgstr ""
19618
19619 #. type: verbatim
19620 #: ../fish/guestfish.pod:891
19621 #, no-wrap
19622 msgid ""
19623 " tar-out /etc - | tar tf -\n"
19624 "\n"
19625 msgstr ""
19626
19627 #. type: textblock
19628 #: ../fish/guestfish.pod:893
19629 msgid ""
19630 "writes the tarball to stdout and then pipes that into the external \"tar\" "
19631 "command (see L</PIPES>)."
19632 msgstr ""
19633
19634 #. type: textblock
19635 #: ../fish/guestfish.pod:896
19636 msgid ""
19637 "When using C<-> to read from stdin, the input is read up to the end of "
19638 "stdin.  You can also use a special \"heredoc\"-like syntax to read up to "
19639 "some arbitrary end marker:"
19640 msgstr ""
19641
19642 #. type: verbatim
19643 #: ../fish/guestfish.pod:900
19644 #, no-wrap
19645 msgid ""
19646 " upload -<<END /foo\n"
19647 " input line 1\n"
19648 " input line 2\n"
19649 " input line 3\n"
19650 " END\n"
19651 "\n"
19652 msgstr ""
19653
19654 #. type: textblock
19655 #: ../fish/guestfish.pod:906
19656 msgid ""
19657 "Any string of characters can be used instead of C<END>.  The end marker must "
19658 "appear on a line of its own, without any preceeding or following characters "
19659 "(not even spaces)."
19660 msgstr ""
19661
19662 #. type: textblock
19663 #: ../fish/guestfish.pod:910
19664 msgid ""
19665 "Note that the C<-E<lt>E<lt>> syntax only applies to parameters used to "
19666 "upload local files (so-called \"FileIn\" parameters in the generator)."
19667 msgstr ""
19668
19669 #. type: =head1
19670 #: ../fish/guestfish.pod:913
19671 msgid "EXIT ON ERROR BEHAVIOUR"
19672 msgstr ""
19673
19674 #. type: textblock
19675 #: ../fish/guestfish.pod:915
19676 msgid ""
19677 "By default, guestfish will ignore any errors when in interactive mode (ie. "
19678 "taking commands from a human over a tty), and will exit on the first error "
19679 "in non-interactive mode (scripts, commands given on the command line)."
19680 msgstr ""
19681
19682 #. type: textblock
19683 #: ../fish/guestfish.pod:920
19684 msgid ""
19685 "If you prefix a command with a I<-> character, then that command will not "
19686 "cause guestfish to exit, even if that (one) command returns an error."
19687 msgstr ""
19688
19689 #. type: =head1
19690 #: ../fish/guestfish.pod:924
19691 msgid "REMOTE CONTROL GUESTFISH OVER A SOCKET"
19692 msgstr ""
19693
19694 #. type: textblock
19695 #: ../fish/guestfish.pod:926
19696 msgid ""
19697 "Guestfish can be remote-controlled over a socket.  This is useful "
19698 "particularly in shell scripts where you want to make several different "
19699 "changes to a filesystem, but you don't want the overhead of starting up a "
19700 "guestfish process each time."
19701 msgstr ""
19702
19703 #. type: textblock
19704 #: ../fish/guestfish.pod:931
19705 msgid "Start a guestfish server process using:"
19706 msgstr ""
19707
19708 #. type: verbatim
19709 #: ../fish/guestfish.pod:933
19710 #, no-wrap
19711 msgid ""
19712 " eval \"`guestfish --listen`\"\n"
19713 "\n"
19714 msgstr ""
19715
19716 #. type: textblock
19717 #: ../fish/guestfish.pod:935
19718 msgid "and then send it commands by doing:"
19719 msgstr ""
19720
19721 #. type: verbatim
19722 #: ../fish/guestfish.pod:937
19723 #, no-wrap
19724 msgid ""
19725 " guestfish --remote cmd [...]\n"
19726 "\n"
19727 msgstr ""
19728
19729 #. type: textblock
19730 #: ../fish/guestfish.pod:939
19731 msgid "To cause the server to exit, send it the exit command:"
19732 msgstr ""
19733
19734 #. type: textblock
19735 #: ../fish/guestfish.pod:943
19736 msgid ""
19737 "Note that the server will normally exit if there is an error in a command.  "
19738 "You can change this in the usual way.  See section L</EXIT ON ERROR "
19739 "BEHAVIOUR>."
19740 msgstr ""
19741
19742 #. type: =head2
19743 #: ../fish/guestfish.pod:947
19744 msgid "CONTROLLING MULTIPLE GUESTFISH PROCESSES"
19745 msgstr ""
19746
19747 #. type: textblock
19748 #: ../fish/guestfish.pod:949
19749 msgid ""
19750 "The C<eval> statement sets the environment variable C<$GUESTFISH_PID>, which "
19751 "is how the I<--remote> option knows where to send the commands.  You can "
19752 "have several guestfish listener processes running using:"
19753 msgstr ""
19754
19755 #. type: verbatim
19756 #: ../fish/guestfish.pod:953
19757 #, no-wrap
19758 msgid ""
19759 " eval \"`guestfish --listen`\"\n"
19760 " pid1=$GUESTFISH_PID\n"
19761 " eval \"`guestfish --listen`\"\n"
19762 " pid2=$GUESTFISH_PID\n"
19763 " ...\n"
19764 " guestfish --remote=$pid1 cmd\n"
19765 " guestfish --remote=$pid2 cmd\n"
19766 "\n"
19767 msgstr ""
19768
19769 #. type: =head2
19770 #: ../fish/guestfish.pod:961
19771 msgid "REMOTE CONTROL AND CSH"
19772 msgstr ""
19773
19774 #. type: textblock
19775 #: ../fish/guestfish.pod:963
19776 msgid ""
19777 "When using csh-like shells (csh, tcsh etc) you have to add the I<--csh> "
19778 "option:"
19779 msgstr ""
19780
19781 #. type: verbatim
19782 #: ../fish/guestfish.pod:966
19783 #, no-wrap
19784 msgid ""
19785 " eval \"`guestfish --listen --csh`\"\n"
19786 "\n"
19787 msgstr ""
19788
19789 #. type: =head2
19790 #: ../fish/guestfish.pod:968
19791 msgid "REMOTE CONTROL DETAILS"
19792 msgstr ""
19793
19794 #. type: textblock
19795 #: ../fish/guestfish.pod:970
19796 msgid ""
19797 "Remote control happens over a Unix domain socket called C</tmp/.guestfish-"
19798 "$UID/socket-$PID>, where C<$UID> is the effective user ID of the process, "
19799 "and C<$PID> is the process ID of the server."
19800 msgstr ""
19801
19802 #. type: textblock
19803 #: ../fish/guestfish.pod:974
19804 msgid "Guestfish client and server versions must match exactly."
19805 msgstr ""
19806
19807 #. type: =head2
19808 #: ../fish/guestfish.pod:976
19809 msgid "REMOTE CONTROL RUN COMMAND HANGING"
19810 msgstr ""
19811
19812 #. type: textblock
19813 #: ../fish/guestfish.pod:978
19814 msgid ""
19815 "Using the C<run> (or C<launch>) command remotely in a command substitution "
19816 "context hangs, ie. don't do (note the backquotes):"
19817 msgstr ""
19818
19819 #. type: verbatim
19820 #: ../fish/guestfish.pod:981
19821 #, fuzzy, no-wrap
19822 #| msgid ""
19823 #| " guestfish --ro -d myguest -i\n"
19824 #| "\n"
19825 msgid ""
19826 " a=`guestfish --remote run`\n"
19827 "\n"
19828 msgstr ""
19829 " guestfish --ro -d myguest -i\n"
19830 "\n"
19831
19832 #. type: textblock
19833 #: ../fish/guestfish.pod:983
19834 msgid ""
19835 "Since the C<run> command produces no output on stdout, this is not useful "
19836 "anyway.  For further information see L<https://bugzilla.redhat.com/show_bug."
19837 "cgi?id=592910>."
19838 msgstr ""
19839
19840 #. type: =head1
19841 #: ../fish/guestfish.pod:987
19842 msgid "PREPARED DISK IMAGES"
19843 msgstr ""
19844
19845 #. type: textblock
19846 #: ../fish/guestfish.pod:989
19847 msgid ""
19848 "Use the I<-N type> or I<--new type> parameter to select one of a set of "
19849 "preformatted disk images that guestfish can make for you to save typing.  "
19850 "This is particularly useful for testing purposes.  This option is used "
19851 "instead of the I<-a> option, and like I<-a> can appear multiple times (and "
19852 "can be mixed with I<-a>)."
19853 msgstr ""
19854
19855 #. type: textblock
19856 #: ../fish/guestfish.pod:995
19857 msgid ""
19858 "The new disk is called C<test1.img> for the first I<-N>, C<test2.img> for "
19859 "the second and so on.  Existing files in the current directory are "
19860 "I<overwritten>."
19861 msgstr ""
19862
19863 #. type: textblock
19864 #: ../fish/guestfish.pod:999
19865 msgid ""
19866 "The type briefly describes how the disk should be sized, partitioned, how "
19867 "filesystem(s) should be created, and how content should be added.  "
19868 "Optionally the type can be followed by extra parameters, separated by C<:> "
19869 "(colon) characters.  For example, I<-N fs> creates a default 100MB, sparsely-"
19870 "allocated disk, containing a single partition, with the partition formatted "
19871 "as ext2.  I<-N fs:ext4:1G> is the same, but for an ext4 filesystem on a 1GB "
19872 "disk instead."
19873 msgstr ""
19874
19875 #. type: textblock
19876 #: ../fish/guestfish.pod:1007
19877 msgid "To list the available types and any extra parameters they take, run:"
19878 msgstr ""
19879
19880 #. type: textblock
19881 #: ../fish/guestfish.pod:1011
19882 msgid ""
19883 "Note that the prepared filesystem is not mounted.  You would usually have to "
19884 "use the C<mount /dev/sda1 /> command or add the I<-m /dev/sda1> option."
19885 msgstr ""
19886
19887 #. type: textblock
19888 #: ../fish/guestfish.pod:1015
19889 msgid ""
19890 "If any I<-N> or I<--new> options are given, the guest is automatically "
19891 "launched."
19892 msgstr ""
19893
19894 #. type: textblock
19895 #: ../fish/guestfish.pod:1020
19896 msgid "Create a 100MB disk with an ext4-formatted partition:"
19897 msgstr ""
19898
19899 #. type: verbatim
19900 #: ../fish/guestfish.pod:1022
19901 #, no-wrap
19902 msgid ""
19903 " guestfish -N fs:ext4\n"
19904 "\n"
19905 msgstr ""
19906
19907 #. type: textblock
19908 #: ../fish/guestfish.pod:1024
19909 msgid "Create a 32MB disk with a VFAT-formatted partition, and mount it:"
19910 msgstr ""
19911
19912 #. type: verbatim
19913 #: ../fish/guestfish.pod:1026
19914 #, no-wrap
19915 msgid ""
19916 " guestfish -N fs:vfat:32M -m /dev/sda1\n"
19917 "\n"
19918 msgstr ""
19919
19920 #. type: textblock
19921 #: ../fish/guestfish.pod:1028
19922 msgid "Create a blank 200MB disk:"
19923 msgstr ""
19924
19925 #. type: verbatim
19926 #: ../fish/guestfish.pod:1030
19927 #, no-wrap
19928 msgid ""
19929 " guestfish -N disk:200M\n"
19930 "\n"
19931 msgstr ""
19932
19933 #. type: =head1
19934 #: ../fish/guestfish.pod:1032
19935 msgid "PROGRESS BARS"
19936 msgstr ""
19937
19938 #. type: textblock
19939 #: ../fish/guestfish.pod:1034
19940 msgid ""
19941 "Some (not all) long-running commands send progress notification messages as "
19942 "they are running.  Guestfish turns these messages into progress bars."
19943 msgstr ""
19944
19945 #. type: textblock
19946 #: ../fish/guestfish.pod:1038
19947 msgid ""
19948 "When a command that supports progress bars takes longer than two seconds to "
19949 "run, and if progress bars are enabled, then you will see one appearing below "
19950 "the command:"
19951 msgstr ""
19952
19953 #. type: verbatim
19954 #: ../fish/guestfish.pod:1042
19955 #, no-wrap
19956 msgid ""
19957 " ><fs> copy-size /large-file /another-file 2048M\n"
19958 " / 10% [#####-----------------------------------------] 00:30\n"
19959 "\n"
19960 msgstr ""
19961
19962 #. type: textblock
19963 #: ../fish/guestfish.pod:1045
19964 msgid ""
19965 "The spinner on the left hand side moves round once for every progress "
19966 "notification received from the backend.  This is a (reasonably) golden "
19967 "assurance that the command is \"doing something\" even if the progress bar "
19968 "is not moving, because the command is able to send the progress "
19969 "notifications.  When the bar reaches 100% and the command finishes, the "
19970 "spinner disappears."
19971 msgstr ""
19972
19973 #. type: textblock
19974 #: ../fish/guestfish.pod:1052
19975 msgid ""
19976 "Progress bars are enabled by default when guestfish is used interactively.  "
19977 "You can enable them even for non-interactive modes using I<--progress-bars>, "
19978 "and you can disable them completely using I<--no-progress-bars>."
19979 msgstr ""
19980
19981 #. type: =head1
19982 #: ../fish/guestfish.pod:1057
19983 msgid "GUESTFISH COMMANDS"
19984 msgstr ""
19985
19986 #. type: textblock
19987 #: ../fish/guestfish.pod:1059
19988 msgid ""
19989 "The commands in this section are guestfish convenience commands, in other "
19990 "words, they are not part of the L<guestfs(3)> API."
19991 msgstr ""
19992
19993 #. type: =head2
19994 #: ../fish/guestfish.pod:1062
19995 msgid "help"
19996 msgstr "help"
19997
19998 #. type: verbatim
19999 #: ../fish/guestfish.pod:1064
20000 #, no-wrap
20001 msgid ""
20002 " help\n"
20003 " help cmd\n"
20004 "\n"
20005 msgstr ""
20006 " help\n"
20007 " help команда\n"
20008 "\n"
20009
20010 #. type: textblock
20011 #: ../fish/guestfish.pod:1067
20012 msgid "Without any parameter, this provides general help."
20013 msgstr "Без параметра показує загальну довідкову інформацію."
20014
20015 #. type: textblock
20016 #: ../fish/guestfish.pod:1069
20017 msgid "With a C<cmd> parameter, this displays detailed help for that command."
20018 msgstr ""
20019
20020 #. type: =head2
20021 #: ../fish/guestfish.pod:1071
20022 msgid "quit | exit"
20023 msgstr ""
20024
20025 #. type: textblock
20026 #: ../fish/guestfish.pod:1073
20027 msgid "This exits guestfish.  You can also use C<^D> key."
20028 msgstr ""
20029
20030 #. type: textblock
20031 #: ../fish/guestfish.pod:1075
20032 msgid "@FISH_COMMANDS@"
20033 msgstr ""
20034
20035 #. type: =head1
20036 #: ../fish/guestfish.pod:1077
20037 msgid "COMMANDS"
20038 msgstr "КОМАНДИ"
20039
20040 #. type: textblock
20041 #: ../fish/guestfish.pod:1079 ../src/guestfs.pod:1505
20042 msgid "@ACTIONS@"
20043 msgstr "@ACTIONS@"
20044
20045 #. type: textblock
20046 #: ../fish/guestfish.pod:1083
20047 msgid ""
20048 "guestfish returns 0 if the commands completed without error, or 1 if there "
20049 "was an error."
20050 msgstr ""
20051
20052 #. type: =item
20053 #: ../fish/guestfish.pod:1090
20054 msgid "EDITOR"
20055 msgstr "РЕДАКТОР"
20056
20057 #. type: textblock
20058 #: ../fish/guestfish.pod:1092
20059 msgid ""
20060 "The C<edit> command uses C<$EDITOR> as the editor.  If not set, it uses "
20061 "C<vi>."
20062 msgstr ""
20063
20064 #. type: =item
20065 #: ../fish/guestfish.pod:1095 ../src/guestfs.pod:3122
20066 msgid "FEBOOTSTRAP_KERNEL"
20067 msgstr ""
20068
20069 #. type: =item
20070 #: ../fish/guestfish.pod:1097 ../src/guestfs.pod:3124
20071 msgid "FEBOOTSTRAP_MODULES"
20072 msgstr ""
20073
20074 #. type: textblock
20075 #: ../fish/guestfish.pod:1099 ../src/guestfs.pod:3126
20076 msgid ""
20077 "These two environment variables allow the kernel that libguestfs uses in the "
20078 "appliance to be selected.  If C<$FEBOOTSTRAP_KERNEL> is not set, then the "
20079 "most recent host kernel is chosen.  For more information about kernel "
20080 "selection, see L<febootstrap-supermin-helper(8)>.  This feature is only "
20081 "available in febootstrap E<ge> 3.8."
20082 msgstr ""
20083
20084 #. type: =item
20085 #: ../fish/guestfish.pod:1105
20086 msgid "GUESTFISH_DISPLAY_IMAGE"
20087 msgstr ""
20088
20089 #. type: textblock
20090 #: ../fish/guestfish.pod:1107
20091 msgid ""
20092 "The C<display> command uses C<$GUESTFISH_DISPLAY_IMAGE> to display images.  "
20093 "If not set, it uses L<display(1)>."
20094 msgstr ""
20095
20096 #. type: =item
20097 #: ../fish/guestfish.pod:1110
20098 msgid "GUESTFISH_PID"
20099 msgstr ""
20100
20101 #. type: textblock
20102 #: ../fish/guestfish.pod:1112
20103 msgid ""
20104 "Used with the I<--remote> option to specify the remote guestfish process to "
20105 "control.  See section L</REMOTE CONTROL GUESTFISH OVER A SOCKET>."
20106 msgstr ""
20107
20108 #. type: =item
20109 #: ../fish/guestfish.pod:1116
20110 msgid "HEXEDITOR"
20111 msgstr ""
20112
20113 #. type: textblock
20114 #: ../fish/guestfish.pod:1118
20115 msgid ""
20116 "The L</hexedit> command uses C<$HEXEDITOR> as the external hex editor.  If "
20117 "not specified, the external L<hexedit(1)> program is used."
20118 msgstr ""
20119
20120 #. type: =item
20121 #: ../fish/guestfish.pod:1122
20122 msgid "HOME"
20123 msgstr "ДОМІВКА"
20124
20125 #. type: textblock
20126 #: ../fish/guestfish.pod:1124
20127 msgid ""
20128 "If compiled with GNU readline support, various files in the home directory "
20129 "can be used.  See L</FILES>."
20130 msgstr ""
20131
20132 #. type: =item
20133 #: ../fish/guestfish.pod:1127 ../src/guestfs.pod:3132
20134 msgid "LIBGUESTFS_APPEND"
20135 msgstr ""
20136
20137 #. type: textblock
20138 #: ../fish/guestfish.pod:1129 ../src/guestfs.pod:3134
20139 msgid "Pass additional options to the guest kernel."
20140 msgstr ""
20141
20142 #. type: =item
20143 #: ../fish/guestfish.pod:1131 ../src/guestfs.pod:3136
20144 msgid "LIBGUESTFS_DEBUG"
20145 msgstr "LIBGUESTFS_DEBUG"
20146
20147 #. type: textblock
20148 #: ../fish/guestfish.pod:1133
20149 msgid ""
20150 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
20151 "effect as using the B<-v> option."
20152 msgstr ""
20153
20154 #. type: =item
20155 #: ../fish/guestfish.pod:1136 ../src/guestfs.pod:3141
20156 msgid "LIBGUESTFS_MEMSIZE"
20157 msgstr "LIBGUESTFS_MEMSIZE"
20158
20159 #. type: textblock
20160 #: ../fish/guestfish.pod:1138 ../src/guestfs.pod:3143
20161 msgid ""
20162 "Set the memory allocated to the qemu process, in megabytes.  For example:"
20163 msgstr ""
20164
20165 #. type: verbatim
20166 #: ../fish/guestfish.pod:1141 ../src/guestfs.pod:3146
20167 #, no-wrap
20168 msgid ""
20169 " LIBGUESTFS_MEMSIZE=700\n"
20170 "\n"
20171 msgstr ""
20172 " LIBGUESTFS_MEMSIZE=700\n"
20173 "\n"
20174
20175 #. type: =item
20176 #: ../fish/guestfish.pod:1143 ../src/guestfs.pod:3148
20177 msgid "LIBGUESTFS_PATH"
20178 msgstr ""
20179
20180 #. type: textblock
20181 #: ../fish/guestfish.pod:1145
20182 msgid ""
20183 "Set the path that guestfish uses to search for kernel and initrd.img.  See "
20184 "the discussion of paths in L<guestfs(3)>."
20185 msgstr ""
20186
20187 #. type: =item
20188 #: ../fish/guestfish.pod:1148 ../src/guestfs.pod:3153
20189 msgid "LIBGUESTFS_QEMU"
20190 msgstr ""
20191
20192 #. type: textblock
20193 #: ../fish/guestfish.pod:1150 ../src/guestfs.pod:3155
20194 msgid ""
20195 "Set the default qemu binary that libguestfs uses.  If not set, then the qemu "
20196 "which was found at compile time by the configure script is used."
20197 msgstr ""
20198
20199 #. type: =item
20200 #: ../fish/guestfish.pod:1154 ../src/guestfs.pod:3161
20201 msgid "LIBGUESTFS_TRACE"
20202 msgstr ""
20203
20204 #. type: textblock
20205 #: ../fish/guestfish.pod:1156
20206 msgid "Set C<LIBGUESTFS_TRACE=1> to enable command traces."
20207 msgstr ""
20208
20209 #. type: =item
20210 #: ../fish/guestfish.pod:1158
20211 msgid "PAGER"
20212 msgstr "РОЗБИТТЯ НА СТОРІНКИ"
20213
20214 #. type: textblock
20215 #: ../fish/guestfish.pod:1160
20216 msgid ""
20217 "The C<more> command uses C<$PAGER> as the pager.  If not set, it uses "
20218 "C<more>."
20219 msgstr ""
20220
20221 #. type: =item
20222 #: ../fish/guestfish.pod:1163 ../sparsify/virt-sparsify.pod:236
20223 #: ../src/guestfs.pod:3166
20224 msgid "TMPDIR"
20225 msgstr ""
20226
20227 #. type: textblock
20228 #: ../fish/guestfish.pod:1165 ../src/guestfs.pod:3168
20229 msgid ""
20230 "Location of temporary directory, defaults to C</tmp> except for the cached "
20231 "supermin appliance which defaults to C</var/tmp>."
20232 msgstr ""
20233
20234 #. type: textblock
20235 #: ../fish/guestfish.pod:1168 ../src/guestfs.pod:3171
20236 msgid ""
20237 "If libguestfs was compiled to use the supermin appliance then the real "
20238 "appliance is cached in this directory, shared between all handles belonging "
20239 "to the same EUID.  You can use C<$TMPDIR> to configure another directory to "
20240 "use in case C</var/tmp> is not large enough."
20241 msgstr ""
20242
20243 #. type: =head1
20244 #: ../fish/guestfish.pod:1176 ../fuse/guestmount.pod:288
20245 #: ../rescue/virt-rescue.pod:273
20246 msgid "FILES"
20247 msgstr "ФАЙЛИ"
20248
20249 #. type: =item
20250 #: ../fish/guestfish.pod:1180 ../fuse/guestmount.pod:292
20251 #: ../rescue/virt-rescue.pod:277
20252 msgid "$HOME/.libguestfs-tools.rc"
20253 msgstr ""
20254
20255 #. type: =item
20256 #: ../fish/guestfish.pod:1182 ../fuse/guestmount.pod:294
20257 #: ../rescue/virt-rescue.pod:279
20258 msgid "/etc/libguestfs-tools.conf"
20259 msgstr ""
20260
20261 #. type: textblock
20262 #: ../fish/guestfish.pod:1184 ../fuse/guestmount.pod:296
20263 #: ../rescue/virt-rescue.pod:281
20264 msgid ""
20265 "This configuration file controls the default read-only or read-write mode "
20266 "(I<--ro> or I<--rw>)."
20267 msgstr ""
20268
20269 #. type: textblock
20270 #: ../fish/guestfish.pod:1187
20271 msgid "See L</OPENING DISKS FOR READ AND WRITE>."
20272 msgstr ""
20273
20274 #. type: =item
20275 #: ../fish/guestfish.pod:1189
20276 msgid "$HOME/.guestfish"
20277 msgstr ""
20278
20279 #. type: textblock
20280 #: ../fish/guestfish.pod:1191
20281 msgid ""
20282 "If compiled with GNU readline support, then the command history is saved in "
20283 "this file."
20284 msgstr ""
20285
20286 #. type: =item
20287 #: ../fish/guestfish.pod:1194
20288 msgid "$HOME/.inputrc"
20289 msgstr ""
20290
20291 #. type: =item
20292 #: ../fish/guestfish.pod:1196
20293 msgid "/etc/inputrc"
20294 msgstr ""
20295
20296 #. type: textblock
20297 #: ../fish/guestfish.pod:1198
20298 msgid ""
20299 "If compiled with GNU readline support, then these files can be used to "
20300 "configure readline.  For further information, please see L<readline(3)/"
20301 "INITIALIZATION FILE>."
20302 msgstr ""
20303
20304 #. type: textblock
20305 #: ../fish/guestfish.pod:1202
20306 msgid "To write rules which only apply to guestfish, use:"
20307 msgstr ""
20308
20309 #. type: verbatim
20310 #: ../fish/guestfish.pod:1204
20311 #, no-wrap
20312 msgid ""
20313 " $if guestfish\n"
20314 " ...\n"
20315 " $endif\n"
20316 "\n"
20317 msgstr ""
20318
20319 #. type: textblock
20320 #: ../fish/guestfish.pod:1208
20321 msgid ""
20322 "Variables that you can set in inputrc that change the behaviour of guestfish "
20323 "in useful ways include:"
20324 msgstr ""
20325
20326 #. type: =item
20327 #: ../fish/guestfish.pod:1213
20328 msgid "completion-ignore-case (default: on)"
20329 msgstr ""
20330
20331 #. type: textblock
20332 #: ../fish/guestfish.pod:1215
20333 msgid ""
20334 "By default, guestfish will ignore case when tab-completing paths on the "
20335 "disk.  Use:"
20336 msgstr ""
20337
20338 #. type: verbatim
20339 #: ../fish/guestfish.pod:1218
20340 #, no-wrap
20341 msgid ""
20342 " set completion-ignore-case off\n"
20343 "\n"
20344 msgstr ""
20345
20346 #. type: textblock
20347 #: ../fish/guestfish.pod:1220
20348 msgid "to make guestfish case sensitive."
20349 msgstr ""
20350
20351 #. type: =item
20352 #: ../fish/guestfish.pod:1224
20353 msgid "test1.img"
20354 msgstr ""
20355
20356 #. type: =item
20357 #: ../fish/guestfish.pod:1226
20358 msgid "test2.img (etc)"
20359 msgstr ""
20360
20361 #. type: textblock
20362 #: ../fish/guestfish.pod:1228
20363 msgid ""
20364 "When using the I<-N> or I<--new> option, the prepared disk or filesystem "
20365 "will be created in the file C<test1.img> in the current directory.  The "
20366 "second use of I<-N> will use C<test2.img> and so on.  Any existing file with "
20367 "the same name will be overwritten."
20368 msgstr ""
20369
20370 #. type: textblock
20371 #: ../fish/guestfish.pod:1237
20372 msgid ""
20373 "L<guestfs(3)>, L<http://libguestfs.org/>, L<virt-alignment-scan(1)>, L<virt-"
20374 "cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit"
20375 "(1)>, L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems"
20376 "(1)>, L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-"
20377 "rescue(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-tar(1)>, L<virt-"
20378 "tar-in(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<display(1)>, L<hexedit"
20379 "(1)>, L<febootstrap-supermin-helper(8)>."
20380 msgstr ""
20381
20382 #. type: textblock
20383 #: ../fish/guestfish.pod:1268 ../src/guestfs.pod:3261
20384 #: ../test-tool/libguestfs-test-tool.pod:112
20385 msgid "Copyright (C) 2009-2011 Red Hat Inc.  L<http://libguestfs.org/>"
20386 msgstr ""
20387
20388 #. type: textblock
20389 #: ../fish/virt-copy-in.pod:5
20390 msgid ""
20391 "virt-copy-in - Copy files and directories into a virtual machine disk image."
20392 msgstr ""
20393
20394 #. type: verbatim
20395 #: ../fish/virt-copy-in.pod:9
20396 #, no-wrap
20397 msgid ""
20398 " virt-copy-in -a disk.img file|dir [file|dir ...] /destination\n"
20399 "\n"
20400 msgstr ""
20401
20402 #. type: verbatim
20403 #: ../fish/virt-copy-in.pod:11
20404 #, no-wrap
20405 msgid ""
20406 " virt-copy-in -d domain file|dir [file|dir ...] /destination\n"
20407 "\n"
20408 msgstr ""
20409
20410 #. type: textblock
20411 #: ../fish/virt-copy-in.pod:15
20412 msgid ""
20413 "Using C<virt-copy-in> on live virtual machines can be dangerous, potentially "
20414 "causing disk corruption.  The virtual machine must be shut down before you "
20415 "use this command."
20416 msgstr ""
20417
20418 #. type: textblock
20419 #: ../fish/virt-copy-in.pod:21
20420 msgid ""
20421 "C<virt-copy-in> copies files and directories from the local disk into a "
20422 "virtual machine disk image or named libvirt domain."
20423 msgstr ""
20424
20425 #. type: textblock
20426 #: ../fish/virt-copy-in.pod:24
20427 msgid ""
20428 "You can give one of more filenames and directories on the command line.  "
20429 "Directories are copied in recursively.  The final parameter must be the "
20430 "destination directory in the disk image which must be an absolute path "
20431 "starting with a C</> character."
20432 msgstr ""
20433
20434 #. type: verbatim
20435 #: ../fish/virt-copy-in.pod:33
20436 #, no-wrap
20437 msgid ""
20438 " virt-copy-in -d MyGuest resolv.conf /etc\n"
20439 "\n"
20440 msgstr ""
20441
20442 #. type: textblock
20443 #: ../fish/virt-copy-in.pod:35 ../fish/virt-tar-in.pod:32
20444 msgid "Upload a home directory to a guest:"
20445 msgstr ""
20446
20447 #. type: verbatim
20448 #: ../fish/virt-copy-in.pod:37
20449 #, no-wrap
20450 msgid ""
20451 " virt-copy-in -d MyGuest skel /home\n"
20452 "\n"
20453 msgstr ""
20454
20455 #. type: =head1
20456 #: ../fish/virt-copy-in.pod:39 ../fish/virt-copy-out.pod:28
20457 #: ../fish/virt-tar-in.pod:36 ../fish/virt-tar-out.pod:30
20458 msgid "JUST A SHELL SCRIPT WRAPPER AROUND GUESTFISH"
20459 msgstr ""
20460
20461 #. type: textblock
20462 #: ../fish/virt-copy-in.pod:41
20463 msgid ""
20464 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20465 "> C<copy-in> command.  For anything more complex than a trivial copy, you "
20466 "are probably better off using guestfish directly."
20467 msgstr ""
20468
20469 #. type: textblock
20470 #: ../fish/virt-copy-in.pod:47 ../fish/virt-copy-out.pod:36
20471 #: ../fish/virt-tar-in.pod:44 ../fish/virt-tar-out.pod:38
20472 msgid ""
20473 "Since the shell script just passes options straight to guestfish, read "
20474 "L<guestfish(1)> to see the full list of options."
20475 msgstr ""
20476
20477 #. type: textblock
20478 #: ../fish/virt-copy-in.pod:52
20479 #, fuzzy
20480 #| msgid ""
20481 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20482 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20483 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20484 #| "libguestfs.org/>."
20485 msgid ""
20486 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-out(1)>, L<virt-edit(1)>, "
20487 "L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20488 msgstr ""
20489 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20490 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20491 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20492 "org/>."
20493
20494 #. type: textblock
20495 #: ../fish/virt-copy-in.pod:66 ../fish/virt-copy-out.pod:55
20496 #: ../fish/virt-tar-in.pod:64 ../fish/virt-tar-out.pod:57
20497 #, fuzzy
20498 #| msgid "Copyright (C) 2009 Red Hat Inc."
20499 msgid "Copyright (C) 2011 Red Hat Inc.  L<http://libguestfs.org/>"
20500 msgstr "© Red Hat Inc., 2009"
20501
20502 #. type: textblock
20503 #: ../fish/virt-copy-out.pod:5
20504 msgid ""
20505 "virt-copy-out - Copy files and directories out of a virtual machine disk "
20506 "image."
20507 msgstr ""
20508
20509 #. type: verbatim
20510 #: ../fish/virt-copy-out.pod:9
20511 #, no-wrap
20512 msgid ""
20513 " virt-copy-out -a disk.img /file|dir [/file|dir ...] localdir\n"
20514 "\n"
20515 msgstr ""
20516
20517 #. type: verbatim
20518 #: ../fish/virt-copy-out.pod:11
20519 #, no-wrap
20520 msgid ""
20521 " virt-copy-out -d domain /file|dir [/file|dir ...] localdir\n"
20522 "\n"
20523 msgstr ""
20524
20525 #. type: textblock
20526 #: ../fish/virt-copy-out.pod:15
20527 msgid ""
20528 "C<virt-copy-out> copies files and directories out of a virtual machine disk "
20529 "image or named libvirt domain."
20530 msgstr ""
20531
20532 #. type: textblock
20533 #: ../fish/virt-copy-out.pod:18
20534 msgid ""
20535 "You can give one of more filenames and directories on the command line.  "
20536 "Directories are copied out recursively."
20537 msgstr ""
20538
20539 #. type: textblock
20540 #: ../fish/virt-copy-out.pod:23
20541 msgid "Download the home directories from a virtual machine:"
20542 msgstr ""
20543
20544 #. type: verbatim
20545 #: ../fish/virt-copy-out.pod:25
20546 #, no-wrap
20547 msgid ""
20548 " mkdir homes\n"
20549 " virt-copy-out -d MyGuest /home homes\n"
20550 "\n"
20551 msgstr ""
20552
20553 #. type: textblock
20554 #: ../fish/virt-copy-out.pod:30
20555 msgid ""
20556 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20557 "> C<copy-out> command.  For anything more complex than a trivial copy, you "
20558 "are probably better off using guestfish directly."
20559 msgstr ""
20560
20561 #. type: textblock
20562 #: ../fish/virt-copy-out.pod:41
20563 #, fuzzy
20564 #| msgid ""
20565 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20566 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20567 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20568 #| "libguestfs.org/>."
20569 msgid ""
20570 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-edit(1)>, L<virt-"
20571 "tar-in(1)>, L<virt-tar-out(1)>, L<http://libguestfs.org/>."
20572 msgstr ""
20573 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20574 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20575 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20576 "org/>."
20577
20578 #. type: textblock
20579 #: ../fish/virt-tar-in.pod:5
20580 msgid "virt-tar-in - Unpack a tarball into a virtual machine disk image."
20581 msgstr ""
20582
20583 #. type: verbatim
20584 #: ../fish/virt-tar-in.pod:9
20585 #, no-wrap
20586 msgid ""
20587 " virt-tar-in -a disk.img data.tar /destination\n"
20588 "\n"
20589 msgstr ""
20590
20591 #. type: verbatim
20592 #: ../fish/virt-tar-in.pod:11
20593 #, no-wrap
20594 msgid ""
20595 " virt-tar-in -d domain data.tar /destination\n"
20596 "\n"
20597 msgstr ""
20598
20599 #. type: verbatim
20600 #: ../fish/virt-tar-in.pod:13
20601 #, no-wrap
20602 msgid ""
20603 " zcat data.tar.gz | virt-tar-in -d domain - /destination\n"
20604 "\n"
20605 msgstr ""
20606
20607 #. type: textblock
20608 #: ../fish/virt-tar-in.pod:17
20609 msgid ""
20610 "Using C<virt-tar-in> on live virtual machines can be dangerous, potentially "
20611 "causing disk corruption.  The virtual machine must be shut down before you "
20612 "use this command."
20613 msgstr ""
20614
20615 #. type: textblock
20616 #: ../fish/virt-tar-in.pod:23
20617 msgid ""
20618 "C<virt-tar-in> unpacks an uncompressed tarball into a virtual machine disk "
20619 "image or named libvirt domain."
20620 msgstr ""
20621
20622 #. type: textblock
20623 #: ../fish/virt-tar-in.pod:26
20624 msgid ""
20625 "The first parameter is the tar file.  Use C<-> to read the tar file from "
20626 "standard input.  The second parameter is the absolute target directory to "
20627 "unpack into."
20628 msgstr ""
20629
20630 #. type: verbatim
20631 #: ../fish/virt-tar-in.pod:34
20632 #, no-wrap
20633 msgid ""
20634 " virt-tar-in -d MyGuest homes.tar /home\n"
20635 "\n"
20636 msgstr ""
20637
20638 #. type: textblock
20639 #: ../fish/virt-tar-in.pod:38
20640 msgid ""
20641 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20642 "> C<tar-in> command.  For anything more complex than a trivial copy, you are "
20643 "probably better off using guestfish directly."
20644 msgstr ""
20645
20646 #. type: textblock
20647 #: ../fish/virt-tar-in.pod:49
20648 #, fuzzy
20649 #| msgid ""
20650 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20651 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20652 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20653 #| "libguestfs.org/>."
20654 msgid ""
20655 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20656 "L<virt-edit(1)>, L<virt-make-fs(1)>, L<virt-tar-out(1)>, L<http://libguestfs."
20657 "org/>."
20658 msgstr ""
20659 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20660 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20661 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20662 "org/>."
20663
20664 #. type: textblock
20665 #: ../fish/virt-tar-out.pod:5
20666 msgid ""
20667 "virt-tar-out - Pack a virtual machine disk image directory into a tarball."
20668 msgstr ""
20669
20670 #. type: verbatim
20671 #: ../fish/virt-tar-out.pod:9
20672 #, no-wrap
20673 msgid ""
20674 " virt-tar-out -a disk.img /dir files.tar\n"
20675 "\n"
20676 msgstr ""
20677
20678 #. type: verbatim
20679 #: ../fish/virt-tar-out.pod:11
20680 #, no-wrap
20681 msgid ""
20682 " virt-tar-out -d domain /dir files.tar\n"
20683 "\n"
20684 msgstr ""
20685
20686 #. type: verbatim
20687 #: ../fish/virt-tar-out.pod:13
20688 #, no-wrap
20689 msgid ""
20690 " virt-tar-out -d domain /dir - | gzip --best > files.tar.gz\n"
20691 "\n"
20692 msgstr ""
20693
20694 #. type: textblock
20695 #: ../fish/virt-tar-out.pod:17
20696 msgid ""
20697 "C<virt-tar-out> packs a virtual machine disk image directory into a tarball."
20698 msgstr ""
20699
20700 #. type: textblock
20701 #: ../fish/virt-tar-out.pod:20
20702 msgid ""
20703 "The first parameter is the absolute path of the virtual machine directory.  "
20704 "The second parameter is the tar file to write.  Use C<-> to write to "
20705 "standard output."
20706 msgstr ""
20707
20708 #. type: textblock
20709 #: ../fish/virt-tar-out.pod:26
20710 msgid "Download the home directories from a guest:"
20711 msgstr ""
20712
20713 #. type: verbatim
20714 #: ../fish/virt-tar-out.pod:28
20715 #, no-wrap
20716 msgid ""
20717 " virt-tar-out -d MyGuest /home - | gzip --best > homes.tar.gz\n"
20718 "\n"
20719 msgstr ""
20720
20721 #. type: textblock
20722 #: ../fish/virt-tar-out.pod:32
20723 msgid ""
20724 "This command is just a simple shell script wrapper around the L<guestfish(1)"
20725 "> C<tar-out> command.  For anything more complex than a trivial copy, you "
20726 "are probably better off using guestfish directly."
20727 msgstr ""
20728
20729 #. type: textblock
20730 #: ../fish/virt-tar-out.pod:43
20731 #, fuzzy
20732 #| msgid ""
20733 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
20734 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
20735 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
20736 #| "libguestfs.org/>."
20737 msgid ""
20738 "L<guestfish(1)>, L<virt-cat(1)>, L<virt-copy-in(1)>, L<virt-copy-out(1)>, "
20739 "L<virt-edit(1)>, L<virt-tar-in(1)>, L<http://libguestfs.org/>."
20740 msgstr ""
20741 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
20742 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
20743 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
20744 "org/>."
20745
20746 #. type: textblock
20747 #: ../fuse/guestmount.pod:5
20748 msgid ""
20749 "guestmount - Mount a guest filesystem on the host using FUSE and libguestfs"
20750 msgstr ""
20751
20752 #. type: verbatim
20753 #: ../fuse/guestmount.pod:9
20754 #, no-wrap
20755 msgid ""
20756 " guestmount [--options] -a disk.img -m device [--ro] mountpoint\n"
20757 "\n"
20758 msgstr ""
20759
20760 #. type: verbatim
20761 #: ../fuse/guestmount.pod:11
20762 #, no-wrap
20763 msgid ""
20764 " guestmount [--options] -a disk.img -i [--ro] mountpoint\n"
20765 "\n"
20766 msgstr ""
20767
20768 #. type: verbatim
20769 #: ../fuse/guestmount.pod:13
20770 #, no-wrap
20771 msgid ""
20772 " guestmount [--options] -d Guest -i [--ro] mountpoint\n"
20773 "\n"
20774 msgstr ""
20775
20776 #. type: textblock
20777 #: ../fuse/guestmount.pod:17
20778 msgid ""
20779 "You must I<not> use C<guestmount> in read-write mode on live virtual "
20780 "machines.  If you do this, you risk disk corruption in the VM."
20781 msgstr ""
20782
20783 #. type: textblock
20784 #: ../fuse/guestmount.pod:22
20785 msgid ""
20786 "The guestmount program can be used to mount virtual machine filesystems and "
20787 "other disk images on the host.  It uses libguestfs for access to the guest "
20788 "filesystem, and FUSE (the \"filesystem in userspace\") to make it appear as "
20789 "a mountable device."
20790 msgstr ""
20791
20792 #. type: textblock
20793 #: ../fuse/guestmount.pod:27
20794 msgid ""
20795 "Along with other options, you have to give at least one device (I<-a> "
20796 "option) or libvirt domain (I<-d> option), and at least one mountpoint (I<-m> "
20797 "option) or use the I<-i> inspection option.  How this works is better "
20798 "explained in the L<guestfish(1)> manual page, or by looking at the examples "
20799 "below."
20800 msgstr ""
20801
20802 #. type: textblock
20803 #: ../fuse/guestmount.pod:33
20804 msgid ""
20805 "FUSE lets you mount filesystems as non-root.  The mountpoint must be owned "
20806 "by you, and the filesystem will not be visible to any other users unless you "
20807 "make certain global configuration changes to C</etc/fuse.conf>.  To unmount "
20808 "the filesystem, use the C<fusermount -u> command."
20809 msgstr ""
20810
20811 #. type: textblock
20812 #: ../fuse/guestmount.pod:41
20813 msgid ""
20814 "For a typical Windows guest which has its main filesystem on the first "
20815 "partition:"
20816 msgstr ""
20817
20818 #. type: verbatim
20819 #: ../fuse/guestmount.pod:44
20820 #, no-wrap
20821 msgid ""
20822 " guestmount -a windows.img -m /dev/sda1 --ro /mnt\n"
20823 "\n"
20824 msgstr ""
20825
20826 #. type: textblock
20827 #: ../fuse/guestmount.pod:46
20828 msgid ""
20829 "For a typical Linux guest which has a /boot filesystem on the first "
20830 "partition, and the root filesystem on a logical volume:"
20831 msgstr ""
20832
20833 #. type: verbatim
20834 #: ../fuse/guestmount.pod:49
20835 #, no-wrap
20836 msgid ""
20837 " guestmount -a linux.img -m /dev/VG/LV -m /dev/sda1:/boot --ro /mnt\n"
20838 "\n"
20839 msgstr ""
20840
20841 #. type: textblock
20842 #: ../fuse/guestmount.pod:51
20843 msgid "To get libguestfs to detect guest mountpoints for you:"
20844 msgstr ""
20845
20846 #. type: verbatim
20847 #: ../fuse/guestmount.pod:53
20848 #, no-wrap
20849 msgid ""
20850 " guestmount -a guest.img -i --ro /mnt\n"
20851 "\n"
20852 msgstr ""
20853
20854 #. type: textblock
20855 #: ../fuse/guestmount.pod:55
20856 msgid "For a libvirt guest called \"Guest\" you could do:"
20857 msgstr ""
20858
20859 #. type: verbatim
20860 #: ../fuse/guestmount.pod:57
20861 #, no-wrap
20862 msgid ""
20863 " guestmount -d Guest -i --ro /mnt\n"
20864 "\n"
20865 msgstr ""
20866
20867 #. type: textblock
20868 #: ../fuse/guestmount.pod:59
20869 msgid ""
20870 "If you don't know what filesystems are contained in a guest or disk image, "
20871 "use L<virt-filesystems(1)> first:"
20872 msgstr ""
20873
20874 #. type: verbatim
20875 #: ../fuse/guestmount.pod:62
20876 #, no-wrap
20877 msgid ""
20878 " virt-filesystems MyGuest\n"
20879 "\n"
20880 msgstr ""
20881
20882 #. type: textblock
20883 #: ../fuse/guestmount.pod:64
20884 msgid ""
20885 "If you want to trace the libguestfs calls but without excessive debugging "
20886 "information, we recommend:"
20887 msgstr ""
20888
20889 #. type: verbatim
20890 #: ../fuse/guestmount.pod:67
20891 #, no-wrap
20892 msgid ""
20893 " guestmount [...] --trace /mnt\n"
20894 "\n"
20895 msgstr ""
20896
20897 #. type: textblock
20898 #: ../fuse/guestmount.pod:69
20899 msgid "If you want to debug the program, we recommend:"
20900 msgstr ""
20901
20902 #. type: verbatim
20903 #: ../fuse/guestmount.pod:71
20904 #, no-wrap
20905 msgid ""
20906 " guestmount [...] --trace --verbose /mnt\n"
20907 "\n"
20908 msgstr ""
20909
20910 #. type: =head1
20911 #: ../fuse/guestmount.pod:73 ../rescue/virt-rescue.pod:68
20912 #: ../resize/virt-resize.pod:544
20913 msgid "NOTES"
20914 msgstr "ПРИМІТКИ"
20915
20916 #. type: =head2
20917 #: ../fuse/guestmount.pod:75
20918 msgid "Other users cannot see the filesystem by default"
20919 msgstr ""
20920
20921 #. type: textblock
20922 #: ../fuse/guestmount.pod:77
20923 msgid ""
20924 "If you mount a filesystem as one user (eg. root), then other users will not "
20925 "be able to see it by default.  The fix is to add the FUSE C<allow_other> "
20926 "option when mounting:"
20927 msgstr ""
20928
20929 #. type: verbatim
20930 #: ../fuse/guestmount.pod:81
20931 #, no-wrap
20932 msgid ""
20933 " sudo guestmount [...] -o allow_other /mnt\n"
20934 "\n"
20935 msgstr ""
20936
20937 #. type: textblock
20938 #: ../fuse/guestmount.pod:91
20939 msgid "Add a block device or virtual machine image."
20940 msgstr ""
20941
20942 #. type: =item
20943 #: ../fuse/guestmount.pod:114
20944 msgid "B<--dir-cache-timeout N>"
20945 msgstr "B<--dir-cache-timeout N>"
20946
20947 #. type: textblock
20948 #: ../fuse/guestmount.pod:116
20949 msgid ""
20950 "Set the readdir cache timeout to I<N> seconds, the default being 60 "
20951 "seconds.  The readdir cache [actually, there are several semi-independent "
20952 "caches] is populated after a readdir(2) call with the stat and extended "
20953 "attributes of the files in the directory, in anticipation that they will be "
20954 "requested soon after."
20955 msgstr ""
20956
20957 #. type: textblock
20958 #: ../fuse/guestmount.pod:122
20959 msgid ""
20960 "There is also a different attribute cache implemented by FUSE (see the FUSE "
20961 "option I<-o attr_timeout>), but the FUSE cache does not anticipate future "
20962 "requests, only cache existing ones."
20963 msgstr ""
20964
20965 #. type: textblock
20966 #: ../fuse/guestmount.pod:142
20967 msgid ""
20968 "If you have untrusted raw-format guest disk images, you should use this "
20969 "option to specify the disk format.  This avoids a possible security problem "
20970 "with malicious guests (CVE-2010-3851).  See also L<guestfs(3)/"
20971 "guestfs_add_drive_opts>."
20972 msgstr ""
20973
20974 #. type: =item
20975 #: ../fuse/guestmount.pod:147
20976 msgid "B<--fuse-help>"
20977 msgstr "B<--fuse-help>"
20978
20979 #. type: textblock
20980 #: ../fuse/guestmount.pod:149
20981 msgid "Display help on special FUSE options (see I<-o> below)."
20982 msgstr ""
20983
20984 #. type: textblock
20985 #: ../fuse/guestmount.pod:153
20986 msgid "Display brief help and exit."
20987 msgstr ""
20988
20989 #. type: textblock
20990 #: ../fuse/guestmount.pod:177
20991 msgid ""
20992 "Mount the named partition or logical volume on the given mountpoint B<in the "
20993 "guest> (this has nothing to do with mountpoints in the host)."
20994 msgstr ""
20995
20996 #. type: textblock
20997 #: ../fuse/guestmount.pod:180
20998 msgid ""
20999 "If the mountpoint is omitted, it defaults to C</>.  You have to mount "
21000 "something on C</>."
21001 msgstr ""
21002
21003 #. type: textblock
21004 #: ../fuse/guestmount.pod:197
21005 msgid ""
21006 "By default, we attempt to sync the guest disk when the FUSE mountpoint is "
21007 "unmounted.  If you specify this option, then we don't attempt to sync the "
21008 "disk.  See the discussion of autosync in the L<guestfs(3)> manpage."
21009 msgstr ""
21010
21011 #. type: =item
21012 #: ../fuse/guestmount.pod:202
21013 #, fuzzy
21014 #| msgid "B<--partition>"
21015 msgid "B<-o option>"
21016 msgstr "B<--partition>"
21017
21018 #. type: =item
21019 #: ../fuse/guestmount.pod:204
21020 #, fuzzy
21021 #| msgid "B<--partition>"
21022 msgid "B<--option option>"
21023 msgstr "B<--partition>"
21024
21025 #. type: textblock
21026 #: ../fuse/guestmount.pod:206
21027 msgid "Pass extra options to FUSE."
21028 msgstr ""
21029
21030 #. type: textblock
21031 #: ../fuse/guestmount.pod:208
21032 msgid ""
21033 "To get a list of all the extra options supported by FUSE, use the command "
21034 "below.  Note that only the FUSE I<-o> options can be passed, and only some "
21035 "of them are a good idea."
21036 msgstr ""
21037
21038 #. type: verbatim
21039 #: ../fuse/guestmount.pod:212
21040 #, no-wrap
21041 msgid ""
21042 " guestmount --fuse-help\n"
21043 "\n"
21044 msgstr ""
21045
21046 #. type: textblock
21047 #: ../fuse/guestmount.pod:214
21048 msgid "Some potentially useful FUSE options:"
21049 msgstr ""
21050
21051 #. type: =item
21052 #: ../fuse/guestmount.pod:218
21053 msgid "B<-o allow_other>"
21054 msgstr ""
21055
21056 #. type: textblock
21057 #: ../fuse/guestmount.pod:220
21058 msgid "Allow other users to see the filesystem."
21059 msgstr ""
21060
21061 #. type: =item
21062 #: ../fuse/guestmount.pod:222
21063 msgid "B<-o attr_timeout=N>"
21064 msgstr "B<-o attr_timeout=N>"
21065
21066 #. type: textblock
21067 #: ../fuse/guestmount.pod:224
21068 msgid "Enable attribute caching by FUSE, and set the timeout to I<N> seconds."
21069 msgstr ""
21070
21071 #. type: =item
21072 #: ../fuse/guestmount.pod:226
21073 msgid "B<-o kernel_cache>"
21074 msgstr ""
21075
21076 #. type: textblock
21077 #: ../fuse/guestmount.pod:228
21078 msgid ""
21079 "Allow the kernel to cache files (reduces the number of reads that have to go "
21080 "through the L<guestfs(3)> API).  This is generally a good idea if you can "
21081 "afford the extra memory usage."
21082 msgstr ""
21083
21084 #. type: =item
21085 #: ../fuse/guestmount.pod:232
21086 msgid "B<-o uid=N> B<-o gid=N>"
21087 msgstr ""
21088
21089 #. type: textblock
21090 #: ../fuse/guestmount.pod:234
21091 msgid ""
21092 "Use these options to map all UIDs and GIDs inside the guest filesystem to "
21093 "the chosen values."
21094 msgstr ""
21095
21096 #. type: textblock
21097 #: ../fuse/guestmount.pod:243
21098 msgid ""
21099 "Add devices and mount everything read-only.  Also disallow writes and make "
21100 "the disk appear read-only to FUSE."
21101 msgstr ""
21102
21103 #. type: textblock
21104 #: ../fuse/guestmount.pod:246
21105 msgid ""
21106 "This is highly recommended if you are not going to edit the guest disk.  If "
21107 "the guest is running and this option is I<not> supplied, then there is a "
21108 "strong risk of disk corruption in the guest.  We try to prevent this from "
21109 "happening, but it is not always possible."
21110 msgstr ""
21111
21112 #. type: textblock
21113 #: ../fuse/guestmount.pod:251 ../rescue/virt-rescue.pod:171
21114 msgid "See also L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21115 msgstr ""
21116
21117 #. type: textblock
21118 #: ../fuse/guestmount.pod:255
21119 msgid "Enable SELinux support for the guest."
21120 msgstr ""
21121
21122 #. type: textblock
21123 #: ../fuse/guestmount.pod:261
21124 msgid "Enable verbose messages from underlying libguestfs."
21125 msgstr ""
21126
21127 #. type: textblock
21128 #: ../fuse/guestmount.pod:267
21129 msgid "Display the program version and exit."
21130 msgstr ""
21131
21132 #. type: textblock
21133 #: ../fuse/guestmount.pod:276 ../fuse/guestmount.pod:299
21134 #: ../rescue/virt-rescue.pod:201 ../rescue/virt-rescue.pod:284
21135 msgid "See L<guestfish(1)/OPENING DISKS FOR READ AND WRITE>."
21136 msgstr ""
21137
21138 #. type: =item
21139 #: ../fuse/guestmount.pod:280
21140 #, fuzzy
21141 #| msgid "B<--ro>"
21142 msgid "B<--trace>"
21143 msgstr "B<--ro>"
21144
21145 #. type: textblock
21146 #: ../fuse/guestmount.pod:282
21147 msgid "Trace libguestfs calls and entry into each FUSE function."
21148 msgstr ""
21149
21150 #. type: textblock
21151 #: ../fuse/guestmount.pod:284
21152 msgid "This also stops the daemon from forking into the background."
21153 msgstr ""
21154
21155 #. type: textblock
21156 #: ../fuse/guestmount.pod:310
21157 msgid ""
21158 "L<guestfish(1)>, L<virt-inspector(1)>, L<virt-cat(1)>, L<virt-edit(1)>, "
21159 "L<virt-tar(1)>, L<guestfs(3)>, L<http://libguestfs.org/>, L<http://fuse.sf."
21160 "net/>."
21161 msgstr ""
21162
21163 #. type: textblock
21164 #: ../fuse/guestmount.pod:325
21165 msgid "Copyright (C) 2009-2010 Red Hat Inc.  L<http://libguestfs.org/>"
21166 msgstr ""
21167
21168 #. type: textblock
21169 #: ../inspector/virt-inspector.pod:5
21170 msgid ""
21171 "virt-inspector - Display operating system version and other information "
21172 "about a virtual machine"
21173 msgstr ""
21174
21175 #. type: verbatim
21176 #: ../inspector/virt-inspector.pod:9
21177 #, fuzzy, no-wrap
21178 #| msgid ""
21179 #| " virt-list-partitions [--options] domname\n"
21180 #| "\n"
21181 msgid ""
21182 " virt-inspector [--options] -d domname\n"
21183 "\n"
21184 msgstr ""
21185 " virt-list-partitions [--параметри] назва_домену\n"
21186 "\n"
21187
21188 #. type: verbatim
21189 #: ../inspector/virt-inspector.pod:11
21190 #, fuzzy, no-wrap
21191 #| msgid ""
21192 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21193 #| "\n"
21194 msgid ""
21195 " virt-inspector [--options] -a disk.img [-a disk.img ...]\n"
21196 "\n"
21197 msgstr ""
21198 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21199 "\n"
21200
21201 #. type: verbatim
21202 #: ../inspector/virt-inspector.pod:15
21203 #, fuzzy, no-wrap
21204 #| msgid ""
21205 #| " virt-list-partitions [--options] domname\n"
21206 #| "\n"
21207 msgid ""
21208 " virt-inspector domname\n"
21209 "\n"
21210 msgstr ""
21211 " virt-list-partitions [--параметри] назва_домену\n"
21212 "\n"
21213
21214 #. type: verbatim
21215 #: ../inspector/virt-inspector.pod:17 ../inspector/virt-inspector.pod:141
21216 #, fuzzy, no-wrap
21217 #| msgid ""
21218 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
21219 #| "\n"
21220 msgid ""
21221 " virt-inspector disk.img [disk.img ...]\n"
21222 "\n"
21223 msgstr ""
21224 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
21225 "\n"
21226
21227 #. type: textblock
21228 #: ../inspector/virt-inspector.pod:21
21229 msgid ""
21230 "B<virt-inspector> examines a virtual machine or disk image and tries to "
21231 "determine the version of the operating system and other information about "
21232 "the virtual machine."
21233 msgstr ""
21234
21235 #. type: textblock
21236 #: ../inspector/virt-inspector.pod:25
21237 msgid "Virt-inspector produces XML output for feeding into other programs."
21238 msgstr ""
21239
21240 #. type: textblock
21241 #: ../inspector/virt-inspector.pod:27
21242 msgid ""
21243 "In the normal usage, use C<virt-inspector -d domname> where C<domname> is "
21244 "the libvirt domain (see: C<virsh list --all>)."
21245 msgstr ""
21246
21247 #. type: textblock
21248 #: ../inspector/virt-inspector.pod:30
21249 msgid ""
21250 "You can also run virt-inspector directly on disk images from a single "
21251 "virtual machine.  Use C<virt-inspector -a disk.img>.  In rare cases a domain "
21252 "has several block devices, in which case you should list several I<-a> "
21253 "options one after another, with the first corresponding to the guest's C</"
21254 "dev/sda>, the second to the guest's C</dev/sdb> and so on."
21255 msgstr ""
21256
21257 #. type: textblock
21258 #: ../inspector/virt-inspector.pod:37
21259 msgid ""
21260 "You can also run virt-inspector on install disks, live CDs, bootable USB "
21261 "keys and similar."
21262 msgstr ""
21263
21264 #. type: textblock
21265 #: ../inspector/virt-inspector.pod:40
21266 msgid ""
21267 "Virt-inspector can only inspect and report upon I<one domain at a time>.  To "
21268 "inspect several virtual machines, you have to run virt-inspector several "
21269 "times (for example, from a shell script for-loop)."
21270 msgstr ""
21271
21272 #. type: textblock
21273 #: ../inspector/virt-inspector.pod:45
21274 msgid ""
21275 "Because virt-inspector needs direct access to guest images, it won't "
21276 "normally work over remote libvirt connections."
21277 msgstr ""
21278
21279 #. type: textblock
21280 #: ../inspector/virt-inspector.pod:48
21281 msgid ""
21282 "All of the information available from virt-inspector is also available "
21283 "through the core libguestfs inspection API (see L<guestfs(3)/INSPECTION>).  "
21284 "The same information can also be fetched using guestfish or via libguestfs "
21285 "bindings in many programming languages (see L<guestfs(3)/USING LIBGUESTFS "
21286 "WITH OTHER PROGRAMMING LANGUAGES>)."
21287 msgstr ""
21288
21289 #. type: textblock
21290 #: ../inspector/virt-inspector.pod:81
21291 msgid ""
21292 "Libvirt is only used if you specify a C<domname> on the command line.  If "
21293 "you specify guest block devices directly (I<-a>), then libvirt is not used "
21294 "at all."
21295 msgstr ""
21296
21297 #. type: textblock
21298 #: ../inspector/virt-inspector.pod:94
21299 msgid ""
21300 "When prompting for keys and passphrases, virt-inspector normally turns "
21301 "echoing off so you cannot see what you are typing.  If you are not worried "
21302 "about Tempest attacks and there is no one else in the room you can specify "
21303 "this flag to see what you are typing."
21304 msgstr ""
21305
21306 #. type: textblock
21307 #: ../inspector/virt-inspector.pod:103 ../tools/virt-list-filesystems.pl:93
21308 #: ../tools/virt-list-partitions.pl:94 ../tools/virt-tar.pl:143
21309 #: ../tools/virt-win-reg.pl:144
21310 msgid ""
21311 "Specify the format of disk images given on the command line.  If this is "
21312 "omitted then the format is autodetected from the content of the disk image."
21313 msgstr ""
21314
21315 #. type: textblock
21316 #: ../inspector/virt-inspector.pod:107 ../tools/virt-list-filesystems.pl:97
21317 #: ../tools/virt-list-partitions.pl:98 ../tools/virt-tar.pl:147
21318 #: ../tools/virt-win-reg.pl:148
21319 msgid ""
21320 "If disk images are requested from libvirt, then this program asks libvirt "
21321 "for this information.  In this case, the value of the format parameter is "
21322 "ignored."
21323 msgstr ""
21324
21325 #. type: textblock
21326 #: ../inspector/virt-inspector.pod:111 ../resize/virt-resize.pod:314
21327 #: ../resize/virt-resize.pod:406 ../sparsify/virt-sparsify.pod:132
21328 #: ../tools/virt-list-filesystems.pl:101 ../tools/virt-list-partitions.pl:102
21329 #: ../tools/virt-tar.pl:151 ../tools/virt-win-reg.pl:152
21330 msgid ""
21331 "If working with untrusted raw-format guest disk images, you should ensure "
21332 "the format is always specified."
21333 msgstr ""
21334
21335 #. type: textblock
21336 #: ../inspector/virt-inspector.pod:139
21337 msgid "Previous versions of virt-inspector allowed you to write either:"
21338 msgstr ""
21339
21340 #. type: verbatim
21341 #: ../inspector/virt-inspector.pod:145
21342 #, fuzzy, no-wrap
21343 #| msgid ""
21344 #| " inspect-get-hostname root\n"
21345 #| "\n"
21346 msgid ""
21347 " virt-inspector guestname\n"
21348 "\n"
21349 msgstr ""
21350 " inspect-get-hostname корінь\n"
21351 "\n"
21352
21353 #. type: =head1
21354 #: ../inspector/virt-inspector.pod:153
21355 msgid "XML FORMAT"
21356 msgstr ""
21357
21358 #. type: textblock
21359 #: ../inspector/virt-inspector.pod:155
21360 msgid ""
21361 "The virt-inspector XML is described precisely in a RELAX NG schema file "
21362 "C<virt-inspector.rng> which is supplied with libguestfs.  This section is "
21363 "just an overview."
21364 msgstr ""
21365
21366 #. type: textblock
21367 #: ../inspector/virt-inspector.pod:159
21368 msgid ""
21369 "The top-level element is E<lt>operatingsystemsE<gt>, and it contains one or "
21370 "more E<lt>operatingsystemE<gt> elements.  You would only see more than one "
21371 "E<lt>operatingsystemE<gt> element if the virtual machine is multi-boot, "
21372 "which is vanishingly rare in real world VMs."
21373 msgstr ""
21374
21375 #. type: =head2
21376 #: ../inspector/virt-inspector.pod:164
21377 msgid "E<lt>operatingsystemE<gt>"
21378 msgstr ""
21379
21380 #. type: textblock
21381 #: ../inspector/virt-inspector.pod:166
21382 msgid ""
21383 "In the E<lt>operatingsystemE<gt> tag are various optional fields that "
21384 "describe the operating system, its architecture, the descriptive \"product "
21385 "name\" string, the type of OS and so on, as in this example:"
21386 msgstr ""
21387
21388 #. type: verbatim
21389 #: ../inspector/virt-inspector.pod:170
21390 #, no-wrap
21391 msgid ""
21392 " <operatingsystems>\n"
21393 "   <operatingsystem>\n"
21394 "     <root>/dev/sda2</root>\n"
21395 "     <name>windows</name>\n"
21396 "     <arch>i386</arch>\n"
21397 "     <distro>windows</distro>\n"
21398 "     <product_name>Windows 7 Enterprise</product_name>\n"
21399 "     <product_variant>Client</product_variant>\n"
21400 "     <major_version>6</major_version>\n"
21401 "     <minor_version>1</minor_version>\n"
21402 "     <windows_systemroot>/Windows</windows_systemroot>\n"
21403 "     <format>installed</format>\n"
21404 "\n"
21405 msgstr ""
21406
21407 #. type: textblock
21408 #: ../inspector/virt-inspector.pod:183
21409 msgid ""
21410 "In brief, E<lt>nameE<gt> is the class of operating system (something like "
21411 "C<linux> or C<windows>), E<lt>distroE<gt> is the distribution (eg. C<fedora> "
21412 "but many other distros are recognized) and E<lt>archE<gt> is the guest "
21413 "architecture.  The other fields are fairly self-explanatory, but because "
21414 "these fields are taken directly from the libguestfs inspection API you can "
21415 "find precise information from L<guestfs(3)/INSPECTION>."
21416 msgstr ""
21417
21418 #. type: textblock
21419 #: ../inspector/virt-inspector.pod:191
21420 msgid ""
21421 "The E<lt>rootE<gt> element is the root filesystem device, but from the point "
21422 "of view of libguestfs (block devices may have completely different names "
21423 "inside the VM itself)."
21424 msgstr ""
21425
21426 #. type: =head2
21427 #: ../inspector/virt-inspector.pod:195
21428 #, fuzzy
21429 #| msgid "mountpoints"
21430 msgid "E<lt>mountpointsE<gt>"
21431 msgstr "mountpoints"
21432
21433 #. type: textblock
21434 #: ../inspector/virt-inspector.pod:197
21435 msgid ""
21436 "Un*x-like guests typically have multiple filesystems which are mounted at "
21437 "various mountpoints, and these are described in the E<lt>mountpointsE<gt> "
21438 "element which looks like this:"
21439 msgstr ""
21440
21441 #. type: verbatim
21442 #: ../inspector/virt-inspector.pod:201
21443 #, no-wrap
21444 msgid ""
21445 " <operatingsystems>\n"
21446 "   <operatingsystem>\n"
21447 "     ...\n"
21448 "     <mountpoints>\n"
21449 "       <mountpoint dev=\"/dev/vg_f13x64/lv_root\">/</mountpoint>\n"
21450 "       <mountpoint dev=\"/dev/sda1\">/boot</mountpoint>\n"
21451 "     </mountpoints>\n"
21452 "\n"
21453 msgstr ""
21454
21455 #. type: textblock
21456 #: ../inspector/virt-inspector.pod:209
21457 msgid ""
21458 "As with E<lt>rootE<gt>, devices are from the point of view of libguestfs, "
21459 "and may have completely different names inside the guest.  Only mountable "
21460 "filesystems appear in this list, not things like swap devices."
21461 msgstr ""
21462
21463 #. type: =head2
21464 #: ../inspector/virt-inspector.pod:214
21465 #, fuzzy
21466 #| msgid "list-filesystems"
21467 msgid "E<lt>filesystemsE<gt>"
21468 msgstr "list-filesystems"
21469
21470 #. type: textblock
21471 #: ../inspector/virt-inspector.pod:216
21472 msgid ""
21473 "E<lt>filesystemsE<gt> is like E<lt>mountpointsE<gt> but covers I<all> "
21474 "filesystems belonging to the guest, including swap and empty partitions.  "
21475 "(In the rare case of a multi-boot guest, it covers filesystems belonging to "
21476 "this OS or shared with this OS and other OSes)."
21477 msgstr ""
21478
21479 #. type: textblock
21480 #: ../inspector/virt-inspector.pod:222
21481 msgid "You might see something like this:"
21482 msgstr ""
21483
21484 #. type: verbatim
21485 #: ../inspector/virt-inspector.pod:224
21486 #, no-wrap
21487 msgid ""
21488 " <operatingsystems>\n"
21489 "   <operatingsystem>\n"
21490 "     ...\n"
21491 "     <filesystems>\n"
21492 "       <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21493 "         <type>ext4</type>\n"
21494 "         <label>Fedora-13-x86_64</label>\n"
21495 "         <uuid>e6a4db1e-15c2-477b-ac2a-699181c396aa</uuid>\n"
21496 "       </filesystem>\n"
21497 "\n"
21498 msgstr ""
21499
21500 #. type: textblock
21501 #: ../inspector/virt-inspector.pod:234
21502 msgid ""
21503 "The optional elements within E<lt>filesystemE<gt> are the filesystem type, "
21504 "the label, and the UUID."
21505 msgstr ""
21506
21507 #. type: =head2
21508 #: ../inspector/virt-inspector.pod:237
21509 msgid "E<lt>applicationsE<gt>"
21510 msgstr ""
21511
21512 #. type: textblock
21513 #: ../inspector/virt-inspector.pod:239
21514 msgid ""
21515 "The related elements E<lt>package_formatE<gt>, E<lt>package_managementE<gt> "
21516 "and E<lt>applicationsE<gt> describe applications installed in the virtual "
21517 "machine."
21518 msgstr ""
21519
21520 #. type: textblock
21521 #: ../inspector/virt-inspector.pod:243
21522 msgid ""
21523 "E<lt>package_formatE<gt>, if present, describes the packaging system used.  "
21524 "Typical values would be C<rpm> and C<deb>."
21525 msgstr ""
21526
21527 #. type: textblock
21528 #: ../inspector/virt-inspector.pod:246
21529 msgid ""
21530 "E<lt>package_managementE<gt>, if present, describes the package manager.  "
21531 "Typical values include C<yum>, C<up2date> and C<apt>"
21532 msgstr ""
21533
21534 #. type: textblock
21535 #: ../inspector/virt-inspector.pod:249
21536 msgid "E<lt>applicationsE<gt> lists the packages or applications installed."
21537 msgstr ""
21538
21539 #. type: verbatim
21540 #: ../inspector/virt-inspector.pod:252
21541 #, no-wrap
21542 msgid ""
21543 " <operatingsystems>\n"
21544 "   <operatingsystem>\n"
21545 "     ...\n"
21546 "     <applications>\n"
21547 "       <application>\n"
21548 "         <name>coreutils</name>\n"
21549 "         <version>8.5</version>\n"
21550 "         <release>1</release>\n"
21551 "       </application>\n"
21552 "\n"
21553 msgstr ""
21554
21555 #. type: textblock
21556 #: ../inspector/virt-inspector.pod:262
21557 msgid ""
21558 "The version and release fields may not be available for some types guests.  "
21559 "Other fields are possible, see L<guestfs(3)/"
21560 "guestfs_inspect_list_applications>."
21561 msgstr ""
21562
21563 #. type: =head2
21564 #: ../inspector/virt-inspector.pod:266
21565 msgid "E<lt>drive_mappingsE<gt>"
21566 msgstr ""
21567
21568 #. type: textblock
21569 #: ../inspector/virt-inspector.pod:268
21570 msgid ""
21571 "For operating systems like Windows which use drive letters, virt-inspector "
21572 "is able to find out how drive letters map to filesystems."
21573 msgstr ""
21574
21575 #. type: verbatim
21576 #: ../inspector/virt-inspector.pod:272
21577 #, no-wrap
21578 msgid ""
21579 " <operatingsystems>\n"
21580 "   <operatingsystem>\n"
21581 "     ...\n"
21582 "     <drive_mappings>\n"
21583 "       <drive_mapping name=\"C\">/dev/sda2</drive_mapping>\n"
21584 "       <drive_mapping name=\"E\">/dev/sdb1</drive_mapping>\n"
21585 "     </drive_mappings>\n"
21586 "\n"
21587 msgstr ""
21588
21589 #. type: textblock
21590 #: ../inspector/virt-inspector.pod:280
21591 msgid ""
21592 "In the example above, drive C maps to the filesystem on the second partition "
21593 "on the first disk, and drive E maps to the filesystem on the first partition "
21594 "on the second disk."
21595 msgstr ""
21596
21597 #. type: textblock
21598 #: ../inspector/virt-inspector.pod:284
21599 msgid ""
21600 "Note that this only covers permanent local filesystem mappings, not things "
21601 "like network shares.  Furthermore NTFS volume mount points may not be listed "
21602 "here."
21603 msgstr ""
21604
21605 #. type: =head2
21606 #: ../inspector/virt-inspector.pod:288
21607 #, fuzzy
21608 #| msgid "B<-s E<lt>NE<gt>>"
21609 msgid "E<lt>iconE<gt>"
21610 msgstr "B<-s E<lt>NE<gt>>"
21611
21612 #. type: textblock
21613 #: ../inspector/virt-inspector.pod:290
21614 msgid ""
21615 "Virt-inspector is sometimes able to extract an icon or logo for the guest.  "
21616 "The icon is returned as base64-encoded PNG data.  Note that the icon can be "
21617 "very large and high quality."
21618 msgstr ""
21619
21620 #. type: verbatim
21621 #: ../inspector/virt-inspector.pod:294
21622 #, no-wrap
21623 msgid ""
21624 " <operatingsystems>\n"
21625 "   <operatingsystem>\n"
21626 "     ...\n"
21627 "     <icon>\n"
21628 "       iVBORw0KGgoAAAANSUhEUgAAAGAAAABg[.......]\n"
21629 "       [... many lines of base64 data ...]\n"
21630 "     </icon>\n"
21631 "\n"
21632 msgstr ""
21633
21634 #. type: textblock
21635 #: ../inspector/virt-inspector.pod:302
21636 msgid ""
21637 "To display the icon, you have to extract it and convert the base64 data back "
21638 "to a binary file.  Use an XPath query or simply an editor to extract the "
21639 "data, then use the coreutils L<base64(1)> program to do the conversion back "
21640 "to a PNG file:"
21641 msgstr ""
21642
21643 #. type: verbatim
21644 #: ../inspector/virt-inspector.pod:307
21645 #, no-wrap
21646 msgid ""
21647 " base64 -i -d < icon.data > icon.png\n"
21648 "\n"
21649 msgstr ""
21650
21651 #. type: =head2
21652 #: ../inspector/virt-inspector.pod:309
21653 msgid "INSPECTING INSTALL DISKS, LIVE CDs"
21654 msgstr ""
21655
21656 #. type: textblock
21657 #: ../inspector/virt-inspector.pod:311
21658 msgid ""
21659 "Virt-inspector can detect some operating system installers on install disks, "
21660 "live CDs, bootable USB keys and more."
21661 msgstr ""
21662
21663 #. type: textblock
21664 #: ../inspector/virt-inspector.pod:314
21665 msgid ""
21666 "In this case the E<lt>formatE<gt> tag will contain C<installer> and other "
21667 "fields may be present to indicate a live CD, network installer, or one part "
21668 "of a multipart CD.  For example:"
21669 msgstr ""
21670
21671 #. type: verbatim
21672 #: ../inspector/virt-inspector.pod:318
21673 #, no-wrap
21674 msgid ""
21675 " <operatingsystems>\n"
21676 "   <operatingsystem>\n"
21677 "     <root>/dev/sda</root>\n"
21678 "     <name>linux</name>\n"
21679 "     <arch>i386</arch>\n"
21680 "     <distro>ubuntu</distro>\n"
21681 "     <product_name>Ubuntu 10.10 &quot;Maverick Meerkat&quot;</product_name>\n"
21682 "     <major_version>10</major_version>\n"
21683 "     <minor_version>10</minor_version>\n"
21684 "     <format>installer</format>\n"
21685 "     <live/>\n"
21686 "\n"
21687 msgstr ""
21688
21689 #. type: =head1
21690 #: ../inspector/virt-inspector.pod:330
21691 msgid "USING XPATH"
21692 msgstr ""
21693
21694 #. type: textblock
21695 #: ../inspector/virt-inspector.pod:332
21696 msgid ""
21697 "You can use the XPath query language to select parts of the XML.  We "
21698 "recommend using C<xmlstarlet> to perform XPath queries from the command line."
21699 msgstr ""
21700
21701 #. type: verbatim
21702 #: ../inspector/virt-inspector.pod:338
21703 #, no-wrap
21704 msgid ""
21705 " $ virt-inspector -d Guest | xmlstarlet sel -t -c '//filesystems'\n"
21706 " <filesystems>\n"
21707 "      <filesystem dev=\"/dev/vg_f13x64/lv_root\">\n"
21708 "        <type>ext4</type>\n"
21709 " [...]\n"
21710 "\n"
21711 msgstr ""
21712
21713 #. type: verbatim
21714 #: ../inspector/virt-inspector.pod:344
21715 #, no-wrap
21716 msgid ""
21717 " $ virt-inspector -d Guest | \\\n"
21718 "     xmlstarlet sel -t -c \"string(//filesystem[@dev='/dev/sda1']/type)\"\n"
21719 " ext4\n"
21720 "\n"
21721 msgstr ""
21722
21723 #. type: verbatim
21724 #: ../inspector/virt-inspector.pod:348
21725 #, no-wrap
21726 msgid ""
21727 " $ virt-inspector -d Guest | \\\n"
21728 "    xmlstarlet sel -t -v '//icon' | base64 -i -d | display -\n"
21729 " [displays the guest icon, if there is one]\n"
21730 "\n"
21731 msgstr ""
21732
21733 #. type: =head1
21734 #: ../inspector/virt-inspector.pod:359
21735 msgid "OLD VERSIONS OF VIRT-INSPECTOR"
21736 msgstr ""
21737
21738 #. type: textblock
21739 #: ../inspector/virt-inspector.pod:361
21740 msgid ""
21741 "Early versions of libguestfs shipped with a different virt-inspector program "
21742 "written in Perl (the current version is written in C).  The XML output of "
21743 "the Perl virt-inspector was different and it could also output in other "
21744 "formats like text."
21745 msgstr ""
21746
21747 #. type: textblock
21748 #: ../inspector/virt-inspector.pod:366
21749 msgid ""
21750 "The old virt-inspector is no longer supported or shipped with libguestfs."
21751 msgstr ""
21752
21753 #. type: textblock
21754 #: ../inspector/virt-inspector.pod:369
21755 msgid ""
21756 "To confuse matters further, in Red Hat Enterprise Linux 6 we ship two "
21757 "versions of virt-inspector with different names:"
21758 msgstr ""
21759
21760 #. type: verbatim
21761 #: ../inspector/virt-inspector.pod:372
21762 #, no-wrap
21763 msgid ""
21764 " virt-inspector     Old Perl version.\n"
21765 " virt-inspector2    New C version.\n"
21766 "\n"
21767 msgstr ""
21768
21769 #. type: textblock
21770 #: ../inspector/virt-inspector.pod:382
21771 #, fuzzy
21772 #| msgid ""
21773 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21774 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21775 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21776 msgid ""
21777 "L<guestfs(3)>, L<guestfish(1)>, L<http://www.w3.org/TR/xpath/>, L<base64(1)"
21778 ">, L<xmlstarlet(1)>, L<http://libguestfs.org/>."
21779 msgstr ""
21780 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21781 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21782 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21783
21784 #. type: textblock
21785 #: ../inspector/virt-inspector.pod:399
21786 msgid "Matthew Booth L<mbooth@redhat.com>"
21787 msgstr ""
21788
21789 #. type: textblock
21790 #: ../java/examples/guestfs-java.pod:5
21791 msgid "guestfs-java - How to use libguestfs from Java"
21792 msgstr ""
21793
21794 #. type: verbatim
21795 #: ../java/examples/guestfs-java.pod:9
21796 #, no-wrap
21797 msgid ""
21798 " import com.redhat.et.libguestfs.*;\n"
21799 " \n"
21800 msgstr ""
21801
21802 #. type: verbatim
21803 #: ../java/examples/guestfs-java.pod:11
21804 #, no-wrap
21805 msgid ""
21806 " GuestFS g = new GuestFS ();\n"
21807 " g.add_drive_opts (\"disk.img\", null);\n"
21808 " g.launch ();\n"
21809 "\n"
21810 msgstr ""
21811
21812 #. type: textblock
21813 #: ../java/examples/guestfs-java.pod:17
21814 msgid ""
21815 "This manual page documents how to call libguestfs from the Java programming "
21816 "language.  This page just documents the differences from the C API and gives "
21817 "some examples.  If you are not familiar with using libguestfs, you also need "
21818 "to read L<guestfs(3)>."
21819 msgstr ""
21820
21821 #. type: =head2
21822 #: ../java/examples/guestfs-java.pod:22 ../ocaml/examples/guestfs-ocaml.pod:53
21823 msgid "CLOSING THE HANDLE"
21824 msgstr ""
21825
21826 #. type: textblock
21827 #: ../java/examples/guestfs-java.pod:24
21828 msgid ""
21829 "The handle is closed when it is reaped by the garbage collector.  Because "
21830 "libguestfs handles include a lot of state, it is also possible to close (and "
21831 "hence free) them explicitly by calling the C<close> method."
21832 msgstr ""
21833
21834 #. type: =head2
21835 #: ../java/examples/guestfs-java.pod:29 ../ocaml/examples/guestfs-ocaml.pod:60
21836 #: ../python/examples/guestfs-python.pod:21
21837 #: ../ruby/examples/guestfs-ruby.pod:22
21838 #, fuzzy
21839 #| msgid "OPTIONS"
21840 msgid "EXCEPTIONS"
21841 msgstr "ПАРАМЕТРИ"
21842
21843 #. type: textblock
21844 #: ../java/examples/guestfs-java.pod:31
21845 msgid ""
21846 "Errors from libguestfs functions are mapped into the C<LibGuestFSException> "
21847 "exception.  This has a single parameter which is the error message (a "
21848 "C<String>)."
21849 msgstr ""
21850
21851 #. type: textblock
21852 #: ../java/examples/guestfs-java.pod:35
21853 msgid "Calling any method on a closed handle raises the same exception."
21854 msgstr ""
21855
21856 #. type: textblock
21857 #: ../java/examples/guestfs-java.pod:47
21858 #, fuzzy
21859 #| msgid ""
21860 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21861 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
21862 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21863 msgid ""
21864 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-ocaml"
21865 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
21866 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
21867 msgstr ""
21868 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
21869 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
21870 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
21871
21872 #. type: textblock
21873 #: ../ocaml/examples/guestfs-ocaml.pod:5
21874 msgid "guestfs-ocaml - How to use libguestfs from OCaml"
21875 msgstr ""
21876
21877 #. type: textblock
21878 #: ../ocaml/examples/guestfs-ocaml.pod:9
21879 msgid "Module style:"
21880 msgstr ""
21881
21882 #. type: verbatim
21883 #: ../ocaml/examples/guestfs-ocaml.pod:11
21884 #, no-wrap
21885 msgid ""
21886 " let g = Guestfs.create () in\n"
21887 " Guestfs.add_drive_opts g ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21888 " Guestfs.launch g;\n"
21889 "\n"
21890 msgstr ""
21891
21892 #. type: textblock
21893 #: ../ocaml/examples/guestfs-ocaml.pod:15
21894 msgid "Object-oriented style:"
21895 msgstr ""
21896
21897 #. type: verbatim
21898 #: ../ocaml/examples/guestfs-ocaml.pod:17
21899 #, no-wrap
21900 msgid ""
21901 " let g = new Guestfs.guestfs () in\n"
21902 " g#add_drive_opts ~format:\"raw\" ~readonly:true \"disk.img\";\n"
21903 " g#launch ();\n"
21904 "\n"
21905 msgstr ""
21906
21907 #. type: verbatim
21908 #: ../ocaml/examples/guestfs-ocaml.pod:21
21909 #, no-wrap
21910 msgid ""
21911 " ocamlfind opt prog.ml -package guestfs -linkpkg -o prog\n"
21912 "or:\n"
21913 " ocamlopt -I +guestfs mlguestfs.cmxa prog.ml -o prog\n"
21914 "\n"
21915 msgstr ""
21916
21917 #. type: textblock
21918 #: ../ocaml/examples/guestfs-ocaml.pod:27
21919 msgid ""
21920 "This manual page documents how to call libguestfs from the OCaml programming "
21921 "language.  This page just documents the differences from the C API and gives "
21922 "some examples.  If you are not familiar with using libguestfs, you also need "
21923 "to read L<guestfs(3)>."
21924 msgstr ""
21925
21926 #. type: =head2
21927 #: ../ocaml/examples/guestfs-ocaml.pod:32
21928 msgid "PROGRAMMING STYLES"
21929 msgstr ""
21930
21931 #. type: textblock
21932 #: ../ocaml/examples/guestfs-ocaml.pod:34
21933 msgid ""
21934 "There are two different programming styles supported by the OCaml bindings.  "
21935 "You can use a module style, with each C function mapped to an OCaml function:"
21936 msgstr ""
21937
21938 #. type: verbatim
21939 #: ../ocaml/examples/guestfs-ocaml.pod:38
21940 #, fuzzy, no-wrap
21941 #| msgid ""
21942 #| " int guestfs_last_errno (guestfs_h *g);\n"
21943 #| "\n"
21944 msgid ""
21945 " int guestfs_set_verbose (guestfs_h *g, int flag);\n"
21946 "\n"
21947 msgstr ""
21948 " int guestfs_last_errno (guestfs_h *g);\n"
21949 "\n"
21950
21951 #. type: textblock
21952 #: ../ocaml/examples/guestfs-ocaml.pod:40
21953 msgid "becomes:"
21954 msgstr ""
21955
21956 #. type: verbatim
21957 #: ../ocaml/examples/guestfs-ocaml.pod:42
21958 #, no-wrap
21959 msgid ""
21960 " val Guestfs.set_verbose : Guestfs.t -> bool -> unit\n"
21961 "\n"
21962 msgstr ""
21963
21964 #. type: textblock
21965 #: ../ocaml/examples/guestfs-ocaml.pod:44
21966 msgid ""
21967 "Alternately you can use an object-oriented style, calling methods on the "
21968 "class C<Guestfs.guestfs>:"
21969 msgstr ""
21970
21971 #. type: verbatim
21972 #: ../ocaml/examples/guestfs-ocaml.pod:47
21973 #, no-wrap
21974 msgid ""
21975 " method set_verbose : bool -> unit\n"
21976 "\n"
21977 msgstr ""
21978
21979 #. type: textblock
21980 #: ../ocaml/examples/guestfs-ocaml.pod:49
21981 msgid ""
21982 "The object-oriented style is usually briefer, and the minor performance "
21983 "penalty isn't noticable in the general overhead of performing libguestfs "
21984 "functions."
21985 msgstr ""
21986
21987 #. type: textblock
21988 #: ../ocaml/examples/guestfs-ocaml.pod:55
21989 msgid ""
21990 "The handle is closed when it is reaped by the garbage collector.  Because "
21991 "libguestfs handles include a lot of state, it is also possible to close (and "
21992 "hence free) them explicitly by calling C<Guestfs.close> or the C<#close> "
21993 "method."
21994 msgstr ""
21995
21996 #. type: textblock
21997 #: ../ocaml/examples/guestfs-ocaml.pod:62
21998 msgid ""
21999 "Errors from libguestfs functions are mapped into the C<Guestfs.Error> "
22000 "exception.  This has a single parameter which is the error message (a "
22001 "string)."
22002 msgstr ""
22003
22004 #. type: textblock
22005 #: ../ocaml/examples/guestfs-ocaml.pod:66
22006 msgid ""
22007 "Calling any function/method on a closed handle raises C<Guestfs."
22008 "Handle_closed>.  The single parameter is the name of the function that you "
22009 "called."
22010 msgstr ""
22011
22012 #. type: textblock
22013 #: ../ocaml/examples/guestfs-ocaml.pod:80
22014 #, fuzzy
22015 #| msgid ""
22016 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22017 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22018 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22019 msgid ""
22020 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22021 "(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-recipes(1)>, "
22022 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>, L<http://caml.inria.fr/>."
22023 msgstr ""
22024 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22025 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22026 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22027
22028 #. type: textblock
22029 #: ../perl/examples/guestfs-perl.pod:5
22030 msgid "guestfs-perl - How to use libguestfs from Perl"
22031 msgstr ""
22032
22033 #. type: verbatim
22034 #: ../perl/examples/guestfs-perl.pod:9
22035 #, no-wrap
22036 msgid ""
22037 " use Sys::Guestfs;\n"
22038 " \n"
22039 msgstr ""
22040
22041 #. type: verbatim
22042 #: ../perl/examples/guestfs-perl.pod:11
22043 #, no-wrap
22044 msgid ""
22045 " my $h = Sys::Guestfs->new ();\n"
22046 " $h->add_drive_opts ('guest.img', format => 'raw');\n"
22047 " $h->launch ();\n"
22048 " $h->mount_options ('', '/dev/sda1', '/');\n"
22049 " $h->touch ('/hello');\n"
22050 " $h->sync ();\n"
22051 "\n"
22052 msgstr ""
22053
22054 #. type: textblock
22055 #: ../perl/examples/guestfs-perl.pod:20
22056 msgid ""
22057 "This manual page documents how to call libguestfs from the Perl programming "
22058 "language.  This page just documents the differences from the C API and gives "
22059 "some examples.  If you are not familiar with using libguestfs, you also need "
22060 "to read L<guestfs(3)>.  To read the full Perl API, see L<Sys::Guestfs(3)>."
22061 msgstr ""
22062
22063 #. type: =head2
22064 #: ../perl/examples/guestfs-perl.pod:26
22065 msgid "ERRORS"
22066 msgstr ""
22067
22068 #. type: textblock
22069 #: ../perl/examples/guestfs-perl.pod:28
22070 msgid ""
22071 "Errors from libguestfs functions turn into calls to C<croak> (see L<Carp(3)"
22072 ">)."
22073 msgstr ""
22074
22075 #. type: textblock
22076 #: ../perl/examples/guestfs-perl.pod:41
22077 #, fuzzy
22078 #| msgid ""
22079 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22080 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22081 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22082 msgid ""
22083 "L<Sys::Guestfs(3)>, L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang"
22084 "(3)>, L<guestfs-java(3)>, L<guestfs-ocaml(3)>, L<guestfs-python(3)>, "
22085 "L<guestfs-recipes(1)>, L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22086 msgstr ""
22087 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22088 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22089 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22090
22091 #. type: textblock
22092 #: ../python/examples/guestfs-python.pod:5
22093 msgid "guestfs-python - How to use libguestfs from Python"
22094 msgstr ""
22095
22096 #. type: verbatim
22097 #: ../python/examples/guestfs-python.pod:9
22098 #, no-wrap
22099 msgid ""
22100 " import guestfs\n"
22101 " g = guestfs.GuestFS ()\n"
22102 " g.add_drive_opts (\"disk.img\", format=\"raw\", readonly=1)\n"
22103 " g.launch\n"
22104 "\n"
22105 msgstr ""
22106
22107 #. type: textblock
22108 #: ../python/examples/guestfs-python.pod:16
22109 msgid ""
22110 "This manual page documents how to call libguestfs from the Python "
22111 "programming language.  This page just documents the differences from the C "
22112 "API and gives some examples.  If you are not familiar with using libguestfs, "
22113 "you also need to read L<guestfs(3)>."
22114 msgstr ""
22115
22116 #. type: textblock
22117 #: ../python/examples/guestfs-python.pod:23
22118 msgid ""
22119 "Errors from libguestfs functions are mapped into C<RuntimeException> with a "
22120 "single string argument which is the error message."
22121 msgstr ""
22122
22123 #. type: =head2
22124 #: ../python/examples/guestfs-python.pod:26
22125 msgid "MORE DOCUMENTATION"
22126 msgstr ""
22127
22128 #. type: textblock
22129 #: ../python/examples/guestfs-python.pod:28
22130 msgid "Type:"
22131 msgstr ""
22132
22133 #. type: verbatim
22134 #: ../python/examples/guestfs-python.pod:30
22135 #, no-wrap
22136 msgid ""
22137 " $ python\n"
22138 " >>> import guestfs\n"
22139 " >>> help (guestfs)\n"
22140 "\n"
22141 msgstr ""
22142
22143 #. type: textblock
22144 #: ../python/examples/guestfs-python.pod:44
22145 #, fuzzy
22146 #| msgid ""
22147 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22148 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22149 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22150 msgid ""
22151 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
22152 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-recipes(1)>, "
22153 "L<guestfs-ruby(3)>, L<http://libguestfs.org/>."
22154 msgstr ""
22155 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22156 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22157 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22158
22159 #. type: textblock
22160 #: ../rescue/virt-rescue.pod:5
22161 msgid "virt-rescue - Run a rescue shell on a virtual machine"
22162 msgstr ""
22163
22164 #. type: verbatim
22165 #: ../rescue/virt-rescue.pod:9
22166 #, fuzzy, no-wrap
22167 #| msgid ""
22168 #| " virt-list-partitions [--options] domname\n"
22169 #| "\n"
22170 msgid ""
22171 " virt-rescue [--options] -d domname\n"
22172 "\n"
22173 msgstr ""
22174 " virt-list-partitions [--параметри] назва_домену\n"
22175 "\n"
22176
22177 #. type: verbatim
22178 #: ../rescue/virt-rescue.pod:11
22179 #, fuzzy, no-wrap
22180 #| msgid ""
22181 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
22182 #| "\n"
22183 msgid ""
22184 " virt-rescue [--options] -a disk.img [-a disk.img ...]\n"
22185 "\n"
22186 msgstr ""
22187 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
22188 "\n"
22189
22190 #. type: verbatim
22191 #: ../rescue/virt-rescue.pod:15
22192 #, fuzzy, no-wrap
22193 #| msgid ""
22194 #| " virt-list-partitions [--options] domname\n"
22195 #| "\n"
22196 msgid ""
22197 " virt-rescue [--options] domname\n"
22198 "\n"
22199 msgstr ""
22200 " virt-list-partitions [--параметри] назва_домену\n"
22201 "\n"
22202
22203 #. type: verbatim
22204 #: ../rescue/virt-rescue.pod:17
22205 #, fuzzy, no-wrap
22206 #| msgid ""
22207 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
22208 #| "\n"
22209 msgid ""
22210 " virt-rescue [--options] disk.img [disk.img ...]\n"
22211 "\n"
22212 msgstr ""
22213 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
22214 "\n"
22215
22216 #. type: textblock
22217 #: ../rescue/virt-rescue.pod:21
22218 msgid ""
22219 "You must I<not> use C<virt-rescue> on live virtual machines.  Doing so will "
22220 "probably result in disk corruption in the VM.  C<virt-rescue> tries to stop "
22221 "you from doing this, but doesn't catch all cases."
22222 msgstr ""
22223
22224 #. type: textblock
22225 #: ../rescue/virt-rescue.pod:25
22226 msgid ""
22227 "However if you use the I<--ro> (read only) option, then you can attach a "
22228 "shell to a live virtual machine.  The results might be strange or "
22229 "inconsistent at times but you won't get disk corruption."
22230 msgstr ""
22231
22232 #. type: textblock
22233 #: ../rescue/virt-rescue.pod:31
22234 msgid ""
22235 "virt-rescue is like a Rescue CD, but for virtual machines, and without the "
22236 "need for a CD.  virt-rescue gives you a rescue shell and some simple "
22237 "recovery tools which you can use to examine or rescue a virtual machine or "
22238 "disk image."
22239 msgstr ""
22240
22241 #. type: textblock
22242 #: ../rescue/virt-rescue.pod:36
22243 msgid ""
22244 "You can run virt-rescue on any virtual machine known to libvirt, or directly "
22245 "on disk image(s):"
22246 msgstr ""
22247
22248 #. type: verbatim
22249 #: ../rescue/virt-rescue.pod:39
22250 #, no-wrap
22251 msgid ""
22252 " virt-rescue -d GuestName\n"
22253 "\n"
22254 msgstr ""
22255
22256 #. type: verbatim
22257 #: ../rescue/virt-rescue.pod:41
22258 #, no-wrap
22259 msgid ""
22260 " virt-rescue --ro -a /path/to/disk.img\n"
22261 "\n"
22262 msgstr ""
22263
22264 #. type: verbatim
22265 #: ../rescue/virt-rescue.pod:43
22266 #, no-wrap
22267 msgid ""
22268 " virt-rescue -a /dev/sdc\n"
22269 "\n"
22270 msgstr ""
22271
22272 #. type: textblock
22273 #: ../rescue/virt-rescue.pod:45
22274 msgid "For live VMs you I<must> use the --ro option."
22275 msgstr ""
22276
22277 #. type: textblock
22278 #: ../rescue/virt-rescue.pod:47
22279 msgid ""
22280 "When you run virt-rescue on a virtual machine or disk image, you are placed "
22281 "in an interactive bash shell where you can use many ordinary Linux "
22282 "commands.  What you see in C</> (C</bin>, C</lib> etc) is the rescue "
22283 "appliance.  You must mount the virtual machine's filesystems by hand.  There "
22284 "is an empty directory called C</sysroot> where you can mount filesystems."
22285 msgstr ""
22286
22287 #. type: textblock
22288 #: ../rescue/virt-rescue.pod:54
22289 msgid ""
22290 "In the example below, we list logical volumes, then choose one to mount "
22291 "under C</sysroot>:"
22292 msgstr ""
22293
22294 #. type: verbatim
22295 #: ../rescue/virt-rescue.pod:57
22296 #, no-wrap
22297 msgid ""
22298 " ><rescue> lvs\n"
22299 " LV      VG        Attr   LSize   Origin Snap%  Move Log Copy%  Convert\n"
22300 " lv_root vg_f11x64 -wi-a-   8.83G\n"
22301 " lv_swap vg_f11x64 -wi-a- 992.00M\n"
22302 " ><rescue> mount /dev/vg_f11x64/lv_root /sysroot\n"
22303 " ><rescue> ls /sysroot\n"
22304 "\n"
22305 msgstr ""
22306
22307 #. type: textblock
22308 #: ../rescue/virt-rescue.pod:64
22309 msgid ""
22310 "If you don't know what filesystems are available on the virtual machine then "
22311 "you can use commands such as L<parted(8)> and L<lvs(8)> to find out."
22312 msgstr ""
22313
22314 #. type: textblock
22315 #: ../rescue/virt-rescue.pod:70
22316 msgid ""
22317 "Virt-rescue can be used on I<any> disk image file or device, not just a "
22318 "virtual machine.  For example you can use it on a blank file if you want to "
22319 "partition that file (although we would recommend using L<guestfish(1)> "
22320 "instead as it is more suitable for this purpose).  You can even use virt-"
22321 "rescue on things like SD cards."
22322 msgstr ""
22323
22324 #. type: textblock
22325 #: ../rescue/virt-rescue.pod:76
22326 msgid ""
22327 "Virt-rescue does not require root.  You only need to run it as root if you "
22328 "need root to open the disk image."
22329 msgstr ""
22330
22331 #. type: textblock
22332 #: ../rescue/virt-rescue.pod:79
22333 msgid ""
22334 "This tool is just designed for quick interactive hacking on a virtual "
22335 "machine.  For more structured access to a virtual machine disk image, you "
22336 "should use L<guestfs(3)>.  To get a structured shell that you can use to "
22337 "make scripted changes to guests, use L<guestfish(1)>."
22338 msgstr ""
22339
22340 #. type: =item
22341 #: ../rescue/virt-rescue.pod:103
22342 msgid "B<--append kernelopts>"
22343 msgstr ""
22344
22345 #. type: textblock
22346 #: ../rescue/virt-rescue.pod:105
22347 msgid "Pass additional options to the rescue kernel."
22348 msgstr ""
22349
22350 #. type: verbatim
22351 #: ../rescue/virt-rescue.pod:135
22352 #, fuzzy, no-wrap
22353 #| msgid ""
22354 #| " guestfish --format=raw -a disk.img\n"
22355 #| "\n"
22356 msgid ""
22357 " virt-rescue --format=raw -a disk.img\n"
22358 "\n"
22359 msgstr ""
22360 " guestfish --format=raw -a disk.img\n"
22361 "\n"
22362
22363 #. type: verbatim
22364 #: ../rescue/virt-rescue.pod:139
22365 #, fuzzy, no-wrap
22366 #| msgid ""
22367 #| " guestfish --format=raw -a disk.img --format -a another.img\n"
22368 #| "\n"
22369 msgid ""
22370 " virt-rescue --format=raw -a disk.img --format -a another.img\n"
22371 "\n"
22372 msgstr ""
22373 " guestfish --format=raw -a disk.img --format -a another.img\n"
22374 "\n"
22375
22376 #. type: =item
22377 #: ../rescue/virt-rescue.pod:148
22378 msgid "B<-m MB>"
22379 msgstr ""
22380
22381 #. type: =item
22382 #: ../rescue/virt-rescue.pod:150
22383 #, fuzzy
22384 #| msgid "B<--merge>"
22385 msgid "B<--memsize MB>"
22386 msgstr "B<--merge>"
22387
22388 #. type: textblock
22389 #: ../rescue/virt-rescue.pod:152
22390 msgid ""
22391 "Change the amount of memory allocated to the rescue system.  The default is "
22392 "set by libguestfs and is small but adequate for running system tools.  The "
22393 "occasional program might need more memory.  The parameter is specified in "
22394 "megabytes."
22395 msgstr ""
22396
22397 #. type: =item
22398 #: ../rescue/virt-rescue.pod:157
22399 #, fuzzy
22400 #| msgid "B<--inspector>"
22401 msgid "B<--network>"
22402 msgstr "B<--inspector>"
22403
22404 #. type: textblock
22405 #: ../rescue/virt-rescue.pod:159
22406 msgid "Enable QEMU user networking in the guest.  See L</NETWORK>."
22407 msgstr ""
22408
22409 #. type: textblock
22410 #: ../rescue/virt-rescue.pod:165
22411 msgid "Open the image read-only."
22412 msgstr ""
22413
22414 #. type: textblock
22415 #: ../rescue/virt-rescue.pod:175
22416 msgid ""
22417 "Enable SELinux in the rescue appliance.  You should read L<guestfs(3)/"
22418 "SELINUX> before using this option."
22419 msgstr ""
22420
22421 #. type: =item
22422 #: ../rescue/virt-rescue.pod:178
22423 #, fuzzy
22424 #| msgid "B<--csh>"
22425 msgid "B<--smp> N"
22426 msgstr "B<--csh>"
22427
22428 #. type: textblock
22429 #: ../rescue/virt-rescue.pod:180
22430 msgid "Enable N E<ge> 2 virtual CPUs in the rescue appliance."
22431 msgstr ""
22432
22433 #. type: textblock
22434 #: ../rescue/virt-rescue.pod:198
22435 msgid ""
22436 "This changes the I<-a> and I<-d> options so that disks are added and mounts "
22437 "are done read-write."
22438 msgstr ""
22439
22440 #. type: textblock
22441 #: ../rescue/virt-rescue.pod:211
22442 msgid "Previous versions of virt-rescue allowed you to write either:"
22443 msgstr ""
22444
22445 #. type: verbatim
22446 #: ../rescue/virt-rescue.pod:213
22447 #, fuzzy, no-wrap
22448 #| msgid ""
22449 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
22450 #| "\n"
22451 msgid ""
22452 " virt-rescue disk.img [disk.img ...]\n"
22453 "\n"
22454 msgstr ""
22455 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
22456 "\n"
22457
22458 #. type: verbatim
22459 #: ../rescue/virt-rescue.pod:217
22460 #, fuzzy, no-wrap
22461 #| msgid ""
22462 #| " file-architecture filename\n"
22463 #| "\n"
22464 msgid ""
22465 " virt-rescue guestname\n"
22466 "\n"
22467 msgstr ""
22468 " file-architecture назва_файла\n"
22469 "\n"
22470
22471 #. type: =head1
22472 #: ../rescue/virt-rescue.pod:225
22473 msgid "NETWORK"
22474 msgstr ""
22475
22476 #. type: textblock
22477 #: ../rescue/virt-rescue.pod:227
22478 msgid ""
22479 "Adding the I<--network> option enables QEMU user networking in the rescue "
22480 "appliance.  There are some differences between user networking and ordinary "
22481 "networking:"
22482 msgstr ""
22483
22484 #. type: =item
22485 #: ../rescue/virt-rescue.pod:233
22486 msgid "ping does not work"
22487 msgstr ""
22488
22489 #. type: textblock
22490 #: ../rescue/virt-rescue.pod:235
22491 msgid ""
22492 "Because the ICMP ECHO_REQUEST protocol generally requires root in order to "
22493 "send the ping packets, and because virt-rescue must be able to run as non-"
22494 "root, QEMU user networking is not able to emulate the L<ping(8)> command.  "
22495 "The ping command will appear to resolve addresses but will not be able to "
22496 "send or receive any packets.  This does not mean that the network is not "
22497 "working."
22498 msgstr ""
22499
22500 #. type: =item
22501 #: ../rescue/virt-rescue.pod:242
22502 msgid "cannot receive connections"
22503 msgstr ""
22504
22505 #. type: textblock
22506 #: ../rescue/virt-rescue.pod:244
22507 msgid "QEMU user networking cannot receive incoming connections."
22508 msgstr ""
22509
22510 #. type: =item
22511 #: ../rescue/virt-rescue.pod:246
22512 msgid "making TCP connections"
22513 msgstr ""
22514
22515 #. type: textblock
22516 #: ../rescue/virt-rescue.pod:248
22517 msgid ""
22518 "The virt-rescue appliance needs to be small and so does not include many "
22519 "network tools.  In particular there is no L<telnet(1)> command.  You can "
22520 "make TCP connections from the shell using the magical C</dev/tcp/"
22521 "E<lt>hostnameE<gt>/E<lt>portE<gt>> syntax:"
22522 msgstr ""
22523
22524 #. type: verbatim
22525 #: ../rescue/virt-rescue.pod:253
22526 #, no-wrap
22527 msgid ""
22528 " exec 3<>/dev/tcp/redhat.com/80\n"
22529 " echo \"GET /\" >&3\n"
22530 " cat <&3\n"
22531 "\n"
22532 msgstr ""
22533
22534 #. type: textblock
22535 #: ../rescue/virt-rescue.pod:257
22536 msgid "See L<bash(1)> for more details."
22537 msgstr ""
22538
22539 #. type: textblock
22540 #: ../rescue/virt-rescue.pod:263
22541 msgid ""
22542 "Several environment variables affect virt-rescue.  See L<guestfs(3)/"
22543 "ENVIRONMENT VARIABLES> for the complete list."
22544 msgstr ""
22545
22546 #. type: textblock
22547 #: ../rescue/virt-rescue.pod:290
22548 #, fuzzy
22549 #| msgid ""
22550 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22551 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
22552 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22553 msgid ""
22554 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<http://"
22555 "libguestfs.org/>."
22556 msgstr ""
22557 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
22558 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
22559 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
22560
22561 #. type: textblock
22562 #: ../resize/virt-resize.pod:5
22563 msgid "virt-resize - Resize a virtual machine disk"
22564 msgstr ""
22565
22566 #. type: verbatim
22567 #: ../resize/virt-resize.pod:9
22568 #, no-wrap
22569 msgid ""
22570 " virt-resize [--resize /dev/sdaN=[+/-]<size>[%]]\n"
22571 "   [--expand /dev/sdaN] [--shrink /dev/sdaN]\n"
22572 "   [--ignore /dev/sdaN] [--delete /dev/sdaN] [...] indisk outdisk\n"
22573 "\n"
22574 msgstr ""
22575
22576 #. type: textblock
22577 #: ../resize/virt-resize.pod:15
22578 msgid ""
22579 "Virt-resize is a tool which can resize a virtual machine disk, making it "
22580 "larger or smaller overall, and resizing or deleting any partitions contained "
22581 "within."
22582 msgstr ""
22583
22584 #. type: textblock
22585 #: ../resize/virt-resize.pod:19
22586 msgid ""
22587 "Virt-resize B<cannot> resize disk images in-place.  Virt-resize B<should "
22588 "not> be used on live virtual machines - for consistent results, shut the "
22589 "virtual machine down before resizing it."
22590 msgstr ""
22591
22592 #. type: textblock
22593 #: ../resize/virt-resize.pod:23
22594 msgid ""
22595 "If you are not familiar with the associated tools: L<virt-filesystems(1)> "
22596 "and L<virt-df(1)>, we recommend you go and read those manual pages first."
22597 msgstr ""
22598
22599 #. type: =item
22600 #: ../resize/virt-resize.pod:31 ../resize/virt-resize.pod:520
22601 #: ../sparsify/virt-sparsify.pod:203 ../src/guestfs.pod:469
22602 #: ../src/guestfs.pod:1287 ../src/guestfs.pod:1426 ../src/guestfs.pod:2604
22603 msgid "1."
22604 msgstr "1."
22605
22606 #. type: textblock
22607 #: ../resize/virt-resize.pod:33
22608 msgid ""
22609 "Copy C<olddisk> to C<newdisk>, extending one of the guest's partitions to "
22610 "fill the extra 5GB of space."
22611 msgstr ""
22612
22613 #. type: verbatim
22614 #: ../resize/virt-resize.pod:36
22615 #, no-wrap
22616 msgid ""
22617 " virt-filesystems --long -h --all -a olddisk\n"
22618 " \n"
22619 msgstr ""
22620
22621 #. type: verbatim
22622 #: ../resize/virt-resize.pod:38
22623 #, no-wrap
22624 msgid ""
22625 " truncate -r olddisk newdisk\n"
22626 " truncate -s +5G newdisk\n"
22627 " \n"
22628 msgstr ""
22629
22630 #. type: verbatim
22631 #: ../resize/virt-resize.pod:41
22632 #, no-wrap
22633 msgid ""
22634 " # Note \"/dev/sda2\" is a partition inside the \"olddisk\" file.\n"
22635 " virt-resize --expand /dev/sda2 olddisk newdisk\n"
22636 "\n"
22637 msgstr ""
22638
22639 #. type: =item
22640 #: ../resize/virt-resize.pod:44 ../resize/virt-resize.pod:527
22641 #: ../sparsify/virt-sparsify.pod:210 ../src/guestfs.pod:475
22642 #: ../src/guestfs.pod:1291 ../src/guestfs.pod:1430 ../src/guestfs.pod:2629
22643 msgid "2."
22644 msgstr "2."
22645
22646 #. type: textblock
22647 #: ../resize/virt-resize.pod:46
22648 msgid ""
22649 "As above, but make the /boot partition 200MB bigger, while giving the "
22650 "remaining space to /dev/sda2:"
22651 msgstr ""
22652
22653 #. type: verbatim
22654 #: ../resize/virt-resize.pod:49
22655 #, no-wrap
22656 msgid ""
22657 " virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22658 "   olddisk newdisk\n"
22659 "\n"
22660 msgstr ""
22661
22662 #. type: =item
22663 #: ../resize/virt-resize.pod:52 ../resize/virt-resize.pod:533
22664 #: ../sparsify/virt-sparsify.pod:216 ../src/guestfs.pod:486
22665 #: ../src/guestfs.pod:1436
22666 msgid "3."
22667 msgstr "3."
22668
22669 #. type: textblock
22670 #: ../resize/virt-resize.pod:54
22671 msgid ""
22672 "As in the first example, but expand a logical volume as the final step.  "
22673 "This is what you would typically use for Linux guests that use LVM:"
22674 msgstr ""
22675
22676 #. type: verbatim
22677 #: ../resize/virt-resize.pod:58
22678 #, no-wrap
22679 msgid ""
22680 " virt-resize --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root \\\n"
22681 "   olddisk newdisk\n"
22682 "\n"
22683 msgstr ""
22684
22685 #. type: =item
22686 #: ../resize/virt-resize.pod:61
22687 msgid "4."
22688 msgstr ""
22689
22690 #. type: textblock
22691 #: ../resize/virt-resize.pod:63
22692 msgid ""
22693 "As in the first example, but the output format will be qcow2 instead of a "
22694 "raw disk:"
22695 msgstr ""
22696
22697 #. type: verbatim
22698 #: ../resize/virt-resize.pod:66
22699 #, no-wrap
22700 msgid ""
22701 " qemu-img create -f qcow2 newdisk.qcow2 15G\n"
22702 " virt-resize --expand /dev/sda2 olddisk newdisk.qcow2\n"
22703 "\n"
22704 msgstr ""
22705
22706 #. type: =head1
22707 #: ../resize/virt-resize.pod:71
22708 msgid "DETAILED USAGE"
22709 msgstr ""
22710
22711 #. type: =head2
22712 #: ../resize/virt-resize.pod:73
22713 msgid "EXPANDING A VIRTUAL MACHINE DISK"
22714 msgstr ""
22715
22716 #. type: =item
22717 #: ../resize/virt-resize.pod:77
22718 msgid "1. Shut down the virtual machine"
22719 msgstr ""
22720
22721 #. type: =item
22722 #: ../resize/virt-resize.pod:79
22723 msgid "2. Locate input disk image"
22724 msgstr ""
22725
22726 #. type: textblock
22727 #: ../resize/virt-resize.pod:81
22728 msgid ""
22729 "Locate the input disk image (ie. the file or device on the host containing "
22730 "the guest's disk).  If the guest is managed by libvirt, you can use C<virsh "
22731 "dumpxml> like this to find the disk image name:"
22732 msgstr ""
22733
22734 #. type: verbatim
22735 #: ../resize/virt-resize.pod:85
22736 #, no-wrap
22737 msgid ""
22738 " # virsh dumpxml guestname | xpath /domain/devices/disk/source\n"
22739 " Found 1 nodes:\n"
22740 " -- NODE --\n"
22741 " <source dev=\"/dev/vg/lv_guest\" />\n"
22742 "\n"
22743 msgstr ""
22744
22745 #. type: =item
22746 #: ../resize/virt-resize.pod:90
22747 msgid "3. Look at current sizing"
22748 msgstr ""
22749
22750 #. type: textblock
22751 #: ../resize/virt-resize.pod:92
22752 msgid "Use L<virt-filesystems(1)> to display the current partitions and sizes:"
22753 msgstr ""
22754
22755 #. type: verbatim
22756 #: ../resize/virt-resize.pod:95
22757 #, no-wrap
22758 msgid ""
22759 " # virt-filesystems --long --parts --blkdevs -h -a /dev/vg/lv_guest\n"
22760 " Name       Type       Size  Parent\n"
22761 " /dev/sda1  partition  101M  /dev/sda\n"
22762 " /dev/sda2  partition  7.9G  /dev/sda\n"
22763 " /dev/sda   device     8.0G  -\n"
22764 "\n"
22765 msgstr ""
22766
22767 #. type: textblock
22768 #: ../resize/virt-resize.pod:101
22769 msgid ""
22770 "(This example is a virtual machine with an 8 GB disk which we would like to "
22771 "expand up to 10 GB)."
22772 msgstr ""
22773
22774 #. type: =item
22775 #: ../resize/virt-resize.pod:104
22776 msgid "4. Create output disk"
22777 msgstr ""
22778
22779 #. type: textblock
22780 #: ../resize/virt-resize.pod:106
22781 msgid ""
22782 "Virt-resize cannot do in-place disk modifications.  You have to have space "
22783 "to store the resized output disk."
22784 msgstr ""
22785
22786 #. type: textblock
22787 #: ../resize/virt-resize.pod:109
22788 msgid ""
22789 "To store the resized disk image in a file, create a file of a suitable size:"
22790 msgstr ""
22791
22792 #. type: verbatim
22793 #: ../resize/virt-resize.pod:112
22794 #, no-wrap
22795 msgid ""
22796 " # rm -f outdisk\n"
22797 " # truncate -s 10G outdisk\n"
22798 "\n"
22799 msgstr ""
22800
22801 #. type: textblock
22802 #: ../resize/virt-resize.pod:115
22803 msgid "Or use L<lvcreate(1)> to create a logical volume:"
22804 msgstr ""
22805
22806 #. type: verbatim
22807 #: ../resize/virt-resize.pod:117
22808 #, no-wrap
22809 msgid ""
22810 " # lvcreate -L 10G -n lv_name vg_name\n"
22811 "\n"
22812 msgstr ""
22813
22814 #. type: textblock
22815 #: ../resize/virt-resize.pod:119
22816 msgid "Or use L<virsh(1)> vol-create-as to create a libvirt storage volume:"
22817 msgstr ""
22818
22819 #. type: verbatim
22820 #: ../resize/virt-resize.pod:121
22821 #, no-wrap
22822 msgid ""
22823 " # virsh pool-list\n"
22824 " # virsh vol-create-as poolname newvol 10G\n"
22825 "\n"
22826 msgstr ""
22827
22828 #. type: =item
22829 #: ../resize/virt-resize.pod:124
22830 msgid "5. Resize"
22831 msgstr ""
22832
22833 #. type: textblock
22834 #: ../resize/virt-resize.pod:126
22835 msgid ""
22836 "virt-resize takes two mandatory parameters, the input disk (eg. device or "
22837 "file) and the output disk.  The output disk is the one created in the "
22838 "previous step."
22839 msgstr ""
22840
22841 #. type: verbatim
22842 #: ../resize/virt-resize.pod:130
22843 #, no-wrap
22844 msgid ""
22845 " # virt-resize indisk outdisk\n"
22846 "\n"
22847 msgstr ""
22848
22849 #. type: textblock
22850 #: ../resize/virt-resize.pod:132
22851 msgid ""
22852 "This command just copies disk image C<indisk> to disk image C<outdisk> "
22853 "I<without> resizing or changing any existing partitions.  If C<outdisk> is "
22854 "larger, then an extra, empty partition is created at the end of the disk "
22855 "covering the extra space.  If C<outdisk> is smaller, then it will give an "
22856 "error."
22857 msgstr ""
22858
22859 #. type: textblock
22860 #: ../resize/virt-resize.pod:138
22861 msgid ""
22862 "More realistically you'd want to expand existing partitions in the disk "
22863 "image by passing extra options (for the full list see the L</OPTIONS> "
22864 "section below)."
22865 msgstr ""
22866
22867 #. type: textblock
22868 #: ../resize/virt-resize.pod:142
22869 msgid ""
22870 "L</--expand> is the most useful option.  It expands the named partition "
22871 "within the disk to fill any extra space:"
22872 msgstr ""
22873
22874 #. type: verbatim
22875 #: ../resize/virt-resize.pod:145
22876 #, no-wrap
22877 msgid ""
22878 " # virt-resize --expand /dev/sda2 indisk outdisk\n"
22879 "\n"
22880 msgstr ""
22881
22882 #. type: textblock
22883 #: ../resize/virt-resize.pod:147
22884 msgid ""
22885 "(In this case, an extra partition is I<not> created at the end of the disk, "
22886 "because there will be no unused space)."
22887 msgstr ""
22888
22889 #. type: textblock
22890 #: ../resize/virt-resize.pod:150
22891 msgid ""
22892 "L</--resize> is the other commonly used option.  The following would "
22893 "increase the size of /dev/sda1 by 200M, and expand /dev/sda2 to fill the "
22894 "rest of the available space:"
22895 msgstr ""
22896
22897 #. type: verbatim
22898 #: ../resize/virt-resize.pod:154
22899 #, no-wrap
22900 msgid ""
22901 " # virt-resize --resize /dev/sda1=+200M --expand /dev/sda2 \\\n"
22902 "     indisk outdisk\n"
22903 "\n"
22904 msgstr ""
22905
22906 #. type: textblock
22907 #: ../resize/virt-resize.pod:157
22908 msgid ""
22909 "If the expanded partition in the image contains a filesystem or LVM PV, then "
22910 "if virt-resize knows how, it will resize the contents, the equivalent of "
22911 "calling a command such as L<pvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)> "
22912 "or L<btrfs(8)>.  However virt-resize does not know how to resize some "
22913 "filesystems, so you would have to online resize them after booting the guest."
22914 msgstr ""
22915
22916 #. type: textblock
22917 #: ../resize/virt-resize.pod:164
22918 msgid "Other options are covered below."
22919 msgstr ""
22920
22921 #. type: =item
22922 #: ../resize/virt-resize.pod:166
22923 msgid "6. Test"
22924 msgstr ""
22925
22926 #. type: textblock
22927 #: ../resize/virt-resize.pod:168
22928 msgid "Thoroughly test the new disk image I<before> discarding the old one."
22929 msgstr ""
22930
22931 #. type: textblock
22932 #: ../resize/virt-resize.pod:170
22933 msgid "If you are using libvirt, edit the XML to point at the new disk:"
22934 msgstr ""
22935
22936 #. type: verbatim
22937 #: ../resize/virt-resize.pod:172
22938 #, fuzzy, no-wrap
22939 #| msgid ""
22940 #| " edit filename\n"
22941 #| "\n"
22942 msgid ""
22943 " # virsh edit guestname\n"
22944 "\n"
22945 msgstr ""
22946 " edit назва_файла\n"
22947 "\n"
22948
22949 #. type: textblock
22950 #: ../resize/virt-resize.pod:174
22951 msgid ""
22952 "Change E<lt>source ...E<gt>, see L<http://libvirt.org/formatdomain."
22953 "html#elementsDisks>"
22954 msgstr ""
22955
22956 #. type: textblock
22957 #: ../resize/virt-resize.pod:177
22958 msgid "Then start up the domain with the new, resized disk:"
22959 msgstr ""
22960
22961 #. type: verbatim
22962 #: ../resize/virt-resize.pod:179
22963 #, fuzzy, no-wrap
22964 #| msgid ""
22965 #| " ln-s target linkname\n"
22966 #| "\n"
22967 msgid ""
22968 " # virsh start guestname\n"
22969 "\n"
22970 msgstr ""
22971 " ln-s призначення назва_посилання\n"
22972 "\n"
22973
22974 #. type: textblock
22975 #: ../resize/virt-resize.pod:181
22976 msgid ""
22977 "and check that it still works.  See also the L</NOTES> section below for "
22978 "additional information."
22979 msgstr ""
22980
22981 #. type: =item
22982 #: ../resize/virt-resize.pod:184
22983 msgid "7. Resize LVs etc inside the guest"
22984 msgstr ""
22985
22986 #. type: textblock
22987 #: ../resize/virt-resize.pod:186
22988 msgid "(This can also be done offline using L<guestfish(1)>)"
22989 msgstr ""
22990
22991 #. type: textblock
22992 #: ../resize/virt-resize.pod:188
22993 msgid ""
22994 "Once the guest has booted you should see the new space available, at least "
22995 "for filesystems that virt-resize knows how to resize, and for PVs.  The user "
22996 "may need to resize LVs inside PVs, and also resize filesystem types that "
22997 "virt-resize does not know how to expand."
22998 msgstr ""
22999
23000 #. type: =head2
23001 #: ../resize/virt-resize.pod:195
23002 msgid "SHRINKING A VIRTUAL MACHINE DISK"
23003 msgstr ""
23004
23005 #. type: textblock
23006 #: ../resize/virt-resize.pod:197
23007 msgid ""
23008 "Shrinking is somewhat more complex than expanding, and only an overview is "
23009 "given here."
23010 msgstr ""
23011
23012 #. type: textblock
23013 #: ../resize/virt-resize.pod:200
23014 msgid ""
23015 "Firstly virt-resize will not attempt to shrink any partition content (PVs, "
23016 "filesystems).  The user has to shrink content before passing the disk image "
23017 "to virt-resize, and virt-resize will check that the content has been shrunk "
23018 "properly."
23019 msgstr ""
23020
23021 #. type: textblock
23022 #: ../resize/virt-resize.pod:205
23023 msgid "(Shrinking can also be done offline using L<guestfish(1)>)"
23024 msgstr ""
23025
23026 #. type: textblock
23027 #: ../resize/virt-resize.pod:207
23028 msgid ""
23029 "After shrinking PVs and filesystems, shut down the guest, and proceed with "
23030 "steps 3 and 4 above to allocate a new disk image."
23031 msgstr ""
23032
23033 #. type: textblock
23034 #: ../resize/virt-resize.pod:210
23035 msgid ""
23036 "Then run virt-resize with any of the I<--shrink> and/or I<--resize> options."
23037 msgstr ""
23038
23039 #. type: =head2
23040 #: ../resize/virt-resize.pod:213
23041 msgid "IGNORING OR DELETING PARTITIONS"
23042 msgstr ""
23043
23044 #. type: textblock
23045 #: ../resize/virt-resize.pod:215
23046 msgid ""
23047 "virt-resize also gives a convenient way to ignore or delete partitions when "
23048 "copying from the input disk to the output disk.  Ignoring a partition speeds "
23049 "up the copy where you don't care about the existing contents of a "
23050 "partition.  Deleting a partition removes it completely, but note that it "
23051 "also renumbers any partitions after the one which is deleted, which can "
23052 "leave some guests unbootable."
23053 msgstr ""
23054
23055 #. type: =head2
23056 #: ../resize/virt-resize.pod:222
23057 msgid "QCOW2 AND NON-SPARSE RAW FORMATS"
23058 msgstr ""
23059
23060 #. type: textblock
23061 #: ../resize/virt-resize.pod:224
23062 msgid ""
23063 "If the input disk is in qcow2 format, then you may prefer that the output is "
23064 "in qcow2 format as well.  Alternately, virt-resize can convert the format on "
23065 "the fly.  The output format is simply determined by the format of the empty "
23066 "output container that you provide.  Thus to create qcow2 output, use:"
23067 msgstr ""
23068
23069 #. type: verbatim
23070 #: ../resize/virt-resize.pod:230
23071 #, no-wrap
23072 msgid ""
23073 " qemu-img create [-c] -f qcow2 outdisk [size]\n"
23074 "\n"
23075 msgstr ""
23076
23077 #. type: textblock
23078 #: ../resize/virt-resize.pod:232
23079 msgid "instead of the truncate command (use I<-c> for a compressed disk)."
23080 msgstr ""
23081
23082 #. type: textblock
23083 #: ../resize/virt-resize.pod:234
23084 msgid "Similarly, to get non-sparse raw output use:"
23085 msgstr ""
23086
23087 #. type: verbatim
23088 #: ../resize/virt-resize.pod:236
23089 #, fuzzy, no-wrap
23090 #| msgid ""
23091 #| " fallocate path len\n"
23092 #| "\n"
23093 msgid ""
23094 " fallocate -l size outdisk\n"
23095 "\n"
23096 msgstr ""
23097 " fallocate шлях довжина\n"
23098 "\n"
23099
23100 #. type: textblock
23101 #: ../resize/virt-resize.pod:238
23102 msgid ""
23103 "(on older systems that don't have the L<fallocate(1)> command use C<dd if=/"
23104 "dev/zero of=outdisk bs=1M count=..>)"
23105 msgstr ""
23106
23107 #. type: textblock
23108 #: ../resize/virt-resize.pod:247 ../sparsify/virt-sparsify.pod:105
23109 msgid "Display help."
23110 msgstr ""
23111
23112 #. type: =item
23113 #: ../resize/virt-resize.pod:249
23114 msgid "B<-d>"
23115 msgstr ""
23116
23117 #. type: =item
23118 #: ../resize/virt-resize.pod:251 ../tools/virt-make-fs.pl:177
23119 #: ../tools/virt-win-reg.pl:120
23120 msgid "B<--debug>"
23121 msgstr "B<--debug>"
23122
23123 #. type: textblock
23124 #: ../resize/virt-resize.pod:253 ../tools/virt-win-reg.pl:122
23125 msgid "Enable debugging messages."
23126 msgstr ""
23127
23128 #. type: =item
23129 #: ../resize/virt-resize.pod:255
23130 #, fuzzy
23131 #| msgid "B<--no-dest-paths>"
23132 msgid "B<--delete part>"
23133 msgstr "B<--no-dest-paths>"
23134
23135 #. type: textblock
23136 #: ../resize/virt-resize.pod:257
23137 msgid ""
23138 "Delete the named partition.  It would be more accurate to describe this as "
23139 "\"don't copy it over\", since virt-resize doesn't do in-place changes and "
23140 "the original disk image is left intact."
23141 msgstr ""
23142
23143 #. type: textblock
23144 #: ../resize/virt-resize.pod:261
23145 msgid ""
23146 "Note that when you delete a partition, then anything contained in the "
23147 "partition is also deleted.  Furthermore, this causes any partitions that "
23148 "come after to be I<renumbered>, which can easily make your guest unbootable."
23149 msgstr ""
23150
23151 #. type: textblock
23152 #: ../resize/virt-resize.pod:266 ../resize/virt-resize.pod:327
23153 #: ../resize/virt-resize.pod:454 ../sparsify/virt-sparsify.pod:145
23154 msgid "You can give this option multiple times."
23155 msgstr ""
23156
23157 #. type: =item
23158 #: ../resize/virt-resize.pod:268
23159 #, fuzzy
23160 #| msgid "B<--partition>"
23161 msgid "B<--expand part>"
23162 msgstr "B<--partition>"
23163
23164 #. type: textblock
23165 #: ../resize/virt-resize.pod:270
23166 msgid ""
23167 "Expand the named partition so it uses up all extra space (space left over "
23168 "after any other resize changes that you request have been done)."
23169 msgstr ""
23170
23171 #. type: textblock
23172 #: ../resize/virt-resize.pod:273
23173 msgid ""
23174 "If virt-resize knows how, it will expand the direct content of the "
23175 "partition.  For example, if the partition is an LVM PV, it will expand the "
23176 "PV to fit (like calling L<pvresize(8)>).  Virt-resize leaves any other "
23177 "content it doesn't know about alone."
23178 msgstr ""
23179
23180 #. type: textblock
23181 #: ../resize/virt-resize.pod:278
23182 msgid "Currently virt-resize can resize:"
23183 msgstr ""
23184
23185 #. type: textblock
23186 #: ../resize/virt-resize.pod:284
23187 msgid "ext2, ext3 and ext4 filesystems."
23188 msgstr ""
23189
23190 #. type: textblock
23191 #: ../resize/virt-resize.pod:288
23192 msgid "NTFS filesystems, if libguestfs was compiled with support for NTFS."
23193 msgstr ""
23194
23195 #. type: textblock
23196 #: ../resize/virt-resize.pod:290
23197 msgid ""
23198 "The filesystem must have been shut down consistently last time it was used.  "
23199 "Additionally, L<ntfsresize(8)> marks the resized filesystem as requiring a "
23200 "consistency check, so at the first boot after resizing Windows will check "
23201 "the disk."
23202 msgstr ""
23203
23204 #. type: textblock
23205 #: ../resize/virt-resize.pod:297
23206 msgid ""
23207 "LVM PVs (physical volumes).  virt-resize does not usually resize anything "
23208 "inside the PV, but see the I<--LV-expand> option.  The user could also "
23209 "resize LVs as desired after boot."
23210 msgstr ""
23211
23212 #. type: textblock
23213 #: ../resize/virt-resize.pod:303
23214 msgid "Btrfs filesystems, if libguestfs was compiled with support for btrfs."
23215 msgstr ""
23216
23217 #. type: textblock
23218 #: ../resize/virt-resize.pod:307 ../resize/virt-resize.pod:482
23219 msgid "Note that you cannot use I<--expand> and I<--shrink> together."
23220 msgstr ""
23221
23222 #. type: =item
23223 #: ../resize/virt-resize.pod:309 ../sparsify/virt-sparsify.pod:125
23224 #: ../tools/virt-list-filesystems.pl:91 ../tools/virt-list-partitions.pl:92
23225 #: ../tools/virt-tar.pl:141 ../tools/virt-win-reg.pl:142
23226 msgid "B<--format> raw"
23227 msgstr ""
23228
23229 #. type: textblock
23230 #: ../resize/virt-resize.pod:311 ../sparsify/virt-sparsify.pod:129
23231 msgid ""
23232 "Specify the format of the input disk image.  If this flag is not given then "
23233 "it is auto-detected from the image itself."
23234 msgstr ""
23235
23236 #. type: textblock
23237 #: ../resize/virt-resize.pod:317
23238 msgid ""
23239 "Note that this option I<does not> affect the output format.  See L</QCOW2 "
23240 "AND NON-SPARSE RAW FORMATS>."
23241 msgstr ""
23242
23243 #. type: =item
23244 #: ../resize/virt-resize.pod:320
23245 #, fuzzy
23246 #| msgid "B<--format>"
23247 msgid "B<--ignore part>"
23248 msgstr "B<--format>"
23249
23250 #. type: textblock
23251 #: ../resize/virt-resize.pod:322
23252 msgid ""
23253 "Ignore the named partition.  Effectively this means the partition is "
23254 "allocated on the destination disk, but the content is not copied across from "
23255 "the source disk.  The content of the partition will be blank (all zero "
23256 "bytes)."
23257 msgstr ""
23258
23259 #. type: =item
23260 #: ../resize/virt-resize.pod:329
23261 msgid "B<--LV-expand logvol>"
23262 msgstr ""
23263
23264 #. type: textblock
23265 #: ../resize/virt-resize.pod:331
23266 msgid ""
23267 "This takes the logical volume and, as a final step, expands it to fill all "
23268 "the space available in its volume group.  A typical usage, assuming a Linux "
23269 "guest with a single PV C</dev/sda2> and a root device called C</dev/vg_guest/"
23270 "lv_root> would be:"
23271 msgstr ""
23272
23273 #. type: verbatim
23274 #: ../resize/virt-resize.pod:336
23275 #, no-wrap
23276 msgid ""
23277 " virt-resize indisk outdisk \\\n"
23278 "   --expand /dev/sda2 --LV-expand /dev/vg_guest/lv_root\n"
23279 "\n"
23280 msgstr ""
23281
23282 #. type: textblock
23283 #: ../resize/virt-resize.pod:339
23284 msgid ""
23285 "This would first expand the partition (and PV), and then expand the root "
23286 "device to fill the extra space in the PV."
23287 msgstr ""
23288
23289 #. type: textblock
23290 #: ../resize/virt-resize.pod:342
23291 msgid ""
23292 "The contents of the LV are also resized if virt-resize knows how to do "
23293 "that.  You can stop virt-resize from trying to expand the content by using "
23294 "the option I<--no-expand-content>."
23295 msgstr ""
23296
23297 #. type: textblock
23298 #: ../resize/virt-resize.pod:346
23299 msgid "Use L<virt-filesystems(1)> to list the filesystems in the guest."
23300 msgstr ""
23301
23302 #. type: textblock
23303 #: ../resize/virt-resize.pod:348
23304 msgid ""
23305 "You can give this option multiple times, I<but> it doesn't make sense to do "
23306 "this unless the logical volumes you specify are all in different volume "
23307 "groups."
23308 msgstr ""
23309
23310 #. type: =item
23311 #: ../resize/virt-resize.pod:352 ../sparsify/virt-sparsify.pod:147
23312 #, fuzzy
23313 #| msgid "B<-h> | B<--human-readable>"
23314 msgid "B<--machine-readable>"
23315 msgstr "B<-h> | B<--human-readable>"
23316
23317 #. type: textblock
23318 #: ../resize/virt-resize.pod:354 ../sparsify/virt-sparsify.pod:149
23319 msgid ""
23320 "This option is used to make the output more machine friendly when being "
23321 "parsed by other programs.  See L</MACHINE READABLE OUTPUT> below."
23322 msgstr ""
23323
23324 #. type: =item
23325 #: ../resize/virt-resize.pod:360
23326 #, fuzzy
23327 #| msgid "B<--debug>"
23328 msgid "B<--dryrun>"
23329 msgstr "B<--debug>"
23330
23331 #. type: textblock
23332 #: ../resize/virt-resize.pod:362
23333 msgid "Print a summary of what would be done, but don't do anything."
23334 msgstr ""
23335
23336 #. type: =item
23337 #: ../resize/virt-resize.pod:364
23338 msgid "B<--no-copy-boot-loader>"
23339 msgstr ""
23340
23341 #. type: textblock
23342 #: ../resize/virt-resize.pod:366
23343 msgid ""
23344 "By default, virt-resize copies over some sectors at the start of the disk "
23345 "(up to the beginning of the first partition).  Commonly these sectors "
23346 "contain the Master Boot Record (MBR) and the boot loader, and are required "
23347 "in order for the guest to boot correctly."
23348 msgstr ""
23349
23350 #. type: textblock
23351 #: ../resize/virt-resize.pod:371
23352 msgid ""
23353 "If you specify this flag, then this initial copy is not done.  You may need "
23354 "to reinstall the boot loader in this case."
23355 msgstr ""
23356
23357 #. type: =item
23358 #: ../resize/virt-resize.pod:374
23359 #, fuzzy
23360 #| msgid "B<--partition>"
23361 msgid "B<--no-extra-partition>"
23362 msgstr "B<--partition>"
23363
23364 #. type: textblock
23365 #: ../resize/virt-resize.pod:376
23366 msgid ""
23367 "By default, virt-resize creates an extra partition if there is any extra, "
23368 "unused space after all resizing has happened.  Use this option to prevent "
23369 "the extra partition from being created.  If you do this then the extra space "
23370 "will be inaccessible until you run fdisk, parted, or some other partitioning "
23371 "tool in the guest."
23372 msgstr ""
23373
23374 #. type: textblock
23375 #: ../resize/virt-resize.pod:382
23376 msgid ""
23377 "Note that if the surplus space is smaller than 10 MB, no extra partition "
23378 "will be created."
23379 msgstr ""
23380
23381 #. type: =item
23382 #: ../resize/virt-resize.pod:385
23383 #, fuzzy
23384 #| msgid "B<--no-dest-paths>"
23385 msgid "B<--no-expand-content>"
23386 msgstr "B<--no-dest-paths>"
23387
23388 #. type: textblock
23389 #: ../resize/virt-resize.pod:387
23390 msgid ""
23391 "By default, virt-resize will try to expand the direct contents of "
23392 "partitions, if it knows how (see I<--expand> option above)."
23393 msgstr ""
23394
23395 #. type: textblock
23396 #: ../resize/virt-resize.pod:390
23397 msgid ""
23398 "If you give the I<--no-expand-content> option then virt-resize will not "
23399 "attempt this."
23400 msgstr ""
23401
23402 #. type: =item
23403 #: ../resize/virt-resize.pod:393
23404 #, fuzzy
23405 #| msgid "ntfsresize-size"
23406 msgid "B<--ntfsresize-force>"
23407 msgstr "ntfsresize-size"
23408
23409 #. type: textblock
23410 #: ../resize/virt-resize.pod:395
23411 msgid ""
23412 "Pass the I<--force> option to L<ntfsresize(8)>, allowing resizing even if "
23413 "the NTFS disk is marked as needing a consistency check.  You have to use "
23414 "this option if you want to resize a Windows guest multiple times without "
23415 "booting into Windows between each resize."
23416 msgstr ""
23417
23418 #. type: =item
23419 #: ../resize/virt-resize.pod:401
23420 #, fuzzy
23421 #| msgid "B<--format>"
23422 msgid "B<--output-format> raw"
23423 msgstr "B<--format>"
23424
23425 #. type: textblock
23426 #: ../resize/virt-resize.pod:403
23427 msgid ""
23428 "Specify the format of the output disk image.  If this flag is not given then "
23429 "it is auto-detected from the image itself."
23430 msgstr ""
23431
23432 #. type: textblock
23433 #: ../resize/virt-resize.pod:409
23434 msgid ""
23435 "Note that this option I<does not create> the output format.  This option "
23436 "just tells libguestfs what it is so it doesn't try to guess it.  You still "
23437 "need to create the output disk with the right format.  See L</QCOW2 AND NON-"
23438 "SPARSE RAW FORMATS>."
23439 msgstr ""
23440
23441 #. type: textblock
23442 #: ../resize/virt-resize.pod:418
23443 msgid "Don't print the summary."
23444 msgstr ""
23445
23446 #. type: =item
23447 #: ../resize/virt-resize.pod:420
23448 #, fuzzy
23449 #| msgid "B<part_size>"
23450 msgid "B<--resize part=size>"
23451 msgstr "B<part_size>"
23452
23453 #. type: textblock
23454 #: ../resize/virt-resize.pod:422
23455 msgid ""
23456 "Resize the named partition (expanding or shrinking it) so that it has the "
23457 "given size."
23458 msgstr ""
23459
23460 #. type: textblock
23461 #: ../resize/virt-resize.pod:425
23462 msgid ""
23463 "C<size> can be expressed as an absolute number followed by b/K/M/G to mean "
23464 "bytes, Kilobytes, Megabytes, or Gigabytes; or as a percentage of the current "
23465 "size; or as a relative number or percentage.  For example:"
23466 msgstr ""
23467
23468 #. type: verbatim
23469 #: ../resize/virt-resize.pod:431
23470 #, fuzzy, no-wrap
23471 #| msgid ""
23472 #| " hexedit /dev/sda 1M\n"
23473 #| "\n"
23474 msgid ""
23475 " --resize /dev/sda2=10G\n"
23476 "\n"
23477 msgstr ""
23478 " hexedit /dev/sda 1M\n"
23479 "\n"
23480
23481 #. type: verbatim
23482 #: ../resize/virt-resize.pod:433
23483 #, fuzzy, no-wrap
23484 #| msgid ""
23485 #| " pvresize device\n"
23486 #| "\n"
23487 msgid ""
23488 " --resize /dev/sda4=90%\n"
23489 "\n"
23490 msgstr ""
23491 " pvresize пристрій\n"
23492 "\n"
23493
23494 #. type: verbatim
23495 #: ../resize/virt-resize.pod:435
23496 #, fuzzy, no-wrap
23497 #| msgid ""
23498 #| " hexedit /dev/sda 1M\n"
23499 #| "\n"
23500 msgid ""
23501 " --resize /dev/sda2=+1G\n"
23502 "\n"
23503 msgstr ""
23504 " hexedit /dev/sda 1M\n"
23505 "\n"
23506
23507 #. type: verbatim
23508 #: ../resize/virt-resize.pod:437
23509 #, fuzzy, no-wrap
23510 #| msgid ""
23511 #| " hexedit /dev/sda 1M\n"
23512 #| "\n"
23513 msgid ""
23514 " --resize /dev/sda2=-200M\n"
23515 "\n"
23516 msgstr ""
23517 " hexedit /dev/sda 1M\n"
23518 "\n"
23519
23520 #. type: verbatim
23521 #: ../resize/virt-resize.pod:439
23522 #, fuzzy, no-wrap
23523 #| msgid ""
23524 #| " hexedit /dev/sda 1M\n"
23525 #| "\n"
23526 msgid ""
23527 " --resize /dev/sda1=+128K\n"
23528 "\n"
23529 msgstr ""
23530 " hexedit /dev/sda 1M\n"
23531 "\n"
23532
23533 #. type: verbatim
23534 #: ../resize/virt-resize.pod:441
23535 #, fuzzy, no-wrap
23536 #| msgid ""
23537 #| " hexedit /dev/sda 1M\n"
23538 #| "\n"
23539 msgid ""
23540 " --resize /dev/sda1=+10%\n"
23541 "\n"
23542 msgstr ""
23543 " hexedit /dev/sda 1M\n"
23544 "\n"
23545
23546 #. type: verbatim
23547 #: ../resize/virt-resize.pod:443
23548 #, fuzzy, no-wrap
23549 #| msgid ""
23550 #| " hexedit /dev/sda 1M\n"
23551 #| "\n"
23552 msgid ""
23553 " --resize /dev/sda1=-10%\n"
23554 "\n"
23555 msgstr ""
23556 " hexedit /dev/sda 1M\n"
23557 "\n"
23558
23559 #. type: textblock
23560 #: ../resize/virt-resize.pod:445
23561 msgid ""
23562 "You can increase the size of any partition.  Virt-resize will expand the "
23563 "direct content of the partition if it knows how (see I<--expand> below)."
23564 msgstr ""
23565
23566 #. type: textblock
23567 #: ../resize/virt-resize.pod:449
23568 msgid ""
23569 "You can only I<decrease> the size of partitions that contain filesystems or "
23570 "PVs which have already been shrunk.  Virt-resize will check this has been "
23571 "done before proceeding, or else will print an error (see also I<--resize-"
23572 "force>)."
23573 msgstr ""
23574
23575 #. type: =item
23576 #: ../resize/virt-resize.pod:456
23577 msgid "B<--resize-force part=size>"
23578 msgstr ""
23579
23580 #. type: textblock
23581 #: ../resize/virt-resize.pod:458
23582 msgid ""
23583 "This is the same as I<--resize> except that it will let you decrease the "
23584 "size of any partition.  Generally this means you will lose any data which "
23585 "was at the end of the partition you shrink, but you may not care about that "
23586 "(eg. if shrinking an unused partition, or if you can easily recreate it such "
23587 "as a swap partition)."
23588 msgstr ""
23589
23590 #. type: textblock
23591 #: ../resize/virt-resize.pod:464
23592 msgid "See also the I<--ignore> option."
23593 msgstr ""
23594
23595 #. type: =item
23596 #: ../resize/virt-resize.pod:466
23597 #, fuzzy
23598 #| msgid "B<--partition>"
23599 msgid "B<--shrink part>"
23600 msgstr "B<--partition>"
23601
23602 #. type: textblock
23603 #: ../resize/virt-resize.pod:468
23604 msgid ""
23605 "Shrink the named partition until the overall disk image fits in the "
23606 "destination.  The named partition B<must> contain a filesystem or PV which "
23607 "has already been shrunk using another tool (eg. L<guestfish(1)> or other "
23608 "online tools).  Virt-resize will check this and give an error if it has not "
23609 "been done."
23610 msgstr ""
23611
23612 #. type: textblock
23613 #: ../resize/virt-resize.pod:474
23614 msgid ""
23615 "The amount by which the overall disk must be shrunk (after carrying out all "
23616 "other operations requested by the user) is called the \"deficit\".  For "
23617 "example, a straight copy (assume no other operations)  from a 5GB disk image "
23618 "to a 4GB disk image results in a 1GB deficit.  In this case, virt-resize "
23619 "would give an error unless the user specified a partition to shrink and that "
23620 "partition had more than a gigabyte of free space."
23621 msgstr ""
23622
23623 #. type: =head1
23624 #: ../resize/virt-resize.pod:492 ../sparsify/virt-sparsify.pod:177
23625 msgid "MACHINE READABLE OUTPUT"
23626 msgstr ""
23627
23628 #. type: textblock
23629 #: ../resize/virt-resize.pod:494
23630 msgid ""
23631 "The I<--machine-readable> option can be used to make the output more machine "
23632 "friendly, which is useful when calling virt-resize from other programs, GUIs "
23633 "etc."
23634 msgstr ""
23635
23636 #. type: textblock
23637 #: ../resize/virt-resize.pod:498 ../sparsify/virt-sparsify.pod:183
23638 msgid "There are two ways to use this option."
23639 msgstr ""
23640
23641 #. type: textblock
23642 #: ../resize/virt-resize.pod:500
23643 msgid ""
23644 "Firstly use the option on its own to query the capabilities of the virt-"
23645 "resize binary.  Typical output looks like this:"
23646 msgstr ""
23647
23648 #. type: verbatim
23649 #: ../resize/virt-resize.pod:503
23650 #, no-wrap
23651 msgid ""
23652 " $ virt-resize --machine-readable\n"
23653 " virt-resize\n"
23654 " ntfsresize-force\n"
23655 " 32bitok\n"
23656 " ntfs\n"
23657 " btrfs\n"
23658 "\n"
23659 msgstr ""
23660
23661 #. type: textblock
23662 #: ../resize/virt-resize.pod:510 ../sparsify/virt-sparsify.pod:193
23663 msgid ""
23664 "A list of features is printed, one per line, and the program exits with "
23665 "status 0."
23666 msgstr ""
23667
23668 #. type: textblock
23669 #: ../resize/virt-resize.pod:513 ../sparsify/virt-sparsify.pod:196
23670 msgid ""
23671 "Secondly use the option in conjunction with other options to make the "
23672 "regular program output more machine friendly."
23673 msgstr ""
23674
23675 #. type: textblock
23676 #: ../resize/virt-resize.pod:516 ../sparsify/virt-sparsify.pod:199
23677 msgid "At the moment this means:"
23678 msgstr ""
23679
23680 #. type: textblock
23681 #: ../resize/virt-resize.pod:522 ../sparsify/virt-sparsify.pod:205
23682 msgid ""
23683 "Progress bar messages can be parsed from stdout by looking for this regular "
23684 "expression:"
23685 msgstr ""
23686
23687 #. type: verbatim
23688 #: ../resize/virt-resize.pod:525 ../sparsify/virt-sparsify.pod:208
23689 #, no-wrap
23690 msgid ""
23691 " ^[0-9]+/[0-9]+$\n"
23692 "\n"
23693 msgstr ""
23694
23695 #. type: textblock
23696 #: ../resize/virt-resize.pod:529 ../sparsify/virt-sparsify.pod:212
23697 msgid ""
23698 "The calling program should treat messages sent to stdout (except for "
23699 "progress bar messages) as status messages.  They can be logged and/or "
23700 "displayed to the user."
23701 msgstr ""
23702
23703 #. type: textblock
23704 #: ../resize/virt-resize.pod:535
23705 msgid ""
23706 "The calling program should treat messages sent to stderr as error messages.  "
23707 "In addition, virt-resize exits with a non-zero status code if there was a "
23708 "fatal error."
23709 msgstr ""
23710
23711 #. type: textblock
23712 #: ../resize/virt-resize.pod:541
23713 msgid ""
23714 "Versions of the program prior to 1.13.9 did not support the I<--machine-"
23715 "readable> option and will return an error."
23716 msgstr ""
23717
23718 #. type: =head2
23719 #: ../resize/virt-resize.pod:546
23720 msgid "\"Partition 1 does not end on cylinder boundary.\""
23721 msgstr ""
23722
23723 #. type: textblock
23724 #: ../resize/virt-resize.pod:548
23725 msgid ""
23726 "Virt-resize aligns partitions to multiples of 64 sectors.  Usually this "
23727 "means the partitions will not be aligned to the ancient CHS geometry.  "
23728 "However CHS geometry is meaningless for disks manufactured since the early "
23729 "1990s, and doubly so for virtual hard drives.  Alignment of partitions to "
23730 "cylinders is not required by any modern operating system."
23731 msgstr ""
23732
23733 #. type: =head2
23734 #: ../resize/virt-resize.pod:555
23735 msgid "RESIZING WINDOWS VIRTUAL MACHINES"
23736 msgstr ""
23737
23738 #. type: textblock
23739 #: ../resize/virt-resize.pod:557
23740 msgid ""
23741 "In Windows Vista and later versions, Microsoft switched to using a separate "
23742 "boot partition.  In these VMs, typically C</dev/sda1> is the boot partition "
23743 "and C</dev/sda2> is the main (C:) drive.  We have not had any luck resizing "
23744 "the boot partition.  Doing so seems to break the guest completely.  However "
23745 "expanding the second partition (ie. C: drive) should work."
23746 msgstr ""
23747
23748 #. type: textblock
23749 #: ../resize/virt-resize.pod:564
23750 msgid ""
23751 "Windows may initiate a lengthy \"chkdsk\" on first boot after a resize, if "
23752 "NTFS partitions have been expanded.  This is just a safety check and (unless "
23753 "it find errors) is nothing to worry about."
23754 msgstr ""
23755
23756 #. type: =head2
23757 #: ../resize/virt-resize.pod:568
23758 msgid "GUEST BOOT STUCK AT \"GRUB\""
23759 msgstr ""
23760
23761 #. type: textblock
23762 #: ../resize/virt-resize.pod:570
23763 msgid ""
23764 "If a Linux guest does not boot after resizing, and the boot is stuck after "
23765 "printing C<GRUB> on the console, try reinstalling grub.  This sometimes "
23766 "happens on older (RHEL 5-era) guests, for reasons we don't fully understand, "
23767 "although we think is to do with partition alignment."
23768 msgstr ""
23769
23770 #. type: verbatim
23771 #: ../resize/virt-resize.pod:575
23772 #, no-wrap
23773 msgid ""
23774 " guestfish -i -a newdisk\n"
23775 " ><fs> cat /boot/grub/device.map\n"
23776 " # check the contents of this file are sensible or\n"
23777 " # edit the file if necessary\n"
23778 " ><fs> grub-install / /dev/vda\n"
23779 " ><fs> exit\n"
23780 "\n"
23781 msgstr ""
23782
23783 #. type: textblock
23784 #: ../resize/virt-resize.pod:582
23785 msgid ""
23786 "For more flexible guest reconfiguration, including if you need to specify "
23787 "other parameters to grub-install, use L<virt-rescue(1)>."
23788 msgstr ""
23789
23790 #. type: =head1
23791 #: ../resize/virt-resize.pod:585
23792 msgid "ALTERNATIVE TOOLS"
23793 msgstr ""
23794
23795 #. type: textblock
23796 #: ../resize/virt-resize.pod:587
23797 msgid ""
23798 "There are several proprietary tools for resizing partitions.  We won't "
23799 "mention any here."
23800 msgstr ""
23801
23802 #. type: textblock
23803 #: ../resize/virt-resize.pod:590
23804 msgid ""
23805 "L<parted(8)> and its graphical shell gparted can do some types of resizing "
23806 "operations on disk images.  They can resize and move partitions, but I don't "
23807 "think they can do anything with the contents, and they certainly don't "
23808 "understand LVM."
23809 msgstr ""
23810
23811 #. type: textblock
23812 #: ../resize/virt-resize.pod:595
23813 msgid ""
23814 "L<guestfish(1)> can do everything that virt-resize can do and a lot more, "
23815 "but at a much lower level.  You will probably end up hand-calculating sector "
23816 "offsets, which is something that virt-resize was designed to avoid.  If you "
23817 "want to see the guestfish-equivalent commands that virt-resize runs, use the "
23818 "I<--debug> flag."
23819 msgstr ""
23820
23821 #. type: textblock
23822 #: ../resize/virt-resize.pod:615
23823 msgid ""
23824 "L<virt-filesystems(1)>, L<virt-df(1)>, L<guestfs(3)>, L<guestfish(1)>, L<lvm"
23825 "(8)>, L<pvresize(8)>, L<lvresize(8)>, L<resize2fs(8)>, L<ntfsresize(8)>, "
23826 "L<btrfs(8)>, L<virsh(1)>, L<parted(8)>, L<truncate(1)>, L<fallocate(1)>, "
23827 "L<grub(8)>, L<grub-install(8)>, L<virt-rescue(1)>, L<virt-sparsify(1)>, "
23828 "L<http://libguestfs.org/>."
23829 msgstr ""
23830
23831 #. type: textblock
23832 #: ../ruby/examples/guestfs-ruby.pod:5
23833 msgid "guestfs-ruby - How to use libguestfs from Ruby"
23834 msgstr ""
23835
23836 #. type: verbatim
23837 #: ../ruby/examples/guestfs-ruby.pod:9
23838 #, no-wrap
23839 msgid ""
23840 " require 'guestfs'\n"
23841 " g = Guestfs::Guestfs.new()\n"
23842 " g.add_drive_opts(\"disk.img\",\n"
23843 "                  :readonly => 1, :format => \"raw\")\n"
23844 " g.launch()\n"
23845 "\n"
23846 msgstr ""
23847
23848 #. type: textblock
23849 #: ../ruby/examples/guestfs-ruby.pod:17
23850 msgid ""
23851 "This manual page documents how to call libguestfs from the Ruby programming "
23852 "language.  This page just documents the differences from the C API and gives "
23853 "some examples.  If you are not familiar with using libguestfs, you also need "
23854 "to read L<guestfs(3)>."
23855 msgstr ""
23856
23857 #. type: textblock
23858 #: ../ruby/examples/guestfs-ruby.pod:24
23859 msgid ""
23860 "Errors from libguestfs functions are mapped into the C<Error> exception.  "
23861 "This has a single parameter which is the error message (a string)."
23862 msgstr ""
23863
23864 #. type: textblock
23865 #: ../ruby/examples/guestfs-ruby.pod:38
23866 #, fuzzy
23867 #| msgid ""
23868 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23869 #| "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::"
23870 #| "Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23871 msgid ""
23872 "L<guestfs(3)>, L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java"
23873 "(3)>, L<guestfs-ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, "
23874 "L<guestfs-recipes(1)>, L<http://libguestfs.org/>."
23875 msgstr ""
23876 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
23877 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
23878 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
23879
23880 #. type: textblock
23881 #: ../sparsify/virt-sparsify.pod:5
23882 msgid "virt-sparsify - Make a virtual machine disk sparse"
23883 msgstr ""
23884
23885 #. type: verbatim
23886 #: ../sparsify/virt-sparsify.pod:9
23887 #, fuzzy, no-wrap
23888 #| msgid ""
23889 #| " virt-list-partitions [--options] disk.img [disk.img ...]\n"
23890 #| "\n"
23891 msgid ""
23892 " virt-sparsify [--options] indisk outdisk\n"
23893 "\n"
23894 msgstr ""
23895 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
23896 "\n"
23897
23898 #. type: textblock
23899 #: ../sparsify/virt-sparsify.pod:13
23900 msgid ""
23901 "Virt-sparsify is a tool which can make a virtual machine disk (or any disk "
23902 "image) sparse a.k.a. thin-provisioned.  This means that free space within "
23903 "the disk image can be converted back to free space on the host."
23904 msgstr ""
23905
23906 #. type: textblock
23907 #: ../sparsify/virt-sparsify.pod:18
23908 msgid ""
23909 "Virt-sparsify can locate and sparsify free space in most filesystems (eg. "
23910 "ext2/3/4, btrfs, NTFS, etc.), and also in LVM physical volumes."
23911 msgstr ""
23912
23913 #. type: textblock
23914 #: ../sparsify/virt-sparsify.pod:21
23915 msgid ""
23916 "Virt-sparsify can also convert between some disk formats, for example "
23917 "converting a raw disk image to a thin-provisioned qcow2 image."
23918 msgstr ""
23919
23920 #. type: textblock
23921 #: ../sparsify/virt-sparsify.pod:24
23922 msgid ""
23923 "Virt-sparsify can operate on any disk image, not just ones from virtual "
23924 "machines.  If a virtual machine has more than one attached disk, you must "
23925 "sparsify each one separately."
23926 msgstr ""
23927
23928 #. type: =head2
23929 #: ../sparsify/virt-sparsify.pod:28
23930 msgid "IMPORTANT LIMITATIONS"
23931 msgstr ""
23932
23933 #. type: textblock
23934 #: ../sparsify/virt-sparsify.pod:34
23935 msgid ""
23936 "Virt-sparsify does not do in-place modifications.  It copies from a source "
23937 "image to a destination image, leaving the source unchanged.  I<Check that "
23938 "the sparsification was successful before deleting the source image>."
23939 msgstr ""
23940
23941 #. type: textblock
23942 #: ../sparsify/virt-sparsify.pod:41
23943 msgid "The virtual machine I<must be shut down> before using this tool."
23944 msgstr ""
23945
23946 #. type: textblock
23947 #: ../sparsify/virt-sparsify.pod:45
23948 msgid ""
23949 "Virt-sparsify may require up to 2x the virtual size of the source disk image "
23950 "(1 temporary copy + 1 destination image).  This is in the worst case and "
23951 "usually much less space is required."
23952 msgstr ""
23953
23954 #. type: textblock
23955 #: ../sparsify/virt-sparsify.pod:51
23956 msgid ""
23957 "Virt-sparsify cannot resize disk images.  To do that, use L<virt-resize(1)>."
23958 msgstr ""
23959
23960 #. type: textblock
23961 #: ../sparsify/virt-sparsify.pod:56
23962 msgid "Virt-sparsify cannot handle encrypted disks."
23963 msgstr ""
23964
23965 #. type: textblock
23966 #: ../sparsify/virt-sparsify.pod:60
23967 msgid ""
23968 "Virt-sparsify cannot yet sparsify the space between partitions.  Note that "
23969 "this space is often used for critical items like bootloaders so it's not "
23970 "really unused."
23971 msgstr ""
23972
23973 #. type: textblock
23974 #: ../sparsify/virt-sparsify.pod:66
23975 msgid ""
23976 "Virt-sparsify does not yet know how to sparsify swapspace.  It is not safe "
23977 "to do this unless we can be sure there is no hibernation data, so at the "
23978 "moment swap partitions are ignored."
23979 msgstr ""
23980
23981 #. type: textblock
23982 #: ../sparsify/virt-sparsify.pod:72
23983 msgid ""
23984 "You may also want to read the manual pages for the associated tools L<virt-"
23985 "filesystems(1)> and L<virt-df(1)> before starting."
23986 msgstr ""
23987
23988 #. type: textblock
23989 #: ../sparsify/virt-sparsify.pod:77
23990 msgid "Typical usage is:"
23991 msgstr ""
23992
23993 #. type: verbatim
23994 #: ../sparsify/virt-sparsify.pod:79
23995 #, no-wrap
23996 msgid ""
23997 " virt-sparsify indisk outdisk\n"
23998 "\n"
23999 msgstr ""
24000
24001 #. type: textblock
24002 #: ../sparsify/virt-sparsify.pod:81
24003 msgid ""
24004 "which copies C<indisk> to C<outdisk>, making the output sparse.  C<outdisk> "
24005 "is created, or overwritten if it already exists.  The format of the input "
24006 "disk is detected (eg. qcow2) and the same format is used for the output disk."
24007 msgstr ""
24008
24009 #. type: textblock
24010 #: ../sparsify/virt-sparsify.pod:86
24011 msgid "To convert between formats, use the I<--convert> option:"
24012 msgstr ""
24013
24014 #. type: verbatim
24015 #: ../sparsify/virt-sparsify.pod:88
24016 #, no-wrap
24017 msgid ""
24018 " virt-sparsify disk.raw --convert qcow2 disk.qcow2\n"
24019 "\n"
24020 msgstr ""
24021
24022 #. type: textblock
24023 #: ../sparsify/virt-sparsify.pod:90
24024 msgid ""
24025 "Virt-sparsify tries to zero and sparsify free space on every filesystem it "
24026 "can find within the source disk image.  You can get it to ignore (don't zero "
24027 "free space on) certain filesystems by doing:"
24028 msgstr ""
24029
24030 #. type: verbatim
24031 #: ../sparsify/virt-sparsify.pod:94
24032 #, no-wrap
24033 msgid ""
24034 " virt-sparsify --ignore /dev/sda1 indisk outdisk\n"
24035 "\n"
24036 msgstr ""
24037
24038 #. type: textblock
24039 #: ../sparsify/virt-sparsify.pod:96
24040 msgid ""
24041 "See L<virt-filesystems(1)> to get a list of filesystems within a disk image."
24042 msgstr ""
24043
24044 #. type: =item
24045 #: ../sparsify/virt-sparsify.pod:107
24046 #, fuzzy
24047 #| msgid "B<--connect URI>"
24048 msgid "B<--convert> raw"
24049 msgstr "B<--connect адреса>"
24050
24051 #. type: =item
24052 #: ../sparsify/virt-sparsify.pod:109
24053 #, fuzzy
24054 #| msgid "B<--format=raw|qcow2|..>"
24055 msgid "B<--convert> qcow2"
24056 msgstr "B<--format=raw|qcow2|..>"
24057
24058 #. type: =item
24059 #: ../sparsify/virt-sparsify.pod:111
24060 msgid "B<--convert> [other formats]"
24061 msgstr ""
24062
24063 #. type: textblock
24064 #: ../sparsify/virt-sparsify.pod:113
24065 msgid ""
24066 "Use C<output-format> as the format for the destination image.  If this is "
24067 "not specified, then the input format is used."
24068 msgstr ""
24069
24070 #. type: textblock
24071 #: ../sparsify/virt-sparsify.pod:116
24072 msgid "Supported and known-working output formats are: C<raw>, C<qcow2>."
24073 msgstr ""
24074
24075 #. type: textblock
24076 #: ../sparsify/virt-sparsify.pod:118
24077 msgid ""
24078 "You can also use any format supported by the L<qemu-img(1)> program, eg. "
24079 "C<vdi> or C<vmdk>, but support for other formats is reliant on qemu."
24080 msgstr ""
24081
24082 #. type: textblock
24083 #: ../sparsify/virt-sparsify.pod:122
24084 msgid ""
24085 "Specifying the I<--convert> option is usually a good idea, because then virt-"
24086 "sparsify doesn't need to try to guess the input format."
24087 msgstr ""
24088
24089 #. type: =item
24090 #: ../sparsify/virt-sparsify.pod:127
24091 #, fuzzy
24092 #| msgid "B<--format=raw|qcow2|..>"
24093 msgid "B<--format> qcow2"
24094 msgstr "B<--format=raw|qcow2|..>"
24095
24096 #. type: =item
24097 #: ../sparsify/virt-sparsify.pod:135
24098 #, fuzzy
24099 #| msgid "list-filesystems"
24100 msgid "B<--ignore> filesystem"
24101 msgstr "list-filesystems"
24102
24103 #. type: =item
24104 #: ../sparsify/virt-sparsify.pod:137
24105 #, fuzzy
24106 #| msgid "B<--verbose>"
24107 msgid "B<--ignore> volgroup"
24108 msgstr "B<--verbose>"
24109
24110 #. type: textblock
24111 #: ../sparsify/virt-sparsify.pod:139
24112 msgid ""
24113 "Ignore the named filesystem.  Free space on the filesystem will not be "
24114 "zeroed, but existing blocks of zeroes will still be sparsified."
24115 msgstr ""
24116
24117 #. type: textblock
24118 #: ../sparsify/virt-sparsify.pod:142
24119 msgid ""
24120 "In the second form, this ignores the named volume group.  Use the volume "
24121 "group name without the C</dev/> prefix, eg. I<--ignore vg_foo>"
24122 msgstr ""
24123
24124 #. type: textblock
24125 #: ../sparsify/virt-sparsify.pod:157
24126 msgid "This disables progress bars and other unnecessary output."
24127 msgstr ""
24128
24129 #. type: textblock
24130 #: ../sparsify/virt-sparsify.pod:179
24131 msgid ""
24132 "The I<--machine-readable> option can be used to make the output more machine "
24133 "friendly, which is useful when calling virt-sparsify from other programs, "
24134 "GUIs etc."
24135 msgstr ""
24136
24137 #. type: textblock
24138 #: ../sparsify/virt-sparsify.pod:185
24139 msgid ""
24140 "Firstly use the option on its own to query the capabilities of the virt-"
24141 "sparsify binary.  Typical output looks like this:"
24142 msgstr ""
24143
24144 #. type: verbatim
24145 #: ../sparsify/virt-sparsify.pod:188
24146 #, no-wrap
24147 msgid ""
24148 " $ virt-sparsify --machine-readable\n"
24149 " virt-sparsify\n"
24150 " ntfs\n"
24151 " btrfs\n"
24152 "\n"
24153 msgstr ""
24154
24155 #. type: textblock
24156 #: ../sparsify/virt-sparsify.pod:218
24157 msgid ""
24158 "The calling program should treat messages sent to stderr as error messages.  "
24159 "In addition, virt-sparsify exits with a non-zero status code if there was a "
24160 "fatal error."
24161 msgstr ""
24162
24163 #. type: textblock
24164 #: ../sparsify/virt-sparsify.pod:224
24165 msgid ""
24166 "All versions of virt-sparsify have supported the I<--machine-readable> "
24167 "option."
24168 msgstr ""
24169
24170 #. type: textblock
24171 #: ../sparsify/virt-sparsify.pod:238
24172 msgid ""
24173 "Location of the temporary directory used for the potentially large temporary "
24174 "overlay file."
24175 msgstr ""
24176
24177 #. type: textblock
24178 #: ../sparsify/virt-sparsify.pod:241
24179 msgid ""
24180 "You should ensure there is enough free space in the worst case for a full "
24181 "copy of the source disk (I<virtual> size), or else set C<$TMPDIR> to point "
24182 "to another directory that has enough space."
24183 msgstr ""
24184
24185 #. type: textblock
24186 #: ../sparsify/virt-sparsify.pod:245
24187 #, fuzzy
24188 #| msgid "The default is C<ext2>."
24189 msgid "This defaults to C</tmp>."
24190 msgstr "Типовим значенням є C<ext2>."
24191
24192 #. type: textblock
24193 #: ../sparsify/virt-sparsify.pod:249
24194 msgid ""
24195 "For other environment variables, see L<guestfs(3)/ENVIRONMENT VARIABLES>."
24196 msgstr ""
24197
24198 #. type: textblock
24199 #: ../sparsify/virt-sparsify.pod:253
24200 #, fuzzy
24201 #| msgid ""
24202 #| "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-"
24203 #| "copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, "
24204 #| "L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://"
24205 #| "libguestfs.org/>."
24206 msgid ""
24207 "L<virt-filesystems(1)>, L<virt-df(1)>, L<virt-resize(1)>, L<virt-rescue(1)>, "
24208 "L<guestfs(3)>, L<guestfish(1)>, L<truncate(1)>, L<fallocate(1)>, L<qemu-img"
24209 "(1)>, L<http://libguestfs.org/>."
24210 msgstr ""
24211 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
24212 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
24213 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
24214 "org/>."
24215
24216 #. type: =head2
24217 #: ../src/guestfs-actions.pod:1
24218 msgid "guestfs_add_cdrom"
24219 msgstr ""
24220
24221 #. type: verbatim
24222 #: ../src/guestfs-actions.pod:3
24223 #, no-wrap
24224 msgid ""
24225 " int\n"
24226 " guestfs_add_cdrom (guestfs_h *g,\n"
24227 "                    const char *filename);\n"
24228 "\n"
24229 msgstr ""
24230
24231 #. type: textblock
24232 #: ../src/guestfs-actions.pod:7 ../src/guestfs-actions.pod:249
24233 #: ../src/guestfs-actions.pod:270
24234 msgid ""
24235 "I<This function is deprecated.> In new code, use the L</"
24236 "guestfs_add_drive_opts> call instead."
24237 msgstr ""
24238
24239 #. type: textblock
24240 #: ../src/guestfs-actions.pod:24
24241 msgid ""
24242 "This call checks for the existence of C<filename>.  This stops you from "
24243 "specifying other types of drive which are supported by qemu such as C<nbd:> "
24244 "and C<http:> URLs.  To specify those, use the general C<guestfs_config> call "
24245 "instead."
24246 msgstr ""
24247
24248 #. type: textblock
24249 #: ../src/guestfs-actions.pod:31
24250 msgid ""
24251 "If you just want to add an ISO file (often you use this as an efficient way "
24252 "to transfer large files into the guest), then you should probably use "
24253 "C<guestfs_add_drive_ro> instead."
24254 msgstr ""
24255
24256 #. type: textblock
24257 #: ../src/guestfs-actions.pod:37 ../src/guestfs-actions.pod:140
24258 #: ../src/guestfs-actions.pod:201 ../src/guestfs-actions.pod:238
24259 #: ../src/guestfs-actions.pod:259 ../src/guestfs-actions.pod:280
24260 #: ../src/guestfs-actions.pod:293 ../src/guestfs-actions.pod:307
24261 #: ../src/guestfs-actions.pod:427 ../src/guestfs-actions.pod:447
24262 #: ../src/guestfs-actions.pod:461 ../src/guestfs-actions.pod:506
24263 #: ../src/guestfs-actions.pod:534 ../src/guestfs-actions.pod:552
24264 #: ../src/guestfs-actions.pod:619 ../src/guestfs-actions.pod:652
24265 #: ../src/guestfs-actions.pod:666 ../src/guestfs-actions.pod:681
24266 #: ../src/guestfs-actions.pod:780 ../src/guestfs-actions.pod:798
24267 #: ../src/guestfs-actions.pod:812 ../src/guestfs-actions.pod:826
24268 #: ../src/guestfs-actions.pod:863 ../src/guestfs-actions.pod:1046
24269 #: ../src/guestfs-actions.pod:1066 ../src/guestfs-actions.pod:1084
24270 #: ../src/guestfs-actions.pod:1174 ../src/guestfs-actions.pod:1233
24271 #: ../src/guestfs-actions.pod:1279 ../src/guestfs-actions.pod:1297
24272 #: ../src/guestfs-actions.pod:1316 ../src/guestfs-actions.pod:1330
24273 #: ../src/guestfs-actions.pod:1350 ../src/guestfs-actions.pod:1420
24274 #: ../src/guestfs-actions.pod:1451 ../src/guestfs-actions.pod:1476
24275 #: ../src/guestfs-actions.pod:1518 ../src/guestfs-actions.pod:1631
24276 #: ../src/guestfs-actions.pod:1658 ../src/guestfs-actions.pod:1873
24277 #: ../src/guestfs-actions.pod:1895 ../src/guestfs-actions.pod:1982
24278 #: ../src/guestfs-actions.pod:2490 ../src/guestfs-actions.pod:2634
24279 #: ../src/guestfs-actions.pod:2695 ../src/guestfs-actions.pod:2730
24280 #: ../src/guestfs-actions.pod:3774 ../src/guestfs-actions.pod:3789
24281 #: ../src/guestfs-actions.pod:3814 ../src/guestfs-actions.pod:4003
24282 #: ../src/guestfs-actions.pod:4017 ../src/guestfs-actions.pod:4030
24283 #: ../src/guestfs-actions.pod:4044 ../src/guestfs-actions.pod:4059
24284 #: ../src/guestfs-actions.pod:4095 ../src/guestfs-actions.pod:4167
24285 #: ../src/guestfs-actions.pod:4187 ../src/guestfs-actions.pod:4204
24286 #: ../src/guestfs-actions.pod:4227 ../src/guestfs-actions.pod:4250
24287 #: ../src/guestfs-actions.pod:4285 ../src/guestfs-actions.pod:4304
24288 #: ../src/guestfs-actions.pod:4323 ../src/guestfs-actions.pod:4358
24289 #: ../src/guestfs-actions.pod:4370 ../src/guestfs-actions.pod:4406
24290 #: ../src/guestfs-actions.pod:4422 ../src/guestfs-actions.pod:4435
24291 #: ../src/guestfs-actions.pod:4450 ../src/guestfs-actions.pod:4467
24292 #: ../src/guestfs-actions.pod:4560 ../src/guestfs-actions.pod:4580
24293 #: ../src/guestfs-actions.pod:4593 ../src/guestfs-actions.pod:4644
24294 #: ../src/guestfs-actions.pod:4662 ../src/guestfs-actions.pod:4680
24295 #: ../src/guestfs-actions.pod:4696 ../src/guestfs-actions.pod:4710
24296 #: ../src/guestfs-actions.pod:4724 ../src/guestfs-actions.pod:4741
24297 #: ../src/guestfs-actions.pod:4756 ../src/guestfs-actions.pod:4783
24298 #: ../src/guestfs-actions.pod:4846 ../src/guestfs-actions.pod:4919
24299 #: ../src/guestfs-actions.pod:4950 ../src/guestfs-actions.pod:4969
24300 #: ../src/guestfs-actions.pod:4988 ../src/guestfs-actions.pod:5000
24301 #: ../src/guestfs-actions.pod:5017 ../src/guestfs-actions.pod:5030
24302 #: ../src/guestfs-actions.pod:5045 ../src/guestfs-actions.pod:5060
24303 #: ../src/guestfs-actions.pod:5092 ../src/guestfs-actions.pod:5118
24304 #: ../src/guestfs-actions.pod:5157 ../src/guestfs-actions.pod:5177
24305 #: ../src/guestfs-actions.pod:5191 ../src/guestfs-actions.pod:5208
24306 #: ../src/guestfs-actions.pod:5257 ../src/guestfs-actions.pod:5310
24307 #: ../src/guestfs-actions.pod:5357 ../src/guestfs-actions.pod:5400
24308 #: ../src/guestfs-actions.pod:5428 ../src/guestfs-actions.pod:5445
24309 #: ../src/guestfs-actions.pod:5463 ../src/guestfs-actions.pod:5603
24310 #: ../src/guestfs-actions.pod:5660 ../src/guestfs-actions.pod:5682
24311 #: ../src/guestfs-actions.pod:5700 ../src/guestfs-actions.pod:5732
24312 #: ../src/guestfs-actions.pod:5798 ../src/guestfs-actions.pod:5815
24313 #: ../src/guestfs-actions.pod:5828 ../src/guestfs-actions.pod:5842
24314 #: ../src/guestfs-actions.pod:6131 ../src/guestfs-actions.pod:6150
24315 #: ../src/guestfs-actions.pod:6169 ../src/guestfs-actions.pod:6183
24316 #: ../src/guestfs-actions.pod:6195 ../src/guestfs-actions.pod:6209
24317 #: ../src/guestfs-actions.pod:6221 ../src/guestfs-actions.pod:6235
24318 #: ../src/guestfs-actions.pod:6251 ../src/guestfs-actions.pod:6272
24319 #: ../src/guestfs-actions.pod:6291 ../src/guestfs-actions.pod:6310
24320 #: ../src/guestfs-actions.pod:6340 ../src/guestfs-actions.pod:6358
24321 #: ../src/guestfs-actions.pod:6381 ../src/guestfs-actions.pod:6399
24322 #: ../src/guestfs-actions.pod:6418 ../src/guestfs-actions.pod:6439
24323 #: ../src/guestfs-actions.pod:6458 ../src/guestfs-actions.pod:6475
24324 #: ../src/guestfs-actions.pod:6494 ../src/guestfs-actions.pod:6522
24325 #: ../src/guestfs-actions.pod:6546 ../src/guestfs-actions.pod:6565
24326 #: ../src/guestfs-actions.pod:6581 ../src/guestfs-actions.pod:6605
24327 #: ../src/guestfs-actions.pod:6624 ../src/guestfs-actions.pod:6639
24328 #: ../src/guestfs-actions.pod:6658 ../src/guestfs-actions.pod:6702
24329 #: ../src/guestfs-actions.pod:6732 ../src/guestfs-actions.pod:6765
24330 #: ../src/guestfs-actions.pod:6880 ../src/guestfs-actions.pod:7001
24331 #: ../src/guestfs-actions.pod:7013 ../src/guestfs-actions.pod:7026
24332 #: ../src/guestfs-actions.pod:7039 ../src/guestfs-actions.pod:7061
24333 #: ../src/guestfs-actions.pod:7074 ../src/guestfs-actions.pod:7087
24334 #: ../src/guestfs-actions.pod:7100 ../src/guestfs-actions.pod:7115
24335 #: ../src/guestfs-actions.pod:7174 ../src/guestfs-actions.pod:7191
24336 #: ../src/guestfs-actions.pod:7207 ../src/guestfs-actions.pod:7223
24337 #: ../src/guestfs-actions.pod:7240 ../src/guestfs-actions.pod:7253
24338 #: ../src/guestfs-actions.pod:7273 ../src/guestfs-actions.pod:7309
24339 #: ../src/guestfs-actions.pod:7323 ../src/guestfs-actions.pod:7364
24340 #: ../src/guestfs-actions.pod:7377 ../src/guestfs-actions.pod:7395
24341 #: ../src/guestfs-actions.pod:7429 ../src/guestfs-actions.pod:7465
24342 #: ../src/guestfs-actions.pod:7581 ../src/guestfs-actions.pod:7596
24343 #: ../src/guestfs-actions.pod:7610 ../src/guestfs-actions.pod:7665
24344 #: ../src/guestfs-actions.pod:7678 ../src/guestfs-actions.pod:7723
24345 #: ../src/guestfs-actions.pod:7763 ../src/guestfs-actions.pod:7819
24346 #: ../src/guestfs-actions.pod:7839 ../src/guestfs-actions.pod:7872
24347 #: ../src/guestfs-actions.pod:7936 ../src/guestfs-actions.pod:7959
24348 #: ../src/guestfs-actions.pod:7988
24349 msgid "This function returns 0 on success or -1 on error."
24350 msgstr ""
24351
24352 #. type: textblock
24353 #: ../src/guestfs-actions.pod:39 ../src/guestfs-actions.pod:142
24354 #: ../src/guestfs-actions.pod:1281 ../src/guestfs-actions.pod:2096
24355 #: ../src/guestfs-actions.pod:2194 ../src/guestfs-actions.pod:2319
24356 #: ../src/guestfs-actions.pod:3776 ../src/guestfs-actions.pod:3796
24357 #: ../src/guestfs-actions.pod:5094 ../src/guestfs-actions.pod:6360
24358 #: ../src/guestfs-actions.pod:6477 ../src/guestfs-actions.pod:6626
24359 #: ../src/guestfs-actions.pod:7117 ../src/guestfs-actions.pod:7242
24360 #: ../src/guestfs-actions.pod:7765
24361 msgid "(Added in 0.3)"
24362 msgstr ""
24363
24364 #. type: =head2
24365 #: ../src/guestfs-actions.pod:41
24366 msgid "guestfs_add_domain"
24367 msgstr ""
24368
24369 #. type: verbatim
24370 #: ../src/guestfs-actions.pod:43
24371 #, no-wrap
24372 msgid ""
24373 " int\n"
24374 " guestfs_add_domain (guestfs_h *g,\n"
24375 "                     const char *dom,\n"
24376 "                     ...);\n"
24377 "\n"
24378 msgstr ""
24379
24380 #. type: textblock
24381 #: ../src/guestfs-actions.pod:48 ../src/guestfs-actions.pod:151
24382 #: ../src/guestfs-actions.pod:837 ../src/guestfs-actions.pod:1161
24383 #: ../src/guestfs-actions.pod:1213 ../src/guestfs-actions.pod:2979
24384 #: ../src/guestfs-actions.pod:4795 ../src/guestfs-actions.pod:5104
24385 #: ../src/guestfs-actions.pod:5321
24386 msgid ""
24387 "You may supply a list of optional arguments to this call.  Use zero or more "
24388 "of the following pairs of parameters, and terminate the list with C<-1> on "
24389 "its own.  See L</CALLS WITH OPTIONAL ARGUMENTS>."
24390 msgstr ""
24391
24392 #. type: verbatim
24393 #: ../src/guestfs-actions.pod:53
24394 #, no-wrap
24395 msgid ""
24396 " GUESTFS_ADD_DOMAIN_LIBVIRTURI, const char *libvirturi,\n"
24397 " GUESTFS_ADD_DOMAIN_READONLY, int readonly,\n"
24398 " GUESTFS_ADD_DOMAIN_IFACE, const char *iface,\n"
24399 " GUESTFS_ADD_DOMAIN_LIVE, int live,\n"
24400 " GUESTFS_ADD_DOMAIN_ALLOWUUID, int allowuuid,\n"
24401 "\n"
24402 msgstr ""
24403
24404 #. type: textblock
24405 #: ../src/guestfs-actions.pod:59
24406 msgid ""
24407 "This function adds the disk(s) attached to the named libvirt domain C<dom>.  "
24408 "It works by connecting to libvirt, requesting the domain and domain XML from "
24409 "libvirt, parsing it for disks, and calling C<guestfs_add_drive_opts> on each "
24410 "one."
24411 msgstr ""
24412
24413 #. type: textblock
24414 #: ../src/guestfs-actions.pod:94
24415 msgid ""
24416 "The other optional parameters are passed directly through to "
24417 "C<guestfs_add_drive_opts>."
24418 msgstr ""
24419
24420 #. type: textblock
24421 #: ../src/guestfs-actions.pod:97 ../src/guestfs-actions.pod:350
24422 #: ../src/guestfs-actions.pod:520 ../src/guestfs-actions.pod:698
24423 #: ../src/guestfs-actions.pod:729 ../src/guestfs-actions.pod:747
24424 #: ../src/guestfs-actions.pod:766 ../src/guestfs-actions.pod:1496
24425 #: ../src/guestfs-actions.pod:1852 ../src/guestfs-actions.pod:2055
24426 #: ../src/guestfs-actions.pod:2166 ../src/guestfs-actions.pod:2217
24427 #: ../src/guestfs-actions.pod:2269 ../src/guestfs-actions.pod:2283
24428 #: ../src/guestfs-actions.pod:2306 ../src/guestfs-actions.pod:2621
24429 #: ../src/guestfs-actions.pod:3097 ../src/guestfs-actions.pod:3115
24430 #: ../src/guestfs-actions.pod:5280 ../src/guestfs-actions.pod:5500
24431 #: ../src/guestfs-actions.pod:5912 ../src/guestfs-actions.pod:5938
24432 #: ../src/guestfs-actions.pod:7350 ../src/guestfs-actions.pod:7776
24433 #: ../src/guestfs-actions.pod:7789 ../src/guestfs-actions.pod:7802
24434 msgid "On error this function returns -1."
24435 msgstr ""
24436
24437 #. type: textblock
24438 #: ../src/guestfs-actions.pod:99
24439 msgid "(Added in 1.7.4)"
24440 msgstr ""
24441
24442 #. type: =head2
24443 #: ../src/guestfs-actions.pod:101
24444 msgid "guestfs_add_domain_va"
24445 msgstr ""
24446
24447 #. type: verbatim
24448 #: ../src/guestfs-actions.pod:103
24449 #, no-wrap
24450 msgid ""
24451 " int\n"
24452 " guestfs_add_domain_va (guestfs_h *g,\n"
24453 "                        const char *dom,\n"
24454 "                        va_list args);\n"
24455 "\n"
24456 msgstr ""
24457
24458 #. type: textblock
24459 #: ../src/guestfs-actions.pod:108
24460 msgid "This is the \"va_list variant\" of L</guestfs_add_domain>."
24461 msgstr ""
24462
24463 #. type: textblock
24464 #: ../src/guestfs-actions.pod:110 ../src/guestfs-actions.pod:121
24465 #: ../src/guestfs-actions.pod:214 ../src/guestfs-actions.pod:225
24466 #: ../src/guestfs-actions.pod:876 ../src/guestfs-actions.pod:887
24467 #: ../src/guestfs-actions.pod:1189 ../src/guestfs-actions.pod:1202
24468 #: ../src/guestfs-actions.pod:1248 ../src/guestfs-actions.pod:1261
24469 #: ../src/guestfs-actions.pod:3063 ../src/guestfs-actions.pod:3075
24470 #: ../src/guestfs-actions.pod:4860 ../src/guestfs-actions.pod:4872
24471 #: ../src/guestfs-actions.pod:5132 ../src/guestfs-actions.pod:5144
24472 #: ../src/guestfs-actions.pod:5370 ../src/guestfs-actions.pod:5381
24473 msgid "See L</CALLS WITH OPTIONAL ARGUMENTS>."
24474 msgstr "Див. L</CALLS WITH OPTIONAL ARGUMENTS>."
24475
24476 #. type: =head2
24477 #: ../src/guestfs-actions.pod:112
24478 msgid "guestfs_add_domain_argv"
24479 msgstr "guestfs_add_domain_argv"
24480
24481 #. type: verbatim
24482 #: ../src/guestfs-actions.pod:114
24483 #, no-wrap
24484 msgid ""
24485 " int\n"
24486 " guestfs_add_domain_argv (guestfs_h *g,\n"
24487 "                          const char *dom,\n"
24488 "                          const struct guestfs_add_domain_argv *optargs);\n"
24489 "\n"
24490 msgstr ""
24491
24492 #. type: textblock
24493 #: ../src/guestfs-actions.pod:119
24494 msgid "This is the \"argv variant\" of L</guestfs_add_domain>."
24495 msgstr ""
24496
24497 #. type: =head2
24498 #: ../src/guestfs-actions.pod:123
24499 msgid "guestfs_add_drive"
24500 msgstr ""
24501
24502 #. type: verbatim
24503 #: ../src/guestfs-actions.pod:125
24504 #, no-wrap
24505 msgid ""
24506 " int\n"
24507 " guestfs_add_drive (guestfs_h *g,\n"
24508 "                    const char *filename);\n"
24509 "\n"
24510 msgstr ""
24511
24512 #. type: textblock
24513 #: ../src/guestfs-actions.pod:129
24514 msgid ""
24515 "This function is the equivalent of calling C<guestfs_add_drive_opts> with no "
24516 "optional parameters, so the disk is added writable, with the format being "
24517 "detected automatically."
24518 msgstr ""
24519
24520 #. type: textblock
24521 #: ../src/guestfs-actions.pod:133
24522 msgid ""
24523 "Automatic detection of the format opens you up to a potential security hole "
24524 "when dealing with untrusted raw-format images.  See CVE-2010-3851 and "
24525 "RHBZ#642934.  Specifying the format closes this security hole.  Therefore "
24526 "you should think about replacing calls to this function with calls to "
24527 "C<guestfs_add_drive_opts>, and specifying the format."
24528 msgstr ""
24529
24530 #. type: =head2
24531 #: ../src/guestfs-actions.pod:144
24532 msgid "guestfs_add_drive_opts"
24533 msgstr ""
24534
24535 #. type: verbatim
24536 #: ../src/guestfs-actions.pod:146
24537 #, no-wrap
24538 msgid ""
24539 " int\n"
24540 " guestfs_add_drive_opts (guestfs_h *g,\n"
24541 "                         const char *filename,\n"
24542 "                         ...);\n"
24543 "\n"
24544 msgstr ""
24545
24546 #. type: verbatim
24547 #: ../src/guestfs-actions.pod:156
24548 #, no-wrap
24549 msgid ""
24550 " GUESTFS_ADD_DRIVE_OPTS_READONLY, int readonly,\n"
24551 " GUESTFS_ADD_DRIVE_OPTS_FORMAT, const char *format,\n"
24552 " GUESTFS_ADD_DRIVE_OPTS_IFACE, const char *iface,\n"
24553 "\n"
24554 msgstr ""
24555
24556 #. type: textblock
24557 #: ../src/guestfs-actions.pod:185
24558 msgid ""
24559 "This forces the image format.  If you omit this (or use C<guestfs_add_drive> "
24560 "or C<guestfs_add_drive_ro>) then the format is automatically detected.  "
24561 "Possible formats include C<raw> and C<qcow2>."
24562 msgstr ""
24563
24564 #. type: textblock
24565 #: ../src/guestfs-actions.pod:196
24566 msgid ""
24567 "This rarely-used option lets you emulate the behaviour of the deprecated "
24568 "C<guestfs_add_drive_with_if> call (q.v.)"
24569 msgstr ""
24570
24571 #. type: textblock
24572 #: ../src/guestfs-actions.pod:203
24573 msgid "(Added in 1.5.23)"
24574 msgstr ""
24575
24576 #. type: =head2
24577 #: ../src/guestfs-actions.pod:205
24578 msgid "guestfs_add_drive_opts_va"
24579 msgstr ""
24580
24581 #. type: verbatim
24582 #: ../src/guestfs-actions.pod:207
24583 #, no-wrap
24584 msgid ""
24585 " int\n"
24586 " guestfs_add_drive_opts_va (guestfs_h *g,\n"
24587 "                            const char *filename,\n"
24588 "                            va_list args);\n"
24589 "\n"
24590 msgstr ""
24591
24592 #. type: textblock
24593 #: ../src/guestfs-actions.pod:212
24594 msgid "This is the \"va_list variant\" of L</guestfs_add_drive_opts>."
24595 msgstr ""
24596
24597 #. type: =head2
24598 #: ../src/guestfs-actions.pod:216
24599 msgid "guestfs_add_drive_opts_argv"
24600 msgstr ""
24601
24602 #. type: verbatim
24603 #: ../src/guestfs-actions.pod:218
24604 #, no-wrap
24605 msgid ""
24606 " int\n"
24607 " guestfs_add_drive_opts_argv (guestfs_h *g,\n"
24608 "                              const char *filename,\n"
24609 "                              const struct guestfs_add_drive_opts_argv *optargs);\n"
24610 "\n"
24611 msgstr ""
24612
24613 #. type: textblock
24614 #: ../src/guestfs-actions.pod:223
24615 msgid "This is the \"argv variant\" of L</guestfs_add_drive_opts>."
24616 msgstr ""
24617
24618 #. type: =head2
24619 #: ../src/guestfs-actions.pod:227
24620 msgid "guestfs_add_drive_ro"
24621 msgstr ""
24622
24623 #. type: verbatim
24624 #: ../src/guestfs-actions.pod:229
24625 #, no-wrap
24626 msgid ""
24627 " int\n"
24628 " guestfs_add_drive_ro (guestfs_h *g,\n"
24629 "                       const char *filename);\n"
24630 "\n"
24631 msgstr ""
24632
24633 #. type: textblock
24634 #: ../src/guestfs-actions.pod:233
24635 msgid ""
24636 "This function is the equivalent of calling C<guestfs_add_drive_opts> with "
24637 "the optional parameter C<GUESTFS_ADD_DRIVE_OPTS_READONLY> set to 1, so the "
24638 "disk is added read-only, with the format being detected automatically."
24639 msgstr ""
24640
24641 #. type: textblock
24642 #: ../src/guestfs-actions.pod:240
24643 msgid "(Added in 1.0.38)"
24644 msgstr ""
24645
24646 #. type: =head2
24647 #: ../src/guestfs-actions.pod:242
24648 msgid "guestfs_add_drive_ro_with_if"
24649 msgstr ""
24650
24651 #. type: verbatim
24652 #: ../src/guestfs-actions.pod:244
24653 #, no-wrap
24654 msgid ""
24655 " int\n"
24656 " guestfs_add_drive_ro_with_if (guestfs_h *g,\n"
24657 "                               const char *filename,\n"
24658 "                               const char *iface);\n"
24659 "\n"
24660 msgstr ""
24661
24662 #. type: textblock
24663 #: ../src/guestfs-actions.pod:256
24664 msgid ""
24665 "This is the same as C<guestfs_add_drive_ro> but it allows you to specify the "
24666 "QEMU interface emulation to use at run time."
24667 msgstr ""
24668
24669 #. type: textblock
24670 #: ../src/guestfs-actions.pod:261 ../src/guestfs-actions.pod:282
24671 #: ../src/guestfs-actions.pod:2580
24672 msgid "(Added in 1.0.84)"
24673 msgstr ""
24674
24675 #. type: =head2
24676 #: ../src/guestfs-actions.pod:263
24677 msgid "guestfs_add_drive_with_if"
24678 msgstr ""
24679
24680 #. type: verbatim
24681 #: ../src/guestfs-actions.pod:265
24682 #, no-wrap
24683 msgid ""
24684 " int\n"
24685 " guestfs_add_drive_with_if (guestfs_h *g,\n"
24686 "                            const char *filename,\n"
24687 "                            const char *iface);\n"
24688 "\n"
24689 msgstr ""
24690
24691 #. type: textblock
24692 #: ../src/guestfs-actions.pod:277
24693 msgid ""
24694 "This is the same as C<guestfs_add_drive> but it allows you to specify the "
24695 "QEMU interface emulation to use at run time."
24696 msgstr ""
24697
24698 #. type: =head2
24699 #: ../src/guestfs-actions.pod:284
24700 msgid "guestfs_aug_clear"
24701 msgstr ""
24702
24703 #. type: verbatim
24704 #: ../src/guestfs-actions.pod:286
24705 #, no-wrap
24706 msgid ""
24707 " int\n"
24708 " guestfs_aug_clear (guestfs_h *g,\n"
24709 "                    const char *augpath);\n"
24710 "\n"
24711 msgstr ""
24712
24713 #. type: textblock
24714 #: ../src/guestfs-actions.pod:295 ../src/guestfs-actions.pod:2308
24715 msgid "(Added in 1.3.4)"
24716 msgstr ""
24717
24718 #. type: =head2
24719 #: ../src/guestfs-actions.pod:297
24720 msgid "guestfs_aug_close"
24721 msgstr ""
24722
24723 #. type: verbatim
24724 #: ../src/guestfs-actions.pod:299
24725 #, no-wrap
24726 msgid ""
24727 " int\n"
24728 " guestfs_aug_close (guestfs_h *g);\n"
24729 "\n"
24730 msgstr ""
24731
24732 #. type: textblock
24733 #: ../src/guestfs-actions.pod:302
24734 msgid ""
24735 "Close the current Augeas handle and free up any resources used by it.  After "
24736 "calling this, you have to call C<guestfs_aug_init> again before you can use "
24737 "any other Augeas functions."
24738 msgstr ""
24739
24740 #. type: textblock
24741 #: ../src/guestfs-actions.pod:309 ../src/guestfs-actions.pod:334
24742 #: ../src/guestfs-actions.pod:352 ../src/guestfs-actions.pod:366
24743 #: ../src/guestfs-actions.pod:429 ../src/guestfs-actions.pod:449
24744 #: ../src/guestfs-actions.pod:463 ../src/guestfs-actions.pod:494
24745 #: ../src/guestfs-actions.pod:508 ../src/guestfs-actions.pod:522
24746 #: ../src/guestfs-actions.pod:536 ../src/guestfs-actions.pod:554
24747 #: ../src/guestfs-actions.pod:5989
24748 msgid "(Added in 0.7)"
24749 msgstr ""
24750
24751 #. type: =head2
24752 #: ../src/guestfs-actions.pod:311
24753 msgid "guestfs_aug_defnode"
24754 msgstr ""
24755
24756 #. type: verbatim
24757 #: ../src/guestfs-actions.pod:313
24758 #, no-wrap
24759 msgid ""
24760 " struct guestfs_int_bool *\n"
24761 " guestfs_aug_defnode (guestfs_h *g,\n"
24762 "                      const char *name,\n"
24763 "                      const char *expr,\n"
24764 "                      const char *val);\n"
24765 "\n"
24766 msgstr ""
24767
24768 #. type: textblock
24769 #: ../src/guestfs-actions.pod:322
24770 msgid ""
24771 "If C<expr> evaluates to an empty nodeset, a node is created, equivalent to "
24772 "calling C<guestfs_aug_set> C<expr>, C<value>.  C<name> will be the nodeset "
24773 "containing that single node."
24774 msgstr ""
24775
24776 #. type: textblock
24777 #: ../src/guestfs-actions.pod:330
24778 msgid ""
24779 "This function returns a C<struct guestfs_int_bool *>, or NULL if there was "
24780 "an error.  I<The caller must call C<guestfs_free_int_bool> after use>."
24781 msgstr ""
24782
24783 #. type: =head2
24784 #: ../src/guestfs-actions.pod:336
24785 msgid "guestfs_aug_defvar"
24786 msgstr ""
24787
24788 #. type: verbatim
24789 #: ../src/guestfs-actions.pod:338
24790 #, no-wrap
24791 msgid ""
24792 " int\n"
24793 " guestfs_aug_defvar (guestfs_h *g,\n"
24794 "                     const char *name,\n"
24795 "                     const char *expr);\n"
24796 "\n"
24797 msgstr ""
24798
24799 #. type: =head2
24800 #: ../src/guestfs-actions.pod:354
24801 msgid "guestfs_aug_get"
24802 msgstr ""
24803
24804 #. type: verbatim
24805 #: ../src/guestfs-actions.pod:356
24806 #, no-wrap
24807 msgid ""
24808 " char *\n"
24809 " guestfs_aug_get (guestfs_h *g,\n"
24810 "                  const char *augpath);\n"
24811 "\n"
24812 msgstr ""
24813
24814 #. type: textblock
24815 #: ../src/guestfs-actions.pod:363 ../src/guestfs-actions.pod:927
24816 #: ../src/guestfs-actions.pod:945 ../src/guestfs-actions.pod:1005
24817 #: ../src/guestfs-actions.pod:1021 ../src/guestfs-actions.pod:1124
24818 #: ../src/guestfs-actions.pod:1365 ../src/guestfs-actions.pod:1382
24819 #: ../src/guestfs-actions.pod:1401 ../src/guestfs-actions.pod:1535
24820 #: ../src/guestfs-actions.pod:1723 ../src/guestfs-actions.pod:1835
24821 #: ../src/guestfs-actions.pod:1998 ../src/guestfs-actions.pod:2015
24822 #: ../src/guestfs-actions.pod:2082 ../src/guestfs-actions.pod:2125
24823 #: ../src/guestfs-actions.pod:2146 ../src/guestfs-actions.pod:2331
24824 #: ../src/guestfs-actions.pod:2545 ../src/guestfs-actions.pod:2749
24825 #: ../src/guestfs-actions.pod:2843 ../src/guestfs-actions.pod:2947
24826 #: ../src/guestfs-actions.pod:2966 ../src/guestfs-actions.pod:3180
24827 #: ../src/guestfs-actions.pod:3208 ../src/guestfs-actions.pod:3229
24828 #: ../src/guestfs-actions.pod:3263 ../src/guestfs-actions.pod:3322
24829 #: ../src/guestfs-actions.pod:3342 ../src/guestfs-actions.pod:3362
24830 #: ../src/guestfs-actions.pod:3989 ../src/guestfs-actions.pod:4342
24831 #: ../src/guestfs-actions.pod:4512 ../src/guestfs-actions.pod:4622
24832 #: ../src/guestfs-actions.pod:5518 ../src/guestfs-actions.pod:5717
24833 #: ../src/guestfs-actions.pod:5887 ../src/guestfs-actions.pod:6065
24834 #: ../src/guestfs-actions.pod:6114 ../src/guestfs-actions.pod:6786
24835 #: ../src/guestfs-actions.pod:6802 ../src/guestfs-actions.pod:6826
24836 #: ../src/guestfs-actions.pod:6850 ../src/guestfs-actions.pod:7524
24837 #: ../src/guestfs-actions.pod:7543 ../src/guestfs-actions.pod:7561
24838 #: ../src/guestfs-actions.pod:7735 ../src/guestfs-actions.pod:8052
24839 msgid ""
24840 "This function returns a string, or NULL on error.  I<The caller must free "
24841 "the returned string after use>."
24842 msgstr ""
24843
24844 #. type: =head2
24845 #: ../src/guestfs-actions.pod:368
24846 msgid "guestfs_aug_init"
24847 msgstr ""
24848
24849 #. type: verbatim
24850 #: ../src/guestfs-actions.pod:370
24851 #, no-wrap
24852 msgid ""
24853 " int\n"
24854 " guestfs_aug_init (guestfs_h *g,\n"
24855 "                   const char *root,\n"
24856 "                   int flags);\n"
24857 "\n"
24858 msgstr ""
24859
24860 #. type: textblock
24861 #: ../src/guestfs-actions.pod:379
24862 msgid "You must call this before using any other C<guestfs_aug_*> commands."
24863 msgstr ""
24864
24865 #. type: textblock
24866 #: ../src/guestfs-actions.pod:404
24867 msgid ""
24868 "This option is only useful when debugging Augeas lenses.  Use of this option "
24869 "may require additional memory for the libguestfs appliance.  You may need to "
24870 "set the C<LIBGUESTFS_MEMSIZE> environment variable or call "
24871 "C<guestfs_set_memsize>."
24872 msgstr ""
24873
24874 #. type: textblock
24875 #: ../src/guestfs-actions.pod:419
24876 msgid "Do not load the tree in C<guestfs_aug_init>."
24877 msgstr ""
24878
24879 #. type: textblock
24880 #: ../src/guestfs-actions.pod:423
24881 msgid "To close the handle, you can call C<guestfs_aug_close>."
24882 msgstr ""
24883
24884 #. type: =head2
24885 #: ../src/guestfs-actions.pod:431
24886 msgid "guestfs_aug_insert"
24887 msgstr ""
24888
24889 #. type: verbatim
24890 #: ../src/guestfs-actions.pod:433
24891 #, no-wrap
24892 msgid ""
24893 " int\n"
24894 " guestfs_aug_insert (guestfs_h *g,\n"
24895 "                     const char *augpath,\n"
24896 "                     const char *label,\n"
24897 "                     int before);\n"
24898 "\n"
24899 msgstr ""
24900
24901 #. type: =head2
24902 #: ../src/guestfs-actions.pod:451
24903 msgid "guestfs_aug_load"
24904 msgstr ""
24905
24906 #. type: verbatim
24907 #: ../src/guestfs-actions.pod:453
24908 #, no-wrap
24909 msgid ""
24910 " int\n"
24911 " guestfs_aug_load (guestfs_h *g);\n"
24912 "\n"
24913 msgstr ""
24914
24915 #. type: =head2
24916 #: ../src/guestfs-actions.pod:465
24917 msgid "guestfs_aug_ls"
24918 msgstr ""
24919
24920 #. type: verbatim
24921 #: ../src/guestfs-actions.pod:467
24922 #, no-wrap
24923 msgid ""
24924 " char **\n"
24925 " guestfs_aug_ls (guestfs_h *g,\n"
24926 "                 const char *augpath);\n"
24927 "\n"
24928 msgstr ""
24929
24930 #. type: textblock
24931 #: ../src/guestfs-actions.pod:471
24932 msgid ""
24933 "This is just a shortcut for listing C<guestfs_aug_match> C<path/*> and "
24934 "sorting the resulting nodes into alphabetical order."
24935 msgstr ""
24936
24937 #. type: textblock
24938 #: ../src/guestfs-actions.pod:474 ../src/guestfs-actions.pod:490
24939 #: ../src/guestfs-actions.pod:636 ../src/guestfs-actions.pod:1143
24940 #: ../src/guestfs-actions.pod:1550 ../src/guestfs-actions.pod:1569
24941 #: ../src/guestfs-actions.pod:1672 ../src/guestfs-actions.pod:1691
24942 #: ../src/guestfs-actions.pod:1937 ../src/guestfs-actions.pod:2403
24943 #: ../src/guestfs-actions.pod:2419 ../src/guestfs-actions.pod:2438
24944 #: ../src/guestfs-actions.pod:2503 ../src/guestfs-actions.pod:2527
24945 #: ../src/guestfs-actions.pod:2598 ../src/guestfs-actions.pod:2647
24946 #: ../src/guestfs-actions.pod:2908 ../src/guestfs-actions.pod:3282
24947 #: ../src/guestfs-actions.pod:3558 ../src/guestfs-actions.pod:3872
24948 #: ../src/guestfs-actions.pod:3889 ../src/guestfs-actions.pod:3909
24949 #: ../src/guestfs-actions.pod:3971 ../src/guestfs-actions.pod:4076
24950 #: ../src/guestfs-actions.pod:4484 ../src/guestfs-actions.pod:5241
24951 #: ../src/guestfs-actions.pod:5859 ../src/guestfs-actions.pod:5985
24952 #: ../src/guestfs-actions.pod:6099 ../src/guestfs-actions.pod:6866
24953 #: ../src/guestfs-actions.pod:6927 ../src/guestfs-actions.pod:6982
24954 #: ../src/guestfs-actions.pod:7128 ../src/guestfs-actions.pod:7152
24955 #: ../src/guestfs-actions.pod:7628 ../src/guestfs-actions.pod:7648
24956 #: ../src/guestfs-actions.pod:7695 ../src/guestfs-actions.pod:7889
24957 #: ../src/guestfs-actions.pod:7908 ../src/guestfs-actions.pod:8002
24958 #: ../src/guestfs-actions.pod:8021 ../src/guestfs-actions.pod:8067
24959 #: ../src/guestfs-actions.pod:8086
24960 msgid ""
24961 "This function returns a NULL-terminated array of strings (like L<environ(3)"
24962 ">), or NULL if there was an error.  I<The caller must free the strings and "
24963 "the array after use>."
24964 msgstr ""
24965
24966 #. type: textblock
24967 #: ../src/guestfs-actions.pod:478 ../src/guestfs-actions.pod:1068
24968 #: ../src/guestfs-actions.pod:1086 ../src/guestfs-actions.pod:1607
24969 #: ../src/guestfs-actions.pod:3636 ../src/guestfs-actions.pod:3667
24970 #: ../src/guestfs-actions.pod:4325 ../src/guestfs-actions.pod:4375
24971 #: ../src/guestfs-actions.pod:4562 ../src/guestfs-actions.pod:4595
24972 #: ../src/guestfs-actions.pod:4758 ../src/guestfs-actions.pod:5245
24973 #: ../src/guestfs-actions.pod:5800 ../src/guestfs-actions.pod:6197
24974 #: ../src/guestfs-actions.pod:6211 ../src/guestfs-actions.pod:6223
24975 #: ../src/guestfs-actions.pod:6707 ../src/guestfs-actions.pod:7366
24976 #: ../src/guestfs-actions.pod:7379 ../src/guestfs-actions.pod:7612
24977 #: ../src/guestfs-actions.pod:7877
24978 msgid "(Added in 0.8)"
24979 msgstr ""
24980
24981 #. type: =head2
24982 #: ../src/guestfs-actions.pod:480
24983 msgid "guestfs_aug_match"
24984 msgstr ""
24985
24986 #. type: verbatim
24987 #: ../src/guestfs-actions.pod:482
24988 #, no-wrap
24989 msgid ""
24990 " char **\n"
24991 " guestfs_aug_match (guestfs_h *g,\n"
24992 "                    const char *augpath);\n"
24993 "\n"
24994 msgstr ""
24995
24996 #. type: =head2
24997 #: ../src/guestfs-actions.pod:496
24998 msgid "guestfs_aug_mv"
24999 msgstr ""
25000
25001 #. type: verbatim
25002 #: ../src/guestfs-actions.pod:498
25003 #, no-wrap
25004 msgid ""
25005 " int\n"
25006 " guestfs_aug_mv (guestfs_h *g,\n"
25007 "                 const char *src,\n"
25008 "                 const char *dest);\n"
25009 "\n"
25010 msgstr ""
25011
25012 #. type: =head2
25013 #: ../src/guestfs-actions.pod:510
25014 msgid "guestfs_aug_rm"
25015 msgstr ""
25016
25017 #. type: verbatim
25018 #: ../src/guestfs-actions.pod:512
25019 #, no-wrap
25020 msgid ""
25021 " int\n"
25022 " guestfs_aug_rm (guestfs_h *g,\n"
25023 "                 const char *augpath);\n"
25024 "\n"
25025 msgstr ""
25026
25027 #. type: =head2
25028 #: ../src/guestfs-actions.pod:524
25029 msgid "guestfs_aug_save"
25030 msgstr ""
25031
25032 #. type: verbatim
25033 #: ../src/guestfs-actions.pod:526
25034 #, no-wrap
25035 msgid ""
25036 " int\n"
25037 " guestfs_aug_save (guestfs_h *g);\n"
25038 "\n"
25039 msgstr ""
25040
25041 #. type: textblock
25042 #: ../src/guestfs-actions.pod:531
25043 msgid ""
25044 "The flags which were passed to C<guestfs_aug_init> affect exactly how files "
25045 "are saved."
25046 msgstr ""
25047
25048 #. type: =head2
25049 #: ../src/guestfs-actions.pod:538
25050 msgid "guestfs_aug_set"
25051 msgstr ""
25052
25053 #. type: verbatim
25054 #: ../src/guestfs-actions.pod:540
25055 #, no-wrap
25056 msgid ""
25057 " int\n"
25058 " guestfs_aug_set (guestfs_h *g,\n"
25059 "                  const char *augpath,\n"
25060 "                  const char *val);\n"
25061 "\n"
25062 msgstr ""
25063
25064 #. type: textblock
25065 #: ../src/guestfs-actions.pod:547
25066 msgid ""
25067 "In the Augeas API, it is possible to clear a node by setting the value to "
25068 "NULL.  Due to an oversight in the libguestfs API you cannot do that with "
25069 "this call.  Instead you must use the C<guestfs_aug_clear> call."
25070 msgstr ""
25071
25072 #. type: =head2
25073 #: ../src/guestfs-actions.pod:556
25074 msgid "guestfs_available"
25075 msgstr ""
25076
25077 #. type: verbatim
25078 #: ../src/guestfs-actions.pod:558
25079 #, no-wrap
25080 msgid ""
25081 " int\n"
25082 " guestfs_available (guestfs_h *g,\n"
25083 "                    char *const *groups);\n"
25084 "\n"
25085 msgstr ""
25086
25087 #. type: textblock
25088 #: ../src/guestfs-actions.pod:566
25089 msgid ""
25090 "The libguestfs groups, and the functions that those groups correspond to, "
25091 "are listed in L<guestfs(3)/AVAILABILITY>.  You can also fetch this list at "
25092 "runtime by calling C<guestfs_available_all_groups>."
25093 msgstr ""
25094
25095 #. type: textblock
25096 #: ../src/guestfs-actions.pod:590
25097 msgid "You must call C<guestfs_launch> before calling this function."
25098 msgstr ""
25099
25100 #. type: textblock
25101 #: ../src/guestfs-actions.pod:612
25102 msgid ""
25103 "This call was added in version C<1.0.80>.  In previous versions of "
25104 "libguestfs all you could do would be to speculatively execute a command to "
25105 "find out if the daemon implemented it.  See also C<guestfs_version>."
25106 msgstr ""
25107
25108 #. type: textblock
25109 #: ../src/guestfs-actions.pod:621 ../src/guestfs-actions.pod:1352
25110 msgid "(Added in 1.0.80)"
25111 msgstr ""
25112
25113 #. type: =head2
25114 #: ../src/guestfs-actions.pod:623
25115 msgid "guestfs_available_all_groups"
25116 msgstr ""
25117
25118 #. type: verbatim
25119 #: ../src/guestfs-actions.pod:625
25120 #, no-wrap
25121 msgid ""
25122 " char **\n"
25123 " guestfs_available_all_groups (guestfs_h *g);\n"
25124 "\n"
25125 msgstr ""
25126
25127 #. type: textblock
25128 #: ../src/guestfs-actions.pod:628
25129 msgid ""
25130 "This command returns a list of all optional groups that this daemon knows "
25131 "about.  Note this returns both supported and unsupported groups.  To find "
25132 "out which ones the daemon can actually support you have to call "
25133 "C<guestfs_available> on each member of the returned list."
25134 msgstr ""
25135
25136 #. type: textblock
25137 #: ../src/guestfs-actions.pod:634
25138 msgid "See also C<guestfs_available> and L<guestfs(3)/AVAILABILITY>."
25139 msgstr ""
25140
25141 #. type: textblock
25142 #: ../src/guestfs-actions.pod:640
25143 msgid "(Added in 1.3.15)"
25144 msgstr ""
25145
25146 #. type: =head2
25147 #: ../src/guestfs-actions.pod:642
25148 msgid "guestfs_base64_in"
25149 msgstr ""
25150
25151 #. type: verbatim
25152 #: ../src/guestfs-actions.pod:644
25153 #, no-wrap
25154 msgid ""
25155 " int\n"
25156 " guestfs_base64_in (guestfs_h *g,\n"
25157 "                    const char *base64file,\n"
25158 "                    const char *filename);\n"
25159 "\n"
25160 msgstr ""
25161
25162 #. type: textblock
25163 #: ../src/guestfs-actions.pod:654 ../src/guestfs-actions.pod:668
25164 msgid "(Added in 1.3.5)"
25165 msgstr ""
25166
25167 #. type: =head2
25168 #: ../src/guestfs-actions.pod:656
25169 msgid "guestfs_base64_out"
25170 msgstr ""
25171
25172 #. type: verbatim
25173 #: ../src/guestfs-actions.pod:658
25174 #, no-wrap
25175 msgid ""
25176 " int\n"
25177 " guestfs_base64_out (guestfs_h *g,\n"
25178 "                     const char *filename,\n"
25179 "                     const char *base64file);\n"
25180 "\n"
25181 msgstr ""
25182
25183 #. type: =head2
25184 #: ../src/guestfs-actions.pod:670
25185 msgid "guestfs_blockdev_flushbufs"
25186 msgstr ""
25187
25188 #. type: verbatim
25189 #: ../src/guestfs-actions.pod:672
25190 #, no-wrap
25191 msgid ""
25192 " int\n"
25193 " guestfs_blockdev_flushbufs (guestfs_h *g,\n"
25194 "                             const char *device);\n"
25195 "\n"
25196 msgstr ""
25197
25198 #. type: textblock
25199 #: ../src/guestfs-actions.pod:683 ../src/guestfs-actions.pod:700
25200 #: ../src/guestfs-actions.pod:715 ../src/guestfs-actions.pod:731
25201 #: ../src/guestfs-actions.pod:749 ../src/guestfs-actions.pod:768
25202 #: ../src/guestfs-actions.pod:782 ../src/guestfs-actions.pod:800
25203 #: ../src/guestfs-actions.pod:814 ../src/guestfs-actions.pod:828
25204 msgid "(Added in 0.9.3)"
25205 msgstr ""
25206
25207 #. type: =head2
25208 #: ../src/guestfs-actions.pod:685
25209 msgid "guestfs_blockdev_getbsz"
25210 msgstr ""
25211
25212 #. type: verbatim
25213 #: ../src/guestfs-actions.pod:687
25214 #, no-wrap
25215 msgid ""
25216 " int\n"
25217 " guestfs_blockdev_getbsz (guestfs_h *g,\n"
25218 "                          const char *device);\n"
25219 "\n"
25220 msgstr ""
25221
25222 #. type: =head2
25223 #: ../src/guestfs-actions.pod:702
25224 msgid "guestfs_blockdev_getro"
25225 msgstr ""
25226
25227 #. type: verbatim
25228 #: ../src/guestfs-actions.pod:704
25229 #, no-wrap
25230 msgid ""
25231 " int\n"
25232 " guestfs_blockdev_getro (guestfs_h *g,\n"
25233 "                         const char *device);\n"
25234 "\n"
25235 msgstr ""
25236
25237 #. type: textblock
25238 #: ../src/guestfs-actions.pod:713 ../src/guestfs-actions.pod:1590
25239 #: ../src/guestfs-actions.pod:1605 ../src/guestfs-actions.pod:2094
25240 #: ../src/guestfs-actions.pod:2105 ../src/guestfs-actions.pod:2177
25241 #: ../src/guestfs-actions.pod:2203 ../src/guestfs-actions.pod:2243
25242 #: ../src/guestfs-actions.pod:2258 ../src/guestfs-actions.pod:2294
25243 #: ../src/guestfs-actions.pod:2317 ../src/guestfs-actions.pod:3379
25244 #: ../src/guestfs-actions.pod:3395 ../src/guestfs-actions.pod:3413
25245 #: ../src/guestfs-actions.pod:3575 ../src/guestfs-actions.pod:3589
25246 #: ../src/guestfs-actions.pod:3604 ../src/guestfs-actions.pod:3618
25247 #: ../src/guestfs-actions.pod:3634 ../src/guestfs-actions.pod:3649
25248 #: ../src/guestfs-actions.pod:3665 ../src/guestfs-actions.pod:3679
25249 #: ../src/guestfs-actions.pod:3692 ../src/guestfs-actions.pod:3706
25250 #: ../src/guestfs-actions.pod:3721 ../src/guestfs-actions.pod:3736
25251 #: ../src/guestfs-actions.pod:3749 ../src/guestfs-actions.pod:3763
25252 #: ../src/guestfs-actions.pod:5482
25253 msgid "This function returns a C truth value on success or -1 on error."
25254 msgstr ""
25255
25256 #. type: =head2
25257 #: ../src/guestfs-actions.pod:717
25258 msgid "guestfs_blockdev_getsize64"
25259 msgstr ""
25260
25261 #. type: verbatim
25262 #: ../src/guestfs-actions.pod:719
25263 #, no-wrap
25264 msgid ""
25265 " int64_t\n"
25266 " guestfs_blockdev_getsize64 (guestfs_h *g,\n"
25267 "                             const char *device);\n"
25268 "\n"
25269 msgstr ""
25270
25271 #. type: textblock
25272 #: ../src/guestfs-actions.pod:725
25273 msgid "See also C<guestfs_blockdev_getsz>."
25274 msgstr ""
25275
25276 #. type: =head2
25277 #: ../src/guestfs-actions.pod:733
25278 msgid "guestfs_blockdev_getss"
25279 msgstr ""
25280
25281 #. type: verbatim
25282 #: ../src/guestfs-actions.pod:735
25283 #, no-wrap
25284 msgid ""
25285 " int\n"
25286 " guestfs_blockdev_getss (guestfs_h *g,\n"
25287 "                         const char *device);\n"
25288 "\n"
25289 msgstr ""
25290
25291 #. type: textblock
25292 #: ../src/guestfs-actions.pod:742
25293 msgid ""
25294 "(Note, this is not the size in sectors, use C<guestfs_blockdev_getsz> for "
25295 "that)."
25296 msgstr ""
25297
25298 #. type: =head2
25299 #: ../src/guestfs-actions.pod:751
25300 msgid "guestfs_blockdev_getsz"
25301 msgstr ""
25302
25303 #. type: verbatim
25304 #: ../src/guestfs-actions.pod:753
25305 #, no-wrap
25306 msgid ""
25307 " int64_t\n"
25308 " guestfs_blockdev_getsz (guestfs_h *g,\n"
25309 "                         const char *device);\n"
25310 "\n"
25311 msgstr ""
25312
25313 #. type: textblock
25314 #: ../src/guestfs-actions.pod:760
25315 msgid ""
25316 "See also C<guestfs_blockdev_getss> for the real sector size of the device, "
25317 "and C<guestfs_blockdev_getsize64> for the more useful I<size in bytes>."
25318 msgstr ""
25319
25320 #. type: =head2
25321 #: ../src/guestfs-actions.pod:770
25322 msgid "guestfs_blockdev_rereadpt"
25323 msgstr ""
25324
25325 #. type: verbatim
25326 #: ../src/guestfs-actions.pod:772
25327 #, no-wrap
25328 msgid ""
25329 " int\n"
25330 " guestfs_blockdev_rereadpt (guestfs_h *g,\n"
25331 "                            const char *device);\n"
25332 "\n"
25333 msgstr ""
25334
25335 #. type: =head2
25336 #: ../src/guestfs-actions.pod:784
25337 msgid "guestfs_blockdev_setbsz"
25338 msgstr ""
25339
25340 #. type: verbatim
25341 #: ../src/guestfs-actions.pod:786
25342 #, no-wrap
25343 msgid ""
25344 " int\n"
25345 " guestfs_blockdev_setbsz (guestfs_h *g,\n"
25346 "                          const char *device,\n"
25347 "                          int blocksize);\n"
25348 "\n"
25349 msgstr ""
25350
25351 #. type: =head2
25352 #: ../src/guestfs-actions.pod:802
25353 msgid "guestfs_blockdev_setro"
25354 msgstr ""
25355
25356 #. type: verbatim
25357 #: ../src/guestfs-actions.pod:804
25358 #, no-wrap
25359 msgid ""
25360 " int\n"
25361 " guestfs_blockdev_setro (guestfs_h *g,\n"
25362 "                         const char *device);\n"
25363 "\n"
25364 msgstr ""
25365
25366 #. type: =head2
25367 #: ../src/guestfs-actions.pod:816
25368 msgid "guestfs_blockdev_setrw"
25369 msgstr ""
25370
25371 #. type: verbatim
25372 #: ../src/guestfs-actions.pod:818
25373 #, no-wrap
25374 msgid ""
25375 " int\n"
25376 " guestfs_blockdev_setrw (guestfs_h *g,\n"
25377 "                         const char *device);\n"
25378 "\n"
25379 msgstr ""
25380
25381 #. type: =head2
25382 #: ../src/guestfs-actions.pod:830
25383 msgid "guestfs_btrfs_filesystem_resize"
25384 msgstr ""
25385
25386 #. type: verbatim
25387 #: ../src/guestfs-actions.pod:832
25388 #, no-wrap
25389 msgid ""
25390 " int\n"
25391 " guestfs_btrfs_filesystem_resize (guestfs_h *g,\n"
25392 "                                  const char *mountpoint,\n"
25393 "                                  ...);\n"
25394 "\n"
25395 msgstr ""
25396
25397 #. type: verbatim
25398 #: ../src/guestfs-actions.pod:842
25399 #, no-wrap
25400 msgid ""
25401 " GUESTFS_BTRFS_FILESYSTEM_RESIZE_SIZE, int64_t size,\n"
25402 "\n"
25403 msgstr ""
25404
25405 #. type: textblock
25406 #: ../src/guestfs-actions.pod:865
25407 msgid "(Added in 1.11.17)"
25408 msgstr ""
25409
25410 #. type: =head2
25411 #: ../src/guestfs-actions.pod:867
25412 msgid "guestfs_btrfs_filesystem_resize_va"
25413 msgstr ""
25414
25415 #. type: verbatim
25416 #: ../src/guestfs-actions.pod:869
25417 #, no-wrap
25418 msgid ""
25419 " int\n"
25420 " guestfs_btrfs_filesystem_resize_va (guestfs_h *g,\n"
25421 "                                     const char *mountpoint,\n"
25422 "                                     va_list args);\n"
25423 "\n"
25424 msgstr ""
25425
25426 #. type: textblock
25427 #: ../src/guestfs-actions.pod:874
25428 msgid "This is the \"va_list variant\" of L</guestfs_btrfs_filesystem_resize>."
25429 msgstr ""
25430
25431 #. type: =head2
25432 #: ../src/guestfs-actions.pod:878
25433 msgid "guestfs_btrfs_filesystem_resize_argv"
25434 msgstr ""
25435
25436 #. type: verbatim
25437 #: ../src/guestfs-actions.pod:880
25438 #, no-wrap
25439 msgid ""
25440 " int\n"
25441 " guestfs_btrfs_filesystem_resize_argv (guestfs_h *g,\n"
25442 "                                       const char *mountpoint,\n"
25443 "                                       const struct guestfs_btrfs_filesystem_resize_argv *optargs);\n"
25444 "\n"
25445 msgstr ""
25446
25447 #. type: textblock
25448 #: ../src/guestfs-actions.pod:885
25449 msgid "This is the \"argv variant\" of L</guestfs_btrfs_filesystem_resize>."
25450 msgstr ""
25451
25452 #. type: =head2
25453 #: ../src/guestfs-actions.pod:889
25454 msgid "guestfs_case_sensitive_path"
25455 msgstr ""
25456
25457 #. type: verbatim
25458 #: ../src/guestfs-actions.pod:891
25459 #, no-wrap
25460 msgid ""
25461 " char *\n"
25462 " guestfs_case_sensitive_path (guestfs_h *g,\n"
25463 "                              const char *path);\n"
25464 "\n"
25465 msgstr ""
25466
25467 #. type: textblock
25468 #: ../src/guestfs-actions.pod:917
25469 msgid ""
25470 "Thus C<guestfs_case_sensitive_path> (\"/Windows/System32\")  might return C<"
25471 "\"/WINDOWS/system32\"> (the exact return value would depend on details of "
25472 "how the directories were originally created under Windows)."
25473 msgstr ""
25474
25475 #. type: textblock
25476 #: ../src/guestfs-actions.pod:925
25477 msgid "See also C<guestfs_realpath>."
25478 msgstr ""
25479
25480 #. type: textblock
25481 #: ../src/guestfs-actions.pod:930 ../src/guestfs-actions.pod:7546
25482 msgid "(Added in 1.0.75)"
25483 msgstr ""
25484
25485 #. type: =head2
25486 #: ../src/guestfs-actions.pod:932
25487 msgid "guestfs_cat"
25488 msgstr ""
25489
25490 #. type: verbatim
25491 #: ../src/guestfs-actions.pod:934
25492 #, no-wrap
25493 msgid ""
25494 " char *\n"
25495 " guestfs_cat (guestfs_h *g,\n"
25496 "              const char *path);\n"
25497 "\n"
25498 msgstr ""
25499
25500 #. type: textblock
25501 #: ../src/guestfs-actions.pod:940
25502 msgid ""
25503 "Note that this function cannot correctly handle binary files (specifically, "
25504 "files containing C<\\0> character which is treated as end of string).  For "
25505 "those you need to use the C<guestfs_read_file> or C<guestfs_download> "
25506 "functions which have a more complex interface."
25507 msgstr ""
25508
25509 #. type: textblock
25510 #: ../src/guestfs-actions.pod:951 ../src/guestfs-actions.pod:3893
25511 #: ../src/guestfs-actions.pod:3975 ../src/guestfs-actions.pod:3992
25512 #: ../src/guestfs-actions.pod:4080 ../src/guestfs-actions.pod:4488
25513 #: ../src/guestfs-actions.pod:4502 ../src/guestfs-actions.pod:5863
25514 #: ../src/guestfs-actions.pod:5877 ../src/guestfs-actions.pod:7699
25515 #: ../src/guestfs-actions.pod:7713
25516 msgid "(Added in 0.4)"
25517 msgstr ""
25518
25519 #. type: =head2
25520 #: ../src/guestfs-actions.pod:953
25521 msgid "guestfs_checksum"
25522 msgstr ""
25523
25524 #. type: verbatim
25525 #: ../src/guestfs-actions.pod:955
25526 #, no-wrap
25527 msgid ""
25528 " char *\n"
25529 " guestfs_checksum (guestfs_h *g,\n"
25530 "                   const char *csumtype,\n"
25531 "                   const char *path);\n"
25532 "\n"
25533 msgstr ""
25534
25535 #. type: textblock
25536 #: ../src/guestfs-actions.pod:1001
25537 msgid "To get the checksum for a device, use C<guestfs_checksum_device>."
25538 msgstr ""
25539
25540 #. type: textblock
25541 #: ../src/guestfs-actions.pod:1003
25542 msgid "To get the checksums for many files, use C<guestfs_checksums_out>."
25543 msgstr ""
25544
25545 #. type: textblock
25546 #: ../src/guestfs-actions.pod:1008 ../src/guestfs-actions.pod:1427
25547 #: ../src/guestfs-actions.pod:2285 ../src/guestfs-actions.pod:3591
25548 #: ../src/guestfs-actions.pod:3620 ../src/guestfs-actions.pod:3681
25549 #: ../src/guestfs-actions.pod:3708 ../src/guestfs-actions.pod:7402
25550 msgid "(Added in 1.0.2)"
25551 msgstr ""
25552
25553 #. type: =head2
25554 #: ../src/guestfs-actions.pod:1010
25555 msgid "guestfs_checksum_device"
25556 msgstr ""
25557
25558 #. type: verbatim
25559 #: ../src/guestfs-actions.pod:1012
25560 #, no-wrap
25561 msgid ""
25562 " char *\n"
25563 " guestfs_checksum_device (guestfs_h *g,\n"
25564 "                          const char *csumtype,\n"
25565 "                          const char *device);\n"
25566 "\n"
25567 msgstr ""
25568
25569 #. type: textblock
25570 #: ../src/guestfs-actions.pod:1017
25571 msgid ""
25572 "This call computes the MD5, SHAx or CRC checksum of the contents of the "
25573 "device named C<device>.  For the types of checksums supported see the "
25574 "C<guestfs_checksum> command."
25575 msgstr ""
25576
25577 #. type: textblock
25578 #: ../src/guestfs-actions.pod:1024 ../src/guestfs-actions.pod:5312
25579 #: ../src/guestfs-actions.pod:5447 ../src/guestfs-actions.pod:5484
25580 #: ../src/guestfs-actions.pod:5502 ../src/guestfs-actions.pod:5684
25581 #: ../src/guestfs-actions.pod:7311 ../src/guestfs-actions.pod:7325
25582 #: ../src/guestfs-actions.pod:7725
25583 msgid "(Added in 1.3.2)"
25584 msgstr ""
25585
25586 #. type: =head2
25587 #: ../src/guestfs-actions.pod:1026
25588 msgid "guestfs_checksums_out"
25589 msgstr ""
25590
25591 #. type: verbatim
25592 #: ../src/guestfs-actions.pod:1028
25593 #, no-wrap
25594 msgid ""
25595 " int\n"
25596 " guestfs_checksums_out (guestfs_h *g,\n"
25597 "                        const char *csumtype,\n"
25598 "                        const char *directory,\n"
25599 "                        const char *sumsfile);\n"
25600 "\n"
25601 msgstr ""
25602
25603 #. type: textblock
25604 #: ../src/guestfs-actions.pod:1048
25605 msgid "(Added in 1.3.7)"
25606 msgstr ""
25607
25608 #. type: =head2
25609 #: ../src/guestfs-actions.pod:1050
25610 msgid "guestfs_chmod"
25611 msgstr ""
25612
25613 #. type: verbatim
25614 #: ../src/guestfs-actions.pod:1052
25615 #, no-wrap
25616 msgid ""
25617 " int\n"
25618 " guestfs_chmod (guestfs_h *g,\n"
25619 "                int mode,\n"
25620 "                const char *path);\n"
25621 "\n"
25622 msgstr ""
25623
25624 #. type: =head2
25625 #: ../src/guestfs-actions.pod:1070
25626 msgid "guestfs_chown"
25627 msgstr ""
25628
25629 #. type: verbatim
25630 #: ../src/guestfs-actions.pod:1072
25631 #, no-wrap
25632 msgid ""
25633 " int\n"
25634 " guestfs_chown (guestfs_h *g,\n"
25635 "                int owner,\n"
25636 "                int group,\n"
25637 "                const char *path);\n"
25638 "\n"
25639 msgstr ""
25640
25641 #. type: =head2
25642 #: ../src/guestfs-actions.pod:1088
25643 msgid "guestfs_command"
25644 msgstr ""
25645
25646 #. type: verbatim
25647 #: ../src/guestfs-actions.pod:1090
25648 #, no-wrap
25649 msgid ""
25650 " char *\n"
25651 " guestfs_command (guestfs_h *g,\n"
25652 "                  char *const *arguments);\n"
25653 "\n"
25654 msgstr ""
25655
25656 #. type: textblock
25657 #: ../src/guestfs-actions.pod:1099
25658 msgid ""
25659 "The single parameter is an argv-style list of arguments.  The first element "
25660 "is the name of the program to run.  Subsequent elements are parameters.  The "
25661 "list must be non-empty (ie. must contain a program name).  Note that the "
25662 "command runs directly, and is I<not> invoked via the shell (see "
25663 "C<guestfs_sh>)."
25664 msgstr ""
25665
25666 #. type: textblock
25667 #: ../src/guestfs-actions.pod:1130 ../src/guestfs-actions.pod:1150
25668 #: ../src/guestfs-actions.pod:1726
25669 msgid "(Added in 0.9.1)"
25670 msgstr ""
25671
25672 #. type: =head2
25673 #: ../src/guestfs-actions.pod:1132
25674 msgid "guestfs_command_lines"
25675 msgstr ""
25676
25677 #. type: verbatim
25678 #: ../src/guestfs-actions.pod:1134
25679 #, no-wrap
25680 msgid ""
25681 " char **\n"
25682 " guestfs_command_lines (guestfs_h *g,\n"
25683 "                        char *const *arguments);\n"
25684 "\n"
25685 msgstr ""
25686
25687 #. type: textblock
25688 #: ../src/guestfs-actions.pod:1138
25689 msgid ""
25690 "This is the same as C<guestfs_command>, but splits the result into a list of "
25691 "lines."
25692 msgstr ""
25693
25694 #. type: textblock
25695 #: ../src/guestfs-actions.pod:1141
25696 msgid "See also: C<guestfs_sh_lines>"
25697 msgstr ""
25698
25699 #. type: =head2
25700 #: ../src/guestfs-actions.pod:1152
25701 #, fuzzy
25702 #| msgid "guestfs_zero_device"
25703 msgid "guestfs_compress_device_out"
25704 msgstr "guestfs_zero_device"
25705
25706 #. type: verbatim
25707 #: ../src/guestfs-actions.pod:1154
25708 #, fuzzy, no-wrap
25709 #| msgid ""
25710 #| " int\n"
25711 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
25712 #| "                             const char *device,\n"
25713 #| "                             const char *key,\n"
25714 #| "                             int keyslot,\n"
25715 #| "                             const char *cipher);\n"
25716 #| "\n"
25717 msgid ""
25718 " int\n"
25719 " guestfs_compress_device_out (guestfs_h *g,\n"
25720 "                              const char *ctype,\n"
25721 "                              const char *device,\n"
25722 "                              const char *zdevice,\n"
25723 "                              ...);\n"
25724 "\n"
25725 msgstr ""
25726 " int\n"
25727 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25728 "                             const char *device,\n"
25729 "                             const char *key,\n"
25730 "                             int keyslot,\n"
25731 "                             const char *cipher);\n"
25732 "\n"
25733
25734 #. type: verbatim
25735 #: ../src/guestfs-actions.pod:1166
25736 #, no-wrap
25737 msgid ""
25738 " GUESTFS_COMPRESS_DEVICE_OUT_LEVEL, int level,\n"
25739 "\n"
25740 msgstr ""
25741
25742 #. type: textblock
25743 #: ../src/guestfs-actions.pod:1171
25744 msgid ""
25745 "The C<ctype> and optional C<level> parameters have the same meaning as in "
25746 "C<guestfs_compress_out>."
25747 msgstr ""
25748
25749 #. type: textblock
25750 #: ../src/guestfs-actions.pod:1176 ../src/guestfs-actions.pod:1235
25751 #: ../src/guestfs-actions.pod:2271 ../src/guestfs-actions.pod:6583
25752 #, fuzzy
25753 #| msgid "(Added in 1.3.1)"
25754 msgid "(Added in 1.13.15)"
25755 msgstr "(Додано у 1.3.1)"
25756
25757 #. type: =head2
25758 #: ../src/guestfs-actions.pod:1178
25759 #, fuzzy
25760 #| msgid "guestfs_zero_device"
25761 msgid "guestfs_compress_device_out_va"
25762 msgstr "guestfs_zero_device"
25763
25764 #. type: verbatim
25765 #: ../src/guestfs-actions.pod:1180
25766 #, fuzzy, no-wrap
25767 #| msgid ""
25768 #| " int\n"
25769 #| " guestfs_luks_format_cipher (guestfs_h *g,\n"
25770 #| "                             const char *device,\n"
25771 #| "                             const char *key,\n"
25772 #| "                             int keyslot,\n"
25773 #| "                             const char *cipher);\n"
25774 #| "\n"
25775 msgid ""
25776 " int\n"
25777 " guestfs_compress_device_out_va (guestfs_h *g,\n"
25778 "                                 const char *ctype,\n"
25779 "                                 const char *device,\n"
25780 "                                 const char *zdevice,\n"
25781 "                                 va_list args);\n"
25782 "\n"
25783 msgstr ""
25784 " int\n"
25785 " guestfs_luks_format_cipher (guestfs_h *g,\n"
25786 "                             const char *device,\n"
25787 "                             const char *key,\n"
25788 "                             int keyslot,\n"
25789 "                             const char *cipher);\n"
25790 "\n"
25791
25792 #. type: textblock
25793 #: ../src/guestfs-actions.pod:1187
25794 msgid "This is the \"va_list variant\" of L</guestfs_compress_device_out>."
25795 msgstr ""
25796
25797 #. type: =head2
25798 #: ../src/guestfs-actions.pod:1191
25799 #, fuzzy
25800 #| msgid "guestfs_mkfs_opts_argv"
25801 msgid "guestfs_compress_device_out_argv"
25802 msgstr "guestfs_mkfs_opts_argv"
25803
25804 #. type: verbatim
25805 #: ../src/guestfs-actions.pod:1193
25806 #, fuzzy, no-wrap
25807 #| msgid ""
25808 #| " int\n"
25809 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25810 #| "                         const char *fstype,\n"
25811 #| "                         const char *device,\n"
25812 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
25813 #| "\n"
25814 msgid ""
25815 " int\n"
25816 " guestfs_compress_device_out_argv (guestfs_h *g,\n"
25817 "                                   const char *ctype,\n"
25818 "                                   const char *device,\n"
25819 "                                   const char *zdevice,\n"
25820 "                                   const struct guestfs_compress_device_out_argv *optargs);\n"
25821 "\n"
25822 msgstr ""
25823 " int\n"
25824 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25825 "                         const char *fstype,\n"
25826 "                         const char *device,\n"
25827 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
25828 "\n"
25829
25830 #. type: textblock
25831 #: ../src/guestfs-actions.pod:1200
25832 msgid "This is the \"argv variant\" of L</guestfs_compress_device_out>."
25833 msgstr ""
25834
25835 #. type: =head2
25836 #: ../src/guestfs-actions.pod:1204
25837 #, fuzzy
25838 #| msgid "guestfs_create"
25839 msgid "guestfs_compress_out"
25840 msgstr "guestfs_create"
25841
25842 #. type: verbatim
25843 #: ../src/guestfs-actions.pod:1206
25844 #, fuzzy, no-wrap
25845 #| msgid ""
25846 #| " int\n"
25847 #| " guestfs_luks_add_key (guestfs_h *g,\n"
25848 #| "                       const char *device,\n"
25849 #| "                       const char *key,\n"
25850 #| "                       const char *newkey,\n"
25851 #| "                       int keyslot);\n"
25852 #| "\n"
25853 msgid ""
25854 " int\n"
25855 " guestfs_compress_out (guestfs_h *g,\n"
25856 "                       const char *ctype,\n"
25857 "                       const char *file,\n"
25858 "                       const char *zfile,\n"
25859 "                       ...);\n"
25860 "\n"
25861 msgstr ""
25862 " int\n"
25863 " guestfs_luks_add_key (guestfs_h *g,\n"
25864 "                       const char *device,\n"
25865 "                       const char *key,\n"
25866 "                       const char *newkey,\n"
25867 "                       int keyslot);\n"
25868 "\n"
25869
25870 #. type: verbatim
25871 #: ../src/guestfs-actions.pod:1218
25872 #, no-wrap
25873 msgid ""
25874 " GUESTFS_COMPRESS_OUT_LEVEL, int level,\n"
25875 "\n"
25876 msgstr ""
25877
25878 #. type: =head2
25879 #: ../src/guestfs-actions.pod:1237
25880 #, fuzzy
25881 #| msgid "guestfs_mkfs_opts_va"
25882 msgid "guestfs_compress_out_va"
25883 msgstr "guestfs_mkfs_opts_va"
25884
25885 #. type: verbatim
25886 #: ../src/guestfs-actions.pod:1239
25887 #, fuzzy, no-wrap
25888 #| msgid ""
25889 #| " int\n"
25890 #| " guestfs_luks_add_key (guestfs_h *g,\n"
25891 #| "                       const char *device,\n"
25892 #| "                       const char *key,\n"
25893 #| "                       const char *newkey,\n"
25894 #| "                       int keyslot);\n"
25895 #| "\n"
25896 msgid ""
25897 " int\n"
25898 " guestfs_compress_out_va (guestfs_h *g,\n"
25899 "                          const char *ctype,\n"
25900 "                          const char *file,\n"
25901 "                          const char *zfile,\n"
25902 "                          va_list args);\n"
25903 "\n"
25904 msgstr ""
25905 " int\n"
25906 " guestfs_luks_add_key (guestfs_h *g,\n"
25907 "                       const char *device,\n"
25908 "                       const char *key,\n"
25909 "                       const char *newkey,\n"
25910 "                       int keyslot);\n"
25911 "\n"
25912
25913 #. type: textblock
25914 #: ../src/guestfs-actions.pod:1246
25915 msgid "This is the \"va_list variant\" of L</guestfs_compress_out>."
25916 msgstr ""
25917
25918 #. type: =head2
25919 #: ../src/guestfs-actions.pod:1250
25920 #, fuzzy
25921 #| msgid "guestfs_mkfs_opts_argv"
25922 msgid "guestfs_compress_out_argv"
25923 msgstr "guestfs_mkfs_opts_argv"
25924
25925 #. type: verbatim
25926 #: ../src/guestfs-actions.pod:1252
25927 #, fuzzy, no-wrap
25928 #| msgid ""
25929 #| " int\n"
25930 #| " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25931 #| "                         const char *fstype,\n"
25932 #| "                         const char *device,\n"
25933 #| "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
25934 #| "\n"
25935 msgid ""
25936 " int\n"
25937 " guestfs_compress_out_argv (guestfs_h *g,\n"
25938 "                            const char *ctype,\n"
25939 "                            const char *file,\n"
25940 "                            const char *zfile,\n"
25941 "                            const struct guestfs_compress_out_argv *optargs);\n"
25942 "\n"
25943 msgstr ""
25944 " int\n"
25945 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
25946 "                         const char *fstype,\n"
25947 "                         const char *device,\n"
25948 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
25949 "\n"
25950
25951 #. type: textblock
25952 #: ../src/guestfs-actions.pod:1259
25953 msgid "This is the \"argv variant\" of L</guestfs_compress_out>."
25954 msgstr ""
25955
25956 #. type: =head2
25957 #: ../src/guestfs-actions.pod:1263
25958 msgid "guestfs_config"
25959 msgstr ""
25960
25961 #. type: verbatim
25962 #: ../src/guestfs-actions.pod:1265
25963 #, no-wrap
25964 msgid ""
25965 " int\n"
25966 " guestfs_config (guestfs_h *g,\n"
25967 "                 const char *qemuparam,\n"
25968 "                 const char *qemuvalue);\n"
25969 "\n"
25970 msgstr ""
25971
25972 #. type: =head2
25973 #: ../src/guestfs-actions.pod:1283
25974 msgid "guestfs_copy_size"
25975 msgstr ""
25976
25977 #. type: verbatim
25978 #: ../src/guestfs-actions.pod:1285
25979 #, no-wrap
25980 msgid ""
25981 " int\n"
25982 " guestfs_copy_size (guestfs_h *g,\n"
25983 "                    const char *src,\n"
25984 "                    const char *dest,\n"
25985 "                    int64_t size);\n"
25986 "\n"
25987 msgstr ""
25988
25989 #. type: textblock
25990 #: ../src/guestfs-actions.pod:1299 ../src/guestfs-actions.pod:1422
25991 #: ../src/guestfs-actions.pod:1453 ../src/guestfs-actions.pod:1498
25992 #: ../src/guestfs-actions.pod:1875 ../src/guestfs-actions.pod:1897
25993 #: ../src/guestfs-actions.pod:3791 ../src/guestfs-actions.pod:7397
25994 #: ../src/guestfs-actions.pod:7431 ../src/guestfs-actions.pod:7938
25995 #: ../src/guestfs-actions.pod:7961
25996 msgid ""
25997 "This long-running command can generate progress notification messages so "
25998 "that the caller can display a progress bar or indicator.  To receive these "
25999 "messages, the caller must register a progress event callback.  See L<guestfs"
26000 "(3)/GUESTFS_EVENT_PROGRESS>."
26001 msgstr ""
26002
26003 #. type: textblock
26004 #: ../src/guestfs-actions.pod:1304 ../src/guestfs-actions.pod:4515
26005 #: ../src/guestfs-actions.pod:5890 ../src/guestfs-actions.pod:7632
26006 #: ../src/guestfs-actions.pod:7652 ../src/guestfs-actions.pod:7738
26007 msgid "(Added in 1.0.87)"
26008 msgstr ""
26009
26010 #. type: =head2
26011 #: ../src/guestfs-actions.pod:1306
26012 msgid "guestfs_cp"
26013 msgstr ""
26014
26015 #. type: verbatim
26016 #: ../src/guestfs-actions.pod:1308
26017 #, no-wrap
26018 msgid ""
26019 " int\n"
26020 " guestfs_cp (guestfs_h *g,\n"
26021 "             const char *src,\n"
26022 "             const char *dest);\n"
26023 "\n"
26024 msgstr ""
26025
26026 #. type: textblock
26027 #: ../src/guestfs-actions.pod:1318 ../src/guestfs-actions.pod:1332
26028 #: ../src/guestfs-actions.pod:1404 ../src/guestfs-actions.pod:1478
26029 #: ../src/guestfs-actions.pod:1592 ../src/guestfs-actions.pod:5259
26030 #: ../src/guestfs-actions.pod:5734
26031 msgid "(Added in 1.0.18)"
26032 msgstr ""
26033
26034 #. type: =head2
26035 #: ../src/guestfs-actions.pod:1320
26036 msgid "guestfs_cp_a"
26037 msgstr ""
26038
26039 #. type: verbatim
26040 #: ../src/guestfs-actions.pod:1322
26041 #, no-wrap
26042 msgid ""
26043 " int\n"
26044 " guestfs_cp_a (guestfs_h *g,\n"
26045 "               const char *src,\n"
26046 "               const char *dest);\n"
26047 "\n"
26048 msgstr ""
26049
26050 #. type: =head2
26051 #: ../src/guestfs-actions.pod:1334
26052 msgid "guestfs_dd"
26053 msgstr ""
26054
26055 #. type: verbatim
26056 #: ../src/guestfs-actions.pod:1336
26057 #, no-wrap
26058 msgid ""
26059 " int\n"
26060 " guestfs_dd (guestfs_h *g,\n"
26061 "             const char *src,\n"
26062 "             const char *dest);\n"
26063 "\n"
26064 msgstr ""
26065
26066 #. type: textblock
26067 #: ../src/guestfs-actions.pod:1346
26068 msgid ""
26069 "If the destination is a device, it must be as large or larger than the "
26070 "source file or device, otherwise the copy will fail.  This command cannot do "
26071 "partial copies (see C<guestfs_copy_size>)."
26072 msgstr ""
26073
26074 #. type: =head2
26075 #: ../src/guestfs-actions.pod:1354
26076 msgid "guestfs_df"
26077 msgstr ""
26078
26079 #. type: verbatim
26080 #: ../src/guestfs-actions.pod:1356
26081 #, no-wrap
26082 msgid ""
26083 " char *\n"
26084 " guestfs_df (guestfs_h *g);\n"
26085 "\n"
26086 msgstr ""
26087
26088 #. type: textblock
26089 #: ../src/guestfs-actions.pod:1361 ../src/guestfs-actions.pod:1378
26090 msgid ""
26091 "This command is mostly useful for interactive sessions.  It is I<not> "
26092 "intended that you try to parse the output string.  Use C<guestfs_statvfs> "
26093 "from programs."
26094 msgstr ""
26095
26096 #. type: textblock
26097 #: ../src/guestfs-actions.pod:1368 ../src/guestfs-actions.pod:1385
26098 #: ../src/guestfs-actions.pod:1503 ../src/guestfs-actions.pod:2510
26099 #: ../src/guestfs-actions.pod:2534 ../src/guestfs-actions.pod:2602
26100 #: ../src/guestfs-actions.pod:4625 ../src/guestfs-actions.pod:5159
26101 #: ../src/guestfs-actions.pod:7135 ../src/guestfs-actions.pod:7159
26102 #: ../src/guestfs-actions.pod:7778 ../src/guestfs-actions.pod:7791
26103 #: ../src/guestfs-actions.pod:7804
26104 msgid "(Added in 1.0.54)"
26105 msgstr ""
26106
26107 #. type: =head2
26108 #: ../src/guestfs-actions.pod:1370
26109 msgid "guestfs_df_h"
26110 msgstr ""
26111
26112 #. type: verbatim
26113 #: ../src/guestfs-actions.pod:1372
26114 #, no-wrap
26115 msgid ""
26116 " char *\n"
26117 " guestfs_df_h (guestfs_h *g);\n"
26118 "\n"
26119 msgstr ""
26120
26121 #. type: =head2
26122 #: ../src/guestfs-actions.pod:1387
26123 msgid "guestfs_dmesg"
26124 msgstr ""
26125
26126 #. type: verbatim
26127 #: ../src/guestfs-actions.pod:1389
26128 #, no-wrap
26129 msgid ""
26130 " char *\n"
26131 " guestfs_dmesg (guestfs_h *g);\n"
26132 "\n"
26133 msgstr ""
26134
26135 #. type: textblock
26136 #: ../src/guestfs-actions.pod:1396
26137 msgid ""
26138 "Another way to get the same information is to enable verbose messages with "
26139 "C<guestfs_set_verbose> or by setting the environment variable "
26140 "C<LIBGUESTFS_DEBUG=1> before running the program."
26141 msgstr ""
26142
26143 #. type: =head2
26144 #: ../src/guestfs-actions.pod:1406
26145 msgid "guestfs_download"
26146 msgstr ""
26147
26148 #. type: verbatim
26149 #: ../src/guestfs-actions.pod:1408
26150 #, no-wrap
26151 msgid ""
26152 " int\n"
26153 " guestfs_download (guestfs_h *g,\n"
26154 "                   const char *remotefilename,\n"
26155 "                   const char *filename);\n"
26156 "\n"
26157 msgstr ""
26158
26159 #. type: textblock
26160 #: ../src/guestfs-actions.pod:1418
26161 msgid "See also C<guestfs_upload>, C<guestfs_cat>."
26162 msgstr ""
26163
26164 #. type: =head2
26165 #: ../src/guestfs-actions.pod:1429
26166 msgid "guestfs_download_offset"
26167 msgstr ""
26168
26169 #. type: verbatim
26170 #: ../src/guestfs-actions.pod:1431
26171 #, no-wrap
26172 msgid ""
26173 " int\n"
26174 " guestfs_download_offset (guestfs_h *g,\n"
26175 "                          const char *remotefilename,\n"
26176 "                          const char *filename,\n"
26177 "                          int64_t offset,\n"
26178 "                          int64_t size);\n"
26179 "\n"
26180 msgstr ""
26181
26182 #. type: textblock
26183 #: ../src/guestfs-actions.pod:1444
26184 msgid ""
26185 "Note that there is no limit on the amount of data that can be downloaded "
26186 "with this call, unlike with C<guestfs_pread>, and this call always reads the "
26187 "full amount unless an error occurs."
26188 msgstr ""
26189
26190 #. type: textblock
26191 #: ../src/guestfs-actions.pod:1449
26192 msgid "See also C<guestfs_download>, C<guestfs_pread>."
26193 msgstr ""
26194
26195 #. type: textblock
26196 #: ../src/guestfs-actions.pod:1458 ../src/guestfs-actions.pod:7436
26197 msgid "(Added in 1.5.17)"
26198 msgstr ""
26199
26200 #. type: =head2
26201 #: ../src/guestfs-actions.pod:1460
26202 msgid "guestfs_drop_caches"
26203 msgstr ""
26204
26205 #. type: verbatim
26206 #: ../src/guestfs-actions.pod:1462
26207 #, no-wrap
26208 msgid ""
26209 " int\n"
26210 " guestfs_drop_caches (guestfs_h *g,\n"
26211 "                      int whattodrop);\n"
26212 "\n"
26213 msgstr ""
26214
26215 #. type: =head2
26216 #: ../src/guestfs-actions.pod:1480
26217 msgid "guestfs_du"
26218 msgstr ""
26219
26220 #. type: verbatim
26221 #: ../src/guestfs-actions.pod:1482
26222 #, no-wrap
26223 msgid ""
26224 " int64_t\n"
26225 " guestfs_du (guestfs_h *g,\n"
26226 "             const char *path);\n"
26227 "\n"
26228 msgstr ""
26229
26230 #. type: =head2
26231 #: ../src/guestfs-actions.pod:1505
26232 msgid "guestfs_e2fsck_f"
26233 msgstr ""
26234
26235 #. type: verbatim
26236 #: ../src/guestfs-actions.pod:1507
26237 #, no-wrap
26238 msgid ""
26239 " int\n"
26240 " guestfs_e2fsck_f (guestfs_h *g,\n"
26241 "                   const char *device);\n"
26242 "\n"
26243 msgstr ""
26244
26245 #. type: textblock
26246 #: ../src/guestfs-actions.pod:1515
26247 msgid ""
26248 "This command is only needed because of C<guestfs_resize2fs> (q.v.).  "
26249 "Normally you should use C<guestfs_fsck>."
26250 msgstr ""
26251
26252 #. type: textblock
26253 #: ../src/guestfs-actions.pod:1520
26254 msgid "(Added in 1.0.29)"
26255 msgstr ""
26256
26257 #. type: =head2
26258 #: ../src/guestfs-actions.pod:1522
26259 msgid "guestfs_echo_daemon"
26260 msgstr ""
26261
26262 #. type: verbatim
26263 #: ../src/guestfs-actions.pod:1524
26264 #, no-wrap
26265 msgid ""
26266 " char *\n"
26267 " guestfs_echo_daemon (guestfs_h *g,\n"
26268 "                      char *const *words);\n"
26269 "\n"
26270 msgstr ""
26271
26272 #. type: textblock
26273 #: ../src/guestfs-actions.pod:1533
26274 msgid "See also C<guestfs_ping_daemon>."
26275 msgstr ""
26276
26277 #. type: textblock
26278 #: ../src/guestfs-actions.pod:1538 ../src/guestfs-actions.pod:2296
26279 #: ../src/guestfs-actions.pod:6607
26280 msgid "(Added in 1.0.69)"
26281 msgstr ""
26282
26283 #. type: =head2
26284 #: ../src/guestfs-actions.pod:1540
26285 msgid "guestfs_egrep"
26286 msgstr ""
26287
26288 #. type: verbatim
26289 #: ../src/guestfs-actions.pod:1542
26290 #, no-wrap
26291 msgid ""
26292 " char **\n"
26293 " guestfs_egrep (guestfs_h *g,\n"
26294 "                const char *regex,\n"
26295 "                const char *path);\n"
26296 "\n"
26297 msgstr ""
26298
26299 #. type: textblock
26300 #: ../src/guestfs-actions.pod:1557 ../src/guestfs-actions.pod:1576
26301 #: ../src/guestfs-actions.pod:1633 ../src/guestfs-actions.pod:1679
26302 #: ../src/guestfs-actions.pod:1698 ../src/guestfs-actions.pod:2426
26303 #: ../src/guestfs-actions.pod:2445 ../src/guestfs-actions.pod:2623
26304 #: ../src/guestfs-actions.pod:2636 ../src/guestfs-actions.pod:2651
26305 #: ../src/guestfs-actions.pod:2697 ../src/guestfs-actions.pod:2719
26306 #: ../src/guestfs-actions.pod:2732 ../src/guestfs-actions.pod:4005
26307 #: ../src/guestfs-actions.pod:4019 ../src/guestfs-actions.pod:4032
26308 #: ../src/guestfs-actions.pod:4046 ../src/guestfs-actions.pod:5047
26309 #: ../src/guestfs-actions.pod:6068 ../src/guestfs-actions.pod:6117
26310 #: ../src/guestfs-actions.pod:7003 ../src/guestfs-actions.pod:7015
26311 #: ../src/guestfs-actions.pod:7028 ../src/guestfs-actions.pod:7041
26312 #: ../src/guestfs-actions.pod:7063 ../src/guestfs-actions.pod:7076
26313 #: ../src/guestfs-actions.pod:7089 ../src/guestfs-actions.pod:7102
26314 #: ../src/guestfs-actions.pod:7896 ../src/guestfs-actions.pod:7915
26315 #: ../src/guestfs-actions.pod:8009 ../src/guestfs-actions.pod:8028
26316 #: ../src/guestfs-actions.pod:8074 ../src/guestfs-actions.pod:8093
26317 msgid "(Added in 1.0.66)"
26318 msgstr ""
26319
26320 #. type: =head2
26321 #: ../src/guestfs-actions.pod:1559
26322 msgid "guestfs_egrepi"
26323 msgstr ""
26324
26325 #. type: verbatim
26326 #: ../src/guestfs-actions.pod:1561
26327 #, no-wrap
26328 msgid ""
26329 " char **\n"
26330 " guestfs_egrepi (guestfs_h *g,\n"
26331 "                 const char *regex,\n"
26332 "                 const char *path);\n"
26333 "\n"
26334 msgstr ""
26335
26336 #. type: =head2
26337 #: ../src/guestfs-actions.pod:1578
26338 msgid "guestfs_equal"
26339 msgstr ""
26340
26341 #. type: verbatim
26342 #: ../src/guestfs-actions.pod:1580
26343 #, no-wrap
26344 msgid ""
26345 " int\n"
26346 " guestfs_equal (guestfs_h *g,\n"
26347 "                const char *file1,\n"
26348 "                const char *file2);\n"
26349 "\n"
26350 msgstr ""
26351
26352 #. type: =head2
26353 #: ../src/guestfs-actions.pod:1594
26354 msgid "guestfs_exists"
26355 msgstr ""
26356
26357 #. type: verbatim
26358 #: ../src/guestfs-actions.pod:1596
26359 #, no-wrap
26360 msgid ""
26361 " int\n"
26362 " guestfs_exists (guestfs_h *g,\n"
26363 "                 const char *path);\n"
26364 "\n"
26365 msgstr ""
26366
26367 #. type: textblock
26368 #: ../src/guestfs-actions.pod:1603
26369 msgid "See also C<guestfs_is_file>, C<guestfs_is_dir>, C<guestfs_stat>."
26370 msgstr ""
26371
26372 #. type: =head2
26373 #: ../src/guestfs-actions.pod:1609
26374 msgid "guestfs_fallocate"
26375 msgstr ""
26376
26377 #. type: verbatim
26378 #: ../src/guestfs-actions.pod:1611
26379 #, no-wrap
26380 msgid ""
26381 " int\n"
26382 " guestfs_fallocate (guestfs_h *g,\n"
26383 "                    const char *path,\n"
26384 "                    int len);\n"
26385 "\n"
26386 msgstr ""
26387
26388 #. type: textblock
26389 #: ../src/guestfs-actions.pod:1616
26390 msgid ""
26391 "I<This function is deprecated.> In new code, use the L</guestfs_fallocate64> "
26392 "call instead."
26393 msgstr ""
26394
26395 #. type: =head2
26396 #: ../src/guestfs-actions.pod:1635
26397 msgid "guestfs_fallocate64"
26398 msgstr ""
26399
26400 #. type: verbatim
26401 #: ../src/guestfs-actions.pod:1637
26402 #, no-wrap
26403 msgid ""
26404 " int\n"
26405 " guestfs_fallocate64 (guestfs_h *g,\n"
26406 "                      const char *path,\n"
26407 "                      int64_t len);\n"
26408 "\n"
26409 msgstr ""
26410
26411 #. type: textblock
26412 #: ../src/guestfs-actions.pod:1646
26413 msgid ""
26414 "Note that this call allocates disk blocks for the file.  To create a sparse "
26415 "file use C<guestfs_truncate_size> instead."
26416 msgstr ""
26417
26418 #. type: textblock
26419 #: ../src/guestfs-actions.pod:1649
26420 msgid ""
26421 "The deprecated call C<guestfs_fallocate> does the same, but owing to an "
26422 "oversight it only allowed 30 bit lengths to be specified, effectively "
26423 "limiting the maximum size of files created through that call to 1GB."
26424 msgstr ""
26425
26426 #. type: textblock
26427 #: ../src/guestfs-actions.pod:1660
26428 msgid "(Added in 1.3.17)"
26429 msgstr ""
26430
26431 #. type: =head2
26432 #: ../src/guestfs-actions.pod:1662
26433 msgid "guestfs_fgrep"
26434 msgstr ""
26435
26436 #. type: verbatim
26437 #: ../src/guestfs-actions.pod:1664
26438 #, no-wrap
26439 msgid ""
26440 " char **\n"
26441 " guestfs_fgrep (guestfs_h *g,\n"
26442 "                const char *pattern,\n"
26443 "                const char *path);\n"
26444 "\n"
26445 msgstr ""
26446
26447 #. type: =head2
26448 #: ../src/guestfs-actions.pod:1681
26449 msgid "guestfs_fgrepi"
26450 msgstr ""
26451
26452 #. type: verbatim
26453 #: ../src/guestfs-actions.pod:1683
26454 #, no-wrap
26455 msgid ""
26456 " char **\n"
26457 " guestfs_fgrepi (guestfs_h *g,\n"
26458 "                 const char *pattern,\n"
26459 "                 const char *path);\n"
26460 "\n"
26461 msgstr ""
26462
26463 #. type: =head2
26464 #: ../src/guestfs-actions.pod:1700
26465 msgid "guestfs_file"
26466 msgstr ""
26467
26468 #. type: verbatim
26469 #: ../src/guestfs-actions.pod:1702
26470 #, no-wrap
26471 msgid ""
26472 " char *\n"
26473 " guestfs_file (guestfs_h *g,\n"
26474 "               const char *path);\n"
26475 "\n"
26476 msgstr ""
26477
26478 #. type: textblock
26479 #: ../src/guestfs-actions.pod:1720
26480 msgid ""
26481 "See also: L<file(1)>, C<guestfs_vfs_type>, C<guestfs_lstat>, "
26482 "C<guestfs_is_file>, C<guestfs_is_blockdev> (etc), C<guestfs_is_zero>."
26483 msgstr ""
26484
26485 #. type: =head2
26486 #: ../src/guestfs-actions.pod:1728
26487 msgid "guestfs_file_architecture"
26488 msgstr ""
26489
26490 #. type: verbatim
26491 #: ../src/guestfs-actions.pod:1730
26492 #, no-wrap
26493 msgid ""
26494 " char *\n"
26495 " guestfs_file_architecture (guestfs_h *g,\n"
26496 "                            const char *filename);\n"
26497 "\n"
26498 msgstr ""
26499
26500 #. type: textblock
26501 #: ../src/guestfs-actions.pod:1838 ../src/guestfs-actions.pod:2001
26502 #: ../src/guestfs-actions.pod:2018 ../src/guestfs-actions.pod:2752
26503 #: ../src/guestfs-actions.pod:2846 ../src/guestfs-actions.pod:2912
26504 #: ../src/guestfs-actions.pod:3099 ../src/guestfs-actions.pod:3117
26505 #: ../src/guestfs-actions.pod:3157 ../src/guestfs-actions.pod:3232
26506 #: ../src/guestfs-actions.pod:3325 ../src/guestfs-actions.pod:3562
26507 #: ../src/guestfs-actions.pod:3694
26508 msgid "(Added in 1.5.3)"
26509 msgstr ""
26510
26511 #. type: =head2
26512 #: ../src/guestfs-actions.pod:1840
26513 msgid "guestfs_filesize"
26514 msgstr ""
26515
26516 #. type: verbatim
26517 #: ../src/guestfs-actions.pod:1842
26518 #, no-wrap
26519 msgid ""
26520 " int64_t\n"
26521 " guestfs_filesize (guestfs_h *g,\n"
26522 "                   const char *file);\n"
26523 "\n"
26524 msgstr ""
26525
26526 #. type: textblock
26527 #: ../src/guestfs-actions.pod:1848
26528 msgid ""
26529 "To get other stats about a file, use C<guestfs_stat>, C<guestfs_lstat>, "
26530 "C<guestfs_is_dir>, C<guestfs_is_file> etc.  To get the size of block "
26531 "devices, use C<guestfs_blockdev_getsize64>."
26532 msgstr ""
26533
26534 #. type: textblock
26535 #: ../src/guestfs-actions.pod:1854
26536 msgid "(Added in 1.0.82)"
26537 msgstr ""
26538
26539 #. type: =head2
26540 #: ../src/guestfs-actions.pod:1856
26541 msgid "guestfs_fill"
26542 msgstr ""
26543
26544 #. type: verbatim
26545 #: ../src/guestfs-actions.pod:1858
26546 #, no-wrap
26547 msgid ""
26548 " int\n"
26549 " guestfs_fill (guestfs_h *g,\n"
26550 "               int c,\n"
26551 "               int len,\n"
26552 "               const char *path);\n"
26553 "\n"
26554 msgstr ""
26555
26556 #. type: textblock
26557 #: ../src/guestfs-actions.pod:1868
26558 msgid ""
26559 "To fill a file with zero bytes (sparsely), it is much more efficient to use "
26560 "C<guestfs_truncate_size>.  To create a file with a pattern of repeating "
26561 "bytes use C<guestfs_fill_pattern>."
26562 msgstr ""
26563
26564 #. type: textblock
26565 #: ../src/guestfs-actions.pod:1880
26566 msgid "(Added in 1.0.79)"
26567 msgstr ""
26568
26569 #. type: =head2
26570 #: ../src/guestfs-actions.pod:1882
26571 msgid "guestfs_fill_pattern"
26572 msgstr ""
26573
26574 #. type: verbatim
26575 #: ../src/guestfs-actions.pod:1884
26576 #, no-wrap
26577 msgid ""
26578 " int\n"
26579 " guestfs_fill_pattern (guestfs_h *g,\n"
26580 "                       const char *pattern,\n"
26581 "                       int len,\n"
26582 "                       const char *path);\n"
26583 "\n"
26584 msgstr ""
26585
26586 #. type: textblock
26587 #: ../src/guestfs-actions.pod:1890
26588 msgid ""
26589 "This function is like C<guestfs_fill> except that it creates a new file of "
26590 "length C<len> containing the repeating pattern of bytes in C<pattern>.  The "
26591 "pattern is truncated if necessary to ensure the length of the file is "
26592 "exactly C<len> bytes."
26593 msgstr ""
26594
26595 #. type: textblock
26596 #: ../src/guestfs-actions.pod:1902
26597 msgid "(Added in 1.3.12)"
26598 msgstr ""
26599
26600 #. type: =head2
26601 #: ../src/guestfs-actions.pod:1904
26602 msgid "guestfs_find"
26603 msgstr ""
26604
26605 #. type: verbatim
26606 #: ../src/guestfs-actions.pod:1906
26607 #, no-wrap
26608 msgid ""
26609 " char **\n"
26610 " guestfs_find (guestfs_h *g,\n"
26611 "               const char *directory);\n"
26612 "\n"
26613 msgstr ""
26614
26615 #. type: textblock
26616 #: ../src/guestfs-actions.pod:1922
26617 msgid ""
26618 "then the returned list from C<guestfs_find> C</tmp> would be 4 elements:"
26619 msgstr ""
26620
26621 #. type: textblock
26622 #: ../src/guestfs-actions.pod:1935
26623 msgid "See also C<guestfs_find0>."
26624 msgstr ""
26625
26626 #. type: textblock
26627 #: ../src/guestfs-actions.pod:1944 ../src/guestfs-actions.pod:4452
26628 #: ../src/guestfs-actions.pod:6152
26629 msgid "(Added in 1.0.27)"
26630 msgstr ""
26631
26632 #. type: =head2
26633 #: ../src/guestfs-actions.pod:1946
26634 msgid "guestfs_find0"
26635 msgstr ""
26636
26637 #. type: verbatim
26638 #: ../src/guestfs-actions.pod:1948
26639 #, no-wrap
26640 msgid ""
26641 " int\n"
26642 " guestfs_find0 (guestfs_h *g,\n"
26643 "                const char *directory,\n"
26644 "                const char *files);\n"
26645 "\n"
26646 msgstr ""
26647
26648 #. type: textblock
26649 #: ../src/guestfs-actions.pod:1957
26650 msgid ""
26651 "This command works the same way as C<guestfs_find> with the following "
26652 "exceptions:"
26653 msgstr ""
26654
26655 #. type: textblock
26656 #: ../src/guestfs-actions.pod:1984
26657 msgid "(Added in 1.0.74)"
26658 msgstr ""
26659
26660 #. type: =head2
26661 #: ../src/guestfs-actions.pod:1986
26662 msgid "guestfs_findfs_label"
26663 msgstr ""
26664
26665 #. type: verbatim
26666 #: ../src/guestfs-actions.pod:1988
26667 #, no-wrap
26668 msgid ""
26669 " char *\n"
26670 " guestfs_findfs_label (guestfs_h *g,\n"
26671 "                       const char *label);\n"
26672 "\n"
26673 msgstr ""
26674
26675 #. type: textblock
26676 #: ../src/guestfs-actions.pod:1996
26677 msgid "To find the label of a filesystem, use C<guestfs_vfs_label>."
26678 msgstr ""
26679
26680 #. type: =head2
26681 #: ../src/guestfs-actions.pod:2003
26682 msgid "guestfs_findfs_uuid"
26683 msgstr ""
26684
26685 #. type: verbatim
26686 #: ../src/guestfs-actions.pod:2005
26687 #, no-wrap
26688 msgid ""
26689 " char *\n"
26690 " guestfs_findfs_uuid (guestfs_h *g,\n"
26691 "                      const char *uuid);\n"
26692 "\n"
26693 msgstr ""
26694
26695 #. type: textblock
26696 #: ../src/guestfs-actions.pod:2013
26697 msgid "To find the UUID of a filesystem, use C<guestfs_vfs_uuid>."
26698 msgstr ""
26699
26700 #. type: =head2
26701 #: ../src/guestfs-actions.pod:2020
26702 msgid "guestfs_fsck"
26703 msgstr ""
26704
26705 #. type: verbatim
26706 #: ../src/guestfs-actions.pod:2022
26707 #, no-wrap
26708 msgid ""
26709 " int\n"
26710 " guestfs_fsck (guestfs_h *g,\n"
26711 "               const char *fstype,\n"
26712 "               const char *device);\n"
26713 "\n"
26714 msgstr ""
26715
26716 #. type: textblock
26717 #: ../src/guestfs-actions.pod:2057 ../src/guestfs-actions.pod:7943
26718 msgid "(Added in 1.0.16)"
26719 msgstr ""
26720
26721 #. type: =head2
26722 #: ../src/guestfs-actions.pod:2059
26723 msgid "guestfs_get_append"
26724 msgstr ""
26725
26726 #. type: verbatim
26727 #: ../src/guestfs-actions.pod:2061
26728 #, no-wrap
26729 msgid ""
26730 " const char *\n"
26731 " guestfs_get_append (guestfs_h *g);\n"
26732 "\n"
26733 msgstr ""
26734
26735 #. type: textblock
26736 #: ../src/guestfs-actions.pod:2069
26737 msgid ""
26738 "This function returns a string which may be NULL.  There is no way to return "
26739 "an error from this function.  The string is owned by the guest handle and "
26740 "must I<not> be freed."
26741 msgstr ""
26742
26743 #. type: textblock
26744 #: ../src/guestfs-actions.pod:2073 ../src/guestfs-actions.pod:5830
26745 #: ../src/guestfs-actions.pod:6312 ../src/guestfs-actions.pod:6770
26746 #: ../src/guestfs-actions.pod:6789 ../src/guestfs-actions.pod:6805
26747 #: ../src/guestfs-actions.pod:6829 ../src/guestfs-actions.pod:7583
26748 #: ../src/guestfs-actions.pod:7598 ../src/guestfs-actions.pod:7990
26749 msgid "(Added in 1.0.26)"
26750 msgstr ""
26751
26752 #. type: =head2
26753 #: ../src/guestfs-actions.pod:2075
26754 msgid "guestfs_get_attach_method"
26755 msgstr ""
26756
26757 #. type: verbatim
26758 #: ../src/guestfs-actions.pod:2077
26759 #, no-wrap
26760 msgid ""
26761 " char *\n"
26762 " guestfs_get_attach_method (guestfs_h *g);\n"
26763 "\n"
26764 msgstr ""
26765
26766 #. type: textblock
26767 #: ../src/guestfs-actions.pod:2080
26768 msgid "Return the current attach method.  See C<guestfs_set_attach_method>."
26769 msgstr ""
26770
26771 #. type: textblock
26772 #: ../src/guestfs-actions.pod:2085 ../src/guestfs-actions.pod:6342
26773 msgid "(Added in 1.9.8)"
26774 msgstr ""
26775
26776 #. type: =head2
26777 #: ../src/guestfs-actions.pod:2087
26778 msgid "guestfs_get_autosync"
26779 msgstr ""
26780
26781 #. type: verbatim
26782 #: ../src/guestfs-actions.pod:2089
26783 #, no-wrap
26784 msgid ""
26785 " int\n"
26786 " guestfs_get_autosync (guestfs_h *g);\n"
26787 "\n"
26788 msgstr ""
26789
26790 #. type: =head2
26791 #: ../src/guestfs-actions.pod:2098
26792 msgid "guestfs_get_direct"
26793 msgstr ""
26794
26795 #. type: verbatim
26796 #: ../src/guestfs-actions.pod:2100
26797 #, no-wrap
26798 msgid ""
26799 " int\n"
26800 " guestfs_get_direct (guestfs_h *g);\n"
26801 "\n"
26802 msgstr ""
26803
26804 #. type: textblock
26805 #: ../src/guestfs-actions.pod:2107 ../src/guestfs-actions.pod:6383
26806 msgid "(Added in 1.0.72)"
26807 msgstr ""
26808
26809 #. type: =head2
26810 #: ../src/guestfs-actions.pod:2109
26811 msgid "guestfs_get_e2label"
26812 msgstr ""
26813
26814 #. type: verbatim
26815 #: ../src/guestfs-actions.pod:2111
26816 #, no-wrap
26817 msgid ""
26818 " char *\n"
26819 " guestfs_get_e2label (guestfs_h *g,\n"
26820 "                      const char *device);\n"
26821 "\n"
26822 msgstr ""
26823
26824 #. type: textblock
26825 #: ../src/guestfs-actions.pod:2115
26826 msgid ""
26827 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_label> "
26828 "call instead."
26829 msgstr ""
26830
26831 #. type: textblock
26832 #: ../src/guestfs-actions.pod:2128 ../src/guestfs-actions.pod:2149
26833 #: ../src/guestfs-actions.pod:6401 ../src/guestfs-actions.pod:6420
26834 msgid "(Added in 1.0.15)"
26835 msgstr ""
26836
26837 #. type: =head2
26838 #: ../src/guestfs-actions.pod:2130
26839 msgid "guestfs_get_e2uuid"
26840 msgstr ""
26841
26842 #. type: verbatim
26843 #: ../src/guestfs-actions.pod:2132
26844 #, no-wrap
26845 msgid ""
26846 " char *\n"
26847 " guestfs_get_e2uuid (guestfs_h *g,\n"
26848 "                     const char *device);\n"
26849 "\n"
26850 msgstr ""
26851
26852 #. type: textblock
26853 #: ../src/guestfs-actions.pod:2136
26854 msgid ""
26855 "I<This function is deprecated.> In new code, use the L</guestfs_vfs_uuid> "
26856 "call instead."
26857 msgstr ""
26858
26859 #. type: =head2
26860 #: ../src/guestfs-actions.pod:2151
26861 msgid "guestfs_get_memsize"
26862 msgstr ""
26863
26864 #. type: verbatim
26865 #: ../src/guestfs-actions.pod:2153
26866 #, no-wrap
26867 msgid ""
26868 " int\n"
26869 " guestfs_get_memsize (guestfs_h *g);\n"
26870 "\n"
26871 msgstr ""
26872
26873 #. type: textblock
26874 #: ../src/guestfs-actions.pod:2159
26875 msgid ""
26876 "If C<guestfs_set_memsize> was not called on this handle, and if "
26877 "C<LIBGUESTFS_MEMSIZE> was not set, then this returns the compiled-in default "
26878 "value for memsize."
26879 msgstr ""
26880
26881 #. type: textblock
26882 #: ../src/guestfs-actions.pod:2168 ../src/guestfs-actions.pod:4743
26883 #: ../src/guestfs-actions.pod:4952 ../src/guestfs-actions.pod:4971
26884 #: ../src/guestfs-actions.pod:4990 ../src/guestfs-actions.pod:5002
26885 #: ../src/guestfs-actions.pod:5019 ../src/guestfs-actions.pod:5032
26886 #: ../src/guestfs-actions.pod:6055 ../src/guestfs-actions.pod:6441
26887 #: ../src/guestfs-actions.pod:6737 ../src/guestfs-actions.pod:7352
26888 msgid "(Added in 1.0.55)"
26889 msgstr ""
26890
26891 #. type: =head2
26892 #: ../src/guestfs-actions.pod:2170
26893 msgid "guestfs_get_network"
26894 msgstr ""
26895
26896 #. type: verbatim
26897 #: ../src/guestfs-actions.pod:2172
26898 #, no-wrap
26899 msgid ""
26900 " int\n"
26901 " guestfs_get_network (guestfs_h *g);\n"
26902 "\n"
26903 msgstr ""
26904
26905 #. type: textblock
26906 #: ../src/guestfs-actions.pod:2179 ../src/guestfs-actions.pod:6460
26907 msgid "(Added in 1.5.4)"
26908 msgstr ""
26909
26910 #. type: =head2
26911 #: ../src/guestfs-actions.pod:2181
26912 msgid "guestfs_get_path"
26913 msgstr ""
26914
26915 #. type: verbatim
26916 #: ../src/guestfs-actions.pod:2183
26917 #, no-wrap
26918 msgid ""
26919 " const char *\n"
26920 " guestfs_get_path (guestfs_h *g);\n"
26921 "\n"
26922 msgstr ""
26923
26924 #. type: textblock
26925 #: ../src/guestfs-actions.pod:2191 ../src/guestfs-actions.pod:2231
26926 msgid ""
26927 "This function returns a string, or NULL on error.  The string is owned by "
26928 "the guest handle and must I<not> be freed."
26929 msgstr ""
26930
26931 #. type: =head2
26932 #: ../src/guestfs-actions.pod:2196
26933 msgid "guestfs_get_pgroup"
26934 msgstr ""
26935
26936 #. type: verbatim
26937 #: ../src/guestfs-actions.pod:2198
26938 #, no-wrap
26939 msgid ""
26940 " int\n"
26941 " guestfs_get_pgroup (guestfs_h *g);\n"
26942 "\n"
26943 msgstr ""
26944
26945 #. type: textblock
26946 #: ../src/guestfs-actions.pod:2205 ../src/guestfs-actions.pod:6496
26947 #: ../src/guestfs-actions.pod:7844
26948 #, fuzzy
26949 #| msgid "(Added in 1.5.1)"
26950 msgid "(Added in 1.11.18)"
26951 msgstr "(Додано у 1.5.1)"
26952
26953 #. type: =head2
26954 #: ../src/guestfs-actions.pod:2207
26955 msgid "guestfs_get_pid"
26956 msgstr ""
26957
26958 #. type: verbatim
26959 #: ../src/guestfs-actions.pod:2209
26960 #, no-wrap
26961 msgid ""
26962 " int\n"
26963 " guestfs_get_pid (guestfs_h *g);\n"
26964 "\n"
26965 msgstr ""
26966
26967 #. type: textblock
26968 #: ../src/guestfs-actions.pod:2219
26969 msgid "(Added in 1.0.56)"
26970 msgstr ""
26971
26972 #. type: =head2
26973 #: ../src/guestfs-actions.pod:2221
26974 msgid "guestfs_get_qemu"
26975 msgstr ""
26976
26977 #. type: verbatim
26978 #: ../src/guestfs-actions.pod:2223
26979 #, no-wrap
26980 msgid ""
26981 " const char *\n"
26982 " guestfs_get_qemu (guestfs_h *g);\n"
26983 "\n"
26984 msgstr ""
26985
26986 #. type: textblock
26987 #: ../src/guestfs-actions.pod:2234 ../src/guestfs-actions.pod:6524
26988 msgid "(Added in 1.0.6)"
26989 msgstr ""
26990
26991 #. type: =head2
26992 #: ../src/guestfs-actions.pod:2236
26993 msgid "guestfs_get_recovery_proc"
26994 msgstr ""
26995
26996 #. type: verbatim
26997 #: ../src/guestfs-actions.pod:2238
26998 #, no-wrap
26999 msgid ""
27000 " int\n"
27001 " guestfs_get_recovery_proc (guestfs_h *g);\n"
27002 "\n"
27003 msgstr ""
27004
27005 #. type: textblock
27006 #: ../src/guestfs-actions.pod:2245 ../src/guestfs-actions.pod:3816
27007 #: ../src/guestfs-actions.pod:4147 ../src/guestfs-actions.pod:4550
27008 #: ../src/guestfs-actions.pod:4582 ../src/guestfs-actions.pod:5760
27009 #: ../src/guestfs-actions.pod:6103 ../src/guestfs-actions.pod:6548
27010 #: ../src/guestfs-actions.pod:7255 ../src/guestfs-actions.pod:7275
27011 #: ../src/guestfs-actions.pod:7467
27012 msgid "(Added in 1.0.77)"
27013 msgstr ""
27014
27015 #. type: =head2
27016 #: ../src/guestfs-actions.pod:2247
27017 msgid "guestfs_get_selinux"
27018 msgstr ""
27019
27020 #. type: verbatim
27021 #: ../src/guestfs-actions.pod:2249
27022 #, no-wrap
27023 msgid ""
27024 " int\n"
27025 " guestfs_get_selinux (guestfs_h *g);\n"
27026 "\n"
27027 msgstr ""
27028
27029 #. type: textblock
27030 #: ../src/guestfs-actions.pod:2252
27031 msgid ""
27032 "This returns the current setting of the selinux flag which is passed to the "
27033 "appliance at boot time.  See C<guestfs_set_selinux>."
27034 msgstr ""
27035
27036 #. type: textblock
27037 #: ../src/guestfs-actions.pod:2260 ../src/guestfs-actions.pod:2334
27038 #: ../src/guestfs-actions.pod:6567 ../src/guestfs-actions.pod:6641
27039 msgid "(Added in 1.0.67)"
27040 msgstr ""
27041
27042 #. type: =head2
27043 #: ../src/guestfs-actions.pod:2262
27044 #, fuzzy
27045 #| msgid "guestfs_zgrep"
27046 msgid "guestfs_get_smp"
27047 msgstr "guestfs_zgrep"
27048
27049 #. type: verbatim
27050 #: ../src/guestfs-actions.pod:2264
27051 #, fuzzy, no-wrap
27052 #| msgid ""
27053 #| " int guestfs_last_errno (guestfs_h *g);\n"
27054 #| "\n"
27055 msgid ""
27056 " int\n"
27057 " guestfs_get_smp (guestfs_h *g);\n"
27058 "\n"
27059 msgstr ""
27060 " int guestfs_last_errno (guestfs_h *g);\n"
27061 "\n"
27062
27063 #. type: =head2
27064 #: ../src/guestfs-actions.pod:2273
27065 msgid "guestfs_get_state"
27066 msgstr ""
27067
27068 #. type: verbatim
27069 #: ../src/guestfs-actions.pod:2275
27070 #, no-wrap
27071 msgid ""
27072 " int\n"
27073 " guestfs_get_state (guestfs_h *g);\n"
27074 "\n"
27075 msgstr ""
27076
27077 #. type: =head2
27078 #: ../src/guestfs-actions.pod:2287
27079 msgid "guestfs_get_trace"
27080 msgstr ""
27081
27082 #. type: verbatim
27083 #: ../src/guestfs-actions.pod:2289
27084 #, no-wrap
27085 msgid ""
27086 " int\n"
27087 " guestfs_get_trace (guestfs_h *g);\n"
27088 "\n"
27089 msgstr ""
27090
27091 #. type: =head2
27092 #: ../src/guestfs-actions.pod:2298
27093 msgid "guestfs_get_umask"
27094 msgstr ""
27095
27096 #. type: verbatim
27097 #: ../src/guestfs-actions.pod:2300
27098 #, no-wrap
27099 msgid ""
27100 " int\n"
27101 " guestfs_get_umask (guestfs_h *g);\n"
27102 "\n"
27103 msgstr ""
27104
27105 #. type: textblock
27106 #: ../src/guestfs-actions.pod:2303
27107 msgid ""
27108 "Return the current umask.  By default the umask is C<022> unless it has been "
27109 "set by calling C<guestfs_umask>."
27110 msgstr ""
27111
27112 #. type: =head2
27113 #: ../src/guestfs-actions.pod:2310
27114 msgid "guestfs_get_verbose"
27115 msgstr ""
27116
27117 #. type: verbatim
27118 #: ../src/guestfs-actions.pod:2312
27119 #, no-wrap
27120 msgid ""
27121 " int\n"
27122 " guestfs_get_verbose (guestfs_h *g);\n"
27123 "\n"
27124 msgstr ""
27125
27126 #. type: =head2
27127 #: ../src/guestfs-actions.pod:2321
27128 msgid "guestfs_getcon"
27129 msgstr ""
27130
27131 #. type: verbatim
27132 #: ../src/guestfs-actions.pod:2323
27133 #, no-wrap
27134 msgid ""
27135 " char *\n"
27136 " guestfs_getcon (guestfs_h *g);\n"
27137 "\n"
27138 msgstr ""
27139
27140 #. type: textblock
27141 #: ../src/guestfs-actions.pod:2328
27142 msgid ""
27143 "See the documentation about SELINUX in L<guestfs(3)>, and C<guestfs_setcon>"
27144 msgstr ""
27145
27146 #. type: =head2
27147 #: ../src/guestfs-actions.pod:2336
27148 msgid "guestfs_getxattr"
27149 msgstr ""
27150
27151 #. type: verbatim
27152 #: ../src/guestfs-actions.pod:2338
27153 #, no-wrap
27154 msgid ""
27155 " char *\n"
27156 " guestfs_getxattr (guestfs_h *g,\n"
27157 "                   const char *path,\n"
27158 "                   const char *name,\n"
27159 "                   size_t *size_r);\n"
27160 "\n"
27161 msgstr ""
27162
27163 #. type: textblock
27164 #: ../src/guestfs-actions.pod:2344
27165 msgid ""
27166 "Get a single extended attribute from file C<path> named C<name>.  This call "
27167 "follows symlinks.  If you want to lookup an extended attribute for the "
27168 "symlink itself, use C<guestfs_lgetxattr>."
27169 msgstr ""
27170
27171 #. type: textblock
27172 #: ../src/guestfs-actions.pod:2348 ../src/guestfs-actions.pod:3830
27173 msgid ""
27174 "Normally it is better to get all extended attributes from a file in one go "
27175 "by calling C<guestfs_getxattrs>.  However some Linux filesystem "
27176 "implementations are buggy and do not provide a way to list out attributes.  "
27177 "For these filesystems (notably ntfs-3g)  you have to know the names of the "
27178 "extended attributes you want in advance and call this function."
27179 msgstr ""
27180
27181 #. type: textblock
27182 #: ../src/guestfs-actions.pod:2358
27183 msgid "See also: C<guestfs_getxattrs>, C<guestfs_lgetxattr>, L<attr(5)>."
27184 msgstr ""
27185
27186 #. type: textblock
27187 #: ../src/guestfs-actions.pod:2360 ../src/guestfs-actions.pod:2573
27188 #: ../src/guestfs-actions.pod:3047 ../src/guestfs-actions.pod:3842
27189 #: ../src/guestfs-actions.pod:5753 ../src/guestfs-actions.pod:5779
27190 #: ../src/guestfs-actions.pod:5960
27191 msgid ""
27192 "This function returns a buffer, or NULL on error.  The size of the returned "
27193 "buffer is written to C<*size_r>.  I<The caller must free the returned buffer "
27194 "after use>."
27195 msgstr ""
27196
27197 #. type: textblock
27198 #: ../src/guestfs-actions.pod:2364 ../src/guestfs-actions.pod:3846
27199 msgid "(Added in 1.7.24)"
27200 msgstr ""
27201
27202 #. type: =head2
27203 #: ../src/guestfs-actions.pod:2366
27204 msgid "guestfs_getxattrs"
27205 msgstr ""
27206
27207 #. type: verbatim
27208 #: ../src/guestfs-actions.pod:2368
27209 #, no-wrap
27210 msgid ""
27211 " struct guestfs_xattr_list *\n"
27212 " guestfs_getxattrs (guestfs_h *g,\n"
27213 "                    const char *path);\n"
27214 "\n"
27215 msgstr ""
27216
27217 #. type: textblock
27218 #: ../src/guestfs-actions.pod:2378
27219 msgid "See also: C<guestfs_lgetxattrs>, L<attr(5)>."
27220 msgstr ""
27221
27222 #. type: textblock
27223 #: ../src/guestfs-actions.pod:2380 ../src/guestfs-actions.pod:3858
27224 #: ../src/guestfs-actions.pod:4546
27225 msgid ""
27226 "This function returns a C<struct guestfs_xattr_list *>, or NULL if there was "
27227 "an error.  I<The caller must call C<guestfs_free_xattr_list> after use>."
27228 msgstr ""
27229
27230 #. type: textblock
27231 #: ../src/guestfs-actions.pod:2384 ../src/guestfs-actions.pod:3862
27232 #: ../src/guestfs-actions.pod:4061 ../src/guestfs-actions.pod:4097
27233 #: ../src/guestfs-actions.pod:6133 ../src/guestfs-actions.pod:6660
27234 #: ../src/guestfs-actions.pod:8055
27235 msgid "(Added in 1.0.59)"
27236 msgstr ""
27237
27238 #. type: =head2
27239 #: ../src/guestfs-actions.pod:2386
27240 msgid "guestfs_glob_expand"
27241 msgstr ""
27242
27243 #. type: verbatim
27244 #: ../src/guestfs-actions.pod:2388
27245 #, no-wrap
27246 msgid ""
27247 " char **\n"
27248 " guestfs_glob_expand (guestfs_h *g,\n"
27249 "                      const char *pattern);\n"
27250 "\n"
27251 msgstr ""
27252
27253 #. type: textblock
27254 #: ../src/guestfs-actions.pod:2407 ../src/guestfs-actions.pod:6853
27255 #: ../src/guestfs-actions.pod:6870
27256 msgid "(Added in 1.0.50)"
27257 msgstr ""
27258
27259 #. type: =head2
27260 #: ../src/guestfs-actions.pod:2409
27261 msgid "guestfs_grep"
27262 msgstr ""
27263
27264 #. type: verbatim
27265 #: ../src/guestfs-actions.pod:2411
27266 #, no-wrap
27267 msgid ""
27268 " char **\n"
27269 " guestfs_grep (guestfs_h *g,\n"
27270 "               const char *regex,\n"
27271 "               const char *path);\n"
27272 "\n"
27273 msgstr ""
27274
27275 #. type: =head2
27276 #: ../src/guestfs-actions.pod:2428
27277 msgid "guestfs_grepi"
27278 msgstr ""
27279
27280 #. type: verbatim
27281 #: ../src/guestfs-actions.pod:2430
27282 #, no-wrap
27283 msgid ""
27284 " char **\n"
27285 " guestfs_grepi (guestfs_h *g,\n"
27286 "                const char *regex,\n"
27287 "                const char *path);\n"
27288 "\n"
27289 msgstr ""
27290
27291 #. type: =head2
27292 #: ../src/guestfs-actions.pod:2447
27293 msgid "guestfs_grub_install"
27294 msgstr ""
27295
27296 #. type: verbatim
27297 #: ../src/guestfs-actions.pod:2449
27298 #, no-wrap
27299 msgid ""
27300 " int\n"
27301 " guestfs_grub_install (guestfs_h *g,\n"
27302 "                       const char *root,\n"
27303 "                       const char *device);\n"
27304 "\n"
27305 msgstr ""
27306
27307 #. type: textblock
27308 #: ../src/guestfs-actions.pod:2492
27309 msgid "(Added in 1.0.17)"
27310 msgstr ""
27311
27312 #. type: =head2
27313 #: ../src/guestfs-actions.pod:2494
27314 msgid "guestfs_head"
27315 msgstr ""
27316
27317 #. type: verbatim
27318 #: ../src/guestfs-actions.pod:2496
27319 #, no-wrap
27320 msgid ""
27321 " char **\n"
27322 " guestfs_head (guestfs_h *g,\n"
27323 "               const char *path);\n"
27324 "\n"
27325 msgstr ""
27326
27327 #. type: =head2
27328 #: ../src/guestfs-actions.pod:2512
27329 msgid "guestfs_head_n"
27330 msgstr ""
27331
27332 #. type: verbatim
27333 #: ../src/guestfs-actions.pod:2514
27334 #, no-wrap
27335 msgid ""
27336 " char **\n"
27337 " guestfs_head_n (guestfs_h *g,\n"
27338 "                 int nrlines,\n"
27339 "                 const char *path);\n"
27340 "\n"
27341 msgstr ""
27342
27343 #. type: =head2
27344 #: ../src/guestfs-actions.pod:2536
27345 msgid "guestfs_hexdump"
27346 msgstr ""
27347
27348 #. type: verbatim
27349 #: ../src/guestfs-actions.pod:2538
27350 #, no-wrap
27351 msgid ""
27352 " char *\n"
27353 " guestfs_hexdump (guestfs_h *g,\n"
27354 "                  const char *path);\n"
27355 "\n"
27356 msgstr ""
27357
27358 #. type: textblock
27359 #: ../src/guestfs-actions.pod:2551 ../src/guestfs-actions.pod:6934
27360 #: ../src/guestfs-actions.pod:6989
27361 msgid "(Added in 1.0.22)"
27362 msgstr ""
27363
27364 #. type: =head2
27365 #: ../src/guestfs-actions.pod:2553
27366 msgid "guestfs_initrd_cat"
27367 msgstr ""
27368
27369 #. type: verbatim
27370 #: ../src/guestfs-actions.pod:2555
27371 #, no-wrap
27372 msgid ""
27373 " char *\n"
27374 " guestfs_initrd_cat (guestfs_h *g,\n"
27375 "                     const char *initrdpath,\n"
27376 "                     const char *filename,\n"
27377 "                     size_t *size_r);\n"
27378 "\n"
27379 msgstr ""
27380
27381 #. type: textblock
27382 #: ../src/guestfs-actions.pod:2571
27383 msgid "See also C<guestfs_initrd_list>."
27384 msgstr ""
27385
27386 #. type: =head2
27387 #: ../src/guestfs-actions.pod:2582
27388 msgid "guestfs_initrd_list"
27389 msgstr ""
27390
27391 #. type: verbatim
27392 #: ../src/guestfs-actions.pod:2584
27393 #, no-wrap
27394 msgid ""
27395 " char **\n"
27396 " guestfs_initrd_list (guestfs_h *g,\n"
27397 "                      const char *path);\n"
27398 "\n"
27399 msgstr ""
27400
27401 #. type: =head2
27402 #: ../src/guestfs-actions.pod:2604
27403 msgid "guestfs_inotify_add_watch"
27404 msgstr ""
27405
27406 #. type: verbatim
27407 #: ../src/guestfs-actions.pod:2606
27408 #, no-wrap
27409 msgid ""
27410 " int64_t\n"
27411 " guestfs_inotify_add_watch (guestfs_h *g,\n"
27412 "                            const char *path,\n"
27413 "                            int mask);\n"
27414 "\n"
27415 msgstr ""
27416
27417 #. type: =head2
27418 #: ../src/guestfs-actions.pod:2625
27419 msgid "guestfs_inotify_close"
27420 msgstr ""
27421
27422 #. type: verbatim
27423 #: ../src/guestfs-actions.pod:2627
27424 #, no-wrap
27425 msgid ""
27426 " int\n"
27427 " guestfs_inotify_close (guestfs_h *g);\n"
27428 "\n"
27429 msgstr ""
27430
27431 #. type: =head2
27432 #: ../src/guestfs-actions.pod:2638
27433 msgid "guestfs_inotify_files"
27434 msgstr ""
27435
27436 #. type: verbatim
27437 #: ../src/guestfs-actions.pod:2640
27438 #, no-wrap
27439 msgid ""
27440 " char **\n"
27441 " guestfs_inotify_files (guestfs_h *g);\n"
27442 "\n"
27443 msgstr ""
27444
27445 #. type: textblock
27446 #: ../src/guestfs-actions.pod:2643
27447 msgid ""
27448 "This function is a helpful wrapper around C<guestfs_inotify_read> which just "
27449 "returns a list of pathnames of objects that were touched.  The returned "
27450 "pathnames are sorted and deduplicated."
27451 msgstr ""
27452
27453 #. type: =head2
27454 #: ../src/guestfs-actions.pod:2653
27455 msgid "guestfs_inotify_init"
27456 msgstr ""
27457
27458 #. type: verbatim
27459 #: ../src/guestfs-actions.pod:2655
27460 #, no-wrap
27461 msgid ""
27462 " int\n"
27463 " guestfs_inotify_init (guestfs_h *g,\n"
27464 "                       int maxevents);\n"
27465 "\n"
27466 msgstr ""
27467
27468 #. type: textblock
27469 #: ../src/guestfs-actions.pod:2663
27470 msgid ""
27471 "C<maxevents> is the maximum number of events which will be queued up between "
27472 "calls to C<guestfs_inotify_read> or C<guestfs_inotify_files>.  If this is "
27473 "passed as C<0>, then the kernel (or previously set)  default is used.  For "
27474 "Linux 2.6.29 the default was 16384 events.  Beyond this limit, the kernel "
27475 "throws away events, but records the fact that it threw them away by setting "
27476 "a flag C<IN_Q_OVERFLOW> in the returned structure list (see "
27477 "C<guestfs_inotify_read>)."
27478 msgstr ""
27479
27480 #. type: textblock
27481 #: ../src/guestfs-actions.pod:2673
27482 msgid ""
27483 "Before any events are generated, you have to add some watches to the "
27484 "internal watch list.  See: C<guestfs_inotify_add_watch>, "
27485 "C<guestfs_inotify_rm_watch> and C<guestfs_inotify_watch_all>."
27486 msgstr ""
27487
27488 #. type: textblock
27489 #: ../src/guestfs-actions.pod:2679
27490 msgid ""
27491 "Queued up events should be read periodically by calling "
27492 "C<guestfs_inotify_read> (or C<guestfs_inotify_files> which is just a helpful "
27493 "wrapper around C<guestfs_inotify_read>).  If you don't read the events out "
27494 "often enough then you risk the internal queue overflowing."
27495 msgstr ""
27496
27497 #. type: textblock
27498 #: ../src/guestfs-actions.pod:2686
27499 msgid ""
27500 "The handle should be closed after use by calling C<guestfs_inotify_close>.  "
27501 "This also removes any watches automatically."
27502 msgstr ""
27503
27504 #. type: =head2
27505 #: ../src/guestfs-actions.pod:2699
27506 msgid "guestfs_inotify_read"
27507 msgstr ""
27508
27509 #. type: verbatim
27510 #: ../src/guestfs-actions.pod:2701
27511 #, no-wrap
27512 msgid ""
27513 " struct guestfs_inotify_event_list *\n"
27514 " guestfs_inotify_read (guestfs_h *g);\n"
27515 "\n"
27516 msgstr ""
27517
27518 #. type: textblock
27519 #: ../src/guestfs-actions.pod:2715
27520 msgid ""
27521 "This function returns a C<struct guestfs_inotify_event_list *>, or NULL if "
27522 "there was an error.  I<The caller must call "
27523 "C<guestfs_free_inotify_event_list> after use>."
27524 msgstr ""
27525
27526 #. type: =head2
27527 #: ../src/guestfs-actions.pod:2721
27528 msgid "guestfs_inotify_rm_watch"
27529 msgstr ""
27530
27531 #. type: verbatim
27532 #: ../src/guestfs-actions.pod:2723
27533 #, no-wrap
27534 msgid ""
27535 " int\n"
27536 " guestfs_inotify_rm_watch (guestfs_h *g,\n"
27537 "                           int wd);\n"
27538 "\n"
27539 msgstr ""
27540
27541 #. type: textblock
27542 #: ../src/guestfs-actions.pod:2727
27543 msgid ""
27544 "Remove a previously defined inotify watch.  See C<guestfs_inotify_add_watch>."
27545 msgstr ""
27546
27547 #. type: =head2
27548 #: ../src/guestfs-actions.pod:2734
27549 msgid "guestfs_inspect_get_arch"
27550 msgstr ""
27551
27552 #. type: verbatim
27553 #: ../src/guestfs-actions.pod:2736
27554 #, no-wrap
27555 msgid ""
27556 " char *\n"
27557 " guestfs_inspect_get_arch (guestfs_h *g,\n"
27558 "                           const char *root);\n"
27559 "\n"
27560 msgstr ""
27561
27562 #. type: textblock
27563 #: ../src/guestfs-actions.pod:2740
27564 msgid ""
27565 "This returns the architecture of the inspected operating system.  The "
27566 "possible return values are listed under C<guestfs_file_architecture>."
27567 msgstr ""
27568
27569 #. type: =head2
27570 #: ../src/guestfs-actions.pod:2754
27571 msgid "guestfs_inspect_get_distro"
27572 msgstr ""
27573
27574 #. type: verbatim
27575 #: ../src/guestfs-actions.pod:2756
27576 #, no-wrap
27577 msgid ""
27578 " char *\n"
27579 " guestfs_inspect_get_distro (guestfs_h *g,\n"
27580 "                             const char *root);\n"
27581 "\n"
27582 msgstr ""
27583
27584 #. type: =head2
27585 #: ../src/guestfs-actions.pod:2848
27586 msgid "guestfs_inspect_get_drive_mappings"
27587 msgstr ""
27588
27589 #. type: verbatim
27590 #: ../src/guestfs-actions.pod:2850
27591 #, no-wrap
27592 msgid ""
27593 " char **\n"
27594 " guestfs_inspect_get_drive_mappings (guestfs_h *g,\n"
27595 "                                     const char *root);\n"
27596 "\n"
27597 msgstr ""
27598
27599 #. type: textblock
27600 #: ../src/guestfs-actions.pod:2879
27601 msgid ""
27602 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27603 "C<guestfs_inspect_get_mountpoints>, C<guestfs_inspect_get_filesystems>."
27604 msgstr ""
27605
27606 #. type: textblock
27607 #: ../src/guestfs-actions.pod:2883 ../src/guestfs-actions.pod:3151
27608 #: ../src/guestfs-actions.pod:3949 ../src/guestfs-actions.pod:5221
27609 #: ../src/guestfs-actions.pod:7291
27610 msgid ""
27611 "This function returns a NULL-terminated array of strings, or NULL if there "
27612 "was an error.  The array of strings will always have length C<2n+1>, where "
27613 "C<n> keys and values alternate, followed by the trailing NULL entry.  I<The "
27614 "caller must free the strings and the array after use>."
27615 msgstr ""
27616
27617 #. type: textblock
27618 #: ../src/guestfs-actions.pod:2889 ../src/guestfs-actions.pod:3345
27619 msgid "(Added in 1.9.17)"
27620 msgstr ""
27621
27622 #. type: =head2
27623 #: ../src/guestfs-actions.pod:2891
27624 msgid "guestfs_inspect_get_filesystems"
27625 msgstr ""
27626
27627 #. type: verbatim
27628 #: ../src/guestfs-actions.pod:2893
27629 #, no-wrap
27630 msgid ""
27631 " char **\n"
27632 " guestfs_inspect_get_filesystems (guestfs_h *g,\n"
27633 "                                  const char *root);\n"
27634 "\n"
27635 msgstr ""
27636
27637 #. type: textblock
27638 #: ../src/guestfs-actions.pod:2905
27639 msgid ""
27640 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27641 "C<guestfs_inspect_get_mountpoints>."
27642 msgstr ""
27643
27644 #. type: =head2
27645 #: ../src/guestfs-actions.pod:2914
27646 msgid "guestfs_inspect_get_format"
27647 msgstr ""
27648
27649 #. type: verbatim
27650 #: ../src/guestfs-actions.pod:2916
27651 #, no-wrap
27652 msgid ""
27653 " char *\n"
27654 " guestfs_inspect_get_format (guestfs_h *g,\n"
27655 "                             const char *root);\n"
27656 "\n"
27657 msgstr ""
27658
27659 #. type: textblock
27660 #: ../src/guestfs-actions.pod:2950 ../src/guestfs-actions.pod:3381
27661 #: ../src/guestfs-actions.pod:3397 ../src/guestfs-actions.pod:3415
27662 #: ../src/guestfs-actions.pod:6171
27663 msgid "(Added in 1.9.4)"
27664 msgstr ""
27665
27666 #. type: =head2
27667 #: ../src/guestfs-actions.pod:2952
27668 msgid "guestfs_inspect_get_hostname"
27669 msgstr ""
27670
27671 #. type: verbatim
27672 #: ../src/guestfs-actions.pod:2954
27673 #, no-wrap
27674 msgid ""
27675 " char *\n"
27676 " guestfs_inspect_get_hostname (guestfs_h *g,\n"
27677 "                               const char *root);\n"
27678 "\n"
27679 msgstr ""
27680
27681 #. type: textblock
27682 #: ../src/guestfs-actions.pod:2969
27683 msgid "(Added in 1.7.9)"
27684 msgstr ""
27685
27686 #. type: =head2
27687 #: ../src/guestfs-actions.pod:2971
27688 msgid "guestfs_inspect_get_icon"
27689 msgstr ""
27690
27691 #. type: verbatim
27692 #: ../src/guestfs-actions.pod:2973
27693 #, no-wrap
27694 msgid ""
27695 " char *\n"
27696 " guestfs_inspect_get_icon (guestfs_h *g,\n"
27697 "                           const char *root,\n"
27698 "                           size_t *size_r,\n"
27699 "                           ...);\n"
27700 "\n"
27701 msgstr ""
27702
27703 #. type: verbatim
27704 #: ../src/guestfs-actions.pod:2984
27705 #, no-wrap
27706 msgid ""
27707 " GUESTFS_INSPECT_GET_ICON_FAVICON, int favicon,\n"
27708 " GUESTFS_INSPECT_GET_ICON_HIGHQUALITY, int highquality,\n"
27709 "\n"
27710 msgstr ""
27711
27712 #. type: textblock
27713 #: ../src/guestfs-actions.pod:3051 ../src/guestfs-actions.pod:3876
27714 #: ../src/guestfs-actions.pod:5120
27715 msgid "(Added in 1.11.12)"
27716 msgstr ""
27717
27718 #. type: =head2
27719 #: ../src/guestfs-actions.pod:3053
27720 msgid "guestfs_inspect_get_icon_va"
27721 msgstr ""
27722
27723 #. type: verbatim
27724 #: ../src/guestfs-actions.pod:3055
27725 #, no-wrap
27726 msgid ""
27727 " char *\n"
27728 " guestfs_inspect_get_icon_va (guestfs_h *g,\n"
27729 "                              const char *root,\n"
27730 "                              size_t *size_r,\n"
27731 "                              va_list args);\n"
27732 "\n"
27733 msgstr ""
27734
27735 #. type: textblock
27736 #: ../src/guestfs-actions.pod:3061
27737 msgid "This is the \"va_list variant\" of L</guestfs_inspect_get_icon>."
27738 msgstr ""
27739
27740 #. type: =head2
27741 #: ../src/guestfs-actions.pod:3065
27742 msgid "guestfs_inspect_get_icon_argv"
27743 msgstr ""
27744
27745 #. type: verbatim
27746 #: ../src/guestfs-actions.pod:3067
27747 #, no-wrap
27748 msgid ""
27749 " char *\n"
27750 " guestfs_inspect_get_icon_argv (guestfs_h *g,\n"
27751 "                                const char *root,\n"
27752 "                                size_t *size_r,\n"
27753 "                                const struct guestfs_inspect_get_icon_argv *optargs);\n"
27754 "\n"
27755 msgstr ""
27756
27757 #. type: textblock
27758 #: ../src/guestfs-actions.pod:3073
27759 msgid "This is the \"argv variant\" of L</guestfs_inspect_get_icon>."
27760 msgstr ""
27761
27762 #. type: =head2
27763 #: ../src/guestfs-actions.pod:3077
27764 msgid "guestfs_inspect_get_major_version"
27765 msgstr ""
27766
27767 #. type: verbatim
27768 #: ../src/guestfs-actions.pod:3079
27769 #, no-wrap
27770 msgid ""
27771 " int\n"
27772 " guestfs_inspect_get_major_version (guestfs_h *g,\n"
27773 "                                    const char *root);\n"
27774 "\n"
27775 msgstr ""
27776
27777 #. type: =head2
27778 #: ../src/guestfs-actions.pod:3101
27779 msgid "guestfs_inspect_get_minor_version"
27780 msgstr ""
27781
27782 #. type: verbatim
27783 #: ../src/guestfs-actions.pod:3103
27784 #, no-wrap
27785 msgid ""
27786 " int\n"
27787 " guestfs_inspect_get_minor_version (guestfs_h *g,\n"
27788 "                                    const char *root);\n"
27789 "\n"
27790 msgstr ""
27791
27792 #. type: textblock
27793 #: ../src/guestfs-actions.pod:3112
27794 msgid ""
27795 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27796 "C<guestfs_inspect_get_major_version>."
27797 msgstr ""
27798
27799 #. type: =head2
27800 #: ../src/guestfs-actions.pod:3119
27801 msgid "guestfs_inspect_get_mountpoints"
27802 msgstr ""
27803
27804 #. type: verbatim
27805 #: ../src/guestfs-actions.pod:3121
27806 #, no-wrap
27807 msgid ""
27808 " char **\n"
27809 " guestfs_inspect_get_mountpoints (guestfs_h *g,\n"
27810 "                                  const char *root);\n"
27811 "\n"
27812 msgstr ""
27813
27814 #. type: textblock
27815 #: ../src/guestfs-actions.pod:3142
27816 msgid ""
27817 "For operating systems like Windows which still use drive letters, this call "
27818 "will only return an entry for the first drive \"mounted on\" C</>.  For "
27819 "information about the mapping of drive letters to partitions, see "
27820 "C<guestfs_inspect_get_drive_mappings>."
27821 msgstr ""
27822
27823 #. type: textblock
27824 #: ../src/guestfs-actions.pod:3148
27825 msgid ""
27826 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27827 "C<guestfs_inspect_get_filesystems>."
27828 msgstr ""
27829
27830 #. type: =head2
27831 #: ../src/guestfs-actions.pod:3159
27832 msgid "guestfs_inspect_get_package_format"
27833 msgstr ""
27834
27835 #. type: verbatim
27836 #: ../src/guestfs-actions.pod:3161
27837 #, no-wrap
27838 msgid ""
27839 " char *\n"
27840 " guestfs_inspect_get_package_format (guestfs_h *g,\n"
27841 "                                     const char *root);\n"
27842 "\n"
27843 msgstr ""
27844
27845 #. type: textblock
27846 #: ../src/guestfs-actions.pod:3165
27847 msgid ""
27848 "This function and C<guestfs_inspect_get_package_management> return the "
27849 "package format and package management tool used by the inspected operating "
27850 "system.  For example for Fedora these functions would return C<rpm> (package "
27851 "format) and C<yum> (package management)."
27852 msgstr ""
27853
27854 #. type: textblock
27855 #: ../src/guestfs-actions.pod:3183 ../src/guestfs-actions.pod:3211
27856 msgid "(Added in 1.7.5)"
27857 msgstr ""
27858
27859 #. type: =head2
27860 #: ../src/guestfs-actions.pod:3185
27861 msgid "guestfs_inspect_get_package_management"
27862 msgstr ""
27863
27864 #. type: verbatim
27865 #: ../src/guestfs-actions.pod:3187
27866 #, no-wrap
27867 msgid ""
27868 " char *\n"
27869 " guestfs_inspect_get_package_management (guestfs_h *g,\n"
27870 "                                         const char *root);\n"
27871 "\n"
27872 msgstr ""
27873
27874 #. type: textblock
27875 #: ../src/guestfs-actions.pod:3191
27876 msgid ""
27877 "C<guestfs_inspect_get_package_format> and this function return the package "
27878 "format and package management tool used by the inspected operating system.  "
27879 "For example for Fedora these functions would return C<rpm> (package format) "
27880 "and C<yum> (package management)."
27881 msgstr ""
27882
27883 #. type: =head2
27884 #: ../src/guestfs-actions.pod:3213
27885 msgid "guestfs_inspect_get_product_name"
27886 msgstr ""
27887
27888 #. type: verbatim
27889 #: ../src/guestfs-actions.pod:3215
27890 #, no-wrap
27891 msgid ""
27892 " char *\n"
27893 " guestfs_inspect_get_product_name (guestfs_h *g,\n"
27894 "                                   const char *root);\n"
27895 "\n"
27896 msgstr ""
27897
27898 #. type: =head2
27899 #: ../src/guestfs-actions.pod:3234
27900 msgid "guestfs_inspect_get_product_variant"
27901 msgstr ""
27902
27903 #. type: verbatim
27904 #: ../src/guestfs-actions.pod:3236
27905 #, no-wrap
27906 msgid ""
27907 " char *\n"
27908 " guestfs_inspect_get_product_variant (guestfs_h *g,\n"
27909 "                                      const char *root);\n"
27910 "\n"
27911 msgstr ""
27912
27913 #. type: textblock
27914 #: ../src/guestfs-actions.pod:3259
27915 msgid ""
27916 "Please read L<guestfs(3)/INSPECTION> for more details.  See also "
27917 "C<guestfs_inspect_get_product_name>, C<guestfs_inspect_get_major_version>."
27918 msgstr ""
27919
27920 #. type: textblock
27921 #: ../src/guestfs-actions.pod:3266
27922 msgid "(Added in 1.9.13)"
27923 msgstr ""
27924
27925 #. type: =head2
27926 #: ../src/guestfs-actions.pod:3268
27927 msgid "guestfs_inspect_get_roots"
27928 msgstr ""
27929
27930 #. type: verbatim
27931 #: ../src/guestfs-actions.pod:3270
27932 #, no-wrap
27933 msgid ""
27934 " char **\n"
27935 " guestfs_inspect_get_roots (guestfs_h *g);\n"
27936 "\n"
27937 msgstr ""
27938
27939 #. type: textblock
27940 #: ../src/guestfs-actions.pod:3273
27941 msgid ""
27942 "This function is a convenient way to get the list of root devices, as "
27943 "returned from a previous call to C<guestfs_inspect_os>, but without redoing "
27944 "the whole inspection process."
27945 msgstr ""
27946
27947 #. type: textblock
27948 #: ../src/guestfs-actions.pod:3277
27949 msgid ""
27950 "This returns an empty list if either no root devices were found or the "
27951 "caller has not called C<guestfs_inspect_os>."
27952 msgstr ""
27953
27954 #. type: textblock
27955 #: ../src/guestfs-actions.pod:3286
27956 msgid "(Added in 1.7.3)"
27957 msgstr ""
27958
27959 #. type: =head2
27960 #: ../src/guestfs-actions.pod:3288
27961 msgid "guestfs_inspect_get_type"
27962 msgstr ""
27963
27964 #. type: verbatim
27965 #: ../src/guestfs-actions.pod:3290
27966 #, no-wrap
27967 msgid ""
27968 " char *\n"
27969 " guestfs_inspect_get_type (guestfs_h *g,\n"
27970 "                           const char *root);\n"
27971 "\n"
27972 msgstr ""
27973
27974 #. type: =head2
27975 #: ../src/guestfs-actions.pod:3327
27976 msgid "guestfs_inspect_get_windows_current_control_set"
27977 msgstr ""
27978
27979 #. type: verbatim
27980 #: ../src/guestfs-actions.pod:3329
27981 #, no-wrap
27982 msgid ""
27983 " char *\n"
27984 " guestfs_inspect_get_windows_current_control_set (guestfs_h *g,\n"
27985 "                                                  const char *root);\n"
27986 "\n"
27987 msgstr ""
27988
27989 #. type: =head2
27990 #: ../src/guestfs-actions.pod:3347
27991 msgid "guestfs_inspect_get_windows_systemroot"
27992 msgstr ""
27993
27994 #. type: verbatim
27995 #: ../src/guestfs-actions.pod:3349
27996 #, no-wrap
27997 msgid ""
27998 " char *\n"
27999 " guestfs_inspect_get_windows_systemroot (guestfs_h *g,\n"
28000 "                                         const char *root);\n"
28001 "\n"
28002 msgstr ""
28003
28004 #. type: textblock
28005 #: ../src/guestfs-actions.pod:3365
28006 msgid "(Added in 1.5.25)"
28007 msgstr ""
28008
28009 #. type: =head2
28010 #: ../src/guestfs-actions.pod:3367
28011 msgid "guestfs_inspect_is_live"
28012 msgstr ""
28013
28014 #. type: verbatim
28015 #: ../src/guestfs-actions.pod:3369
28016 #, no-wrap
28017 msgid ""
28018 " int\n"
28019 " guestfs_inspect_is_live (guestfs_h *g,\n"
28020 "                          const char *root);\n"
28021 "\n"
28022 msgstr ""
28023
28024 #. type: textblock
28025 #: ../src/guestfs-actions.pod:3373
28026 msgid ""
28027 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28028 "disk), then this returns true if a live image was detected on the disk."
28029 msgstr ""
28030
28031 #. type: =head2
28032 #: ../src/guestfs-actions.pod:3383
28033 msgid "guestfs_inspect_is_multipart"
28034 msgstr ""
28035
28036 #. type: verbatim
28037 #: ../src/guestfs-actions.pod:3385
28038 #, no-wrap
28039 msgid ""
28040 " int\n"
28041 " guestfs_inspect_is_multipart (guestfs_h *g,\n"
28042 "                               const char *root);\n"
28043 "\n"
28044 msgstr ""
28045
28046 #. type: textblock
28047 #: ../src/guestfs-actions.pod:3389
28048 msgid ""
28049 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28050 "disk), then this returns true if the disk is part of a set."
28051 msgstr ""
28052
28053 #. type: =head2
28054 #: ../src/guestfs-actions.pod:3399
28055 msgid "guestfs_inspect_is_netinst"
28056 msgstr ""
28057
28058 #. type: verbatim
28059 #: ../src/guestfs-actions.pod:3401
28060 #, no-wrap
28061 msgid ""
28062 " int\n"
28063 " guestfs_inspect_is_netinst (guestfs_h *g,\n"
28064 "                             const char *root);\n"
28065 "\n"
28066 msgstr ""
28067
28068 #. type: textblock
28069 #: ../src/guestfs-actions.pod:3405
28070 msgid ""
28071 "If C<guestfs_inspect_get_format> returns C<installer> (this is an install "
28072 "disk), then this returns true if the disk is a network installer, ie. not a "
28073 "self-contained install CD but one which is likely to require network access "
28074 "to complete the install."
28075 msgstr ""
28076
28077 #. type: =head2
28078 #: ../src/guestfs-actions.pod:3417
28079 msgid "guestfs_inspect_list_applications"
28080 msgstr ""
28081
28082 #. type: verbatim
28083 #: ../src/guestfs-actions.pod:3419
28084 #, no-wrap
28085 msgid ""
28086 " struct guestfs_application_list *\n"
28087 " guestfs_inspect_list_applications (guestfs_h *g,\n"
28088 "                                    const char *root);\n"
28089 "\n"
28090 msgstr ""
28091
28092 #. type: textblock
28093 #: ../src/guestfs-actions.pod:3425
28094 msgid ""
28095 "I<Note:> This call works differently from other parts of the inspection "
28096 "API.  You have to call C<guestfs_inspect_os>, then "
28097 "C<guestfs_inspect_get_mountpoints>, then mount up the disks, before calling "
28098 "this.  Listing applications is a significantly more difficult operation "
28099 "which requires access to the full filesystem.  Also note that unlike the "
28100 "other C<guestfs_inspect_get_*> calls which are just returning data cached in "
28101 "the libguestfs handle, this call actually reads parts of the mounted "
28102 "filesystems during the call."
28103 msgstr ""
28104
28105 #. type: textblock
28106 #: ../src/guestfs-actions.pod:3515
28107 msgid ""
28108 "This function returns a C<struct guestfs_application_list *>, or NULL if "
28109 "there was an error.  I<The caller must call C<guestfs_free_application_list> "
28110 "after use>."
28111 msgstr ""
28112
28113 #. type: textblock
28114 #: ../src/guestfs-actions.pod:3519
28115 msgid "(Added in 1.7.8)"
28116 msgstr ""
28117
28118 #. type: =head2
28119 #: ../src/guestfs-actions.pod:3521
28120 msgid "guestfs_inspect_os"
28121 msgstr ""
28122
28123 #. type: verbatim
28124 #: ../src/guestfs-actions.pod:3523
28125 #, no-wrap
28126 msgid ""
28127 " char **\n"
28128 " guestfs_inspect_os (guestfs_h *g);\n"
28129 "\n"
28130 msgstr ""
28131
28132 #. type: textblock
28133 #: ../src/guestfs-actions.pod:3539
28134 msgid ""
28135 "You can pass the root string(s) returned to other C<guestfs_inspect_get_*> "
28136 "functions in order to query further information about each operating system, "
28137 "such as the name and version."
28138 msgstr ""
28139
28140 #. type: textblock
28141 #: ../src/guestfs-actions.pod:3544
28142 msgid ""
28143 "This function uses other libguestfs features such as C<guestfs_mount_ro> and "
28144 "C<guestfs_umount_all> in order to mount and unmount filesystems and look at "
28145 "the contents.  This should be called with no disks currently mounted.  The "
28146 "function may also use Augeas, so any existing Augeas handle will be closed."
28147 msgstr ""
28148
28149 #. type: textblock
28150 #: ../src/guestfs-actions.pod:3556 ../src/guestfs-actions.pod:3887
28151 #: ../src/guestfs-actions.pod:3969
28152 msgid "See also C<guestfs_list_filesystems>."
28153 msgstr ""
28154
28155 #. type: =head2
28156 #: ../src/guestfs-actions.pod:3564
28157 msgid "guestfs_is_blockdev"
28158 msgstr ""
28159
28160 #. type: verbatim
28161 #: ../src/guestfs-actions.pod:3566
28162 #, no-wrap
28163 msgid ""
28164 " int\n"
28165 " guestfs_is_blockdev (guestfs_h *g,\n"
28166 "                      const char *path);\n"
28167 "\n"
28168 msgstr ""
28169
28170 #. type: textblock
28171 #: ../src/guestfs-actions.pod:3573 ../src/guestfs-actions.pod:3602
28172 #: ../src/guestfs-actions.pod:3632 ../src/guestfs-actions.pod:3647
28173 #: ../src/guestfs-actions.pod:3663 ../src/guestfs-actions.pod:3719
28174 #: ../src/guestfs-actions.pod:3734
28175 msgid "See also C<guestfs_stat>."
28176 msgstr ""
28177
28178 #. type: textblock
28179 #: ../src/guestfs-actions.pod:3577 ../src/guestfs-actions.pod:3606
28180 #: ../src/guestfs-actions.pod:3651 ../src/guestfs-actions.pod:3723
28181 #: ../src/guestfs-actions.pod:3738
28182 msgid "(Added in 1.5.10)"
28183 msgstr ""
28184
28185 #. type: =head2
28186 #: ../src/guestfs-actions.pod:3579
28187 msgid "guestfs_is_busy"
28188 msgstr ""
28189
28190 #. type: verbatim
28191 #: ../src/guestfs-actions.pod:3581
28192 #, no-wrap
28193 msgid ""
28194 " int\n"
28195 " guestfs_is_busy (guestfs_h *g);\n"
28196 "\n"
28197 msgstr ""
28198
28199 #. type: =head2
28200 #: ../src/guestfs-actions.pod:3593
28201 msgid "guestfs_is_chardev"
28202 msgstr ""
28203
28204 #. type: verbatim
28205 #: ../src/guestfs-actions.pod:3595
28206 #, no-wrap
28207 msgid ""
28208 " int\n"
28209 " guestfs_is_chardev (guestfs_h *g,\n"
28210 "                     const char *path);\n"
28211 "\n"
28212 msgstr ""
28213
28214 #. type: =head2
28215 #: ../src/guestfs-actions.pod:3608
28216 msgid "guestfs_is_config"
28217 msgstr ""
28218
28219 #. type: verbatim
28220 #: ../src/guestfs-actions.pod:3610
28221 #, no-wrap
28222 msgid ""
28223 " int\n"
28224 " guestfs_is_config (guestfs_h *g);\n"
28225 "\n"
28226 msgstr ""
28227
28228 #. type: =head2
28229 #: ../src/guestfs-actions.pod:3622
28230 msgid "guestfs_is_dir"
28231 msgstr ""
28232
28233 #. type: verbatim
28234 #: ../src/guestfs-actions.pod:3624
28235 #, no-wrap
28236 msgid ""
28237 " int\n"
28238 " guestfs_is_dir (guestfs_h *g,\n"
28239 "                 const char *path);\n"
28240 "\n"
28241 msgstr ""
28242
28243 #. type: =head2
28244 #: ../src/guestfs-actions.pod:3638
28245 msgid "guestfs_is_fifo"
28246 msgstr ""
28247
28248 #. type: verbatim
28249 #: ../src/guestfs-actions.pod:3640
28250 #, no-wrap
28251 msgid ""
28252 " int\n"
28253 " guestfs_is_fifo (guestfs_h *g,\n"
28254 "                  const char *path);\n"
28255 "\n"
28256 msgstr ""
28257
28258 #. type: =head2
28259 #: ../src/guestfs-actions.pod:3653
28260 msgid "guestfs_is_file"
28261 msgstr ""
28262
28263 #. type: verbatim
28264 #: ../src/guestfs-actions.pod:3655
28265 #, no-wrap
28266 msgid ""
28267 " int\n"
28268 " guestfs_is_file (guestfs_h *g,\n"
28269 "                  const char *path);\n"
28270 "\n"
28271 msgstr ""
28272
28273 #. type: =head2
28274 #: ../src/guestfs-actions.pod:3669
28275 msgid "guestfs_is_launching"
28276 msgstr ""
28277
28278 #. type: verbatim
28279 #: ../src/guestfs-actions.pod:3671
28280 #, no-wrap
28281 msgid ""
28282 " int\n"
28283 " guestfs_is_launching (guestfs_h *g);\n"
28284 "\n"
28285 msgstr ""
28286
28287 #. type: =head2
28288 #: ../src/guestfs-actions.pod:3683
28289 msgid "guestfs_is_lv"
28290 msgstr ""
28291
28292 #. type: verbatim
28293 #: ../src/guestfs-actions.pod:3685
28294 #, no-wrap
28295 msgid ""
28296 " int\n"
28297 " guestfs_is_lv (guestfs_h *g,\n"
28298 "                const char *device);\n"
28299 "\n"
28300 msgstr ""
28301
28302 #. type: =head2
28303 #: ../src/guestfs-actions.pod:3696
28304 msgid "guestfs_is_ready"
28305 msgstr ""
28306
28307 #. type: verbatim
28308 #: ../src/guestfs-actions.pod:3698
28309 #, no-wrap
28310 msgid ""
28311 " int\n"
28312 " guestfs_is_ready (guestfs_h *g);\n"
28313 "\n"
28314 msgstr ""
28315
28316 #. type: =head2
28317 #: ../src/guestfs-actions.pod:3710
28318 msgid "guestfs_is_socket"
28319 msgstr ""
28320
28321 #. type: verbatim
28322 #: ../src/guestfs-actions.pod:3712
28323 #, no-wrap
28324 msgid ""
28325 " int\n"
28326 " guestfs_is_socket (guestfs_h *g,\n"
28327 "                    const char *path);\n"
28328 "\n"
28329 msgstr ""
28330
28331 #. type: =head2
28332 #: ../src/guestfs-actions.pod:3725
28333 msgid "guestfs_is_symlink"
28334 msgstr ""
28335
28336 #. type: verbatim
28337 #: ../src/guestfs-actions.pod:3727
28338 #, no-wrap
28339 msgid ""
28340 " int\n"
28341 " guestfs_is_symlink (guestfs_h *g,\n"
28342 "                     const char *path);\n"
28343 "\n"
28344 msgstr ""
28345
28346 #. type: =head2
28347 #: ../src/guestfs-actions.pod:3740
28348 msgid "guestfs_is_zero"
28349 msgstr ""
28350
28351 #. type: verbatim
28352 #: ../src/guestfs-actions.pod:3742
28353 #, no-wrap
28354 msgid ""
28355 " int\n"
28356 " guestfs_is_zero (guestfs_h *g,\n"
28357 "                  const char *path);\n"
28358 "\n"
28359 msgstr ""
28360
28361 #. type: textblock
28362 #: ../src/guestfs-actions.pod:3751 ../src/guestfs-actions.pod:3765
28363 msgid "(Added in 1.11.8)"
28364 msgstr ""
28365
28366 #. type: =head2
28367 #: ../src/guestfs-actions.pod:3753
28368 msgid "guestfs_is_zero_device"
28369 msgstr ""
28370
28371 #. type: verbatim
28372 #: ../src/guestfs-actions.pod:3755
28373 #, no-wrap
28374 msgid ""
28375 " int\n"
28376 " guestfs_is_zero_device (guestfs_h *g,\n"
28377 "                         const char *device);\n"
28378 "\n"
28379 msgstr ""
28380
28381 #. type: =head2
28382 #: ../src/guestfs-actions.pod:3767
28383 msgid "guestfs_kill_subprocess"
28384 msgstr ""
28385
28386 #. type: verbatim
28387 #: ../src/guestfs-actions.pod:3769
28388 #, no-wrap
28389 msgid ""
28390 " int\n"
28391 " guestfs_kill_subprocess (guestfs_h *g);\n"
28392 "\n"
28393 msgstr ""
28394
28395 #. type: =head2
28396 #: ../src/guestfs-actions.pod:3778
28397 msgid "guestfs_launch"
28398 msgstr ""
28399
28400 #. type: verbatim
28401 #: ../src/guestfs-actions.pod:3780
28402 #, no-wrap
28403 msgid ""
28404 " int\n"
28405 " guestfs_launch (guestfs_h *g);\n"
28406 "\n"
28407 msgstr ""
28408
28409 #. type: =head2
28410 #: ../src/guestfs-actions.pod:3798
28411 msgid "guestfs_lchown"
28412 msgstr ""
28413
28414 #. type: verbatim
28415 #: ../src/guestfs-actions.pod:3800
28416 #, no-wrap
28417 msgid ""
28418 " int\n"
28419 " guestfs_lchown (guestfs_h *g,\n"
28420 "                 int owner,\n"
28421 "                 int group,\n"
28422 "                 const char *path);\n"
28423 "\n"
28424 msgstr ""
28425
28426 #. type: textblock
28427 #: ../src/guestfs-actions.pod:3806
28428 msgid ""
28429 "Change the file owner to C<owner> and group to C<group>.  This is like "
28430 "C<guestfs_chown> but if C<path> is a symlink then the link itself is "
28431 "changed, not the target."
28432 msgstr ""
28433
28434 #. type: =head2
28435 #: ../src/guestfs-actions.pod:3818
28436 msgid "guestfs_lgetxattr"
28437 msgstr ""
28438
28439 #. type: verbatim
28440 #: ../src/guestfs-actions.pod:3820
28441 #, no-wrap
28442 msgid ""
28443 " char *\n"
28444 " guestfs_lgetxattr (guestfs_h *g,\n"
28445 "                    const char *path,\n"
28446 "                    const char *name,\n"
28447 "                    size_t *size_r);\n"
28448 "\n"
28449 msgstr ""
28450
28451 #. type: textblock
28452 #: ../src/guestfs-actions.pod:3840
28453 msgid "See also: C<guestfs_lgetxattrs>, C<guestfs_getxattr>, L<attr(5)>."
28454 msgstr ""
28455
28456 #. type: =head2
28457 #: ../src/guestfs-actions.pod:3848
28458 msgid "guestfs_lgetxattrs"
28459 msgstr ""
28460
28461 #. type: verbatim
28462 #: ../src/guestfs-actions.pod:3850
28463 #, no-wrap
28464 msgid ""
28465 " struct guestfs_xattr_list *\n"
28466 " guestfs_lgetxattrs (guestfs_h *g,\n"
28467 "                     const char *path);\n"
28468 "\n"
28469 msgstr ""
28470
28471 #. type: textblock
28472 #: ../src/guestfs-actions.pod:3854
28473 msgid ""
28474 "This is the same as C<guestfs_getxattrs>, but if C<path> is a symbolic link, "
28475 "then it returns the extended attributes of the link itself."
28476 msgstr ""
28477
28478 #. type: =head2
28479 #: ../src/guestfs-actions.pod:3864
28480 msgid "guestfs_list_9p"
28481 msgstr ""
28482
28483 #. type: verbatim
28484 #: ../src/guestfs-actions.pod:3866
28485 #, no-wrap
28486 msgid ""
28487 " char **\n"
28488 " guestfs_list_9p (guestfs_h *g);\n"
28489 "\n"
28490 msgstr ""
28491
28492 #. type: =head2
28493 #: ../src/guestfs-actions.pod:3878
28494 msgid "guestfs_list_devices"
28495 msgstr ""
28496
28497 #. type: verbatim
28498 #: ../src/guestfs-actions.pod:3880
28499 #, no-wrap
28500 msgid ""
28501 " char **\n"
28502 " guestfs_list_devices (guestfs_h *g);\n"
28503 "\n"
28504 msgstr ""
28505
28506 #. type: =head2
28507 #: ../src/guestfs-actions.pod:3895
28508 msgid "guestfs_list_dm_devices"
28509 msgstr ""
28510
28511 #. type: verbatim
28512 #: ../src/guestfs-actions.pod:3897
28513 #, no-wrap
28514 msgid ""
28515 " char **\n"
28516 " guestfs_list_dm_devices (guestfs_h *g);\n"
28517 "\n"
28518 msgstr ""
28519
28520 #. type: textblock
28521 #: ../src/guestfs-actions.pod:3902
28522 msgid ""
28523 "The returned list contains C</dev/mapper/*> devices, eg. ones created by a "
28524 "previous call to C<guestfs_luks_open>."
28525 msgstr ""
28526
28527 #. type: textblock
28528 #: ../src/guestfs-actions.pod:3905
28529 msgid ""
28530 "Device mapper devices which correspond to logical volumes are I<not> "
28531 "returned in this list.  Call C<guestfs_lvs> if you want to list logical "
28532 "volumes."
28533 msgstr ""
28534
28535 #. type: textblock
28536 #: ../src/guestfs-actions.pod:3913 ../src/guestfs-actions.pod:5359
28537 msgid "(Added in 1.11.15)"
28538 msgstr ""
28539
28540 #. type: =head2
28541 #: ../src/guestfs-actions.pod:3915
28542 msgid "guestfs_list_filesystems"
28543 msgstr ""
28544
28545 #. type: verbatim
28546 #: ../src/guestfs-actions.pod:3917
28547 #, no-wrap
28548 msgid ""
28549 " char **\n"
28550 " guestfs_list_filesystems (guestfs_h *g);\n"
28551 "\n"
28552 msgstr ""
28553
28554 #. type: textblock
28555 #: ../src/guestfs-actions.pod:3937
28556 msgid ""
28557 "This command runs other libguestfs commands, which might include "
28558 "C<guestfs_mount> and C<guestfs_umount>, and therefore you should use this "
28559 "soon after launch and only when nothing is mounted."
28560 msgstr ""
28561
28562 #. type: textblock
28563 #: ../src/guestfs-actions.pod:3941
28564 msgid ""
28565 "Not all of the filesystems returned will be mountable.  In particular, swap "
28566 "partitions are returned in the list.  Also this command does not check that "
28567 "each filesystem found is valid and mountable, and some filesystems might be "
28568 "mountable but require special options.  Filesystems may not all belong to a "
28569 "single logical operating system (use C<guestfs_inspect_os> to look for OSes)."
28570 msgstr ""
28571
28572 #. type: textblock
28573 #: ../src/guestfs-actions.pod:3955 ../src/guestfs-actions.pod:5720
28574 msgid "(Added in 1.5.15)"
28575 msgstr ""
28576
28577 #. type: =head2
28578 #: ../src/guestfs-actions.pod:3957
28579 msgid "guestfs_list_partitions"
28580 msgstr "guestfs_list_partitions"
28581
28582 #. type: verbatim
28583 #: ../src/guestfs-actions.pod:3959
28584 #, no-wrap
28585 msgid ""
28586 " char **\n"
28587 " guestfs_list_partitions (guestfs_h *g);\n"
28588 "\n"
28589 msgstr ""
28590 " char **\n"
28591 " guestfs_list_partitions (guestfs_h *g);\n"
28592 "\n"
28593
28594 #. type: textblock
28595 #: ../src/guestfs-actions.pod:3966
28596 msgid ""
28597 "This does not return logical volumes.  For that you will need to call "
28598 "C<guestfs_lvs>."
28599 msgstr ""
28600
28601 #. type: =head2
28602 #: ../src/guestfs-actions.pod:3977
28603 msgid "guestfs_ll"
28604 msgstr "guestfs_ll"
28605
28606 #. type: verbatim
28607 #: ../src/guestfs-actions.pod:3979
28608 #, no-wrap
28609 msgid ""
28610 " char *\n"
28611 " guestfs_ll (guestfs_h *g,\n"
28612 "             const char *directory);\n"
28613 "\n"
28614 msgstr ""
28615 " char *\n"
28616 " guestfs_ll (guestfs_h *g,\n"
28617 "             const char *directory);\n"
28618 "\n"
28619
28620 #. type: =head2
28621 #: ../src/guestfs-actions.pod:3994
28622 msgid "guestfs_ln"
28623 msgstr "guestfs_ln"
28624
28625 #. type: verbatim
28626 #: ../src/guestfs-actions.pod:3996
28627 #, no-wrap
28628 msgid ""
28629 " int\n"
28630 " guestfs_ln (guestfs_h *g,\n"
28631 "             const char *target,\n"
28632 "             const char *linkname);\n"
28633 "\n"
28634 msgstr ""
28635 " int\n"
28636 " guestfs_ln (guestfs_h *g,\n"
28637 "             const char *target,\n"
28638 "             const char *linkname);\n"
28639 "\n"
28640
28641 #. type: =head2
28642 #: ../src/guestfs-actions.pod:4007
28643 msgid "guestfs_ln_f"
28644 msgstr "guestfs_ln_f"
28645
28646 #. type: verbatim
28647 #: ../src/guestfs-actions.pod:4009
28648 #, no-wrap
28649 msgid ""
28650 " int\n"
28651 " guestfs_ln_f (guestfs_h *g,\n"
28652 "               const char *target,\n"
28653 "               const char *linkname);\n"
28654 "\n"
28655 msgstr ""
28656 " int\n"
28657 " guestfs_ln_f (guestfs_h *g,\n"
28658 "               const char *target,\n"
28659 "               const char *linkname);\n"
28660 "\n"
28661
28662 #. type: =head2
28663 #: ../src/guestfs-actions.pod:4021
28664 msgid "guestfs_ln_s"
28665 msgstr "guestfs_ln_s"
28666
28667 #. type: verbatim
28668 #: ../src/guestfs-actions.pod:4023
28669 #, no-wrap
28670 msgid ""
28671 " int\n"
28672 " guestfs_ln_s (guestfs_h *g,\n"
28673 "               const char *target,\n"
28674 "               const char *linkname);\n"
28675 "\n"
28676 msgstr ""
28677 " int\n"
28678 " guestfs_ln_s (guestfs_h *g,\n"
28679 "               const char *target,\n"
28680 "               const char *linkname);\n"
28681 "\n"
28682
28683 #. type: =head2
28684 #: ../src/guestfs-actions.pod:4034
28685 msgid "guestfs_ln_sf"
28686 msgstr "guestfs_ln_sf"
28687
28688 #. type: verbatim
28689 #: ../src/guestfs-actions.pod:4036
28690 #, no-wrap
28691 msgid ""
28692 " int\n"
28693 " guestfs_ln_sf (guestfs_h *g,\n"
28694 "                const char *target,\n"
28695 "                const char *linkname);\n"
28696 "\n"
28697 msgstr ""
28698 " int\n"
28699 " guestfs_ln_sf (guestfs_h *g,\n"
28700 "                const char *target,\n"
28701 "                const char *linkname);\n"
28702 "\n"
28703
28704 #. type: =head2
28705 #: ../src/guestfs-actions.pod:4048
28706 msgid "guestfs_lremovexattr"
28707 msgstr "guestfs_lremovexattr"
28708
28709 #. type: verbatim
28710 #: ../src/guestfs-actions.pod:4050
28711 #, no-wrap
28712 msgid ""
28713 " int\n"
28714 " guestfs_lremovexattr (guestfs_h *g,\n"
28715 "                       const char *xattr,\n"
28716 "                       const char *path);\n"
28717 "\n"
28718 msgstr ""
28719 " int\n"
28720 " guestfs_lremovexattr (guestfs_h *g,\n"
28721 "                       const char *xattr,\n"
28722 "                       const char *path);\n"
28723 "\n"
28724
28725 #. type: textblock
28726 #: ../src/guestfs-actions.pod:4055
28727 msgid ""
28728 "This is the same as C<guestfs_removexattr>, but if C<path> is a symbolic "
28729 "link, then it removes an extended attribute of the link itself."
28730 msgstr ""
28731
28732 #. type: =head2
28733 #: ../src/guestfs-actions.pod:4063
28734 msgid "guestfs_ls"
28735 msgstr "guestfs_ls"
28736
28737 #. type: verbatim
28738 #: ../src/guestfs-actions.pod:4065
28739 #, no-wrap
28740 msgid ""
28741 " char **\n"
28742 " guestfs_ls (guestfs_h *g,\n"
28743 "             const char *directory);\n"
28744 "\n"
28745 msgstr ""
28746 " char **\n"
28747 " guestfs_ls (guestfs_h *g,\n"
28748 "             const char *directory);\n"
28749 "\n"
28750
28751 #. type: textblock
28752 #: ../src/guestfs-actions.pod:4073
28753 msgid ""
28754 "This command is mostly useful for interactive sessions.  Programs should "
28755 "probably use C<guestfs_readdir> instead."
28756 msgstr ""
28757
28758 #. type: =head2
28759 #: ../src/guestfs-actions.pod:4082
28760 msgid "guestfs_lsetxattr"
28761 msgstr "guestfs_lsetxattr"
28762
28763 #. type: verbatim
28764 #: ../src/guestfs-actions.pod:4084
28765 #, no-wrap
28766 msgid ""
28767 " int\n"
28768 " guestfs_lsetxattr (guestfs_h *g,\n"
28769 "                    const char *xattr,\n"
28770 "                    const char *val,\n"
28771 "                    int vallen,\n"
28772 "                    const char *path);\n"
28773 "\n"
28774 msgstr ""
28775 " int\n"
28776 " guestfs_lsetxattr (guestfs_h *g,\n"
28777 "                    const char *xattr,\n"
28778 "                    const char *val,\n"
28779 "                    int vallen,\n"
28780 "                    const char *path);\n"
28781 "\n"
28782
28783 #. type: textblock
28784 #: ../src/guestfs-actions.pod:4091
28785 msgid ""
28786 "This is the same as C<guestfs_setxattr>, but if C<path> is a symbolic link, "
28787 "then it sets an extended attribute of the link itself."
28788 msgstr ""
28789
28790 #. type: =head2
28791 #: ../src/guestfs-actions.pod:4099
28792 msgid "guestfs_lstat"
28793 msgstr "guestfs_lstat"
28794
28795 #. type: verbatim
28796 #: ../src/guestfs-actions.pod:4101
28797 #, no-wrap
28798 msgid ""
28799 " struct guestfs_stat *\n"
28800 " guestfs_lstat (guestfs_h *g,\n"
28801 "                const char *path);\n"
28802 "\n"
28803 msgstr ""
28804 " struct guestfs_stat *\n"
28805 " guestfs_lstat (guestfs_h *g,\n"
28806 "                const char *path);\n"
28807 "\n"
28808
28809 #. type: textblock
28810 #: ../src/guestfs-actions.pod:4107
28811 msgid ""
28812 "This is the same as C<guestfs_stat> except that if C<path> is a symbolic "
28813 "link, then the link is stat-ed, not the file it refers to."
28814 msgstr ""
28815
28816 #. type: textblock
28817 #: ../src/guestfs-actions.pod:4113 ../src/guestfs-actions.pod:6894
28818 msgid ""
28819 "This function returns a C<struct guestfs_stat *>, or NULL if there was an "
28820 "error.  I<The caller must call C<guestfs_free_stat> after use>."
28821 msgstr ""
28822
28823 #. type: textblock
28824 #: ../src/guestfs-actions.pod:4117 ../src/guestfs-actions.pod:6898
28825 #: ../src/guestfs-actions.pod:6916 ../src/guestfs-actions.pod:7297
28826 msgid "(Added in 0.9.2)"
28827 msgstr "(Додано у 0.9.2)"
28828
28829 #. type: =head2
28830 #: ../src/guestfs-actions.pod:4119
28831 msgid "guestfs_lstatlist"
28832 msgstr "guestfs_lstatlist"
28833
28834 #. type: verbatim
28835 #: ../src/guestfs-actions.pod:4121
28836 #, no-wrap
28837 msgid ""
28838 " struct guestfs_stat_list *\n"
28839 " guestfs_lstatlist (guestfs_h *g,\n"
28840 "                    const char *path,\n"
28841 "                    char *const *names);\n"
28842 "\n"
28843 msgstr ""
28844 " struct guestfs_stat_list *\n"
28845 " guestfs_lstatlist (guestfs_h *g,\n"
28846 "                    const char *path,\n"
28847 "                    char *const *names);\n"
28848 "\n"
28849
28850 #. type: textblock
28851 #: ../src/guestfs-actions.pod:4126
28852 msgid ""
28853 "This call allows you to perform the C<guestfs_lstat> operation on multiple "
28854 "files, where all files are in the directory C<path>.  C<names> is the list "
28855 "of files from this directory."
28856 msgstr ""
28857
28858 #. type: textblock
28859 #: ../src/guestfs-actions.pod:4135
28860 msgid ""
28861 "This call is intended for programs that want to efficiently list a directory "
28862 "contents without making many round-trips.  See also C<guestfs_lxattrlist> "
28863 "for a similarly efficient call for getting extended attributes.  Very long "
28864 "directory listings might cause the protocol message size to be exceeded, "
28865 "causing this call to fail.  The caller must split up such requests into "
28866 "smaller groups of names."
28867 msgstr ""
28868
28869 #. type: textblock
28870 #: ../src/guestfs-actions.pod:4143
28871 msgid ""
28872 "This function returns a C<struct guestfs_stat_list *>, or NULL if there was "
28873 "an error.  I<The caller must call C<guestfs_free_stat_list> after use>."
28874 msgstr ""
28875
28876 #. type: =head2
28877 #: ../src/guestfs-actions.pod:4149
28878 msgid "guestfs_luks_add_key"
28879 msgstr "guestfs_luks_add_key"
28880
28881 #. type: verbatim
28882 #: ../src/guestfs-actions.pod:4151
28883 #, no-wrap
28884 msgid ""
28885 " int\n"
28886 " guestfs_luks_add_key (guestfs_h *g,\n"
28887 "                       const char *device,\n"
28888 "                       const char *key,\n"
28889 "                       const char *newkey,\n"
28890 "                       int keyslot);\n"
28891 "\n"
28892 msgstr ""
28893 " int\n"
28894 " guestfs_luks_add_key (guestfs_h *g,\n"
28895 "                       const char *device,\n"
28896 "                       const char *key,\n"
28897 "                       const char *newkey,\n"
28898 "                       int keyslot);\n"
28899 "\n"
28900
28901 #. type: textblock
28902 #: ../src/guestfs-actions.pod:4163
28903 msgid ""
28904 "Note that if C<keyslot> already contains a key, then this command will "
28905 "fail.  You have to use C<guestfs_luks_kill_slot> first to remove that key."
28906 msgstr ""
28907
28908 #. type: textblock
28909 #: ../src/guestfs-actions.pod:4169 ../src/guestfs-actions.pod:4209
28910 #: ../src/guestfs-actions.pod:4232 ../src/guestfs-actions.pod:4252
28911 #: ../src/guestfs-actions.pod:4287 ../src/guestfs-actions.pod:4306
28912 msgid ""
28913 "This function takes a key or passphrase parameter which could contain "
28914 "sensitive material.  Read the section L</KEYS AND PASSPHRASES> for more "
28915 "information."
28916 msgstr ""
28917
28918 #. type: textblock
28919 #: ../src/guestfs-actions.pod:4173 ../src/guestfs-actions.pod:4213
28920 #: ../src/guestfs-actions.pod:4236 ../src/guestfs-actions.pod:4256
28921 msgid "(Added in 1.5.2)"
28922 msgstr "(Додано у 1.5.2)"
28923
28924 #. type: =head2
28925 #: ../src/guestfs-actions.pod:4175
28926 msgid "guestfs_luks_close"
28927 msgstr "guestfs_luks_close"
28928
28929 #. type: verbatim
28930 #: ../src/guestfs-actions.pod:4177
28931 #, no-wrap
28932 msgid ""
28933 " int\n"
28934 " guestfs_luks_close (guestfs_h *g,\n"
28935 "                     const char *device);\n"
28936 "\n"
28937 msgstr ""
28938 " int\n"
28939 " guestfs_luks_close (guestfs_h *g,\n"
28940 "                     const char *device);\n"
28941 "\n"
28942
28943 #. type: textblock
28944 #: ../src/guestfs-actions.pod:4181
28945 msgid ""
28946 "This closes a LUKS device that was created earlier by C<guestfs_luks_open> "
28947 "or C<guestfs_luks_open_ro>.  The C<device> parameter must be the name of the "
28948 "LUKS mapping device (ie. C</dev/mapper/mapname>) and I<not> the name of the "
28949 "underlying block device."
28950 msgstr ""
28951
28952 #. type: textblock
28953 #: ../src/guestfs-actions.pod:4189 ../src/guestfs-actions.pod:4291
28954 #: ../src/guestfs-actions.pod:4310 ../src/guestfs-actions.pod:4360
28955 #: ../src/guestfs-actions.pod:4408
28956 msgid "(Added in 1.5.1)"
28957 msgstr "(Додано у 1.5.1)"
28958
28959 #. type: =head2
28960 #: ../src/guestfs-actions.pod:4191
28961 msgid "guestfs_luks_format"
28962 msgstr "guestfs_luks_format"
28963
28964 #. type: verbatim
28965 #: ../src/guestfs-actions.pod:4193
28966 #, no-wrap
28967 msgid ""
28968 " int\n"
28969 " guestfs_luks_format (guestfs_h *g,\n"
28970 "                      const char *device,\n"
28971 "                      const char *key,\n"
28972 "                      int keyslot);\n"
28973 "\n"
28974 msgstr ""
28975 " int\n"
28976 " guestfs_luks_format (guestfs_h *g,\n"
28977 "                      const char *device,\n"
28978 "                      const char *key,\n"
28979 "                      int keyslot);\n"
28980 "\n"
28981
28982 #. type: =head2
28983 #: ../src/guestfs-actions.pod:4215
28984 msgid "guestfs_luks_format_cipher"
28985 msgstr "guestfs_luks_format_cipher"
28986
28987 #. type: verbatim
28988 #: ../src/guestfs-actions.pod:4217
28989 #, no-wrap
28990 msgid ""
28991 " int\n"
28992 " guestfs_luks_format_cipher (guestfs_h *g,\n"
28993 "                             const char *device,\n"
28994 "                             const char *key,\n"
28995 "                             int keyslot,\n"
28996 "                             const char *cipher);\n"
28997 "\n"
28998 msgstr ""
28999 " int\n"
29000 " guestfs_luks_format_cipher (guestfs_h *g,\n"
29001 "                             const char *device,\n"
29002 "                             const char *key,\n"
29003 "                             int keyslot,\n"
29004 "                             const char *cipher);\n"
29005 "\n"
29006
29007 #. type: textblock
29008 #: ../src/guestfs-actions.pod:4224
29009 msgid ""
29010 "This command is the same as C<guestfs_luks_format> but it also allows you to "
29011 "set the C<cipher> used."
29012 msgstr ""
29013
29014 #. type: =head2
29015 #: ../src/guestfs-actions.pod:4238
29016 msgid "guestfs_luks_kill_slot"
29017 msgstr "guestfs_luks_kill_slot"
29018
29019 #. type: verbatim
29020 #: ../src/guestfs-actions.pod:4240
29021 #, no-wrap
29022 msgid ""
29023 " int\n"
29024 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29025 "                         const char *device,\n"
29026 "                         const char *key,\n"
29027 "                         int keyslot);\n"
29028 "\n"
29029 msgstr ""
29030 " int\n"
29031 " guestfs_luks_kill_slot (guestfs_h *g,\n"
29032 "                         const char *device,\n"
29033 "                         const char *key,\n"
29034 "                         int keyslot);\n"
29035 "\n"
29036
29037 #. type: =head2
29038 #: ../src/guestfs-actions.pod:4258
29039 msgid "guestfs_luks_open"
29040 msgstr "guestfs_luks_open"
29041
29042 #. type: verbatim
29043 #: ../src/guestfs-actions.pod:4260
29044 #, no-wrap
29045 msgid ""
29046 " int\n"
29047 " guestfs_luks_open (guestfs_h *g,\n"
29048 "                    const char *device,\n"
29049 "                    const char *key,\n"
29050 "                    const char *mapname);\n"
29051 "\n"
29052 msgstr ""
29053 " int\n"
29054 " guestfs_luks_open (guestfs_h *g,\n"
29055 "                    const char *device,\n"
29056 "                    const char *key,\n"
29057 "                    const char *mapname);\n"
29058 "\n"
29059
29060 #. type: textblock
29061 #: ../src/guestfs-actions.pod:4278
29062 msgid ""
29063 "If this block device contains LVM volume groups, then calling "
29064 "C<guestfs_vgscan> followed by C<guestfs_vg_activate_all> will make them "
29065 "visible."
29066 msgstr ""
29067
29068 #. type: textblock
29069 #: ../src/guestfs-actions.pod:4282
29070 msgid "Use C<guestfs_list_dm_devices> to list all device mapper devices."
29071 msgstr ""
29072
29073 #. type: =head2
29074 #: ../src/guestfs-actions.pod:4293
29075 msgid "guestfs_luks_open_ro"
29076 msgstr "guestfs_luks_open_ro"
29077
29078 #. type: verbatim
29079 #: ../src/guestfs-actions.pod:4295
29080 #, no-wrap
29081 msgid ""
29082 " int\n"
29083 " guestfs_luks_open_ro (guestfs_h *g,\n"
29084 "                       const char *device,\n"
29085 "                       const char *key,\n"
29086 "                       const char *mapname);\n"
29087 "\n"
29088 msgstr ""
29089 " int\n"
29090 " guestfs_luks_open_ro (guestfs_h *g,\n"
29091 "                       const char *device,\n"
29092 "                       const char *key,\n"
29093 "                       const char *mapname);\n"
29094 "\n"
29095
29096 #. type: textblock
29097 #: ../src/guestfs-actions.pod:4301
29098 msgid ""
29099 "This is the same as C<guestfs_luks_open> except that a read-only mapping is "
29100 "created."
29101 msgstr ""
29102
29103 #. type: =head2
29104 #: ../src/guestfs-actions.pod:4312
29105 msgid "guestfs_lvcreate"
29106 msgstr "guestfs_lvcreate"
29107
29108 #. type: verbatim
29109 #: ../src/guestfs-actions.pod:4314
29110 #, no-wrap
29111 msgid ""
29112 " int\n"
29113 " guestfs_lvcreate (guestfs_h *g,\n"
29114 "                   const char *logvol,\n"
29115 "                   const char *volgroup,\n"
29116 "                   int mbytes);\n"
29117 "\n"
29118 msgstr ""
29119 " int\n"
29120 " guestfs_lvcreate (guestfs_h *g,\n"
29121 "                   const char *logvol,\n"
29122 "                   const char *volgroup,\n"
29123 "                   int mbytes);\n"
29124 "\n"
29125
29126 #. type: =head2
29127 #: ../src/guestfs-actions.pod:4327
29128 msgid "guestfs_lvm_canonical_lv_name"
29129 msgstr "guestfs_lvm_canonical_lv_name"
29130
29131 #. type: verbatim
29132 #: ../src/guestfs-actions.pod:4329
29133 #, no-wrap
29134 msgid ""
29135 " char *\n"
29136 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29137 "                                const char *lvname);\n"
29138 "\n"
29139 msgstr ""
29140 " char *\n"
29141 " guestfs_lvm_canonical_lv_name (guestfs_h *g,\n"
29142 "                                const char *lvname);\n"
29143 "\n"
29144
29145 #. type: textblock
29146 #: ../src/guestfs-actions.pod:4340
29147 msgid "See also C<guestfs_is_lv>."
29148 msgstr ""
29149
29150 #. type: textblock
29151 #: ../src/guestfs-actions.pod:4345
29152 msgid "(Added in 1.5.24)"
29153 msgstr "(Додано у 1.5.24)"
29154
29155 #. type: =head2
29156 #: ../src/guestfs-actions.pod:4347
29157 msgid "guestfs_lvm_clear_filter"
29158 msgstr "guestfs_lvm_clear_filter"
29159
29160 #. type: verbatim
29161 #: ../src/guestfs-actions.pod:4349
29162 #, no-wrap
29163 msgid ""
29164 " int\n"
29165 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29166 "\n"
29167 msgstr ""
29168 " int\n"
29169 " guestfs_lvm_clear_filter (guestfs_h *g);\n"
29170 "\n"
29171
29172 #. type: textblock
29173 #: ../src/guestfs-actions.pod:4352
29174 msgid ""
29175 "This undoes the effect of C<guestfs_lvm_set_filter>.  LVM will be able to "
29176 "see every block device."
29177 msgstr ""
29178
29179 #. type: =head2
29180 #: ../src/guestfs-actions.pod:4362
29181 msgid "guestfs_lvm_remove_all"
29182 msgstr "guestfs_lvm_remove_all"
29183
29184 #. type: verbatim
29185 #: ../src/guestfs-actions.pod:4364
29186 #, no-wrap
29187 msgid ""
29188 " int\n"
29189 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29190 "\n"
29191 msgstr ""
29192 " int\n"
29193 " guestfs_lvm_remove_all (guestfs_h *g);\n"
29194 "\n"
29195
29196 #. type: =head2
29197 #: ../src/guestfs-actions.pod:4377
29198 msgid "guestfs_lvm_set_filter"
29199 msgstr "guestfs_lvm_set_filter"
29200
29201 #. type: verbatim
29202 #: ../src/guestfs-actions.pod:4379
29203 #, no-wrap
29204 msgid ""
29205 " int\n"
29206 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29207 "                         char *const *devices);\n"
29208 "\n"
29209 msgstr ""
29210 " int\n"
29211 " guestfs_lvm_set_filter (guestfs_h *g,\n"
29212 "                         char *const *devices);\n"
29213 "\n"
29214
29215 #. type: =head2
29216 #: ../src/guestfs-actions.pod:4410
29217 msgid "guestfs_lvremove"
29218 msgstr "guestfs_lvremove"
29219
29220 #. type: verbatim
29221 #: ../src/guestfs-actions.pod:4412
29222 #, no-wrap
29223 msgid ""
29224 " int\n"
29225 " guestfs_lvremove (guestfs_h *g,\n"
29226 "                   const char *device);\n"
29227 "\n"
29228 msgstr ""
29229 " int\n"
29230 " guestfs_lvremove (guestfs_h *g,\n"
29231 "                   const char *device);\n"
29232 "\n"
29233
29234 #. type: textblock
29235 #: ../src/guestfs-actions.pod:4424 ../src/guestfs-actions.pod:5817
29236 #: ../src/guestfs-actions.pod:7667
29237 msgid "(Added in 1.0.13)"
29238 msgstr "(Додано у 1.0.13)"
29239
29240 #. type: =head2
29241 #: ../src/guestfs-actions.pod:4426
29242 msgid "guestfs_lvrename"
29243 msgstr "guestfs_lvrename"
29244
29245 #. type: verbatim
29246 #: ../src/guestfs-actions.pod:4428
29247 #, no-wrap
29248 msgid ""
29249 " int\n"
29250 " guestfs_lvrename (guestfs_h *g,\n"
29251 "                   const char *logvol,\n"
29252 "                   const char *newlogvol);\n"
29253 "\n"
29254 msgstr ""
29255 " int\n"
29256 " guestfs_lvrename (guestfs_h *g,\n"
29257 "                   const char *logvol,\n"
29258 "                   const char *newlogvol);\n"
29259 "\n"
29260
29261 #. type: textblock
29262 #: ../src/guestfs-actions.pod:4437 ../src/guestfs-actions.pod:7680
29263 msgid "(Added in 1.0.83)"
29264 msgstr "(Додано у 1.0.83)"
29265
29266 #. type: =head2
29267 #: ../src/guestfs-actions.pod:4439
29268 msgid "guestfs_lvresize"
29269 msgstr "guestfs_lvresize"
29270
29271 #. type: verbatim
29272 #: ../src/guestfs-actions.pod:4441
29273 #, no-wrap
29274 msgid ""
29275 " int\n"
29276 " guestfs_lvresize (guestfs_h *g,\n"
29277 "                   const char *device,\n"
29278 "                   int mbytes);\n"
29279 "\n"
29280 msgstr ""
29281 " int\n"
29282 " guestfs_lvresize (guestfs_h *g,\n"
29283 "                   const char *device,\n"
29284 "                   int mbytes);\n"
29285 "\n"
29286
29287 #. type: =head2
29288 #: ../src/guestfs-actions.pod:4454
29289 msgid "guestfs_lvresize_free"
29290 msgstr "guestfs_lvresize_free"
29291
29292 #. type: verbatim
29293 #: ../src/guestfs-actions.pod:4456
29294 #, no-wrap
29295 msgid ""
29296 " int\n"
29297 " guestfs_lvresize_free (guestfs_h *g,\n"
29298 "                        const char *lv,\n"
29299 "                        int percent);\n"
29300 "\n"
29301 msgstr ""
29302 " int\n"
29303 " guestfs_lvresize_free (guestfs_h *g,\n"
29304 "                        const char *lv,\n"
29305 "                        int percent);\n"
29306 "\n"
29307
29308 #. type: textblock
29309 #: ../src/guestfs-actions.pod:4469
29310 msgid "(Added in 1.3.3)"
29311 msgstr "(Додано у 1.3.3)"
29312
29313 #. type: =head2
29314 #: ../src/guestfs-actions.pod:4471
29315 msgid "guestfs_lvs"
29316 msgstr "guestfs_lvs"
29317
29318 #. type: verbatim
29319 #: ../src/guestfs-actions.pod:4473
29320 #, no-wrap
29321 msgid ""
29322 " char **\n"
29323 " guestfs_lvs (guestfs_h *g);\n"
29324 "\n"
29325 msgstr ""
29326 " char **\n"
29327 " guestfs_lvs (guestfs_h *g);\n"
29328 "\n"
29329
29330 #. type: textblock
29331 #: ../src/guestfs-actions.pod:4482
29332 msgid "See also C<guestfs_lvs_full>, C<guestfs_list_filesystems>."
29333 msgstr ""
29334
29335 #. type: =head2
29336 #: ../src/guestfs-actions.pod:4490
29337 msgid "guestfs_lvs_full"
29338 msgstr "guestfs_lvs_full"
29339
29340 #. type: verbatim
29341 #: ../src/guestfs-actions.pod:4492
29342 #, no-wrap
29343 msgid ""
29344 " struct guestfs_lvm_lv_list *\n"
29345 " guestfs_lvs_full (guestfs_h *g);\n"
29346 "\n"
29347 msgstr ""
29348 " struct guestfs_lvm_lv_list *\n"
29349 " guestfs_lvs_full (guestfs_h *g);\n"
29350 "\n"
29351
29352 #. type: textblock
29353 #: ../src/guestfs-actions.pod:4498
29354 msgid ""
29355 "This function returns a C<struct guestfs_lvm_lv_list *>, or NULL if there "
29356 "was an error.  I<The caller must call C<guestfs_free_lvm_lv_list> after use>."
29357 msgstr ""
29358
29359 #. type: =head2
29360 #: ../src/guestfs-actions.pod:4504
29361 msgid "guestfs_lvuuid"
29362 msgstr "guestfs_lvuuid"
29363
29364 #. type: verbatim
29365 #: ../src/guestfs-actions.pod:4506
29366 #, no-wrap
29367 msgid ""
29368 " char *\n"
29369 " guestfs_lvuuid (guestfs_h *g,\n"
29370 "                 const char *device);\n"
29371 "\n"
29372 msgstr ""
29373 " char *\n"
29374 " guestfs_lvuuid (guestfs_h *g,\n"
29375 "                 const char *device);\n"
29376 "\n"
29377
29378 #. type: =head2
29379 #: ../src/guestfs-actions.pod:4517
29380 msgid "guestfs_lxattrlist"
29381 msgstr "guestfs_lxattrlist"
29382
29383 #. type: verbatim
29384 #: ../src/guestfs-actions.pod:4519
29385 #, no-wrap
29386 msgid ""
29387 " struct guestfs_xattr_list *\n"
29388 " guestfs_lxattrlist (guestfs_h *g,\n"
29389 "                     const char *path,\n"
29390 "                     char *const *names);\n"
29391 "\n"
29392 msgstr ""
29393 " struct guestfs_xattr_list *\n"
29394 " guestfs_lxattrlist (guestfs_h *g,\n"
29395 "                     const char *path,\n"
29396 "                     char *const *names);\n"
29397 "\n"
29398
29399 #. type: textblock
29400 #: ../src/guestfs-actions.pod:4538
29401 msgid ""
29402 "This call is intended for programs that want to efficiently list a directory "
29403 "contents without making many round-trips.  See also C<guestfs_lstatlist> for "
29404 "a similarly efficient call for getting standard stats.  Very long directory "
29405 "listings might cause the protocol message size to be exceeded, causing this "
29406 "call to fail.  The caller must split up such requests into smaller groups of "
29407 "names."
29408 msgstr ""
29409
29410 #. type: =head2
29411 #: ../src/guestfs-actions.pod:4552
29412 msgid "guestfs_mkdir"
29413 msgstr "guestfs_mkdir"
29414
29415 #. type: verbatim
29416 #: ../src/guestfs-actions.pod:4554
29417 #, no-wrap
29418 msgid ""
29419 " int\n"
29420 " guestfs_mkdir (guestfs_h *g,\n"
29421 "                const char *path);\n"
29422 "\n"
29423 msgstr ""
29424 " int\n"
29425 " guestfs_mkdir (guestfs_h *g,\n"
29426 "                const char *path);\n"
29427 "\n"
29428
29429 #. type: =head2
29430 #: ../src/guestfs-actions.pod:4564
29431 msgid "guestfs_mkdir_mode"
29432 msgstr "guestfs_mkdir_mode"
29433
29434 #. type: verbatim
29435 #: ../src/guestfs-actions.pod:4566
29436 #, no-wrap
29437 msgid ""
29438 " int\n"
29439 " guestfs_mkdir_mode (guestfs_h *g,\n"
29440 "                     const char *path,\n"
29441 "                     int mode);\n"
29442 "\n"
29443 msgstr ""
29444 " int\n"
29445 " guestfs_mkdir_mode (guestfs_h *g,\n"
29446 "                     const char *path,\n"
29447 "                     int mode);\n"
29448 "\n"
29449
29450 #. type: textblock
29451 #: ../src/guestfs-actions.pod:4578
29452 msgid "See also C<guestfs_mkdir>, C<guestfs_umask>"
29453 msgstr ""
29454
29455 #. type: =head2
29456 #: ../src/guestfs-actions.pod:4584
29457 msgid "guestfs_mkdir_p"
29458 msgstr "guestfs_mkdir_p"
29459
29460 #. type: verbatim
29461 #: ../src/guestfs-actions.pod:4586
29462 #, no-wrap
29463 msgid ""
29464 " int\n"
29465 " guestfs_mkdir_p (guestfs_h *g,\n"
29466 "                  const char *path);\n"
29467 "\n"
29468 msgstr ""
29469 " int\n"
29470 " guestfs_mkdir_p (guestfs_h *g,\n"
29471 "                  const char *path);\n"
29472 "\n"
29473
29474 #. type: =head2
29475 #: ../src/guestfs-actions.pod:4597
29476 msgid "guestfs_mkdtemp"
29477 msgstr "guestfs_mkdtemp"
29478
29479 #. type: verbatim
29480 #: ../src/guestfs-actions.pod:4599
29481 #, no-wrap
29482 msgid ""
29483 " char *\n"
29484 " guestfs_mkdtemp (guestfs_h *g,\n"
29485 "                  const char *template);\n"
29486 "\n"
29487 msgstr ""
29488 " char *\n"
29489 " guestfs_mkdtemp (guestfs_h *g,\n"
29490 "                  const char *template);\n"
29491 "\n"
29492
29493 #. type: =head2
29494 #: ../src/guestfs-actions.pod:4627
29495 msgid "guestfs_mke2fs_J"
29496 msgstr "guestfs_mke2fs_J"
29497
29498 #. type: verbatim
29499 #: ../src/guestfs-actions.pod:4629
29500 #, no-wrap
29501 msgid ""
29502 " int\n"
29503 " guestfs_mke2fs_J (guestfs_h *g,\n"
29504 "                   const char *fstype,\n"
29505 "                   int blocksize,\n"
29506 "                   const char *device,\n"
29507 "                   const char *journal);\n"
29508 "\n"
29509 msgstr ""
29510 " int\n"
29511 " guestfs_mke2fs_J (guestfs_h *g,\n"
29512 "                   const char *fstype,\n"
29513 "                   int blocksize,\n"
29514 "                   const char *device,\n"
29515 "                   const char *journal);\n"
29516 "\n"
29517
29518 #. type: textblock
29519 #: ../src/guestfs-actions.pod:4642
29520 msgid "See also C<guestfs_mke2journal>."
29521 msgstr ""
29522
29523 #. type: textblock
29524 #: ../src/guestfs-actions.pod:4646 ../src/guestfs-actions.pod:4664
29525 #: ../src/guestfs-actions.pod:4682 ../src/guestfs-actions.pod:4698
29526 #: ../src/guestfs-actions.pod:4712 ../src/guestfs-actions.pod:4726
29527 #: ../src/guestfs-actions.pod:4785 ../src/guestfs-actions.pod:5062
29528 msgid "(Added in 1.0.68)"
29529 msgstr "(Додано у 1.0.68)"
29530
29531 #. type: =head2
29532 #: ../src/guestfs-actions.pod:4648
29533 msgid "guestfs_mke2fs_JL"
29534 msgstr "guestfs_mke2fs_JL"
29535
29536 #. type: verbatim
29537 #: ../src/guestfs-actions.pod:4650
29538 #, no-wrap
29539 msgid ""
29540 " int\n"
29541 " guestfs_mke2fs_JL (guestfs_h *g,\n"
29542 "                    const char *fstype,\n"
29543 "                    int blocksize,\n"
29544 "                    const char *device,\n"
29545 "                    const char *label);\n"
29546 "\n"
29547 msgstr ""
29548 " int\n"
29549 " guestfs_mke2fs_JL (guestfs_h *g,\n"
29550 "                    const char *fstype,\n"
29551 "                    int blocksize,\n"
29552 "                    const char *device,\n"
29553 "                    const char *label);\n"
29554 "\n"
29555
29556 #. type: textblock
29557 #: ../src/guestfs-actions.pod:4660
29558 msgid "See also C<guestfs_mke2journal_L>."
29559 msgstr ""
29560
29561 #. type: =head2
29562 #: ../src/guestfs-actions.pod:4666
29563 msgid "guestfs_mke2fs_JU"
29564 msgstr "guestfs_mke2fs_JU"
29565
29566 #. type: verbatim
29567 #: ../src/guestfs-actions.pod:4668
29568 #, no-wrap
29569 msgid ""
29570 " int\n"
29571 " guestfs_mke2fs_JU (guestfs_h *g,\n"
29572 "                    const char *fstype,\n"
29573 "                    int blocksize,\n"
29574 "                    const char *device,\n"
29575 "                    const char *uuid);\n"
29576 "\n"
29577 msgstr ""
29578 " int\n"
29579 " guestfs_mke2fs_JU (guestfs_h *g,\n"
29580 "                    const char *fstype,\n"
29581 "                    int blocksize,\n"
29582 "                    const char *device,\n"
29583 "                    const char *uuid);\n"
29584 "\n"
29585
29586 #. type: textblock
29587 #: ../src/guestfs-actions.pod:4678
29588 msgid "See also C<guestfs_mke2journal_U>."
29589 msgstr ""
29590
29591 #. type: =head2
29592 #: ../src/guestfs-actions.pod:4684
29593 msgid "guestfs_mke2journal"
29594 msgstr "guestfs_mke2journal"
29595
29596 #. type: verbatim
29597 #: ../src/guestfs-actions.pod:4686
29598 #, no-wrap
29599 msgid ""
29600 " int\n"
29601 " guestfs_mke2journal (guestfs_h *g,\n"
29602 "                      int blocksize,\n"
29603 "                      const char *device);\n"
29604 "\n"
29605 msgstr ""
29606 " int\n"
29607 " guestfs_mke2journal (guestfs_h *g,\n"
29608 "                      int blocksize,\n"
29609 "                      const char *device);\n"
29610 "\n"
29611
29612 #. type: =head2
29613 #: ../src/guestfs-actions.pod:4700
29614 msgid "guestfs_mke2journal_L"
29615 msgstr "guestfs_mke2journal_L"
29616
29617 #. type: verbatim
29618 #: ../src/guestfs-actions.pod:4702
29619 #, no-wrap
29620 msgid ""
29621 " int\n"
29622 " guestfs_mke2journal_L (guestfs_h *g,\n"
29623 "                        int blocksize,\n"
29624 "                        const char *label,\n"
29625 "                        const char *device);\n"
29626 "\n"
29627 msgstr ""
29628 " int\n"
29629 " guestfs_mke2journal_L (guestfs_h *g,\n"
29630 "                        int blocksize,\n"
29631 "                        const char *label,\n"
29632 "                        const char *device);\n"
29633 "\n"
29634
29635 #. type: =head2
29636 #: ../src/guestfs-actions.pod:4714
29637 msgid "guestfs_mke2journal_U"
29638 msgstr "guestfs_mke2journal_U"
29639
29640 #. type: verbatim
29641 #: ../src/guestfs-actions.pod:4716
29642 #, no-wrap
29643 msgid ""
29644 " int\n"
29645 " guestfs_mke2journal_U (guestfs_h *g,\n"
29646 "                        int blocksize,\n"
29647 "                        const char *uuid,\n"
29648 "                        const char *device);\n"
29649 "\n"
29650 msgstr ""
29651 " int\n"
29652 " guestfs_mke2journal_U (guestfs_h *g,\n"
29653 "                        int blocksize,\n"
29654 "                        const char *uuid,\n"
29655 "                        const char *device);\n"
29656 "\n"
29657
29658 #. type: =head2
29659 #: ../src/guestfs-actions.pod:4728
29660 msgid "guestfs_mkfifo"
29661 msgstr "guestfs_mkfifo"
29662
29663 #. type: verbatim
29664 #: ../src/guestfs-actions.pod:4730
29665 #, no-wrap
29666 msgid ""
29667 " int\n"
29668 " guestfs_mkfifo (guestfs_h *g,\n"
29669 "                 int mode,\n"
29670 "                 const char *path);\n"
29671 "\n"
29672 msgstr ""
29673 " int\n"
29674 " guestfs_mkfifo (guestfs_h *g,\n"
29675 "                 int mode,\n"
29676 "                 const char *path);\n"
29677 "\n"
29678
29679 #. type: textblock
29680 #: ../src/guestfs-actions.pod:4735
29681 msgid ""
29682 "This call creates a FIFO (named pipe) called C<path> with mode C<mode>.  It "
29683 "is just a convenient wrapper around C<guestfs_mknod>."
29684 msgstr ""
29685
29686 #. type: =head2
29687 #: ../src/guestfs-actions.pod:4745
29688 msgid "guestfs_mkfs"
29689 msgstr "guestfs_mkfs"
29690
29691 #. type: verbatim
29692 #: ../src/guestfs-actions.pod:4747
29693 #, no-wrap
29694 msgid ""
29695 " int\n"
29696 " guestfs_mkfs (guestfs_h *g,\n"
29697 "               const char *fstype,\n"
29698 "               const char *device);\n"
29699 "\n"
29700 msgstr ""
29701 " int\n"
29702 " guestfs_mkfs (guestfs_h *g,\n"
29703 "               const char *fstype,\n"
29704 "               const char *device);\n"
29705 "\n"
29706
29707 #. type: =head2
29708 #: ../src/guestfs-actions.pod:4760
29709 msgid "guestfs_mkfs_b"
29710 msgstr "guestfs_mkfs_b"
29711
29712 #. type: verbatim
29713 #: ../src/guestfs-actions.pod:4762
29714 #, no-wrap
29715 msgid ""
29716 " int\n"
29717 " guestfs_mkfs_b (guestfs_h *g,\n"
29718 "                 const char *fstype,\n"
29719 "                 int blocksize,\n"
29720 "                 const char *device);\n"
29721 "\n"
29722 msgstr ""
29723 " int\n"
29724 " guestfs_mkfs_b (guestfs_h *g,\n"
29725 "                 const char *fstype,\n"
29726 "                 int blocksize,\n"
29727 "                 const char *device);\n"
29728 "\n"
29729
29730 #. type: textblock
29731 #: ../src/guestfs-actions.pod:4768
29732 msgid ""
29733 "I<This function is deprecated.> In new code, use the L</guestfs_mkfs_opts> "
29734 "call instead."
29735 msgstr ""
29736
29737 #. type: textblock
29738 #: ../src/guestfs-actions.pod:4775
29739 msgid ""
29740 "This call is similar to C<guestfs_mkfs>, but it allows you to control the "
29741 "block size of the resulting filesystem.  Supported block sizes depend on the "
29742 "filesystem type, but typically they are C<1024>, C<2048> or C<4096> only."
29743 msgstr ""
29744
29745 #. type: =head2
29746 #: ../src/guestfs-actions.pod:4787
29747 msgid "guestfs_mkfs_opts"
29748 msgstr "guestfs_mkfs_opts"
29749
29750 #. type: verbatim
29751 #: ../src/guestfs-actions.pod:4789
29752 #, no-wrap
29753 msgid ""
29754 " int\n"
29755 " guestfs_mkfs_opts (guestfs_h *g,\n"
29756 "                    const char *fstype,\n"
29757 "                    const char *device,\n"
29758 "                    ...);\n"
29759 "\n"
29760 msgstr ""
29761 " int\n"
29762 " guestfs_mkfs_opts (guestfs_h *g,\n"
29763 "                    const char *fstype,\n"
29764 "                    const char *device,\n"
29765 "                    ...);\n"
29766 "\n"
29767
29768 #. type: verbatim
29769 #: ../src/guestfs-actions.pod:4800
29770 #, no-wrap
29771 msgid ""
29772 " GUESTFS_MKFS_OPTS_BLOCKSIZE, int blocksize,\n"
29773 " GUESTFS_MKFS_OPTS_FEATURES, const char *features,\n"
29774 " GUESTFS_MKFS_OPTS_INODE, int inode,\n"
29775 " GUESTFS_MKFS_OPTS_SECTORSIZE, int sectorsize,\n"
29776 "\n"
29777 msgstr ""
29778
29779 #. type: textblock
29780 #: ../src/guestfs-actions.pod:4848
29781 msgid "(Added in 1.7.19)"
29782 msgstr "(Додано у 1.7.19)"
29783
29784 #. type: =head2
29785 #: ../src/guestfs-actions.pod:4850
29786 msgid "guestfs_mkfs_opts_va"
29787 msgstr "guestfs_mkfs_opts_va"
29788
29789 #. type: verbatim
29790 #: ../src/guestfs-actions.pod:4852
29791 #, no-wrap
29792 msgid ""
29793 " int\n"
29794 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29795 "                       const char *fstype,\n"
29796 "                       const char *device,\n"
29797 "                       va_list args);\n"
29798 "\n"
29799 msgstr ""
29800 " int\n"
29801 " guestfs_mkfs_opts_va (guestfs_h *g,\n"
29802 "                       const char *fstype,\n"
29803 "                       const char *device,\n"
29804 "                       va_list args);\n"
29805 "\n"
29806
29807 #. type: textblock
29808 #: ../src/guestfs-actions.pod:4858
29809 msgid "This is the \"va_list variant\" of L</guestfs_mkfs_opts>."
29810 msgstr ""
29811
29812 #. type: =head2
29813 #: ../src/guestfs-actions.pod:4862
29814 msgid "guestfs_mkfs_opts_argv"
29815 msgstr "guestfs_mkfs_opts_argv"
29816
29817 #. type: verbatim
29818 #: ../src/guestfs-actions.pod:4864
29819 #, no-wrap
29820 msgid ""
29821 " int\n"
29822 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29823 "                         const char *fstype,\n"
29824 "                         const char *device,\n"
29825 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
29826 "\n"
29827 msgstr ""
29828 " int\n"
29829 " guestfs_mkfs_opts_argv (guestfs_h *g,\n"
29830 "                         const char *fstype,\n"
29831 "                         const char *device,\n"
29832 "                         const struct guestfs_mkfs_opts_argv *optargs);\n"
29833 "\n"
29834
29835 #. type: textblock
29836 #: ../src/guestfs-actions.pod:4870
29837 msgid "This is the \"argv variant\" of L</guestfs_mkfs_opts>."
29838 msgstr ""
29839
29840 #. type: =head2
29841 #: ../src/guestfs-actions.pod:4874
29842 msgid "guestfs_mkmountpoint"
29843 msgstr "guestfs_mkmountpoint"
29844
29845 #. type: verbatim
29846 #: ../src/guestfs-actions.pod:4876
29847 #, no-wrap
29848 msgid ""
29849 " int\n"
29850 " guestfs_mkmountpoint (guestfs_h *g,\n"
29851 "                       const char *exemptpath);\n"
29852 "\n"
29853 msgstr ""
29854 " int\n"
29855 " guestfs_mkmountpoint (guestfs_h *g,\n"
29856 "                       const char *exemptpath);\n"
29857 "\n"
29858
29859 #. type: textblock
29860 #: ../src/guestfs-actions.pod:4880
29861 msgid ""
29862 "C<guestfs_mkmountpoint> and C<guestfs_rmmountpoint> are specialized calls "
29863 "that can be used to create extra mountpoints before mounting the first "
29864 "filesystem."
29865 msgstr ""
29866
29867 #. type: textblock
29868 #: ../src/guestfs-actions.pod:4904
29869 msgid ""
29870 "C<guestfs_mkmountpoint> is not compatible with C<guestfs_umount_all>.  You "
29871 "may get unexpected errors if you try to mix these calls.  It is safest to "
29872 "manually unmount filesystems and remove mountpoints after use."
29873 msgstr ""
29874
29875 #. type: textblock
29876 #: ../src/guestfs-actions.pod:4908
29877 msgid ""
29878 "C<guestfs_umount_all> unmounts filesystems by sorting the paths longest "
29879 "first, so for this to work for manual mountpoints, you must ensure that the "
29880 "innermost mountpoints have the longest pathnames, as in the example code "
29881 "above."
29882 msgstr ""
29883
29884 #. type: textblock
29885 #: ../src/guestfs-actions.pod:4915
29886 msgid ""
29887 "Autosync [see C<guestfs_set_autosync>, this is set by default on handles] "
29888 "can cause C<guestfs_umount_all> to be called when the handle is closed which "
29889 "can also trigger these issues."
29890 msgstr ""
29891
29892 #. type: textblock
29893 #: ../src/guestfs-actions.pod:4921 ../src/guestfs-actions.pod:5227
29894 #: ../src/guestfs-actions.pod:6237
29895 msgid "(Added in 1.0.62)"
29896 msgstr "(Додано у 1.0.62)"
29897
29898 #. type: =head2
29899 #: ../src/guestfs-actions.pod:4923
29900 msgid "guestfs_mknod"
29901 msgstr ""
29902
29903 #. type: verbatim
29904 #: ../src/guestfs-actions.pod:4925
29905 #, no-wrap
29906 msgid ""
29907 " int\n"
29908 " guestfs_mknod (guestfs_h *g,\n"
29909 "                int mode,\n"
29910 "                int devmajor,\n"
29911 "                int devminor,\n"
29912 "                const char *path);\n"
29913 "\n"
29914 msgstr ""
29915
29916 #. type: textblock
29917 #: ../src/guestfs-actions.pod:4940
29918 msgid ""
29919 "Note that, just like L<mknod(2)>, the mode must be bitwise OR'd with "
29920 "S_IFBLK, S_IFCHR, S_IFIFO or S_IFSOCK (otherwise this call just creates a "
29921 "regular file).  These constants are available in the standard Linux header "
29922 "files, or you can use C<guestfs_mknod_b>, C<guestfs_mknod_c> or "
29923 "C<guestfs_mkfifo> which are wrappers around this command which bitwise OR in "
29924 "the appropriate constant for you."
29925 msgstr ""
29926
29927 #. type: =head2
29928 #: ../src/guestfs-actions.pod:4954
29929 msgid "guestfs_mknod_b"
29930 msgstr ""
29931
29932 #. type: verbatim
29933 #: ../src/guestfs-actions.pod:4956
29934 #, no-wrap
29935 msgid ""
29936 " int\n"
29937 " guestfs_mknod_b (guestfs_h *g,\n"
29938 "                  int mode,\n"
29939 "                  int devmajor,\n"
29940 "                  int devminor,\n"
29941 "                  const char *path);\n"
29942 "\n"
29943 msgstr ""
29944
29945 #. type: textblock
29946 #: ../src/guestfs-actions.pod:4963
29947 msgid ""
29948 "This call creates a block device node called C<path> with mode C<mode> and "
29949 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29950 "wrapper around C<guestfs_mknod>."
29951 msgstr ""
29952
29953 #. type: =head2
29954 #: ../src/guestfs-actions.pod:4973
29955 msgid "guestfs_mknod_c"
29956 msgstr ""
29957
29958 #. type: verbatim
29959 #: ../src/guestfs-actions.pod:4975
29960 #, no-wrap
29961 msgid ""
29962 " int\n"
29963 " guestfs_mknod_c (guestfs_h *g,\n"
29964 "                  int mode,\n"
29965 "                  int devmajor,\n"
29966 "                  int devminor,\n"
29967 "                  const char *path);\n"
29968 "\n"
29969 msgstr ""
29970
29971 #. type: textblock
29972 #: ../src/guestfs-actions.pod:4982
29973 msgid ""
29974 "This call creates a char device node called C<path> with mode C<mode> and "
29975 "device major/minor C<devmajor> and C<devminor>.  It is just a convenient "
29976 "wrapper around C<guestfs_mknod>."
29977 msgstr ""
29978
29979 #. type: =head2
29980 #: ../src/guestfs-actions.pod:4992
29981 msgid "guestfs_mkswap"
29982 msgstr ""
29983
29984 #. type: verbatim
29985 #: ../src/guestfs-actions.pod:4994
29986 #, no-wrap
29987 msgid ""
29988 " int\n"
29989 " guestfs_mkswap (guestfs_h *g,\n"
29990 "                 const char *device);\n"
29991 "\n"
29992 msgstr ""
29993
29994 #. type: =head2
29995 #: ../src/guestfs-actions.pod:5004
29996 msgid "guestfs_mkswap_L"
29997 msgstr ""
29998
29999 #. type: verbatim
30000 #: ../src/guestfs-actions.pod:5006
30001 #, no-wrap
30002 msgid ""
30003 " int\n"
30004 " guestfs_mkswap_L (guestfs_h *g,\n"
30005 "                   const char *label,\n"
30006 "                   const char *device);\n"
30007 "\n"
30008 msgstr ""
30009
30010 #. type: =head2
30011 #: ../src/guestfs-actions.pod:5021
30012 msgid "guestfs_mkswap_U"
30013 msgstr ""
30014
30015 #. type: verbatim
30016 #: ../src/guestfs-actions.pod:5023
30017 #, no-wrap
30018 msgid ""
30019 " int\n"
30020 " guestfs_mkswap_U (guestfs_h *g,\n"
30021 "                   const char *uuid,\n"
30022 "                   const char *device);\n"
30023 "\n"
30024 msgstr ""
30025
30026 #. type: =head2
30027 #: ../src/guestfs-actions.pod:5034
30028 msgid "guestfs_mkswap_file"
30029 msgstr ""
30030
30031 #. type: verbatim
30032 #: ../src/guestfs-actions.pod:5036
30033 #, no-wrap
30034 msgid ""
30035 " int\n"
30036 " guestfs_mkswap_file (guestfs_h *g,\n"
30037 "                      const char *path);\n"
30038 "\n"
30039 msgstr ""
30040
30041 #. type: textblock
30042 #: ../src/guestfs-actions.pod:5042
30043 msgid ""
30044 "This command just writes a swap file signature to an existing file.  To "
30045 "create the file itself, use something like C<guestfs_fallocate>."
30046 msgstr ""
30047
30048 #. type: =head2
30049 #: ../src/guestfs-actions.pod:5049
30050 msgid "guestfs_modprobe"
30051 msgstr ""
30052
30053 #. type: verbatim
30054 #: ../src/guestfs-actions.pod:5051
30055 #, no-wrap
30056 msgid ""
30057 " int\n"
30058 " guestfs_modprobe (guestfs_h *g,\n"
30059 "                   const char *modulename);\n"
30060 "\n"
30061 msgstr ""
30062
30063 #. type: =head2
30064 #: ../src/guestfs-actions.pod:5064
30065 msgid "guestfs_mount"
30066 msgstr ""
30067
30068 #. type: verbatim
30069 #: ../src/guestfs-actions.pod:5066
30070 #, no-wrap
30071 msgid ""
30072 " int\n"
30073 " guestfs_mount (guestfs_h *g,\n"
30074 "                const char *device,\n"
30075 "                const char *mountpoint);\n"
30076 "\n"
30077 msgstr ""
30078
30079 #. type: textblock
30080 #: ../src/guestfs-actions.pod:5085
30081 msgid ""
30082 "Before libguestfs 1.13.16, this call implicitly added the options C<sync> "
30083 "and C<noatime>.  The C<sync> option greatly slowed writes and caused many "
30084 "problems for users.  If your program might need to work with older versions "
30085 "of libguestfs, use C<guestfs_mount_options> instead (using an empty string "
30086 "for the first parameter if you don't want any options)."
30087 msgstr ""
30088
30089 #. type: =head2
30090 #: ../src/guestfs-actions.pod:5096
30091 msgid "guestfs_mount_9p"
30092 msgstr ""
30093
30094 #. type: verbatim
30095 #: ../src/guestfs-actions.pod:5098
30096 #, no-wrap
30097 msgid ""
30098 " int\n"
30099 " guestfs_mount_9p (guestfs_h *g,\n"
30100 "                   const char *mounttag,\n"
30101 "                   const char *mountpoint,\n"
30102 "                   ...);\n"
30103 "\n"
30104 msgstr ""
30105
30106 #. type: verbatim
30107 #: ../src/guestfs-actions.pod:5109
30108 #, no-wrap
30109 msgid ""
30110 " GUESTFS_MOUNT_9P_OPTIONS, const char *options,\n"
30111 "\n"
30112 msgstr ""
30113
30114 #. type: =head2
30115 #: ../src/guestfs-actions.pod:5122
30116 msgid "guestfs_mount_9p_va"
30117 msgstr ""
30118
30119 #. type: verbatim
30120 #: ../src/guestfs-actions.pod:5124
30121 #, no-wrap
30122 msgid ""
30123 " int\n"
30124 " guestfs_mount_9p_va (guestfs_h *g,\n"
30125 "                      const char *mounttag,\n"
30126 "                      const char *mountpoint,\n"
30127 "                      va_list args);\n"
30128 "\n"
30129 msgstr ""
30130
30131 #. type: textblock
30132 #: ../src/guestfs-actions.pod:5130
30133 msgid "This is the \"va_list variant\" of L</guestfs_mount_9p>."
30134 msgstr ""
30135
30136 #. type: =head2
30137 #: ../src/guestfs-actions.pod:5134
30138 msgid "guestfs_mount_9p_argv"
30139 msgstr ""
30140
30141 #. type: verbatim
30142 #: ../src/guestfs-actions.pod:5136
30143 #, no-wrap
30144 msgid ""
30145 " int\n"
30146 " guestfs_mount_9p_argv (guestfs_h *g,\n"
30147 "                        const char *mounttag,\n"
30148 "                        const char *mountpoint,\n"
30149 "                        const struct guestfs_mount_9p_argv *optargs);\n"
30150 "\n"
30151 msgstr ""
30152
30153 #. type: textblock
30154 #: ../src/guestfs-actions.pod:5142
30155 msgid "This is the \"argv variant\" of L</guestfs_mount_9p>."
30156 msgstr ""
30157
30158 #. type: =head2
30159 #: ../src/guestfs-actions.pod:5146
30160 msgid "guestfs_mount_loop"
30161 msgstr ""
30162
30163 #. type: verbatim
30164 #: ../src/guestfs-actions.pod:5148
30165 #, no-wrap
30166 msgid ""
30167 " int\n"
30168 " guestfs_mount_loop (guestfs_h *g,\n"
30169 "                     const char *file,\n"
30170 "                     const char *mountpoint);\n"
30171 "\n"
30172 msgstr ""
30173
30174 #. type: =head2
30175 #: ../src/guestfs-actions.pod:5161
30176 msgid "guestfs_mount_options"
30177 msgstr ""
30178
30179 #. type: verbatim
30180 #: ../src/guestfs-actions.pod:5163
30181 #, no-wrap
30182 msgid ""
30183 " int\n"
30184 " guestfs_mount_options (guestfs_h *g,\n"
30185 "                        const char *options,\n"
30186 "                        const char *device,\n"
30187 "                        const char *mountpoint);\n"
30188 "\n"
30189 msgstr ""
30190
30191 #. type: textblock
30192 #: ../src/guestfs-actions.pod:5169
30193 msgid ""
30194 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30195 "the mount options as for the L<mount(8)> I<-o> flag."
30196 msgstr ""
30197
30198 #. type: textblock
30199 #: ../src/guestfs-actions.pod:5179 ../src/guestfs-actions.pod:5193
30200 #: ../src/guestfs-actions.pod:5210
30201 msgid "(Added in 1.0.10)"
30202 msgstr ""
30203
30204 #. type: =head2
30205 #: ../src/guestfs-actions.pod:5181
30206 msgid "guestfs_mount_ro"
30207 msgstr ""
30208
30209 #. type: verbatim
30210 #: ../src/guestfs-actions.pod:5183
30211 #, no-wrap
30212 msgid ""
30213 " int\n"
30214 " guestfs_mount_ro (guestfs_h *g,\n"
30215 "                   const char *device,\n"
30216 "                   const char *mountpoint);\n"
30217 "\n"
30218 msgstr ""
30219
30220 #. type: textblock
30221 #: ../src/guestfs-actions.pod:5188
30222 msgid ""
30223 "This is the same as the C<guestfs_mount> command, but it mounts the "
30224 "filesystem with the read-only (I<-o ro>) flag."
30225 msgstr ""
30226
30227 #. type: =head2
30228 #: ../src/guestfs-actions.pod:5195
30229 msgid "guestfs_mount_vfs"
30230 msgstr ""
30231
30232 #. type: verbatim
30233 #: ../src/guestfs-actions.pod:5197
30234 #, no-wrap
30235 msgid ""
30236 " int\n"
30237 " guestfs_mount_vfs (guestfs_h *g,\n"
30238 "                    const char *options,\n"
30239 "                    const char *vfstype,\n"
30240 "                    const char *device,\n"
30241 "                    const char *mountpoint);\n"
30242 "\n"
30243 msgstr ""
30244
30245 #. type: textblock
30246 #: ../src/guestfs-actions.pod:5204
30247 msgid ""
30248 "This is the same as the C<guestfs_mount> command, but it allows you to set "
30249 "both the mount options and the vfstype as for the L<mount(8)> I<-o> and I<-"
30250 "t> flags."
30251 msgstr ""
30252
30253 #. type: =head2
30254 #: ../src/guestfs-actions.pod:5212
30255 msgid "guestfs_mountpoints"
30256 msgstr ""
30257
30258 #. type: verbatim
30259 #: ../src/guestfs-actions.pod:5214
30260 #, no-wrap
30261 msgid ""
30262 " char **\n"
30263 " guestfs_mountpoints (guestfs_h *g);\n"
30264 "\n"
30265 msgstr ""
30266
30267 #. type: textblock
30268 #: ../src/guestfs-actions.pod:5217
30269 msgid ""
30270 "This call is similar to C<guestfs_mounts>.  That call returns a list of "
30271 "devices.  This one returns a hash table (map) of device name to directory "
30272 "where the device is mounted."
30273 msgstr ""
30274
30275 #. type: =head2
30276 #: ../src/guestfs-actions.pod:5229
30277 msgid "guestfs_mounts"
30278 msgstr ""
30279
30280 #. type: verbatim
30281 #: ../src/guestfs-actions.pod:5231
30282 #, no-wrap
30283 msgid ""
30284 " char **\n"
30285 " guestfs_mounts (guestfs_h *g);\n"
30286 "\n"
30287 msgstr ""
30288
30289 #. type: textblock
30290 #: ../src/guestfs-actions.pod:5239
30291 msgid "See also: C<guestfs_mountpoints>"
30292 msgstr ""
30293
30294 #. type: =head2
30295 #: ../src/guestfs-actions.pod:5247
30296 msgid "guestfs_mv"
30297 msgstr ""
30298
30299 #. type: verbatim
30300 #: ../src/guestfs-actions.pod:5249
30301 #, no-wrap
30302 msgid ""
30303 " int\n"
30304 " guestfs_mv (guestfs_h *g,\n"
30305 "             const char *src,\n"
30306 "             const char *dest);\n"
30307 "\n"
30308 msgstr ""
30309
30310 #. type: =head2
30311 #: ../src/guestfs-actions.pod:5261
30312 msgid "guestfs_ntfs_3g_probe"
30313 msgstr ""
30314
30315 #. type: verbatim
30316 #: ../src/guestfs-actions.pod:5263
30317 #, no-wrap
30318 msgid ""
30319 " int\n"
30320 " guestfs_ntfs_3g_probe (guestfs_h *g,\n"
30321 "                        int rw,\n"
30322 "                        const char *device);\n"
30323 "\n"
30324 msgstr ""
30325
30326 #. type: textblock
30327 #: ../src/guestfs-actions.pod:5282
30328 msgid "(Added in 1.0.43)"
30329 msgstr ""
30330
30331 #. type: =head2
30332 #: ../src/guestfs-actions.pod:5284
30333 msgid "guestfs_ntfsresize"
30334 msgstr ""
30335
30336 #. type: verbatim
30337 #: ../src/guestfs-actions.pod:5286
30338 #, no-wrap
30339 msgid ""
30340 " int\n"
30341 " guestfs_ntfsresize (guestfs_h *g,\n"
30342 "                     const char *device);\n"
30343 "\n"
30344 msgstr ""
30345
30346 #. type: textblock
30347 #: ../src/guestfs-actions.pod:5290 ../src/guestfs-actions.pod:5390
30348 msgid ""
30349 "I<This function is deprecated.> In new code, use the L</"
30350 "guestfs_ntfsresize_opts> call instead."
30351 msgstr ""
30352
30353 #. type: =head2
30354 #: ../src/guestfs-actions.pod:5314
30355 msgid "guestfs_ntfsresize_opts"
30356 msgstr ""
30357
30358 #. type: verbatim
30359 #: ../src/guestfs-actions.pod:5316
30360 #, no-wrap
30361 msgid ""
30362 " int\n"
30363 " guestfs_ntfsresize_opts (guestfs_h *g,\n"
30364 "                          const char *device,\n"
30365 "                          ...);\n"
30366 "\n"
30367 msgstr ""
30368
30369 #. type: verbatim
30370 #: ../src/guestfs-actions.pod:5326
30371 #, no-wrap
30372 msgid ""
30373 " GUESTFS_NTFSRESIZE_OPTS_SIZE, int64_t size,\n"
30374 " GUESTFS_NTFSRESIZE_OPTS_FORCE, int force,\n"
30375 "\n"
30376 msgstr ""
30377
30378 #. type: textblock
30379 #: ../src/guestfs-actions.pod:5346
30380 msgid ""
30381 "After the resize operation, the filesystem is always marked as requiring a "
30382 "consistency check (for safety).  You have to boot into Windows to perform "
30383 "this check and clear this condition.  If you I<don't> set the C<force> "
30384 "option then it is not possible to call C<guestfs_ntfsresize_opts> multiple "
30385 "times on a single filesystem without booting into Windows between each "
30386 "resize."
30387 msgstr ""
30388
30389 #. type: =head2
30390 #: ../src/guestfs-actions.pod:5361
30391 msgid "guestfs_ntfsresize_opts_va"
30392 msgstr ""
30393
30394 #. type: verbatim
30395 #: ../src/guestfs-actions.pod:5363
30396 #, no-wrap
30397 msgid ""
30398 " int\n"
30399 " guestfs_ntfsresize_opts_va (guestfs_h *g,\n"
30400 "                             const char *device,\n"
30401 "                             va_list args);\n"
30402 "\n"
30403 msgstr ""
30404
30405 #. type: textblock
30406 #: ../src/guestfs-actions.pod:5368
30407 msgid "This is the \"va_list variant\" of L</guestfs_ntfsresize_opts>."
30408 msgstr ""
30409
30410 #. type: =head2
30411 #: ../src/guestfs-actions.pod:5372
30412 msgid "guestfs_ntfsresize_opts_argv"
30413 msgstr ""
30414
30415 #. type: verbatim
30416 #: ../src/guestfs-actions.pod:5374
30417 #, no-wrap
30418 msgid ""
30419 " int\n"
30420 " guestfs_ntfsresize_opts_argv (guestfs_h *g,\n"
30421 "                               const char *device,\n"
30422 "                               const struct guestfs_ntfsresize_opts_argv *optargs);\n"
30423 "\n"
30424 msgstr ""
30425
30426 #. type: textblock
30427 #: ../src/guestfs-actions.pod:5379
30428 msgid "This is the \"argv variant\" of L</guestfs_ntfsresize_opts>."
30429 msgstr ""
30430
30431 #. type: =head2
30432 #: ../src/guestfs-actions.pod:5383
30433 msgid "guestfs_ntfsresize_size"
30434 msgstr ""
30435
30436 #. type: verbatim
30437 #: ../src/guestfs-actions.pod:5385
30438 #, no-wrap
30439 msgid ""
30440 " int\n"
30441 " guestfs_ntfsresize_size (guestfs_h *g,\n"
30442 "                          const char *device,\n"
30443 "                          int64_t size);\n"
30444 "\n"
30445 msgstr ""
30446
30447 #. type: textblock
30448 #: ../src/guestfs-actions.pod:5397
30449 msgid ""
30450 "This command is the same as C<guestfs_ntfsresize> except that it allows you "
30451 "to specify the new size (in bytes) explicitly."
30452 msgstr ""
30453
30454 #. type: textblock
30455 #: ../src/guestfs-actions.pod:5402 ../src/guestfs-actions.pod:5844
30456 #: ../src/guestfs-actions.pod:5917 ../src/guestfs-actions.pod:6185
30457 #: ../src/guestfs-actions.pod:7824
30458 msgid "(Added in 1.3.14)"
30459 msgstr ""
30460
30461 #. type: =head2
30462 #: ../src/guestfs-actions.pod:5404
30463 msgid "guestfs_part_add"
30464 msgstr ""
30465
30466 #. type: verbatim
30467 #: ../src/guestfs-actions.pod:5406
30468 #, no-wrap
30469 msgid ""
30470 " int\n"
30471 " guestfs_part_add (guestfs_h *g,\n"
30472 "                   const char *device,\n"
30473 "                   const char *prlogex,\n"
30474 "                   int64_t startsect,\n"
30475 "                   int64_t endsect);\n"
30476 "\n"
30477 msgstr ""
30478
30479 #. type: textblock
30480 #: ../src/guestfs-actions.pod:5413
30481 msgid ""
30482 "This command adds a partition to C<device>.  If there is no partition table "
30483 "on the device, call C<guestfs_part_init> first."
30484 msgstr ""
30485
30486 #. type: textblock
30487 #: ../src/guestfs-actions.pod:5425
30488 msgid ""
30489 "Creating a partition which covers the whole disk is not so easy.  Use "
30490 "C<guestfs_part_disk> to do that."
30491 msgstr ""
30492
30493 #. type: textblock
30494 #: ../src/guestfs-actions.pod:5430 ../src/guestfs-actions.pod:5468
30495 #: ../src/guestfs-actions.pod:5521 ../src/guestfs-actions.pod:5605
30496 #: ../src/guestfs-actions.pod:5643 ../src/guestfs-actions.pod:5662
30497 #: ../src/guestfs-actions.pod:5702
30498 msgid "(Added in 1.0.78)"
30499 msgstr ""
30500
30501 #. type: =head2
30502 #: ../src/guestfs-actions.pod:5432
30503 msgid "guestfs_part_del"
30504 msgstr ""
30505
30506 #. type: verbatim
30507 #: ../src/guestfs-actions.pod:5434
30508 #, no-wrap
30509 msgid ""
30510 " int\n"
30511 " guestfs_part_del (guestfs_h *g,\n"
30512 "                   const char *device,\n"
30513 "                   int partnum);\n"
30514 "\n"
30515 msgstr ""
30516
30517 #. type: =head2
30518 #: ../src/guestfs-actions.pod:5449
30519 msgid "guestfs_part_disk"
30520 msgstr ""
30521
30522 #. type: verbatim
30523 #: ../src/guestfs-actions.pod:5451
30524 #, no-wrap
30525 msgid ""
30526 " int\n"
30527 " guestfs_part_disk (guestfs_h *g,\n"
30528 "                    const char *device,\n"
30529 "                    const char *parttype);\n"
30530 "\n"
30531 msgstr ""
30532
30533 #. type: textblock
30534 #: ../src/guestfs-actions.pod:5456
30535 msgid ""
30536 "This command is simply a combination of C<guestfs_part_init> followed by "
30537 "C<guestfs_part_add> to create a single primary partition covering the whole "
30538 "disk."
30539 msgstr ""
30540
30541 #. type: textblock
30542 #: ../src/guestfs-actions.pod:5460
30543 msgid ""
30544 "C<parttype> is the partition table type, usually C<mbr> or C<gpt>, but other "
30545 "possible values are described in C<guestfs_part_init>."
30546 msgstr ""
30547
30548 #. type: =head2
30549 #: ../src/guestfs-actions.pod:5470
30550 msgid "guestfs_part_get_bootable"
30551 msgstr ""
30552
30553 #. type: verbatim
30554 #: ../src/guestfs-actions.pod:5472
30555 #, no-wrap
30556 msgid ""
30557 " int\n"
30558 " guestfs_part_get_bootable (guestfs_h *g,\n"
30559 "                            const char *device,\n"
30560 "                            int partnum);\n"
30561 "\n"
30562 msgstr ""
30563
30564 #. type: textblock
30565 #: ../src/guestfs-actions.pod:5480
30566 msgid "See also C<guestfs_part_set_bootable>."
30567 msgstr ""
30568
30569 #. type: =head2
30570 #: ../src/guestfs-actions.pod:5486
30571 msgid "guestfs_part_get_mbr_id"
30572 msgstr ""
30573
30574 #. type: verbatim
30575 #: ../src/guestfs-actions.pod:5488
30576 #, no-wrap
30577 msgid ""
30578 " int\n"
30579 " guestfs_part_get_mbr_id (guestfs_h *g,\n"
30580 "                          const char *device,\n"
30581 "                          int partnum);\n"
30582 "\n"
30583 msgstr ""
30584
30585 #. type: textblock
30586 #: ../src/guestfs-actions.pod:5496 ../src/guestfs-actions.pod:5678
30587 msgid ""
30588 "Note that only MBR (old DOS-style) partitions have type bytes.  You will get "
30589 "undefined results for other partition table types (see "
30590 "C<guestfs_part_get_parttype>)."
30591 msgstr ""
30592
30593 #. type: =head2
30594 #: ../src/guestfs-actions.pod:5504
30595 msgid "guestfs_part_get_parttype"
30596 msgstr ""
30597
30598 #. type: verbatim
30599 #: ../src/guestfs-actions.pod:5506
30600 #, no-wrap
30601 msgid ""
30602 " char *\n"
30603 " guestfs_part_get_parttype (guestfs_h *g,\n"
30604 "                            const char *device);\n"
30605 "\n"
30606 msgstr ""
30607
30608 #. type: textblock
30609 #: ../src/guestfs-actions.pod:5513
30610 msgid ""
30611 "Common return values include: C<msdos> (a DOS/Windows style MBR partition "
30612 "table), C<gpt> (a GPT/EFI-style partition table).  Other values are "
30613 "possible, although unusual.  See C<guestfs_part_init> for a full list."
30614 msgstr ""
30615
30616 #. type: =head2
30617 #: ../src/guestfs-actions.pod:5523
30618 msgid "guestfs_part_init"
30619 msgstr ""
30620
30621 #. type: verbatim
30622 #: ../src/guestfs-actions.pod:5525
30623 #, no-wrap
30624 msgid ""
30625 " int\n"
30626 " guestfs_part_init (guestfs_h *g,\n"
30627 "                    const char *device,\n"
30628 "                    const char *parttype);\n"
30629 "\n"
30630 msgstr ""
30631
30632 #. type: textblock
30633 #: ../src/guestfs-actions.pod:5534
30634 msgid ""
30635 "Initially there are no partitions.  Following this, you should call "
30636 "C<guestfs_part_add> for each partition required."
30637 msgstr ""
30638
30639 #. type: =head2
30640 #: ../src/guestfs-actions.pod:5607
30641 msgid "guestfs_part_list"
30642 msgstr "guestfs_part_list"
30643
30644 #. type: verbatim
30645 #: ../src/guestfs-actions.pod:5609
30646 #, no-wrap
30647 msgid ""
30648 " struct guestfs_partition_list *\n"
30649 " guestfs_part_list (guestfs_h *g,\n"
30650 "                    const char *device);\n"
30651 "\n"
30652 msgstr ""
30653 " struct guestfs_partition_list *\n"
30654 " guestfs_part_list (guestfs_h *g,\n"
30655 "                    const char *device);\n"
30656 "\n"
30657
30658 #. type: textblock
30659 #: ../src/guestfs-actions.pod:5626
30660 msgid ""
30661 "Start of the partition I<in bytes>.  To get sectors you have to divide by "
30662 "the device's sector size, see C<guestfs_blockdev_getss>."
30663 msgstr ""
30664
30665 #. type: textblock
30666 #: ../src/guestfs-actions.pod:5639
30667 msgid ""
30668 "This function returns a C<struct guestfs_partition_list *>, or NULL if there "
30669 "was an error.  I<The caller must call C<guestfs_free_partition_list> after "
30670 "use>."
30671 msgstr ""
30672
30673 #. type: =head2
30674 #: ../src/guestfs-actions.pod:5645
30675 msgid "guestfs_part_set_bootable"
30676 msgstr ""
30677
30678 #. type: verbatim
30679 #: ../src/guestfs-actions.pod:5647
30680 #, no-wrap
30681 msgid ""
30682 " int\n"
30683 " guestfs_part_set_bootable (guestfs_h *g,\n"
30684 "                            const char *device,\n"
30685 "                            int partnum,\n"
30686 "                            int bootable);\n"
30687 "\n"
30688 msgstr ""
30689
30690 #. type: =head2
30691 #: ../src/guestfs-actions.pod:5664
30692 msgid "guestfs_part_set_mbr_id"
30693 msgstr ""
30694
30695 #. type: verbatim
30696 #: ../src/guestfs-actions.pod:5666
30697 #, no-wrap
30698 msgid ""
30699 " int\n"
30700 " guestfs_part_set_mbr_id (guestfs_h *g,\n"
30701 "                          const char *device,\n"
30702 "                          int partnum,\n"
30703 "                          int idbyte);\n"
30704 "\n"
30705 msgstr ""
30706
30707 #. type: =head2
30708 #: ../src/guestfs-actions.pod:5686
30709 msgid "guestfs_part_set_name"
30710 msgstr ""
30711
30712 #. type: verbatim
30713 #: ../src/guestfs-actions.pod:5688
30714 #, no-wrap
30715 msgid ""
30716 " int\n"
30717 " guestfs_part_set_name (guestfs_h *g,\n"
30718 "                        const char *device,\n"
30719 "                        int partnum,\n"
30720 "                        const char *name);\n"
30721 "\n"
30722 msgstr ""
30723
30724 #. type: =head2
30725 #: ../src/guestfs-actions.pod:5704
30726 msgid "guestfs_part_to_dev"
30727 msgstr ""
30728
30729 #. type: verbatim
30730 #: ../src/guestfs-actions.pod:5706
30731 #, no-wrap
30732 msgid ""
30733 " char *\n"
30734 " guestfs_part_to_dev (guestfs_h *g,\n"
30735 "                      const char *partition);\n"
30736 "\n"
30737 msgstr ""
30738
30739 #. type: textblock
30740 #: ../src/guestfs-actions.pod:5714
30741 msgid ""
30742 "The named partition must exist, for example as a string returned from "
30743 "C<guestfs_list_partitions>."
30744 msgstr ""
30745
30746 #. type: =head2
30747 #: ../src/guestfs-actions.pod:5722
30748 msgid "guestfs_ping_daemon"
30749 msgstr ""
30750
30751 #. type: verbatim
30752 #: ../src/guestfs-actions.pod:5724
30753 #, no-wrap
30754 msgid ""
30755 " int\n"
30756 " guestfs_ping_daemon (guestfs_h *g);\n"
30757 "\n"
30758 msgstr ""
30759
30760 #. type: =head2
30761 #: ../src/guestfs-actions.pod:5736
30762 msgid "guestfs_pread"
30763 msgstr ""
30764
30765 #. type: verbatim
30766 #: ../src/guestfs-actions.pod:5738
30767 #, no-wrap
30768 msgid ""
30769 " char *\n"
30770 " guestfs_pread (guestfs_h *g,\n"
30771 "                const char *path,\n"
30772 "                int count,\n"
30773 "                int64_t offset,\n"
30774 "                size_t *size_r);\n"
30775 "\n"
30776 msgstr ""
30777
30778 #. type: textblock
30779 #: ../src/guestfs-actions.pod:5751
30780 msgid "See also C<guestfs_pwrite>, C<guestfs_pread_device>."
30781 msgstr ""
30782
30783 #. type: =head2
30784 #: ../src/guestfs-actions.pod:5762
30785 msgid "guestfs_pread_device"
30786 msgstr ""
30787
30788 #. type: verbatim
30789 #: ../src/guestfs-actions.pod:5764
30790 #, no-wrap
30791 msgid ""
30792 " char *\n"
30793 " guestfs_pread_device (guestfs_h *g,\n"
30794 "                       const char *device,\n"
30795 "                       int count,\n"
30796 "                       int64_t offset,\n"
30797 "                       size_t *size_r);\n"
30798 "\n"
30799 msgstr ""
30800
30801 #. type: textblock
30802 #: ../src/guestfs-actions.pod:5777
30803 msgid "See also C<guestfs_pread>."
30804 msgstr ""
30805
30806 #. type: textblock
30807 #: ../src/guestfs-actions.pod:5786
30808 msgid "(Added in 1.5.21)"
30809 msgstr ""
30810
30811 #. type: =head2
30812 #: ../src/guestfs-actions.pod:5788
30813 msgid "guestfs_pvcreate"
30814 msgstr ""
30815
30816 #. type: verbatim
30817 #: ../src/guestfs-actions.pod:5790
30818 #, no-wrap
30819 msgid ""
30820 " int\n"
30821 " guestfs_pvcreate (guestfs_h *g,\n"
30822 "                   const char *device);\n"
30823 "\n"
30824 msgstr ""
30825
30826 #. type: =head2
30827 #: ../src/guestfs-actions.pod:5802
30828 msgid "guestfs_pvremove"
30829 msgstr ""
30830
30831 #. type: verbatim
30832 #: ../src/guestfs-actions.pod:5804
30833 #, no-wrap
30834 msgid ""
30835 " int\n"
30836 " guestfs_pvremove (guestfs_h *g,\n"
30837 "                   const char *device);\n"
30838 "\n"
30839 msgstr ""
30840
30841 #. type: =head2
30842 #: ../src/guestfs-actions.pod:5819
30843 msgid "guestfs_pvresize"
30844 msgstr ""
30845
30846 #. type: verbatim
30847 #: ../src/guestfs-actions.pod:5821
30848 #, no-wrap
30849 msgid ""
30850 " int\n"
30851 " guestfs_pvresize (guestfs_h *g,\n"
30852 "                   const char *device);\n"
30853 "\n"
30854 msgstr ""
30855
30856 #. type: =head2
30857 #: ../src/guestfs-actions.pod:5832
30858 msgid "guestfs_pvresize_size"
30859 msgstr ""
30860
30861 #. type: verbatim
30862 #: ../src/guestfs-actions.pod:5834
30863 #, no-wrap
30864 msgid ""
30865 " int\n"
30866 " guestfs_pvresize_size (guestfs_h *g,\n"
30867 "                        const char *device,\n"
30868 "                        int64_t size);\n"
30869 "\n"
30870 msgstr ""
30871
30872 #. type: textblock
30873 #: ../src/guestfs-actions.pod:5839
30874 msgid ""
30875 "This command is the same as C<guestfs_pvresize> except that it allows you to "
30876 "specify the new size (in bytes) explicitly."
30877 msgstr ""
30878
30879 #. type: =head2
30880 #: ../src/guestfs-actions.pod:5846
30881 msgid "guestfs_pvs"
30882 msgstr ""
30883
30884 #. type: verbatim
30885 #: ../src/guestfs-actions.pod:5848
30886 #, no-wrap
30887 msgid ""
30888 " char **\n"
30889 " guestfs_pvs (guestfs_h *g);\n"
30890 "\n"
30891 msgstr ""
30892
30893 #. type: textblock
30894 #: ../src/guestfs-actions.pod:5857
30895 msgid "See also C<guestfs_pvs_full>."
30896 msgstr ""
30897
30898 #. type: =head2
30899 #: ../src/guestfs-actions.pod:5865
30900 msgid "guestfs_pvs_full"
30901 msgstr ""
30902
30903 #. type: verbatim
30904 #: ../src/guestfs-actions.pod:5867
30905 #, no-wrap
30906 msgid ""
30907 " struct guestfs_lvm_pv_list *\n"
30908 " guestfs_pvs_full (guestfs_h *g);\n"
30909 "\n"
30910 msgstr ""
30911
30912 #. type: textblock
30913 #: ../src/guestfs-actions.pod:5873
30914 msgid ""
30915 "This function returns a C<struct guestfs_lvm_pv_list *>, or NULL if there "
30916 "was an error.  I<The caller must call C<guestfs_free_lvm_pv_list> after use>."
30917 msgstr ""
30918
30919 #. type: =head2
30920 #: ../src/guestfs-actions.pod:5879
30921 msgid "guestfs_pvuuid"
30922 msgstr ""
30923
30924 #. type: verbatim
30925 #: ../src/guestfs-actions.pod:5881
30926 #, no-wrap
30927 msgid ""
30928 " char *\n"
30929 " guestfs_pvuuid (guestfs_h *g,\n"
30930 "                 const char *device);\n"
30931 "\n"
30932 msgstr ""
30933
30934 #. type: =head2
30935 #: ../src/guestfs-actions.pod:5892
30936 msgid "guestfs_pwrite"
30937 msgstr ""
30938
30939 #. type: verbatim
30940 #: ../src/guestfs-actions.pod:5894
30941 #, no-wrap
30942 msgid ""
30943 " int\n"
30944 " guestfs_pwrite (guestfs_h *g,\n"
30945 "                 const char *path,\n"
30946 "                 const char *content,\n"
30947 "                 size_t content_size,\n"
30948 "                 int64_t offset);\n"
30949 "\n"
30950 msgstr ""
30951
30952 #. type: textblock
30953 #: ../src/guestfs-actions.pod:5910
30954 msgid "See also C<guestfs_pread>, C<guestfs_pwrite_device>."
30955 msgstr ""
30956
30957 #. type: =head2
30958 #: ../src/guestfs-actions.pod:5919
30959 msgid "guestfs_pwrite_device"
30960 msgstr ""
30961
30962 #. type: verbatim
30963 #: ../src/guestfs-actions.pod:5921
30964 #, no-wrap
30965 msgid ""
30966 " int\n"
30967 " guestfs_pwrite_device (guestfs_h *g,\n"
30968 "                        const char *device,\n"
30969 "                        const char *content,\n"
30970 "                        size_t content_size,\n"
30971 "                        int64_t offset);\n"
30972 "\n"
30973 msgstr ""
30974
30975 #. type: textblock
30976 #: ../src/guestfs-actions.pod:5936
30977 msgid "See also C<guestfs_pwrite>."
30978 msgstr ""
30979
30980 #. type: textblock
30981 #: ../src/guestfs-actions.pod:5943
30982 msgid "(Added in 1.5.20)"
30983 msgstr ""
30984
30985 #. type: =head2
30986 #: ../src/guestfs-actions.pod:5945
30987 msgid "guestfs_read_file"
30988 msgstr ""
30989
30990 #. type: verbatim
30991 #: ../src/guestfs-actions.pod:5947
30992 #, no-wrap
30993 msgid ""
30994 " char *\n"
30995 " guestfs_read_file (guestfs_h *g,\n"
30996 "                    const char *path,\n"
30997 "                    size_t *size_r);\n"
30998 "\n"
30999 msgstr ""
31000
31001 #. type: textblock
31002 #: ../src/guestfs-actions.pod:5955
31003 msgid ""
31004 "Unlike C<guestfs_cat>, this function can correctly handle files that contain "
31005 "embedded ASCII NUL characters.  However unlike C<guestfs_download>, this "
31006 "function is limited in the total size of file that can be handled."
31007 msgstr ""
31008
31009 #. type: textblock
31010 #: ../src/guestfs-actions.pod:5967
31011 msgid "(Added in 1.0.63)"
31012 msgstr ""
31013
31014 #. type: =head2
31015 #: ../src/guestfs-actions.pod:5969
31016 msgid "guestfs_read_lines"
31017 msgstr ""
31018
31019 #. type: verbatim
31020 #: ../src/guestfs-actions.pod:5971
31021 #, no-wrap
31022 msgid ""
31023 " char **\n"
31024 " guestfs_read_lines (guestfs_h *g,\n"
31025 "                     const char *path);\n"
31026 "\n"
31027 msgstr ""
31028
31029 #. type: textblock
31030 #: ../src/guestfs-actions.pod:5980
31031 msgid ""
31032 "Note that this function cannot correctly handle binary files (specifically, "
31033 "files containing C<\\0> character which is treated as end of line).  For "
31034 "those you need to use the C<guestfs_read_file> function which has a more "
31035 "complex interface."
31036 msgstr ""
31037
31038 #. type: =head2
31039 #: ../src/guestfs-actions.pod:5991
31040 msgid "guestfs_readdir"
31041 msgstr ""
31042
31043 #. type: verbatim
31044 #: ../src/guestfs-actions.pod:5993
31045 #, no-wrap
31046 msgid ""
31047 " struct guestfs_dirent_list *\n"
31048 " guestfs_readdir (guestfs_h *g,\n"
31049 "                  const char *dir);\n"
31050 "\n"
31051 msgstr ""
31052
31053 #. type: textblock
31054 #: ../src/guestfs-actions.pod:6047
31055 msgid ""
31056 "This function is primarily intended for use by programs.  To get a simple "
31057 "list of names, use C<guestfs_ls>.  To get a printable directory for human "
31058 "consumption, use C<guestfs_ll>."
31059 msgstr ""
31060
31061 #. type: textblock
31062 #: ../src/guestfs-actions.pod:6051
31063 msgid ""
31064 "This function returns a C<struct guestfs_dirent_list *>, or NULL if there "
31065 "was an error.  I<The caller must call C<guestfs_free_dirent_list> after use>."
31066 msgstr ""
31067
31068 #. type: =head2
31069 #: ../src/guestfs-actions.pod:6057
31070 msgid "guestfs_readlink"
31071 msgstr ""
31072
31073 #. type: verbatim
31074 #: ../src/guestfs-actions.pod:6059
31075 #, no-wrap
31076 msgid ""
31077 " char *\n"
31078 " guestfs_readlink (guestfs_h *g,\n"
31079 "                   const char *path);\n"
31080 "\n"
31081 msgstr ""
31082
31083 #. type: =head2
31084 #: ../src/guestfs-actions.pod:6070
31085 msgid "guestfs_readlinklist"
31086 msgstr ""
31087
31088 #. type: verbatim
31089 #: ../src/guestfs-actions.pod:6072
31090 #, no-wrap
31091 msgid ""
31092 " char **\n"
31093 " guestfs_readlinklist (guestfs_h *g,\n"
31094 "                       const char *path,\n"
31095 "                       char *const *names);\n"
31096 "\n"
31097 msgstr ""
31098
31099 #. type: =head2
31100 #: ../src/guestfs-actions.pod:6105
31101 msgid "guestfs_realpath"
31102 msgstr ""
31103
31104 #. type: verbatim
31105 #: ../src/guestfs-actions.pod:6107
31106 #, no-wrap
31107 msgid ""
31108 " char *\n"
31109 " guestfs_realpath (guestfs_h *g,\n"
31110 "                   const char *path);\n"
31111 "\n"
31112 msgstr ""
31113
31114 #. type: =head2
31115 #: ../src/guestfs-actions.pod:6119
31116 msgid "guestfs_removexattr"
31117 msgstr ""
31118
31119 #. type: verbatim
31120 #: ../src/guestfs-actions.pod:6121
31121 #, no-wrap
31122 msgid ""
31123 " int\n"
31124 " guestfs_removexattr (guestfs_h *g,\n"
31125 "                      const char *xattr,\n"
31126 "                      const char *path);\n"
31127 "\n"
31128 msgstr ""
31129
31130 #. type: textblock
31131 #: ../src/guestfs-actions.pod:6129
31132 msgid "See also: C<guestfs_lremovexattr>, L<attr(5)>."
31133 msgstr ""
31134
31135 #. type: =head2
31136 #: ../src/guestfs-actions.pod:6135
31137 msgid "guestfs_resize2fs"
31138 msgstr ""
31139
31140 #. type: verbatim
31141 #: ../src/guestfs-actions.pod:6137
31142 #, no-wrap
31143 msgid ""
31144 " int\n"
31145 " guestfs_resize2fs (guestfs_h *g,\n"
31146 "                    const char *device);\n"
31147 "\n"
31148 msgstr ""
31149
31150 #. type: textblock
31151 #: ../src/guestfs-actions.pod:6144
31152 msgid ""
31153 "I<Note:> It is sometimes required that you run C<guestfs_e2fsck_f> on the "
31154 "C<device> before calling this command.  For unknown reasons C<resize2fs> "
31155 "sometimes gives an error about this and sometimes not.  In any case, it is "
31156 "always safe to call C<guestfs_e2fsck_f> before calling this function."
31157 msgstr ""
31158
31159 #. type: =head2
31160 #: ../src/guestfs-actions.pod:6154
31161 msgid "guestfs_resize2fs_M"
31162 msgstr ""
31163
31164 #. type: verbatim
31165 #: ../src/guestfs-actions.pod:6156
31166 #, no-wrap
31167 msgid ""
31168 " int\n"
31169 " guestfs_resize2fs_M (guestfs_h *g,\n"
31170 "                      const char *device);\n"
31171 "\n"
31172 msgstr ""
31173
31174 #. type: textblock
31175 #: ../src/guestfs-actions.pod:6160
31176 msgid ""
31177 "This command is the same as C<guestfs_resize2fs>, but the filesystem is "
31178 "resized to its minimum size.  This works like the I<-M> option to the "
31179 "C<resize2fs> command."
31180 msgstr ""
31181
31182 #. type: textblock
31183 #: ../src/guestfs-actions.pod:6164
31184 msgid ""
31185 "To get the resulting size of the filesystem you should call "
31186 "C<guestfs_tune2fs_l> and read the C<Block size> and C<Block count> values.  "
31187 "These two numbers, multiplied together, give the resulting size of the "
31188 "minimal filesystem in bytes."
31189 msgstr ""
31190
31191 #. type: =head2
31192 #: ../src/guestfs-actions.pod:6173
31193 msgid "guestfs_resize2fs_size"
31194 msgstr ""
31195
31196 #. type: verbatim
31197 #: ../src/guestfs-actions.pod:6175
31198 #, no-wrap
31199 msgid ""
31200 " int\n"
31201 " guestfs_resize2fs_size (guestfs_h *g,\n"
31202 "                         const char *device,\n"
31203 "                         int64_t size);\n"
31204 "\n"
31205 msgstr ""
31206
31207 #. type: textblock
31208 #: ../src/guestfs-actions.pod:6180
31209 msgid ""
31210 "This command is the same as C<guestfs_resize2fs> except that it allows you "
31211 "to specify the new size (in bytes) explicitly."
31212 msgstr ""
31213
31214 #. type: =head2
31215 #: ../src/guestfs-actions.pod:6187
31216 msgid "guestfs_rm"
31217 msgstr ""
31218
31219 #. type: verbatim
31220 #: ../src/guestfs-actions.pod:6189
31221 #, no-wrap
31222 msgid ""
31223 " int\n"
31224 " guestfs_rm (guestfs_h *g,\n"
31225 "             const char *path);\n"
31226 "\n"
31227 msgstr ""
31228
31229 #. type: =head2
31230 #: ../src/guestfs-actions.pod:6199
31231 msgid "guestfs_rm_rf"
31232 msgstr ""
31233
31234 #. type: verbatim
31235 #: ../src/guestfs-actions.pod:6201
31236 #, no-wrap
31237 msgid ""
31238 " int\n"
31239 " guestfs_rm_rf (guestfs_h *g,\n"
31240 "                const char *path);\n"
31241 "\n"
31242 msgstr ""
31243
31244 #. type: =head2
31245 #: ../src/guestfs-actions.pod:6213
31246 msgid "guestfs_rmdir"
31247 msgstr ""
31248
31249 #. type: verbatim
31250 #: ../src/guestfs-actions.pod:6215
31251 #, no-wrap
31252 msgid ""
31253 " int\n"
31254 " guestfs_rmdir (guestfs_h *g,\n"
31255 "                const char *path);\n"
31256 "\n"
31257 msgstr ""
31258
31259 #. type: =head2
31260 #: ../src/guestfs-actions.pod:6225
31261 msgid "guestfs_rmmountpoint"
31262 msgstr ""
31263
31264 #. type: verbatim
31265 #: ../src/guestfs-actions.pod:6227
31266 #, no-wrap
31267 msgid ""
31268 " int\n"
31269 " guestfs_rmmountpoint (guestfs_h *g,\n"
31270 "                       const char *exemptpath);\n"
31271 "\n"
31272 msgstr ""
31273
31274 #. type: textblock
31275 #: ../src/guestfs-actions.pod:6231
31276 msgid ""
31277 "This calls removes a mountpoint that was previously created with "
31278 "C<guestfs_mkmountpoint>.  See C<guestfs_mkmountpoint> for full details."
31279 msgstr ""
31280
31281 #. type: =head2
31282 #: ../src/guestfs-actions.pod:6239
31283 msgid "guestfs_scrub_device"
31284 msgstr ""
31285
31286 #. type: verbatim
31287 #: ../src/guestfs-actions.pod:6241
31288 #, no-wrap
31289 msgid ""
31290 " int\n"
31291 " guestfs_scrub_device (guestfs_h *g,\n"
31292 "                       const char *device);\n"
31293 "\n"
31294 msgstr ""
31295
31296 #. type: textblock
31297 #: ../src/guestfs-actions.pod:6256 ../src/guestfs-actions.pod:6274
31298 #: ../src/guestfs-actions.pod:6293
31299 msgid "(Added in 1.0.52)"
31300 msgstr ""
31301
31302 #. type: =head2
31303 #: ../src/guestfs-actions.pod:6258
31304 msgid "guestfs_scrub_file"
31305 msgstr ""
31306
31307 #. type: verbatim
31308 #: ../src/guestfs-actions.pod:6260
31309 #, no-wrap
31310 msgid ""
31311 " int\n"
31312 " guestfs_scrub_file (guestfs_h *g,\n"
31313 "                     const char *file);\n"
31314 "\n"
31315 msgstr ""
31316
31317 #. type: =head2
31318 #: ../src/guestfs-actions.pod:6276
31319 msgid "guestfs_scrub_freespace"
31320 msgstr ""
31321
31322 #. type: verbatim
31323 #: ../src/guestfs-actions.pod:6278
31324 #, no-wrap
31325 msgid ""
31326 " int\n"
31327 " guestfs_scrub_freespace (guestfs_h *g,\n"
31328 "                          const char *dir);\n"
31329 "\n"
31330 msgstr ""
31331
31332 #. type: textblock
31333 #: ../src/guestfs-actions.pod:6282
31334 msgid ""
31335 "This command creates the directory C<dir> and then fills it with files until "
31336 "the filesystem is full, and scrubs the files as for C<guestfs_scrub_file>, "
31337 "and deletes them.  The intention is to scrub any free space on the partition "
31338 "containing C<dir>."
31339 msgstr ""
31340
31341 #. type: =head2
31342 #: ../src/guestfs-actions.pod:6295
31343 msgid "guestfs_set_append"
31344 msgstr ""
31345
31346 #. type: verbatim
31347 #: ../src/guestfs-actions.pod:6297
31348 #, no-wrap
31349 msgid ""
31350 " int\n"
31351 " guestfs_set_append (guestfs_h *g,\n"
31352 "                     const char *append);\n"
31353 "\n"
31354 msgstr ""
31355
31356 #. type: =head2
31357 #: ../src/guestfs-actions.pod:6314
31358 msgid "guestfs_set_attach_method"
31359 msgstr ""
31360
31361 #. type: verbatim
31362 #: ../src/guestfs-actions.pod:6316
31363 #, no-wrap
31364 msgid ""
31365 " int\n"
31366 " guestfs_set_attach_method (guestfs_h *g,\n"
31367 "                            const char *attachmethod);\n"
31368 "\n"
31369 msgstr ""
31370
31371 #. type: =head2
31372 #: ../src/guestfs-actions.pod:6344
31373 msgid "guestfs_set_autosync"
31374 msgstr ""
31375
31376 #. type: verbatim
31377 #: ../src/guestfs-actions.pod:6346
31378 #, no-wrap
31379 msgid ""
31380 " int\n"
31381 " guestfs_set_autosync (guestfs_h *g,\n"
31382 "                       int autosync);\n"
31383 "\n"
31384 msgstr ""
31385
31386 #. type: =head2
31387 #: ../src/guestfs-actions.pod:6362
31388 msgid "guestfs_set_direct"
31389 msgstr ""
31390
31391 #. type: verbatim
31392 #: ../src/guestfs-actions.pod:6364
31393 #, no-wrap
31394 msgid ""
31395 " int\n"
31396 " guestfs_set_direct (guestfs_h *g,\n"
31397 "                     int direct);\n"
31398 "\n"
31399 msgstr ""
31400
31401 #. type: textblock
31402 #: ../src/guestfs-actions.pod:6372
31403 msgid ""
31404 "One consequence of this is that log messages aren't caught by the library "
31405 "and handled by C<guestfs_set_log_message_callback>, but go straight to "
31406 "stdout."
31407 msgstr ""
31408
31409 #. type: =head2
31410 #: ../src/guestfs-actions.pod:6385
31411 msgid "guestfs_set_e2label"
31412 msgstr ""
31413
31414 #. type: verbatim
31415 #: ../src/guestfs-actions.pod:6387
31416 #, no-wrap
31417 msgid ""
31418 " int\n"
31419 " guestfs_set_e2label (guestfs_h *g,\n"
31420 "                      const char *device,\n"
31421 "                      const char *label);\n"
31422 "\n"
31423 msgstr ""
31424
31425 #. type: textblock
31426 #: ../src/guestfs-actions.pod:6396
31427 msgid ""
31428 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2label> to return "
31429 "the existing label on a filesystem."
31430 msgstr ""
31431
31432 #. type: =head2
31433 #: ../src/guestfs-actions.pod:6403
31434 msgid "guestfs_set_e2uuid"
31435 msgstr ""
31436
31437 #. type: verbatim
31438 #: ../src/guestfs-actions.pod:6405
31439 #, no-wrap
31440 msgid ""
31441 " int\n"
31442 " guestfs_set_e2uuid (guestfs_h *g,\n"
31443 "                     const char *device,\n"
31444 "                     const char *uuid);\n"
31445 "\n"
31446 msgstr ""
31447
31448 #. type: textblock
31449 #: ../src/guestfs-actions.pod:6415
31450 msgid ""
31451 "You can use either C<guestfs_tune2fs_l> or C<guestfs_get_e2uuid> to return "
31452 "the existing UUID of a filesystem."
31453 msgstr ""
31454
31455 #. type: =head2
31456 #: ../src/guestfs-actions.pod:6422
31457 msgid "guestfs_set_memsize"
31458 msgstr ""
31459
31460 #. type: verbatim
31461 #: ../src/guestfs-actions.pod:6424
31462 #, no-wrap
31463 msgid ""
31464 " int\n"
31465 " guestfs_set_memsize (guestfs_h *g,\n"
31466 "                      int memsize);\n"
31467 "\n"
31468 msgstr ""
31469
31470 #. type: textblock
31471 #: ../src/guestfs-actions.pod:6428
31472 msgid ""
31473 "This sets the memory size in megabytes allocated to the qemu subprocess.  "
31474 "This only has any effect if called before C<guestfs_launch>."
31475 msgstr ""
31476
31477 #. type: =head2
31478 #: ../src/guestfs-actions.pod:6443
31479 msgid "guestfs_set_network"
31480 msgstr ""
31481
31482 #. type: verbatim
31483 #: ../src/guestfs-actions.pod:6445
31484 #, no-wrap
31485 msgid ""
31486 " int\n"
31487 " guestfs_set_network (guestfs_h *g,\n"
31488 "                      int network);\n"
31489 "\n"
31490 msgstr ""
31491
31492 #. type: textblock
31493 #: ../src/guestfs-actions.pod:6455
31494 msgid ""
31495 "You must call this before calling C<guestfs_launch>, otherwise it has no "
31496 "effect."
31497 msgstr ""
31498
31499 #. type: =head2
31500 #: ../src/guestfs-actions.pod:6462
31501 msgid "guestfs_set_path"
31502 msgstr ""
31503
31504 #. type: verbatim
31505 #: ../src/guestfs-actions.pod:6464
31506 #, no-wrap
31507 msgid ""
31508 " int\n"
31509 " guestfs_set_path (guestfs_h *g,\n"
31510 "                   const char *searchpath);\n"
31511 "\n"
31512 msgstr ""
31513
31514 #. type: =head2
31515 #: ../src/guestfs-actions.pod:6479
31516 msgid "guestfs_set_pgroup"
31517 msgstr ""
31518
31519 #. type: verbatim
31520 #: ../src/guestfs-actions.pod:6481
31521 #, no-wrap
31522 msgid ""
31523 " int\n"
31524 " guestfs_set_pgroup (guestfs_h *g,\n"
31525 "                     int pgroup);\n"
31526 "\n"
31527 msgstr ""
31528
31529 #. type: =head2
31530 #: ../src/guestfs-actions.pod:6498
31531 msgid "guestfs_set_qemu"
31532 msgstr ""
31533
31534 #. type: verbatim
31535 #: ../src/guestfs-actions.pod:6500
31536 #, no-wrap
31537 msgid ""
31538 " int\n"
31539 " guestfs_set_qemu (guestfs_h *g,\n"
31540 "                   const char *qemu);\n"
31541 "\n"
31542 msgstr ""
31543
31544 #. type: =head2
31545 #: ../src/guestfs-actions.pod:6526
31546 msgid "guestfs_set_recovery_proc"
31547 msgstr ""
31548
31549 #. type: verbatim
31550 #: ../src/guestfs-actions.pod:6528
31551 #, no-wrap
31552 msgid ""
31553 " int\n"
31554 " guestfs_set_recovery_proc (guestfs_h *g,\n"
31555 "                            int recoveryproc);\n"
31556 "\n"
31557 msgstr ""
31558
31559 #. type: textblock
31560 #: ../src/guestfs-actions.pod:6532
31561 msgid ""
31562 "If this is called with the parameter C<false> then C<guestfs_launch> does "
31563 "not create a recovery process.  The purpose of the recovery process is to "
31564 "stop runaway qemu processes in the case where the main program aborts "
31565 "abruptly."
31566 msgstr ""
31567
31568 #. type: textblock
31569 #: ../src/guestfs-actions.pod:6537
31570 msgid ""
31571 "This only has any effect if called before C<guestfs_launch>, and the default "
31572 "is true."
31573 msgstr ""
31574
31575 #. type: =head2
31576 #: ../src/guestfs-actions.pod:6550
31577 msgid "guestfs_set_selinux"
31578 msgstr ""
31579
31580 #. type: verbatim
31581 #: ../src/guestfs-actions.pod:6552
31582 #, no-wrap
31583 msgid ""
31584 " int\n"
31585 " guestfs_set_selinux (guestfs_h *g,\n"
31586 "                      int selinux);\n"
31587 "\n"
31588 msgstr ""
31589
31590 #. type: =head2
31591 #: ../src/guestfs-actions.pod:6569
31592 #, fuzzy
31593 #| msgid "guestfs_ln_s"
31594 msgid "guestfs_set_smp"
31595 msgstr "guestfs_ln_s"
31596
31597 #. type: verbatim
31598 #: ../src/guestfs-actions.pod:6571
31599 #, fuzzy, no-wrap
31600 #| msgid ""
31601 #| " int\n"
31602 #| " guestfs_mkdir_p (guestfs_h *g,\n"
31603 #| "                  const char *path);\n"
31604 #| "\n"
31605 msgid ""
31606 " int\n"
31607 " guestfs_set_smp (guestfs_h *g,\n"
31608 "                  int smp);\n"
31609 "\n"
31610 msgstr ""
31611 " int\n"
31612 " guestfs_mkdir_p (guestfs_h *g,\n"
31613 "                  const char *path);\n"
31614 "\n"
31615
31616 #. type: textblock
31617 #: ../src/guestfs-actions.pod:6579
31618 msgid "This function must be called before C<guestfs_launch>."
31619 msgstr ""
31620
31621 #. type: =head2
31622 #: ../src/guestfs-actions.pod:6585
31623 msgid "guestfs_set_trace"
31624 msgstr ""
31625
31626 #. type: verbatim
31627 #: ../src/guestfs-actions.pod:6587
31628 #, no-wrap
31629 msgid ""
31630 " int\n"
31631 " guestfs_set_trace (guestfs_h *g,\n"
31632 "                    int trace);\n"
31633 "\n"
31634 msgstr ""
31635
31636 #. type: textblock
31637 #: ../src/guestfs-actions.pod:6601
31638 msgid ""
31639 "Trace messages are normally sent to C<stderr>, unless you register a "
31640 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31641 msgstr ""
31642
31643 #. type: =head2
31644 #: ../src/guestfs-actions.pod:6609
31645 msgid "guestfs_set_verbose"
31646 msgstr ""
31647
31648 #. type: verbatim
31649 #: ../src/guestfs-actions.pod:6611
31650 #, no-wrap
31651 msgid ""
31652 " int\n"
31653 " guestfs_set_verbose (guestfs_h *g,\n"
31654 "                      int verbose);\n"
31655 "\n"
31656 msgstr ""
31657
31658 #. type: textblock
31659 #: ../src/guestfs-actions.pod:6620
31660 msgid ""
31661 "Verbose messages are normally sent to C<stderr>, unless you register a "
31662 "callback to send them somewhere else (see C<guestfs_set_event_callback>)."
31663 msgstr ""
31664
31665 #. type: =head2
31666 #: ../src/guestfs-actions.pod:6628
31667 msgid "guestfs_setcon"
31668 msgstr ""
31669
31670 #. type: verbatim
31671 #: ../src/guestfs-actions.pod:6630
31672 #, no-wrap
31673 msgid ""
31674 " int\n"
31675 " guestfs_setcon (guestfs_h *g,\n"
31676 "                 const char *context);\n"
31677 "\n"
31678 msgstr ""
31679
31680 #. type: =head2
31681 #: ../src/guestfs-actions.pod:6643
31682 msgid "guestfs_setxattr"
31683 msgstr ""
31684
31685 #. type: verbatim
31686 #: ../src/guestfs-actions.pod:6645
31687 #, no-wrap
31688 msgid ""
31689 " int\n"
31690 " guestfs_setxattr (guestfs_h *g,\n"
31691 "                   const char *xattr,\n"
31692 "                   const char *val,\n"
31693 "                   int vallen,\n"
31694 "                   const char *path);\n"
31695 "\n"
31696 msgstr ""
31697
31698 #. type: textblock
31699 #: ../src/guestfs-actions.pod:6656
31700 msgid "See also: C<guestfs_lsetxattr>, L<attr(5)>."
31701 msgstr ""
31702
31703 #. type: =head2
31704 #: ../src/guestfs-actions.pod:6662
31705 msgid "guestfs_sfdisk"
31706 msgstr ""
31707
31708 #. type: verbatim
31709 #: ../src/guestfs-actions.pod:6664
31710 #, no-wrap
31711 msgid ""
31712 " int\n"
31713 " guestfs_sfdisk (guestfs_h *g,\n"
31714 "                 const char *device,\n"
31715 "                 int cyls,\n"
31716 "                 int heads,\n"
31717 "                 int sectors,\n"
31718 "                 char *const *lines);\n"
31719 "\n"
31720 msgstr ""
31721
31722 #. type: textblock
31723 #: ../src/guestfs-actions.pod:6672 ../src/guestfs-actions.pod:6716
31724 #: ../src/guestfs-actions.pod:6750
31725 msgid ""
31726 "I<This function is deprecated.> In new code, use the L</guestfs_part_add> "
31727 "call instead."
31728 msgstr ""
31729
31730 #. type: textblock
31731 #: ../src/guestfs-actions.pod:6699
31732 msgid ""
31733 "See also: C<guestfs_sfdisk_l>, C<guestfs_sfdisk_N>, C<guestfs_part_init>"
31734 msgstr ""
31735
31736 #. type: =head2
31737 #: ../src/guestfs-actions.pod:6709
31738 msgid "guestfs_sfdiskM"
31739 msgstr ""
31740
31741 #. type: verbatim
31742 #: ../src/guestfs-actions.pod:6711
31743 #, no-wrap
31744 msgid ""
31745 " int\n"
31746 " guestfs_sfdiskM (guestfs_h *g,\n"
31747 "                  const char *device,\n"
31748 "                  char *const *lines);\n"
31749 "\n"
31750 msgstr ""
31751
31752 #. type: textblock
31753 #: ../src/guestfs-actions.pod:6723
31754 msgid ""
31755 "This is a simplified interface to the C<guestfs_sfdisk> command, where "
31756 "partition sizes are specified in megabytes only (rounded to the nearest "
31757 "cylinder) and you don't need to specify the cyls, heads and sectors "
31758 "parameters which were rarely if ever used anyway."
31759 msgstr ""
31760
31761 #. type: textblock
31762 #: ../src/guestfs-actions.pod:6729
31763 msgid ""
31764 "See also: C<guestfs_sfdisk>, the L<sfdisk(8)> manpage and "
31765 "C<guestfs_part_disk>"
31766 msgstr ""
31767
31768 #. type: =head2
31769 #: ../src/guestfs-actions.pod:6739
31770 msgid "guestfs_sfdisk_N"
31771 msgstr ""
31772
31773 #. type: verbatim
31774 #: ../src/guestfs-actions.pod:6741
31775 #, no-wrap
31776 msgid ""
31777 " int\n"
31778 " guestfs_sfdisk_N (guestfs_h *g,\n"
31779 "                   const char *device,\n"
31780 "                   int partnum,\n"
31781 "                   int cyls,\n"
31782 "                   int heads,\n"
31783 "                   int sectors,\n"
31784 "                   const char *line);\n"
31785 "\n"
31786 msgstr ""
31787
31788 #. type: textblock
31789 #: ../src/guestfs-actions.pod:6760
31790 msgid ""
31791 "For other parameters, see C<guestfs_sfdisk>.  You should usually pass C<0> "
31792 "for the cyls/heads/sectors parameters."
31793 msgstr ""
31794
31795 #. type: textblock
31796 #: ../src/guestfs-actions.pod:6763
31797 msgid "See also: C<guestfs_part_add>"
31798 msgstr ""
31799
31800 #. type: =head2
31801 #: ../src/guestfs-actions.pod:6772
31802 msgid "guestfs_sfdisk_disk_geometry"
31803 msgstr ""
31804
31805 #. type: verbatim
31806 #: ../src/guestfs-actions.pod:6774
31807 #, no-wrap
31808 msgid ""
31809 " char *\n"
31810 " guestfs_sfdisk_disk_geometry (guestfs_h *g,\n"
31811 "                               const char *device);\n"
31812 "\n"
31813 msgstr ""
31814
31815 #. type: textblock
31816 #: ../src/guestfs-actions.pod:6778
31817 msgid ""
31818 "This displays the disk geometry of C<device> read from the partition table.  "
31819 "Especially in the case where the underlying block device has been resized, "
31820 "this can be different from the kernel's idea of the geometry (see "
31821 "C<guestfs_sfdisk_kernel_geometry>)."
31822 msgstr ""
31823
31824 #. type: =head2
31825 #: ../src/guestfs-actions.pod:6791
31826 msgid "guestfs_sfdisk_kernel_geometry"
31827 msgstr ""
31828
31829 #. type: verbatim
31830 #: ../src/guestfs-actions.pod:6793
31831 #, no-wrap
31832 msgid ""
31833 " char *\n"
31834 " guestfs_sfdisk_kernel_geometry (guestfs_h *g,\n"
31835 "                                 const char *device);\n"
31836 "\n"
31837 msgstr ""
31838
31839 #. type: =head2
31840 #: ../src/guestfs-actions.pod:6807
31841 msgid "guestfs_sfdisk_l"
31842 msgstr ""
31843
31844 #. type: verbatim
31845 #: ../src/guestfs-actions.pod:6809
31846 #, no-wrap
31847 msgid ""
31848 " char *\n"
31849 " guestfs_sfdisk_l (guestfs_h *g,\n"
31850 "                   const char *device);\n"
31851 "\n"
31852 msgstr ""
31853
31854 #. type: textblock
31855 #: ../src/guestfs-actions.pod:6813
31856 msgid ""
31857 "I<This function is deprecated.> In new code, use the L</guestfs_part_list> "
31858 "call instead."
31859 msgstr ""
31860
31861 #. type: textblock
31862 #: ../src/guestfs-actions.pod:6824
31863 msgid "See also: C<guestfs_part_list>"
31864 msgstr ""
31865
31866 #. type: =head2
31867 #: ../src/guestfs-actions.pod:6831
31868 msgid "guestfs_sh"
31869 msgstr ""
31870
31871 #. type: verbatim
31872 #: ../src/guestfs-actions.pod:6833
31873 #, no-wrap
31874 msgid ""
31875 " char *\n"
31876 " guestfs_sh (guestfs_h *g,\n"
31877 "             const char *command);\n"
31878 "\n"
31879 msgstr ""
31880
31881 #. type: textblock
31882 #: ../src/guestfs-actions.pod:6840
31883 msgid "This is like C<guestfs_command>, but passes the command to:"
31884 msgstr ""
31885
31886 #. type: textblock
31887 #: ../src/guestfs-actions.pod:6848
31888 msgid "All the provisos about C<guestfs_command> apply to this call."
31889 msgstr ""
31890
31891 #. type: =head2
31892 #: ../src/guestfs-actions.pod:6855
31893 msgid "guestfs_sh_lines"
31894 msgstr ""
31895
31896 #. type: verbatim
31897 #: ../src/guestfs-actions.pod:6857
31898 #, no-wrap
31899 msgid ""
31900 " char **\n"
31901 " guestfs_sh_lines (guestfs_h *g,\n"
31902 "                   const char *command);\n"
31903 "\n"
31904 msgstr ""
31905
31906 #. type: textblock
31907 #: ../src/guestfs-actions.pod:6861
31908 msgid ""
31909 "This is the same as C<guestfs_sh>, but splits the result into a list of "
31910 "lines."
31911 msgstr ""
31912
31913 #. type: textblock
31914 #: ../src/guestfs-actions.pod:6864
31915 msgid "See also: C<guestfs_command_lines>"
31916 msgstr ""
31917
31918 #. type: =head2
31919 #: ../src/guestfs-actions.pod:6872
31920 msgid "guestfs_sleep"
31921 msgstr ""
31922
31923 #. type: verbatim
31924 #: ../src/guestfs-actions.pod:6874
31925 #, no-wrap
31926 msgid ""
31927 " int\n"
31928 " guestfs_sleep (guestfs_h *g,\n"
31929 "                int secs);\n"
31930 "\n"
31931 msgstr ""
31932
31933 #. type: textblock
31934 #: ../src/guestfs-actions.pod:6882
31935 msgid "(Added in 1.0.41)"
31936 msgstr ""
31937
31938 #. type: =head2
31939 #: ../src/guestfs-actions.pod:6884 ../src/guestfs-structs.pod:109
31940 msgid "guestfs_stat"
31941 msgstr ""
31942
31943 #. type: verbatim
31944 #: ../src/guestfs-actions.pod:6886
31945 #, no-wrap
31946 msgid ""
31947 " struct guestfs_stat *\n"
31948 " guestfs_stat (guestfs_h *g,\n"
31949 "               const char *path);\n"
31950 "\n"
31951 msgstr ""
31952
31953 #. type: =head2
31954 #: ../src/guestfs-actions.pod:6900 ../src/guestfs-structs.pod:135
31955 msgid "guestfs_statvfs"
31956 msgstr ""
31957
31958 #. type: verbatim
31959 #: ../src/guestfs-actions.pod:6902
31960 #, no-wrap
31961 msgid ""
31962 " struct guestfs_statvfs *\n"
31963 " guestfs_statvfs (guestfs_h *g,\n"
31964 "                  const char *path);\n"
31965 "\n"
31966 msgstr ""
31967
31968 #. type: textblock
31969 #: ../src/guestfs-actions.pod:6912
31970 msgid ""
31971 "This function returns a C<struct guestfs_statvfs *>, or NULL if there was an "
31972 "error.  I<The caller must call C<guestfs_free_statvfs> after use>."
31973 msgstr ""
31974
31975 #. type: =head2
31976 #: ../src/guestfs-actions.pod:6918
31977 msgid "guestfs_strings"
31978 msgstr ""
31979
31980 #. type: verbatim
31981 #: ../src/guestfs-actions.pod:6920
31982 #, no-wrap
31983 msgid ""
31984 " char **\n"
31985 " guestfs_strings (guestfs_h *g,\n"
31986 "                  const char *path);\n"
31987 "\n"
31988 msgstr ""
31989
31990 #. type: =head2
31991 #: ../src/guestfs-actions.pod:6936
31992 msgid "guestfs_strings_e"
31993 msgstr ""
31994
31995 #. type: verbatim
31996 #: ../src/guestfs-actions.pod:6938
31997 #, no-wrap
31998 msgid ""
31999 " char **\n"
32000 " guestfs_strings_e (guestfs_h *g,\n"
32001 "                    const char *encoding,\n"
32002 "                    const char *path);\n"
32003 "\n"
32004 msgstr ""
32005
32006 #. type: textblock
32007 #: ../src/guestfs-actions.pod:6943
32008 msgid ""
32009 "This is like the C<guestfs_strings> command, but allows you to specify the "
32010 "encoding of strings that are looked for in the source file C<path>."
32011 msgstr ""
32012
32013 #. type: textblock
32014 #: ../src/guestfs-actions.pod:6953
32015 msgid ""
32016 "Single 7-bit-byte characters like ASCII and the ASCII-compatible parts of "
32017 "ISO-8859-X (this is what C<guestfs_strings> uses)."
32018 msgstr ""
32019
32020 #. type: =head2
32021 #: ../src/guestfs-actions.pod:6991
32022 msgid "guestfs_swapoff_device"
32023 msgstr ""
32024
32025 #. type: verbatim
32026 #: ../src/guestfs-actions.pod:6993
32027 #, no-wrap
32028 msgid ""
32029 " int\n"
32030 " guestfs_swapoff_device (guestfs_h *g,\n"
32031 "                         const char *device);\n"
32032 "\n"
32033 msgstr ""
32034
32035 #. type: textblock
32036 #: ../src/guestfs-actions.pod:6997
32037 msgid ""
32038 "This command disables the libguestfs appliance swap device or partition "
32039 "named C<device>.  See C<guestfs_swapon_device>."
32040 msgstr ""
32041
32042 #. type: =head2
32043 #: ../src/guestfs-actions.pod:7005
32044 msgid "guestfs_swapoff_file"
32045 msgstr ""
32046
32047 #. type: verbatim
32048 #: ../src/guestfs-actions.pod:7007
32049 #, no-wrap
32050 msgid ""
32051 " int\n"
32052 " guestfs_swapoff_file (guestfs_h *g,\n"
32053 "                       const char *file);\n"
32054 "\n"
32055 msgstr ""
32056
32057 #. type: =head2
32058 #: ../src/guestfs-actions.pod:7017
32059 msgid "guestfs_swapoff_label"
32060 msgstr ""
32061
32062 #. type: verbatim
32063 #: ../src/guestfs-actions.pod:7019
32064 #, no-wrap
32065 msgid ""
32066 " int\n"
32067 " guestfs_swapoff_label (guestfs_h *g,\n"
32068 "                        const char *label);\n"
32069 "\n"
32070 msgstr ""
32071
32072 #. type: =head2
32073 #: ../src/guestfs-actions.pod:7030
32074 msgid "guestfs_swapoff_uuid"
32075 msgstr ""
32076
32077 #. type: verbatim
32078 #: ../src/guestfs-actions.pod:7032
32079 #, no-wrap
32080 msgid ""
32081 " int\n"
32082 " guestfs_swapoff_uuid (guestfs_h *g,\n"
32083 "                       const char *uuid);\n"
32084 "\n"
32085 msgstr ""
32086
32087 #. type: =head2
32088 #: ../src/guestfs-actions.pod:7043
32089 msgid "guestfs_swapon_device"
32090 msgstr ""
32091
32092 #. type: verbatim
32093 #: ../src/guestfs-actions.pod:7045
32094 #, no-wrap
32095 msgid ""
32096 " int\n"
32097 " guestfs_swapon_device (guestfs_h *g,\n"
32098 "                        const char *device);\n"
32099 "\n"
32100 msgstr ""
32101
32102 #. type: textblock
32103 #: ../src/guestfs-actions.pod:7049
32104 msgid ""
32105 "This command enables the libguestfs appliance to use the swap device or "
32106 "partition named C<device>.  The increased memory is made available for all "
32107 "commands, for example those run using C<guestfs_command> or C<guestfs_sh>."
32108 msgstr ""
32109
32110 #. type: =head2
32111 #: ../src/guestfs-actions.pod:7065
32112 msgid "guestfs_swapon_file"
32113 msgstr ""
32114
32115 #. type: verbatim
32116 #: ../src/guestfs-actions.pod:7067
32117 #, no-wrap
32118 msgid ""
32119 " int\n"
32120 " guestfs_swapon_file (guestfs_h *g,\n"
32121 "                      const char *file);\n"
32122 "\n"
32123 msgstr ""
32124
32125 #. type: textblock
32126 #: ../src/guestfs-actions.pod:7071
32127 msgid ""
32128 "This command enables swap to a file.  See C<guestfs_swapon_device> for other "
32129 "notes."
32130 msgstr ""
32131
32132 #. type: =head2
32133 #: ../src/guestfs-actions.pod:7078
32134 msgid "guestfs_swapon_label"
32135 msgstr ""
32136
32137 #. type: verbatim
32138 #: ../src/guestfs-actions.pod:7080
32139 #, no-wrap
32140 msgid ""
32141 " int\n"
32142 " guestfs_swapon_label (guestfs_h *g,\n"
32143 "                       const char *label);\n"
32144 "\n"
32145 msgstr ""
32146
32147 #. type: textblock
32148 #: ../src/guestfs-actions.pod:7084
32149 msgid ""
32150 "This command enables swap to a labeled swap partition.  See "
32151 "C<guestfs_swapon_device> for other notes."
32152 msgstr ""
32153
32154 #. type: =head2
32155 #: ../src/guestfs-actions.pod:7091
32156 msgid "guestfs_swapon_uuid"
32157 msgstr ""
32158
32159 #. type: verbatim
32160 #: ../src/guestfs-actions.pod:7093
32161 #, no-wrap
32162 msgid ""
32163 " int\n"
32164 " guestfs_swapon_uuid (guestfs_h *g,\n"
32165 "                      const char *uuid);\n"
32166 "\n"
32167 msgstr ""
32168
32169 #. type: textblock
32170 #: ../src/guestfs-actions.pod:7097
32171 msgid ""
32172 "This command enables swap to a swap partition with the given UUID.  See "
32173 "C<guestfs_swapon_device> for other notes."
32174 msgstr ""
32175
32176 #. type: =head2
32177 #: ../src/guestfs-actions.pod:7104
32178 msgid "guestfs_sync"
32179 msgstr ""
32180
32181 #. type: verbatim
32182 #: ../src/guestfs-actions.pod:7106
32183 #, no-wrap
32184 msgid ""
32185 " int\n"
32186 " guestfs_sync (guestfs_h *g);\n"
32187 "\n"
32188 msgstr ""
32189
32190 #. type: =head2
32191 #: ../src/guestfs-actions.pod:7119
32192 msgid "guestfs_tail"
32193 msgstr ""
32194
32195 #. type: verbatim
32196 #: ../src/guestfs-actions.pod:7121
32197 #, no-wrap
32198 msgid ""
32199 " char **\n"
32200 " guestfs_tail (guestfs_h *g,\n"
32201 "               const char *path);\n"
32202 "\n"
32203 msgstr ""
32204
32205 #. type: =head2
32206 #: ../src/guestfs-actions.pod:7137
32207 msgid "guestfs_tail_n"
32208 msgstr ""
32209
32210 #. type: verbatim
32211 #: ../src/guestfs-actions.pod:7139
32212 #, no-wrap
32213 msgid ""
32214 " char **\n"
32215 " guestfs_tail_n (guestfs_h *g,\n"
32216 "                 int nrlines,\n"
32217 "                 const char *path);\n"
32218 "\n"
32219 msgstr ""
32220
32221 #. type: =head2
32222 #: ../src/guestfs-actions.pod:7161
32223 msgid "guestfs_tar_in"
32224 msgstr ""
32225
32226 #. type: verbatim
32227 #: ../src/guestfs-actions.pod:7163
32228 #, no-wrap
32229 msgid ""
32230 " int\n"
32231 " guestfs_tar_in (guestfs_h *g,\n"
32232 "                 const char *tarfile,\n"
32233 "                 const char *directory);\n"
32234 "\n"
32235 msgstr ""
32236
32237 #. type: textblock
32238 #: ../src/guestfs-actions.pod:7171
32239 msgid ""
32240 "To upload a compressed tarball, use C<guestfs_tgz_in> or C<guestfs_txz_in>."
32241 msgstr ""
32242
32243 #. type: textblock
32244 #: ../src/guestfs-actions.pod:7176 ../src/guestfs-actions.pod:7193
32245 #: ../src/guestfs-actions.pod:7209 ../src/guestfs-actions.pod:7225
32246 msgid "(Added in 1.0.3)"
32247 msgstr ""
32248
32249 #. type: =head2
32250 #: ../src/guestfs-actions.pod:7178
32251 msgid "guestfs_tar_out"
32252 msgstr ""
32253
32254 #. type: verbatim
32255 #: ../src/guestfs-actions.pod:7180
32256 #, no-wrap
32257 msgid ""
32258 " int\n"
32259 " guestfs_tar_out (guestfs_h *g,\n"
32260 "                  const char *directory,\n"
32261 "                  const char *tarfile);\n"
32262 "\n"
32263 msgstr ""
32264
32265 #. type: textblock
32266 #: ../src/guestfs-actions.pod:7188
32267 msgid ""
32268 "To download a compressed tarball, use C<guestfs_tgz_out> or "
32269 "C<guestfs_txz_out>."
32270 msgstr ""
32271
32272 #. type: =head2
32273 #: ../src/guestfs-actions.pod:7195
32274 msgid "guestfs_tgz_in"
32275 msgstr ""
32276
32277 #. type: verbatim
32278 #: ../src/guestfs-actions.pod:7197
32279 #, no-wrap
32280 msgid ""
32281 " int\n"
32282 " guestfs_tgz_in (guestfs_h *g,\n"
32283 "                 const char *tarball,\n"
32284 "                 const char *directory);\n"
32285 "\n"
32286 msgstr ""
32287
32288 #. type: textblock
32289 #: ../src/guestfs-actions.pod:7205
32290 msgid "To upload an uncompressed tarball, use C<guestfs_tar_in>."
32291 msgstr ""
32292
32293 #. type: =head2
32294 #: ../src/guestfs-actions.pod:7211
32295 msgid "guestfs_tgz_out"
32296 msgstr ""
32297
32298 #. type: verbatim
32299 #: ../src/guestfs-actions.pod:7213
32300 #, no-wrap
32301 msgid ""
32302 " int\n"
32303 " guestfs_tgz_out (guestfs_h *g,\n"
32304 "                  const char *directory,\n"
32305 "                  const char *tarball);\n"
32306 "\n"
32307 msgstr ""
32308
32309 #. type: textblock
32310 #: ../src/guestfs-actions.pod:7221
32311 msgid "To download an uncompressed tarball, use C<guestfs_tar_out>."
32312 msgstr ""
32313
32314 #. type: =head2
32315 #: ../src/guestfs-actions.pod:7227
32316 msgid "guestfs_touch"
32317 msgstr ""
32318
32319 #. type: verbatim
32320 #: ../src/guestfs-actions.pod:7229
32321 #, no-wrap
32322 msgid ""
32323 " int\n"
32324 " guestfs_touch (guestfs_h *g,\n"
32325 "                const char *path);\n"
32326 "\n"
32327 msgstr ""
32328
32329 #. type: =head2
32330 #: ../src/guestfs-actions.pod:7244
32331 msgid "guestfs_truncate"
32332 msgstr ""
32333
32334 #. type: verbatim
32335 #: ../src/guestfs-actions.pod:7246
32336 #, no-wrap
32337 msgid ""
32338 " int\n"
32339 " guestfs_truncate (guestfs_h *g,\n"
32340 "                   const char *path);\n"
32341 "\n"
32342 msgstr ""
32343
32344 #. type: =head2
32345 #: ../src/guestfs-actions.pod:7257
32346 msgid "guestfs_truncate_size"
32347 msgstr ""
32348
32349 #. type: verbatim
32350 #: ../src/guestfs-actions.pod:7259
32351 #, no-wrap
32352 msgid ""
32353 " int\n"
32354 " guestfs_truncate_size (guestfs_h *g,\n"
32355 "                        const char *path,\n"
32356 "                        int64_t size);\n"
32357 "\n"
32358 msgstr ""
32359
32360 #. type: textblock
32361 #: ../src/guestfs-actions.pod:7267
32362 msgid ""
32363 "If the current file size is less than C<size> then the file is extended to "
32364 "the required size with zero bytes.  This creates a sparse file (ie. disk "
32365 "blocks are not allocated for the file until you write to it).  To create a "
32366 "non-sparse file of zeroes, use C<guestfs_fallocate64> instead."
32367 msgstr ""
32368
32369 #. type: =head2
32370 #: ../src/guestfs-actions.pod:7277
32371 msgid "guestfs_tune2fs_l"
32372 msgstr ""
32373
32374 #. type: verbatim
32375 #: ../src/guestfs-actions.pod:7279
32376 #, no-wrap
32377 msgid ""
32378 " char **\n"
32379 " guestfs_tune2fs_l (guestfs_h *g,\n"
32380 "                    const char *device);\n"
32381 "\n"
32382 msgstr ""
32383
32384 #. type: =head2
32385 #: ../src/guestfs-actions.pod:7299
32386 msgid "guestfs_txz_in"
32387 msgstr ""
32388
32389 #. type: verbatim
32390 #: ../src/guestfs-actions.pod:7301
32391 #, no-wrap
32392 msgid ""
32393 " int\n"
32394 " guestfs_txz_in (guestfs_h *g,\n"
32395 "                 const char *tarball,\n"
32396 "                 const char *directory);\n"
32397 "\n"
32398 msgstr ""
32399
32400 #. type: =head2
32401 #: ../src/guestfs-actions.pod:7313
32402 msgid "guestfs_txz_out"
32403 msgstr ""
32404
32405 #. type: verbatim
32406 #: ../src/guestfs-actions.pod:7315
32407 #, no-wrap
32408 msgid ""
32409 " int\n"
32410 " guestfs_txz_out (guestfs_h *g,\n"
32411 "                  const char *directory,\n"
32412 "                  const char *tarball);\n"
32413 "\n"
32414 msgstr ""
32415
32416 #. type: =head2
32417 #: ../src/guestfs-actions.pod:7327
32418 msgid "guestfs_umask"
32419 msgstr ""
32420
32421 #. type: verbatim
32422 #: ../src/guestfs-actions.pod:7329
32423 #, no-wrap
32424 msgid ""
32425 " int\n"
32426 " guestfs_umask (guestfs_h *g,\n"
32427 "                int mask);\n"
32428 "\n"
32429 msgstr ""
32430
32431 #. type: textblock
32432 #: ../src/guestfs-actions.pod:7345
32433 msgid ""
32434 "See also C<guestfs_get_umask>, L<umask(2)>, C<guestfs_mknod>, "
32435 "C<guestfs_mkdir>."
32436 msgstr ""
32437
32438 #. type: =head2
32439 #: ../src/guestfs-actions.pod:7354
32440 msgid "guestfs_umount"
32441 msgstr ""
32442
32443 #. type: verbatim
32444 #: ../src/guestfs-actions.pod:7356
32445 #, no-wrap
32446 msgid ""
32447 " int\n"
32448 " guestfs_umount (guestfs_h *g,\n"
32449 "                 const char *pathordevice);\n"
32450 "\n"
32451 msgstr ""
32452
32453 #. type: =head2
32454 #: ../src/guestfs-actions.pod:7368
32455 msgid "guestfs_umount_all"
32456 msgstr ""
32457
32458 #. type: verbatim
32459 #: ../src/guestfs-actions.pod:7370
32460 #, no-wrap
32461 msgid ""
32462 " int\n"
32463 " guestfs_umount_all (guestfs_h *g);\n"
32464 "\n"
32465 msgstr ""
32466
32467 #. type: =head2
32468 #: ../src/guestfs-actions.pod:7381
32469 msgid "guestfs_upload"
32470 msgstr ""
32471
32472 #. type: verbatim
32473 #: ../src/guestfs-actions.pod:7383
32474 #, no-wrap
32475 msgid ""
32476 " int\n"
32477 " guestfs_upload (guestfs_h *g,\n"
32478 "                 const char *filename,\n"
32479 "                 const char *remotefilename);\n"
32480 "\n"
32481 msgstr ""
32482
32483 #. type: textblock
32484 #: ../src/guestfs-actions.pod:7393
32485 msgid "See also C<guestfs_download>."
32486 msgstr ""
32487
32488 #. type: =head2
32489 #: ../src/guestfs-actions.pod:7404
32490 msgid "guestfs_upload_offset"
32491 msgstr ""
32492
32493 #. type: verbatim
32494 #: ../src/guestfs-actions.pod:7406
32495 #, no-wrap
32496 msgid ""
32497 " int\n"
32498 " guestfs_upload_offset (guestfs_h *g,\n"
32499 "                        const char *filename,\n"
32500 "                        const char *remotefilename,\n"
32501 "                        int64_t offset);\n"
32502 "\n"
32503 msgstr ""
32504
32505 #. type: textblock
32506 #: ../src/guestfs-actions.pod:7422
32507 msgid ""
32508 "Note that there is no limit on the amount of data that can be uploaded with "
32509 "this call, unlike with C<guestfs_pwrite>, and this call always writes the "
32510 "full amount unless an error occurs."
32511 msgstr ""
32512
32513 #. type: textblock
32514 #: ../src/guestfs-actions.pod:7427
32515 msgid "See also C<guestfs_upload>, C<guestfs_pwrite>."
32516 msgstr ""
32517
32518 #. type: =head2
32519 #: ../src/guestfs-actions.pod:7438
32520 msgid "guestfs_utimens"
32521 msgstr ""
32522
32523 #. type: verbatim
32524 #: ../src/guestfs-actions.pod:7440
32525 #, no-wrap
32526 msgid ""
32527 " int\n"
32528 " guestfs_utimens (guestfs_h *g,\n"
32529 "                  const char *path,\n"
32530 "                  int64_t atsecs,\n"
32531 "                  int64_t atnsecs,\n"
32532 "                  int64_t mtsecs,\n"
32533 "                  int64_t mtnsecs);\n"
32534 "\n"
32535 msgstr ""
32536
32537 #. type: =head2
32538 #: ../src/guestfs-actions.pod:7469 ../src/guestfs-structs.pod:175
32539 msgid "guestfs_version"
32540 msgstr ""
32541
32542 #. type: verbatim
32543 #: ../src/guestfs-actions.pod:7471
32544 #, no-wrap
32545 msgid ""
32546 " struct guestfs_version *\n"
32547 " guestfs_version (guestfs_h *g);\n"
32548 "\n"
32549 msgstr ""
32550
32551 #. type: textblock
32552 #: ../src/guestfs-actions.pod:7499
32553 msgid ""
32554 "I<Note:> Don't use this call to test for availability of features.  In "
32555 "enterprise distributions we backport features from later versions into "
32556 "earlier versions, making this an unreliable way to test for features.  Use "
32557 "C<guestfs_available> instead."
32558 msgstr ""
32559
32560 #. type: textblock
32561 #: ../src/guestfs-actions.pod:7505
32562 msgid ""
32563 "This function returns a C<struct guestfs_version *>, or NULL if there was an "
32564 "error.  I<The caller must call C<guestfs_free_version> after use>."
32565 msgstr ""
32566
32567 #. type: textblock
32568 #: ../src/guestfs-actions.pod:7509
32569 msgid "(Added in 1.0.58)"
32570 msgstr ""
32571
32572 #. type: =head2
32573 #: ../src/guestfs-actions.pod:7511
32574 msgid "guestfs_vfs_label"
32575 msgstr ""
32576
32577 #. type: verbatim
32578 #: ../src/guestfs-actions.pod:7513
32579 #, no-wrap
32580 msgid ""
32581 " char *\n"
32582 " guestfs_vfs_label (guestfs_h *g,\n"
32583 "                    const char *device);\n"
32584 "\n"
32585 msgstr ""
32586
32587 #. type: textblock
32588 #: ../src/guestfs-actions.pod:7522
32589 msgid "To find a filesystem from the label, use C<guestfs_findfs_label>."
32590 msgstr ""
32591
32592 #. type: textblock
32593 #: ../src/guestfs-actions.pod:7527 ../src/guestfs-actions.pod:7564
32594 msgid "(Added in 1.3.18)"
32595 msgstr ""
32596
32597 #. type: =head2
32598 #: ../src/guestfs-actions.pod:7529
32599 msgid "guestfs_vfs_type"
32600 msgstr ""
32601
32602 #. type: verbatim
32603 #: ../src/guestfs-actions.pod:7531
32604 #, no-wrap
32605 msgid ""
32606 " char *\n"
32607 " guestfs_vfs_type (guestfs_h *g,\n"
32608 "                   const char *device);\n"
32609 "\n"
32610 msgstr ""
32611
32612 #. type: =head2
32613 #: ../src/guestfs-actions.pod:7548
32614 msgid "guestfs_vfs_uuid"
32615 msgstr ""
32616
32617 #. type: verbatim
32618 #: ../src/guestfs-actions.pod:7550
32619 #, no-wrap
32620 msgid ""
32621 " char *\n"
32622 " guestfs_vfs_uuid (guestfs_h *g,\n"
32623 "                   const char *device);\n"
32624 "\n"
32625 msgstr ""
32626
32627 #. type: textblock
32628 #: ../src/guestfs-actions.pod:7559
32629 msgid "To find a filesystem from the UUID, use C<guestfs_findfs_uuid>."
32630 msgstr ""
32631
32632 #. type: =head2
32633 #: ../src/guestfs-actions.pod:7566
32634 msgid "guestfs_vg_activate"
32635 msgstr ""
32636
32637 #. type: verbatim
32638 #: ../src/guestfs-actions.pod:7568
32639 #, no-wrap
32640 msgid ""
32641 " int\n"
32642 " guestfs_vg_activate (guestfs_h *g,\n"
32643 "                      int activate,\n"
32644 "                      char *const *volgroups);\n"
32645 "\n"
32646 msgstr ""
32647
32648 #. type: =head2
32649 #: ../src/guestfs-actions.pod:7585
32650 msgid "guestfs_vg_activate_all"
32651 msgstr ""
32652
32653 #. type: verbatim
32654 #: ../src/guestfs-actions.pod:7587
32655 #, no-wrap
32656 msgid ""
32657 " int\n"
32658 " guestfs_vg_activate_all (guestfs_h *g,\n"
32659 "                          int activate);\n"
32660 "\n"
32661 msgstr ""
32662
32663 #. type: =head2
32664 #: ../src/guestfs-actions.pod:7600
32665 msgid "guestfs_vgcreate"
32666 msgstr ""
32667
32668 #. type: verbatim
32669 #: ../src/guestfs-actions.pod:7602
32670 #, no-wrap
32671 msgid ""
32672 " int\n"
32673 " guestfs_vgcreate (guestfs_h *g,\n"
32674 "                   const char *volgroup,\n"
32675 "                   char *const *physvols);\n"
32676 "\n"
32677 msgstr ""
32678
32679 #. type: =head2
32680 #: ../src/guestfs-actions.pod:7614
32681 msgid "guestfs_vglvuuids"
32682 msgstr ""
32683
32684 #. type: verbatim
32685 #: ../src/guestfs-actions.pod:7616
32686 #, no-wrap
32687 msgid ""
32688 " char **\n"
32689 " guestfs_vglvuuids (guestfs_h *g,\n"
32690 "                    const char *vgname);\n"
32691 "\n"
32692 msgstr ""
32693
32694 #. type: textblock
32695 #: ../src/guestfs-actions.pod:7623
32696 msgid ""
32697 "You can use this along with C<guestfs_lvs> and C<guestfs_lvuuid> calls to "
32698 "associate logical volumes and volume groups."
32699 msgstr ""
32700
32701 #. type: textblock
32702 #: ../src/guestfs-actions.pod:7626
32703 msgid "See also C<guestfs_vgpvuuids>."
32704 msgstr ""
32705
32706 #. type: =head2
32707 #: ../src/guestfs-actions.pod:7634
32708 msgid "guestfs_vgpvuuids"
32709 msgstr ""
32710
32711 #. type: verbatim
32712 #: ../src/guestfs-actions.pod:7636
32713 #, no-wrap
32714 msgid ""
32715 " char **\n"
32716 " guestfs_vgpvuuids (guestfs_h *g,\n"
32717 "                    const char *vgname);\n"
32718 "\n"
32719 msgstr ""
32720
32721 #. type: textblock
32722 #: ../src/guestfs-actions.pod:7643
32723 msgid ""
32724 "You can use this along with C<guestfs_pvs> and C<guestfs_pvuuid> calls to "
32725 "associate physical volumes and volume groups."
32726 msgstr ""
32727
32728 #. type: textblock
32729 #: ../src/guestfs-actions.pod:7646
32730 msgid "See also C<guestfs_vglvuuids>."
32731 msgstr ""
32732
32733 #. type: =head2
32734 #: ../src/guestfs-actions.pod:7654
32735 msgid "guestfs_vgremove"
32736 msgstr ""
32737
32738 #. type: verbatim
32739 #: ../src/guestfs-actions.pod:7656
32740 #, no-wrap
32741 msgid ""
32742 " int\n"
32743 " guestfs_vgremove (guestfs_h *g,\n"
32744 "                   const char *vgname);\n"
32745 "\n"
32746 msgstr ""
32747
32748 #. type: =head2
32749 #: ../src/guestfs-actions.pod:7669
32750 msgid "guestfs_vgrename"
32751 msgstr ""
32752
32753 #. type: verbatim
32754 #: ../src/guestfs-actions.pod:7671
32755 #, no-wrap
32756 msgid ""
32757 " int\n"
32758 " guestfs_vgrename (guestfs_h *g,\n"
32759 "                   const char *volgroup,\n"
32760 "                   const char *newvolgroup);\n"
32761 "\n"
32762 msgstr ""
32763
32764 #. type: =head2
32765 #: ../src/guestfs-actions.pod:7682
32766 msgid "guestfs_vgs"
32767 msgstr ""
32768
32769 #. type: verbatim
32770 #: ../src/guestfs-actions.pod:7684
32771 #, no-wrap
32772 msgid ""
32773 " char **\n"
32774 " guestfs_vgs (guestfs_h *g);\n"
32775 "\n"
32776 msgstr ""
32777
32778 #. type: textblock
32779 #: ../src/guestfs-actions.pod:7693
32780 msgid "See also C<guestfs_vgs_full>."
32781 msgstr ""
32782
32783 #. type: =head2
32784 #: ../src/guestfs-actions.pod:7701
32785 msgid "guestfs_vgs_full"
32786 msgstr ""
32787
32788 #. type: verbatim
32789 #: ../src/guestfs-actions.pod:7703
32790 #, no-wrap
32791 msgid ""
32792 " struct guestfs_lvm_vg_list *\n"
32793 " guestfs_vgs_full (guestfs_h *g);\n"
32794 "\n"
32795 msgstr ""
32796
32797 #. type: textblock
32798 #: ../src/guestfs-actions.pod:7709
32799 msgid ""
32800 "This function returns a C<struct guestfs_lvm_vg_list *>, or NULL if there "
32801 "was an error.  I<The caller must call C<guestfs_free_lvm_vg_list> after use>."
32802 msgstr ""
32803
32804 #. type: =head2
32805 #: ../src/guestfs-actions.pod:7715
32806 msgid "guestfs_vgscan"
32807 msgstr ""
32808
32809 #. type: verbatim
32810 #: ../src/guestfs-actions.pod:7717
32811 #, no-wrap
32812 msgid ""
32813 " int\n"
32814 " guestfs_vgscan (guestfs_h *g);\n"
32815 "\n"
32816 msgstr ""
32817
32818 #. type: =head2
32819 #: ../src/guestfs-actions.pod:7727
32820 msgid "guestfs_vguuid"
32821 msgstr ""
32822
32823 #. type: verbatim
32824 #: ../src/guestfs-actions.pod:7729
32825 #, no-wrap
32826 msgid ""
32827 " char *\n"
32828 " guestfs_vguuid (guestfs_h *g,\n"
32829 "                 const char *vgname);\n"
32830 "\n"
32831 msgstr ""
32832
32833 #. type: =head2
32834 #: ../src/guestfs-actions.pod:7740
32835 msgid "guestfs_wait_ready"
32836 msgstr ""
32837
32838 #. type: verbatim
32839 #: ../src/guestfs-actions.pod:7742
32840 #, no-wrap
32841 msgid ""
32842 " int\n"
32843 " guestfs_wait_ready (guestfs_h *g);\n"
32844 "\n"
32845 msgstr ""
32846
32847 #. type: textblock
32848 #: ../src/guestfs-actions.pod:7745
32849 msgid ""
32850 "I<This function is deprecated.> In new code, use the L</guestfs_launch> call "
32851 "instead."
32852 msgstr ""
32853
32854 #. type: textblock
32855 #: ../src/guestfs-actions.pod:7752
32856 msgid "This function is a no op."
32857 msgstr ""
32858
32859 #. type: textblock
32860 #: ../src/guestfs-actions.pod:7754
32861 msgid ""
32862 "In versions of the API E<lt> 1.0.71 you had to call this function just after "
32863 "calling C<guestfs_launch> to wait for the launch to complete.  However this "
32864 "is no longer necessary because C<guestfs_launch> now does the waiting."
32865 msgstr ""
32866
32867 #. type: textblock
32868 #: ../src/guestfs-actions.pod:7759
32869 msgid ""
32870 "If you see any calls to this function in code then you can just remove them, "
32871 "unless you want to retain compatibility with older versions of the API."
32872 msgstr ""
32873
32874 #. type: =head2
32875 #: ../src/guestfs-actions.pod:7767
32876 msgid "guestfs_wc_c"
32877 msgstr ""
32878
32879 #. type: verbatim
32880 #: ../src/guestfs-actions.pod:7769
32881 #, no-wrap
32882 msgid ""
32883 " int\n"
32884 " guestfs_wc_c (guestfs_h *g,\n"
32885 "               const char *path);\n"
32886 "\n"
32887 msgstr ""
32888
32889 #. type: =head2
32890 #: ../src/guestfs-actions.pod:7780
32891 msgid "guestfs_wc_l"
32892 msgstr ""
32893
32894 #. type: verbatim
32895 #: ../src/guestfs-actions.pod:7782
32896 #, no-wrap
32897 msgid ""
32898 " int\n"
32899 " guestfs_wc_l (guestfs_h *g,\n"
32900 "               const char *path);\n"
32901 "\n"
32902 msgstr ""
32903
32904 #. type: =head2
32905 #: ../src/guestfs-actions.pod:7793
32906 msgid "guestfs_wc_w"
32907 msgstr ""
32908
32909 #. type: verbatim
32910 #: ../src/guestfs-actions.pod:7795
32911 #, no-wrap
32912 msgid ""
32913 " int\n"
32914 " guestfs_wc_w (guestfs_h *g,\n"
32915 "               const char *path);\n"
32916 "\n"
32917 msgstr ""
32918
32919 #. type: =head2
32920 #: ../src/guestfs-actions.pod:7806
32921 msgid "guestfs_write"
32922 msgstr ""
32923
32924 #. type: verbatim
32925 #: ../src/guestfs-actions.pod:7808
32926 #, no-wrap
32927 msgid ""
32928 " int\n"
32929 " guestfs_write (guestfs_h *g,\n"
32930 "                const char *path,\n"
32931 "                const char *content,\n"
32932 "                size_t content_size);\n"
32933 "\n"
32934 msgstr ""
32935
32936 #. type: textblock
32937 #: ../src/guestfs-actions.pod:7817
32938 msgid "See also C<guestfs_write_append>."
32939 msgstr ""
32940
32941 #. type: =head2
32942 #: ../src/guestfs-actions.pod:7826
32943 msgid "guestfs_write_append"
32944 msgstr ""
32945
32946 #. type: verbatim
32947 #: ../src/guestfs-actions.pod:7828
32948 #, no-wrap
32949 msgid ""
32950 " int\n"
32951 " guestfs_write_append (guestfs_h *g,\n"
32952 "                       const char *path,\n"
32953 "                       const char *content,\n"
32954 "                       size_t content_size);\n"
32955 "\n"
32956 msgstr ""
32957
32958 #. type: textblock
32959 #: ../src/guestfs-actions.pod:7837
32960 msgid "See also C<guestfs_write>."
32961 msgstr ""
32962
32963 #. type: =head2
32964 #: ../src/guestfs-actions.pod:7846
32965 msgid "guestfs_write_file"
32966 msgstr "guestfs_write_file"
32967
32968 #. type: verbatim
32969 #: ../src/guestfs-actions.pod:7848
32970 #, no-wrap
32971 msgid ""
32972 " int\n"
32973 " guestfs_write_file (guestfs_h *g,\n"
32974 "                     const char *path,\n"
32975 "                     const char *content,\n"
32976 "                     int size);\n"
32977 "\n"
32978 msgstr ""
32979 " int\n"
32980 " guestfs_write_file (guestfs_h *g,\n"
32981 "                     const char *path,\n"
32982 "                     const char *content,\n"
32983 "                     int size);\n"
32984 "\n"
32985
32986 #. type: textblock
32987 #: ../src/guestfs-actions.pod:7854
32988 msgid ""
32989 "I<This function is deprecated.> In new code, use the L</guestfs_write> call "
32990 "instead."
32991 msgstr ""
32992
32993 #. type: =head2
32994 #: ../src/guestfs-actions.pod:7879
32995 msgid "guestfs_zegrep"
32996 msgstr "guestfs_zegrep"
32997
32998 #. type: verbatim
32999 #: ../src/guestfs-actions.pod:7881
33000 #, no-wrap
33001 msgid ""
33002 " char **\n"
33003 " guestfs_zegrep (guestfs_h *g,\n"
33004 "                 const char *regex,\n"
33005 "                 const char *path);\n"
33006 "\n"
33007 msgstr ""
33008 " char **\n"
33009 " guestfs_zegrep (guestfs_h *g,\n"
33010 "                 const char *regex,\n"
33011 "                 const char *path);\n"
33012 "\n"
33013
33014 #. type: =head2
33015 #: ../src/guestfs-actions.pod:7898
33016 msgid "guestfs_zegrepi"
33017 msgstr "guestfs_zegrepi"
33018
33019 #. type: verbatim
33020 #: ../src/guestfs-actions.pod:7900
33021 #, no-wrap
33022 msgid ""
33023 " char **\n"
33024 " guestfs_zegrepi (guestfs_h *g,\n"
33025 "                  const char *regex,\n"
33026 "                  const char *path);\n"
33027 "\n"
33028 msgstr ""
33029 " char **\n"
33030 " guestfs_zegrepi (guestfs_h *g,\n"
33031 "                  const char *regex,\n"
33032 "                  const char *path);\n"
33033 "\n"
33034
33035 #. type: =head2
33036 #: ../src/guestfs-actions.pod:7917
33037 msgid "guestfs_zero"
33038 msgstr "guestfs_zero"
33039
33040 #. type: verbatim
33041 #: ../src/guestfs-actions.pod:7919
33042 #, no-wrap
33043 msgid ""
33044 " int\n"
33045 " guestfs_zero (guestfs_h *g,\n"
33046 "               const char *device);\n"
33047 "\n"
33048 msgstr ""
33049 " int\n"
33050 " guestfs_zero (guestfs_h *g,\n"
33051 "               const char *device);\n"
33052 "\n"
33053
33054 #. type: textblock
33055 #: ../src/guestfs-actions.pod:7933
33056 msgid ""
33057 "See also: C<guestfs_zero_device>, C<guestfs_scrub_device>, "
33058 "C<guestfs_is_zero_device>"
33059 msgstr ""
33060
33061 #. type: =head2
33062 #: ../src/guestfs-actions.pod:7945
33063 msgid "guestfs_zero_device"
33064 msgstr "guestfs_zero_device"
33065
33066 #. type: verbatim
33067 #: ../src/guestfs-actions.pod:7947
33068 #, no-wrap
33069 msgid ""
33070 " int\n"
33071 " guestfs_zero_device (guestfs_h *g,\n"
33072 "                      const char *device);\n"
33073 "\n"
33074 msgstr ""
33075 " int\n"
33076 " guestfs_zero_device (guestfs_h *g,\n"
33077 "                      const char *device);\n"
33078 "\n"
33079
33080 #. type: textblock
33081 #: ../src/guestfs-actions.pod:7951
33082 msgid ""
33083 "This command writes zeroes over the entire C<device>.  Compare with "
33084 "C<guestfs_zero> which just zeroes the first few blocks of a device."
33085 msgstr ""
33086
33087 #. type: textblock
33088 #: ../src/guestfs-actions.pod:7969
33089 msgid "(Added in 1.3.1)"
33090 msgstr "(Додано у 1.3.1)"
33091
33092 #. type: =head2
33093 #: ../src/guestfs-actions.pod:7971
33094 msgid "guestfs_zerofree"
33095 msgstr "guestfs_zerofree"
33096
33097 #. type: verbatim
33098 #: ../src/guestfs-actions.pod:7973
33099 #, no-wrap
33100 msgid ""
33101 " int\n"
33102 " guestfs_zerofree (guestfs_h *g,\n"
33103 "                   const char *device);\n"
33104 "\n"
33105 msgstr ""
33106 " int\n"
33107 " guestfs_zerofree (guestfs_h *g,\n"
33108 "                   const char *device);\n"
33109 "\n"
33110
33111 #. type: =head2
33112 #: ../src/guestfs-actions.pod:7992
33113 msgid "guestfs_zfgrep"
33114 msgstr "guestfs_zfgrep"
33115
33116 #. type: verbatim
33117 #: ../src/guestfs-actions.pod:7994
33118 #, no-wrap
33119 msgid ""
33120 " char **\n"
33121 " guestfs_zfgrep (guestfs_h *g,\n"
33122 "                 const char *pattern,\n"
33123 "                 const char *path);\n"
33124 "\n"
33125 msgstr ""
33126 " char **\n"
33127 " guestfs_zfgrep (guestfs_h *g,\n"
33128 "                 const char *pattern,\n"
33129 "                 const char *path);\n"
33130 "\n"
33131
33132 #. type: =head2
33133 #: ../src/guestfs-actions.pod:8011
33134 msgid "guestfs_zfgrepi"
33135 msgstr "guestfs_zfgrepi"
33136
33137 #. type: verbatim
33138 #: ../src/guestfs-actions.pod:8013
33139 #, no-wrap
33140 msgid ""
33141 " char **\n"
33142 " guestfs_zfgrepi (guestfs_h *g,\n"
33143 "                  const char *pattern,\n"
33144 "                  const char *path);\n"
33145 "\n"
33146 msgstr ""
33147 " char **\n"
33148 " guestfs_zfgrepi (guestfs_h *g,\n"
33149 "                  const char *pattern,\n"
33150 "                  const char *path);\n"
33151 "\n"
33152
33153 #. type: =head2
33154 #: ../src/guestfs-actions.pod:8030
33155 msgid "guestfs_zfile"
33156 msgstr "guestfs_zfile"
33157
33158 #. type: verbatim
33159 #: ../src/guestfs-actions.pod:8032
33160 #, no-wrap
33161 msgid ""
33162 " char *\n"
33163 " guestfs_zfile (guestfs_h *g,\n"
33164 "                const char *meth,\n"
33165 "                const char *path);\n"
33166 "\n"
33167 msgstr ""
33168 " char *\n"
33169 " guestfs_zfile (guestfs_h *g,\n"
33170 "                const char *meth,\n"
33171 "                const char *path);\n"
33172 "\n"
33173
33174 #. type: textblock
33175 #: ../src/guestfs-actions.pod:8037
33176 msgid ""
33177 "I<This function is deprecated.> In new code, use the L</guestfs_file> call "
33178 "instead."
33179 msgstr ""
33180
33181 #. type: textblock
33182 #: ../src/guestfs-actions.pod:8049
33183 msgid ""
33184 "Since 1.0.63, use C<guestfs_file> instead which can now process compressed "
33185 "files."
33186 msgstr ""
33187
33188 #. type: =head2
33189 #: ../src/guestfs-actions.pod:8057
33190 msgid "guestfs_zgrep"
33191 msgstr "guestfs_zgrep"
33192
33193 #. type: verbatim
33194 #: ../src/guestfs-actions.pod:8059
33195 #, no-wrap
33196 msgid ""
33197 " char **\n"
33198 " guestfs_zgrep (guestfs_h *g,\n"
33199 "                const char *regex,\n"
33200 "                const char *path);\n"
33201 "\n"
33202 msgstr ""
33203 " char **\n"
33204 " guestfs_zgrep (guestfs_h *g,\n"
33205 "                const char *regex,\n"
33206 "                const char *path);\n"
33207 "\n"
33208
33209 #. type: =head2
33210 #: ../src/guestfs-actions.pod:8076
33211 msgid "guestfs_zgrepi"
33212 msgstr "guestfs_zgrepi"
33213
33214 #. type: verbatim
33215 #: ../src/guestfs-actions.pod:8078
33216 #, no-wrap
33217 msgid ""
33218 " char **\n"
33219 " guestfs_zgrepi (guestfs_h *g,\n"
33220 "                 const char *regex,\n"
33221 "                 const char *path);\n"
33222 "\n"
33223 msgstr ""
33224 " char **\n"
33225 " guestfs_zgrepi (guestfs_h *g,\n"
33226 "                 const char *regex,\n"
33227 "                 const char *path);\n"
33228 "\n"
33229
33230 #. type: =item
33231 #: ../src/guestfs-availability.pod:3
33232 msgid "B<augeas>"
33233 msgstr "B<augeas>"
33234
33235 #. type: textblock
33236 #: ../src/guestfs-availability.pod:5
33237 msgid ""
33238 "The following functions: L</guestfs_aug_clear> L</guestfs_aug_close> L</"
33239 "guestfs_aug_defnode> L</guestfs_aug_defvar> L</guestfs_aug_get> L</"
33240 "guestfs_aug_init> L</guestfs_aug_insert> L</guestfs_aug_load> L</"
33241 "guestfs_aug_ls> L</guestfs_aug_match> L</guestfs_aug_mv> L</guestfs_aug_rm> "
33242 "L</guestfs_aug_save> L</guestfs_aug_set>"
33243 msgstr ""
33244
33245 #. type: =item
33246 #: ../src/guestfs-availability.pod:21
33247 msgid "B<btrfs>"
33248 msgstr ""
33249
33250 #. type: textblock
33251 #: ../src/guestfs-availability.pod:23
33252 msgid "The following functions: L</guestfs_btrfs_filesystem_resize>"
33253 msgstr ""
33254
33255 #. type: =item
33256 #: ../src/guestfs-availability.pod:26
33257 #, fuzzy
33258 #| msgid "B<scrub>"
33259 msgid "B<grub>"
33260 msgstr "B<scrub>"
33261
33262 #. type: textblock
33263 #: ../src/guestfs-availability.pod:28
33264 msgid "The following functions: L</guestfs_grub_install>"
33265 msgstr ""
33266
33267 #. type: =item
33268 #: ../src/guestfs-availability.pod:31
33269 msgid "B<inotify>"
33270 msgstr "B<inotify>"
33271
33272 #. type: textblock
33273 #: ../src/guestfs-availability.pod:33
33274 msgid ""
33275 "The following functions: L</guestfs_inotify_add_watch> L</"
33276 "guestfs_inotify_close> L</guestfs_inotify_files> L</guestfs_inotify_init> L</"
33277 "guestfs_inotify_read> L</guestfs_inotify_rm_watch>"
33278 msgstr ""
33279
33280 #. type: =item
33281 #: ../src/guestfs-availability.pod:41
33282 msgid "B<linuxfsuuid>"
33283 msgstr "B<linuxfsuuid>"
33284
33285 #. type: textblock
33286 #: ../src/guestfs-availability.pod:43
33287 msgid ""
33288 "The following functions: L</guestfs_mke2fs_JU> L</guestfs_mke2journal_U> L</"
33289 "guestfs_mkswap_U> L</guestfs_swapoff_uuid> L</guestfs_swapon_uuid>"
33290 msgstr ""
33291
33292 #. type: =item
33293 #: ../src/guestfs-availability.pod:50
33294 msgid "B<linuxmodules>"
33295 msgstr "B<linuxmodules>"
33296
33297 #. type: textblock
33298 #: ../src/guestfs-availability.pod:52
33299 msgid "The following functions: L</guestfs_modprobe>"
33300 msgstr ""
33301
33302 #. type: =item
33303 #: ../src/guestfs-availability.pod:55
33304 msgid "B<linuxxattrs>"
33305 msgstr "B<linuxxattrs>"
33306
33307 #. type: textblock
33308 #: ../src/guestfs-availability.pod:57
33309 msgid ""
33310 "The following functions: L</guestfs_getxattr> L</guestfs_getxattrs> L</"
33311 "guestfs_lgetxattr> L</guestfs_lgetxattrs> L</guestfs_lremovexattr> L</"
33312 "guestfs_lsetxattr> L</guestfs_lxattrlist> L</guestfs_removexattr> L</"
33313 "guestfs_setxattr>"
33314 msgstr ""
33315
33316 #. type: =item
33317 #: ../src/guestfs-availability.pod:68
33318 msgid "B<luks>"
33319 msgstr "B<luks>"
33320
33321 #. type: textblock
33322 #: ../src/guestfs-availability.pod:70
33323 msgid ""
33324 "The following functions: L</guestfs_luks_add_key> L</guestfs_luks_close> L</"
33325 "guestfs_luks_format> L</guestfs_luks_format_cipher> L</"
33326 "guestfs_luks_kill_slot> L</guestfs_luks_open> L</guestfs_luks_open_ro>"
33327 msgstr ""
33328
33329 #. type: =item
33330 #: ../src/guestfs-availability.pod:79
33331 msgid "B<lvm2>"
33332 msgstr "B<lvm2>"
33333
33334 #. type: textblock
33335 #: ../src/guestfs-availability.pod:81
33336 msgid ""
33337 "The following functions: L</guestfs_is_lv> L</guestfs_lvcreate> L</"
33338 "guestfs_lvm_remove_all> L</guestfs_lvm_set_filter> L</guestfs_lvremove> L</"
33339 "guestfs_lvresize> L</guestfs_lvresize_free> L</guestfs_lvs> L</"
33340 "guestfs_lvs_full> L</guestfs_pvcreate> L</guestfs_pvremove> L</"
33341 "guestfs_pvresize> L</guestfs_pvresize_size> L</guestfs_pvs> L</"
33342 "guestfs_pvs_full> L</guestfs_vg_activate> L</guestfs_vg_activate_all> L</"
33343 "guestfs_vgcreate> L</guestfs_vgremove> L</guestfs_vgs> L</guestfs_vgs_full>"
33344 msgstr ""
33345
33346 #. type: =item
33347 #: ../src/guestfs-availability.pod:104
33348 msgid "B<mknod>"
33349 msgstr "B<mknod>"
33350
33351 #. type: textblock
33352 #: ../src/guestfs-availability.pod:106
33353 msgid ""
33354 "The following functions: L</guestfs_mkfifo> L</guestfs_mknod> L</"
33355 "guestfs_mknod_b> L</guestfs_mknod_c>"
33356 msgstr ""
33357
33358 #. type: =item
33359 #: ../src/guestfs-availability.pod:112
33360 msgid "B<ntfs3g>"
33361 msgstr "B<ntfs3g>"
33362
33363 #. type: textblock
33364 #: ../src/guestfs-availability.pod:114
33365 msgid "The following functions: L</guestfs_ntfs_3g_probe>"
33366 msgstr ""
33367
33368 #. type: =item
33369 #: ../src/guestfs-availability.pod:117
33370 msgid "B<ntfsprogs>"
33371 msgstr "B<ntfsprogs>"
33372
33373 #. type: textblock
33374 #: ../src/guestfs-availability.pod:119
33375 msgid ""
33376 "The following functions: L</guestfs_ntfsresize> L</guestfs_ntfsresize_opts> "
33377 "L</guestfs_ntfsresize_size>"
33378 msgstr ""
33379
33380 #. type: =item
33381 #: ../src/guestfs-availability.pod:124
33382 msgid "B<realpath>"
33383 msgstr "B<realpath>"
33384
33385 #. type: textblock
33386 #: ../src/guestfs-availability.pod:126
33387 msgid "The following functions: L</guestfs_realpath>"
33388 msgstr ""
33389
33390 #. type: =item
33391 #: ../src/guestfs-availability.pod:129
33392 msgid "B<scrub>"
33393 msgstr "B<scrub>"
33394
33395 #. type: textblock
33396 #: ../src/guestfs-availability.pod:131
33397 msgid ""
33398 "The following functions: L</guestfs_scrub_device> L</guestfs_scrub_file> L</"
33399 "guestfs_scrub_freespace>"
33400 msgstr ""
33401
33402 #. type: =item
33403 #: ../src/guestfs-availability.pod:136
33404 msgid "B<selinux>"
33405 msgstr "B<selinux>"
33406
33407 #. type: textblock
33408 #: ../src/guestfs-availability.pod:138
33409 msgid "The following functions: L</guestfs_getcon> L</guestfs_setcon>"
33410 msgstr ""
33411
33412 #. type: =item
33413 #: ../src/guestfs-availability.pod:142
33414 msgid "B<xz>"
33415 msgstr "B<xz>"
33416
33417 #. type: textblock
33418 #: ../src/guestfs-availability.pod:144
33419 msgid "The following functions: L</guestfs_txz_in> L</guestfs_txz_out>"
33420 msgstr ""
33421
33422 #. type: =item
33423 #: ../src/guestfs-availability.pod:148
33424 msgid "B<zerofree>"
33425 msgstr "B<zerofree>"
33426
33427 #. type: textblock
33428 #: ../src/guestfs-availability.pod:150
33429 msgid "The following functions: L</guestfs_zerofree>"
33430 msgstr ""
33431
33432 #. type: =head2
33433 #: ../src/guestfs-structs.pod:1
33434 msgid "guestfs_int_bool"
33435 msgstr ""
33436
33437 #. type: verbatim
33438 #: ../src/guestfs-structs.pod:3
33439 #, no-wrap
33440 msgid ""
33441 " struct guestfs_int_bool {\n"
33442 "   int32_t i;\n"
33443 "   int32_t b;\n"
33444 " };\n"
33445 " \n"
33446 msgstr ""
33447
33448 #. type: verbatim
33449 #: ../src/guestfs-structs.pod:8
33450 #, no-wrap
33451 msgid ""
33452 " struct guestfs_int_bool_list {\n"
33453 "   uint32_t len; /* Number of elements in list. */\n"
33454 "   struct guestfs_int_bool *val; /* Elements. */\n"
33455 " };\n"
33456 " \n"
33457 msgstr ""
33458
33459 #. type: verbatim
33460 #: ../src/guestfs-structs.pod:13
33461 #, no-wrap
33462 msgid ""
33463 " void guestfs_free_int_bool (struct guestfs_free_int_bool *);\n"
33464 " void guestfs_free_int_bool_list (struct guestfs_free_int_bool_list *);\n"
33465 "\n"
33466 msgstr ""
33467
33468 #. type: =head2
33469 #: ../src/guestfs-structs.pod:16
33470 msgid "guestfs_lvm_pv"
33471 msgstr ""
33472
33473 #. type: verbatim
33474 #: ../src/guestfs-structs.pod:18
33475 #, no-wrap
33476 msgid ""
33477 " struct guestfs_lvm_pv {\n"
33478 "   char *pv_name;\n"
33479 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33480 "   char pv_uuid[32];\n"
33481 "   char *pv_fmt;\n"
33482 "   uint64_t pv_size;\n"
33483 "   uint64_t dev_size;\n"
33484 "   uint64_t pv_free;\n"
33485 "   uint64_t pv_used;\n"
33486 "   char *pv_attr;\n"
33487 "   int64_t pv_pe_count;\n"
33488 "   int64_t pv_pe_alloc_count;\n"
33489 "   char *pv_tags;\n"
33490 "   uint64_t pe_start;\n"
33491 "   int64_t pv_mda_count;\n"
33492 "   uint64_t pv_mda_free;\n"
33493 " };\n"
33494 " \n"
33495 msgstr ""
33496
33497 #. type: verbatim
33498 #: ../src/guestfs-structs.pod:36
33499 #, no-wrap
33500 msgid ""
33501 " struct guestfs_lvm_pv_list {\n"
33502 "   uint32_t len; /* Number of elements in list. */\n"
33503 "   struct guestfs_lvm_pv *val; /* Elements. */\n"
33504 " };\n"
33505 " \n"
33506 msgstr ""
33507
33508 #. type: verbatim
33509 #: ../src/guestfs-structs.pod:41
33510 #, no-wrap
33511 msgid ""
33512 " void guestfs_free_lvm_pv (struct guestfs_free_lvm_pv *);\n"
33513 " void guestfs_free_lvm_pv_list (struct guestfs_free_lvm_pv_list *);\n"
33514 "\n"
33515 msgstr ""
33516
33517 #. type: =head2
33518 #: ../src/guestfs-structs.pod:44
33519 msgid "guestfs_lvm_vg"
33520 msgstr ""
33521
33522 #. type: verbatim
33523 #: ../src/guestfs-structs.pod:46
33524 #, no-wrap
33525 msgid ""
33526 " struct guestfs_lvm_vg {\n"
33527 "   char *vg_name;\n"
33528 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33529 "   char vg_uuid[32];\n"
33530 "   char *vg_fmt;\n"
33531 "   char *vg_attr;\n"
33532 "   uint64_t vg_size;\n"
33533 "   uint64_t vg_free;\n"
33534 "   char *vg_sysid;\n"
33535 "   uint64_t vg_extent_size;\n"
33536 "   int64_t vg_extent_count;\n"
33537 "   int64_t vg_free_count;\n"
33538 "   int64_t max_lv;\n"
33539 "   int64_t max_pv;\n"
33540 "   int64_t pv_count;\n"
33541 "   int64_t lv_count;\n"
33542 "   int64_t snap_count;\n"
33543 "   int64_t vg_seqno;\n"
33544 "   char *vg_tags;\n"
33545 "   int64_t vg_mda_count;\n"
33546 "   uint64_t vg_mda_free;\n"
33547 " };\n"
33548 " \n"
33549 msgstr ""
33550
33551 #. type: verbatim
33552 #: ../src/guestfs-structs.pod:69
33553 #, no-wrap
33554 msgid ""
33555 " struct guestfs_lvm_vg_list {\n"
33556 "   uint32_t len; /* Number of elements in list. */\n"
33557 "   struct guestfs_lvm_vg *val; /* Elements. */\n"
33558 " };\n"
33559 " \n"
33560 msgstr ""
33561
33562 #. type: verbatim
33563 #: ../src/guestfs-structs.pod:74
33564 #, no-wrap
33565 msgid ""
33566 " void guestfs_free_lvm_vg (struct guestfs_free_lvm_vg *);\n"
33567 " void guestfs_free_lvm_vg_list (struct guestfs_free_lvm_vg_list *);\n"
33568 "\n"
33569 msgstr ""
33570
33571 #. type: =head2
33572 #: ../src/guestfs-structs.pod:77
33573 msgid "guestfs_lvm_lv"
33574 msgstr ""
33575
33576 #. type: verbatim
33577 #: ../src/guestfs-structs.pod:79
33578 #, no-wrap
33579 msgid ""
33580 " struct guestfs_lvm_lv {\n"
33581 "   char *lv_name;\n"
33582 "   /* The next field is NOT nul-terminated, be careful when printing it: */\n"
33583 "   char lv_uuid[32];\n"
33584 "   char *lv_attr;\n"
33585 "   int64_t lv_major;\n"
33586 "   int64_t lv_minor;\n"
33587 "   int64_t lv_kernel_major;\n"
33588 "   int64_t lv_kernel_minor;\n"
33589 "   uint64_t lv_size;\n"
33590 "   int64_t seg_count;\n"
33591 "   char *origin;\n"
33592 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33593 "   float snap_percent;\n"
33594 "   /* The next field is [0..100] or -1 meaning 'not present': */\n"
33595 "   float copy_percent;\n"
33596 "   char *move_pv;\n"
33597 "   char *lv_tags;\n"
33598 "   char *mirror_log;\n"
33599 "   char *modules;\n"
33600 " };\n"
33601 " \n"
33602 msgstr ""
33603
33604 #. type: verbatim
33605 #: ../src/guestfs-structs.pod:101
33606 #, no-wrap
33607 msgid ""
33608 " struct guestfs_lvm_lv_list {\n"
33609 "   uint32_t len; /* Number of elements in list. */\n"
33610 "   struct guestfs_lvm_lv *val; /* Elements. */\n"
33611 " };\n"
33612 " \n"
33613 msgstr ""
33614
33615 #. type: verbatim
33616 #: ../src/guestfs-structs.pod:106
33617 #, no-wrap
33618 msgid ""
33619 " void guestfs_free_lvm_lv (struct guestfs_free_lvm_lv *);\n"
33620 " void guestfs_free_lvm_lv_list (struct guestfs_free_lvm_lv_list *);\n"
33621 "\n"
33622 msgstr ""
33623
33624 #. type: verbatim
33625 #: ../src/guestfs-structs.pod:111
33626 #, no-wrap
33627 msgid ""
33628 " struct guestfs_stat {\n"
33629 "   int64_t dev;\n"
33630 "   int64_t ino;\n"
33631 "   int64_t mode;\n"
33632 "   int64_t nlink;\n"
33633 "   int64_t uid;\n"
33634 "   int64_t gid;\n"
33635 "   int64_t rdev;\n"
33636 "   int64_t size;\n"
33637 "   int64_t blksize;\n"
33638 "   int64_t blocks;\n"
33639 "   int64_t atime;\n"
33640 "   int64_t mtime;\n"
33641 "   int64_t ctime;\n"
33642 " };\n"
33643 " \n"
33644 msgstr ""
33645
33646 #. type: verbatim
33647 #: ../src/guestfs-structs.pod:127
33648 #, no-wrap
33649 msgid ""
33650 " struct guestfs_stat_list {\n"
33651 "   uint32_t len; /* Number of elements in list. */\n"
33652 "   struct guestfs_stat *val; /* Elements. */\n"
33653 " };\n"
33654 " \n"
33655 msgstr ""
33656
33657 #. type: verbatim
33658 #: ../src/guestfs-structs.pod:132
33659 #, no-wrap
33660 msgid ""
33661 " void guestfs_free_stat (struct guestfs_free_stat *);\n"
33662 " void guestfs_free_stat_list (struct guestfs_free_stat_list *);\n"
33663 "\n"
33664 msgstr ""
33665
33666 #. type: verbatim
33667 #: ../src/guestfs-structs.pod:137
33668 #, no-wrap
33669 msgid ""
33670 " struct guestfs_statvfs {\n"
33671 "   int64_t bsize;\n"
33672 "   int64_t frsize;\n"
33673 "   int64_t blocks;\n"
33674 "   int64_t bfree;\n"
33675 "   int64_t bavail;\n"
33676 "   int64_t files;\n"
33677 "   int64_t ffree;\n"
33678 "   int64_t favail;\n"
33679 "   int64_t fsid;\n"
33680 "   int64_t flag;\n"
33681 "   int64_t namemax;\n"
33682 " };\n"
33683 " \n"
33684 msgstr ""
33685
33686 #. type: verbatim
33687 #: ../src/guestfs-structs.pod:151
33688 #, no-wrap
33689 msgid ""
33690 " struct guestfs_statvfs_list {\n"
33691 "   uint32_t len; /* Number of elements in list. */\n"
33692 "   struct guestfs_statvfs *val; /* Elements. */\n"
33693 " };\n"
33694 " \n"
33695 msgstr ""
33696
33697 #. type: verbatim
33698 #: ../src/guestfs-structs.pod:156
33699 #, no-wrap
33700 msgid ""
33701 " void guestfs_free_statvfs (struct guestfs_free_statvfs *);\n"
33702 " void guestfs_free_statvfs_list (struct guestfs_free_statvfs_list *);\n"
33703 "\n"
33704 msgstr ""
33705
33706 #. type: =head2
33707 #: ../src/guestfs-structs.pod:159
33708 msgid "guestfs_dirent"
33709 msgstr ""
33710
33711 #. type: verbatim
33712 #: ../src/guestfs-structs.pod:161
33713 #, no-wrap
33714 msgid ""
33715 " struct guestfs_dirent {\n"
33716 "   int64_t ino;\n"
33717 "   char ftyp;\n"
33718 "   char *name;\n"
33719 " };\n"
33720 " \n"
33721 msgstr ""
33722
33723 #. type: verbatim
33724 #: ../src/guestfs-structs.pod:167
33725 #, no-wrap
33726 msgid ""
33727 " struct guestfs_dirent_list {\n"
33728 "   uint32_t len; /* Number of elements in list. */\n"
33729 "   struct guestfs_dirent *val; /* Elements. */\n"
33730 " };\n"
33731 " \n"
33732 msgstr ""
33733
33734 #. type: verbatim
33735 #: ../src/guestfs-structs.pod:172
33736 #, no-wrap
33737 msgid ""
33738 " void guestfs_free_dirent (struct guestfs_free_dirent *);\n"
33739 " void guestfs_free_dirent_list (struct guestfs_free_dirent_list *);\n"
33740 "\n"
33741 msgstr ""
33742
33743 #. type: verbatim
33744 #: ../src/guestfs-structs.pod:177
33745 #, no-wrap
33746 msgid ""
33747 " struct guestfs_version {\n"
33748 "   int64_t major;\n"
33749 "   int64_t minor;\n"
33750 "   int64_t release;\n"
33751 "   char *extra;\n"
33752 " };\n"
33753 " \n"
33754 msgstr ""
33755
33756 #. type: verbatim
33757 #: ../src/guestfs-structs.pod:184
33758 #, no-wrap
33759 msgid ""
33760 " struct guestfs_version_list {\n"
33761 "   uint32_t len; /* Number of elements in list. */\n"
33762 "   struct guestfs_version *val; /* Elements. */\n"
33763 " };\n"
33764 " \n"
33765 msgstr ""
33766
33767 #. type: verbatim
33768 #: ../src/guestfs-structs.pod:189
33769 #, no-wrap
33770 msgid ""
33771 " void guestfs_free_version (struct guestfs_free_version *);\n"
33772 " void guestfs_free_version_list (struct guestfs_free_version_list *);\n"
33773 "\n"
33774 msgstr ""
33775
33776 #. type: =head2
33777 #: ../src/guestfs-structs.pod:192
33778 msgid "guestfs_xattr"
33779 msgstr ""
33780
33781 #. type: verbatim
33782 #: ../src/guestfs-structs.pod:194
33783 #, no-wrap
33784 msgid ""
33785 " struct guestfs_xattr {\n"
33786 "   char *attrname;\n"
33787 "   /* The next two fields describe a byte array. */\n"
33788 "   uint32_t attrval_len;\n"
33789 "   char *attrval;\n"
33790 " };\n"
33791 " \n"
33792 msgstr ""
33793
33794 #. type: verbatim
33795 #: ../src/guestfs-structs.pod:201
33796 #, no-wrap
33797 msgid ""
33798 " struct guestfs_xattr_list {\n"
33799 "   uint32_t len; /* Number of elements in list. */\n"
33800 "   struct guestfs_xattr *val; /* Elements. */\n"
33801 " };\n"
33802 " \n"
33803 msgstr ""
33804
33805 #. type: verbatim
33806 #: ../src/guestfs-structs.pod:206
33807 #, no-wrap
33808 msgid ""
33809 " void guestfs_free_xattr (struct guestfs_free_xattr *);\n"
33810 " void guestfs_free_xattr_list (struct guestfs_free_xattr_list *);\n"
33811 "\n"
33812 msgstr ""
33813
33814 #. type: =head2
33815 #: ../src/guestfs-structs.pod:209
33816 msgid "guestfs_inotify_event"
33817 msgstr ""
33818
33819 #. type: verbatim
33820 #: ../src/guestfs-structs.pod:211
33821 #, no-wrap
33822 msgid ""
33823 " struct guestfs_inotify_event {\n"
33824 "   int64_t in_wd;\n"
33825 "   uint32_t in_mask;\n"
33826 "   uint32_t in_cookie;\n"
33827 "   char *in_name;\n"
33828 " };\n"
33829 " \n"
33830 msgstr ""
33831
33832 #. type: verbatim
33833 #: ../src/guestfs-structs.pod:218
33834 #, no-wrap
33835 msgid ""
33836 " struct guestfs_inotify_event_list {\n"
33837 "   uint32_t len; /* Number of elements in list. */\n"
33838 "   struct guestfs_inotify_event *val; /* Elements. */\n"
33839 " };\n"
33840 " \n"
33841 msgstr ""
33842
33843 #. type: verbatim
33844 #: ../src/guestfs-structs.pod:223
33845 #, no-wrap
33846 msgid ""
33847 " void guestfs_free_inotify_event (struct guestfs_free_inotify_event *);\n"
33848 " void guestfs_free_inotify_event_list (struct guestfs_free_inotify_event_list *);\n"
33849 "\n"
33850 msgstr ""
33851
33852 #. type: =head2
33853 #: ../src/guestfs-structs.pod:226
33854 msgid "guestfs_partition"
33855 msgstr ""
33856
33857 #. type: verbatim
33858 #: ../src/guestfs-structs.pod:228
33859 #, no-wrap
33860 msgid ""
33861 " struct guestfs_partition {\n"
33862 "   int32_t part_num;\n"
33863 "   uint64_t part_start;\n"
33864 "   uint64_t part_end;\n"
33865 "   uint64_t part_size;\n"
33866 " };\n"
33867 " \n"
33868 msgstr ""
33869
33870 #. type: verbatim
33871 #: ../src/guestfs-structs.pod:235
33872 #, no-wrap
33873 msgid ""
33874 " struct guestfs_partition_list {\n"
33875 "   uint32_t len; /* Number of elements in list. */\n"
33876 "   struct guestfs_partition *val; /* Elements. */\n"
33877 " };\n"
33878 " \n"
33879 msgstr ""
33880
33881 #. type: verbatim
33882 #: ../src/guestfs-structs.pod:240
33883 #, no-wrap
33884 msgid ""
33885 " void guestfs_free_partition (struct guestfs_free_partition *);\n"
33886 " void guestfs_free_partition_list (struct guestfs_free_partition_list *);\n"
33887 "\n"
33888 msgstr ""
33889
33890 #. type: =head2
33891 #: ../src/guestfs-structs.pod:243
33892 msgid "guestfs_application"
33893 msgstr ""
33894
33895 #. type: verbatim
33896 #: ../src/guestfs-structs.pod:245
33897 #, no-wrap
33898 msgid ""
33899 " struct guestfs_application {\n"
33900 "   char *app_name;\n"
33901 "   char *app_display_name;\n"
33902 "   int32_t app_epoch;\n"
33903 "   char *app_version;\n"
33904 "   char *app_release;\n"
33905 "   char *app_install_path;\n"
33906 "   char *app_trans_path;\n"
33907 "   char *app_publisher;\n"
33908 "   char *app_url;\n"
33909 "   char *app_source_package;\n"
33910 "   char *app_summary;\n"
33911 "   char *app_description;\n"
33912 " };\n"
33913 " \n"
33914 msgstr ""
33915
33916 #. type: verbatim
33917 #: ../src/guestfs-structs.pod:260
33918 #, no-wrap
33919 msgid ""
33920 " struct guestfs_application_list {\n"
33921 "   uint32_t len; /* Number of elements in list. */\n"
33922 "   struct guestfs_application *val; /* Elements. */\n"
33923 " };\n"
33924 " \n"
33925 msgstr ""
33926
33927 #. type: verbatim
33928 #: ../src/guestfs-structs.pod:265
33929 #, no-wrap
33930 msgid ""
33931 " void guestfs_free_application (struct guestfs_free_application *);\n"
33932 " void guestfs_free_application_list (struct guestfs_free_application_list *);\n"
33933 "\n"
33934 msgstr ""
33935
33936 #. type: textblock
33937 #: ../src/guestfs.pod:5
33938 msgid "guestfs - Library for accessing and modifying virtual machine images"
33939 msgstr ""
33940 "guestfs — бібліотека для доступу та внесення змін до образів віртуальних "
33941 "машин"
33942
33943 #. type: verbatim
33944 #: ../src/guestfs.pod:11
33945 #, no-wrap
33946 msgid ""
33947 " guestfs_h *g = guestfs_create ();\n"
33948 " guestfs_add_drive (g, \"guest.img\");\n"
33949 " guestfs_launch (g);\n"
33950 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33951 " guestfs_touch (g, \"/hello\");\n"
33952 " guestfs_umount (g, \"/\");\n"
33953 " guestfs_close (g);\n"
33954 "\n"
33955 msgstr ""
33956 " guestfs_h *g = guestfs_create ();\n"
33957 " guestfs_add_drive (g, \"guest.img\");\n"
33958 " guestfs_launch (g);\n"
33959 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
33960 " guestfs_touch (g, \"/hello\");\n"
33961 " guestfs_umount (g, \"/\");\n"
33962 " guestfs_close (g);\n"
33963 "\n"
33964
33965 #. type: textblock
33966 #: ../src/guestfs.pod:25
33967 msgid ""
33968 "Libguestfs is a library for accessing and modifying guest disk images.  "
33969 "Amongst the things this is good for: making batch configuration changes to "
33970 "guests, getting disk used/free statistics (see also: virt-df), migrating "
33971 "between virtualization systems (see also: virt-p2v), performing partial "
33972 "backups, performing partial guest clones, cloning guests and changing "
33973 "registry/UUID/hostname info, and much else besides."
33974 msgstr ""
33975
33976 #. type: textblock
33977 #: ../src/guestfs.pod:33
33978 msgid ""
33979 "Libguestfs uses Linux kernel and qemu code, and can access any type of guest "
33980 "filesystem that Linux and qemu can, including but not limited to: ext2/3/4, "
33981 "btrfs, FAT and NTFS, LVM, many different disk partition schemes, qcow, "
33982 "qcow2, vmdk."
33983 msgstr ""
33984
33985 #. type: textblock
33986 #: ../src/guestfs.pod:38
33987 msgid ""
33988 "Libguestfs provides ways to enumerate guest storage (eg. partitions, LVs, "
33989 "what filesystem is in each LV, etc.).  It can also run commands in the "
33990 "context of the guest.  Also you can access filesystems over FUSE."
33991 msgstr ""
33992
33993 #. type: textblock
33994 #: ../src/guestfs.pod:43
33995 msgid ""
33996 "Libguestfs is a library that can be linked with C and C++ management "
33997 "programs (or management programs written in OCaml, Perl, Python, Ruby, Java, "
33998 "PHP, Erlang, Haskell or C#).  You can also use it from shell scripts or the "
33999 "command line."
34000 msgstr ""
34001
34002 #. type: textblock
34003 #: ../src/guestfs.pod:48
34004 msgid ""
34005 "You don't need to be root to use libguestfs, although obviously you do need "
34006 "enough permissions to access the disk images."
34007 msgstr ""
34008
34009 #. type: textblock
34010 #: ../src/guestfs.pod:51
34011 msgid ""
34012 "Libguestfs is a large API because it can do many things.  For a gentle "
34013 "introduction, please read the L</API OVERVIEW> section next."
34014 msgstr ""
34015
34016 #. type: textblock
34017 #: ../src/guestfs.pod:54
34018 msgid ""
34019 "There are also some example programs in the L<guestfs-examples(3)> manual "
34020 "page."
34021 msgstr ""
34022
34023 #. type: =head1
34024 #: ../src/guestfs.pod:57
34025 msgid "API OVERVIEW"
34026 msgstr "ОГЛЯД API"
34027
34028 #. type: textblock
34029 #: ../src/guestfs.pod:59
34030 msgid ""
34031 "This section provides a gentler overview of the libguestfs API.  We also try "
34032 "to group API calls together, where that may not be obvious from reading "
34033 "about the individual calls in the main section of this manual."
34034 msgstr ""
34035
34036 #. type: =head2
34037 #: ../src/guestfs.pod:64
34038 msgid "HANDLES"
34039 msgstr "ОБРОБНИКИ"
34040
34041 #. type: textblock
34042 #: ../src/guestfs.pod:66
34043 msgid ""
34044 "Before you can use libguestfs calls, you have to create a handle.  Then you "
34045 "must add at least one disk image to the handle, followed by launching the "
34046 "handle, then performing whatever operations you want, and finally closing "
34047 "the handle.  By convention we use the single letter C<g> for the name of the "
34048 "handle variable, although of course you can use any name you want."
34049 msgstr ""
34050
34051 #. type: textblock
34052 #: ../src/guestfs.pod:73
34053 msgid "The general structure of all libguestfs-using programs looks like this:"
34054 msgstr ""
34055
34056 #. type: verbatim
34057 #: ../src/guestfs.pod:76
34058 #, no-wrap
34059 msgid ""
34060 " guestfs_h *g = guestfs_create ();\n"
34061 " \n"
34062 msgstr ""
34063 " guestfs_h *g = guestfs_create ();\n"
34064 " \n"
34065
34066 #. type: verbatim
34067 #: ../src/guestfs.pod:78
34068 #, no-wrap
34069 msgid ""
34070 " /* Call guestfs_add_drive additional times if there are\n"
34071 "  * multiple disk images.\n"
34072 "  */\n"
34073 " guestfs_add_drive (g, \"guest.img\");\n"
34074 " \n"
34075 msgstr ""
34076
34077 #. type: verbatim
34078 #: ../src/guestfs.pod:83
34079 #, no-wrap
34080 msgid ""
34081 " /* Most manipulation calls won't work until you've launched\n"
34082 "  * the handle 'g'.  You have to do this _after_ adding drives\n"
34083 "  * and _before_ other commands.\n"
34084 "  */\n"
34085 " guestfs_launch (g);\n"
34086 " \n"
34087 msgstr ""
34088
34089 #. type: verbatim
34090 #: ../src/guestfs.pod:89
34091 #, no-wrap
34092 msgid ""
34093 " /* Now you can examine what partitions, LVs etc are available.\n"
34094 "  */\n"
34095 " char **partitions = guestfs_list_partitions (g);\n"
34096 " char **logvols = guestfs_lvs (g);\n"
34097 " \n"
34098 msgstr ""
34099 " /* Тепер можна перевірити, які розділи, логічні томи тощо доступні.\n"
34100 "  */\n"
34101 " char **partitions = guestfs_list_partitions (g);\n"
34102 " char **logvols = guestfs_lvs (g);\n"
34103 " \n"
34104
34105 #. type: verbatim
34106 #: ../src/guestfs.pod:94
34107 #, no-wrap
34108 msgid ""
34109 " /* To access a filesystem in the image, you must mount it.\n"
34110 "  */\n"
34111 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34112 " \n"
34113 msgstr ""
34114 " /* Щоб отримати доступ до файлової системи на образі, вам слід його змонтувати.\n"
34115 "  */\n"
34116 " guestfs_mount (g, \"/dev/sda1\", \"/\");\n"
34117 " \n"
34118
34119 #. type: verbatim
34120 #: ../src/guestfs.pod:98
34121 #, no-wrap
34122 msgid ""
34123 " /* Now you can perform filesystem actions on the guest\n"
34124 "  * disk image.\n"
34125 "  */\n"
34126 " guestfs_touch (g, \"/hello\");\n"
34127 " \n"
34128 msgstr ""
34129
34130 #. type: verbatim
34131 #: ../src/guestfs.pod:103
34132 #, no-wrap
34133 msgid ""
34134 " /* This is only needed for libguestfs < 1.5.24.  Since then\n"
34135 "  * it is done automatically when you close the handle.  See\n"
34136 "  * discussion of autosync in this page.\n"
34137 "  */\n"
34138 " guestfs_sync (g);\n"
34139 " \n"
34140 msgstr ""
34141
34142 #. type: verbatim
34143 #: ../src/guestfs.pod:109
34144 #, no-wrap
34145 msgid ""
34146 " /* Close the handle 'g'. */\n"
34147 " guestfs_close (g);\n"
34148 "\n"
34149 msgstr ""
34150 " /* Закрити дескриптор 'g'. */\n"
34151 " guestfs_close (g);\n"
34152 "\n"
34153
34154 #. type: textblock
34155 #: ../src/guestfs.pod:112
34156 msgid ""
34157 "The code above doesn't include any error checking.  In real code you should "
34158 "check return values carefully for errors.  In general all functions that "
34159 "return integers return C<-1> on error, and all functions that return "
34160 "pointers return C<NULL> on error.  See section L</ERROR HANDLING> below for "
34161 "how to handle errors, and consult the documentation for each function call "
34162 "below to see precisely how they return error indications.  See L<guestfs-"
34163 "examples(3)> for fully worked examples."
34164 msgstr ""
34165
34166 #. type: =head2
34167 #: ../src/guestfs.pod:121
34168 msgid "DISK IMAGES"
34169 msgstr "ОБРАЗИ ДИСКІВ"
34170
34171 #. type: textblock
34172 #: ../src/guestfs.pod:123
34173 msgid ""
34174 "The image filename (C<\"guest.img\"> in the example above) could be a disk "
34175 "image from a virtual machine, a L<dd(1)> copy of a physical hard disk, an "
34176 "actual block device, or simply an empty file of zeroes that you have created "
34177 "through L<posix_fallocate(3)>.  Libguestfs lets you do useful things to all "
34178 "of these."
34179 msgstr ""
34180
34181 #. type: textblock
34182 #: ../src/guestfs.pod:129
34183 msgid ""
34184 "The call you should use in modern code for adding drives is L</"
34185 "guestfs_add_drive_opts>.  To add a disk image, allowing writes, and "
34186 "specifying that the format is raw, do:"
34187 msgstr ""
34188
34189 #. type: verbatim
34190 #: ../src/guestfs.pod:133
34191 #, no-wrap
34192 msgid ""
34193 " guestfs_add_drive_opts (g, filename,\n"
34194 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34195 "                         -1);\n"
34196 "\n"
34197 msgstr ""
34198 " guestfs_add_drive_opts (g, filename,\n"
34199 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34200 "                         -1);\n"
34201 "\n"
34202
34203 #. type: textblock
34204 #: ../src/guestfs.pod:137
34205 msgid "You can add a disk read-only using:"
34206 msgstr "Ви можете додати диск у режимі лише читання:"
34207
34208 #. type: verbatim
34209 #: ../src/guestfs.pod:139
34210 #, no-wrap
34211 msgid ""
34212 " guestfs_add_drive_opts (g, filename,\n"
34213 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34214 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34215 "                         -1);\n"
34216 "\n"
34217 msgstr ""
34218 " guestfs_add_drive_opts (g, filename,\n"
34219 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"raw\",\n"
34220 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
34221 "                         -1);\n"
34222 "\n"
34223
34224 #. type: textblock
34225 #: ../src/guestfs.pod:144
34226 msgid ""
34227 "or by calling the older function L</guestfs_add_drive_ro>.  In either case "
34228 "libguestfs won't modify the file."
34229 msgstr ""
34230
34231 #. type: textblock
34232 #: ../src/guestfs.pod:147
34233 msgid ""
34234 "Be extremely cautious if the disk image is in use, eg. if it is being used "
34235 "by a virtual machine.  Adding it read-write will almost certainly cause disk "
34236 "corruption, but adding it read-only is safe."
34237 msgstr ""
34238
34239 #. type: textblock
34240 #: ../src/guestfs.pod:151
34241 msgid ""
34242 "You must add at least one disk image, and you may add multiple disk images.  "
34243 "In the API, the disk images are usually referred to as C</dev/sda> (for the "
34244 "first one you added), C</dev/sdb> (for the second one you added), etc."
34245 msgstr ""
34246
34247 #. type: textblock
34248 #: ../src/guestfs.pod:156
34249 msgid ""
34250 "Once L</guestfs_launch> has been called you cannot add any more images.  You "
34251 "can call L</guestfs_list_devices> to get a list of the device names, in the "
34252 "order that you added them.  See also L</BLOCK DEVICE NAMING> below."
34253 msgstr ""
34254
34255 #. type: =head2
34256 #: ../src/guestfs.pod:161
34257 msgid "MOUNTING"
34258 msgstr "МОНТУВАННЯ"
34259
34260 #. type: textblock
34261 #: ../src/guestfs.pod:163
34262 msgid ""
34263 "Before you can read or write files, create directories and so on in a disk "
34264 "image that contains filesystems, you have to mount those filesystems using "
34265 "L</guestfs_mount_options> or L</guestfs_mount_ro>.  If you already know that "
34266 "a disk image contains (for example) one partition with a filesystem on that "
34267 "partition, then you can mount it directly:"
34268 msgstr ""
34269
34270 #. type: verbatim
34271 #: ../src/guestfs.pod:170
34272 #, no-wrap
34273 msgid ""
34274 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34275 "\n"
34276 msgstr ""
34277 " guestfs_mount_options (g, \"\", \"/dev/sda1\", \"/\");\n"
34278 "\n"
34279
34280 #. type: textblock
34281 #: ../src/guestfs.pod:172
34282 msgid ""
34283 "where C</dev/sda1> means literally the first partition (C<1>) of the first "
34284 "disk image that we added (C</dev/sda>).  If the disk contains Linux LVM2 "
34285 "logical volumes you could refer to those instead (eg. C</dev/VG/LV>).  Note "
34286 "that these are libguestfs virtual devices, and are nothing to do with host "
34287 "devices."
34288 msgstr ""
34289
34290 #. type: textblock
34291 #: ../src/guestfs.pod:178
34292 msgid ""
34293 "If you are given a disk image and you don't know what it contains then you "
34294 "have to find out.  Libguestfs can do that too: use L</"
34295 "guestfs_list_partitions> and L</guestfs_lvs> to list possible partitions and "
34296 "LVs, and either try mounting each to see what is mountable, or else examine "
34297 "them with L</guestfs_vfs_type> or L</guestfs_file>.  To list just "
34298 "filesystems, use L</guestfs_list_filesystems>."
34299 msgstr ""
34300
34301 #. type: textblock
34302 #: ../src/guestfs.pod:186
34303 msgid ""
34304 "Libguestfs also has a set of APIs for inspection of unknown disk images (see "
34305 "L</INSPECTION> below).  But you might find it easier to look at higher level "
34306 "programs built on top of libguestfs, in particular L<virt-inspector(1)>."
34307 msgstr ""
34308
34309 #. type: textblock
34310 #: ../src/guestfs.pod:191
34311 msgid ""
34312 "To mount a filesystem read-only, use L</guestfs_mount_ro>.  There are "
34313 "several other variations of the C<guestfs_mount_*> call."
34314 msgstr ""
34315
34316 #. type: =head2
34317 #: ../src/guestfs.pod:194
34318 msgid "FILESYSTEM ACCESS AND MODIFICATION"
34319 msgstr "ДОСТУП ТА ВНЕСЕННЯ ЗМІН ДО ФАЙЛОВИХ СИСТЕМ"
34320
34321 #. type: textblock
34322 #: ../src/guestfs.pod:196
34323 msgid ""
34324 "The majority of the libguestfs API consists of fairly low-level calls for "
34325 "accessing and modifying the files, directories, symlinks etc on mounted "
34326 "filesystems.  There are over a hundred such calls which you can find listed "
34327 "in detail below in this man page, and we don't even pretend to cover them "
34328 "all in this overview."
34329 msgstr ""
34330
34331 #. type: textblock
34332 #: ../src/guestfs.pod:202
34333 msgid ""
34334 "Specify filenames as full paths, starting with C<\"/\"> and including the "
34335 "mount point."
34336 msgstr ""
34337 "Вказуйте адреси і назви файлів повністю, починаючи з C<\"/\">, разом з "
34338 "точкою монтування."
34339
34340 #. type: textblock
34341 #: ../src/guestfs.pod:205
34342 msgid ""
34343 "For example, if you mounted a filesystem at C<\"/\"> and you want to read "
34344 "the file called C<\"etc/passwd\"> then you could do:"
34345 msgstr ""
34346 "Наприклад, якщо вами змонтовано файлову систему до C<\"/\">, і ви бажаєте "
34347 "виконати читання файла з назвою C<\"etc/passwd\">, ви можете скористатися "
34348 "таким кодом:"
34349
34350 #. type: verbatim
34351 #: ../src/guestfs.pod:208
34352 #, no-wrap
34353 msgid ""
34354 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34355 "\n"
34356 msgstr ""
34357 " char *data = guestfs_cat (g, \"/etc/passwd\");\n"
34358 "\n"
34359
34360 #. type: textblock
34361 #: ../src/guestfs.pod:210
34362 msgid ""
34363 "This would return C<data> as a newly allocated buffer containing the full "
34364 "content of that file (with some conditions: see also L</DOWNLOADING> below), "
34365 "or C<NULL> if there was an error."
34366 msgstr ""
34367
34368 #. type: textblock
34369 #: ../src/guestfs.pod:214
34370 msgid ""
34371 "As another example, to create a top-level directory on that filesystem "
34372 "called C<\"var\"> you would do:"
34373 msgstr ""
34374
34375 #. type: verbatim
34376 #: ../src/guestfs.pod:217
34377 #, no-wrap
34378 msgid ""
34379 " guestfs_mkdir (g, \"/var\");\n"
34380 "\n"
34381 msgstr ""
34382 " guestfs_mkdir (g, \"/var\");\n"
34383 "\n"
34384
34385 #. type: textblock
34386 #: ../src/guestfs.pod:219
34387 msgid "To create a symlink you could do:"
34388 msgstr "Щоб створити символічне посилання, ви можете скористатися таким кодом:"
34389
34390 #. type: verbatim
34391 #: ../src/guestfs.pod:221
34392 #, no-wrap
34393 msgid ""
34394 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34395 "               \"/etc/rc3.d/S30portmap\");\n"
34396 "\n"
34397 msgstr ""
34398 " guestfs_ln_s (g, \"/etc/init.d/portmap\",\n"
34399 "               \"/etc/rc3.d/S30portmap\");\n"
34400 "\n"
34401
34402 #. type: textblock
34403 #: ../src/guestfs.pod:224
34404 msgid ""
34405 "Libguestfs will reject attempts to use relative paths and there is no "
34406 "concept of a current working directory."
34407 msgstr ""
34408
34409 #. type: textblock
34410 #: ../src/guestfs.pod:227
34411 msgid ""
34412 "Libguestfs can return errors in many situations: for example if the "
34413 "filesystem isn't writable, or if a file or directory that you requested "
34414 "doesn't exist.  If you are using the C API (documented here)  you have to "
34415 "check for those error conditions after each call.  (Other language bindings "
34416 "turn these errors into exceptions)."
34417 msgstr ""
34418
34419 #. type: textblock
34420 #: ../src/guestfs.pod:233
34421 msgid ""
34422 "File writes are affected by the per-handle umask, set by calling L</"
34423 "guestfs_umask> and defaulting to 022.  See L</UMASK>."
34424 msgstr ""
34425
34426 #. type: =head2
34427 #: ../src/guestfs.pod:236
34428 msgid "PARTITIONING"
34429 msgstr "ПОДІЛ НА РОЗДІЛИ"
34430
34431 #. type: textblock
34432 #: ../src/guestfs.pod:238
34433 msgid ""
34434 "Libguestfs contains API calls to read, create and modify partition tables on "
34435 "disk images."
34436 msgstr ""
34437
34438 #. type: textblock
34439 #: ../src/guestfs.pod:241
34440 msgid ""
34441 "In the common case where you want to create a single partition covering the "
34442 "whole disk, you should use the L</guestfs_part_disk> call:"
34443 msgstr ""
34444
34445 #. type: verbatim
34446 #: ../src/guestfs.pod:245
34447 #, no-wrap
34448 msgid ""
34449 " const char *parttype = \"mbr\";\n"
34450 " if (disk_is_larger_than_2TB)\n"
34451 "   parttype = \"gpt\";\n"
34452 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
34453 "\n"
34454 msgstr ""
34455 " const char *parttype = \"mbr\";\n"
34456 " if (disk_is_larger_than_2TB)\n"
34457 "   parttype = \"gpt\";\n"
34458 " guestfs_part_disk (g, \"/dev/sda\", parttype);\n"
34459 "\n"
34460
34461 #. type: textblock
34462 #: ../src/guestfs.pod:250
34463 msgid ""
34464 "Obviously this effectively wipes anything that was on that disk image before."
34465 msgstr ""
34466
34467 #. type: =head2
34468 #: ../src/guestfs.pod:253
34469 msgid "LVM2"
34470 msgstr "LVM2"
34471
34472 #. type: textblock
34473 #: ../src/guestfs.pod:255
34474 msgid ""
34475 "Libguestfs provides access to a large part of the LVM2 API, such as L</"
34476 "guestfs_lvcreate> and L</guestfs_vgremove>.  It won't make much sense unless "
34477 "you familiarize yourself with the concepts of physical volumes, volume "
34478 "groups and logical volumes."
34479 msgstr ""
34480
34481 #. type: textblock
34482 #: ../src/guestfs.pod:260
34483 msgid ""
34484 "This author strongly recommends reading the LVM HOWTO, online at L<http://"
34485 "tldp.org/HOWTO/LVM-HOWTO/>."
34486 msgstr ""
34487
34488 #. type: =head2
34489 #: ../src/guestfs.pod:263
34490 msgid "DOWNLOADING"
34491 msgstr "ОТРИМАННЯ ДАНИХ"
34492
34493 #. type: textblock
34494 #: ../src/guestfs.pod:265
34495 msgid ""
34496 "Use L</guestfs_cat> to download small, text only files.  This call is "
34497 "limited to files which are less than 2 MB and which cannot contain any ASCII "
34498 "NUL (C<\\0>) characters.  However the API is very simple to use."
34499 msgstr ""
34500
34501 #. type: textblock
34502 #: ../src/guestfs.pod:269
34503 msgid ""
34504 "L</guestfs_read_file> can be used to read files which contain arbitrary 8 "
34505 "bit data, since it returns a (pointer, size) pair.  However it is still "
34506 "limited to \"small\" files, less than 2 MB."
34507 msgstr ""
34508
34509 #. type: textblock
34510 #: ../src/guestfs.pod:273
34511 msgid ""
34512 "L</guestfs_download> can be used to download any file, with no limits on "
34513 "content or size (even files larger than 4 GB)."
34514 msgstr ""
34515
34516 #. type: textblock
34517 #: ../src/guestfs.pod:276
34518 msgid ""
34519 "To download multiple files, see L</guestfs_tar_out> and L</guestfs_tgz_out>."
34520 msgstr ""
34521
34522 #. type: =head2
34523 #: ../src/guestfs.pod:279
34524 msgid "UPLOADING"
34525 msgstr "ВИВАНТАЖЕННЯ"
34526
34527 #. type: textblock
34528 #: ../src/guestfs.pod:281
34529 msgid ""
34530 "It's often the case that you want to write a file or files to the disk image."
34531 msgstr ""
34532
34533 #. type: textblock
34534 #: ../src/guestfs.pod:284
34535 msgid ""
34536 "To write a small file with fixed content, use L</guestfs_write>.  To create "
34537 "a file of all zeroes, use L</guestfs_truncate_size> (sparse) or L</"
34538 "guestfs_fallocate64> (with all disk blocks allocated).  There are a variety "
34539 "of other functions for creating test files, for example L</guestfs_fill> and "
34540 "L</guestfs_fill_pattern>."
34541 msgstr ""
34542
34543 #. type: textblock
34544 #: ../src/guestfs.pod:290
34545 msgid ""
34546 "To upload a single file, use L</guestfs_upload>.  This call has no limits on "
34547 "file content or size (even files larger than 4 GB)."
34548 msgstr ""
34549
34550 #. type: textblock
34551 #: ../src/guestfs.pod:293
34552 msgid ""
34553 "To upload multiple files, see L</guestfs_tar_in> and L</guestfs_tgz_in>."
34554 msgstr ""
34555
34556 #. type: textblock
34557 #: ../src/guestfs.pod:295
34558 msgid ""
34559 "However the fastest way to upload I<large numbers of arbitrary files> is to "
34560 "turn them into a squashfs or CD ISO (see L<mksquashfs(8)> and L<mkisofs(8)"
34561 ">), then attach this using L</guestfs_add_drive_ro>.  If you add the drive "
34562 "in a predictable way (eg. adding it last after all other drives) then you "
34563 "can get the device name from L</guestfs_list_devices> and mount it directly "
34564 "using L</guestfs_mount_ro>.  Note that squashfs images are sometimes non-"
34565 "portable between kernel versions, and they don't support labels or UUIDs.  "
34566 "If you want to pre-build an image or you need to mount it using a label or "
34567 "UUID, use an ISO image instead."
34568 msgstr ""
34569
34570 #. type: =head2
34571 #: ../src/guestfs.pod:306
34572 msgid "COPYING"
34573 msgstr "КОПІЮВАННЯ"
34574
34575 #. type: textblock
34576 #: ../src/guestfs.pod:308
34577 msgid ""
34578 "There are various different commands for copying between files and devices "
34579 "and in and out of the guest filesystem.  These are summarised in the table "
34580 "below."
34581 msgstr ""
34582
34583 #. type: =item
34584 #: ../src/guestfs.pod:314
34585 msgid "B<file> to B<file>"
34586 msgstr "B<файл> у B<файл>"
34587
34588 #. type: textblock
34589 #: ../src/guestfs.pod:316
34590 msgid ""
34591 "Use L</guestfs_cp> to copy a single file, or L</guestfs_cp_a> to copy "
34592 "directories recursively."
34593 msgstr ""
34594
34595 #. type: =item
34596 #: ../src/guestfs.pod:319
34597 msgid "B<file or device> to B<file or device>"
34598 msgstr "B<файл або пристрій> у B<файл або пристрій>"
34599
34600 #. type: textblock
34601 #: ../src/guestfs.pod:321
34602 msgid ""
34603 "Use L</guestfs_dd> which efficiently uses L<dd(1)> to copy between files and "
34604 "devices in the guest."
34605 msgstr ""
34606
34607 #. type: textblock
34608 #: ../src/guestfs.pod:324
34609 msgid "Example: duplicate the contents of an LV:"
34610 msgstr ""
34611
34612 #. type: verbatim
34613 #: ../src/guestfs.pod:326
34614 #, no-wrap
34615 msgid ""
34616 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
34617 "\n"
34618 msgstr ""
34619 " guestfs_dd (g, \"/dev/VG/Original\", \"/dev/VG/Copy\");\n"
34620 "\n"
34621
34622 #. type: textblock
34623 #: ../src/guestfs.pod:328
34624 msgid ""
34625 "The destination (C</dev/VG/Copy>) must be at least as large as the source "
34626 "(C</dev/VG/Original>).  To copy less than the whole source device, use L</"
34627 "guestfs_copy_size>."
34628 msgstr ""
34629
34630 #. type: =item
34631 #: ../src/guestfs.pod:332
34632 msgid "B<file on the host> to B<file or device>"
34633 msgstr ""
34634
34635 #. type: textblock
34636 #: ../src/guestfs.pod:334
34637 msgid "Use L</guestfs_upload>.  See L</UPLOADING> above."
34638 msgstr ""
34639
34640 #. type: =item
34641 #: ../src/guestfs.pod:336
34642 msgid "B<file or device> to B<file on the host>"
34643 msgstr ""
34644
34645 #. type: textblock
34646 #: ../src/guestfs.pod:338
34647 msgid "Use L</guestfs_download>.  See L</DOWNLOADING> above."
34648 msgstr ""
34649
34650 #. type: =head2
34651 #: ../src/guestfs.pod:342
34652 msgid "UPLOADING AND DOWNLOADING TO PIPES AND FILE DESCRIPTORS"
34653 msgstr ""
34654
34655 #. type: textblock
34656 #: ../src/guestfs.pod:344
34657 msgid ""
34658 "Calls like L</guestfs_upload>, L</guestfs_download>, L</guestfs_tar_in>, L</"
34659 "guestfs_tar_out> etc appear to only take filenames as arguments, so it "
34660 "appears you can only upload and download to files.  However many Un*x-like "
34661 "hosts let you use the special device files C</dev/stdin>, C</dev/stdout>, C</"
34662 "dev/stderr> and C</dev/fd/N> to read and write from stdin, stdout, stderr, "
34663 "and arbitrary file descriptor N."
34664 msgstr ""
34665
34666 #. type: textblock
34667 #: ../src/guestfs.pod:352
34668 msgid "For example, L<virt-cat(1)> writes its output to stdout by doing:"
34669 msgstr ""
34670
34671 #. type: verbatim
34672 #: ../src/guestfs.pod:355
34673 #, no-wrap
34674 msgid ""
34675 " guestfs_download (g, filename, \"/dev/stdout\");\n"
34676 "\n"
34677 msgstr ""
34678 " guestfs_download (g, filename, \"/dev/stdout\");\n"
34679 "\n"
34680
34681 #. type: textblock
34682 #: ../src/guestfs.pod:357
34683 msgid "and you can write tar output to a file descriptor C<fd> by doing:"
34684 msgstr ""
34685
34686 #. type: verbatim
34687 #: ../src/guestfs.pod:359
34688 #, no-wrap
34689 msgid ""
34690 " char devfd[64];\n"
34691 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34692 " guestfs_tar_out (g, \"/\", devfd);\n"
34693 "\n"
34694 msgstr ""
34695 " char devfd[64];\n"
34696 " snprintf (devfd, sizeof devfd, \"/dev/fd/%d\", fd);\n"
34697 " guestfs_tar_out (g, \"/\", devfd);\n"
34698 "\n"
34699
34700 #. type: =head2
34701 #: ../src/guestfs.pod:363
34702 msgid "LISTING FILES"
34703 msgstr "СПИСКИ ФАЙЛІВ"
34704
34705 #. type: textblock
34706 #: ../src/guestfs.pod:365
34707 msgid ""
34708 "L</guestfs_ll> is just designed for humans to read (mainly when using the "
34709 "L<guestfish(1)>-equivalent command C<ll>)."
34710 msgstr ""
34711
34712 #. type: textblock
34713 #: ../src/guestfs.pod:368
34714 msgid ""
34715 "L</guestfs_ls> is a quick way to get a list of files in a directory from "
34716 "programs, as a flat list of strings."
34717 msgstr ""
34718
34719 #. type: textblock
34720 #: ../src/guestfs.pod:371
34721 msgid ""
34722 "L</guestfs_readdir> is a programmatic way to get a list of files in a "
34723 "directory, plus additional information about each one.  It is more "
34724 "equivalent to using the L<readdir(3)> call on a local filesystem."
34725 msgstr ""
34726
34727 #. type: textblock
34728 #: ../src/guestfs.pod:375
34729 msgid ""
34730 "L</guestfs_find> and L</guestfs_find0> can be used to recursively list files."
34731 msgstr ""
34732
34733 #. type: =head2
34734 #: ../src/guestfs.pod:378
34735 msgid "RUNNING COMMANDS"
34736 msgstr "ВИКОНАННЯ КОМАНД"
34737
34738 #. type: textblock
34739 #: ../src/guestfs.pod:380
34740 msgid ""
34741 "Although libguestfs is primarily an API for manipulating files inside guest "
34742 "images, we also provide some limited facilities for running commands inside "
34743 "guests."
34744 msgstr ""
34745
34746 #. type: textblock
34747 #: ../src/guestfs.pod:384
34748 msgid "There are many limitations to this:"
34749 msgstr ""
34750
34751 #. type: textblock
34752 #: ../src/guestfs.pod:390
34753 msgid ""
34754 "The kernel version that the command runs under will be different from what "
34755 "it expects."
34756 msgstr ""
34757
34758 #. type: textblock
34759 #: ../src/guestfs.pod:395
34760 msgid ""
34761 "If the command needs to communicate with daemons, then most likely they "
34762 "won't be running."
34763 msgstr ""
34764
34765 #. type: textblock
34766 #: ../src/guestfs.pod:400
34767 msgid "The command will be running in limited memory."
34768 msgstr ""
34769
34770 #. type: textblock
34771 #: ../src/guestfs.pod:404
34772 msgid ""
34773 "The network may not be available unless you enable it (see L</"
34774 "guestfs_set_network>)."
34775 msgstr ""
34776
34777 #. type: textblock
34778 #: ../src/guestfs.pod:409
34779 msgid "Only supports Linux guests (not Windows, BSD, etc)."
34780 msgstr ""
34781
34782 #. type: textblock
34783 #: ../src/guestfs.pod:413
34784 msgid ""
34785 "Architecture limitations (eg. won't work for a PPC guest on an X86 host)."
34786 msgstr ""
34787
34788 #. type: textblock
34789 #: ../src/guestfs.pod:418
34790 msgid ""
34791 "For SELinux guests, you may need to enable SELinux and load policy first.  "
34792 "See L</SELINUX> in this manpage."
34793 msgstr ""
34794
34795 #. type: textblock
34796 #: ../src/guestfs.pod:423
34797 msgid ""
34798 "I<Security:> It is not safe to run commands from untrusted, possibly "
34799 "malicious guests.  These commands may attempt to exploit your program by "
34800 "sending unexpected output.  They could also try to exploit the Linux kernel "
34801 "or qemu provided by the libguestfs appliance.  They could use the network "
34802 "provided by the libguestfs appliance to bypass ordinary network partitions "
34803 "and firewalls.  They could use the elevated privileges or different SELinux "
34804 "context of your program to their advantage."
34805 msgstr ""
34806
34807 #. type: textblock
34808 #: ../src/guestfs.pod:432
34809 msgid ""
34810 "A secure alternative is to use libguestfs to install a \"firstboot\" script "
34811 "(a script which runs when the guest next boots normally), and to have this "
34812 "script run the commands you want in the normal context of the running guest, "
34813 "network security and so on.  For information about other security issues, "
34814 "see L</SECURITY>."
34815 msgstr ""
34816
34817 #. type: textblock
34818 #: ../src/guestfs.pod:440
34819 msgid ""
34820 "The two main API calls to run commands are L</guestfs_command> and L</"
34821 "guestfs_sh> (there are also variations)."
34822 msgstr ""
34823
34824 #. type: textblock
34825 #: ../src/guestfs.pod:443
34826 msgid ""
34827 "The difference is that L</guestfs_sh> runs commands using the shell, so any "
34828 "shell globs, redirections, etc will work."
34829 msgstr ""
34830
34831 #. type: =head2
34832 #: ../src/guestfs.pod:446
34833 msgid "CONFIGURATION FILES"
34834 msgstr "ФАЙЛИ НАЛАШТУВАННЯ"
34835
34836 #. type: textblock
34837 #: ../src/guestfs.pod:448
34838 msgid ""
34839 "To read and write configuration files in Linux guest filesystems, we "
34840 "strongly recommend using Augeas.  For example, Augeas understands how to "
34841 "read and write, say, a Linux shadow password file or X.org configuration "
34842 "file, and so avoids you having to write that code."
34843 msgstr ""
34844
34845 #. type: textblock
34846 #: ../src/guestfs.pod:453
34847 msgid ""
34848 "The main Augeas calls are bound through the C<guestfs_aug_*> APIs.  We don't "
34849 "document Augeas itself here because there is excellent documentation on the "
34850 "L<http://augeas.net/> website."
34851 msgstr ""
34852
34853 #. type: textblock
34854 #: ../src/guestfs.pod:457
34855 msgid ""
34856 "If you don't want to use Augeas (you fool!) then try calling L</"
34857 "guestfs_read_lines> to get the file as a list of lines which you can iterate "
34858 "over."
34859 msgstr ""
34860
34861 #. type: =head2
34862 #: ../src/guestfs.pod:461
34863 msgid "SELINUX"
34864 msgstr "SELINUX"
34865
34866 #. type: textblock
34867 #: ../src/guestfs.pod:463
34868 msgid ""
34869 "We support SELinux guests.  To ensure that labeling happens correctly in "
34870 "SELinux guests, you need to enable SELinux and load the guest's policy:"
34871 msgstr ""
34872
34873 #. type: textblock
34874 #: ../src/guestfs.pod:471
34875 msgid "Before launching, do:"
34876 msgstr ""
34877
34878 #. type: verbatim
34879 #: ../src/guestfs.pod:473
34880 #, no-wrap
34881 msgid ""
34882 " guestfs_set_selinux (g, 1);\n"
34883 "\n"
34884 msgstr ""
34885 " guestfs_set_selinux (g, 1);\n"
34886 "\n"
34887
34888 #. type: textblock
34889 #: ../src/guestfs.pod:477
34890 msgid ""
34891 "After mounting the guest's filesystem(s), load the policy.  This is best "
34892 "done by running the L<load_policy(8)> command in the guest itself:"
34893 msgstr ""
34894
34895 #. type: verbatim
34896 #: ../src/guestfs.pod:481
34897 #, no-wrap
34898 msgid ""
34899 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34900 "\n"
34901 msgstr ""
34902 " guestfs_sh (g, \"/usr/sbin/load_policy\");\n"
34903 "\n"
34904
34905 #. type: textblock
34906 #: ../src/guestfs.pod:483
34907 msgid ""
34908 "(Older versions of C<load_policy> require you to specify the name of the "
34909 "policy file)."
34910 msgstr ""
34911
34912 #. type: textblock
34913 #: ../src/guestfs.pod:488
34914 msgid ""
34915 "Optionally, set the security context for the API.  The correct security "
34916 "context to use can only be known by inspecting the guest.  As an example:"
34917 msgstr ""
34918
34919 #. type: verbatim
34920 #: ../src/guestfs.pod:492
34921 #, no-wrap
34922 msgid ""
34923 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34924 "\n"
34925 msgstr ""
34926 " guestfs_setcon (g, \"unconfined_u:unconfined_r:unconfined_t:s0\");\n"
34927 "\n"
34928
34929 #. type: textblock
34930 #: ../src/guestfs.pod:496
34931 msgid "This will work for running commands and editing existing files."
34932 msgstr ""
34933
34934 #. type: textblock
34935 #: ../src/guestfs.pod:498
34936 msgid ""
34937 "When new files are created, you may need to label them explicitly, for "
34938 "example by running the external command C<restorecon pathname>."
34939 msgstr ""
34940
34941 #. type: =head2
34942 #: ../src/guestfs.pod:502
34943 msgid "UMASK"
34944 msgstr "UMASK"
34945
34946 #. type: textblock
34947 #: ../src/guestfs.pod:504
34948 msgid ""
34949 "Certain calls are affected by the current file mode creation mask (the "
34950 "\"umask\").  In particular ones which create files or directories, such as "
34951 "L</guestfs_touch>, L</guestfs_mknod> or L</guestfs_mkdir>.  This affects "
34952 "either the default mode that the file is created with or modifies the mode "
34953 "that you supply."
34954 msgstr ""
34955
34956 #. type: textblock
34957 #: ../src/guestfs.pod:510
34958 msgid ""
34959 "The default umask is C<022>, so files are created with modes such as C<0644> "
34960 "and directories with C<0755>."
34961 msgstr ""
34962
34963 #. type: textblock
34964 #: ../src/guestfs.pod:513
34965 msgid ""
34966 "There are two ways to avoid being affected by umask.  Either set umask to 0 "
34967 "(call C<guestfs_umask (g, 0)> early after launching).  Or call L</"
34968 "guestfs_chmod> after creating each file or directory."
34969 msgstr ""
34970
34971 #. type: textblock
34972 #: ../src/guestfs.pod:517
34973 msgid "For more information about umask, see L<umask(2)>."
34974 msgstr ""
34975
34976 #. type: textblock
34977 #: ../src/guestfs.pod:521
34978 msgid ""
34979 "Libguestfs allows you to access Linux guests which have been encrypted using "
34980 "whole disk encryption that conforms to the Linux Unified Key Setup (LUKS) "
34981 "standard.  This includes nearly all whole disk encryption systems used by "
34982 "modern Linux guests."
34983 msgstr ""
34984
34985 #. type: textblock
34986 #: ../src/guestfs.pod:527
34987 msgid ""
34988 "Use L</guestfs_vfs_type> to identify LUKS-encrypted block devices (it "
34989 "returns the string C<crypto_LUKS>)."
34990 msgstr ""
34991
34992 #. type: textblock
34993 #: ../src/guestfs.pod:530
34994 msgid ""
34995 "Then open these devices by calling L</guestfs_luks_open>.  Obviously you "
34996 "will require the passphrase!"
34997 msgstr ""
34998
34999 #. type: textblock
35000 #: ../src/guestfs.pod:533
35001 msgid ""
35002 "Opening a LUKS device creates a new device mapper device called C</dev/"
35003 "mapper/mapname> (where C<mapname> is the string you supply to L</"
35004 "guestfs_luks_open>).  Reads and writes to this mapper device are decrypted "
35005 "from and encrypted to the underlying block device respectively."
35006 msgstr ""
35007
35008 #. type: textblock
35009 #: ../src/guestfs.pod:539
35010 msgid ""
35011 "LVM volume groups on the device can be made visible by calling L</"
35012 "guestfs_vgscan> followed by L</guestfs_vg_activate_all>.  The logical volume"
35013 "(s) can now be mounted in the usual way."
35014 msgstr ""
35015
35016 #. type: textblock
35017 #: ../src/guestfs.pod:543
35018 msgid ""
35019 "Use the reverse process to close a LUKS device.  Unmount any logical volumes "
35020 "on it, deactivate the volume groups by caling C<guestfs_vg_activate (g, 0, "
35021 "[\"/dev/VG\"])>.  Then close the mapper device by calling L</"
35022 "guestfs_luks_close> on the C</dev/mapper/mapname> device (I<not> the "
35023 "underlying encrypted block device)."
35024 msgstr ""
35025
35026 #. type: =head2
35027 #: ../src/guestfs.pod:550
35028 msgid "INSPECTION"
35029 msgstr "ПЕРЕВІРКА"
35030
35031 #. type: textblock
35032 #: ../src/guestfs.pod:552
35033 msgid ""
35034 "Libguestfs has APIs for inspecting an unknown disk image to find out if it "
35035 "contains operating systems, an install CD or a live CD.  (These APIs used to "
35036 "be in a separate Perl-only library called L<Sys::Guestfs::Lib(3)> but since "
35037 "version 1.5.3 the most frequently used part of this library has been "
35038 "rewritten in C and moved into the core code)."
35039 msgstr ""
35040
35041 #. type: textblock
35042 #: ../src/guestfs.pod:559
35043 msgid ""
35044 "Add all disks belonging to the unknown virtual machine and call L</"
35045 "guestfs_launch> in the usual way."
35046 msgstr ""
35047
35048 #. type: textblock
35049 #: ../src/guestfs.pod:562
35050 msgid ""
35051 "Then call L</guestfs_inspect_os>.  This function uses other libguestfs calls "
35052 "and certain heuristics, and returns a list of operating systems that were "
35053 "found.  An empty list means none were found.  A single element is the root "
35054 "filesystem of the operating system.  For dual- or multi-boot guests, "
35055 "multiple roots can be returned, each one corresponding to a separate "
35056 "operating system.  (Multi-boot virtual machines are extremely rare in the "
35057 "world of virtualization, but since this scenario can happen, we have built "
35058 "libguestfs to deal with it.)"
35059 msgstr ""
35060
35061 #. type: textblock
35062 #: ../src/guestfs.pod:571
35063 msgid ""
35064 "For each root, you can then call various C<guestfs_inspect_get_*> functions "
35065 "to get additional details about that operating system.  For example, call L</"
35066 "guestfs_inspect_get_type> to return the string C<windows> or C<linux> for "
35067 "Windows and Linux-based operating systems respectively."
35068 msgstr ""
35069
35070 #. type: textblock
35071 #: ../src/guestfs.pod:577
35072 msgid ""
35073 "Un*x-like and Linux-based operating systems usually consist of several "
35074 "filesystems which are mounted at boot time (for example, a separate boot "
35075 "partition mounted on C</boot>).  The inspection rules are able to detect how "
35076 "filesystems correspond to mount points.  Call "
35077 "C<guestfs_inspect_get_mountpoints> to get this mapping.  It might return a "
35078 "hash table like this example:"
35079 msgstr ""
35080
35081 #. type: verbatim
35082 #: ../src/guestfs.pod:584
35083 #, no-wrap
35084 msgid ""
35085 " /boot => /dev/sda1\n"
35086 " /     => /dev/vg_guest/lv_root\n"
35087 " /usr  => /dev/vg_guest/lv_usr\n"
35088 "\n"
35089 msgstr ""
35090 " /boot => /dev/sda1\n"
35091 " /     => /dev/vg_guest/lv_root\n"
35092 " /usr  => /dev/vg_guest/lv_usr\n"
35093 "\n"
35094
35095 #. type: textblock
35096 #: ../src/guestfs.pod:588
35097 msgid ""
35098 "The caller can then make calls to L</guestfs_mount_options> to mount the "
35099 "filesystems as suggested."
35100 msgstr ""
35101
35102 #. type: textblock
35103 #: ../src/guestfs.pod:591
35104 msgid ""
35105 "Be careful to mount filesystems in the right order (eg. C</> before C</"
35106 "usr>).  Sorting the keys of the hash by length, shortest first, should work."
35107 msgstr ""
35108
35109 #. type: textblock
35110 #: ../src/guestfs.pod:595
35111 msgid ""
35112 "Inspection currently only works for some common operating systems.  "
35113 "Contributors are welcome to send patches for other operating systems that we "
35114 "currently cannot detect."
35115 msgstr ""
35116
35117 #. type: textblock
35118 #: ../src/guestfs.pod:599
35119 msgid ""
35120 "Encrypted disks must be opened before inspection.  See L</ENCRYPTED DISKS> "
35121 "for more details.  The L</guestfs_inspect_os> function just ignores any "
35122 "encrypted devices."
35123 msgstr ""
35124
35125 #. type: textblock
35126 #: ../src/guestfs.pod:603
35127 msgid ""
35128 "A note on the implementation: The call L</guestfs_inspect_os> performs "
35129 "inspection and caches the results in the guest handle.  Subsequent calls to "
35130 "C<guestfs_inspect_get_*> return this cached information, but I<do not> re-"
35131 "read the disks.  If you change the content of the guest disks, you can redo "
35132 "inspection by calling L</guestfs_inspect_os> again.  (L</"
35133 "guestfs_inspect_list_applications> works a little differently from the other "
35134 "calls and does read the disks.  See documentation for that function for "
35135 "details)."
35136 msgstr ""
35137
35138 #. type: =head3
35139 #: ../src/guestfs.pod:612
35140 msgid "INSPECTING INSTALL DISKS"
35141 msgstr ""
35142
35143 #. type: textblock
35144 #: ../src/guestfs.pod:614
35145 msgid ""
35146 "Libguestfs (since 1.9.4) can detect some install disks, install CDs, live "
35147 "CDs and more."
35148 msgstr ""
35149
35150 #. type: textblock
35151 #: ../src/guestfs.pod:617
35152 msgid ""
35153 "Call L</guestfs_inspect_get_format> to return the format of the operating "
35154 "system, which currently can be C<installed> (a regular operating system) or "
35155 "C<installer> (some sort of install disk)."
35156 msgstr ""
35157
35158 #. type: textblock
35159 #: ../src/guestfs.pod:621
35160 msgid ""
35161 "Further information is available about the operating system that can be "
35162 "installed using the regular inspection APIs like L</"
35163 "guestfs_inspect_get_product_name>, L</guestfs_inspect_get_major_version> etc."
35164 msgstr ""
35165
35166 #. type: textblock
35167 #: ../src/guestfs.pod:626
35168 msgid ""
35169 "Some additional information specific to installer disks is also available "
35170 "from the L</guestfs_inspect_is_live>, L</guestfs_inspect_is_netinst> and L</"
35171 "guestfs_inspect_is_multipart> calls."
35172 msgstr ""
35173
35174 #. type: =head2
35175 #: ../src/guestfs.pod:631
35176 msgid "SPECIAL CONSIDERATIONS FOR WINDOWS GUESTS"
35177 msgstr ""
35178
35179 #. type: textblock
35180 #: ../src/guestfs.pod:633
35181 msgid ""
35182 "Libguestfs can mount NTFS partitions.  It does this using the L<http://www."
35183 "ntfs-3g.org/> driver."
35184 msgstr ""
35185
35186 #. type: =head3
35187 #: ../src/guestfs.pod:636
35188 msgid "DRIVE LETTERS AND PATHS"
35189 msgstr "ЛІТЕРИ ДИСКІВ ТА ШЛЯХИ"
35190
35191 #. type: textblock
35192 #: ../src/guestfs.pod:638
35193 msgid ""
35194 "DOS and Windows still use drive letters, and the filesystems are always "
35195 "treated as case insensitive by Windows itself, and therefore you might find "
35196 "a Windows configuration file referring to a path like C<c:\\windows"
35197 "\\system32>.  When the filesystem is mounted in libguestfs, that directory "
35198 "might be referred to as C</WINDOWS/System32>."
35199 msgstr ""
35200
35201 #. type: textblock
35202 #: ../src/guestfs.pod:644
35203 msgid ""
35204 "Drive letter mappings can be found using inspection (see L</INSPECTION> and "
35205 "L</guestfs_inspect_get_drive_mappings>)"
35206 msgstr ""
35207
35208 #. type: textblock
35209 #: ../src/guestfs.pod:647
35210 msgid ""
35211 "Dealing with separator characters (backslash vs forward slash) is outside "
35212 "the scope of libguestfs, but usually a simple character replacement will "
35213 "work."
35214 msgstr ""
35215
35216 #. type: textblock
35217 #: ../src/guestfs.pod:651
35218 msgid ""
35219 "To resolve the case insensitivity of paths, call L</"
35220 "guestfs_case_sensitive_path>."
35221 msgstr ""
35222
35223 #. type: =head3
35224 #: ../src/guestfs.pod:654
35225 msgid "ACCESSING THE WINDOWS REGISTRY"
35226 msgstr "ДОСТУП ДО РЕГІСТРУ WINDOWS"
35227
35228 #. type: textblock
35229 #: ../src/guestfs.pod:656
35230 msgid ""
35231 "Libguestfs also provides some help for decoding Windows Registry \"hive\" "
35232 "files, through the library C<hivex> which is part of the libguestfs project "
35233 "although ships as a separate tarball.  You have to locate and download the "
35234 "hive file(s) yourself, and then pass them to C<hivex> functions.  See also "
35235 "the programs L<hivexml(1)>, L<hivexsh(1)>, L<hivexregedit(1)> and L<virt-win-"
35236 "reg(1)> for more help on this issue."
35237 msgstr ""
35238
35239 #. type: =head3
35240 #: ../src/guestfs.pod:664
35241 msgid "SYMLINKS ON NTFS-3G FILESYSTEMS"
35242 msgstr "СИМВОЛІЧНІ ПОСИЛАННЯ У ФАЙЛОВИХ СИСТЕМАХ NTFS-3G"
35243
35244 #. type: textblock
35245 #: ../src/guestfs.pod:666
35246 msgid ""
35247 "Ntfs-3g tries to rewrite \"Junction Points\" and NTFS \"symbolic links\" to "
35248 "provide something which looks like a Linux symlink.  The way it tries to do "
35249 "the rewriting is described here:"
35250 msgstr ""
35251
35252 #. type: textblock
35253 #: ../src/guestfs.pod:670
35254 msgid ""
35255 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35256 "symbolic-links/>"
35257 msgstr ""
35258 "L<http://www.tuxera.com/community/ntfs-3g-advanced/junction-points-and-"
35259 "symbolic-links/>"
35260
35261 #. type: textblock
35262 #: ../src/guestfs.pod:672
35263 msgid ""
35264 "The essential problem is that ntfs-3g simply does not have enough "
35265 "information to do a correct job.  NTFS links can contain drive letters and "
35266 "references to external device GUIDs that ntfs-3g has no way of resolving.  "
35267 "It is almost certainly the case that libguestfs callers should ignore what "
35268 "ntfs-3g does (ie. don't use L</guestfs_readlink> on NTFS volumes)."
35269 msgstr ""
35270
35271 #. type: textblock
35272 #: ../src/guestfs.pod:679
35273 msgid ""
35274 "Instead if you encounter a symbolic link on an ntfs-3g filesystem, use L</"
35275 "guestfs_lgetxattr> to read the C<system.ntfs_reparse_data> extended "
35276 "attribute, and read the raw reparse data from that (you can find the format "
35277 "documented in various places around the web)."
35278 msgstr ""
35279
35280 #. type: =head3
35281 #: ../src/guestfs.pod:684
35282 msgid "EXTENDED ATTRIBUTES ON NTFS-3G FILESYSTEMS"
35283 msgstr ""
35284
35285 #. type: textblock
35286 #: ../src/guestfs.pod:686
35287 msgid ""
35288 "There are other useful extended attributes that can be read from ntfs-3g "
35289 "filesystems (using L</guestfs_getxattr>).  See:"
35290 msgstr ""
35291
35292 #. type: textblock
35293 #: ../src/guestfs.pod:689
35294 msgid ""
35295 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35296 msgstr ""
35297 "L<http://www.tuxera.com/community/ntfs-3g-advanced/extended-attributes/>"
35298
35299 #. type: =head2
35300 #: ../src/guestfs.pod:691
35301 msgid "USING LIBGUESTFS WITH OTHER PROGRAMMING LANGUAGES"
35302 msgstr "ВИКОРИСТАННЯ LIBGUESTFS ЗА ДОПОМОГОЮ ІНШИХ МОВ ПРОГРАМУВАННЯ"
35303
35304 #. type: textblock
35305 #: ../src/guestfs.pod:693
35306 msgid ""
35307 "Although we don't want to discourage you from using the C API, we will "
35308 "mention here that the same API is also available in other languages."
35309 msgstr ""
35310
35311 #. type: textblock
35312 #: ../src/guestfs.pod:696
35313 msgid ""
35314 "The API is broadly identical in all supported languages.  This means that "
35315 "the C call C<guestfs_add_drive_ro(g,file)> is C<$g-E<gt>add_drive_ro($file)> "
35316 "in Perl, C<g.add_drive_ro(file)> in Python, and C<g#add_drive_ro file> in "
35317 "OCaml.  In other words, a straightforward, predictable isomorphism between "
35318 "each language."
35319 msgstr ""
35320
35321 #. type: textblock
35322 #: ../src/guestfs.pod:702
35323 msgid ""
35324 "Error messages are automatically transformed into exceptions if the language "
35325 "supports it."
35326 msgstr ""
35327
35328 #. type: textblock
35329 #: ../src/guestfs.pod:705
35330 msgid ""
35331 "We don't try to \"object orientify\" parts of the API in OO languages, "
35332 "although contributors are welcome to write higher level APIs above what we "
35333 "provide in their favourite languages if they wish."
35334 msgstr ""
35335
35336 #. type: =item
35337 #: ../src/guestfs.pod:711
35338 msgid "B<C++>"
35339 msgstr "B<C++>"
35340
35341 #. type: textblock
35342 #: ../src/guestfs.pod:713
35343 msgid ""
35344 "You can use the I<guestfs.h> header file from C++ programs.  The C++ API is "
35345 "identical to the C API.  C++ classes and exceptions are not used."
35346 msgstr ""
35347
35348 #. type: =item
35349 #: ../src/guestfs.pod:717
35350 msgid "B<C#>"
35351 msgstr "B<C#>"
35352
35353 #. type: textblock
35354 #: ../src/guestfs.pod:719
35355 msgid ""
35356 "The C# bindings are highly experimental.  Please read the warnings at the "
35357 "top of C<csharp/Libguestfs.cs>."
35358 msgstr ""
35359
35360 #. type: =item
35361 #: ../src/guestfs.pod:722
35362 msgid "B<Erlang>"
35363 msgstr ""
35364
35365 #. type: textblock
35366 #: ../src/guestfs.pod:724
35367 #, fuzzy
35368 #| msgid "See L<guestfs-ruby(3)>."
35369 msgid "See L<guestfs-erlang(3)>."
35370 msgstr "Див. L<guestfs-ruby(3)>."
35371
35372 #. type: =item
35373 #: ../src/guestfs.pod:726
35374 msgid "B<Haskell>"
35375 msgstr "B<Haskell>"
35376
35377 #. type: textblock
35378 #: ../src/guestfs.pod:728
35379 msgid ""
35380 "This is the only language binding that is working but incomplete.  Only "
35381 "calls which return simple integers have been bound in Haskell, and we are "
35382 "looking for help to complete this binding."
35383 msgstr ""
35384
35385 #. type: =item
35386 #: ../src/guestfs.pod:732
35387 msgid "B<Java>"
35388 msgstr "B<Java>"
35389
35390 #. type: textblock
35391 #: ../src/guestfs.pod:734
35392 msgid ""
35393 "Full documentation is contained in the Javadoc which is distributed with "
35394 "libguestfs.  For examples, see L<guestfs-java(3)>."
35395 msgstr ""
35396
35397 #. type: =item
35398 #: ../src/guestfs.pod:737
35399 msgid "B<OCaml>"
35400 msgstr "B<OCaml>"
35401
35402 #. type: textblock
35403 #: ../src/guestfs.pod:739
35404 msgid "See L<guestfs-ocaml(3)>."
35405 msgstr "Див. L<guestfs-ocaml(3)>."
35406
35407 #. type: =item
35408 #: ../src/guestfs.pod:741
35409 msgid "B<Perl>"
35410 msgstr "B<Perl>"
35411
35412 #. type: textblock
35413 #: ../src/guestfs.pod:743
35414 msgid "See L<guestfs-perl(3)> and L<Sys::Guestfs(3)>."
35415 msgstr "Див. L<guestfs-perl(3)> та L<Sys::Guestfs(3)>."
35416
35417 #. type: =item
35418 #: ../src/guestfs.pod:745
35419 msgid "B<PHP>"
35420 msgstr "B<PHP>"
35421
35422 #. type: textblock
35423 #: ../src/guestfs.pod:747
35424 msgid ""
35425 "For documentation see C<README-PHP> supplied with libguestfs sources or in "
35426 "the php-libguestfs package for your distribution."
35427 msgstr ""
35428
35429 #. type: textblock
35430 #: ../src/guestfs.pod:750
35431 msgid "The PHP binding only works correctly on 64 bit machines."
35432 msgstr ""
35433
35434 #. type: =item
35435 #: ../src/guestfs.pod:752
35436 msgid "B<Python>"
35437 msgstr "B<Python>"
35438
35439 #. type: textblock
35440 #: ../src/guestfs.pod:754
35441 msgid "See L<guestfs-python(3)>."
35442 msgstr "Див. L<guestfs-python(3)>."
35443
35444 #. type: =item
35445 #: ../src/guestfs.pod:756
35446 msgid "B<Ruby>"
35447 msgstr "B<Ruby>"
35448
35449 #. type: textblock
35450 #: ../src/guestfs.pod:758
35451 msgid "See L<guestfs-ruby(3)>."
35452 msgstr "Див. L<guestfs-ruby(3)>."
35453
35454 #. type: =item
35455 #: ../src/guestfs.pod:760
35456 msgid "B<shell scripts>"
35457 msgstr "B<скрипти оболонки>"
35458
35459 #. type: textblock
35460 #: ../src/guestfs.pod:762
35461 msgid "See L<guestfish(1)>."
35462 msgstr "Див. L<guestfish(1)>."
35463
35464 #. type: =head2
35465 #: ../src/guestfs.pod:766
35466 msgid "LIBGUESTFS GOTCHAS"
35467 msgstr ""
35468
35469 #. type: textblock
35470 #: ../src/guestfs.pod:768
35471 msgid ""
35472 "L<http://en.wikipedia.org/wiki/Gotcha_(programming)>: \"A feature of a "
35473 "system [...] that works in the way it is documented but is counterintuitive "
35474 "and almost invites mistakes.\""
35475 msgstr ""
35476
35477 #. type: textblock
35478 #: ../src/guestfs.pod:772
35479 msgid ""
35480 "Since we developed libguestfs and the associated tools, there are several "
35481 "things we would have designed differently, but are now stuck with for "
35482 "backwards compatibility or other reasons.  If there is ever a libguestfs 2.0 "
35483 "release, you can expect these to change.  Beware of them."
35484 msgstr ""
35485
35486 #. type: =item
35487 #: ../src/guestfs.pod:780
35488 msgid "Autosync / forgetting to sync."
35489 msgstr ""
35490
35491 #. type: textblock
35492 #: ../src/guestfs.pod:782
35493 msgid ""
35494 "I<Update:> Autosync is enabled by default for all API users starting from "
35495 "libguestfs 1.5.24.  This section only applies to older versions."
35496 msgstr ""
35497
35498 #. type: textblock
35499 #: ../src/guestfs.pod:785
35500 msgid ""
35501 "When modifying a filesystem from C or another language, you B<must> unmount "
35502 "all filesystems and call L</guestfs_sync> explicitly before you close the "
35503 "libguestfs handle.  You can also call:"
35504 msgstr ""
35505
35506 #. type: verbatim
35507 #: ../src/guestfs.pod:789
35508 #, no-wrap
35509 msgid ""
35510 " guestfs_set_autosync (g, 1);\n"
35511 "\n"
35512 msgstr ""
35513 " guestfs_set_autosync (g, 1);\n"
35514 "\n"
35515
35516 #. type: textblock
35517 #: ../src/guestfs.pod:791
35518 msgid ""
35519 "to have the unmount/sync done automatically for you when the handle 'g' is "
35520 "closed.  (This feature is called \"autosync\", L</guestfs_set_autosync> q.v.)"
35521 msgstr ""
35522
35523 #. type: textblock
35524 #: ../src/guestfs.pod:795
35525 msgid ""
35526 "If you forget to do this, then it is entirely possible that your changes "
35527 "won't be written out, or will be partially written, or (very rarely) that "
35528 "you'll get disk corruption."
35529 msgstr ""
35530
35531 #. type: textblock
35532 #: ../src/guestfs.pod:799
35533 msgid ""
35534 "Note that in L<guestfish(3)> autosync is the default.  So quick and dirty "
35535 "guestfish scripts that forget to sync will work just fine, which can make "
35536 "this very puzzling if you are trying to debug a problem."
35537 msgstr ""
35538
35539 #. type: =item
35540 #: ../src/guestfs.pod:803
35541 msgid "Mount option C<-o sync> should not be the default."
35542 msgstr ""
35543
35544 #. type: textblock
35545 #: ../src/guestfs.pod:805
35546 msgid ""
35547 "I<Update:> L</guestfs_mount> no longer adds any options starting from "
35548 "libguestfs 1.13.16.  This section only applies to older versions."
35549 msgstr ""
35550
35551 #. type: textblock
35552 #: ../src/guestfs.pod:808
35553 msgid ""
35554 "If you use L</guestfs_mount>, then C<-o sync,noatime> are added implicitly.  "
35555 "However C<-o sync> does not add any reliability benefit, but does have a "
35556 "very large performance impact."
35557 msgstr ""
35558
35559 #. type: textblock
35560 #: ../src/guestfs.pod:812
35561 msgid ""
35562 "The work around is to use L</guestfs_mount_options> and set the mount "
35563 "options that you actually want to use."
35564 msgstr ""
35565
35566 #. type: =item
35567 #: ../src/guestfs.pod:815
35568 msgid "Read-only should be the default."
35569 msgstr ""
35570
35571 #. type: textblock
35572 #: ../src/guestfs.pod:817
35573 msgid ""
35574 "In L<guestfish(3)>, I<--ro> should be the default, and you should have to "
35575 "specify I<--rw> if you want to make changes to the image."
35576 msgstr ""
35577
35578 #. type: textblock
35579 #: ../src/guestfs.pod:820
35580 msgid "This would reduce the potential to corrupt live VM images."
35581 msgstr ""
35582
35583 #. type: textblock
35584 #: ../src/guestfs.pod:822
35585 msgid ""
35586 "Note that many filesystems change the disk when you just mount and unmount, "
35587 "even if you didn't perform any writes.  You need to use L</"
35588 "guestfs_add_drive_ro> to guarantee that the disk is not changed."
35589 msgstr ""
35590
35591 #. type: =item
35592 #: ../src/guestfs.pod:826
35593 msgid "guestfish command line is hard to use."
35594 msgstr ""
35595
35596 #. type: textblock
35597 #: ../src/guestfs.pod:828
35598 msgid ""
35599 "C<guestfish disk.img> doesn't do what people expect (open C<disk.img> for "
35600 "examination).  It tries to run a guestfish command C<disk.img> which doesn't "
35601 "exist, so it fails.  In earlier versions of guestfish the error message was "
35602 "also unintuitive, but we have corrected this since.  Like the Bourne shell, "
35603 "we should have used C<guestfish -c command> to run commands."
35604 msgstr ""
35605
35606 #. type: =item
35607 #: ../src/guestfs.pod:835
35608 msgid "guestfish megabyte modifiers don't work right on all commands"
35609 msgstr ""
35610
35611 #. type: textblock
35612 #: ../src/guestfs.pod:837
35613 msgid ""
35614 "In recent guestfish you can use C<1M> to mean 1 megabyte (and similarly for "
35615 "other modifiers).  What guestfish actually does is to multiply the number "
35616 "part by the modifier part and pass the result to the C API.  However this "
35617 "doesn't work for a few APIs which aren't expecting bytes, but are already "
35618 "expecting some other unit (eg. megabytes)."
35619 msgstr ""
35620
35621 #. type: textblock
35622 #: ../src/guestfs.pod:844
35623 msgid "The most common is L</guestfs_lvcreate>.  The guestfish command:"
35624 msgstr ""
35625
35626 #. type: verbatim
35627 #: ../src/guestfs.pod:846
35628 #, no-wrap
35629 msgid ""
35630 " lvcreate LV VG 100M\n"
35631 "\n"
35632 msgstr ""
35633 " lvcreate LV VG 100M\n"
35634 "\n"
35635
35636 #. type: textblock
35637 #: ../src/guestfs.pod:848
35638 msgid ""
35639 "does not do what you might expect.  Instead because L</guestfs_lvcreate> is "
35640 "already expecting megabytes, this tries to create a 100 I<terabyte> (100 "
35641 "megabytes * megabytes) logical volume.  The error message you get from this "
35642 "is also a little obscure."
35643 msgstr ""
35644
35645 #. type: textblock
35646 #: ../src/guestfs.pod:853
35647 msgid ""
35648 "This could be fixed in the generator by specially marking parameters and "
35649 "return values which take bytes or other units."
35650 msgstr ""
35651
35652 #. type: =item
35653 #: ../src/guestfs.pod:856
35654 msgid "Ambiguity between devices and paths"
35655 msgstr ""
35656
35657 #. type: textblock
35658 #: ../src/guestfs.pod:858
35659 msgid ""
35660 "There is a subtle ambiguity in the API between a device name (eg. C</dev/"
35661 "sdb2>) and a similar pathname.  A file might just happen to be called "
35662 "C<sdb2> in the directory C</dev> (consider some non-Unix VM image)."
35663 msgstr ""
35664
35665 #. type: textblock
35666 #: ../src/guestfs.pod:863
35667 msgid ""
35668 "In the current API we usually resolve this ambiguity by having two separate "
35669 "calls, for example L</guestfs_checksum> and L</guestfs_checksum_device>.  "
35670 "Some API calls are ambiguous and (incorrectly) resolve the problem by "
35671 "detecting if the path supplied begins with C</dev/>."
35672 msgstr ""
35673
35674 #. type: textblock
35675 #: ../src/guestfs.pod:869
35676 msgid ""
35677 "To avoid both the ambiguity and the need to duplicate some calls, we could "
35678 "make paths/devices into structured names.  One way to do this would be to "
35679 "use a notation like grub (C<hd(0,0)>), although nobody really likes this "
35680 "aspect of grub.  Another way would be to use a structured type, equivalent "
35681 "to this OCaml type:"
35682 msgstr ""
35683
35684 #. type: verbatim
35685 #: ../src/guestfs.pod:875
35686 #, no-wrap
35687 msgid ""
35688 " type path = Path of string | Device of int | Partition of int * int\n"
35689 "\n"
35690 msgstr ""
35691
35692 #. type: textblock
35693 #: ../src/guestfs.pod:877
35694 msgid "which would allow you to pass arguments like:"
35695 msgstr ""
35696
35697 #. type: verbatim
35698 #: ../src/guestfs.pod:879
35699 #, no-wrap
35700 msgid ""
35701 " Path \"/foo/bar\"\n"
35702 " Device 1            (* /dev/sdb, or perhaps /dev/sda *)\n"
35703 " Partition (1, 2)    (* /dev/sdb2 (or is it /dev/sda2 or /dev/sdb3?) *)\n"
35704 " Path \"/dev/sdb2\"    (* not a device *)\n"
35705 "\n"
35706 msgstr ""
35707
35708 #. type: textblock
35709 #: ../src/guestfs.pod:884
35710 msgid ""
35711 "As you can see there are still problems to resolve even with this "
35712 "representation.  Also consider how it might work in guestfish."
35713 msgstr ""
35714
35715 #. type: =head2
35716 #: ../src/guestfs.pod:889
35717 msgid "KEYS AND PASSPHRASES"
35718 msgstr "КЛЮЧІ І ПАРОЛІ"
35719
35720 #. type: textblock
35721 #: ../src/guestfs.pod:891
35722 msgid ""
35723 "Certain libguestfs calls take a parameter that contains sensitive key "
35724 "material, passed in as a C string."
35725 msgstr ""
35726
35727 #. type: textblock
35728 #: ../src/guestfs.pod:894
35729 msgid ""
35730 "In the future we would hope to change the libguestfs implementation so that "
35731 "keys are L<mlock(2)>-ed into physical RAM, and thus can never end up in "
35732 "swap.  However this is I<not> done at the moment, because of the complexity "
35733 "of such an implementation."
35734 msgstr ""
35735
35736 #. type: textblock
35737 #: ../src/guestfs.pod:899
35738 msgid ""
35739 "Therefore you should be aware that any key parameter you pass to libguestfs "
35740 "might end up being written out to the swap partition.  If this is a concern, "
35741 "scrub the swap partition or don't use libguestfs on encrypted devices."
35742 msgstr ""
35743
35744 #. type: =head2
35745 #: ../src/guestfs.pod:904
35746 msgid "MULTIPLE HANDLES AND MULTIPLE THREADS"
35747 msgstr ""
35748
35749 #. type: textblock
35750 #: ../src/guestfs.pod:906
35751 msgid ""
35752 "All high-level libguestfs actions are synchronous.  If you want to use "
35753 "libguestfs asynchronously then you must create a thread."
35754 msgstr ""
35755
35756 #. type: textblock
35757 #: ../src/guestfs.pod:909
35758 msgid ""
35759 "Only use the handle from a single thread.  Either use the handle exclusively "
35760 "from one thread, or provide your own mutex so that two threads cannot issue "
35761 "calls on the same handle at the same time."
35762 msgstr ""
35763
35764 #. type: textblock
35765 #: ../src/guestfs.pod:913
35766 msgid ""
35767 "See the graphical program guestfs-browser for one possible architecture for "
35768 "multithreaded programs using libvirt and libguestfs."
35769 msgstr ""
35770
35771 #. type: =head2
35772 #: ../src/guestfs.pod:916
35773 msgid "PATH"
35774 msgstr "ШЛЯХ"
35775
35776 #. type: textblock
35777 #: ../src/guestfs.pod:918
35778 msgid ""
35779 "Libguestfs needs a supermin appliance, which it finds by looking along an "
35780 "internal path."
35781 msgstr ""
35782
35783 #. type: textblock
35784 #: ../src/guestfs.pod:921
35785 msgid ""
35786 "By default it looks for these in the directory C<$libdir/guestfs> (eg. C</"
35787 "usr/local/lib/guestfs> or C</usr/lib64/guestfs>)."
35788 msgstr ""
35789
35790 #. type: textblock
35791 #: ../src/guestfs.pod:924
35792 msgid ""
35793 "Use L</guestfs_set_path> or set the environment variable L</LIBGUESTFS_PATH> "
35794 "to change the directories that libguestfs will search in.  The value is a "
35795 "colon-separated list of paths.  The current directory is I<not> searched "
35796 "unless the path contains an empty element or C<.>.  For example "
35797 "C<LIBGUESTFS_PATH=:/usr/lib/guestfs> would search the current directory and "
35798 "then C</usr/lib/guestfs>."
35799 msgstr ""
35800
35801 #. type: =head2
35802 #: ../src/guestfs.pod:931
35803 msgid "QEMU WRAPPERS"
35804 msgstr ""
35805
35806 #. type: textblock
35807 #: ../src/guestfs.pod:933
35808 msgid ""
35809 "If you want to compile your own qemu, run qemu from a non-standard location, "
35810 "or pass extra arguments to qemu, then you can write a shell-script wrapper "
35811 "around qemu."
35812 msgstr ""
35813
35814 #. type: textblock
35815 #: ../src/guestfs.pod:937
35816 msgid ""
35817 "There is one important rule to remember: you I<must C<exec qemu>> as the "
35818 "last command in the shell script (so that qemu replaces the shell and "
35819 "becomes the direct child of the libguestfs-using program).  If you don't do "
35820 "this, then the qemu process won't be cleaned up correctly."
35821 msgstr ""
35822
35823 #. type: textblock
35824 #: ../src/guestfs.pod:942
35825 msgid ""
35826 "Here is an example of a wrapper, where I have built my own copy of qemu from "
35827 "source:"
35828 msgstr ""
35829
35830 #. type: verbatim
35831 #: ../src/guestfs.pod:945
35832 #, no-wrap
35833 msgid ""
35834 " #!/bin/sh -\n"
35835 " qemudir=/home/rjones/d/qemu\n"
35836 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
35837 "\n"
35838 msgstr ""
35839 " #!/bin/sh -\n"
35840 " qemudir=/home/rjones/d/qemu\n"
35841 " exec $qemudir/x86_64-softmmu/qemu-system-x86_64 -L $qemudir/pc-bios \"$@\"\n"
35842 "\n"
35843
35844 #. type: textblock
35845 #: ../src/guestfs.pod:949
35846 msgid ""
35847 "Save this script as C</tmp/qemu.wrapper> (or wherever), C<chmod +x>, and "
35848 "then use it by setting the LIBGUESTFS_QEMU environment variable.  For "
35849 "example:"
35850 msgstr ""
35851
35852 #. type: verbatim
35853 #: ../src/guestfs.pod:953
35854 #, no-wrap
35855 msgid ""
35856 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35857 "\n"
35858 msgstr ""
35859 " LIBGUESTFS_QEMU=/tmp/qemu.wrapper guestfish\n"
35860 "\n"
35861
35862 #. type: textblock
35863 #: ../src/guestfs.pod:955
35864 msgid ""
35865 "Note that libguestfs also calls qemu with the -help and -version options in "
35866 "order to determine features."
35867 msgstr ""
35868
35869 #. type: textblock
35870 #: ../src/guestfs.pod:958
35871 msgid ""
35872 "Wrappers can also be used to edit the options passed to qemu.  In the "
35873 "following example, the C<-machine ...> option (C<-machine> and the following "
35874 "argument) are removed from the command line and replaced with C<-machine pc,"
35875 "accel=tcg>.  The while loop iterates over the options until it finds the "
35876 "right one to remove, putting the remaining options into the C<args> array."
35877 msgstr ""
35878
35879 #. type: verbatim
35880 #: ../src/guestfs.pod:965
35881 #, fuzzy, no-wrap
35882 #| msgid ""
35883 #| " #!/usr/bin/guestfish -f\n"
35884 #| "\n"
35885 msgid ""
35886 " #!/bin/bash -\n"
35887 " \n"
35888 msgstr ""
35889 " #!/usr/bin/guestfish -f\n"
35890 "\n"
35891
35892 #. type: verbatim
35893 #: ../src/guestfs.pod:967
35894 #, no-wrap
35895 msgid ""
35896 " i=0\n"
35897 " while [ $# -gt 0 ]; do\n"
35898 "     case \"$1\" in\n"
35899 "     -machine)\n"
35900 "         shift 2;;\n"
35901 "     *)\n"
35902 "         args[i]=\"$1\"\n"
35903 "         (( i++ ))\n"
35904 "         shift ;;\n"
35905 "     esac\n"
35906 " done\n"
35907 " \n"
35908 msgstr ""
35909
35910 #. type: verbatim
35911 #: ../src/guestfs.pod:979
35912 #, no-wrap
35913 msgid ""
35914 " exec qemu-kvm -machine pc,accel=tcg \"${args[@]}\"\n"
35915 "\n"
35916 msgstr ""
35917
35918 #. type: =head2
35919 #: ../src/guestfs.pod:981
35920 msgid "ATTACHING TO RUNNING DAEMONS"
35921 msgstr "ДОЛУЧЕННЯ ДО ЗАПУЩЕНИХ ФОНОВИХ СЛУЖБ"
35922
35923 #. type: textblock
35924 #: ../src/guestfs.pod:983
35925 msgid ""
35926 "I<Note (1):> This is B<highly experimental> and has a tendency to eat "
35927 "babies.  Use with caution."
35928 msgstr ""
35929
35930 #. type: textblock
35931 #: ../src/guestfs.pod:986
35932 msgid ""
35933 "I<Note (2):> This section explains how to attach to a running daemon from a "
35934 "low level perspective.  For most users, simply using virt tools such as "
35935 "L<guestfish(1)> with the I<--live> option will \"just work\"."
35936 msgstr ""
35937
35938 #. type: =head3
35939 #: ../src/guestfs.pod:990
35940 msgid "Using guestfs_set_attach_method"
35941 msgstr "За допомогою guestfs_set_attach_method"
35942
35943 #. type: textblock
35944 #: ../src/guestfs.pod:992
35945 msgid ""
35946 "By calling L</guestfs_set_attach_method> you can change how the library "
35947 "connects to the C<guestfsd> daemon in L</guestfs_launch> (read L</"
35948 "ARCHITECTURE> for some background)."
35949 msgstr ""
35950
35951 #. type: textblock
35952 #: ../src/guestfs.pod:996
35953 msgid ""
35954 "The normal attach method is C<appliance>, where a small appliance is created "
35955 "containing the daemon, and then the library connects to this."
35956 msgstr ""
35957
35958 #. type: textblock
35959 #: ../src/guestfs.pod:999
35960 msgid ""
35961 "Setting attach method to C<unix:I<path>> (where I<path> is the path of a "
35962 "Unix domain socket) causes L</guestfs_launch> to connect to an existing "
35963 "daemon over the Unix domain socket."
35964 msgstr ""
35965
35966 #. type: textblock
35967 #: ../src/guestfs.pod:1003
35968 msgid ""
35969 "The normal use for this is to connect to a running virtual machine that "
35970 "contains a C<guestfsd> daemon, and send commands so you can read and write "
35971 "files inside the live virtual machine."
35972 msgstr ""
35973
35974 #. type: =head3
35975 #: ../src/guestfs.pod:1007
35976 msgid "Using guestfs_add_domain with live flag"
35977 msgstr "За допомогою guestfs_add_domain з прапорцем live"
35978
35979 #. type: textblock
35980 #: ../src/guestfs.pod:1009
35981 msgid ""
35982 "L</guestfs_add_domain> provides some help for getting the correct attach "
35983 "method.  If you pass the C<live> option to this function, then (if the "
35984 "virtual machine is running) it will examine the libvirt XML looking for a "
35985 "virtio-serial channel to connect to:"
35986 msgstr ""
35987
35988 #. type: verbatim
35989 #: ../src/guestfs.pod:1015
35990 #, no-wrap
35991 msgid ""
35992 " <domain>\n"
35993 "   ...\n"
35994 "   <devices>\n"
35995 "     ...\n"
35996 "     <channel type='unix'>\n"
35997 "       <source mode='bind' path='/path/to/socket'/>\n"
35998 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
35999 "     </channel>\n"
36000 "     ...\n"
36001 "   </devices>\n"
36002 " </domain>\n"
36003 "\n"
36004 msgstr ""
36005 " <domain>\n"
36006 "   ...\n"
36007 "   <devices>\n"
36008 "     ...\n"
36009 "     <channel type='unix'>\n"
36010 "       <source mode='bind' path='/path/to/socket'/>\n"
36011 "       <target type='virtio' name='org.libguestfs.channel.0'/>\n"
36012 "     </channel>\n"
36013 "     ...\n"
36014 "   </devices>\n"
36015 " </domain>\n"
36016 "\n"
36017
36018 #. type: textblock
36019 #: ../src/guestfs.pod:1027
36020 msgid ""
36021 "L</guestfs_add_domain> extracts C</path/to/socket> and sets the attach "
36022 "method to C<unix:/path/to/socket>."
36023 msgstr ""
36024
36025 #. type: textblock
36026 #: ../src/guestfs.pod:1030
36027 msgid ""
36028 "Some of the libguestfs tools (including guestfish) support a I<--live> "
36029 "option which is passed through to L</guestfs_add_domain> thus allowing you "
36030 "to attach to and modify live virtual machines."
36031 msgstr ""
36032
36033 #. type: textblock
36034 #: ../src/guestfs.pod:1034
36035 msgid ""
36036 "The virtual machine needs to have been set up beforehand so that it has the "
36037 "virtio-serial channel and so that guestfsd is running inside it."
36038 msgstr ""
36039
36040 #. type: =head2
36041 #: ../src/guestfs.pod:1038
36042 msgid "ABI GUARANTEE"
36043 msgstr "ГАРАНТІЯ ЩОДО ABI"
36044
36045 #. type: textblock
36046 #: ../src/guestfs.pod:1040
36047 msgid ""
36048 "We guarantee the libguestfs ABI (binary interface), for public, high-level "
36049 "actions as outlined in this section.  Although we will deprecate some "
36050 "actions, for example if they get replaced by newer calls, we will keep the "
36051 "old actions forever.  This allows you the developer to program in confidence "
36052 "against the libguestfs API."
36053 msgstr ""
36054
36055 #. type: =head2
36056 #: ../src/guestfs.pod:1046
36057 msgid "BLOCK DEVICE NAMING"
36058 msgstr "ІМЕНУВАННЯ БЛОКОВИХ ПРИСТРОЇВ"
36059
36060 #. type: textblock
36061 #: ../src/guestfs.pod:1048
36062 msgid ""
36063 "In the kernel there is now quite a profusion of schemata for naming block "
36064 "devices (in this context, by I<block device> I mean a physical or virtual "
36065 "hard drive).  The original Linux IDE driver used names starting with C</dev/"
36066 "hd*>.  SCSI devices have historically used a different naming scheme, C</dev/"
36067 "sd*>.  When the Linux kernel I<libata> driver became a popular replacement "
36068 "for the old IDE driver (particularly for SATA devices) those devices also "
36069 "used the C</dev/sd*> scheme.  Additionally we now have virtual machines with "
36070 "paravirtualized drivers.  This has created several different naming systems, "
36071 "such as C</dev/vd*> for virtio disks and C</dev/xvd*> for Xen PV disks."
36072 msgstr ""
36073
36074 #. type: textblock
36075 #: ../src/guestfs.pod:1060
36076 msgid ""
36077 "As discussed above, libguestfs uses a qemu appliance running an embedded "
36078 "Linux kernel to access block devices.  We can run a variety of appliances "
36079 "based on a variety of Linux kernels."
36080 msgstr ""
36081
36082 #. type: textblock
36083 #: ../src/guestfs.pod:1064
36084 msgid ""
36085 "This causes a problem for libguestfs because many API calls use device or "
36086 "partition names.  Working scripts and the recipe (example) scripts that we "
36087 "make available over the internet could fail if the naming scheme changes."
36088 msgstr ""
36089
36090 #. type: textblock
36091 #: ../src/guestfs.pod:1069
36092 msgid ""
36093 "Therefore libguestfs defines C</dev/sd*> as the I<standard naming scheme>.  "
36094 "Internally C</dev/sd*> names are translated, if necessary, to other names as "
36095 "required.  For example, under RHEL 5 which uses the C</dev/hd*> scheme, any "
36096 "device parameter C</dev/sda2> is translated to C</dev/hda2> transparently."
36097 msgstr ""
36098
36099 #. type: textblock
36100 #: ../src/guestfs.pod:1075
36101 msgid ""
36102 "Note that this I<only> applies to parameters.  The L</guestfs_list_devices>, "
36103 "L</guestfs_list_partitions> and similar calls return the true names of the "
36104 "devices and partitions as known to the appliance."
36105 msgstr ""
36106
36107 #. type: =head3
36108 #: ../src/guestfs.pod:1080
36109 msgid "ALGORITHM FOR BLOCK DEVICE NAME TRANSLATION"
36110 msgstr ""
36111
36112 #. type: textblock
36113 #: ../src/guestfs.pod:1082
36114 msgid ""
36115 "Usually this translation is transparent.  However in some (very rare)  cases "
36116 "you may need to know the exact algorithm.  Such cases include where you use "
36117 "L</guestfs_config> to add a mixture of virtio and IDE devices to the qemu-"
36118 "based appliance, so have a mixture of C</dev/sd*> and C</dev/vd*> devices."
36119 msgstr ""
36120
36121 #. type: textblock
36122 #: ../src/guestfs.pod:1088
36123 msgid ""
36124 "The algorithm is applied only to I<parameters> which are known to be either "
36125 "device or partition names.  Return values from functions such as L</"
36126 "guestfs_list_devices> are never changed."
36127 msgstr ""
36128
36129 #. type: textblock
36130 #: ../src/guestfs.pod:1096
36131 msgid "Is the string a parameter which is a device or partition name?"
36132 msgstr ""
36133
36134 #. type: textblock
36135 #: ../src/guestfs.pod:1100
36136 msgid "Does the string begin with C</dev/sd>?"
36137 msgstr "Чи починається рядок з C</dev/sd>?"
36138
36139 #. type: textblock
36140 #: ../src/guestfs.pod:1104
36141 msgid ""
36142 "Does the named device exist? If so, we use that device.  However if I<not> "
36143 "then we continue with this algorithm."
36144 msgstr ""
36145
36146 #. type: textblock
36147 #: ../src/guestfs.pod:1109
36148 msgid "Replace initial C</dev/sd> string with C</dev/hd>."
36149 msgstr ""
36150
36151 #. type: textblock
36152 #: ../src/guestfs.pod:1111
36153 msgid "For example, change C</dev/sda2> to C</dev/hda2>."
36154 msgstr ""
36155
36156 #. type: textblock
36157 #: ../src/guestfs.pod:1113
36158 msgid "If that named device exists, use it.  If not, continue."
36159 msgstr ""
36160
36161 #. type: textblock
36162 #: ../src/guestfs.pod:1117
36163 msgid "Replace initial C</dev/sd> string with C</dev/vd>."
36164 msgstr ""
36165
36166 #. type: textblock
36167 #: ../src/guestfs.pod:1119
36168 msgid "If that named device exists, use it.  If not, return an error."
36169 msgstr ""
36170
36171 #. type: =head3
36172 #: ../src/guestfs.pod:1123
36173 msgid "PORTABILITY CONCERNS WITH BLOCK DEVICE NAMING"
36174 msgstr ""
36175
36176 #. type: textblock
36177 #: ../src/guestfs.pod:1125
36178 msgid ""
36179 "Although the standard naming scheme and automatic translation is useful for "
36180 "simple programs and guestfish scripts, for larger programs it is best not to "
36181 "rely on this mechanism."
36182 msgstr ""
36183
36184 #. type: textblock
36185 #: ../src/guestfs.pod:1129
36186 msgid ""
36187 "Where possible for maximum future portability programs using libguestfs "
36188 "should use these future-proof techniques:"
36189 msgstr ""
36190
36191 #. type: textblock
36192 #: ../src/guestfs.pod:1136
36193 msgid ""
36194 "Use L</guestfs_list_devices> or L</guestfs_list_partitions> to list actual "
36195 "device names, and then use those names directly."
36196 msgstr ""
36197
36198 #. type: textblock
36199 #: ../src/guestfs.pod:1139
36200 msgid ""
36201 "Since those device names exist by definition, they will never be translated."
36202 msgstr ""
36203
36204 #. type: textblock
36205 #: ../src/guestfs.pod:1144
36206 msgid ""
36207 "Use higher level ways to identify filesystems, such as LVM names, UUIDs and "
36208 "filesystem labels."
36209 msgstr ""
36210
36211 #. type: =head1
36212 #: ../src/guestfs.pod:1149
36213 msgid "SECURITY"
36214 msgstr "БЕЗПЕКА"
36215
36216 #. type: textblock
36217 #: ../src/guestfs.pod:1151
36218 msgid ""
36219 "This section discusses security implications of using libguestfs, "
36220 "particularly with untrusted or malicious guests or disk images."
36221 msgstr ""
36222
36223 #. type: =head2
36224 #: ../src/guestfs.pod:1154
36225 msgid "GENERAL SECURITY CONSIDERATIONS"
36226 msgstr "ЗАГАЛЬНІ ЗАУВАЖЕННЯ ЩОДО ЗАХИСТУ"
36227
36228 #. type: textblock
36229 #: ../src/guestfs.pod:1156
36230 msgid ""
36231 "Be careful with any files or data that you download from a guest (by "
36232 "\"download\" we mean not just the L</guestfs_download> command but any "
36233 "command that reads files, filenames, directories or anything else from a "
36234 "disk image).  An attacker could manipulate the data to fool your program "
36235 "into doing the wrong thing.  Consider cases such as:"
36236 msgstr ""
36237
36238 #. type: textblock
36239 #: ../src/guestfs.pod:1166
36240 msgid "the data (file etc) not being present"
36241 msgstr ""
36242
36243 #. type: textblock
36244 #: ../src/guestfs.pod:1170
36245 msgid "being present but empty"
36246 msgstr ""
36247
36248 #. type: textblock
36249 #: ../src/guestfs.pod:1174
36250 msgid "being much larger than normal"
36251 msgstr ""
36252
36253 #. type: textblock
36254 #: ../src/guestfs.pod:1178
36255 msgid "containing arbitrary 8 bit data"
36256 msgstr ""
36257
36258 #. type: textblock
36259 #: ../src/guestfs.pod:1182
36260 msgid "being in an unexpected character encoding"
36261 msgstr ""
36262
36263 #. type: textblock
36264 #: ../src/guestfs.pod:1186
36265 msgid "containing homoglyphs."
36266 msgstr ""
36267
36268 #. type: =head2
36269 #: ../src/guestfs.pod:1190
36270 msgid "SECURITY OF MOUNTING FILESYSTEMS"
36271 msgstr "ЗАХИСТ ФАЙЛОВИХ СИСТЕМ МОНТУВАННЯ"
36272
36273 #. type: textblock
36274 #: ../src/guestfs.pod:1192
36275 msgid ""
36276 "When you mount a filesystem under Linux, mistakes in the kernel filesystem "
36277 "(VFS) module can sometimes be escalated into exploits by deliberately "
36278 "creating a malicious, malformed filesystem.  These exploits are very severe "
36279 "for two reasons.  Firstly there are very many filesystem drivers in the "
36280 "kernel, and many of them are infrequently used and not much developer "
36281 "attention has been paid to the code.  Linux userspace helps potential "
36282 "crackers by detecting the filesystem type and automatically choosing the "
36283 "right VFS driver, even if that filesystem type is obscure or unexpected for "
36284 "the administrator.  Secondly, a kernel-level exploit is like a local root "
36285 "exploit (worse in some ways), giving immediate and total access to the "
36286 "system right down to the hardware level."
36287 msgstr ""
36288
36289 #. type: textblock
36290 #: ../src/guestfs.pod:1205
36291 msgid ""
36292 "That explains why you should never mount a filesystem from an untrusted "
36293 "guest on your host kernel.  How about libguestfs? We run a Linux kernel "
36294 "inside a qemu virtual machine, usually running as a non-root user.  The "
36295 "attacker would need to write a filesystem which first exploited the kernel, "
36296 "and then exploited either qemu virtualization (eg. a faulty qemu driver) or "
36297 "the libguestfs protocol, and finally to be as serious as the host kernel "
36298 "exploit it would need to escalate its privileges to root.  This multi-step "
36299 "escalation, performed by a static piece of data, is thought to be extremely "
36300 "hard to do, although we never say 'never' about security issues."
36301 msgstr ""
36302
36303 #. type: textblock
36304 #: ../src/guestfs.pod:1216
36305 msgid ""
36306 "In any case callers can reduce the attack surface by forcing the filesystem "
36307 "type when mounting (use L</guestfs_mount_vfs>)."
36308 msgstr ""
36309
36310 #. type: =head2
36311 #: ../src/guestfs.pod:1219
36312 msgid "PROTOCOL SECURITY"
36313 msgstr "ЗАХИСТ ПРОТОКОЛУ"
36314
36315 #. type: textblock
36316 #: ../src/guestfs.pod:1221
36317 msgid ""
36318 "The protocol is designed to be secure, being based on RFC 4506 (XDR)  with a "
36319 "defined upper message size.  However a program that uses libguestfs must "
36320 "also take care - for example you can write a program that downloads a binary "
36321 "from a disk image and executes it locally, and no amount of protocol "
36322 "security will save you from the consequences."
36323 msgstr ""
36324
36325 #. type: =head2
36326 #: ../src/guestfs.pod:1227
36327 msgid "INSPECTION SECURITY"
36328 msgstr ""
36329
36330 #. type: textblock
36331 #: ../src/guestfs.pod:1229
36332 msgid ""
36333 "Parts of the inspection API (see L</INSPECTION>) return untrusted strings "
36334 "directly from the guest, and these could contain any 8 bit data.  Callers "
36335 "should be careful to escape these before printing them to a structured file "
36336 "(for example, use HTML escaping if creating a web page)."
36337 msgstr ""
36338
36339 #. type: textblock
36340 #: ../src/guestfs.pod:1235
36341 msgid ""
36342 "Guest configuration may be altered in unusual ways by the administrator of "
36343 "the virtual machine, and may not reflect reality (particularly for untrusted "
36344 "or actively malicious guests).  For example we parse the hostname from "
36345 "configuration files like C</etc/sysconfig/network> that we find in the "
36346 "guest, but the guest administrator can easily manipulate these files to "
36347 "provide the wrong hostname."
36348 msgstr ""
36349
36350 #. type: textblock
36351 #: ../src/guestfs.pod:1243
36352 msgid ""
36353 "The inspection API parses guest configuration using two external libraries: "
36354 "Augeas (Linux configuration) and hivex (Windows Registry).  Both are "
36355 "designed to be robust in the face of malicious data, although denial of "
36356 "service attacks are still possible, for example with oversized configuration "
36357 "files."
36358 msgstr ""
36359
36360 #. type: =head2
36361 #: ../src/guestfs.pod:1249
36362 msgid "RUNNING UNTRUSTED GUEST COMMANDS"
36363 msgstr "ЗАПУСК НЕЗАХИЩЕНИХ КОМАНД ГОСТЬОВОЇ СИСТЕМИ"
36364
36365 #. type: textblock
36366 #: ../src/guestfs.pod:1251
36367 msgid ""
36368 "Be very cautious about running commands from the guest.  By running a "
36369 "command in the guest, you are giving CPU time to a binary that you do not "
36370 "control, under the same user account as the library, albeit wrapped in qemu "
36371 "virtualization.  More information and alternatives can be found in the "
36372 "section L</RUNNING COMMANDS>."
36373 msgstr ""
36374
36375 #. type: =head2
36376 #: ../src/guestfs.pod:1257
36377 msgid "CVE-2010-3851"
36378 msgstr "CVE-2010-3851"
36379
36380 #. type: textblock
36381 #: ../src/guestfs.pod:1259
36382 msgid "https://bugzilla.redhat.com/642934"
36383 msgstr "https://bugzilla.redhat.com/642934"
36384
36385 #. type: textblock
36386 #: ../src/guestfs.pod:1261
36387 msgid ""
36388 "This security bug concerns the automatic disk format detection that qemu "
36389 "does on disk images."
36390 msgstr ""
36391
36392 #. type: textblock
36393 #: ../src/guestfs.pod:1264
36394 msgid ""
36395 "A raw disk image is just the raw bytes, there is no header.  Other disk "
36396 "images like qcow2 contain a special header.  Qemu deals with this by looking "
36397 "for one of the known headers, and if none is found then assuming the disk "
36398 "image must be raw."
36399 msgstr ""
36400
36401 #. type: textblock
36402 #: ../src/guestfs.pod:1269
36403 msgid ""
36404 "This allows a guest which has been given a raw disk image to write some "
36405 "other header.  At next boot (or when the disk image is accessed by "
36406 "libguestfs) qemu would do autodetection and think the disk image format was, "
36407 "say, qcow2 based on the header written by the guest."
36408 msgstr ""
36409
36410 #. type: textblock
36411 #: ../src/guestfs.pod:1274
36412 msgid ""
36413 "This in itself would not be a problem, but qcow2 offers many features, one "
36414 "of which is to allow a disk image to refer to another image (called the "
36415 "\"backing disk\").  It does this by placing the path to the backing disk "
36416 "into the qcow2 header.  This path is not validated and could point to any "
36417 "host file (eg. \"/etc/passwd\").  The backing disk is then exposed through "
36418 "\"holes\" in the qcow2 disk image, which of course is completely under the "
36419 "control of the attacker."
36420 msgstr ""
36421
36422 #. type: textblock
36423 #: ../src/guestfs.pod:1282
36424 msgid ""
36425 "In libguestfs this is rather hard to exploit except under two circumstances:"
36426 msgstr ""
36427
36428 #. type: textblock
36429 #: ../src/guestfs.pod:1289
36430 msgid "You have enabled the network or have opened the disk in write mode."
36431 msgstr ""
36432
36433 #. type: textblock
36434 #: ../src/guestfs.pod:1293
36435 msgid ""
36436 "You are also running untrusted code from the guest (see L</RUNNING "
36437 "COMMANDS>)."
36438 msgstr ""
36439
36440 #. type: textblock
36441 #: ../src/guestfs.pod:1298
36442 msgid ""
36443 "The way to avoid this is to specify the expected disk format when adding "
36444 "disks (the optional C<format> option to L</guestfs_add_drive_opts>).  You "
36445 "should always do this if the disk is raw format, and it's a good idea for "
36446 "other cases too."
36447 msgstr ""
36448
36449 #. type: textblock
36450 #: ../src/guestfs.pod:1303
36451 msgid ""
36452 "For disks added from libvirt using calls like L</guestfs_add_domain>, the "
36453 "format is fetched from libvirt and passed through."
36454 msgstr ""
36455
36456 #. type: textblock
36457 #: ../src/guestfs.pod:1306
36458 msgid ""
36459 "For libguestfs tools, use the I<--format> command line parameter as "
36460 "appropriate."
36461 msgstr ""
36462
36463 #. type: =head1
36464 #: ../src/guestfs.pod:1309
36465 msgid "CONNECTION MANAGEMENT"
36466 msgstr "КЕРУВАННЯ З’ЄДНАННЯМ"
36467
36468 #. type: =head2
36469 #: ../src/guestfs.pod:1311
36470 msgid "guestfs_h *"
36471 msgstr "guestfs_h *"
36472
36473 #. type: textblock
36474 #: ../src/guestfs.pod:1313
36475 msgid ""
36476 "C<guestfs_h> is the opaque type representing a connection handle.  Create a "
36477 "handle by calling L</guestfs_create>.  Call L</guestfs_close> to free the "
36478 "handle and release all resources used."
36479 msgstr ""
36480
36481 #. type: textblock
36482 #: ../src/guestfs.pod:1317
36483 msgid ""
36484 "For information on using multiple handles and threads, see the section L</"
36485 "MULTIPLE HANDLES AND MULTIPLE THREADS> above."
36486 msgstr ""
36487
36488 #. type: =head2
36489 #: ../src/guestfs.pod:1320
36490 msgid "guestfs_create"
36491 msgstr "guestfs_create"
36492
36493 #. type: verbatim
36494 #: ../src/guestfs.pod:1322
36495 #, no-wrap
36496 msgid ""
36497 " guestfs_h *guestfs_create (void);\n"
36498 "\n"
36499 msgstr ""
36500 " guestfs_h *guestfs_create (void);\n"
36501 "\n"
36502
36503 #. type: textblock
36504 #: ../src/guestfs.pod:1324
36505 msgid "Create a connection handle."
36506 msgstr "Створити дескриптор з’єднання."
36507
36508 #. type: textblock
36509 #: ../src/guestfs.pod:1326
36510 msgid ""
36511 "On success this returns a non-NULL pointer to a handle.  On error it returns "
36512 "NULL."
36513 msgstr ""
36514
36515 #. type: textblock
36516 #: ../src/guestfs.pod:1329
36517 msgid ""
36518 "You have to \"configure\" the handle after creating it.  This includes "
36519 "calling L</guestfs_add_drive_opts> (or one of the equivalent calls) on the "
36520 "handle at least once."
36521 msgstr ""
36522
36523 #. type: textblock
36524 #: ../src/guestfs.pod:1333
36525 msgid "After configuring the handle, you have to call L</guestfs_launch>."
36526 msgstr ""
36527
36528 #. type: textblock
36529 #: ../src/guestfs.pod:1335
36530 msgid ""
36531 "You may also want to configure error handling for the handle.  See the L</"
36532 "ERROR HANDLING> section below."
36533 msgstr ""
36534
36535 #. type: =head2
36536 #: ../src/guestfs.pod:1338
36537 msgid "guestfs_close"
36538 msgstr "guestfs_close"
36539
36540 #. type: verbatim
36541 #: ../src/guestfs.pod:1340
36542 #, no-wrap
36543 msgid ""
36544 " void guestfs_close (guestfs_h *g);\n"
36545 "\n"
36546 msgstr ""
36547 " void guestfs_close (guestfs_h *g);\n"
36548 "\n"
36549
36550 #. type: textblock
36551 #: ../src/guestfs.pod:1342
36552 msgid "This closes the connection handle and frees up all resources used."
36553 msgstr ""
36554
36555 #. type: textblock
36556 #: ../src/guestfs.pod:1344
36557 msgid ""
36558 "If autosync was set on the handle and the handle was launched, then this "
36559 "implicitly calls various functions to unmount filesystems and sync the "
36560 "disk.  See L</guestfs_set_autosync> for more details."
36561 msgstr ""
36562
36563 #. type: textblock
36564 #: ../src/guestfs.pod:1348
36565 msgid "If a close callback was set on the handle, then it is called."
36566 msgstr ""
36567
36568 #. type: =head1
36569 #: ../src/guestfs.pod:1350
36570 msgid "ERROR HANDLING"
36571 msgstr "ОБРОБКА ПОМИЛОК"
36572
36573 #. type: textblock
36574 #: ../src/guestfs.pod:1352
36575 msgid ""
36576 "API functions can return errors.  For example, almost all functions that "
36577 "return C<int> will return C<-1> to indicate an error."
36578 msgstr ""
36579
36580 #. type: textblock
36581 #: ../src/guestfs.pod:1355
36582 msgid ""
36583 "Additional information is available for errors: an error message string and "
36584 "optionally an error number (errno) if the thing that failed was a system "
36585 "call."
36586 msgstr ""
36587
36588 #. type: textblock
36589 #: ../src/guestfs.pod:1359
36590 msgid ""
36591 "You can get at the additional information about the last error on the handle "
36592 "by calling L</guestfs_last_error>, L</guestfs_last_errno>, and/or by setting "
36593 "up an error handler with L</guestfs_set_error_handler>."
36594 msgstr ""
36595
36596 #. type: textblock
36597 #: ../src/guestfs.pod:1364
36598 msgid ""
36599 "When the handle is created, a default error handler is installed which "
36600 "prints the error message string to C<stderr>.  For small short-running "
36601 "command line programs it is sufficient to do:"
36602 msgstr ""
36603
36604 #. type: verbatim
36605 #: ../src/guestfs.pod:1368
36606 #, no-wrap
36607 msgid ""
36608 " if (guestfs_launch (g) == -1)\n"
36609 "   exit (EXIT_FAILURE);\n"
36610 "\n"
36611 msgstr ""
36612 " if (guestfs_launch (g) == -1)\n"
36613 "   exit (EXIT_FAILURE);\n"
36614 "\n"
36615
36616 #. type: textblock
36617 #: ../src/guestfs.pod:1371
36618 msgid ""
36619 "since the default error handler will ensure that an error message has been "
36620 "printed to C<stderr> before the program exits."
36621 msgstr ""
36622
36623 #. type: textblock
36624 #: ../src/guestfs.pod:1374
36625 msgid ""
36626 "For other programs the caller will almost certainly want to install an "
36627 "alternate error handler or do error handling in-line like this:"
36628 msgstr ""
36629
36630 #. type: verbatim
36631 #: ../src/guestfs.pod:1377
36632 #, no-wrap
36633 msgid ""
36634 " /* This disables the default behaviour of printing errors\n"
36635 "    on stderr. */\n"
36636 " guestfs_set_error_handler (g, NULL, NULL);\n"
36637 " \n"
36638 msgstr ""
36639
36640 #. type: verbatim
36641 #: ../src/guestfs.pod:1381
36642 #, fuzzy, no-wrap
36643 #| msgid ""
36644 #| " if (guestfs_launch (g) == -1) {\n"
36645 #| "   /* Examine the error message and print it etc. */\n"
36646 #| "   char *msg = guestfs_last_error (g);\n"
36647 #| "   int errnum = guestfs_last_errno (g);\n"
36648 #| "   fprintf (stderr, \"%s\\n\", msg);\n"
36649 #| "   /* ... */\n"
36650 #| "  }\n"
36651 #| "\n"
36652 msgid ""
36653 " if (guestfs_launch (g) == -1) {\n"
36654 "   /* Examine the error message and print it etc. */\n"
36655 "   char *msg = guestfs_last_error (g);\n"
36656 "   int errnum = guestfs_last_errno (g);\n"
36657 "   fprintf (stderr, \"%s\", msg);\n"
36658 "   if (errnum != 0)\n"
36659 "     fprintf (stderr, \": %s\", strerror (errnum));\n"
36660 "   fprintf (stderr, \"\\n\");\n"
36661 "   /* ... */\n"
36662 " }\n"
36663 "\n"
36664 msgstr ""
36665 " if (guestfs_launch (g) == -1) {\n"
36666 "   /* Вивчити повідомлення про помилку і вивести його тощо. */\n"
36667 "   char *msg = guestfs_last_error (g);\n"
36668 "   int errnum = guestfs_last_errno (g);\n"
36669 "   fprintf (stderr, \"%s\\n\", msg);\n"
36670 "   /* ... */\n"
36671 "  }\n"
36672 "\n"
36673
36674 #. type: textblock
36675 #: ../src/guestfs.pod:1392
36676 msgid ""
36677 "Out of memory errors are handled differently.  The default action is to call "
36678 "L<abort(3)>.  If this is undesirable, then you can set a handler using L</"
36679 "guestfs_set_out_of_memory_handler>."
36680 msgstr ""
36681
36682 #. type: textblock
36683 #: ../src/guestfs.pod:1396
36684 msgid ""
36685 "L</guestfs_create> returns C<NULL> if the handle cannot be created, and "
36686 "because there is no handle if this happens there is no way to get additional "
36687 "error information.  However L</guestfs_create> is supposed to be a "
36688 "lightweight operation which can only fail because of insufficient memory (it "
36689 "returns NULL in this case)."
36690 msgstr ""
36691
36692 #. type: =head2
36693 #: ../src/guestfs.pod:1402
36694 msgid "guestfs_last_error"
36695 msgstr "guestfs_last_error"
36696
36697 #. type: verbatim
36698 #: ../src/guestfs.pod:1404
36699 #, no-wrap
36700 msgid ""
36701 " const char *guestfs_last_error (guestfs_h *g);\n"
36702 "\n"
36703 msgstr ""
36704 " const char *guestfs_last_error (guestfs_h *g);\n"
36705 "\n"
36706
36707 #. type: textblock
36708 #: ../src/guestfs.pod:1406
36709 msgid ""
36710 "This returns the last error message that happened on C<g>.  If there has not "
36711 "been an error since the handle was created, then this returns C<NULL>."
36712 msgstr ""
36713
36714 #. type: textblock
36715 #: ../src/guestfs.pod:1410
36716 msgid ""
36717 "The lifetime of the returned string is until the next error occurs, or L</"
36718 "guestfs_close> is called."
36719 msgstr ""
36720
36721 #. type: =head2
36722 #: ../src/guestfs.pod:1413
36723 msgid "guestfs_last_errno"
36724 msgstr "guestfs_last_errno"
36725
36726 #. type: verbatim
36727 #: ../src/guestfs.pod:1415
36728 #, no-wrap
36729 msgid ""
36730 " int guestfs_last_errno (guestfs_h *g);\n"
36731 "\n"
36732 msgstr ""
36733 " int guestfs_last_errno (guestfs_h *g);\n"
36734 "\n"
36735
36736 #. type: textblock
36737 #: ../src/guestfs.pod:1417
36738 msgid "This returns the last error number (errno) that happened on C<g>."
36739 msgstr ""
36740
36741 #. type: textblock
36742 #: ../src/guestfs.pod:1419
36743 msgid "If successful, an errno integer not equal to zero is returned."
36744 msgstr ""
36745
36746 #. type: textblock
36747 #: ../src/guestfs.pod:1421
36748 msgid ""
36749 "If no error, this returns 0.  This call can return 0 in three situations:"
36750 msgstr ""
36751
36752 #. type: textblock
36753 #: ../src/guestfs.pod:1428
36754 msgid "There has not been any error on the handle."
36755 msgstr ""
36756
36757 #. type: textblock
36758 #: ../src/guestfs.pod:1432
36759 msgid ""
36760 "There has been an error but the errno was meaningless.  This corresponds to "
36761 "the case where the error did not come from a failed system call, but for "
36762 "some other reason."
36763 msgstr ""
36764
36765 #. type: textblock
36766 #: ../src/guestfs.pod:1438
36767 msgid ""
36768 "There was an error from a failed system call, but for some reason the errno "
36769 "was not captured and returned.  This usually indicates a bug in libguestfs."
36770 msgstr ""
36771
36772 #. type: textblock
36773 #: ../src/guestfs.pod:1444
36774 msgid ""
36775 "Libguestfs tries to convert the errno from inside the applicance into a "
36776 "corresponding errno for the caller (not entirely trivial: the appliance "
36777 "might be running a completely different operating system from the library "
36778 "and error numbers are not standardized across Un*xen).  If this could not be "
36779 "done, then the error is translated to C<EINVAL>.  In practice this should "
36780 "only happen in very rare circumstances."
36781 msgstr ""
36782
36783 #. type: =head2
36784 #: ../src/guestfs.pod:1452
36785 msgid "guestfs_set_error_handler"
36786 msgstr "guestfs_set_error_handler"
36787
36788 #. type: verbatim
36789 #: ../src/guestfs.pod:1454
36790 #, no-wrap
36791 msgid ""
36792 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36793 "                                           void *opaque,\n"
36794 "                                           const char *msg);\n"
36795 " void guestfs_set_error_handler (guestfs_h *g,\n"
36796 "                                 guestfs_error_handler_cb cb,\n"
36797 "                                 void *opaque);\n"
36798 "\n"
36799 msgstr ""
36800 " typedef void (*guestfs_error_handler_cb) (guestfs_h *g,\n"
36801 "                                           void *opaque,\n"
36802 "                                           const char *msg);\n"
36803 " void guestfs_set_error_handler (guestfs_h *g,\n"
36804 "                                 guestfs_error_handler_cb cb,\n"
36805 "                                 void *opaque);\n"
36806 "\n"
36807
36808 #. type: textblock
36809 #: ../src/guestfs.pod:1461
36810 msgid ""
36811 "The callback C<cb> will be called if there is an error.  The parameters "
36812 "passed to the callback are an opaque data pointer and the error message "
36813 "string."
36814 msgstr ""
36815
36816 #. type: textblock
36817 #: ../src/guestfs.pod:1465
36818 msgid ""
36819 "C<errno> is not passed to the callback.  To get that the callback must call "
36820 "L</guestfs_last_errno>."
36821 msgstr ""
36822
36823 #. type: textblock
36824 #: ../src/guestfs.pod:1468
36825 msgid ""
36826 "Note that the message string C<msg> is freed as soon as the callback "
36827 "function returns, so if you want to stash it somewhere you must make your "
36828 "own copy."
36829 msgstr ""
36830
36831 #. type: textblock
36832 #: ../src/guestfs.pod:1472
36833 msgid "The default handler prints messages on C<stderr>."
36834 msgstr ""
36835
36836 #. type: textblock
36837 #: ../src/guestfs.pod:1474
36838 msgid "If you set C<cb> to C<NULL> then I<no> handler is called."
36839 msgstr ""
36840
36841 #. type: =head2
36842 #: ../src/guestfs.pod:1476
36843 msgid "guestfs_get_error_handler"
36844 msgstr "guestfs_get_error_handler"
36845
36846 #. type: verbatim
36847 #: ../src/guestfs.pod:1478
36848 #, no-wrap
36849 msgid ""
36850 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36851 "                                                     void **opaque_rtn);\n"
36852 "\n"
36853 msgstr ""
36854 " guestfs_error_handler_cb guestfs_get_error_handler (guestfs_h *g,\n"
36855 "                                                     void **opaque_rtn);\n"
36856 "\n"
36857
36858 #. type: textblock
36859 #: ../src/guestfs.pod:1481
36860 msgid "Returns the current error handler callback."
36861 msgstr ""
36862
36863 #. type: =head2
36864 #: ../src/guestfs.pod:1483
36865 msgid "guestfs_set_out_of_memory_handler"
36866 msgstr "guestfs_set_out_of_memory_handler"
36867
36868 #. type: verbatim
36869 #: ../src/guestfs.pod:1485
36870 #, fuzzy, no-wrap
36871 #| msgid ""
36872 #| " typedef void (*guestfs_abort_cb) (void);\n"
36873 #| " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36874 #| "                                        guestfs_abort_cb);\n"
36875 #| "\n"
36876 msgid ""
36877 " typedef void (*guestfs_abort_cb) (void);\n"
36878 " void guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36879 "                                         guestfs_abort_cb);\n"
36880 "\n"
36881 msgstr ""
36882 " typedef void (*guestfs_abort_cb) (void);\n"
36883 " int guestfs_set_out_of_memory_handler (guestfs_h *g,\n"
36884 "                                        guestfs_abort_cb);\n"
36885 "\n"
36886
36887 #. type: textblock
36888 #: ../src/guestfs.pod:1489
36889 msgid ""
36890 "The callback C<cb> will be called if there is an out of memory situation.  "
36891 "I<Note this callback must not return>."
36892 msgstr ""
36893
36894 #. type: textblock
36895 #: ../src/guestfs.pod:1492
36896 msgid "The default is to call L<abort(3)>."
36897 msgstr ""
36898
36899 #. type: textblock
36900 #: ../src/guestfs.pod:1494
36901 msgid ""
36902 "You cannot set C<cb> to C<NULL>.  You can't ignore out of memory situations."
36903 msgstr ""
36904
36905 #. type: =head2
36906 #: ../src/guestfs.pod:1497
36907 msgid "guestfs_get_out_of_memory_handler"
36908 msgstr "guestfs_get_out_of_memory_handler"
36909
36910 #. type: verbatim
36911 #: ../src/guestfs.pod:1499
36912 #, no-wrap
36913 msgid ""
36914 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36915 "\n"
36916 msgstr ""
36917 " guestfs_abort_fn guestfs_get_out_of_memory_handler (guestfs_h *g);\n"
36918 "\n"
36919
36920 #. type: textblock
36921 #: ../src/guestfs.pod:1501
36922 msgid "This returns the current out of memory handler."
36923 msgstr ""
36924
36925 #. type: =head1
36926 #: ../src/guestfs.pod:1503
36927 msgid "API CALLS"
36928 msgstr "ВИКЛИКИ API"
36929
36930 #. type: =head1
36931 #: ../src/guestfs.pod:1507
36932 msgid "STRUCTURES"
36933 msgstr "СТРУКТУРИ"
36934
36935 #. type: textblock
36936 #: ../src/guestfs.pod:1509
36937 msgid "@STRUCTS@"
36938 msgstr "@STRUCTS@"
36939
36940 #. type: =head1
36941 #: ../src/guestfs.pod:1511
36942 msgid "AVAILABILITY"
36943 msgstr "ДОСТУПНІСТЬ"
36944
36945 #. type: =head2
36946 #: ../src/guestfs.pod:1513
36947 msgid "GROUPS OF FUNCTIONALITY IN THE APPLIANCE"
36948 msgstr "ГРУПИ ФУНКЦІОНАЛЬНИХ МОЖЛИВОСТЕЙ У ОБРАЗІ ОСНОВНОЇ СИСТЕМИ"
36949
36950 #. type: textblock
36951 #: ../src/guestfs.pod:1515
36952 msgid ""
36953 "Using L</guestfs_available> you can test availability of the following "
36954 "groups of functions.  This test queries the appliance to see if the "
36955 "appliance you are currently using supports the functionality."
36956 msgstr ""
36957
36958 #. type: textblock
36959 #: ../src/guestfs.pod:1520
36960 msgid "@AVAILABILITY@"
36961 msgstr "@AVAILABILITY@"
36962
36963 #. type: =head2
36964 #: ../src/guestfs.pod:1522
36965 msgid "GUESTFISH supported COMMAND"
36966 msgstr ""
36967
36968 #. type: textblock
36969 #: ../src/guestfs.pod:1524
36970 msgid ""
36971 "In L<guestfish(3)> there is a handy interactive command C<supported> which "
36972 "prints out the available groups and whether they are supported by this build "
36973 "of libguestfs.  Note however that you have to do C<run> first."
36974 msgstr ""
36975
36976 #. type: =head2
36977 #: ../src/guestfs.pod:1529
36978 msgid "SINGLE CALLS AT COMPILE TIME"
36979 msgstr ""
36980
36981 #. type: textblock
36982 #: ../src/guestfs.pod:1531
36983 msgid ""
36984 "Since version 1.5.8, C<E<lt>guestfs.hE<gt>> defines symbols for each C API "
36985 "function, such as:"
36986 msgstr ""
36987
36988 #. type: verbatim
36989 #: ../src/guestfs.pod:1534
36990 #, no-wrap
36991 msgid ""
36992 " #define LIBGUESTFS_HAVE_DD 1\n"
36993 "\n"
36994 msgstr ""
36995 " #define LIBGUESTFS_HAVE_DD 1\n"
36996 "\n"
36997
36998 #. type: textblock
36999 #: ../src/guestfs.pod:1536
37000 msgid "if L</guestfs_dd> is available."
37001 msgstr ""
37002
37003 #. type: textblock
37004 #: ../src/guestfs.pod:1538
37005 msgid ""
37006 "Before version 1.5.8, if you needed to test whether a single libguestfs "
37007 "function is available at compile time, we recommended using build tools such "
37008 "as autoconf or cmake.  For example in autotools you could use:"
37009 msgstr ""
37010
37011 #. type: verbatim
37012 #: ../src/guestfs.pod:1543
37013 #, no-wrap
37014 msgid ""
37015 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37016 " AC_CHECK_FUNCS([guestfs_dd])\n"
37017 "\n"
37018 msgstr ""
37019 " AC_CHECK_LIB([guestfs],[guestfs_create])\n"
37020 " AC_CHECK_FUNCS([guestfs_dd])\n"
37021 "\n"
37022
37023 #. type: textblock
37024 #: ../src/guestfs.pod:1546
37025 msgid ""
37026 "which would result in C<HAVE_GUESTFS_DD> being either defined or not defined "
37027 "in your program."
37028 msgstr ""
37029
37030 #. type: =head2
37031 #: ../src/guestfs.pod:1549
37032 msgid "SINGLE CALLS AT RUN TIME"
37033 msgstr ""
37034
37035 #. type: textblock
37036 #: ../src/guestfs.pod:1551
37037 msgid ""
37038 "Testing at compile time doesn't guarantee that a function really exists in "
37039 "the library.  The reason is that you might be dynamically linked against a "
37040 "previous I<libguestfs.so> (dynamic library)  which doesn't have the call.  "
37041 "This situation unfortunately results in a segmentation fault, which is a "
37042 "shortcoming of the C dynamic linking system itself."
37043 msgstr ""
37044
37045 #. type: textblock
37046 #: ../src/guestfs.pod:1558
37047 msgid ""
37048 "You can use L<dlopen(3)> to test if a function is available at run time, as "
37049 "in this example program (note that you still need the compile time check as "
37050 "well):"
37051 msgstr ""
37052
37053 #. type: verbatim
37054 #: ../src/guestfs.pod:1562
37055 #, no-wrap
37056 msgid ""
37057 " #include <stdio.h>\n"
37058 " #include <stdlib.h>\n"
37059 " #include <unistd.h>\n"
37060 " #include <dlfcn.h>\n"
37061 " #include <guestfs.h>\n"
37062 " \n"
37063 msgstr ""
37064 " #include <stdio.h>\n"
37065 " #include <stdlib.h>\n"
37066 " #include <unistd.h>\n"
37067 " #include <dlfcn.h>\n"
37068 " #include <guestfs.h>\n"
37069 " \n"
37070
37071 #. type: verbatim
37072 #: ../src/guestfs.pod:1568
37073 #, no-wrap
37074 msgid ""
37075 " main ()\n"
37076 " {\n"
37077 " #ifdef LIBGUESTFS_HAVE_DD\n"
37078 "   void *dl;\n"
37079 "   int has_function;\n"
37080 " \n"
37081 msgstr ""
37082 " main ()\n"
37083 " {\n"
37084 " #ifdef LIBGUESTFS_HAVE_DD\n"
37085 "   void *dl;\n"
37086 "   int has_function;\n"
37087 " \n"
37088
37089 #. type: verbatim
37090 #: ../src/guestfs.pod:1574
37091 #, no-wrap
37092 msgid ""
37093 "   /* Test if the function guestfs_dd is really available. */\n"
37094 "   dl = dlopen (NULL, RTLD_LAZY);\n"
37095 "   if (!dl) {\n"
37096 "     fprintf (stderr, \"dlopen: %s\\n\", dlerror ());\n"
37097 "     exit (EXIT_FAILURE);\n"
37098 "   }\n"
37099 "   has_function = dlsym (dl, \"guestfs_dd\") != NULL;\n"
37100 "   dlclose (dl);\n"
37101 " \n"
37102 msgstr ""
37103
37104 #. type: verbatim
37105 #: ../src/guestfs.pod:1583
37106 #, no-wrap
37107 msgid ""
37108 "   if (!has_function)\n"
37109 "     printf (\"this libguestfs.so does NOT have guestfs_dd function\\n\");\n"
37110 "   else {\n"
37111 "     printf (\"this libguestfs.so has guestfs_dd function\\n\");\n"
37112 "     /* Now it's safe to call\n"
37113 "     guestfs_dd (g, \"foo\", \"bar\");\n"
37114 "     */\n"
37115 "   }\n"
37116 " #else\n"
37117 "   printf (\"guestfs_dd function was not found at compile time\\n\");\n"
37118 " #endif\n"
37119 "  }\n"
37120 "\n"
37121 msgstr ""
37122
37123 #. type: textblock
37124 #: ../src/guestfs.pod:1596
37125 msgid ""
37126 "You may think the above is an awful lot of hassle, and it is.  There are "
37127 "other ways outside of the C linking system to ensure that this kind of "
37128 "incompatibility never arises, such as using package versioning:"
37129 msgstr ""
37130
37131 #. type: verbatim
37132 #: ../src/guestfs.pod:1601
37133 #, no-wrap
37134 msgid ""
37135 " Requires: libguestfs >= 1.0.80\n"
37136 "\n"
37137 msgstr ""
37138
37139 #. type: =head1
37140 #: ../src/guestfs.pod:1603
37141 msgid "CALLS WITH OPTIONAL ARGUMENTS"
37142 msgstr ""
37143
37144 #. type: textblock
37145 #: ../src/guestfs.pod:1605
37146 msgid ""
37147 "A recent feature of the API is the introduction of calls which take optional "
37148 "arguments.  In C these are declared 3 ways.  The main way is as a call which "
37149 "takes variable arguments (ie. C<...>), as in this example:"
37150 msgstr ""
37151
37152 #. type: verbatim
37153 #: ../src/guestfs.pod:1610
37154 #, no-wrap
37155 msgid ""
37156 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37157 "\n"
37158 msgstr ""
37159 " int guestfs_add_drive_opts (guestfs_h *g, const char *filename, ...);\n"
37160 "\n"
37161
37162 #. type: textblock
37163 #: ../src/guestfs.pod:1612
37164 msgid ""
37165 "Call this with a list of optional arguments, terminated by C<-1>.  So to "
37166 "call with no optional arguments specified:"
37167 msgstr ""
37168
37169 #. type: verbatim
37170 #: ../src/guestfs.pod:1615
37171 #, no-wrap
37172 msgid ""
37173 " guestfs_add_drive_opts (g, filename, -1);\n"
37174 "\n"
37175 msgstr ""
37176 " guestfs_add_drive_opts (g, filename, -1);\n"
37177 "\n"
37178
37179 #. type: textblock
37180 #: ../src/guestfs.pod:1617
37181 msgid "With a single optional argument:"
37182 msgstr ""
37183
37184 #. type: verbatim
37185 #: ../src/guestfs.pod:1619
37186 #, no-wrap
37187 msgid ""
37188 " guestfs_add_drive_opts (g, filename,\n"
37189 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37190 "                         -1);\n"
37191 "\n"
37192 msgstr ""
37193 " guestfs_add_drive_opts (g, filename,\n"
37194 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37195 "                         -1);\n"
37196 "\n"
37197
37198 #. type: textblock
37199 #: ../src/guestfs.pod:1623
37200 msgid "With two:"
37201 msgstr ""
37202
37203 #. type: verbatim
37204 #: ../src/guestfs.pod:1625
37205 #, no-wrap
37206 msgid ""
37207 " guestfs_add_drive_opts (g, filename,\n"
37208 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37209 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37210 "                         -1);\n"
37211 "\n"
37212 msgstr ""
37213 " guestfs_add_drive_opts (g, filename,\n"
37214 "                         GUESTFS_ADD_DRIVE_OPTS_FORMAT, \"qcow2\",\n"
37215 "                         GUESTFS_ADD_DRIVE_OPTS_READONLY, 1,\n"
37216 "                         -1);\n"
37217 "\n"
37218
37219 #. type: textblock
37220 #: ../src/guestfs.pod:1630
37221 msgid ""
37222 "and so forth.  Don't forget the terminating C<-1> otherwise Bad Things will "
37223 "happen!"
37224 msgstr ""
37225
37226 #. type: =head2
37227 #: ../src/guestfs.pod:1633
37228 msgid "USING va_list FOR OPTIONAL ARGUMENTS"
37229 msgstr ""
37230
37231 #. type: textblock
37232 #: ../src/guestfs.pod:1635
37233 msgid ""
37234 "The second variant has the same name with the suffix C<_va>, which works the "
37235 "same way but takes a C<va_list>.  See the C manual for details.  For the "
37236 "example function, this is declared:"
37237 msgstr ""
37238
37239 #. type: verbatim
37240 #: ../src/guestfs.pod:1639
37241 #, no-wrap
37242 msgid ""
37243 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37244 "                                va_list args);\n"
37245 "\n"
37246 msgstr ""
37247 " int guestfs_add_drive_opts_va (guestfs_h *g, const char *filename,\n"
37248 "                                va_list args);\n"
37249 "\n"
37250
37251 #. type: =head2
37252 #: ../src/guestfs.pod:1642
37253 msgid "CONSTRUCTING OPTIONAL ARGUMENTS"
37254 msgstr ""
37255
37256 #. type: textblock
37257 #: ../src/guestfs.pod:1644
37258 msgid ""
37259 "The third variant is useful where you need to construct these calls.  You "
37260 "pass in a structure where you fill in the optional fields.  The structure "
37261 "has a bitmask as the first element which you must set to indicate which "
37262 "fields you have filled in.  For our example function the structure and call "
37263 "are declared:"
37264 msgstr ""
37265
37266 #. type: verbatim
37267 #: ../src/guestfs.pod:1650
37268 #, no-wrap
37269 msgid ""
37270 " struct guestfs_add_drive_opts_argv {\n"
37271 "   uint64_t bitmask;\n"
37272 "   int readonly;\n"
37273 "   const char *format;\n"
37274 "   /* ... */\n"
37275 " };\n"
37276 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37277 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37278 "\n"
37279 msgstr ""
37280 " struct guestfs_add_drive_opts_argv {\n"
37281 "   uint64_t bitmask;\n"
37282 "   int readonly;\n"
37283 "   const char *format;\n"
37284 "   /* ... */\n"
37285 " };\n"
37286 " int guestfs_add_drive_opts_argv (guestfs_h *g, const char *filename,\n"
37287 "              const struct guestfs_add_drive_opts_argv *optargs);\n"
37288 "\n"
37289
37290 #. type: textblock
37291 #: ../src/guestfs.pod:1659
37292 msgid "You could call it like this:"
37293 msgstr ""
37294
37295 #. type: verbatim
37296 #: ../src/guestfs.pod:1661
37297 #, no-wrap
37298 msgid ""
37299 " struct guestfs_add_drive_opts_argv optargs = {\n"
37300 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37301 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37302 "   .readonly = 1,\n"
37303 "   .format = \"qcow2\"\n"
37304 " };\n"
37305 " \n"
37306 msgstr ""
37307 " struct guestfs_add_drive_opts_argv optargs = {\n"
37308 "   .bitmask = GUESTFS_ADD_DRIVE_OPTS_READONLY_BITMASK |\n"
37309 "              GUESTFS_ADD_DRIVE_OPTS_FORMAT_BITMASK,\n"
37310 "   .readonly = 1,\n"
37311 "   .format = \"qcow2\"\n"
37312 " };\n"
37313 " \n"
37314
37315 #. type: verbatim
37316 #: ../src/guestfs.pod:1668
37317 #, no-wrap
37318 msgid ""
37319 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37320 "\n"
37321 msgstr ""
37322 " guestfs_add_drive_opts_argv (g, filename, &optargs);\n"
37323 "\n"
37324
37325 #. type: textblock
37326 #: ../src/guestfs.pod:1676
37327 msgid "The C<_BITMASK> suffix on each option name when specifying the bitmask."
37328 msgstr ""
37329
37330 #. type: textblock
37331 #: ../src/guestfs.pod:1681
37332 msgid "You do not need to fill in all fields of the structure."
37333 msgstr ""
37334
37335 #. type: textblock
37336 #: ../src/guestfs.pod:1685
37337 msgid ""
37338 "There must be a one-to-one correspondence between fields of the structure "
37339 "that are filled in, and bits set in the bitmask."
37340 msgstr ""
37341
37342 #. type: =head2
37343 #: ../src/guestfs.pod:1690
37344 msgid "OPTIONAL ARGUMENTS IN OTHER LANGUAGES"
37345 msgstr ""
37346
37347 #. type: textblock
37348 #: ../src/guestfs.pod:1692
37349 msgid ""
37350 "In other languages, optional arguments are expressed in the way that is "
37351 "natural for that language.  We refer you to the language-specific "
37352 "documentation for more details on that."
37353 msgstr ""
37354
37355 #. type: textblock
37356 #: ../src/guestfs.pod:1696
37357 msgid "For guestfish, see L<guestfish(1)/OPTIONAL ARGUMENTS>."
37358 msgstr ""
37359
37360 #. type: =head2
37361 #: ../src/guestfs.pod:1698
37362 msgid "SETTING CALLBACKS TO HANDLE EVENTS"
37363 msgstr ""
37364
37365 #. type: textblock
37366 #: ../src/guestfs.pod:1700
37367 msgid ""
37368 "B<Note:> This section documents the generic event mechanism introduced in "
37369 "libguestfs 1.10, which you should use in new code if possible.  The old "
37370 "functions C<guestfs_set_log_message_callback>, "
37371 "C<guestfs_set_subprocess_quit_callback>, "
37372 "C<guestfs_set_launch_done_callback>, C<guestfs_set_close_callback> and "
37373 "C<guestfs_set_progress_callback> are no longer documented in this manual "
37374 "page.  Because of the ABI guarantee, the old functions continue to work."
37375 msgstr ""
37376
37377 #. type: textblock
37378 #: ../src/guestfs.pod:1709
37379 msgid ""
37380 "Handles generate events when certain things happen, such as log messages "
37381 "being generated, progress messages during long-running operations, or the "
37382 "handle being closed.  The API calls described below let you register a "
37383 "callback to be called when events happen.  You can register multiple "
37384 "callbacks (for the same, different or overlapping sets of events), and "
37385 "individually remove callbacks.  If callbacks are not removed, then they "
37386 "remain in force until the handle is closed."
37387 msgstr ""
37388
37389 #. type: textblock
37390 #: ../src/guestfs.pod:1717
37391 msgid ""
37392 "In the current implementation, events are only generated synchronously: that "
37393 "means that events (and hence callbacks) can only happen while you are in the "
37394 "middle of making another libguestfs call.  The callback is called in the "
37395 "same thread."
37396 msgstr ""
37397
37398 #. type: textblock
37399 #: ../src/guestfs.pod:1722
37400 msgid ""
37401 "Events may contain a payload, usually nothing (void), an array of 64 bit "
37402 "unsigned integers, or a message buffer.  Payloads are discussed later on."
37403 msgstr ""
37404
37405 #. type: =head3
37406 #: ../src/guestfs.pod:1726
37407 msgid "CLASSES OF EVENTS"
37408 msgstr ""
37409
37410 #. type: =item
37411 #: ../src/guestfs.pod:1730
37412 msgid "GUESTFS_EVENT_CLOSE (payload type: void)"
37413 msgstr ""
37414
37415 #. type: textblock
37416 #: ../src/guestfs.pod:1733
37417 msgid ""
37418 "The callback function will be called while the handle is being closed "
37419 "(synchronously from L</guestfs_close>)."
37420 msgstr ""
37421
37422 #. type: textblock
37423 #: ../src/guestfs.pod:1736
37424 msgid ""
37425 "Note that libguestfs installs an L<atexit(3)> handler to try to clean up "
37426 "handles that are open when the program exits.  This means that this callback "
37427 "might be called indirectly from L<exit(3)>, which can cause unexpected "
37428 "problems in higher-level languages (eg. if your HLL interpreter has already "
37429 "been cleaned up by the time this is called, and if your callback then jumps "
37430 "into some HLL function)."
37431 msgstr ""
37432
37433 #. type: textblock
37434 #: ../src/guestfs.pod:1743
37435 msgid ""
37436 "If no callback is registered: the handle is closed without any callback "
37437 "being invoked."
37438 msgstr ""
37439
37440 #. type: =item
37441 #: ../src/guestfs.pod:1746
37442 msgid "GUESTFS_EVENT_SUBPROCESS_QUIT (payload type: void)"
37443 msgstr ""
37444
37445 #. type: textblock
37446 #: ../src/guestfs.pod:1749
37447 msgid ""
37448 "The callback function will be called when the child process quits, either "
37449 "asynchronously or if killed by L</guestfs_kill_subprocess>.  (This "
37450 "corresponds to a transition from any state to the CONFIG state)."
37451 msgstr ""
37452
37453 #. type: textblock
37454 #: ../src/guestfs.pod:1753 ../src/guestfs.pod:1762 ../src/guestfs.pod:1879
37455 msgid "If no callback is registered: the event is ignored."
37456 msgstr ""
37457
37458 #. type: =item
37459 #: ../src/guestfs.pod:1755
37460 msgid "GUESTFS_EVENT_LAUNCH_DONE (payload type: void)"
37461 msgstr ""
37462
37463 #. type: textblock
37464 #: ../src/guestfs.pod:1758
37465 msgid ""
37466 "The callback function will be called when the child process becomes ready "
37467 "first time after it has been launched.  (This corresponds to a transition "
37468 "from LAUNCHING to the READY state)."
37469 msgstr ""
37470
37471 #. type: =item
37472 #: ../src/guestfs.pod:1764
37473 msgid "GUESTFS_EVENT_PROGRESS (payload type: array of 4 x uint64_t)"
37474 msgstr ""
37475
37476 #. type: textblock
37477 #: ../src/guestfs.pod:1767
37478 msgid ""
37479 "Some long-running operations can generate progress messages.  If this "
37480 "callback is registered, then it will be called each time a progress message "
37481 "is generated (usually two seconds after the operation started, and three "
37482 "times per second thereafter until it completes, although the frequency may "
37483 "change in future versions)."
37484 msgstr ""
37485
37486 #. type: textblock
37487 #: ../src/guestfs.pod:1773
37488 msgid ""
37489 "The callback receives in the payload four unsigned 64 bit numbers which are "
37490 "(in order): C<proc_nr>, C<serial>, C<position>, C<total>."
37491 msgstr ""
37492
37493 #. type: textblock
37494 #: ../src/guestfs.pod:1776
37495 msgid ""
37496 "The units of C<total> are not defined, although for some operations C<total> "
37497 "may relate in some way to the amount of data to be transferred (eg. in bytes "
37498 "or megabytes), and C<position> may be the portion which has been transferred."
37499 msgstr ""
37500
37501 #. type: textblock
37502 #: ../src/guestfs.pod:1781
37503 msgid "The only defined and stable parts of the API are:"
37504 msgstr ""
37505
37506 #. type: textblock
37507 #: ../src/guestfs.pod:1787
37508 msgid ""
37509 "The callback can display to the user some type of progress bar or indicator "
37510 "which shows the ratio of C<position>:C<total>."
37511 msgstr ""
37512
37513 #. type: textblock
37514 #: ../src/guestfs.pod:1792
37515 msgid "0 E<lt>= C<position> E<lt>= C<total>"
37516 msgstr ""
37517
37518 #. type: textblock
37519 #: ../src/guestfs.pod:1796
37520 msgid ""
37521 "If any progress notification is sent during a call, then a final progress "
37522 "notification is always sent when C<position> = C<total> (I<unless> the call "
37523 "fails with an error)."
37524 msgstr ""
37525
37526 #. type: textblock
37527 #: ../src/guestfs.pod:1800
37528 msgid ""
37529 "This is to simplify caller code, so callers can easily set the progress "
37530 "indicator to \"100%\" at the end of the operation, without requiring special "
37531 "code to detect this case."
37532 msgstr ""
37533
37534 #. type: textblock
37535 #: ../src/guestfs.pod:1806
37536 msgid ""
37537 "For some calls we are unable to estimate the progress of the call, but we "
37538 "can still generate progress messages to indicate activity.  This is known as "
37539 "\"pulse mode\", and is directly supported by certain progress bar "
37540 "implementations (eg. GtkProgressBar)."
37541 msgstr ""
37542
37543 #. type: textblock
37544 #: ../src/guestfs.pod:1811
37545 msgid ""
37546 "For these calls, zero or more progress messages are generated with "
37547 "C<position = 0> and C<total = 1>, followed by a final message with "
37548 "C<position = total = 1>."
37549 msgstr ""
37550
37551 #. type: textblock
37552 #: ../src/guestfs.pod:1815
37553 msgid ""
37554 "As noted above, if the call fails with an error then the final message may "
37555 "not be generated."
37556 msgstr ""
37557
37558 #. type: textblock
37559 #: ../src/guestfs.pod:1820
37560 msgid ""
37561 "The callback also receives the procedure number (C<proc_nr>) and serial "
37562 "number (C<serial>) of the call.  These are only useful for debugging "
37563 "protocol issues, and the callback can normally ignore them.  The callback "
37564 "may want to print these numbers in error messages or debugging messages."
37565 msgstr ""
37566
37567 #. type: textblock
37568 #: ../src/guestfs.pod:1826
37569 msgid "If no callback is registered: progress messages are discarded."
37570 msgstr ""
37571
37572 #. type: =item
37573 #: ../src/guestfs.pod:1828
37574 msgid "GUESTFS_EVENT_APPLIANCE (payload type: message buffer)"
37575 msgstr ""
37576
37577 #. type: textblock
37578 #: ../src/guestfs.pod:1831
37579 msgid ""
37580 "The callback function is called whenever a log message is generated by qemu, "
37581 "the appliance kernel, guestfsd (daemon), or utility programs."
37582 msgstr ""
37583
37584 #. type: textblock
37585 #: ../src/guestfs.pod:1834
37586 msgid ""
37587 "If the verbose flag (L</guestfs_set_verbose>) is set before launch (L</"
37588 "guestfs_launch>) then additional debug messages are generated."
37589 msgstr ""
37590
37591 #. type: textblock
37592 #: ../src/guestfs.pod:1837 ../src/guestfs.pod:1851
37593 msgid ""
37594 "If no callback is registered: the messages are discarded unless the verbose "
37595 "flag is set in which case they are sent to stderr.  You can override the "
37596 "printing of verbose messages to stderr by setting up a callback."
37597 msgstr ""
37598
37599 #. type: =item
37600 #: ../src/guestfs.pod:1842
37601 msgid "GUESTFS_EVENT_LIBRARY (payload type: message buffer)"
37602 msgstr ""
37603
37604 #. type: textblock
37605 #: ../src/guestfs.pod:1845
37606 msgid ""
37607 "The callback function is called whenever a log message is generated by the "
37608 "library part of libguestfs."
37609 msgstr ""
37610
37611 #. type: textblock
37612 #: ../src/guestfs.pod:1848
37613 msgid ""
37614 "If the verbose flag (L</guestfs_set_verbose>) is set then additional debug "
37615 "messages are generated."
37616 msgstr ""
37617
37618 #. type: =item
37619 #: ../src/guestfs.pod:1856
37620 msgid "GUESTFS_EVENT_TRACE (payload type: message buffer)"
37621 msgstr ""
37622
37623 #. type: textblock
37624 #: ../src/guestfs.pod:1859
37625 msgid ""
37626 "The callback function is called whenever a trace message is generated.  This "
37627 "only applies if the trace flag (L</guestfs_set_trace>) is set."
37628 msgstr ""
37629
37630 #. type: textblock
37631 #: ../src/guestfs.pod:1862
37632 msgid ""
37633 "If no callback is registered: the messages are sent to stderr.  You can "
37634 "override the printing of trace messages to stderr by setting up a callback."
37635 msgstr ""
37636
37637 #. type: =item
37638 #: ../src/guestfs.pod:1866
37639 msgid "GUESTFS_EVENT_ENTER (payload type: function name)"
37640 msgstr ""
37641
37642 #. type: textblock
37643 #: ../src/guestfs.pod:1869
37644 msgid ""
37645 "The callback function is called whenever a libguestfs function is entered."
37646 msgstr ""
37647
37648 #. type: textblock
37649 #: ../src/guestfs.pod:1872
37650 msgid ""
37651 "The payload is a string which contains the name of the function that we are "
37652 "entering (not including C<guestfs_> prefix)."
37653 msgstr ""
37654
37655 #. type: textblock
37656 #: ../src/guestfs.pod:1875
37657 msgid ""
37658 "Note that libguestfs functions can call themselves, so you may see many "
37659 "events from a single call.  A few libguestfs functions do not generate this "
37660 "event."
37661 msgstr ""
37662
37663 #. type: =head3
37664 #: ../src/guestfs.pod:1883
37665 msgid "guestfs_set_event_callback"
37666 msgstr ""
37667
37668 #. type: verbatim
37669 #: ../src/guestfs.pod:1885
37670 #, no-wrap
37671 msgid ""
37672 " int guestfs_set_event_callback (guestfs_h *g,\n"
37673 "                                 guestfs_event_callback cb,\n"
37674 "                                 uint64_t event_bitmask,\n"
37675 "                                 int flags,\n"
37676 "                                 void *opaque);\n"
37677 "\n"
37678 msgstr ""
37679
37680 #. type: textblock
37681 #: ../src/guestfs.pod:1891
37682 msgid ""
37683 "This function registers a callback (C<cb>) for all event classes in the "
37684 "C<event_bitmask>."
37685 msgstr ""
37686
37687 #. type: textblock
37688 #: ../src/guestfs.pod:1894
37689 msgid ""
37690 "For example, to register for all log message events, you could call this "
37691 "function with the bitmask C<GUESTFS_EVENT_APPLIANCE|GUESTFS_EVENT_LIBRARY>.  "
37692 "To register a single callback for all possible classes of events, use "
37693 "C<GUESTFS_EVENT_ALL>."
37694 msgstr ""
37695
37696 #. type: textblock
37697 #: ../src/guestfs.pod:1900
37698 msgid "C<flags> should always be passed as 0."
37699 msgstr ""
37700
37701 #. type: textblock
37702 #: ../src/guestfs.pod:1902
37703 msgid ""
37704 "C<opaque> is an opaque pointer which is passed to the callback.  You can use "
37705 "it for any purpose."
37706 msgstr ""
37707
37708 #. type: textblock
37709 #: ../src/guestfs.pod:1905
37710 msgid ""
37711 "The return value is the event handle (an integer) which you can use to "
37712 "delete the callback (see below)."
37713 msgstr ""
37714
37715 #. type: textblock
37716 #: ../src/guestfs.pod:1908
37717 msgid ""
37718 "If there is an error, this function returns C<-1>, and sets the error in the "
37719 "handle in the usual way (see L</guestfs_last_error> etc.)"
37720 msgstr ""
37721
37722 #. type: textblock
37723 #: ../src/guestfs.pod:1911
37724 msgid ""
37725 "Callbacks remain in effect until they are deleted, or until the handle is "
37726 "closed."
37727 msgstr ""
37728
37729 #. type: textblock
37730 #: ../src/guestfs.pod:1914
37731 msgid ""
37732 "In the case where multiple callbacks are registered for a particular event "
37733 "class, all of the callbacks are called.  The order in which multiple "
37734 "callbacks are called is not defined."
37735 msgstr ""
37736
37737 #. type: =head3
37738 #: ../src/guestfs.pod:1918
37739 msgid "guestfs_delete_event_callback"
37740 msgstr ""
37741
37742 #. type: verbatim
37743 #: ../src/guestfs.pod:1920
37744 #, no-wrap
37745 msgid ""
37746 " void guestfs_delete_event_callback (guestfs_h *g, int event_handle);\n"
37747 "\n"
37748 msgstr ""
37749
37750 #. type: textblock
37751 #: ../src/guestfs.pod:1922
37752 msgid ""
37753 "Delete a callback that was previously registered.  C<event_handle> should be "
37754 "the integer that was returned by a previous call to "
37755 "C<guestfs_set_event_callback> on the same handle."
37756 msgstr ""
37757
37758 #. type: =head3
37759 #: ../src/guestfs.pod:1926
37760 msgid "guestfs_event_callback"
37761 msgstr ""
37762
37763 #. type: verbatim
37764 #: ../src/guestfs.pod:1928
37765 #, no-wrap
37766 msgid ""
37767 " typedef void (*guestfs_event_callback) (\n"
37768 "                  guestfs_h *g,\n"
37769 "                  void *opaque,\n"
37770 "                  uint64_t event,\n"
37771 "                  int event_handle,\n"
37772 "                  int flags,\n"
37773 "                  const char *buf, size_t buf_len,\n"
37774 "                  const uint64_t *array, size_t array_len);\n"
37775 "\n"
37776 msgstr ""
37777
37778 #. type: textblock
37779 #: ../src/guestfs.pod:1937
37780 msgid ""
37781 "This is the type of the event callback function that you have to provide."
37782 msgstr ""
37783
37784 #. type: textblock
37785 #: ../src/guestfs.pod:1940
37786 msgid ""
37787 "The basic parameters are: the handle (C<g>), the opaque user pointer "
37788 "(C<opaque>), the event class (eg. C<GUESTFS_EVENT_PROGRESS>), the event "
37789 "handle, and C<flags> which in the current API you should ignore."
37790 msgstr ""
37791
37792 #. type: textblock
37793 #: ../src/guestfs.pod:1944
37794 msgid ""
37795 "The remaining parameters contain the event payload (if any).  Each event may "
37796 "contain a payload, which usually relates to the event class, but for future "
37797 "proofing your code should be written to handle any payload for any event "
37798 "class."
37799 msgstr ""
37800
37801 #. type: textblock
37802 #: ../src/guestfs.pod:1949
37803 msgid ""
37804 "C<buf> and C<buf_len> contain a message buffer (if C<buf_len == 0>, then "
37805 "there is no message buffer).  Note that this message buffer can contain "
37806 "arbitrary 8 bit data, including NUL bytes."
37807 msgstr ""
37808
37809 #. type: textblock
37810 #: ../src/guestfs.pod:1953
37811 msgid ""
37812 "C<array> and C<array_len> is an array of 64 bit unsigned integers.  At the "
37813 "moment this is only used for progress messages."
37814 msgstr ""
37815
37816 #. type: =head3
37817 #: ../src/guestfs.pod:1956
37818 msgid "EXAMPLE: CAPTURING LOG MESSAGES"
37819 msgstr ""
37820
37821 #. type: textblock
37822 #: ../src/guestfs.pod:1958
37823 msgid ""
37824 "One motivation for the generic event API was to allow GUI programs to "
37825 "capture debug and other messages.  In libguestfs E<le> 1.8 these were sent "
37826 "unconditionally to C<stderr>."
37827 msgstr ""
37828
37829 #. type: textblock
37830 #: ../src/guestfs.pod:1962
37831 msgid ""
37832 "Events associated with log messages are: C<GUESTFS_EVENT_LIBRARY>, "
37833 "C<GUESTFS_EVENT_APPLIANCE> and C<GUESTFS_EVENT_TRACE>.  (Note that error "
37834 "messages are not events; you must capture error messages separately)."
37835 msgstr ""
37836
37837 #. type: textblock
37838 #: ../src/guestfs.pod:1967
37839 msgid ""
37840 "Programs have to set up a callback to capture the classes of events of "
37841 "interest:"
37842 msgstr ""
37843
37844 #. type: verbatim
37845 #: ../src/guestfs.pod:1970
37846 #, no-wrap
37847 msgid ""
37848 " int eh =\n"
37849 "   guestfs_set_event_callback\n"
37850 "     (g, message_callback,\n"
37851 "      GUESTFS_EVENT_LIBRARY|GUESTFS_EVENT_APPLIANCE|\n"
37852 "      GUESTFS_EVENT_TRACE,\n"
37853 "      0, NULL) == -1)\n"
37854 " if (eh == -1) {\n"
37855 "   // handle error in the usual way\n"
37856 " }\n"
37857 "\n"
37858 msgstr ""
37859
37860 #. type: textblock
37861 #: ../src/guestfs.pod:1980
37862 msgid ""
37863 "The callback can then direct messages to the appropriate place.  In this "
37864 "example, messages are directed to syslog:"
37865 msgstr ""
37866
37867 #. type: verbatim
37868 #: ../src/guestfs.pod:1983
37869 #, no-wrap
37870 msgid ""
37871 " static void\n"
37872 " message_callback (\n"
37873 "         guestfs_h *g,\n"
37874 "         void *opaque,\n"
37875 "         uint64_t event,\n"
37876 "         int event_handle,\n"
37877 "         int flags,\n"
37878 "         const char *buf, size_t buf_len,\n"
37879 "         const uint64_t *array, size_t array_len)\n"
37880 " {\n"
37881 "   const int priority = LOG_USER|LOG_INFO;\n"
37882 "   if (buf_len > 0)\n"
37883 "     syslog (priority, \"event 0x%lx: %s\", event, buf);\n"
37884 " }\n"
37885 "\n"
37886 msgstr ""
37887
37888 #. type: =head1
37889 #: ../src/guestfs.pod:1998
37890 msgid "CANCELLING LONG TRANSFERS"
37891 msgstr ""
37892
37893 #. type: textblock
37894 #: ../src/guestfs.pod:2000
37895 msgid ""
37896 "Some operations can be cancelled by the caller while they are in progress.  "
37897 "Currently only operations that involve uploading or downloading data can be "
37898 "cancelled (technically: operations that have C<FileIn> or C<FileOut> "
37899 "parameters in the generator)."
37900 msgstr ""
37901
37902 #. type: =head2
37903 #: ../src/guestfs.pod:2005
37904 msgid "guestfs_user_cancel"
37905 msgstr ""
37906
37907 #. type: verbatim
37908 #: ../src/guestfs.pod:2007
37909 #, no-wrap
37910 msgid ""
37911 " void guestfs_user_cancel (guestfs_h *g);\n"
37912 "\n"
37913 msgstr ""
37914
37915 #. type: textblock
37916 #: ../src/guestfs.pod:2009
37917 msgid ""
37918 "C<guestfs_user_cancel> cancels the current upload or download operation."
37919 msgstr ""
37920
37921 #. type: textblock
37922 #: ../src/guestfs.pod:2012
37923 msgid ""
37924 "Unlike most other libguestfs calls, this function is signal safe and thread "
37925 "safe.  You can call it from a signal handler or from another thread, without "
37926 "needing to do any locking."
37927 msgstr ""
37928
37929 #. type: textblock
37930 #: ../src/guestfs.pod:2016
37931 msgid ""
37932 "The transfer that was in progress (if there is one) will stop shortly "
37933 "afterwards, and will return an error.  The errno (see L</"
37934 "guestfs_last_errno>) is set to C<EINTR>, so you can test for this to find "
37935 "out if the operation was cancelled or failed because of another error."
37936 msgstr ""
37937
37938 #. type: textblock
37939 #: ../src/guestfs.pod:2022
37940 msgid ""
37941 "No cleanup is performed: for example, if a file was being uploaded then "
37942 "after cancellation there may be a partially uploaded file.  It is the "
37943 "caller's responsibility to clean up if necessary."
37944 msgstr ""
37945
37946 #. type: textblock
37947 #: ../src/guestfs.pod:2026
37948 msgid "There are two common places that you might call C<guestfs_user_cancel>."
37949 msgstr ""
37950
37951 #. type: textblock
37952 #: ../src/guestfs.pod:2028
37953 msgid ""
37954 "In an interactive text-based program, you might call it from a C<SIGINT> "
37955 "signal handler so that pressing C<^C> cancels the current operation.  (You "
37956 "also need to call L</guestfs_set_pgroup> so that child processes don't "
37957 "receive the C<^C> signal)."
37958 msgstr ""
37959
37960 #. type: textblock
37961 #: ../src/guestfs.pod:2033
37962 msgid ""
37963 "In a graphical program, when the main thread is displaying a progress bar "
37964 "with a cancel button, wire up the cancel button to call this function."
37965 msgstr ""
37966
37967 #. type: =head1
37968 #: ../src/guestfs.pod:2037
37969 msgid "PRIVATE DATA AREA"
37970 msgstr ""
37971
37972 #. type: textblock
37973 #: ../src/guestfs.pod:2039
37974 msgid ""
37975 "You can attach named pieces of private data to the libguestfs handle, fetch "
37976 "them by name, and walk over them, for the lifetime of the handle.  This is "
37977 "called the private data area and is only available from the C API."
37978 msgstr ""
37979
37980 #. type: textblock
37981 #: ../src/guestfs.pod:2044
37982 msgid "To attach a named piece of data, use the following call:"
37983 msgstr ""
37984
37985 #. type: verbatim
37986 #: ../src/guestfs.pod:2046
37987 #, no-wrap
37988 msgid ""
37989 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37990 "\n"
37991 msgstr ""
37992 " void guestfs_set_private (guestfs_h *g, const char *key, void *data);\n"
37993 "\n"
37994
37995 #. type: textblock
37996 #: ../src/guestfs.pod:2048
37997 msgid ""
37998 "C<key> is the name to associate with this data, and C<data> is an arbitrary "
37999 "pointer (which can be C<NULL>).  Any previous item with the same key is "
38000 "overwritten."
38001 msgstr ""
38002
38003 #. type: textblock
38004 #: ../src/guestfs.pod:2052
38005 msgid ""
38006 "You can use any C<key> you want, but your key should I<not> start with an "
38007 "underscore character.  Keys beginning with an underscore character are "
38008 "reserved for internal libguestfs purposes (eg. for implementing language "
38009 "bindings).  It is recommended that you prefix the key with some unique "
38010 "string to avoid collisions with other users."
38011 msgstr ""
38012
38013 #. type: textblock
38014 #: ../src/guestfs.pod:2058
38015 msgid "To retrieve the pointer, use:"
38016 msgstr ""
38017
38018 #. type: verbatim
38019 #: ../src/guestfs.pod:2060
38020 #, no-wrap
38021 msgid ""
38022 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38023 "\n"
38024 msgstr ""
38025 " void *guestfs_get_private (guestfs_h *g, const char *key);\n"
38026 "\n"
38027
38028 #. type: textblock
38029 #: ../src/guestfs.pod:2062
38030 msgid ""
38031 "This function returns C<NULL> if either no data is found associated with "
38032 "C<key>, or if the user previously set the C<key>'s C<data> pointer to "
38033 "C<NULL>."
38034 msgstr ""
38035
38036 #. type: textblock
38037 #: ../src/guestfs.pod:2066
38038 msgid ""
38039 "Libguestfs does not try to look at or interpret the C<data> pointer in any "
38040 "way.  As far as libguestfs is concerned, it need not be a valid pointer at "
38041 "all.  In particular, libguestfs does I<not> try to free the data when the "
38042 "handle is closed.  If the data must be freed, then the caller must either "
38043 "free it before calling L</guestfs_close> or must set up a close callback to "
38044 "do it (see L</GUESTFS_EVENT_CLOSE>)."
38045 msgstr ""
38046
38047 #. type: textblock
38048 #: ../src/guestfs.pod:2073
38049 msgid "To walk over all entries, use these two functions:"
38050 msgstr ""
38051
38052 #. type: verbatim
38053 #: ../src/guestfs.pod:2075
38054 #, no-wrap
38055 msgid ""
38056 " void *guestfs_first_private (guestfs_h *g, const char **key_rtn);\n"
38057 "\n"
38058 msgstr ""
38059
38060 #. type: verbatim
38061 #: ../src/guestfs.pod:2077
38062 #, no-wrap
38063 msgid ""
38064 " void *guestfs_next_private (guestfs_h *g, const char **key_rtn);\n"
38065 "\n"
38066 msgstr ""
38067
38068 #. type: textblock
38069 #: ../src/guestfs.pod:2079
38070 msgid ""
38071 "C<guestfs_first_private> returns the first key, pointer pair (\"first\" does "
38072 "not have any particular meaning -- keys are not returned in any defined "
38073 "order).  A pointer to the key is returned in C<*key_rtn> and the "
38074 "corresponding data pointer is returned from the function.  C<NULL> is "
38075 "returned if there are no keys stored in the handle."
38076 msgstr ""
38077
38078 #. type: textblock
38079 #: ../src/guestfs.pod:2085
38080 msgid ""
38081 "C<guestfs_next_private> returns the next key, pointer pair.  The return "
38082 "value of this function is also C<NULL> is there are no further entries to "
38083 "return."
38084 msgstr ""
38085
38086 #. type: textblock
38087 #: ../src/guestfs.pod:2089
38088 msgid "Notes about walking over entries:"
38089 msgstr ""
38090
38091 #. type: textblock
38092 #: ../src/guestfs.pod:2095
38093 msgid ""
38094 "You must not call C<guestfs_set_private> while walking over the entries."
38095 msgstr ""
38096
38097 #. type: textblock
38098 #: ../src/guestfs.pod:2100
38099 msgid ""
38100 "The handle maintains an internal iterator which is reset when you call "
38101 "C<guestfs_first_private>.  This internal iterator is invalidated when you "
38102 "call C<guestfs_set_private>."
38103 msgstr ""
38104
38105 #. type: textblock
38106 #: ../src/guestfs.pod:2106
38107 msgid "If you have set the data pointer associated with a key to C<NULL>, ie:"
38108 msgstr ""
38109
38110 #. type: verbatim
38111 #: ../src/guestfs.pod:2108
38112 #, no-wrap
38113 msgid ""
38114 " guestfs_set_private (g, key, NULL);\n"
38115 "\n"
38116 msgstr ""
38117
38118 #. type: textblock
38119 #: ../src/guestfs.pod:2110
38120 msgid "then that C<key> is not returned when walking."
38121 msgstr ""
38122
38123 #. type: textblock
38124 #: ../src/guestfs.pod:2114
38125 msgid ""
38126 "C<*key_rtn> is only valid until the next call to C<guestfs_first_private>, "
38127 "C<guestfs_next_private> or C<guestfs_set_private>."
38128 msgstr ""
38129
38130 #. type: textblock
38131 #: ../src/guestfs.pod:2120
38132 msgid ""
38133 "The following example code shows how to print all keys and data pointers "
38134 "that are associated with the handle C<g>:"
38135 msgstr ""
38136
38137 #. type: verbatim
38138 #: ../src/guestfs.pod:2123
38139 #, no-wrap
38140 msgid ""
38141 " const char *key;\n"
38142 " void *data = guestfs_first_private (g, &key);\n"
38143 " while (data != NULL)\n"
38144 "   {\n"
38145 "     printf (\"key = %s, data = %p\\n\", key, data);\n"
38146 "     data = guestfs_next_private (g, &key);\n"
38147 "   }\n"
38148 "\n"
38149 msgstr ""
38150
38151 #. type: textblock
38152 #: ../src/guestfs.pod:2131
38153 msgid ""
38154 "More commonly you are only interested in keys that begin with an application-"
38155 "specific prefix C<foo_>.  Modify the loop like so:"
38156 msgstr ""
38157
38158 #. type: verbatim
38159 #: ../src/guestfs.pod:2134
38160 #, no-wrap
38161 msgid ""
38162 " const char *key;\n"
38163 " void *data = guestfs_first_private (g, &key);\n"
38164 " while (data != NULL)\n"
38165 "   {\n"
38166 "     if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38167 "       printf (\"key = %s, data = %p\\n\", key, data);\n"
38168 "     data = guestfs_next_private (g, &key);\n"
38169 "   }\n"
38170 "\n"
38171 msgstr ""
38172
38173 #. type: textblock
38174 #: ../src/guestfs.pod:2143
38175 msgid ""
38176 "If you need to modify keys while walking, then you have to jump back to the "
38177 "beginning of the loop.  For example, to delete all keys prefixed with "
38178 "C<foo_>:"
38179 msgstr ""
38180
38181 #. type: verbatim
38182 #: ../src/guestfs.pod:2147
38183 #, no-wrap
38184 msgid ""
38185 "  const char *key;\n"
38186 "  void *data;\n"
38187 " again:\n"
38188 "  data = guestfs_first_private (g, &key);\n"
38189 "  while (data != NULL)\n"
38190 "    {\n"
38191 "      if (strncmp (key, \"foo_\", strlen (\"foo_\")) == 0)\n"
38192 "        {\n"
38193 "          guestfs_set_private (g, key, NULL);\n"
38194 "          /* note that 'key' pointer is now invalid, and so is\n"
38195 "             the internal iterator */\n"
38196 "          goto again;\n"
38197 "        }\n"
38198 "      data = guestfs_next_private (g, &key);\n"
38199 "    }\n"
38200 "\n"
38201 msgstr ""
38202
38203 #. type: textblock
38204 #: ../src/guestfs.pod:2163
38205 msgid ""
38206 "Note that the above loop is guaranteed to terminate because the keys are "
38207 "being deleted, but other manipulations of keys within the loop might not "
38208 "terminate unless you also maintain an indication of which keys have been "
38209 "visited."
38210 msgstr ""
38211
38212 #. type: =end
38213 #: ../src/guestfs.pod:2168 ../src/guestfs.pod:2173
38214 msgid "html"
38215 msgstr "html"
38216
38217 #. type: textblock
38218 #: ../src/guestfs.pod:2170
38219 msgid ""
38220 "<!-- old anchor for the next section --> <a name="
38221 "\"state_machine_and_low_level_event_api\"/>"
38222 msgstr ""
38223 "<!-- old anchor for the next section --> <a name="
38224 "\"state_machine_and_low_level_event_api\"/>"
38225
38226 #. type: =head1
38227 #: ../src/guestfs.pod:2175
38228 msgid "ARCHITECTURE"
38229 msgstr "АРХІТЕКТУРА"
38230
38231 #. type: textblock
38232 #: ../src/guestfs.pod:2177
38233 msgid ""
38234 "Internally, libguestfs is implemented by running an appliance (a special "
38235 "type of small virtual machine) using L<qemu(1)>.  Qemu runs as a child "
38236 "process of the main program."
38237 msgstr ""
38238
38239 #. type: verbatim
38240 #: ../src/guestfs.pod:2181
38241 #, no-wrap
38242 msgid ""
38243 "  ___________________\n"
38244 " /                   \\\n"
38245 " | main program      |\n"
38246 " |                   |\n"
38247 " |                   |           child process / appliance\n"
38248 " |                   |           __________________________\n"
38249 " |                   |          / qemu                     \\\n"
38250 " +-------------------+   RPC    |      +-----------------+ |\n"
38251 " | libguestfs     <--------------------> guestfsd        | |\n"
38252 " |                   |          |      +-----------------+ |\n"
38253 " \\___________________/          |      | Linux kernel    | |\n"
38254 "                                |      +--^--------------+ |\n"
38255 "                                \\_________|________________/\n"
38256 "                                          |\n"
38257 "                                   _______v______\n"
38258 "                                  /              \\\n"
38259 "                                  | Device or    |\n"
38260 "                                  | disk image   |\n"
38261 "                                  \\______________/\n"
38262 "\n"
38263 msgstr ""
38264
38265 #. type: textblock
38266 #: ../src/guestfs.pod:2201
38267 msgid ""
38268 "The library, linked to the main program, creates the child process and hence "
38269 "the appliance in the L</guestfs_launch> function."
38270 msgstr ""
38271
38272 #. type: textblock
38273 #: ../src/guestfs.pod:2204
38274 msgid ""
38275 "Inside the appliance is a Linux kernel and a complete stack of userspace "
38276 "tools (such as LVM and ext2 programs) and a small controlling daemon called "
38277 "L</guestfsd>.  The library talks to L</guestfsd> using remote procedure "
38278 "calls (RPC).  There is a mostly one-to-one correspondence between libguestfs "
38279 "API calls and RPC calls to the daemon.  Lastly the disk image(s) are "
38280 "attached to the qemu process which translates device access by the "
38281 "appliance's Linux kernel into accesses to the image."
38282 msgstr ""
38283
38284 #. type: textblock
38285 #: ../src/guestfs.pod:2213
38286 msgid ""
38287 "A common misunderstanding is that the appliance \"is\" the virtual machine.  "
38288 "Although the disk image you are attached to might also be used by some "
38289 "virtual machine, libguestfs doesn't know or care about this.  (But you will "
38290 "care if both libguestfs's qemu process and your virtual machine are trying "
38291 "to update the disk image at the same time, since these usually results in "
38292 "massive disk corruption)."
38293 msgstr ""
38294
38295 #. type: =head1
38296 #: ../src/guestfs.pod:2220
38297 msgid "STATE MACHINE"
38298 msgstr "СКІНЧЕННИЙ АВТОМАТ"
38299
38300 #. type: textblock
38301 #: ../src/guestfs.pod:2222
38302 msgid "libguestfs uses a state machine to model the child process:"
38303 msgstr ""
38304
38305 #. type: verbatim
38306 #: ../src/guestfs.pod:2224
38307 #, no-wrap
38308 msgid ""
38309 "                         |\n"
38310 "                    guestfs_create\n"
38311 "                         |\n"
38312 "                         |\n"
38313 "                     ____V_____\n"
38314 "                    /          \\\n"
38315 "                    |  CONFIG  |\n"
38316 "                    \\__________/\n"
38317 "                     ^ ^   ^  \\\n"
38318 "                    /  |    \\  \\ guestfs_launch\n"
38319 "                   /   |    _\\__V______\n"
38320 "                  /    |   /           \\\n"
38321 "                 /     |   | LAUNCHING |\n"
38322 "                /      |   \\___________/\n"
38323 "               /       |       /\n"
38324 "              /        |  guestfs_launch\n"
38325 "             /         |     /\n"
38326 "    ______  /        __|____V\n"
38327 "   /      \\ ------> /        \\\n"
38328 "   | BUSY |         | READY  |\n"
38329 "   \\______/ <------ \\________/\n"
38330 "\n"
38331 msgstr ""
38332
38333 #. type: textblock
38334 #: ../src/guestfs.pod:2246
38335 msgid ""
38336 "The normal transitions are (1) CONFIG (when the handle is created, but there "
38337 "is no child process), (2) LAUNCHING (when the child process is booting up), "
38338 "(3) alternating between READY and BUSY as commands are issued to, and "
38339 "carried out by, the child process."
38340 msgstr ""
38341
38342 #. type: textblock
38343 #: ../src/guestfs.pod:2251
38344 msgid ""
38345 "The guest may be killed by L</guestfs_kill_subprocess>, or may die "
38346 "asynchronously at any time (eg. due to some internal error), and that causes "
38347 "the state to transition back to CONFIG."
38348 msgstr ""
38349
38350 #. type: textblock
38351 #: ../src/guestfs.pod:2255
38352 msgid ""
38353 "Configuration commands for qemu such as L</guestfs_add_drive> can only be "
38354 "issued when in the CONFIG state."
38355 msgstr ""
38356
38357 #. type: textblock
38358 #: ../src/guestfs.pod:2258
38359 msgid ""
38360 "The API offers one call that goes from CONFIG through LAUNCHING to READY.  "
38361 "L</guestfs_launch> blocks until the child process is READY to accept "
38362 "commands (or until some failure or timeout).  L</guestfs_launch> internally "
38363 "moves the state from CONFIG to LAUNCHING while it is running."
38364 msgstr ""
38365
38366 #. type: textblock
38367 #: ../src/guestfs.pod:2264
38368 msgid ""
38369 "API actions such as L</guestfs_mount> can only be issued when in the READY "
38370 "state.  These API calls block waiting for the command to be carried out (ie. "
38371 "the state to transition to BUSY and then back to READY).  There are no non-"
38372 "blocking versions, and no way to issue more than one command per handle at "
38373 "the same time."
38374 msgstr ""
38375
38376 #. type: textblock
38377 #: ../src/guestfs.pod:2270
38378 msgid ""
38379 "Finally, the child process sends asynchronous messages back to the main "
38380 "program, such as kernel log messages.  You can register a callback to "
38381 "receive these messages."
38382 msgstr ""
38383
38384 #. type: =head1
38385 #: ../src/guestfs.pod:2274
38386 msgid "INTERNALS"
38387 msgstr ""
38388
38389 #. type: =head2
38390 #: ../src/guestfs.pod:2276
38391 msgid "APPLIANCE BOOT PROCESS"
38392 msgstr ""
38393
38394 #. type: textblock
38395 #: ../src/guestfs.pod:2278
38396 msgid ""
38397 "This process has evolved and continues to evolve.  The description here "
38398 "corresponds only to the current version of libguestfs and is provided for "
38399 "information only."
38400 msgstr ""
38401
38402 #. type: textblock
38403 #: ../src/guestfs.pod:2282
38404 msgid ""
38405 "In order to follow the stages involved below, enable libguestfs debugging "
38406 "(set the environment variable C<LIBGUESTFS_DEBUG=1>)."
38407 msgstr ""
38408
38409 #. type: =item
38410 #: ../src/guestfs.pod:2287
38411 #, fuzzy
38412 #| msgid "C<appliance>"
38413 msgid "Create the appliance"
38414 msgstr "C<appliance>"
38415
38416 #. type: textblock
38417 #: ../src/guestfs.pod:2289
38418 msgid ""
38419 "C<febootstrap-supermin-helper> is invoked to create the kernel, a small "
38420 "initrd and the appliance."
38421 msgstr ""
38422
38423 #. type: textblock
38424 #: ../src/guestfs.pod:2292
38425 msgid ""
38426 "The appliance is cached in C</var/tmp/.guestfs-E<lt>UIDE<gt>> (or in another "
38427 "directory if C<TMPDIR> is set)."
38428 msgstr ""
38429
38430 #. type: textblock
38431 #: ../src/guestfs.pod:2295
38432 msgid ""
38433 "For a complete description of how the appliance is created and cached, read "
38434 "the L<febootstrap(8)> and L<febootstrap-supermin-helper(8)> man pages."
38435 msgstr ""
38436
38437 #. type: =item
38438 #: ../src/guestfs.pod:2299
38439 msgid "Start qemu and boot the kernel"
38440 msgstr ""
38441
38442 #. type: textblock
38443 #: ../src/guestfs.pod:2301
38444 msgid "qemu is invoked to boot the kernel."
38445 msgstr ""
38446
38447 #. type: =item
38448 #: ../src/guestfs.pod:2303
38449 msgid "Run the initrd"
38450 msgstr ""
38451
38452 #. type: textblock
38453 #: ../src/guestfs.pod:2305
38454 msgid ""
38455 "C<febootstrap-supermin-helper> builds a small initrd.  The initrd is not the "
38456 "appliance.  The purpose of the initrd is to load enough kernel modules in "
38457 "order that the appliance itself can be mounted and started."
38458 msgstr ""
38459
38460 #. type: textblock
38461 #: ../src/guestfs.pod:2309
38462 msgid ""
38463 "The initrd is a cpio archive called C</var/tmp/.guestfs-E<lt>UIDE<gt>/"
38464 "initrd>."
38465 msgstr ""
38466
38467 #. type: textblock
38468 #: ../src/guestfs.pod:2312
38469 msgid ""
38470 "When the initrd has started you will see messages showing that kernel "
38471 "modules are being loaded, similar to this:"
38472 msgstr ""
38473
38474 #. type: verbatim
38475 #: ../src/guestfs.pod:2315
38476 #, no-wrap
38477 msgid ""
38478 " febootstrap: ext2 mini initrd starting up\n"
38479 " febootstrap: mounting /sys\n"
38480 " febootstrap: internal insmod libcrc32c.ko\n"
38481 " febootstrap: internal insmod crc32c-intel.ko\n"
38482 "\n"
38483 msgstr ""
38484
38485 #. type: =item
38486 #: ../src/guestfs.pod:2320
38487 msgid "Find and mount the appliance device"
38488 msgstr ""
38489
38490 #. type: textblock
38491 #: ../src/guestfs.pod:2322
38492 msgid ""
38493 "The appliance is a sparse file containing an ext2 filesystem which contains "
38494 "a familiar (although reduced in size) Linux operating system.  It would "
38495 "normally be called C</var/tmp/.guestfs-E<lt>UIDE<gt>/root>."
38496 msgstr ""
38497
38498 #. type: textblock
38499 #: ../src/guestfs.pod:2326
38500 msgid ""
38501 "The regular disks being inspected by libguestfs are the first devices "
38502 "exposed by qemu (eg. as C</dev/vda>)."
38503 msgstr ""
38504
38505 #. type: textblock
38506 #: ../src/guestfs.pod:2329
38507 msgid ""
38508 "The last disk added to qemu is the appliance itself (eg. C</dev/vdb> if "
38509 "there was only one regular disk)."
38510 msgstr ""
38511
38512 #. type: textblock
38513 #: ../src/guestfs.pod:2332
38514 msgid ""
38515 "Thus the final job of the initrd is to locate the appliance disk, mount it, "
38516 "and switch root into the appliance, and run C</init> from the appliance."
38517 msgstr ""
38518
38519 #. type: textblock
38520 #: ../src/guestfs.pod:2336
38521 msgid "If this works successfully you will see messages such as:"
38522 msgstr ""
38523
38524 #. type: verbatim
38525 #: ../src/guestfs.pod:2338
38526 #, no-wrap
38527 msgid ""
38528 " febootstrap: picked /sys/block/vdb/dev as root device\n"
38529 " febootstrap: creating /dev/root as block special 252:16\n"
38530 " febootstrap: mounting new root on /root\n"
38531 " febootstrap: chroot\n"
38532 " Starting /init script ...\n"
38533 "\n"
38534 msgstr ""
38535
38536 #. type: textblock
38537 #: ../src/guestfs.pod:2344
38538 msgid ""
38539 "Note that C<Starting /init script ...> indicates that the appliance's init "
38540 "script is now running."
38541 msgstr ""
38542
38543 #. type: =item
38544 #: ../src/guestfs.pod:2347
38545 msgid "Initialize the appliance"
38546 msgstr ""
38547
38548 #. type: textblock
38549 #: ../src/guestfs.pod:2349
38550 msgid ""
38551 "The appliance itself now initializes itself.  This involves starting certain "
38552 "processes like C<udev>, possibly printing some debug information, and "
38553 "finally running the daemon (C<guestfsd>)."
38554 msgstr ""
38555
38556 #. type: =item
38557 #: ../src/guestfs.pod:2353
38558 #, fuzzy
38559 #| msgid "C<daemon>"
38560 msgid "The daemon"
38561 msgstr "C<daemon>"
38562
38563 #. type: textblock
38564 #: ../src/guestfs.pod:2355
38565 msgid ""
38566 "Finally the daemon (C<guestfsd>) runs inside the appliance.  If it runs you "
38567 "should see:"
38568 msgstr ""
38569
38570 #. type: verbatim
38571 #: ../src/guestfs.pod:2358
38572 #, fuzzy, no-wrap
38573 #| msgid ""
38574 #| " set-verbose true|false\n"
38575 #| "\n"
38576 msgid ""
38577 " verbose daemon enabled\n"
38578 "\n"
38579 msgstr ""
38580 " set-verbose true|false\n"
38581 "\n"
38582
38583 #. type: textblock
38584 #: ../src/guestfs.pod:2360
38585 msgid ""
38586 "The daemon expects to see a named virtio-serial port exposed by qemu and "
38587 "connected on the other end to the library."
38588 msgstr ""
38589
38590 #. type: textblock
38591 #: ../src/guestfs.pod:2363
38592 msgid ""
38593 "The daemon connects to this port (and hence to the library) and sends a four "
38594 "byte message C<GUESTFS_LAUNCH_FLAG>, which initiates the communication "
38595 "protocol (see below)."
38596 msgstr ""
38597
38598 #. type: =head2
38599 #: ../src/guestfs.pod:2369
38600 msgid "COMMUNICATION PROTOCOL"
38601 msgstr ""
38602
38603 #. type: textblock
38604 #: ../src/guestfs.pod:2371
38605 msgid ""
38606 "Don't rely on using this protocol directly.  This section documents how it "
38607 "currently works, but it may change at any time."
38608 msgstr ""
38609
38610 #. type: textblock
38611 #: ../src/guestfs.pod:2374
38612 msgid ""
38613 "The protocol used to talk between the library and the daemon running inside "
38614 "the qemu virtual machine is a simple RPC mechanism built on top of XDR (RFC "
38615 "1014, RFC 1832, RFC 4506)."
38616 msgstr ""
38617
38618 #. type: textblock
38619 #: ../src/guestfs.pod:2378
38620 msgid ""
38621 "The detailed format of structures is in C<src/guestfs_protocol.x> (note: "
38622 "this file is automatically generated)."
38623 msgstr ""
38624
38625 #. type: textblock
38626 #: ../src/guestfs.pod:2381
38627 msgid ""
38628 "There are two broad cases, ordinary functions that don't have any C<FileIn> "
38629 "and C<FileOut> parameters, which are handled with very simple request/reply "
38630 "messages.  Then there are functions that have any C<FileIn> or C<FileOut> "
38631 "parameters, which use the same request and reply messages, but they may also "
38632 "be followed by files sent using a chunked encoding."
38633 msgstr ""
38634
38635 #. type: =head3
38636 #: ../src/guestfs.pod:2388
38637 msgid "ORDINARY FUNCTIONS (NO FILEIN/FILEOUT PARAMS)"
38638 msgstr ""
38639
38640 #. type: textblock
38641 #: ../src/guestfs.pod:2390
38642 msgid "For ordinary functions, the request message is:"
38643 msgstr ""
38644
38645 #. type: verbatim
38646 #: ../src/guestfs.pod:2392
38647 #, no-wrap
38648 msgid ""
38649 " total length (header + arguments,\n"
38650 "      but not including the length word itself)\n"
38651 " struct guestfs_message_header (encoded as XDR)\n"
38652 " struct guestfs_<foo>_args (encoded as XDR)\n"
38653 "\n"
38654 msgstr ""
38655
38656 #. type: textblock
38657 #: ../src/guestfs.pod:2397
38658 msgid ""
38659 "The total length field allows the daemon to allocate a fixed size buffer "
38660 "into which it slurps the rest of the message.  As a result, the total length "
38661 "is limited to C<GUESTFS_MESSAGE_MAX> bytes (currently 4MB), which means the "
38662 "effective size of any request is limited to somewhere under this size."
38663 msgstr ""
38664
38665 #. type: textblock
38666 #: ../src/guestfs.pod:2403
38667 msgid ""
38668 "Note also that many functions don't take any arguments, in which case the "
38669 "C<guestfs_I<foo>_args> is completely omitted."
38670 msgstr ""
38671
38672 #. type: textblock
38673 #: ../src/guestfs.pod:2406
38674 msgid ""
38675 "The header contains the procedure number (C<guestfs_proc>) which is how the "
38676 "receiver knows what type of args structure to expect, or none at all."
38677 msgstr ""
38678
38679 #. type: textblock
38680 #: ../src/guestfs.pod:2410
38681 msgid ""
38682 "For functions that take optional arguments, the optional arguments are "
38683 "encoded in the C<guestfs_I<foo>_args> structure in the same way as ordinary "
38684 "arguments.  A bitmask in the header indicates which optional arguments are "
38685 "meaningful.  The bitmask is also checked to see if it contains bits set "
38686 "which the daemon does not know about (eg. if more optional arguments were "
38687 "added in a later version of the library), and this causes the call to be "
38688 "rejected."
38689 msgstr ""
38690
38691 #. type: textblock
38692 #: ../src/guestfs.pod:2418
38693 msgid "The reply message for ordinary functions is:"
38694 msgstr ""
38695
38696 #. type: verbatim
38697 #: ../src/guestfs.pod:2420
38698 #, no-wrap
38699 msgid ""
38700 " total length (header + ret,\n"
38701 "      but not including the length word itself)\n"
38702 " struct guestfs_message_header (encoded as XDR)\n"
38703 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38704 "\n"
38705 msgstr ""
38706
38707 #. type: textblock
38708 #: ../src/guestfs.pod:2425
38709 msgid ""
38710 "As above the C<guestfs_I<foo>_ret> structure may be completely omitted for "
38711 "functions that return no formal return values."
38712 msgstr ""
38713
38714 #. type: textblock
38715 #: ../src/guestfs.pod:2428
38716 msgid ""
38717 "As above the total length of the reply is limited to C<GUESTFS_MESSAGE_MAX>."
38718 msgstr ""
38719
38720 #. type: textblock
38721 #: ../src/guestfs.pod:2431
38722 msgid ""
38723 "In the case of an error, a flag is set in the header, and the reply message "
38724 "is slightly changed:"
38725 msgstr ""
38726
38727 #. type: verbatim
38728 #: ../src/guestfs.pod:2434
38729 #, no-wrap
38730 msgid ""
38731 " total length (header + error,\n"
38732 "      but not including the length word itself)\n"
38733 " struct guestfs_message_header (encoded as XDR)\n"
38734 " struct guestfs_message_error (encoded as XDR)\n"
38735 "\n"
38736 msgstr ""
38737
38738 #. type: textblock
38739 #: ../src/guestfs.pod:2439
38740 msgid ""
38741 "The C<guestfs_message_error> structure contains the error message as a "
38742 "string."
38743 msgstr ""
38744
38745 #. type: =head3
38746 #: ../src/guestfs.pod:2442
38747 msgid "FUNCTIONS THAT HAVE FILEIN PARAMETERS"
38748 msgstr ""
38749
38750 #. type: textblock
38751 #: ../src/guestfs.pod:2444
38752 msgid ""
38753 "A C<FileIn> parameter indicates that we transfer a file I<into> the guest.  "
38754 "The normal request message is sent (see above).  However this is followed by "
38755 "a sequence of file chunks."
38756 msgstr ""
38757
38758 #. type: verbatim
38759 #: ../src/guestfs.pod:2448
38760 #, no-wrap
38761 msgid ""
38762 " total length (header + arguments,\n"
38763 "      but not including the length word itself,\n"
38764 "      and not including the chunks)\n"
38765 " struct guestfs_message_header (encoded as XDR)\n"
38766 " struct guestfs_<foo>_args (encoded as XDR)\n"
38767 " sequence of chunks for FileIn param #0\n"
38768 " sequence of chunks for FileIn param #1 etc.\n"
38769 "\n"
38770 msgstr ""
38771
38772 #. type: textblock
38773 #: ../src/guestfs.pod:2456
38774 msgid "The \"sequence of chunks\" is:"
38775 msgstr ""
38776
38777 #. type: verbatim
38778 #: ../src/guestfs.pod:2458
38779 #, no-wrap
38780 msgid ""
38781 " length of chunk (not including length word itself)\n"
38782 " struct guestfs_chunk (encoded as XDR)\n"
38783 " length of chunk\n"
38784 " struct guestfs_chunk (encoded as XDR)\n"
38785 "   ...\n"
38786 " length of chunk\n"
38787 " struct guestfs_chunk (with data.data_len == 0)\n"
38788 "\n"
38789 msgstr ""
38790
38791 #. type: textblock
38792 #: ../src/guestfs.pod:2466
38793 msgid ""
38794 "The final chunk has the C<data_len> field set to zero.  Additionally a flag "
38795 "is set in the final chunk to indicate either successful completion or early "
38796 "cancellation."
38797 msgstr ""
38798
38799 #. type: textblock
38800 #: ../src/guestfs.pod:2470
38801 msgid ""
38802 "At time of writing there are no functions that have more than one FileIn "
38803 "parameter.  However this is (theoretically) supported, by sending the "
38804 "sequence of chunks for each FileIn parameter one after another (from left to "
38805 "right)."
38806 msgstr ""
38807
38808 #. type: textblock
38809 #: ../src/guestfs.pod:2475
38810 msgid ""
38811 "Both the library (sender) I<and> the daemon (receiver) may cancel the "
38812 "transfer.  The library does this by sending a chunk with a special flag set "
38813 "to indicate cancellation.  When the daemon sees this, it cancels the whole "
38814 "RPC, does I<not> send any reply, and goes back to reading the next request."
38815 msgstr ""
38816
38817 #. type: textblock
38818 #: ../src/guestfs.pod:2481
38819 msgid ""
38820 "The daemon may also cancel.  It does this by writing a special word "
38821 "C<GUESTFS_CANCEL_FLAG> to the socket.  The library listens for this during "
38822 "the transfer, and if it gets it, it will cancel the transfer (it sends a "
38823 "cancel chunk).  The special word is chosen so that even if cancellation "
38824 "happens right at the end of the transfer (after the library has finished "
38825 "writing and has started listening for the reply), the \"spurious\" cancel "
38826 "flag will not be confused with the reply message."
38827 msgstr ""
38828
38829 #. type: textblock
38830 #: ../src/guestfs.pod:2490
38831 msgid ""
38832 "This protocol allows the transfer of arbitrary sized files (no 32 bit "
38833 "limit), and also files where the size is not known in advance (eg. from "
38834 "pipes or sockets).  However the chunks are rather small "
38835 "(C<GUESTFS_MAX_CHUNK_SIZE>), so that neither the library nor the daemon need "
38836 "to keep much in memory."
38837 msgstr ""
38838
38839 #. type: =head3
38840 #: ../src/guestfs.pod:2496
38841 msgid "FUNCTIONS THAT HAVE FILEOUT PARAMETERS"
38842 msgstr ""
38843
38844 #. type: textblock
38845 #: ../src/guestfs.pod:2498
38846 msgid ""
38847 "The protocol for FileOut parameters is exactly the same as for FileIn "
38848 "parameters, but with the roles of daemon and library reversed."
38849 msgstr ""
38850
38851 #. type: verbatim
38852 #: ../src/guestfs.pod:2501
38853 #, no-wrap
38854 msgid ""
38855 " total length (header + ret,\n"
38856 "      but not including the length word itself,\n"
38857 "      and not including the chunks)\n"
38858 " struct guestfs_message_header (encoded as XDR)\n"
38859 " struct guestfs_<foo>_ret (encoded as XDR)\n"
38860 " sequence of chunks for FileOut param #0\n"
38861 " sequence of chunks for FileOut param #1 etc.\n"
38862 "\n"
38863 msgstr ""
38864
38865 #. type: =head3
38866 #: ../src/guestfs.pod:2509
38867 msgid "INITIAL MESSAGE"
38868 msgstr ""
38869
38870 #. type: textblock
38871 #: ../src/guestfs.pod:2511
38872 msgid ""
38873 "When the daemon launches it sends an initial word (C<GUESTFS_LAUNCH_FLAG>) "
38874 "which indicates that the guest and daemon is alive.  This is what L</"
38875 "guestfs_launch> waits for."
38876 msgstr ""
38877
38878 #. type: =head3
38879 #: ../src/guestfs.pod:2515
38880 msgid "PROGRESS NOTIFICATION MESSAGES"
38881 msgstr ""
38882
38883 #. type: textblock
38884 #: ../src/guestfs.pod:2517
38885 msgid ""
38886 "The daemon may send progress notification messages at any time.  These are "
38887 "distinguished by the normal length word being replaced by "
38888 "C<GUESTFS_PROGRESS_FLAG>, followed by a fixed size progress message."
38889 msgstr ""
38890
38891 #. type: textblock
38892 #: ../src/guestfs.pod:2521
38893 msgid ""
38894 "The library turns them into progress callbacks (see L</"
38895 "GUESTFS_EVENT_PROGRESS>) if there is a callback registered, or discards them "
38896 "if not."
38897 msgstr ""
38898
38899 #. type: textblock
38900 #: ../src/guestfs.pod:2525
38901 msgid ""
38902 "The daemon self-limits the frequency of progress messages it sends (see "
38903 "C<daemon/proto.c:notify_progress>).  Not all calls generate progress "
38904 "messages."
38905 msgstr ""
38906
38907 #. type: =head1
38908 #: ../src/guestfs.pod:2529
38909 msgid "LIBGUESTFS VERSION NUMBERS"
38910 msgstr ""
38911
38912 #. type: textblock
38913 #: ../src/guestfs.pod:2531
38914 msgid ""
38915 "Since April 2010, libguestfs has started to make separate development and "
38916 "stable releases, along with corresponding branches in our git repository.  "
38917 "These separate releases can be identified by version number:"
38918 msgstr ""
38919
38920 #. type: verbatim
38921 #: ../src/guestfs.pod:2536
38922 #, no-wrap
38923 msgid ""
38924 "                 even numbers for stable: 1.2.x, 1.4.x, ...\n"
38925 "       .-------- odd numbers for development: 1.3.x, 1.5.x, ...\n"
38926 "       |\n"
38927 "       v\n"
38928 " 1  .  3  .  5\n"
38929 " ^           ^\n"
38930 " |           |\n"
38931 " |           `-------- sub-version\n"
38932 " |\n"
38933 " `------ always '1' because we don't change the ABI\n"
38934 "\n"
38935 msgstr ""
38936
38937 #. type: textblock
38938 #: ../src/guestfs.pod:2547
38939 msgid "Thus \"1.3.5\" is the 5th update to the development branch \"1.3\"."
38940 msgstr ""
38941
38942 #. type: textblock
38943 #: ../src/guestfs.pod:2549
38944 msgid ""
38945 "As time passes we cherry pick fixes from the development branch and backport "
38946 "those into the stable branch, the effect being that the stable branch should "
38947 "get more stable and less buggy over time.  So the stable releases are ideal "
38948 "for people who don't need new features but would just like the software to "
38949 "work."
38950 msgstr ""
38951
38952 #. type: textblock
38953 #: ../src/guestfs.pod:2555
38954 msgid "Our criteria for backporting changes are:"
38955 msgstr ""
38956
38957 #. type: textblock
38958 #: ../src/guestfs.pod:2561
38959 msgid ""
38960 "Documentation changes which don't affect any code are backported unless the "
38961 "documentation refers to a future feature which is not in stable."
38962 msgstr ""
38963
38964 #. type: textblock
38965 #: ../src/guestfs.pod:2567
38966 msgid ""
38967 "Bug fixes which are not controversial, fix obvious problems, and have been "
38968 "well tested are backported."
38969 msgstr ""
38970
38971 #. type: textblock
38972 #: ../src/guestfs.pod:2572
38973 msgid ""
38974 "Simple rearrangements of code which shouldn't affect how it works get "
38975 "backported.  This is so that the code in the two branches doesn't get too "
38976 "far out of step, allowing us to backport future fixes more easily."
38977 msgstr ""
38978
38979 #. type: textblock
38980 #: ../src/guestfs.pod:2578
38981 msgid ""
38982 "We I<don't> backport new features, new APIs, new tools etc, except in one "
38983 "exceptional case: the new feature is required in order to implement an "
38984 "important bug fix."
38985 msgstr ""
38986
38987 #. type: textblock
38988 #: ../src/guestfs.pod:2584
38989 msgid ""
38990 "A new stable branch starts when we think the new features in development are "
38991 "substantial and compelling enough over the current stable branch to warrant "
38992 "it.  When that happens we create new stable and development versions 1.N.0 "
38993 "and 1.(N+1).0 [N is even].  The new dot-oh release won't necessarily be so "
38994 "stable at this point, but by backporting fixes from development, that branch "
38995 "will stabilize over time."
38996 msgstr ""
38997
38998 #. type: =head1
38999 #: ../src/guestfs.pod:2592
39000 msgid "EXTENDING LIBGUESTFS"
39001 msgstr ""
39002
39003 #. type: =head2
39004 #: ../src/guestfs.pod:2594
39005 msgid "ADDING A NEW API ACTION"
39006 msgstr ""
39007
39008 #. type: textblock
39009 #: ../src/guestfs.pod:2596
39010 msgid ""
39011 "Large amounts of boilerplate code in libguestfs (RPC, bindings, "
39012 "documentation) are generated, and this makes it easy to extend the "
39013 "libguestfs API."
39014 msgstr ""
39015
39016 #. type: textblock
39017 #: ../src/guestfs.pod:2600
39018 msgid "To add a new API action there are two changes:"
39019 msgstr ""
39020
39021 #. type: textblock
39022 #: ../src/guestfs.pod:2606
39023 msgid ""
39024 "You need to add a description of the call (name, parameters, return type, "
39025 "tests, documentation) to C<generator/generator_actions.ml>."
39026 msgstr ""
39027
39028 #. type: textblock
39029 #: ../src/guestfs.pod:2609
39030 msgid ""
39031 "There are two sorts of API action, depending on whether the call goes "
39032 "through to the daemon in the appliance, or is serviced entirely by the "
39033 "library (see L</ARCHITECTURE> above).  L</guestfs_sync> is an example of the "
39034 "former, since the sync is done in the appliance.  L</guestfs_set_trace> is "
39035 "an example of the latter, since a trace flag is maintained in the handle and "
39036 "all tracing is done on the library side."
39037 msgstr ""
39038
39039 #. type: textblock
39040 #: ../src/guestfs.pod:2617
39041 msgid ""
39042 "Most new actions are of the first type, and get added to the "
39043 "C<daemon_functions> list.  Each function has a unique procedure number used "
39044 "in the RPC protocol which is assigned to that action when we publish "
39045 "libguestfs and cannot be reused.  Take the latest procedure number and "
39046 "increment it."
39047 msgstr ""
39048
39049 #. type: textblock
39050 #: ../src/guestfs.pod:2623
39051 msgid ""
39052 "For library-only actions of the second type, add to the "
39053 "C<non_daemon_functions> list.  Since these functions are serviced by the "
39054 "library and do not travel over the RPC mechanism to the daemon, these "
39055 "functions do not need a procedure number, and so the procedure number is set "
39056 "to C<-1>."
39057 msgstr ""
39058
39059 #. type: textblock
39060 #: ../src/guestfs.pod:2631
39061 msgid "Implement the action (in C):"
39062 msgstr ""
39063
39064 #. type: textblock
39065 #: ../src/guestfs.pod:2633
39066 msgid ""
39067 "For daemon actions, implement the function C<do_E<lt>nameE<gt>> in the "
39068 "C<daemon/> directory."
39069 msgstr ""
39070
39071 #. type: textblock
39072 #: ../src/guestfs.pod:2636
39073 msgid ""
39074 "For library actions, implement the function C<guestfs__E<lt>nameE<gt>> "
39075 "(note: double underscore) in the C<src/> directory."
39076 msgstr ""
39077
39078 #. type: textblock
39079 #: ../src/guestfs.pod:2639
39080 msgid "In either case, use another function as an example of what to do."
39081 msgstr ""
39082
39083 #. type: textblock
39084 #: ../src/guestfs.pod:2643
39085 msgid "After making these changes, use C<make> to compile."
39086 msgstr ""
39087
39088 #. type: textblock
39089 #: ../src/guestfs.pod:2645
39090 msgid ""
39091 "Note that you don't need to implement the RPC, language bindings, manual "
39092 "pages or anything else.  It's all automatically generated from the OCaml "
39093 "description."
39094 msgstr ""
39095
39096 #. type: =head2
39097 #: ../src/guestfs.pod:2649
39098 msgid "ADDING TESTS FOR AN API ACTION"
39099 msgstr ""
39100
39101 #. type: textblock
39102 #: ../src/guestfs.pod:2651
39103 msgid ""
39104 "You can supply zero or as many tests as you want per API call.  The tests "
39105 "can either be added as part of the API description (C<generator/"
39106 "generator_actions.ml>), or in some rarer cases you may want to drop a script "
39107 "into C<regressions/>.  Note that adding a script to C<regressions/> is "
39108 "slower, so if possible use the first method."
39109 msgstr ""
39110
39111 #. type: textblock
39112 #: ../src/guestfs.pod:2657
39113 msgid ""
39114 "The following describes the test environment used when you add an API test "
39115 "in C<generator_actions.ml>."
39116 msgstr ""
39117
39118 #. type: textblock
39119 #: ../src/guestfs.pod:2660
39120 msgid "The test environment has 4 block devices:"
39121 msgstr ""
39122
39123 #. type: =item
39124 #: ../src/guestfs.pod:2664
39125 msgid "C</dev/sda> 500MB"
39126 msgstr "C</dev/sda> 500 МБ"
39127
39128 #. type: textblock
39129 #: ../src/guestfs.pod:2666
39130 msgid "General block device for testing."
39131 msgstr ""
39132
39133 #. type: =item
39134 #: ../src/guestfs.pod:2668
39135 msgid "C</dev/sdb> 50MB"
39136 msgstr "C</dev/sdb> 50 МБ"
39137
39138 #. type: textblock
39139 #: ../src/guestfs.pod:2670
39140 msgid ""
39141 "C</dev/sdb1> is an ext2 filesystem used for testing filesystem write "
39142 "operations."
39143 msgstr ""
39144
39145 #. type: =item
39146 #: ../src/guestfs.pod:2673
39147 msgid "C</dev/sdc> 10MB"
39148 msgstr "C</dev/sdc> 10 МБ"
39149
39150 #. type: textblock
39151 #: ../src/guestfs.pod:2675
39152 msgid "Used in a few tests where two block devices are needed."
39153 msgstr ""
39154
39155 #. type: =item
39156 #: ../src/guestfs.pod:2677
39157 msgid "C</dev/sdd>"
39158 msgstr "C</dev/sdd>"
39159
39160 #. type: textblock
39161 #: ../src/guestfs.pod:2679
39162 msgid "ISO with fixed content (see C<images/test.iso>)."
39163 msgstr ""
39164
39165 #. type: textblock
39166 #: ../src/guestfs.pod:2683
39167 msgid ""
39168 "To be able to run the tests in a reasonable amount of time, the libguestfs "
39169 "appliance and block devices are reused between tests.  So don't try testing "
39170 "L</guestfs_kill_subprocess> :-x"
39171 msgstr ""
39172
39173 #. type: textblock
39174 #: ../src/guestfs.pod:2687
39175 msgid ""
39176 "Each test starts with an initial scenario, selected using one of the "
39177 "C<Init*> expressions, described in C<generator/generator_types.ml>.  These "
39178 "initialize the disks mentioned above in a particular way as documented in "
39179 "C<generator_types.ml>.  You should not assume anything about the previous "
39180 "contents of other disks that are not initialized."
39181 msgstr ""
39182
39183 #. type: textblock
39184 #: ../src/guestfs.pod:2693
39185 msgid ""
39186 "You can add a prerequisite clause to any individual test.  This is a run-"
39187 "time check, which, if it fails, causes the test to be skipped.  Useful if "
39188 "testing a command which might not work on all variations of libguestfs "
39189 "builds.  A test that has prerequisite of C<Always> means to run "
39190 "unconditionally."
39191 msgstr ""
39192
39193 #. type: textblock
39194 #: ../src/guestfs.pod:2699
39195 msgid ""
39196 "In addition, packagers can skip individual tests by setting environment "
39197 "variables before running C<make check>."
39198 msgstr ""
39199
39200 #. type: verbatim
39201 #: ../src/guestfs.pod:2702
39202 #, no-wrap
39203 msgid ""
39204 " SKIP_TEST_<CMD>_<NUM>=1\n"
39205 "\n"
39206 msgstr ""
39207
39208 #. type: textblock
39209 #: ../src/guestfs.pod:2704
39210 msgid "eg: C<SKIP_TEST_COMMAND_3=1> skips test #3 of L</guestfs_command>."
39211 msgstr ""
39212
39213 #. type: textblock
39214 #: ../src/guestfs.pod:2706
39215 msgid "or:"
39216 msgstr "або:"
39217
39218 #. type: verbatim
39219 #: ../src/guestfs.pod:2708
39220 #, no-wrap
39221 msgid ""
39222 " SKIP_TEST_<CMD>=1\n"
39223 "\n"
39224 msgstr ""
39225
39226 #. type: textblock
39227 #: ../src/guestfs.pod:2710
39228 msgid "eg: C<SKIP_TEST_ZEROFREE=1> skips all L</guestfs_zerofree> tests."
39229 msgstr ""
39230
39231 #. type: textblock
39232 #: ../src/guestfs.pod:2712
39233 msgid "Packagers can run only certain tests by setting for example:"
39234 msgstr ""
39235
39236 #. type: verbatim
39237 #: ../src/guestfs.pod:2714
39238 #, no-wrap
39239 msgid ""
39240 " TEST_ONLY=\"vfs_type zerofree\"\n"
39241 "\n"
39242 msgstr ""
39243
39244 #. type: textblock
39245 #: ../src/guestfs.pod:2716
39246 msgid ""
39247 "See C<capitests/tests.c> for more details of how these environment variables "
39248 "work."
39249 msgstr ""
39250
39251 #. type: =head2
39252 #: ../src/guestfs.pod:2719
39253 msgid "DEBUGGING NEW API ACTIONS"
39254 msgstr ""
39255
39256 #. type: textblock
39257 #: ../src/guestfs.pod:2721
39258 msgid "Test new actions work before submitting them."
39259 msgstr ""
39260
39261 #. type: textblock
39262 #: ../src/guestfs.pod:2723
39263 msgid "You can use guestfish to try out new commands."
39264 msgstr ""
39265
39266 #. type: textblock
39267 #: ../src/guestfs.pod:2725
39268 msgid ""
39269 "Debugging the daemon is a problem because it runs inside a minimal "
39270 "environment.  However you can fprintf messages in the daemon to stderr, and "
39271 "they will show up if you use C<guestfish -v>."
39272 msgstr ""
39273
39274 #. type: =head2
39275 #: ../src/guestfs.pod:2729
39276 msgid "FORMATTING CODE AND OTHER CONVENTIONS"
39277 msgstr ""
39278
39279 #. type: textblock
39280 #: ../src/guestfs.pod:2731
39281 msgid ""
39282 "Our C source code generally adheres to some basic code-formatting "
39283 "conventions.  The existing code base is not totally consistent on this "
39284 "front, but we do prefer that contributed code be formatted similarly.  In "
39285 "short, use spaces-not-TABs for indentation, use 2 spaces for each "
39286 "indentation level, and other than that, follow the K&R style."
39287 msgstr ""
39288
39289 #. type: textblock
39290 #: ../src/guestfs.pod:2737
39291 msgid ""
39292 "If you use Emacs, add the following to one of one of your start-up files (e."
39293 "g., ~/.emacs), to help ensure that you get indentation right:"
39294 msgstr ""
39295
39296 #. type: verbatim
39297 #: ../src/guestfs.pod:2740
39298 #, no-wrap
39299 msgid ""
39300 " ;;; In libguestfs, indent with spaces everywhere (not TABs).\n"
39301 " ;;; Exceptions: Makefile and ChangeLog modes.\n"
39302 " (add-hook 'find-file-hook\n"
39303 "     '(lambda () (if (and buffer-file-name\n"
39304 "                          (string-match \"/libguestfs\\\\>\"\n"
39305 "                              (buffer-file-name))\n"
39306 "                          (not (string-equal mode-name \"Change Log\"))\n"
39307 "                          (not (string-equal mode-name \"Makefile\")))\n"
39308 "                     (setq indent-tabs-mode nil))))\n"
39309 " \n"
39310 msgstr ""
39311
39312 #. type: verbatim
39313 #: ../src/guestfs.pod:2750
39314 #, no-wrap
39315 msgid ""
39316 " ;;; When editing C sources in libguestfs, use this style.\n"
39317 " (defun libguestfs-c-mode ()\n"
39318 "   \"C mode with adjusted defaults for use with libguestfs.\"\n"
39319 "   (interactive)\n"
39320 "   (c-set-style \"K&R\")\n"
39321 "   (setq c-indent-level 2)\n"
39322 "   (setq c-basic-offset 2))\n"
39323 " (add-hook 'c-mode-hook\n"
39324 "           '(lambda () (if (string-match \"/libguestfs\\\\>\"\n"
39325 "                               (buffer-file-name))\n"
39326 "                           (libguestfs-c-mode))))\n"
39327 "\n"
39328 msgstr ""
39329
39330 #. type: textblock
39331 #: ../src/guestfs.pod:2762
39332 msgid "Enable warnings when compiling (and fix any problems this finds):"
39333 msgstr ""
39334
39335 #. type: verbatim
39336 #: ../src/guestfs.pod:2765
39337 #, no-wrap
39338 msgid ""
39339 " ./configure --enable-gcc-warnings\n"
39340 "\n"
39341 msgstr ""
39342 " ./configure --enable-gcc-warnings\n"
39343 "\n"
39344
39345 #. type: textblock
39346 #: ../src/guestfs.pod:2767
39347 msgid "Useful targets are:"
39348 msgstr ""
39349
39350 #. type: verbatim
39351 #: ../src/guestfs.pod:2769
39352 #, no-wrap
39353 msgid ""
39354 " make syntax-check  # checks the syntax of the C code\n"
39355 " make check         # runs the test suite\n"
39356 "\n"
39357 msgstr ""
39358
39359 #. type: =head2
39360 #: ../src/guestfs.pod:2772
39361 msgid "DAEMON CUSTOM PRINTF FORMATTERS"
39362 msgstr ""
39363
39364 #. type: textblock
39365 #: ../src/guestfs.pod:2774
39366 msgid ""
39367 "In the daemon code we have created custom printf formatters C<%Q> and C<%R>, "
39368 "which are used to do shell quoting."
39369 msgstr ""
39370
39371 #. type: =item
39372 #: ../src/guestfs.pod:2779
39373 msgid "%Q"
39374 msgstr "%Q"
39375
39376 #. type: textblock
39377 #: ../src/guestfs.pod:2781
39378 msgid ""
39379 "Simple shell quoted string.  Any spaces or other shell characters are "
39380 "escaped for you."
39381 msgstr ""
39382
39383 #. type: =item
39384 #: ../src/guestfs.pod:2784
39385 msgid "%R"
39386 msgstr "%R"
39387
39388 #. type: textblock
39389 #: ../src/guestfs.pod:2786
39390 msgid ""
39391 "Same as C<%Q> except the string is treated as a path which is prefixed by "
39392 "the sysroot."
39393 msgstr ""
39394
39395 #. type: verbatim
39396 #: ../src/guestfs.pod:2793
39397 #, no-wrap
39398 msgid ""
39399 " asprintf (&cmd, \"cat %R\", path);\n"
39400 "\n"
39401 msgstr ""
39402
39403 #. type: textblock
39404 #: ../src/guestfs.pod:2795
39405 msgid "would produce C<cat /sysroot/some\\ path\\ with\\ spaces>"
39406 msgstr ""
39407
39408 #. type: textblock
39409 #: ../src/guestfs.pod:2797
39410 msgid ""
39411 "I<Note:> Do I<not> use these when you are passing parameters to the C<command"
39412 "{,r,v,rv}()> functions.  These parameters do NOT need to be quoted because "
39413 "they are not passed via the shell (instead, straight to exec).  You probably "
39414 "want to use the C<sysroot_path()> function however."
39415 msgstr ""
39416
39417 #. type: =head2
39418 #: ../src/guestfs.pod:2803
39419 msgid "SUBMITTING YOUR NEW API ACTIONS"
39420 msgstr ""
39421
39422 #. type: textblock
39423 #: ../src/guestfs.pod:2805
39424 msgid ""
39425 "Submit patches to the mailing list: L<http://www.redhat.com/mailman/listinfo/"
39426 "libguestfs> and CC to L<rjones@redhat.com>."
39427 msgstr ""
39428
39429 #. type: =head2
39430 #: ../src/guestfs.pod:2809
39431 msgid "INTERNATIONALIZATION (I18N) SUPPORT"
39432 msgstr ""
39433
39434 #. type: textblock
39435 #: ../src/guestfs.pod:2811
39436 msgid "We support i18n (gettext anyhow) in the library."
39437 msgstr ""
39438
39439 #. type: textblock
39440 #: ../src/guestfs.pod:2813
39441 msgid ""
39442 "However many messages come from the daemon, and we don't translate those at "
39443 "the moment.  One reason is that the appliance generally has all locale files "
39444 "removed from it, because they take up a lot of space.  So we'd have to readd "
39445 "some of those, as well as copying our PO files into the appliance."
39446 msgstr ""
39447
39448 #. type: textblock
39449 #: ../src/guestfs.pod:2819
39450 msgid ""
39451 "Debugging messages are never translated, since they are intended for the "
39452 "programmers."
39453 msgstr ""
39454
39455 #. type: =head2
39456 #: ../src/guestfs.pod:2822
39457 msgid "SOURCE CODE SUBDIRECTORIES"
39458 msgstr ""
39459
39460 #. type: =item
39461 #: ../src/guestfs.pod:2826
39462 msgid "C<align>"
39463 msgstr ""
39464
39465 #. type: textblock
39466 #: ../src/guestfs.pod:2828
39467 msgid "L<virt-alignment-scan(1)> command and documentation."
39468 msgstr ""
39469
39470 #. type: textblock
39471 #: ../src/guestfs.pod:2832
39472 msgid "The libguestfs appliance, build scripts and so on."
39473 msgstr ""
39474
39475 #. type: =item
39476 #: ../src/guestfs.pod:2834
39477 msgid "C<capitests>"
39478 msgstr "C<capitests>"
39479
39480 #. type: textblock
39481 #: ../src/guestfs.pod:2836
39482 msgid "Automated tests of the C API."
39483 msgstr ""
39484
39485 #. type: =item
39486 #: ../src/guestfs.pod:2838
39487 msgid "C<cat>"
39488 msgstr "C<cat>"
39489
39490 #. type: textblock
39491 #: ../src/guestfs.pod:2840
39492 msgid ""
39493 "The L<virt-cat(1)>, L<virt-filesystems(1)> and L<virt-ls(1)> commands and "
39494 "documentation."
39495 msgstr ""
39496
39497 #. type: =item
39498 #: ../src/guestfs.pod:2843
39499 msgid "C<caution>"
39500 msgstr ""
39501
39502 #. type: textblock
39503 #: ../src/guestfs.pod:2845
39504 msgid ""
39505 "Safety and liveness tests of components that libguestfs depends upon (not of "
39506 "libguestfs itself).  Mainly this is for qemu and the kernel."
39507 msgstr ""
39508
39509 #. type: =item
39510 #: ../src/guestfs.pod:2848
39511 msgid "C<contrib>"
39512 msgstr "C<contrib>"
39513
39514 #. type: textblock
39515 #: ../src/guestfs.pod:2850
39516 msgid "Outside contributions, experimental parts."
39517 msgstr ""
39518
39519 #. type: =item
39520 #: ../src/guestfs.pod:2852
39521 msgid "C<daemon>"
39522 msgstr "C<daemon>"
39523
39524 #. type: textblock
39525 #: ../src/guestfs.pod:2854
39526 msgid ""
39527 "The daemon that runs inside the libguestfs appliance and carries out actions."
39528 msgstr ""
39529
39530 #. type: =item
39531 #: ../src/guestfs.pod:2857
39532 msgid "C<df>"
39533 msgstr "C<df>"
39534
39535 #. type: textblock
39536 #: ../src/guestfs.pod:2859
39537 msgid "L<virt-df(1)> command and documentation."
39538 msgstr ""
39539
39540 #. type: =item
39541 #: ../src/guestfs.pod:2861
39542 msgid "C<edit>"
39543 msgstr ""
39544
39545 #. type: textblock
39546 #: ../src/guestfs.pod:2863
39547 msgid "L<virt-edit(1)> command and documentation."
39548 msgstr ""
39549
39550 #. type: =item
39551 #: ../src/guestfs.pod:2865
39552 msgid "C<examples>"
39553 msgstr "C<examples>"
39554
39555 #. type: textblock
39556 #: ../src/guestfs.pod:2867
39557 msgid "C API example code."
39558 msgstr "Код прикладів використання програмного інтерфейсу мовою C."
39559
39560 #. type: =item
39561 #: ../src/guestfs.pod:2869
39562 msgid "C<fish>"
39563 msgstr "C<fish>"
39564
39565 #. type: textblock
39566 #: ../src/guestfs.pod:2871
39567 msgid ""
39568 "L<guestfish(1)>, the command-line shell, and various shell scripts built on "
39569 "top such as L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, "
39570 "L<virt-tar-out(1)>."
39571 msgstr ""
39572
39573 #. type: =item
39574 #: ../src/guestfs.pod:2875
39575 msgid "C<fuse>"
39576 msgstr "C<fuse>"
39577
39578 #. type: textblock
39579 #: ../src/guestfs.pod:2877
39580 msgid ""
39581 "L<guestmount(1)>, FUSE (userspace filesystem) built on top of libguestfs."
39582 msgstr ""
39583
39584 #. type: =item
39585 #: ../src/guestfs.pod:2879
39586 msgid "C<generator>"
39587 msgstr "C<generator>"
39588
39589 #. type: textblock
39590 #: ../src/guestfs.pod:2881
39591 msgid ""
39592 "The crucially important generator, used to automatically generate large "
39593 "amounts of boilerplate C code for things like RPC and bindings."
39594 msgstr ""
39595
39596 #. type: =item
39597 #: ../src/guestfs.pod:2884
39598 msgid "C<images>"
39599 msgstr "C<images>"
39600
39601 #. type: textblock
39602 #: ../src/guestfs.pod:2886
39603 msgid "Files used by the test suite."
39604 msgstr ""
39605
39606 #. type: textblock
39607 #: ../src/guestfs.pod:2888
39608 msgid "Some \"phony\" guest images which we test against."
39609 msgstr ""
39610
39611 #. type: =item
39612 #: ../src/guestfs.pod:2890
39613 msgid "C<inspector>"
39614 msgstr "C<inspector>"
39615
39616 #. type: textblock
39617 #: ../src/guestfs.pod:2892
39618 msgid "L<virt-inspector(1)>, the virtual machine image inspector."
39619 msgstr ""
39620
39621 #. type: =item
39622 #: ../src/guestfs.pod:2894
39623 msgid "C<logo>"
39624 msgstr "C<logo>"
39625
39626 #. type: textblock
39627 #: ../src/guestfs.pod:2896
39628 msgid "Logo used on the website.  The fish is called Arthur by the way."
39629 msgstr ""
39630
39631 #. type: =item
39632 #: ../src/guestfs.pod:2898
39633 msgid "C<m4>"
39634 msgstr "C<m4>"
39635
39636 #. type: textblock
39637 #: ../src/guestfs.pod:2900
39638 msgid "M4 macros used by autoconf."
39639 msgstr ""
39640
39641 #. type: =item
39642 #: ../src/guestfs.pod:2902
39643 msgid "C<po>"
39644 msgstr "C<po>"
39645
39646 #. type: textblock
39647 #: ../src/guestfs.pod:2904
39648 msgid "Translations of simple gettext strings."
39649 msgstr "Переклади простих рядків gettext."
39650
39651 #. type: =item
39652 #: ../src/guestfs.pod:2906
39653 msgid "C<po-docs>"
39654 msgstr "C<po-docs>"
39655
39656 #. type: textblock
39657 #: ../src/guestfs.pod:2908
39658 msgid ""
39659 "The build infrastructure and PO files for translations of manpages and POD "
39660 "files.  Eventually this will be combined with the C<po> directory, but that "
39661 "is rather complicated."
39662 msgstr ""
39663
39664 #. type: =item
39665 #: ../src/guestfs.pod:2912
39666 msgid "C<regressions>"
39667 msgstr "C<regressions>"
39668
39669 #. type: textblock
39670 #: ../src/guestfs.pod:2914
39671 msgid "Regression tests."
39672 msgstr "Тести на регресії."
39673
39674 #. type: =item
39675 #: ../src/guestfs.pod:2916
39676 msgid "C<rescue>"
39677 msgstr "C<rescue>"
39678
39679 #. type: textblock
39680 #: ../src/guestfs.pod:2918
39681 msgid "L<virt-rescue(1)> command and documentation."
39682 msgstr ""
39683
39684 #. type: =item
39685 #: ../src/guestfs.pod:2920
39686 #, fuzzy
39687 #| msgid "C<rescue>"
39688 msgid "C<resize>"
39689 msgstr "C<rescue>"
39690
39691 #. type: textblock
39692 #: ../src/guestfs.pod:2922
39693 msgid "L<virt-resize(1)> command and documentation."
39694 msgstr ""
39695
39696 #. type: =item
39697 #: ../src/guestfs.pod:2924
39698 msgid "C<sparsify>"
39699 msgstr ""
39700
39701 #. type: textblock
39702 #: ../src/guestfs.pod:2926
39703 msgid "L<virt-sparsify(1)> command and documentation."
39704 msgstr ""
39705
39706 #. type: =item
39707 #: ../src/guestfs.pod:2928
39708 msgid "C<src>"
39709 msgstr "C<src>"
39710
39711 #. type: textblock
39712 #: ../src/guestfs.pod:2930
39713 msgid "Source code to the C library."
39714 msgstr ""
39715
39716 #. type: =item
39717 #: ../src/guestfs.pod:2932
39718 msgid "C<tools>"
39719 msgstr "C<tools>"
39720
39721 #. type: textblock
39722 #: ../src/guestfs.pod:2934
39723 msgid ""
39724 "Command line tools written in Perl (L<virt-win-reg(1)> and many others)."
39725 msgstr ""
39726
39727 #. type: =item
39728 #: ../src/guestfs.pod:2936
39729 msgid "C<test-tool>"
39730 msgstr "C<test-tool>"
39731
39732 #. type: textblock
39733 #: ../src/guestfs.pod:2938
39734 msgid ""
39735 "Test tool for end users to test if their qemu/kernel combination will work "
39736 "with libguestfs."
39737 msgstr ""
39738
39739 #. type: =item
39740 #: ../src/guestfs.pod:2941
39741 msgid "C<csharp>"
39742 msgstr "C<csharp>"
39743
39744 #. type: =item
39745 #: ../src/guestfs.pod:2943
39746 msgid "C<erlang>"
39747 msgstr ""
39748
39749 #. type: =item
39750 #: ../src/guestfs.pod:2945
39751 msgid "C<haskell>"
39752 msgstr "C<haskell>"
39753
39754 #. type: =item
39755 #: ../src/guestfs.pod:2947
39756 msgid "C<java>"
39757 msgstr "C<java>"
39758
39759 #. type: =item
39760 #: ../src/guestfs.pod:2949
39761 msgid "C<ocaml>"
39762 msgstr "C<ocaml>"
39763
39764 #. type: =item
39765 #: ../src/guestfs.pod:2951
39766 msgid "C<php>"
39767 msgstr "C<php>"
39768
39769 #. type: =item
39770 #: ../src/guestfs.pod:2953
39771 msgid "C<perl>"
39772 msgstr "C<perl>"
39773
39774 #. type: =item
39775 #: ../src/guestfs.pod:2955
39776 msgid "C<python>"
39777 msgstr "C<python>"
39778
39779 #. type: =item
39780 #: ../src/guestfs.pod:2957
39781 msgid "C<ruby>"
39782 msgstr "C<ruby>"
39783
39784 #. type: textblock
39785 #: ../src/guestfs.pod:2959
39786 msgid "Language bindings."
39787 msgstr "Прив’язки до мов програмування."
39788
39789 #. type: =head2
39790 #: ../src/guestfs.pod:2963
39791 msgid "MAKING A STABLE RELEASE"
39792 msgstr ""
39793
39794 #. type: textblock
39795 #: ../src/guestfs.pod:2965
39796 msgid ""
39797 "When we make a stable release, there are several steps documented here.  See "
39798 "L</LIBGUESTFS VERSION NUMBERS> for general information about the stable "
39799 "branch policy."
39800 msgstr ""
39801
39802 #. type: textblock
39803 #: ../src/guestfs.pod:2973
39804 msgid ""
39805 "Check C<make && make check> works on at least Fedora, Debian and Ubuntu."
39806 msgstr ""
39807
39808 #. type: textblock
39809 #: ../src/guestfs.pod:2978
39810 msgid "Finalize RELEASE-NOTES."
39811 msgstr ""
39812
39813 #. type: textblock
39814 #: ../src/guestfs.pod:2982
39815 msgid "Update ROADMAP."
39816 msgstr ""
39817
39818 #. type: textblock
39819 #: ../src/guestfs.pod:2986
39820 msgid "Run C<src/api-support/update-from-tarballs.sh>."
39821 msgstr ""
39822
39823 #. type: textblock
39824 #: ../src/guestfs.pod:2990
39825 msgid "Push and pull from Transifex."
39826 msgstr ""
39827
39828 #. type: textblock
39829 #: ../src/guestfs.pod:2992
39830 msgid "Run:"
39831 msgstr ""
39832
39833 #. type: verbatim
39834 #: ../src/guestfs.pod:2994
39835 #, no-wrap
39836 msgid ""
39837 " tx push -s\n"
39838 "\n"
39839 msgstr ""
39840
39841 #. type: textblock
39842 #: ../src/guestfs.pod:2996
39843 msgid "to push the latest POT files to Transifex.  Then run:"
39844 msgstr ""
39845
39846 #. type: verbatim
39847 #: ../src/guestfs.pod:2998
39848 #, no-wrap
39849 msgid ""
39850 " ./tx-pull.sh\n"
39851 "\n"
39852 msgstr ""
39853
39854 #. type: textblock
39855 #: ../src/guestfs.pod:3000
39856 msgid "which is a wrapper to pull the latest translated C<*.po> files."
39857 msgstr ""
39858
39859 #. type: textblock
39860 #: ../src/guestfs.pod:3004
39861 msgid ""
39862 "Create new stable and development directories under L<http://libguestfs.org/"
39863 "download>."
39864 msgstr ""
39865
39866 #. type: textblock
39867 #: ../src/guestfs.pod:3009
39868 msgid "Create the branch in git:"
39869 msgstr ""
39870
39871 #. type: verbatim
39872 #: ../src/guestfs.pod:3011
39873 #, no-wrap
39874 msgid ""
39875 " git tag -a 1.XX.0 -m \"Version 1.XX.0 (stable)\"\n"
39876 " git tag -a 1.YY.0 -m \"Version 1.YY.0 (development)\"\n"
39877 " git branch stable-1.XX\n"
39878 " git push origin tag 1.XX.0 1.YY.0 stable-1.XX\n"
39879 "\n"
39880 msgstr ""
39881
39882 #. type: =head1
39883 #: ../src/guestfs.pod:3018
39884 msgid "LIMITS"
39885 msgstr ""
39886
39887 #. type: =head2
39888 #: ../src/guestfs.pod:3020
39889 msgid "PROTOCOL LIMITS"
39890 msgstr "ОБМЕЖЕННЯ ПРОТОКОЛУ"
39891
39892 #. type: textblock
39893 #: ../src/guestfs.pod:3022
39894 msgid ""
39895 "Internally libguestfs uses a message-based protocol to pass API calls and "
39896 "their responses to and from a small \"appliance\" (see L</INTERNALS> for "
39897 "plenty more detail about this).  The maximum message size used by the "
39898 "protocol is slightly less than 4 MB.  For some API calls you may need to be "
39899 "aware of this limit.  The API calls which may be affected are individually "
39900 "documented, with a link back to this section of the documentation."
39901 msgstr ""
39902
39903 #. type: textblock
39904 #: ../src/guestfs.pod:3030
39905 msgid ""
39906 "A simple call such as L</guestfs_cat> returns its result (the file data) in "
39907 "a simple string.  Because this string is at some point internally encoded as "
39908 "a message, the maximum size that it can return is slightly under 4 MB.  If "
39909 "the requested file is larger than this then you will get an error."
39910 msgstr ""
39911
39912 #. type: textblock
39913 #: ../src/guestfs.pod:3036
39914 msgid ""
39915 "In order to transfer large files into and out of the guest filesystem, you "
39916 "need to use particular calls that support this.  The sections L</UPLOADING> "
39917 "and L</DOWNLOADING> document how to do this."
39918 msgstr ""
39919
39920 #. type: textblock
39921 #: ../src/guestfs.pod:3040
39922 msgid ""
39923 "You might also consider mounting the disk image using our FUSE filesystem "
39924 "support (L<guestmount(1)>)."
39925 msgstr ""
39926
39927 #. type: =head2
39928 #: ../src/guestfs.pod:3043
39929 msgid "MAXIMUM NUMBER OF DISKS"
39930 msgstr ""
39931
39932 #. type: textblock
39933 #: ../src/guestfs.pod:3045
39934 msgid "When using virtio disks (the default) the current limit is B<25> disks."
39935 msgstr ""
39936
39937 #. type: textblock
39938 #: ../src/guestfs.pod:3048
39939 msgid ""
39940 "Virtio itself consumes 1 virtual PCI slot per disk, and PCI is limited to 31 "
39941 "slots.  However febootstrap only understands disks with names C</dev/vda> "
39942 "through C</dev/vdz> (26 letters) and it reserves one disk for its own "
39943 "purposes."
39944 msgstr ""
39945
39946 #. type: textblock
39947 #: ../src/guestfs.pod:3053
39948 msgid ""
39949 "We are working to substantially raise this limit in future versions but it "
39950 "requires complex changes to qemu."
39951 msgstr ""
39952
39953 #. type: textblock
39954 #: ../src/guestfs.pod:3056
39955 msgid ""
39956 "In future versions of libguestfs it should also be possible to \"hot plug\" "
39957 "disks (add and remove disks after calling L</guestfs_launch>).  This also "
39958 "requires changes to qemu."
39959 msgstr ""
39960
39961 #. type: =head2
39962 #: ../src/guestfs.pod:3060
39963 msgid "MAXIMUM NUMBER OF PARTITIONS PER DISK"
39964 msgstr ""
39965
39966 #. type: textblock
39967 #: ../src/guestfs.pod:3062
39968 msgid "Virtio limits the maximum number of partitions per disk to B<15>."
39969 msgstr ""
39970
39971 #. type: textblock
39972 #: ../src/guestfs.pod:3064
39973 msgid ""
39974 "This is because it reserves 4 bits for the minor device number (thus C</dev/"
39975 "vda>, and C</dev/vda1> through C</dev/vda15>)."
39976 msgstr ""
39977
39978 #. type: textblock
39979 #: ../src/guestfs.pod:3067
39980 msgid ""
39981 "If you attach a disk with more than 15 partitions, the extra partitions are "
39982 "ignored by libguestfs."
39983 msgstr ""
39984
39985 #. type: =head2
39986 #: ../src/guestfs.pod:3070
39987 msgid "MAXIMUM SIZE OF A DISK"
39988 msgstr ""
39989
39990 #. type: textblock
39991 #: ../src/guestfs.pod:3072
39992 msgid "Probably the limit is between 2**63-1 and 2**64-1 bytes."
39993 msgstr ""
39994
39995 #. type: textblock
39996 #: ../src/guestfs.pod:3074
39997 msgid ""
39998 "We have tested block devices up to 1 exabyte (2**60 or "
39999 "1,152,921,504,606,846,976 bytes) using sparse files backed by an XFS host "
40000 "filesystem."
40001 msgstr ""
40002
40003 #. type: textblock
40004 #: ../src/guestfs.pod:3078
40005 msgid ""
40006 "Although libguestfs probably does not impose any limit, the underlying host "
40007 "storage will.  If you store disk images on a host ext4 filesystem, then the "
40008 "maximum size will be limited by the maximum ext4 file size (currently 16 "
40009 "TB).  If you store disk images as host logical volumes then you are limited "
40010 "by the maximum size of an LV."
40011 msgstr ""
40012
40013 #. type: textblock
40014 #: ../src/guestfs.pod:3084
40015 msgid ""
40016 "For the hugest disk image files, we recommend using XFS on the host for "
40017 "storage."
40018 msgstr ""
40019
40020 #. type: =head2
40021 #: ../src/guestfs.pod:3087
40022 msgid "MAXIMUM SIZE OF A PARTITION"
40023 msgstr ""
40024
40025 #. type: textblock
40026 #: ../src/guestfs.pod:3089
40027 msgid ""
40028 "The MBR (ie. classic MS-DOS) partitioning scheme uses 32 bit sector "
40029 "numbers.  Assuming a 512 byte sector size, this means that MBR cannot "
40030 "address a partition located beyond 2 TB on the disk."
40031 msgstr ""
40032
40033 #. type: textblock
40034 #: ../src/guestfs.pod:3093
40035 msgid ""
40036 "It is recommended that you use GPT partitions on disks which are larger than "
40037 "this size.  GPT uses 64 bit sector numbers and so can address partitions "
40038 "which are theoretically larger than the largest disk we could support."
40039 msgstr ""
40040
40041 #. type: =head2
40042 #: ../src/guestfs.pod:3098
40043 msgid "MAXIMUM SIZE OF A FILESYSTEM, FILES, DIRECTORIES"
40044 msgstr ""
40045
40046 #. type: textblock
40047 #: ../src/guestfs.pod:3100
40048 msgid ""
40049 "This depends on the filesystem type.  libguestfs itself does not impose any "
40050 "known limit.  Consult Wikipedia or the filesystem documentation to find out "
40051 "what these limits are."
40052 msgstr ""
40053
40054 #. type: =head2
40055 #: ../src/guestfs.pod:3104
40056 msgid "MAXIMUM UPLOAD AND DOWNLOAD"
40057 msgstr ""
40058
40059 #. type: textblock
40060 #: ../src/guestfs.pod:3106
40061 msgid ""
40062 "The API functions L</guestfs_upload>, L</guestfs_download>, L</"
40063 "guestfs_tar_in>, L</guestfs_tar_out> and the like allow unlimited sized "
40064 "uploads and downloads."
40065 msgstr ""
40066
40067 #. type: =head2
40068 #: ../src/guestfs.pod:3110
40069 msgid "INSPECTION LIMITS"
40070 msgstr ""
40071
40072 #. type: textblock
40073 #: ../src/guestfs.pod:3112
40074 msgid ""
40075 "The inspection code has several arbitrary limits on things like the size of "
40076 "Windows Registry hive it will read, and the length of product name.  These "
40077 "are intended to stop a malicious guest from consuming arbitrary amounts of "
40078 "memory and disk space on the host, and should not be reached in practice.  "
40079 "See the source code for more information."
40080 msgstr ""
40081
40082 #. type: textblock
40083 #: ../src/guestfs.pod:3138
40084 msgid ""
40085 "Set C<LIBGUESTFS_DEBUG=1> to enable verbose messages.  This has the same "
40086 "effect as calling C<guestfs_set_verbose (g, 1)>."
40087 msgstr ""
40088
40089 #. type: textblock
40090 #: ../src/guestfs.pod:3150
40091 msgid ""
40092 "Set the path that libguestfs uses to search for a supermin appliance.  See "
40093 "the discussion of paths in section L</PATH> above."
40094 msgstr ""
40095
40096 #. type: textblock
40097 #: ../src/guestfs.pod:3159
40098 msgid "See also L</QEMU WRAPPERS> above."
40099 msgstr ""
40100
40101 #. type: textblock
40102 #: ../src/guestfs.pod:3163
40103 msgid ""
40104 "Set C<LIBGUESTFS_TRACE=1> to enable command traces.  This has the same "
40105 "effect as calling C<guestfs_set_trace (g, 1)>."
40106 msgstr ""
40107
40108 #. type: textblock
40109 #: ../src/guestfs.pod:3181
40110 msgid ""
40111 "L<guestfs-examples(3)>, L<guestfs-erlang(3)>, L<guestfs-java(3)>, L<guestfs-"
40112 "ocaml(3)>, L<guestfs-perl(3)>, L<guestfs-python(3)>, L<guestfs-ruby(3)>, "
40113 "L<guestfish(1)>, L<guestmount(1)>, L<virt-alignment-scan(1)>, L<virt-cat(1)"
40114 ">, L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-df(1)>, L<virt-edit(1)>, "
40115 "L<virt-filesystems(1)>, L<virt-inspector(1)>, L<virt-list-filesystems(1)>, "
40116 "L<virt-list-partitions(1)>, L<virt-ls(1)>, L<virt-make-fs(1)>, L<virt-rescue"
40117 "(1)>, L<virt-resize(1)>, L<virt-sparsify(1)>, L<virt-tar(1)>, L<virt-tar-in"
40118 "(1)>, L<virt-tar-out(1)>, L<virt-win-reg(1)>, L<qemu(1)>, L<febootstrap(1)>, "
40119 "L<febootstrap-supermin-helper(8)>, L<hivex(3)>, L<http://libguestfs.org/>."
40120 msgstr ""
40121
40122 #. type: textblock
40123 #: ../src/guestfs.pod:3215
40124 msgid ""
40125 "Tools with a similar purpose: L<fdisk(8)>, L<parted(8)>, L<kpartx(8)>, L<lvm"
40126 "(8)>, L<disktype(1)>."
40127 msgstr ""
40128
40129 #. type: =head1
40130 #: ../src/guestfs.pod:3222 ../tools/virt-make-fs.pl:553
40131 #: ../tools/virt-win-reg.pl:761
40132 msgid "BUGS"
40133 msgstr "ВАДИ"
40134
40135 #. type: textblock
40136 #: ../src/guestfs.pod:3224
40137 msgid "To get a list of bugs against libguestfs use this link:"
40138 msgstr ""
40139 "Щоб переглянути список відомих вад у libguestfs, скористайтеся таким "
40140 "посиланням:"
40141
40142 #. type: textblock
40143 #: ../src/guestfs.pod:3226
40144 msgid ""
40145 "L<https://bugzilla.redhat.com/buglist.cgi?"
40146 "component=libguestfs&product=Virtualization+Tools>"
40147 msgstr ""
40148 "L<https://bugzilla.redhat.com/buglist.cgi?"
40149 "component=libguestfs&product=Virtualization+Tools>"
40150
40151 #. type: textblock
40152 #: ../src/guestfs.pod:3228
40153 msgid "To report a new bug against libguestfs use this link:"
40154 msgstr "Для звітування щодо вад у libguestfs скористайтеся цим посиланням:"
40155
40156 #. type: textblock
40157 #: ../src/guestfs.pod:3230
40158 msgid ""
40159 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
40160 "component=libguestfs&product=Virtualization+Tools>"
40161 msgstr ""
40162 "L<https://bugzilla.redhat.com/enter_bug.cgi?"
40163 "component=libguestfs&product=Virtualization+Tools>"
40164
40165 #. type: textblock
40166 #: ../src/guestfs.pod:3232
40167 msgid "When reporting a bug, please check:"
40168 msgstr ""
40169
40170 #. type: textblock
40171 #: ../src/guestfs.pod:3238
40172 msgid "That the bug hasn't been reported already."
40173 msgstr ""
40174
40175 #. type: textblock
40176 #: ../src/guestfs.pod:3242
40177 msgid "That you are testing a recent version."
40178 msgstr ""
40179
40180 #. type: textblock
40181 #: ../src/guestfs.pod:3246
40182 msgid "Describe the bug accurately, and give a way to reproduce it."
40183 msgstr ""
40184
40185 #. type: textblock
40186 #: ../src/guestfs.pod:3250
40187 msgid ""
40188 "Run libguestfs-test-tool and paste the B<complete, unedited> output into the "
40189 "bug report."
40190 msgstr ""
40191
40192 #. type: textblock
40193 #: ../test-tool/libguestfs-test-tool.pod:5
40194 msgid "libguestfs-test-tool - Diagnostics for libguestfs"
40195 msgstr ""
40196
40197 #. type: verbatim
40198 #: ../test-tool/libguestfs-test-tool.pod:9
40199 #, no-wrap
40200 msgid ""
40201 " libguestfs-test-tool [--options]\n"
40202 "\n"
40203 msgstr ""
40204
40205 #. type: textblock
40206 #: ../test-tool/libguestfs-test-tool.pod:13
40207 msgid ""
40208 "libguestfs-test-tool is a test program shipped with libguestfs to allow you "
40209 "to check basic libguestfs functionality is working.  This is needed because "
40210 "libguestfs occasionally breaks for reasons beyond our control: usually "
40211 "because of changes in the underlying qemu or kernel packages, or the host "
40212 "environment."
40213 msgstr ""
40214
40215 #. type: textblock
40216 #: ../test-tool/libguestfs-test-tool.pod:19
40217 msgid "If you suspect a problem in libguestfs, then just run:"
40218 msgstr ""
40219
40220 #. type: verbatim
40221 #: ../test-tool/libguestfs-test-tool.pod:21
40222 #, no-wrap
40223 msgid ""
40224 " libguestfs-test-tool\n"
40225 "\n"
40226 msgstr ""
40227
40228 #. type: textblock
40229 #: ../test-tool/libguestfs-test-tool.pod:23
40230 msgid "It will print lots of diagnostic messages."
40231 msgstr ""
40232
40233 #. type: textblock
40234 #: ../test-tool/libguestfs-test-tool.pod:25
40235 msgid "If it runs to completion successfully, you will see this near the end:"
40236 msgstr ""
40237
40238 #. type: verbatim
40239 #: ../test-tool/libguestfs-test-tool.pod:27
40240 #, no-wrap
40241 msgid ""
40242 " ===== TEST FINISHED OK =====\n"
40243 "\n"
40244 msgstr ""
40245
40246 #. type: textblock
40247 #: ../test-tool/libguestfs-test-tool.pod:29
40248 msgid "and the test tool will exit with code 0."
40249 msgstr ""
40250
40251 #. type: textblock
40252 #: ../test-tool/libguestfs-test-tool.pod:31
40253 msgid ""
40254 "If it fails (and/or exits with non-zero error code), please paste the "
40255 "I<complete, unedited> output of the test tool into a bug report.  More "
40256 "information about reporting bugs can be found on the L<http://libguestfs.org/"
40257 "> website."
40258 msgstr ""
40259
40260 #. type: textblock
40261 #: ../test-tool/libguestfs-test-tool.pod:42
40262 msgid "Display short usage information and exit."
40263 msgstr ""
40264
40265 #. type: =item
40266 #: ../test-tool/libguestfs-test-tool.pod:44
40267 #, fuzzy
40268 #| msgid "I<--qemu qemu_binary>"
40269 msgid "B<--qemu qemu_binary>"
40270 msgstr "I<--qemu виконуваний_файл_qemu>"
40271
40272 #. type: textblock
40273 #: ../test-tool/libguestfs-test-tool.pod:46
40274 msgid ""
40275 "If you have downloaded another qemu binary, point this option at the full "
40276 "path of the binary to try it."
40277 msgstr ""
40278
40279 #. type: =item
40280 #: ../test-tool/libguestfs-test-tool.pod:49
40281 #, fuzzy
40282 #| msgid "I<--qemu qemu_binary>"
40283 msgid "B<--qemudir qemu_source_dir>"
40284 msgstr "I<--qemu виконуваний_файл_qemu>"
40285
40286 #. type: textblock
40287 #: ../test-tool/libguestfs-test-tool.pod:51
40288 msgid ""
40289 "If you have compiled qemu from source, point this option at the source "
40290 "directory to try it."
40291 msgstr ""
40292
40293 #. type: =item
40294 #: ../test-tool/libguestfs-test-tool.pod:54
40295 msgid "B<-t N>"
40296 msgstr ""
40297
40298 #. type: =item
40299 #: ../test-tool/libguestfs-test-tool.pod:56
40300 #, fuzzy
40301 #| msgid "I<--timeout N>"
40302 msgid "B<--timeout N>"
40303 msgstr "I<--timeout N>"
40304
40305 #. type: textblock
40306 #: ../test-tool/libguestfs-test-tool.pod:58
40307 msgid ""
40308 "Set the launch timeout to C<N> seconds.  The default is 600 seconds (10 "
40309 "minutes) which does not usually need to be adjusted."
40310 msgstr ""
40311
40312 #. type: =head1
40313 #: ../test-tool/libguestfs-test-tool.pod:63
40314 msgid "TRYING OUT A DIFFERENT VERSION OF QEMU"
40315 msgstr ""
40316
40317 #. type: textblock
40318 #: ../test-tool/libguestfs-test-tool.pod:65
40319 msgid ""
40320 "If you have compiled another version of qemu from source and would like to "
40321 "try that, then you can use the I<--qemudir> option to point to the qemu "
40322 "source directory."
40323 msgstr ""
40324
40325 #. type: textblock
40326 #: ../test-tool/libguestfs-test-tool.pod:69
40327 msgid ""
40328 "If you have downloaded a qemu binary from somewhere, use the I<--qemu> "
40329 "option to point to the binary."
40330 msgstr ""
40331
40332 #. type: textblock
40333 #: ../test-tool/libguestfs-test-tool.pod:72
40334 msgid ""
40335 "Note when using these options, you can ignore the business of qemu wrapper "
40336 "scripts (L<guestfs(3)/QEMU WRAPPERS>), since libguestfs-test-tool writes a "
40337 "wrapper script for you if one is needed."
40338 msgstr ""
40339
40340 #. type: =head1
40341 #: ../test-tool/libguestfs-test-tool.pod:76
40342 msgid "TRYING OUT A DIFFERENT KERNEL"
40343 msgstr ""
40344
40345 #. type: textblock
40346 #: ../test-tool/libguestfs-test-tool.pod:78
40347 msgid ""
40348 "If you are using febootstrap E<ge> 3.8 then you can select which kernel "
40349 "libguestfs tries.  You do this by setting the environment variables "
40350 "C<FEBOOTSTRAP_KERNEL> and/or C<FEBOOTSTRAP_MODULES>."
40351 msgstr ""
40352
40353 #. type: textblock
40354 #: ../test-tool/libguestfs-test-tool.pod:82
40355 msgid ""
40356 "Refer to L<febootstrap-supermin-helper(8)/ENVIRONMENT VARIABLES> for further "
40357 "information."
40358 msgstr ""
40359
40360 #. type: =head1
40361 #: ../test-tool/libguestfs-test-tool.pod:85
40362 msgid "SELF-DIAGNOSIS"
40363 msgstr ""
40364
40365 #. type: textblock
40366 #: ../test-tool/libguestfs-test-tool.pod:87
40367 msgid ""
40368 "Refer to L<guestfs(3)/APPLIANCE BOOT PROCESS> to understand the messages "
40369 "produced by libguestfs-test-tool and/or possible errors."
40370 msgstr ""
40371
40372 #. type: textblock
40373 #: ../test-tool/libguestfs-test-tool.pod:92
40374 msgid ""
40375 "libguestfs-test-tool returns I<0> if the tests completed without error, or "
40376 "I<1> if there was an error."
40377 msgstr ""
40378
40379 #. type: textblock
40380 #: ../test-tool/libguestfs-test-tool.pod:97
40381 msgid ""
40382 "For the full list of environment variables which may affect libguestfs, "
40383 "please see the L<guestfs(3)> manual page."
40384 msgstr ""
40385
40386 #. type: textblock
40387 #: ../test-tool/libguestfs-test-tool.pod:102
40388 msgid "L<guestfs(3)>, L<http://libguestfs.org/>, L<http://qemu.org/>."
40389 msgstr ""
40390
40391 #. type: textblock
40392 #: ../tools/virt-list-filesystems.pl:32
40393 msgid ""
40394 "virt-list-filesystems - List filesystems in a virtual machine or disk image"
40395 msgstr ""
40396
40397 #. type: verbatim
40398 #: ../tools/virt-list-filesystems.pl:36
40399 #, no-wrap
40400 msgid ""
40401 " virt-list-filesystems [--options] domname\n"
40402 "\n"
40403 msgstr ""
40404
40405 #. type: verbatim
40406 #: ../tools/virt-list-filesystems.pl:38
40407 #, no-wrap
40408 msgid ""
40409 " virt-list-filesystems [--options] disk.img [disk.img ...]\n"
40410 "\n"
40411 msgstr ""
40412
40413 #. type: textblock
40414 #: ../tools/virt-list-filesystems.pl:42 ../tools/virt-list-partitions.pl:42
40415 msgid ""
40416 "This tool is obsolete.  Use L<virt-filesystems(1)> as a more flexible "
40417 "replacement."
40418 msgstr ""
40419
40420 #. type: textblock
40421 #: ../tools/virt-list-filesystems.pl:45
40422 msgid ""
40423 "C<virt-list-filesystems> is a command line tool to list the filesystems that "
40424 "are contained in a virtual machine or disk image."
40425 msgstr ""
40426
40427 #. type: textblock
40428 #: ../tools/virt-list-filesystems.pl:49
40429 msgid ""
40430 "C<virt-list-filesystems> is just a simple wrapper around L<libguestfs(3)> "
40431 "functionality.  For more complex cases you should look at the L<guestfish(1)"
40432 "> tool."
40433 msgstr ""
40434
40435 #. type: textblock
40436 #: ../tools/virt-list-filesystems.pl:112
40437 msgid ""
40438 "With this option, C<virt-list-filesystems> displays the type of each "
40439 "filesystem too (where \"type\" means C<ext3>, C<xfs> etc.)"
40440 msgstr ""
40441
40442 #. type: =item
40443 #: ../tools/virt-list-filesystems.pl:119
40444 #, fuzzy
40445 #| msgid "B<-a image>"
40446 msgid "B<-a>"
40447 msgstr "B<-a образ>"
40448
40449 #. type: textblock
40450 #: ../tools/virt-list-filesystems.pl:123
40451 msgid ""
40452 "Normally we only show mountable filesystems.  If this option is given then "
40453 "swap devices are shown too."
40454 msgstr ""
40455
40456 #. type: textblock
40457 #: ../tools/virt-list-filesystems.pl:197
40458 msgid ""
40459 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
40460 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
40461 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40462 msgstr ""
40463 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-tar(1)>, L<virt-"
40464 "filesystems(1)>, L<virt-list-partitions(1)>, L<Sys::Guestfs(3)>, L<Sys::"
40465 "Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40466
40467 #. type: textblock
40468 #: ../tools/virt-list-filesystems.pl:214 ../tools/virt-tar.pl:317
40469 msgid "Copyright (C) 2009 Red Hat Inc."
40470 msgstr "© Red Hat Inc., 2009"
40471
40472 #. type: textblock
40473 #: ../tools/virt-list-partitions.pl:32
40474 msgid ""
40475 "virt-list-partitions - List partitions in a virtual machine or disk image"
40476 msgstr ""
40477
40478 #. type: verbatim
40479 #: ../tools/virt-list-partitions.pl:36
40480 #, no-wrap
40481 msgid ""
40482 " virt-list-partitions [--options] domname\n"
40483 "\n"
40484 msgstr ""
40485 " virt-list-partitions [--параметри] назва_домену\n"
40486 "\n"
40487
40488 #. type: verbatim
40489 #: ../tools/virt-list-partitions.pl:38
40490 #, no-wrap
40491 msgid ""
40492 " virt-list-partitions [--options] disk.img [disk.img ...]\n"
40493 "\n"
40494 msgstr ""
40495 " virt-list-partitions [--параметри] диск.img [диск.img ...]\n"
40496 "\n"
40497
40498 #. type: textblock
40499 #: ../tools/virt-list-partitions.pl:45
40500 msgid ""
40501 "C<virt-list-partitions> is a command line tool to list the partitions that "
40502 "are contained in a virtual machine or disk image.  It is mainly useful as a "
40503 "first step to using L<virt-resize(1)>."
40504 msgstr ""
40505
40506 #. type: textblock
40507 #: ../tools/virt-list-partitions.pl:50
40508 msgid ""
40509 "C<virt-list-partitions> is just a simple wrapper around L<libguestfs(3)> "
40510 "functionality.  For more complex cases you should look at the L<guestfish(1)"
40511 "> tool."
40512 msgstr ""
40513
40514 #. type: textblock
40515 #: ../tools/virt-list-partitions.pl:113
40516 msgid "Show sizes in human-readable form (eg. \"1G\")."
40517 msgstr ""
40518
40519 #. type: textblock
40520 #: ../tools/virt-list-partitions.pl:123
40521 msgid ""
40522 "With this option, C<virt-list-partitions> displays the type and size of each "
40523 "partition too (where \"type\" means C<ext3>, C<pv> etc.)"
40524 msgstr ""
40525
40526 #. type: =item
40527 #: ../tools/virt-list-partitions.pl:130
40528 msgid "B<-t>"
40529 msgstr ""
40530
40531 #. type: =item
40532 #: ../tools/virt-list-partitions.pl:132
40533 #, fuzzy
40534 #| msgid "B<-t> | B<--total>"
40535 msgid "B<--total>"
40536 msgstr "B<-t> | B<--total>"
40537
40538 #. type: textblock
40539 #: ../tools/virt-list-partitions.pl:134
40540 msgid ""
40541 "Display the total size of each block device (as a separate row or rows)."
40542 msgstr ""
40543
40544 #. type: textblock
40545 #: ../tools/virt-list-partitions.pl:267
40546 msgid ""
40547 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
40548 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
40549 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40550 msgstr ""
40551 "L<guestfs(3)>, L<guestfish(1)>, L<virt-filesystems(1)>, L<virt-list-"
40552 "filesystems(1)>, L<virt-resize(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib"
40553 "(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
40554
40555 #. type: textblock
40556 #: ../tools/virt-list-partitions.pl:283
40557 msgid "Copyright (C) 2009-2010 Red Hat Inc."
40558 msgstr "© Red Hat Inc., 2009–2010"
40559
40560 #. type: textblock
40561 #: ../tools/virt-make-fs.pl:37
40562 msgid "virt-make-fs - Make a filesystem from a tar archive or files"
40563 msgstr ""
40564
40565 #. type: verbatim
40566 #: ../tools/virt-make-fs.pl:41
40567 #, no-wrap
40568 msgid ""
40569 " virt-make-fs [--options] input.tar output.img\n"
40570 "\n"
40571 msgstr ""
40572
40573 #. type: verbatim
40574 #: ../tools/virt-make-fs.pl:43
40575 #, no-wrap
40576 msgid ""
40577 " virt-make-fs [--options] input.tar.gz output.img\n"
40578 "\n"
40579 msgstr ""
40580
40581 #. type: verbatim
40582 #: ../tools/virt-make-fs.pl:45
40583 #, no-wrap
40584 msgid ""
40585 " virt-make-fs [--options] directory output.img\n"
40586 "\n"
40587 msgstr ""
40588
40589 #. type: textblock
40590 #: ../tools/virt-make-fs.pl:49
40591 msgid ""
40592 "Virt-make-fs is a command line tool for creating a filesystem from a tar "
40593 "archive or some files in a directory.  It is similar to tools like L<mkisofs"
40594 "(1)>, L<genisoimage(1)> and L<mksquashfs(1)>.  Unlike those tools, it can "
40595 "create common filesystem types like ext2/3 or NTFS, which can be useful if "
40596 "you want to attach these filesystems to existing virtual machines (eg. to "
40597 "import large amounts of read-only data to a VM)."
40598 msgstr ""
40599
40600 #. type: textblock
40601 #: ../tools/virt-make-fs.pl:57
40602 msgid "Basic usage is:"
40603 msgstr ""
40604
40605 #. type: verbatim
40606 #: ../tools/virt-make-fs.pl:59
40607 #, no-wrap
40608 msgid ""
40609 " virt-make-fs input output\n"
40610 "\n"
40611 msgstr ""
40612
40613 #. type: textblock
40614 #: ../tools/virt-make-fs.pl:61
40615 msgid ""
40616 "where C<input> is either a directory containing files that you want to add, "
40617 "or a tar archive (either uncompressed tar or gzip-compressed tar); and "
40618 "C<output> is a disk image.  The input type is detected automatically.  The "
40619 "output disk image defaults to a raw ext2 image unless you specify extra "
40620 "flags (see L</OPTIONS> below)."
40621 msgstr ""
40622
40623 #. type: =head2
40624 #: ../tools/virt-make-fs.pl:67
40625 msgid "EXTRA SPACE"
40626 msgstr ""
40627
40628 #. type: textblock
40629 #: ../tools/virt-make-fs.pl:69
40630 msgid ""
40631 "Unlike formats such as tar and squashfs, a filesystem does not \"just fit\" "
40632 "the files that it contains, but might have extra space.  Depending on how "
40633 "you are going to use the output, you might think this extra space is wasted "
40634 "and want to minimize it, or you might want to leave space so that more files "
40635 "can be added later.  Virt-make-fs defaults to minimizing the extra space, "
40636 "but you can use the I<--size> flag to leave space in the filesystem if you "
40637 "want it."
40638 msgstr ""
40639
40640 #. type: textblock
40641 #: ../tools/virt-make-fs.pl:77
40642 msgid ""
40643 "An alternative way to leave extra space but not make the output image any "
40644 "bigger is to use an alternative disk image format (instead of the default "
40645 "\"raw\" format).  Using I<--format=qcow2> will use the native QEmu/KVM qcow2 "
40646 "image format (check your hypervisor supports this before using it).  This "
40647 "allows you to choose a large I<--size> but the extra space won't actually be "
40648 "allocated in the image until you try to store something in it."
40649 msgstr ""
40650
40651 #. type: textblock
40652 #: ../tools/virt-make-fs.pl:85
40653 msgid ""
40654 "Don't forget that you can also use local commands including L<resize2fs(8)> "
40655 "and L<virt-resize(1)> to resize existing filesystems, or rerun virt-make-fs "
40656 "to build another image from scratch."
40657 msgstr ""
40658
40659 #. type: =head3
40660 #: ../tools/virt-make-fs.pl:89 ../tools/virt-make-fs.pl:123
40661 #: ../tools/virt-make-fs.pl:142
40662 msgid "EXAMPLE"
40663 msgstr "ПРИКЛАД"
40664
40665 #. type: verbatim
40666 #: ../tools/virt-make-fs.pl:91
40667 #, no-wrap
40668 msgid ""
40669 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
40670 "\n"
40671 msgstr ""
40672 " virt-make-fs --format=qcow2 --size=+200M input output.img\n"
40673 "\n"
40674
40675 #. type: =head2
40676 #: ../tools/virt-make-fs.pl:93
40677 msgid "FILESYSTEM TYPE"
40678 msgstr "ТИП ФАЙЛОВОЇ СИСТЕМИ"
40679
40680 #. type: textblock
40681 #: ../tools/virt-make-fs.pl:95
40682 msgid ""
40683 "The default filesystem type is C<ext2>.  Just about any filesystem type that "
40684 "libguestfs supports can be used (but I<not> read-only formats like "
40685 "ISO9660).  Here are some of the more common choices:"
40686 msgstr ""
40687
40688 #. type: =item
40689 #: ../tools/virt-make-fs.pl:101
40690 msgid "I<ext3>"
40691 msgstr "I<ext3>"
40692
40693 #. type: textblock
40694 #: ../tools/virt-make-fs.pl:103
40695 msgid ""
40696 "Note that ext3 filesystems contain a journal, typically 1-32 MB in size.  If "
40697 "you are not going to use the filesystem in a way that requires the journal, "
40698 "then this is just wasted overhead."
40699 msgstr ""
40700
40701 #. type: =item
40702 #: ../tools/virt-make-fs.pl:107
40703 msgid "I<ntfs> or I<vfat>"
40704 msgstr "I<ntfs> або I<vfat>"
40705
40706 #. type: textblock
40707 #: ../tools/virt-make-fs.pl:109
40708 msgid "Useful if exporting data to a Windows guest."
40709 msgstr ""
40710
40711 #. type: textblock
40712 #: ../tools/virt-make-fs.pl:111
40713 msgid ""
40714 "I<Note for vfat>: The tar archive or local directory must only contain files "
40715 "which are owned by root (ie. UID:GID = 0:0).  The reason is that the tar "
40716 "program running within libguestfs is unable to change the ownership of non-"
40717 "root files, since vfat itself does not support this."
40718 msgstr ""
40719
40720 #. type: =item
40721 #: ../tools/virt-make-fs.pl:116
40722 msgid "I<minix>"
40723 msgstr "I<minix>"
40724
40725 #. type: textblock
40726 #: ../tools/virt-make-fs.pl:118
40727 msgid ""
40728 "Lower overhead than C<ext2>, but certain limitations on filename length and "
40729 "total filesystem size."
40730 msgstr ""
40731
40732 #. type: verbatim
40733 #: ../tools/virt-make-fs.pl:125
40734 #, no-wrap
40735 msgid ""
40736 " virt-make-fs --type=minix input minixfs.img\n"
40737 "\n"
40738 msgstr ""
40739
40740 #. type: =head2
40741 #: ../tools/virt-make-fs.pl:127
40742 msgid "TO PARTITION OR NOT TO PARTITION"
40743 msgstr ""
40744
40745 #. type: textblock
40746 #: ../tools/virt-make-fs.pl:129
40747 msgid "Optionally virt-make-fs can add a partition table to the output disk."
40748 msgstr ""
40749
40750 #. type: textblock
40751 #: ../tools/virt-make-fs.pl:131
40752 msgid ""
40753 "Adding a partition can make the disk image more compatible with certain "
40754 "virtualized operating systems which don't expect to see a filesystem "
40755 "directly located on a block device (Linux doesn't care and will happily "
40756 "handle both types)."
40757 msgstr ""
40758
40759 #. type: textblock
40760 #: ../tools/virt-make-fs.pl:136
40761 msgid ""
40762 "On the other hand, if you have a partition table then the output image is no "
40763 "longer a straight filesystem.  For example you cannot run L<fsck(8)> "
40764 "directly on a partitioned disk image.  (However libguestfs tools such as "
40765 "L<guestfish(1)> and L<virt-resize(1)> can still be used)."
40766 msgstr ""
40767
40768 #. type: textblock
40769 #: ../tools/virt-make-fs.pl:144
40770 msgid "Add an MBR partition:"
40771 msgstr ""
40772
40773 #. type: verbatim
40774 #: ../tools/virt-make-fs.pl:146
40775 #, no-wrap
40776 msgid ""
40777 " virt-make-fs --partition -- input disk.img\n"
40778 "\n"
40779 msgstr ""
40780
40781 #. type: textblock
40782 #: ../tools/virt-make-fs.pl:148
40783 msgid ""
40784 "If the output disk image could be terabyte-sized or larger, it's better to "
40785 "use an EFI/GPT-compatible partition table:"
40786 msgstr ""
40787
40788 #. type: verbatim
40789 #: ../tools/virt-make-fs.pl:151
40790 #, no-wrap
40791 msgid ""
40792 " virt-make-fs --partition=gpt --size=+4T --format=qcow2 input disk.img\n"
40793 "\n"
40794 msgstr ""
40795
40796 #. type: textblock
40797 #: ../tools/virt-make-fs.pl:179
40798 msgid "Enable debugging information."
40799 msgstr "Увімкнути виведення діагностичних даних."
40800
40801 #. type: =item
40802 #: ../tools/virt-make-fs.pl:185
40803 msgid "B<--size=E<lt>NE<gt>>"
40804 msgstr "B<--size=E<lt>NE<gt>>"
40805
40806 #. type: =item
40807 #: ../tools/virt-make-fs.pl:187
40808 msgid "B<--size=+E<lt>NE<gt>>"
40809 msgstr "B<--size=+E<lt>NE<gt>>"
40810
40811 #. type: =item
40812 #: ../tools/virt-make-fs.pl:189
40813 msgid "B<-s E<lt>NE<gt>>"
40814 msgstr "B<-s E<lt>NE<gt>>"
40815
40816 #. type: =item
40817 #: ../tools/virt-make-fs.pl:191
40818 msgid "B<-s +E<lt>NE<gt>>"
40819 msgstr "B<-s +E<lt>NE<gt>>"
40820
40821 #. type: textblock
40822 #: ../tools/virt-make-fs.pl:193
40823 msgid ""
40824 "Use the I<--size> (or I<-s>) option to choose the size of the output image."
40825 msgstr ""
40826
40827 #. type: textblock
40828 #: ../tools/virt-make-fs.pl:196
40829 msgid ""
40830 "If this option is I<not> given, then the output image will be just large "
40831 "enough to contain all the files, with not much wasted space."
40832 msgstr ""
40833
40834 #. type: textblock
40835 #: ../tools/virt-make-fs.pl:199
40836 msgid ""
40837 "To choose a fixed size output disk, specify an absolute number followed by b/"
40838 "K/M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40839 "Petabytes or Exabytes.  This must be large enough to contain all the input "
40840 "files, else you will get an error."
40841 msgstr ""
40842
40843 #. type: textblock
40844 #: ../tools/virt-make-fs.pl:204
40845 msgid ""
40846 "To leave extra space, specify C<+> (plus sign) and a number followed by b/K/"
40847 "M/G/T/P/E to mean bytes, Kilobytes, Megabytes, Gigabytes, Terabytes, "
40848 "Petabytes or Exabytes.  For example: I<--size=+200M> means enough space for "
40849 "the input files, and (approximately) an extra 200 MB free space."
40850 msgstr ""
40851
40852 #. type: textblock
40853 #: ../tools/virt-make-fs.pl:210
40854 msgid ""
40855 "Note that virt-make-fs estimates free space, and therefore will not produce "
40856 "filesystems containing precisely the free space requested.  (It is much more "
40857 "expensive and time-consuming to produce a filesystem which has precisely the "
40858 "desired free space)."
40859 msgstr ""
40860
40861 #. type: =item
40862 #: ../tools/virt-make-fs.pl:219
40863 msgid "B<--format=E<lt>fmtE<gt>>"
40864 msgstr ""
40865
40866 #. type: =item
40867 #: ../tools/virt-make-fs.pl:221
40868 msgid "B<-F E<lt>fmtE<gt>>"
40869 msgstr ""
40870
40871 #. type: textblock
40872 #: ../tools/virt-make-fs.pl:223
40873 msgid "Choose the output disk image format."
40874 msgstr ""
40875
40876 #. type: textblock
40877 #: ../tools/virt-make-fs.pl:225
40878 msgid "The default is C<raw> (raw disk image)."
40879 msgstr ""
40880
40881 #. type: textblock
40882 #: ../tools/virt-make-fs.pl:227
40883 msgid ""
40884 "For other choices, see the L<qemu-img(1)> manpage.  The only other choice "
40885 "that would really make sense here is C<qcow2>."
40886 msgstr ""
40887
40888 #. type: =item
40889 #: ../tools/virt-make-fs.pl:234
40890 msgid "B<--type=E<lt>fsE<gt>>"
40891 msgstr ""
40892
40893 #. type: =item
40894 #: ../tools/virt-make-fs.pl:236
40895 msgid "B<-t E<lt>fsE<gt>>"
40896 msgstr ""
40897
40898 #. type: textblock
40899 #: ../tools/virt-make-fs.pl:238
40900 msgid "Choose the output filesystem type."
40901 msgstr ""
40902
40903 #. type: textblock
40904 #: ../tools/virt-make-fs.pl:240
40905 msgid "The default is C<ext2>."
40906 msgstr "Типовим значенням є C<ext2>."
40907
40908 #. type: textblock
40909 #: ../tools/virt-make-fs.pl:242
40910 msgid ""
40911 "Any filesystem which is supported read-write by libguestfs can be used here."
40912 msgstr ""
40913
40914 #. type: =item
40915 #: ../tools/virt-make-fs.pl:249
40916 msgid "B<--partition>"
40917 msgstr "B<--partition>"
40918
40919 #. type: =item
40920 #: ../tools/virt-make-fs.pl:251
40921 msgid "B<--partition=E<lt>parttypeE<gt>>"
40922 msgstr ""
40923
40924 #. type: textblock
40925 #: ../tools/virt-make-fs.pl:253
40926 msgid ""
40927 "If specified, this flag adds an MBR partition table to the output disk image."
40928 msgstr ""
40929
40930 #. type: textblock
40931 #: ../tools/virt-make-fs.pl:256
40932 msgid ""
40933 "You can change the partition table type, eg. I<--partition=gpt> for large "
40934 "disks."
40935 msgstr ""
40936
40937 #. type: textblock
40938 #: ../tools/virt-make-fs.pl:259
40939 msgid ""
40940 "Note that if you just use a lonesome I<--partition>, the Perl option parser "
40941 "might consider the next parameter to be the partition type.  For example:"
40942 msgstr ""
40943
40944 #. type: verbatim
40945 #: ../tools/virt-make-fs.pl:263
40946 #, no-wrap
40947 msgid ""
40948 " virt-make-fs --partition input.tar ...\n"
40949 "\n"
40950 msgstr ""
40951
40952 #. type: textblock
40953 #: ../tools/virt-make-fs.pl:265
40954 msgid ""
40955 "would cause virt-make-fs to think you wanted to use a partition type of "
40956 "C<input.tar> which is completely wrong.  To avoid this, use I<--> (a double "
40957 "dash) between options and the input file argument:"
40958 msgstr ""
40959
40960 #. type: verbatim
40961 #: ../tools/virt-make-fs.pl:269
40962 #, no-wrap
40963 msgid ""
40964 " virt-make-fs --partition -- input.tar ...\n"
40965 "\n"
40966 msgstr ""
40967 " virt-make-fs --partition -- input.tar ...\n"
40968 "\n"
40969
40970 #. type: textblock
40971 #: ../tools/virt-make-fs.pl:541
40972 msgid ""
40973 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40974 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
40975 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40976 msgstr ""
40977 "L<guestfish(1)>, L<virt-resize(1)>, L<virt-tar-in(1)>, L<mkisofs(1)>, "
40978 "L<genisoimage(1)>, L<mksquashfs(1)>, L<mke2fs(8)>, L<resize2fs(8)>, L<guestfs"
40979 "(3)>, L<Sys::Guestfs(3)>, L<http://libguestfs.org/>."
40980
40981 #. type: textblock
40982 #: ../tools/virt-make-fs.pl:555 ../tools/virt-win-reg.pl:763
40983 msgid ""
40984 "When reporting bugs, please enable debugging and capture the I<complete> "
40985 "output:"
40986 msgstr ""
40987
40988 #. type: verbatim
40989 #: ../tools/virt-make-fs.pl:558
40990 #, no-wrap
40991 msgid ""
40992 " export LIBGUESTFS_DEBUG=1\n"
40993 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40994 "\n"
40995 msgstr ""
40996 " export LIBGUESTFS_DEBUG=1\n"
40997 " virt-make-fs --debug [...] > /tmp/virt-make-fs.log 2>&1\n"
40998 "\n"
40999
41000 #. type: textblock
41001 #: ../tools/virt-make-fs.pl:561
41002 msgid ""
41003 "Attach /tmp/virt-make-fs.log to a new bug report at L<https://bugzilla."
41004 "redhat.com/>"
41005 msgstr ""
41006
41007 #. type: textblock
41008 #: ../tools/virt-tar.pl:33
41009 msgid "virt-tar - Extract or upload files to a virtual machine"
41010 msgstr ""
41011
41012 #. type: verbatim
41013 #: ../tools/virt-tar.pl:37
41014 #, no-wrap
41015 msgid ""
41016 " virt-tar [--options] -x domname directory tarball\n"
41017 "\n"
41018 msgstr ""
41019
41020 #. type: verbatim
41021 #: ../tools/virt-tar.pl:39
41022 #, no-wrap
41023 msgid ""
41024 " virt-tar [--options] -u domname tarball directory\n"
41025 "\n"
41026 msgstr ""
41027
41028 #. type: verbatim
41029 #: ../tools/virt-tar.pl:41
41030 #, no-wrap
41031 msgid ""
41032 " virt-tar [--options] disk.img [disk.img ...] -x directory tarball\n"
41033 "\n"
41034 msgstr ""
41035
41036 #. type: verbatim
41037 #: ../tools/virt-tar.pl:43
41038 #, no-wrap
41039 msgid ""
41040 " virt-tar [--options] disk.img [disk.img ...] -u tarball directory\n"
41041 "\n"
41042 msgstr ""
41043
41044 #. type: =head2
41045 #: ../tools/virt-tar.pl:45 ../tools/virt-win-reg.pl:88
41046 msgid "NOTE"
41047 msgstr "ПРИМІТКА"
41048
41049 #. type: textblock
41050 #: ../tools/virt-tar.pl:47
41051 msgid ""
41052 "This tool is obsolete.  Use L<virt-copy-in(1)>, L<virt-copy-out(1)>, L<virt-"
41053 "tar-in(1)>, L<virt-tar-out(1)> as replacements."
41054 msgstr ""
41055
41056 #. type: textblock
41057 #: ../tools/virt-tar.pl:52
41058 msgid "Download C</home> from the VM into a local tarball:"
41059 msgstr ""
41060
41061 #. type: verbatim
41062 #: ../tools/virt-tar.pl:54
41063 #, no-wrap
41064 msgid ""
41065 " virt-tar -x domname /home home.tar\n"
41066 "\n"
41067 msgstr ""
41068
41069 #. type: verbatim
41070 #: ../tools/virt-tar.pl:56
41071 #, no-wrap
41072 msgid ""
41073 " virt-tar -zx domname /home home.tar.gz\n"
41074 "\n"
41075 msgstr ""
41076
41077 #. type: textblock
41078 #: ../tools/virt-tar.pl:58
41079 msgid "Upload a local tarball and unpack it inside C</tmp> in the VM:"
41080 msgstr ""
41081
41082 #. type: verbatim
41083 #: ../tools/virt-tar.pl:60
41084 #, no-wrap
41085 msgid ""
41086 " virt-tar -u domname uploadstuff.tar /tmp\n"
41087 "\n"
41088 msgstr ""
41089
41090 #. type: verbatim
41091 #: ../tools/virt-tar.pl:62
41092 #, no-wrap
41093 msgid ""
41094 " virt-tar -zu domname uploadstuff.tar.gz /tmp\n"
41095 "\n"
41096 msgstr ""
41097
41098 #. type: textblock
41099 #: ../tools/virt-tar.pl:66
41100 msgid ""
41101 "You must I<not> use C<virt-tar> with the I<-u> option (upload) on live "
41102 "virtual machines.  If you do this, you risk disk corruption in the VM.  "
41103 "C<virt-tar> tries to stop you from doing this, but doesn't catch all cases."
41104 msgstr ""
41105
41106 #. type: textblock
41107 #: ../tools/virt-tar.pl:71
41108 msgid ""
41109 "You can use I<-x> (extract) on live virtual machines, but you might get "
41110 "inconsistent results or errors if there is filesystem activity inside the "
41111 "VM.  If the live VM is synched and quiescent, then C<virt-tar> will usually "
41112 "work, but the only way to guarantee consistent results is if the virtual "
41113 "machine is shut down."
41114 msgstr ""
41115
41116 #. type: textblock
41117 #: ../tools/virt-tar.pl:79
41118 msgid ""
41119 "C<virt-tar> is a general purpose archive tool for downloading and uploading "
41120 "parts of a guest filesystem.  There are many possibilities: making backups, "
41121 "uploading data files, snooping on guest activity, fixing or customizing "
41122 "guests, etc."
41123 msgstr ""
41124
41125 #. type: textblock
41126 #: ../tools/virt-tar.pl:84
41127 msgid ""
41128 "If you want to just view a single file, use L<virt-cat(1)>.  If you just "
41129 "want to edit a single file, use L<virt-edit(1)>.  For more complex cases you "
41130 "should look at the L<guestfish(1)> tool."
41131 msgstr ""
41132
41133 #. type: textblock
41134 #: ../tools/virt-tar.pl:88
41135 msgid ""
41136 "There are two modes of operation: I<-x> (eXtract) downloads a directory and "
41137 "its contents (recursively) from the virtual machine into a local tarball.  "
41138 "I<-u> uploads from a local tarball, unpacking it into a directory inside the "
41139 "virtual machine.  You cannot use these two options together."
41140 msgstr ""
41141
41142 #. type: textblock
41143 #: ../tools/virt-tar.pl:94
41144 msgid ""
41145 "In addition, you may need to use the I<-z> (gZip) option to enable "
41146 "compression.  When uploading, you have to specify I<-z> if the upload file "
41147 "is compressed because virt-tar won't detect this on its own."
41148 msgstr ""
41149
41150 #. type: textblock
41151 #: ../tools/virt-tar.pl:98
41152 msgid ""
41153 "C<virt-tar> can only handle tar (optionally gzipped) format tarballs.  For "
41154 "example it cannot do PKZip files or bzip2 compression.  If you want that "
41155 "then you'll have to rebuild the tarballs yourself.  (This is a limitation of "
41156 "the L<libguestfs(3)> API)."
41157 msgstr ""
41158
41159 #. type: =item
41160 #: ../tools/virt-tar.pl:160
41161 #, fuzzy
41162 #| msgid "B<--format>"
41163 msgid "B<--extract>"
41164 msgstr "B<--format>"
41165
41166 #. type: =item
41167 #: ../tools/virt-tar.pl:162
41168 #, fuzzy
41169 #| msgid "download"
41170 msgid "B<--download>"
41171 msgstr "download"
41172
41173 #. type: =item
41174 #: ../tools/virt-tar.pl:164
41175 msgid "B<-u>"
41176 msgstr ""
41177
41178 #. type: =item
41179 #: ../tools/virt-tar.pl:166
41180 #, fuzzy
41181 #| msgid "B<-u> | B<--upload>"
41182 msgid "B<--upload>"
41183 msgstr "B<-u> | B<--upload>"
41184
41185 #. type: textblock
41186 #: ../tools/virt-tar.pl:168
41187 msgid ""
41188 "Use I<-x> to extract (download) a directory from a virtual machine to a "
41189 "local tarball."
41190 msgstr ""
41191
41192 #. type: textblock
41193 #: ../tools/virt-tar.pl:171
41194 msgid ""
41195 "Use I<-u> to upload and unpack from a local tarball into a virtual machine.  "
41196 "Please read the L</WARNING> section above before using this option."
41197 msgstr ""
41198
41199 #. type: textblock
41200 #: ../tools/virt-tar.pl:175
41201 msgid "You must specify exactly one of these options."
41202 msgstr ""
41203
41204 #. type: =item
41205 #: ../tools/virt-tar.pl:181
41206 msgid "B<-z>"
41207 msgstr ""
41208
41209 #. type: =item
41210 #: ../tools/virt-tar.pl:183
41211 #, fuzzy
41212 #| msgid "B<-z> | B<--gzip>"
41213 msgid "B<--gzip>"
41214 msgstr "B<-z> | B<--gzip>"
41215
41216 #. type: textblock
41217 #: ../tools/virt-tar.pl:185
41218 msgid "Specify that the input or output tarball is gzip-compressed."
41219 msgstr ""
41220
41221 #. type: textblock
41222 #: ../tools/virt-tar.pl:298
41223 msgid ""
41224 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
41225 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
41226 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
41227 "org/>."
41228 msgstr ""
41229 "L<guestfs(3)>, L<guestfish(1)>, L<virt-cat(1)>, L<virt-edit(1)>, L<virt-copy-"
41230 "in(1)>, L<virt-copy-out(1)>, L<virt-tar-in(1)>, L<virt-tar-out(1)>, L<Sys::"
41231 "Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Sys::Virt(3)>, L<http://libguestfs."
41232 "org/>."
41233
41234 #. type: textblock
41235 #: ../tools/virt-win-reg.pl:37
41236 msgid ""
41237 "virt-win-reg - Export and merge Windows Registry entries from a Windows guest"
41238 msgstr ""
41239
41240 #. type: verbatim
41241 #: ../tools/virt-win-reg.pl:41
41242 #, no-wrap
41243 msgid ""
41244 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey'\n"
41245 "\n"
41246 msgstr ""
41247
41248 #. type: verbatim
41249 #: ../tools/virt-win-reg.pl:43
41250 #, no-wrap
41251 msgid ""
41252 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' name\n"
41253 "\n"
41254 msgstr ""
41255
41256 #. type: verbatim
41257 #: ../tools/virt-win-reg.pl:45
41258 #, no-wrap
41259 msgid ""
41260 " virt-win-reg domname 'HKLM\\Path\\To\\Subkey' @\n"
41261 "\n"
41262 msgstr ""
41263
41264 #. type: verbatim
41265 #: ../tools/virt-win-reg.pl:47
41266 #, no-wrap
41267 msgid ""
41268 " virt-win-reg --merge domname [input.reg ...]\n"
41269 "\n"
41270 msgstr ""
41271
41272 #. type: verbatim
41273 #: ../tools/virt-win-reg.pl:49
41274 #, no-wrap
41275 msgid ""
41276 " virt-win-reg [--options] disk.img ... # instead of domname\n"
41277 "\n"
41278 msgstr ""
41279
41280 #. type: textblock
41281 #: ../tools/virt-win-reg.pl:53
41282 msgid ""
41283 "You must I<not> use C<virt-win-reg> with the I<--merge> option on live "
41284 "virtual machines.  If you do this, you I<will> get irreversible disk "
41285 "corruption in the VM.  C<virt-win-reg> tries to stop you from doing this, "
41286 "but doesn't catch all cases."
41287 msgstr ""
41288
41289 #. type: textblock
41290 #: ../tools/virt-win-reg.pl:58
41291 msgid ""
41292 "Modifying the Windows Registry is an inherently risky operation.  The format "
41293 "is deliberately obscure and undocumented, and Registry changes can leave the "
41294 "system unbootable.  Therefore when using the I<--merge> option, make sure "
41295 "you have a reliable backup first."
41296 msgstr ""
41297
41298 #. type: textblock
41299 #: ../tools/virt-win-reg.pl:65
41300 msgid ""
41301 "This program can export and merge Windows Registry entries from a Windows "
41302 "guest."
41303 msgstr ""
41304
41305 #. type: textblock
41306 #: ../tools/virt-win-reg.pl:68
41307 msgid ""
41308 "The first parameter is the libvirt guest name or the raw disk image of a "
41309 "Windows guest."
41310 msgstr ""
41311
41312 #. type: textblock
41313 #: ../tools/virt-win-reg.pl:71
41314 msgid ""
41315 "If I<--merge> is I<not> specified, then the chosen registry key is displayed/"
41316 "exported (recursively).  For example:"
41317 msgstr ""
41318
41319 #. type: verbatim
41320 #: ../tools/virt-win-reg.pl:74
41321 #, no-wrap
41322 msgid ""
41323 " $ virt-win-reg Windows7 'HKEY_LOCAL_MACHINE\\SOFTWARE\\Microsoft'\n"
41324 "\n"
41325 msgstr ""
41326
41327 #. type: textblock
41328 #: ../tools/virt-win-reg.pl:76
41329 msgid ""
41330 "You can also display single values from within registry keys, for example:"
41331 msgstr ""
41332
41333 #. type: verbatim
41334 #: ../tools/virt-win-reg.pl:79
41335 #, no-wrap
41336 msgid ""
41337 " $ cvkey='HKLM\\SOFTWARE\\Microsoft\\Windows NT\\CurrentVersion'\n"
41338 " $ virt-win-reg Windows7 $cvkey ProductName\n"
41339 " Windows 7 Enterprise\n"
41340 "\n"
41341 msgstr ""
41342
41343 #. type: textblock
41344 #: ../tools/virt-win-reg.pl:83
41345 msgid ""
41346 "With I<--merge>, you can merge a textual regedit file into the Windows "
41347 "Registry:"
41348 msgstr ""
41349
41350 #. type: verbatim
41351 #: ../tools/virt-win-reg.pl:86
41352 #, no-wrap
41353 msgid ""
41354 " $ virt-win-reg --merge Windows7 changes.reg\n"
41355 "\n"
41356 msgstr ""
41357
41358 #. type: textblock
41359 #: ../tools/virt-win-reg.pl:90
41360 msgid ""
41361 "This program is only meant for simple access to the registry.  If you want "
41362 "to do complicated things with the registry, we suggest you download the "
41363 "Registry hive files from the guest using L<libguestfs(3)> or L<guestfish(1)> "
41364 "and access them locally, eg. using L<hivex(3)>, L<hivexsh(1)> or "
41365 "L<hivexregedit(1)>."
41366 msgstr ""
41367
41368 #. type: =item
41369 #: ../tools/virt-win-reg.pl:159
41370 msgid "B<--merge>"
41371 msgstr "B<--merge>"
41372
41373 #. type: textblock
41374 #: ../tools/virt-win-reg.pl:161
41375 msgid ""
41376 "In merge mode, this merges a textual regedit file into the Windows Registry "
41377 "of the virtual machine.  If this flag is I<not> given then virt-win-reg "
41378 "displays or exports Registry entries instead."
41379 msgstr ""
41380
41381 #. type: textblock
41382 #: ../tools/virt-win-reg.pl:165
41383 msgid ""
41384 "Note that I<--merge> is I<unsafe> to use on live virtual machines, and will "
41385 "result in disk corruption.  However exporting (without this flag)  is always "
41386 "safe."
41387 msgstr ""
41388
41389 #. type: =item
41390 #: ../tools/virt-win-reg.pl:173
41391 msgid "B<--encoding> UTF-16LE|ASCII"
41392 msgstr ""
41393
41394 #. type: textblock
41395 #: ../tools/virt-win-reg.pl:175
41396 msgid ""
41397 "When merging (only), you may need to specify the encoding for strings to be "
41398 "used in the hive file.  This is explained in detail in L<Win::Hivex::Regedit"
41399 "(3)/ENCODING STRINGS>."
41400 msgstr ""
41401
41402 #. type: textblock
41403 #: ../tools/virt-win-reg.pl:179
41404 msgid ""
41405 "The default is to use UTF-16LE, which should work with recent versions of "
41406 "Windows."
41407 msgstr ""
41408
41409 #. type: =item
41410 #: ../tools/virt-win-reg.pl:186
41411 msgid "B<--unsafe-printable-strings>"
41412 msgstr ""
41413
41414 #. type: textblock
41415 #: ../tools/virt-win-reg.pl:188
41416 msgid ""
41417 "When exporting (only), assume strings are UTF-16LE and print them as strings "
41418 "instead of hex sequences.  Remove the final zero codepoint from strings if "
41419 "present."
41420 msgstr ""
41421
41422 #. type: textblock
41423 #: ../tools/virt-win-reg.pl:192
41424 msgid ""
41425 "This is unsafe and does not preserve the fidelity of strings in the original "
41426 "Registry for various reasons:"
41427 msgstr ""
41428
41429 #. type: textblock
41430 #: ../tools/virt-win-reg.pl:199
41431 msgid ""
41432 "Assumes the original encoding is UTF-16LE.  ASCII strings and strings in "
41433 "other encodings will be corrupted by this transformation."
41434 msgstr ""
41435
41436 #. type: textblock
41437 #: ../tools/virt-win-reg.pl:204
41438 msgid ""
41439 "Assumes that everything which has type 1 or 2 is really a string and that "
41440 "everything else is not a string, but the type field in real Registries is "
41441 "not reliable."
41442 msgstr ""
41443
41444 #. type: textblock
41445 #: ../tools/virt-win-reg.pl:210
41446 msgid ""
41447 "Loses information about whether a zero codepoint followed the string in the "
41448 "Registry or not."
41449 msgstr ""
41450
41451 #. type: textblock
41452 #: ../tools/virt-win-reg.pl:215
41453 msgid ""
41454 "This all happens because the Registry itself contains no information about "
41455 "how strings are encoded (see L<Win::Hivex::Regedit(3)/ENCODING STRINGS>)."
41456 msgstr ""
41457
41458 #. type: textblock
41459 #: ../tools/virt-win-reg.pl:219
41460 msgid ""
41461 "You should only use this option for quick hacking and debugging of the "
41462 "Registry contents, and I<never> use it if the output is going to be passed "
41463 "into another program or stored in another Registry."
41464 msgstr ""
41465
41466 #. type: =head1
41467 #: ../tools/virt-win-reg.pl:556
41468 msgid "SUPPORTED SYSTEMS"
41469 msgstr ""
41470
41471 #. type: textblock
41472 #: ../tools/virt-win-reg.pl:558
41473 msgid ""
41474 "The program currently supports Windows NT-derived guests starting with "
41475 "Windows XP through to at least Windows 7."
41476 msgstr ""
41477
41478 #. type: textblock
41479 #: ../tools/virt-win-reg.pl:561
41480 msgid "The following Registry keys are supported:"
41481 msgstr ""
41482
41483 #. type: =item
41484 #: ../tools/virt-win-reg.pl:565
41485 msgid "C<HKEY_LOCAL_MACHINE\\SAM>"
41486 msgstr ""
41487
41488 #. type: =item
41489 #: ../tools/virt-win-reg.pl:567
41490 msgid "C<HKEY_LOCAL_MACHINE\\SECURITY>"
41491 msgstr ""
41492
41493 #. type: =item
41494 #: ../tools/virt-win-reg.pl:569
41495 msgid "C<HKEY_LOCAL_MACHINE\\SOFTWARE>"
41496 msgstr ""
41497
41498 #. type: =item
41499 #: ../tools/virt-win-reg.pl:571
41500 msgid "C<HKEY_LOCAL_MACHINE\\SYSTEM>"
41501 msgstr ""
41502
41503 #. type: =item
41504 #: ../tools/virt-win-reg.pl:573
41505 msgid "C<HKEY_USERS\\.DEFAULT>"
41506 msgstr ""
41507
41508 #. type: =item
41509 #: ../tools/virt-win-reg.pl:575
41510 msgid "C<HKEY_USERS\\I<SID>>"
41511 msgstr ""
41512
41513 #. type: textblock
41514 #: ../tools/virt-win-reg.pl:577
41515 msgid "where I<SID> is a Windows User SID (eg. C<S-1-5-18>)."
41516 msgstr ""
41517
41518 #. type: =item
41519 #: ../tools/virt-win-reg.pl:579
41520 msgid "C<HKEY_USERS\\I<username>>"
41521 msgstr ""
41522
41523 #. type: textblock
41524 #: ../tools/virt-win-reg.pl:581
41525 msgid ""
41526 "where I<username> is a local user name (this is a libguestfs extension)."
41527 msgstr ""
41528
41529 #. type: textblock
41530 #: ../tools/virt-win-reg.pl:585
41531 msgid ""
41532 "You can use C<HKLM> as a shorthand for C<HKEY_LOCAL_MACHINE>, and C<HKU> for "
41533 "C<HKEY_USERS>."
41534 msgstr ""
41535
41536 #. type: textblock
41537 #: ../tools/virt-win-reg.pl:588
41538 msgid ""
41539 "The literal keys C<HKEY_USERS\\$SID> and C<HKEY_CURRENT_USER> are not "
41540 "supported (there is no \"current user\")."
41541 msgstr ""
41542
41543 #. type: =head1
41544 #: ../tools/virt-win-reg.pl:591
41545 msgid "ENCODING"
41546 msgstr "КОДУВАННЯ"
41547
41548 #. type: textblock
41549 #: ../tools/virt-win-reg.pl:593
41550 msgid ""
41551 "C<virt-win-reg> expects that regedit files have already been reencoded in "
41552 "the local encoding.  Usually on Linux hosts, this means UTF-8 with Unix-"
41553 "style line endings.  Since Windows regedit files are often in UTF-16LE with "
41554 "Windows-style line endings, you may need to reencode the whole file before "
41555 "or after processing."
41556 msgstr ""
41557
41558 #. type: textblock
41559 #: ../tools/virt-win-reg.pl:599
41560 msgid ""
41561 "To reencode a file from Windows format to Linux (before processing it with "
41562 "the I<--merge> option), you would do something like this:"
41563 msgstr ""
41564
41565 #. type: verbatim
41566 #: ../tools/virt-win-reg.pl:602
41567 #, no-wrap
41568 msgid ""
41569 " iconv -f utf-16le -t utf-8 < win.reg | dos2unix > linux.reg\n"
41570 "\n"
41571 msgstr ""
41572
41573 #. type: textblock
41574 #: ../tools/virt-win-reg.pl:604
41575 msgid ""
41576 "To go in the opposite direction, after exporting and before sending the file "
41577 "to a Windows user, do something like this:"
41578 msgstr ""
41579
41580 #. type: verbatim
41581 #: ../tools/virt-win-reg.pl:607
41582 #, no-wrap
41583 msgid ""
41584 " unix2dos linux.reg | iconv -f utf-8 -t utf-16le > win.reg\n"
41585 "\n"
41586 msgstr ""
41587
41588 #. type: textblock
41589 #: ../tools/virt-win-reg.pl:609
41590 msgid "For more information about encoding, see L<Win::Hivex::Regedit(3)>."
41591 msgstr ""
41592
41593 #. type: textblock
41594 #: ../tools/virt-win-reg.pl:611
41595 msgid ""
41596 "If you are unsure about the current encoding, use the L<file(1)> command.  "
41597 "Recent versions of Windows regedit.exe produce a UTF-16LE file with Windows-"
41598 "style (CRLF) line endings, like this:"
41599 msgstr ""
41600
41601 #. type: verbatim
41602 #: ../tools/virt-win-reg.pl:615
41603 #, no-wrap
41604 msgid ""
41605 " $ file software.reg\n"
41606 " software.reg: Little-endian UTF-16 Unicode text, with very long lines,\n"
41607 " with CRLF line terminators\n"
41608 "\n"
41609 msgstr ""
41610
41611 #. type: textblock
41612 #: ../tools/virt-win-reg.pl:619
41613 msgid "This file would need conversion before you could I<--merge> it."
41614 msgstr ""
41615
41616 #. type: =head1
41617 #: ../tools/virt-win-reg.pl:621
41618 msgid "CurrentControlSet etc."
41619 msgstr ""
41620
41621 #. type: textblock
41622 #: ../tools/virt-win-reg.pl:623
41623 msgid ""
41624 "Registry keys like C<CurrentControlSet> don't really exist in the Windows "
41625 "Registry at the level of the hive file, and therefore you cannot modify "
41626 "these."
41627 msgstr ""
41628
41629 #. type: textblock
41630 #: ../tools/virt-win-reg.pl:627
41631 msgid ""
41632 "C<CurrentControlSet> is usually an alias for C<ControlSet001>.  In some "
41633 "circumstances it might refer to another control set.  The way to find out is "
41634 "to look at the C<HKLM\\SYSTEM\\Select> key:"
41635 msgstr ""
41636
41637 #. type: verbatim
41638 #: ../tools/virt-win-reg.pl:631
41639 #, no-wrap
41640 msgid ""
41641 " # virt-win-reg WindowsGuest 'HKLM\\SYSTEM\\Select'\n"
41642 " [HKEY_LOCAL_MACHINE\\SYSTEM\\Select]\n"
41643 " \"Current\"=dword:00000001\n"
41644 " \"Default\"=dword:00000001\n"
41645 " \"Failed\"=dword:00000000\n"
41646 " \"LastKnownGood\"=dword:00000002\n"
41647 "\n"
41648 msgstr ""
41649
41650 #. type: textblock
41651 #: ../tools/virt-win-reg.pl:638
41652 msgid "\"Current\" is the one which Windows will choose when it boots."
41653 msgstr ""
41654
41655 #. type: textblock
41656 #: ../tools/virt-win-reg.pl:640
41657 msgid ""
41658 "Similarly, other C<Current...> keys in the path may need to be replaced."
41659 msgstr ""
41660
41661 #. type: =head1
41662 #: ../tools/virt-win-reg.pl:643
41663 msgid "WINDOWS TIPS"
41664 msgstr ""
41665
41666 #. type: textblock
41667 #: ../tools/virt-win-reg.pl:645
41668 msgid ""
41669 "Note that some of these tips modify the guest disk image.  The guest I<must> "
41670 "be shut off, else you will get disk corruption."
41671 msgstr ""
41672
41673 #. type: =head2
41674 #: ../tools/virt-win-reg.pl:648
41675 msgid "RUNNING A BATCH SCRIPT WHEN A USER LOGS IN"
41676 msgstr ""
41677
41678 #. type: textblock
41679 #: ../tools/virt-win-reg.pl:650
41680 msgid ""
41681 "Prepare a DOS batch script, VBScript or executable.  Upload this using "
41682 "L<guestfish(1)>.  For this example the script is called C<test.bat> and it "
41683 "is uploaded into C<C:\\>:"
41684 msgstr ""
41685
41686 #. type: verbatim
41687 #: ../tools/virt-win-reg.pl:654
41688 #, no-wrap
41689 msgid ""
41690 " guestfish -i -d WindowsGuest upload test.bat /test.bat\n"
41691 "\n"
41692 msgstr ""
41693
41694 #. type: textblock
41695 #: ../tools/virt-win-reg.pl:656
41696 msgid "Prepare a regedit file containing the registry change:"
41697 msgstr ""
41698
41699 #. type: verbatim
41700 #: ../tools/virt-win-reg.pl:658
41701 #, no-wrap
41702 msgid ""
41703 " cat > test.reg <<'EOF'\n"
41704 " [HKLM\\Software\\Microsoft\\Windows\\CurrentVersion\\RunOnce]\n"
41705 " \"Test\"=\"c:\\\\test.bat\"\n"
41706 " EOF\n"
41707 "\n"
41708 msgstr ""
41709
41710 #. type: textblock
41711 #: ../tools/virt-win-reg.pl:663
41712 msgid ""
41713 "In this example we use the key C<RunOnce> which means that the script will "
41714 "run precisely once when the first user logs in.  If you want it to run every "
41715 "time a user logs in, replace C<RunOnce> with C<Run>."
41716 msgstr ""
41717
41718 #. type: textblock
41719 #: ../tools/virt-win-reg.pl:667
41720 msgid "Now update the registry:"
41721 msgstr ""
41722
41723 #. type: verbatim
41724 #: ../tools/virt-win-reg.pl:669
41725 #, no-wrap
41726 msgid ""
41727 " virt-win-reg --merge WindowsGuest test.reg\n"
41728 "\n"
41729 msgstr ""
41730
41731 #. type: =head2
41732 #: ../tools/virt-win-reg.pl:671
41733 msgid "INSTALLING A SERVICE"
41734 msgstr ""
41735
41736 #. type: textblock
41737 #: ../tools/virt-win-reg.pl:673
41738 msgid ""
41739 "This section assumes you are familiar with Windows services, and you either "
41740 "have a program which handles the Windows Service Control Protocol directly "
41741 "or you want to run any program using a service wrapper like SrvAny or the "
41742 "free RHSrvAny."
41743 msgstr ""
41744
41745 #. type: textblock
41746 #: ../tools/virt-win-reg.pl:678
41747 msgid ""
41748 "First upload the program and optionally the service wrapper.  In this case "
41749 "the test program is called C<test.exe> and we are using the RHSrvAny wrapper:"
41750 msgstr ""
41751
41752 #. type: verbatim
41753 #: ../tools/virt-win-reg.pl:682
41754 #, no-wrap
41755 msgid ""
41756 " guestfish -i -d WindowsGuest <<EOF\n"
41757 "   upload rhsrvany.exe /rhsrvany.exe\n"
41758 "   upload test.exe /test.exe\n"
41759 " EOF\n"
41760 "\n"
41761 msgstr ""
41762
41763 #. type: textblock
41764 #: ../tools/virt-win-reg.pl:687
41765 msgid ""
41766 "Prepare a regedit file containing the registry changes.  In this example, "
41767 "the first registry change is needed for the service itself or the service "
41768 "wrapper (if used).  The second registry change is only needed because I am "
41769 "using the RHSrvAny service wrapper."
41770 msgstr ""
41771
41772 #. type: verbatim
41773 #: ../tools/virt-win-reg.pl:692
41774 #, no-wrap
41775 msgid ""
41776 " cat > service.reg <<'EOF'\n"
41777 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny]\n"
41778 " \"Type\"=dword:00000010\n"
41779 " \"Start\"=dword:00000002\n"
41780 " \"ErrorControl\"=dword:00000001\n"
41781 " \"ImagePath\"=\"c:\\\\rhsrvany.exe\"\n"
41782 " \"DisplayName\"=\"RHSrvAny\"\n"
41783 " \"ObjectName\"=\"NetworkService\"\n"
41784 " \n"
41785 msgstr ""
41786
41787 #. type: verbatim
41788 #: ../tools/virt-win-reg.pl:701
41789 #, no-wrap
41790 msgid ""
41791 " [HKLM\\SYSTEM\\ControlSet001\\services\\RHSrvAny\\Parameters]\n"
41792 " \"CommandLine\"=\"c:\\\\test.exe\"\n"
41793 " \"PWD\"=\"c:\\\\Temp\"\n"
41794 " EOF\n"
41795 "\n"
41796 msgstr ""
41797
41798 #. type: textblock
41799 #: ../tools/virt-win-reg.pl:712
41800 msgid ""
41801 "For use of C<ControlSet001> see the section above in this manual page.  You "
41802 "may need to adjust this according to the control set that is in use by the "
41803 "guest."
41804 msgstr ""
41805
41806 #. type: textblock
41807 #: ../tools/virt-win-reg.pl:718
41808 msgid ""
41809 "C<\"ObjectName\"> controls the privileges that the service will have.  An "
41810 "alternative is C<\"ObjectName\"=\"LocalSystem\"> which would be the most "
41811 "privileged account."
41812 msgstr ""
41813
41814 #. type: textblock
41815 #: ../tools/virt-win-reg.pl:724
41816 msgid ""
41817 "For the meaning of the magic numbers, see this Microsoft KB article: "
41818 "L<http://support.microsoft.com/kb/103000>."
41819 msgstr ""
41820
41821 #. type: textblock
41822 #: ../tools/virt-win-reg.pl:729
41823 msgid "Update the registry:"
41824 msgstr ""
41825
41826 #. type: verbatim
41827 #: ../tools/virt-win-reg.pl:731
41828 #, no-wrap
41829 msgid ""
41830 " virt-win-reg --merge WindowsGuest service.reg\n"
41831 "\n"
41832 msgstr ""
41833
41834 #. type: textblock
41835 #: ../tools/virt-win-reg.pl:735
41836 msgid ""
41837 "Be careful when passing parameters containing C<\\> (backslash) in the "
41838 "shell.  Usually you will have to use 'single quotes' or double backslashes "
41839 "(but not both) to protect them from the shell."
41840 msgstr ""
41841
41842 #. type: textblock
41843 #: ../tools/virt-win-reg.pl:739
41844 msgid "Paths and value names are case-insensitive."
41845 msgstr ""
41846
41847 #. type: textblock
41848 #: ../tools/virt-win-reg.pl:748
41849 msgid ""
41850 "L<hivex(3)>, L<hivexsh(1)>, L<hivexregedit(1)>, L<guestfs(3)>, L<guestfish(1)"
41851 ">, L<virt-cat(1)>, L<Sys::Guestfs(3)>, L<Sys::Guestfs::Lib(3)>, L<Win::Hivex"
41852 "(3)>, L<Win::Hivex::Regedit(3)>, L<Sys::Virt(3)>, L<http://libguestfs.org/>."
41853 msgstr ""
41854
41855 #. type: verbatim
41856 #: ../tools/virt-win-reg.pl:766
41857 #, no-wrap
41858 msgid ""
41859 " export LIBGUESTFS_DEBUG=1\n"
41860 " virt-win-reg --debug [... rest ...] > /tmp/virt-win-reg.log 2>&1\n"
41861 "\n"
41862 msgstr ""
41863
41864 #. type: textblock
41865 #: ../tools/virt-win-reg.pl:769
41866 msgid ""
41867 "Attach /tmp/virt-win-reg.log to a new bug report at L<https://bugzilla."
41868 "redhat.com/>"
41869 msgstr ""
41870
41871 #~ msgid "I<--help>"
41872 #~ msgstr "I<--help>"
41873
41874 #~ msgid "EXIT CODE"
41875 #~ msgstr "КОД ВИХОДУ"
41876
41877 #~ msgid "B<-a> | B<--all>"
41878 #~ msgstr "B<-a> | B<--all>"
41879
41880 #~ msgid "B<-x> | B<--extract> | B<--download>"
41881 #~ msgstr "B<-x> | B<--extract> | B<--download>"